Avoid manual memory management of argv arrays in gdb/compile
[deliverable/binutils-gdb.git] / gdb / ChangeLog
1 2020-09-23 Tom Tromey <tom@tromey.com>
2
3 * utils.h (class gdb_argv): Add move operators.
4 <append>: New methods.
5 * compile/compile.c (build_argc_argv): Remove.
6 (compile_args_argc): Remove.
7 (compile_args_argv): Change type.
8 (set_compile_args): Simplify.
9 (append_args): Remove.
10 (filter_args): Remove argcp parameter.
11 (get_args): Return gdb_argv. Simplify.
12 (compile_to_object): Update.
13
14 2020-09-23 Tom Tromey <tom@tromey.com>
15
16 * compile/compile-object-run.c (do_module_cleanup)
17 <~do_module_cleanup> :Remove.
18 (do_module_cleanup): Update.
19 * compile/compile-object-load.h (struct munmap_list): Add move
20 assignment operator.
21 <source_file>: Now a std::string.
22 <munmap_list>: Rename. No longer a pointer.
23 * compile/compile-object-load.c (struct setup_sections_data): Add
24 constructor.
25 <setup_one_section>: Declare.
26 <munmap_list>: Move earlier.
27 <m_bfd>: New member.
28 <m_last_size, m_last_section_first, m_last_prot,
29 m_last_max_alignment>: Rename, add initializers where needed.
30 (setup_sections_data::setup_one_section): Rename from
31 setup_sections. Update.
32 (compile_object_load): Update. Don't use bfd_map_over_sections.
33
34 2020-09-23 Tom Tromey <tom@tromey.com>
35
36 * compile/compile-object-run.c (struct do_module_cleanup): Add
37 parameters to constructor. Update destructor.
38 <source_file, scope, scope_data, out_value_type, out_value_addr,
39 munmap_list_head, objfile_name_string>: Remove.
40 <module>: New member.
41 (do_module_cleanup): Update.
42 (compile_object_run): Update.
43
44 2020-09-23 Tom Tromey <tom@tromey.com>
45
46 * compile/compile.c (eval_compile_command): Update.
47 * compile/compile-object-run.h (compile_object_run): Take a
48 compile_module_up.
49 * compile/compile-object-run.c (compile_object_run): Take a
50 compile_module_up.
51 * compile/compile-object-load.h (struct compile_module): Add
52 constructor, destructor.
53 (compile_module_up): New typedef.
54 (compile_object_load): Return compile_object_up.
55 * compile/compile-object-load.c (compile_object_load): Return
56 compile_module_up.
57
58 2020-09-23 Tom Tromey <tom@tromey.com>
59
60 * compile/compile-object-run.c (struct do_module_cleanup): Add
61 constructor, destructor.
62 <objfile_name_string>: Don't use struct hack.
63 (do_module_cleanup): Use delete.
64 (compile_object_run): Use new.
65
66 2020-09-23 Tom Tromey <tom@tromey.com>
67
68 * compile/compile-cplus-types.c
69 (compile_cplus_convert_struct_or_union): Use std::vector.
70 (compile_cplus_convert_func): Likewise.
71 * compile/compile-c-types.c (convert_func): Use std::vector.
72
73 2020-09-21 Tom Tromey <tromey@adacore.com>
74
75 * sparc-tdep.c (sparc32_skip_prologue): Use
76 skip_prologue_using_sal.
77
78 2020-09-19 Tom Tromey <tom@tromey.com>
79
80 * symfile.c (add_section_size_callback): Remove.
81 (load_one_section): Rename from load_section_callback. Change
82 parameters.
83 (generic_load): Use foreach.
84
85 2020-09-19 Tom Tromey <tom@tromey.com>
86
87 * exec.c (add_to_section_table): Remove.
88 (build_section_table): Use foreach.
89
90 2020-09-19 Tom Tromey <tom@tromey.com>
91
92 * elfread.c (elf_locate_sections): Change parameters.
93 (elf_symfile_read): Use foreach.
94
95 2020-09-19 Tom Tromey <tom@tromey.com>
96
97 * cli/cli-dump.c (struct callback_data): Remove.
98 (restore_one_section): Rename from restore_section_callback.
99 Change parameters.
100 (restore_binary_file): Change parameters.
101 (restore_command): Use foreach.
102
103 2020-09-19 Tom Tromey <tom@tromey.com>
104
105 * gcore.c (make_output_phdrs): Remove 'ignored' parameter.
106 (gcore_copy_callback): Likewise.
107 (gcore_memory_sections): Use foreach.
108
109 2020-09-19 Tom Tromey <tom@tromey.com>
110
111 * osabi.h (generic_elf_osabi_sniff_abi_tag_sections): Update.
112 * osabi.c (generic_elf_osabi_sniff_abi_tag_sections): Change
113 parameters.
114 (generic_elf_osabi_sniffer): Use foreach.
115 * mips-sde-tdep.c (mips_sde_elf_osabi_sniffer): Use foreach.
116 * arm-tdep.c (arm_elf_osabi_sniffer): Use foreach.
117
118 2020-09-19 Tom Tromey <tom@tromey.com>
119
120 * dwarf2/read.c (locate_dwz_sections): Change parameters.
121 (dwarf2_get_dwz_file): Use foreach.
122 (dwarf2_locate_dwo_sections): Change parameters.
123 (open_and_init_dwo_file): Use foreach.
124 (dwarf2_locate_common_dwp_sections): Change parameters.
125 (open_and_init_dwp_file): Use foreach.
126
127 2020-09-19 Tom Tromey <tom@tromey.com>
128
129 * symfile.h: (find_lowest_section): Don't declare.
130 * symfile.c (find_lowest_section): Now static. Change
131 parameters.
132 (struct place_section_arg): Remove.
133 (place_section): Change parameters.
134 (addr_info_make_relative): Use foreach.
135 (symfile_dummy_outputs): Remove.
136 (default_symfile_relocate): Use foreach.
137
138 2020-09-19 Tom Tromey <tom@tromey.com>
139
140 * objfiles.c (add_to_objfile_sections): Rename from
141 add_to_objfile_sections_full.
142 (add_to_objfile_sections): Remove.
143 (build_objfile_section_table): Use foreach.
144
145 2020-09-19 Tom Tromey <tom@tromey.com>
146
147 * stap-probe.c (get_stap_base_address_1): Remove.
148 (get_stap_base_address): Use foreach.
149
150 2020-09-19 Tom Tromey <tom@tromey.com>
151
152 * gdb_bfd.c (free_one_bfd_section): Remove 'abfd' and 'ignore'
153 parameters.
154 (gdb_bfd_close_or_warn): Use foreach.
155
156 2020-09-19 Tom Tromey <tom@tromey.com>
157
158 * corelow.c (add_to_thread_list): Change parameters.
159 (core_target_open): Use foreach.
160
161 2020-09-19 Tom Tromey <tom@tromey.com>
162
163 * gdb_bfd.h (gdb_bfd_sections): New overload. Fix formatting of
164 existing function.
165
166 2020-09-19 Andrew Burgess <andrew.burgess@embecosm.com>
167
168 * f-valprint.c (f77_print_array_1): Adjust printing of whitespace
169 for arrays.
170
171 2020-09-19 Andrew Burgess <andrew.burgess@embecosm.com>
172
173 * eval.c: Remove 'f-lang.h' include.
174 (value_f90_subarray): Moved to f-lang.c.
175 (eval_call): Renamed to...
176 (evaluate_subexp_do_call): ...this, is no longer static, header
177 comment moved into header file.
178 (evaluate_funcall): Update call to eval_call.
179 (skip_undetermined_arglist): Moved to f-lang.c.
180 (fortran_value_subarray): Likewise.
181 (evaluate_subexp_standard): OP_F77_UNDETERMINED_ARGLIST handling
182 moved to evaluate_subexp_f.
183 (calc_f77_array_dims): Moved to f-lang.c
184 * expprint.c (print_subexp_funcall): New function.
185 (print_subexp_standard): OP_F77_UNDETERMINED_ARGLIST handling
186 moved to print_subexp_f, OP_FUNCALL uses new function.
187 (dump_subexp_body_funcall): New function.
188 (dump_subexp_body_standard): OP_F77_UNDETERMINED_ARGLIST handling
189 moved to dump_subexp_f, OP_FUNCALL uses new function.
190 * expression.h (evaluate_subexp_do_call): Declare.
191 * f-lang.c (value_f90_subarray): Moved from eval.c.
192 (skip_undetermined_arglist): Likewise.
193 (calc_f77_array_dims): Likewise.
194 (fortran_value_subarray): Likewise.
195 (evaluate_subexp_f): Add OP_F77_UNDETERMINED_ARGLIST support.
196 (operator_length_f): Likewise.
197 (print_subexp_f): Likewise.
198 (dump_subexp_body_f): Likewise.
199 * fortran-operator.def (OP_F77_UNDETERMINED_ARGLIST): Move
200 declaration of this operation to here.
201 * parse.c (operator_length_standard): OP_F77_UNDETERMINED_ARGLIST
202 support moved to operator_length_f.
203 * parser-defs.h (dump_subexp_body_funcall): Declare.
204 (print_subexp_funcall): Declare.
205 * std-operator.def (OP_F77_UNDETERMINED_ARGLIST): Moved to
206 fortran-operator.def.
207
208 2020-09-19 Andrew Burgess <andrew.burgess@embecosm.com>
209
210 * eval.c (fortran_value_subarray): New function, content is taken
211 from...
212 (evaluate_subexp_standard): ...here, in two places. Now arrays
213 and strings both call the new function.
214 (calc_f77_array_dims): Add header comment, handle strings.
215
216 2020-09-18 Victor Collod <vcollod@nvidia.com>
217
218 PR gdb/26635
219 * i386-tdep.c (i386_skip_endbr): Add a helper function to skip endbr.
220 (i386_analyze_prologue): Call i386_skip_endbr.
221
222 2020-09-18 Tom Tromey <tromey@adacore.com>
223
224 * windows-nat.c (struct windows_nat_target) <wait>: Update.
225 (windows_nat_target::wait): Update.
226 * target/wait.h (enum target_wait_flag): New. Use
227 DEF_ENUM_FLAGS_TYPE.
228 * target/target.h (target_wait): Change type of options.
229 * target.h (target_options_to_string, default_target_wait):
230 Update.
231 (struct target_ops) <wait>: Change type of options.
232 * target.c (target_wait, default_target_wait, do_option): Change
233 type of "options".
234 (target_options_to_string): Likewise.
235 * target-delegates.c: Rebuild.
236 * target-debug.h (target_debug_print_target_wait_flags): Rename
237 from target_debug_print_options.
238 * sol-thread.c (class sol_thread_target) <wait>: Update.
239 (sol_thread_target::wait): Update.
240 * rs6000-nat.c (class rs6000_nat_target) <wait>: Update.
241 (rs6000_nat_target::wait): Update.
242 * remote.c (class remote_target) <wait, wait_ns, wait_as>:
243 Update.
244 (remote_target::wait_ns, remote_target::wait_as): Change type of
245 "options".
246 (remote_target::wait): Update.
247 * remote-sim.c (struct gdbsim_target) <wait>: Update.
248 (gdbsim_target::wait): Update.
249 * record-full.c (class record_full_base_target) <wait>: Update.
250 (record_full_wait_1): Change type of "options".
251 (record_full_base_target::wait): Update.
252 * record-btrace.c (class record_btrace_target) <wait>: Update.
253 (record_btrace_target::wait): Update.
254 * ravenscar-thread.c (struct ravenscar_thread_target) <wait>:
255 Update.
256 (ravenscar_thread_target::wait): Update.
257 * procfs.c (class procfs_target) <wait>: Update.
258 (procfs_target::wait): Update.
259 * obsd-nat.h (class obsd_nat_target) <wait>: Update.
260 * obsd-nat.c (obsd_nat_target::wait): Update.
261 * nto-procfs.c (struct nto_procfs_target) <wait>: Update.
262 (nto_procfs_target::wait): Update.
263 * nbsd-nat.h (struct nbsd_nat_target) <wait>: Update.
264 * nbsd-nat.c (nbsd_wait): Change type of "options".
265 (nbsd_nat_target::wait): Update.
266 * linux-thread-db.c (class thread_db_target) <wait>: Update.
267 (thread_db_target::wait): Update.
268 * linux-nat.h (class linux_nat_target) <wait>: Update.
269 * linux-nat.c (linux_nat_target::wait): Update.
270 (linux_nat_wait_1): Update.
271 * infrun.c (do_target_wait_1, do_target_wait): Change type of
272 "options".
273 * inf-ptrace.h (struct inf_ptrace_target) <wait>: Update.
274 * inf-ptrace.c (inf_ptrace_target::wait): Update.
275 * go32-nat.c (struct go32_nat_target) <wait>: Update.
276 (go32_nat_target::wait): Update.
277 * gnu-nat.h (struct gnu_nat_target) <wait>: Update.
278 * gnu-nat.c (gnu_nat_target::wait): Update.
279 * fbsd-nat.h (class fbsd_nat_target) <wait>: Update.
280 * fbsd-nat.c (fbsd_nat_target::wait): Update.
281 * darwin-nat.h (class darwin_nat_target) <wait>: Update.
282 * darwin-nat.c (darwin_nat_target::wait): Update.
283 * bsd-uthread.c (struct bsd_uthread_target) <wait>: Update.
284 (bsd_uthread_target::wait): Update.
285 * aix-thread.c (class aix_thread_target) <wait>: Update.
286 (aix_thread_target::wait): Update.
287
288 2020-09-18 Andrew Burgess <andrew.burgess@embecosm.com>
289
290 * compile/compile-object-run.c (create_copied_type_recursive): New
291 function.
292 (compile_object_run): Use new function.
293
294 2020-08-21 Jon Turney <jon.turney@dronecode.org.uk>
295
296 * NEWS: Mention x86_64 Cygwin core file support.
297
298 2020-07-01 Jon Turney <jon.turney@dronecode.org.uk>
299
300 * windows-tdep.c (NOTE_INFO_MODULE, NOTE_INFO_MODULE64): Define.
301 (core_process_module_section): Handle NOTE_INFO_MODULE64.
302
303 2020-07-01 Jon Turney <jon.turney@dronecode.org.uk>
304
305 * windows-tdep.h: Add prototypes.
306 * i386-windows-tdep.c(windows_core_xfer_shared_libraries): Move.
307 (i386_windows_core_pid_to_str): Move and rename ...
308 * windows-tdep.c (windows_core_xfer_shared_libraries): ... to here
309 (windows_core_pid_to_str): ... and here.
310 * amd64-windows-tdep.c (amd64_windows_init_abi_common): Register here.
311
312 2020-07-01 Jon Turney <jon.turney@dronecode.org.uk>
313 * amd64-windows-tdep.c(amd64_windows_gregset_reg_offset): Add.
314 (amd64_windows_init_abi_common): ... and register.
315
316 2020-07-01 Jon Turney <jon.turney@dronecode.org.uk>
317
318 * amd64-windows-tdep.c (amd64_cygwin_core_osabi_sniffer): New.
319 (_initialize_amd64_windows_tdep): Register amd64_cygwin_core_osabi_sniffer.
320
321 2020-09-18 Pedro Alves <pedro@palves.net>
322
323 PR gdb/26631
324 * thread.c (thread_find_command): Switch inferior before calling
325 target methods.
326
327 2020-09-17 Tom Tromey <tromey@adacore.com>
328
329 * tic6x-tdep.c (tic6x_gdbarch_init): Update.
330 * target-descriptions.h (struct tdesc_arch_data_deleter): New.
331 (tdesc_arch_data_up): New typedef.
332 (tdesc_use_registers, tdesc_data_alloc): Update.
333 (tdesc_data_cleanup): Don't declare.
334 * target-descriptions.c (tdesc_data_alloc): Return a
335 tdesc_arch_data_up.
336 (tdesc_arch_data_deleter::operator()): Rename from
337 tdesc_data_cleanup. Change argument type.
338 (tdesc_use_registers): Change early_data to an rvalue reference.
339 (tdesc_use_registers): Don't use delete.
340 * sparc-tdep.c (sparc32_gdbarch_init): Update.
341 * s390-tdep.c (s390_gdbarch_init): Update.
342 * rx-tdep.c (rx_gdbarch_init): Update.
343 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
344 * riscv-tdep.c (riscv_gdbarch_init): Update.
345 * or1k-tdep.c (or1k_gdbarch_init): Update.
346 * nios2-tdep.c (nios2_gdbarch_init): Update.
347 * nds32-tdep.c (nds32_gdbarch_init): Update.
348 * mips-tdep.c (mips_gdbarch_init): Update.
349 * microblaze-tdep.c (microblaze_gdbarch_init): Update.
350 * m68k-tdep.c (m68k_gdbarch_init): Update.
351 * i386-tdep.c (i386_gdbarch_init): Update.
352 * arm-tdep.c (arm_gdbarch_init): Update.
353 * arc-tdep.c (arc_tdesc_init): Update.
354 (arc_gdbarch_init): Update.
355 * aarch64-tdep.c (aarch64_gdbarch_init): Update.
356
357 2020-09-17 Hannes Domani <ssbssa@yahoo.de>
358
359 * windows-nat.c (ctrl_c_handler): Use 32bit DbgUiRemoteBreakin
360 for WOW64 processes.
361
362 2020-09-17 Tom Tromey <tom@tromey.com>
363
364 * dwarf2/read.c (compute_compunit_symtab_includes): Use htab_up.
365
366 2020-09-17 Tom Tromey <tom@tromey.com>
367
368 * value.c (preserve_values): Update.
369 * python/py-type.c (save_objfile_types): Update.
370 * guile/scm-type.c (save_objfile_types): Update.
371 * gdbtypes.h (create_copied_types_hash): Return htab_up.
372 * gdbtypes.c (create_copied_types_hash): Return htab_up.
373 * compile/compile-object-run.c (compile_object_run): Update.
374
375 2020-09-17 Tom Tromey <tom@tromey.com>
376
377 * typeprint.h (class typedef_hash_table) <~typedef_hash_table>:
378 Remove.
379 <m_table>: Now htab_up.
380 * typeprint.c (typedef_hash_table::recursively_update)
381 (typedef_hash_table::add_template_parameters)
382 (typedef_hash_table::typedef_hash_table): Update.
383 (typedef_hash_table::~typedef_hash_table): Remove.
384 (typedef_hash_table::typedef_hash_table)
385 (typedef_hash_table::find_global_typedef)
386 (typedef_hash_table::find_typedef): Update.
387
388 2020-09-17 Tom Tromey <tom@tromey.com>
389
390 * target-descriptions.c (tdesc_use_registers): Use htab_up.
391
392 2020-09-17 Tom Tromey <tom@tromey.com>
393
394 * linespec.c (class decode_compound_collector)
395 <~decode_compound_collector>: Remove.
396 <m_unique_syms>: Now htab_up.
397 (decode_compound_collector::operator ()): Update.
398 (class symtab_collector) <~symtab_collector>: Remove.
399 <m_symtab_table>: Now htab_up.
400 (symtab_collector::operator ()): Update.
401
402 2020-09-17 Tom Tromey <tom@tromey.com>
403
404 * filename-seen-cache.c (filename_seen_cache::filename_seen_cache)
405 (filename_seen_cache::clear): Update.
406 (~filename_seen_cache): Remove.
407 (filename_seen_cache::seen): Update.
408 * filename-seen-cache.h (class filename_seen_cache) <m_tab>: Now
409 htab_up.
410 <~filename_seen_cache>: Remove.
411 <traverse>: Update.
412
413 2020-09-17 Tom Tromey <tom@tromey.com>
414
415 * completer.c (completion_tracker::discard_completions)
416 (completion_tracker::~completion_tracker)
417 (completion_tracker::maybe_add_completion)
418 (completion_tracker::remove_completion)
419 (completion_tracker::recompute_lowest_common_denominator)
420 (completion_tracker::build_completion_result): Update.
421 * completer.h (class completion_tracker) <have_completions>:
422 Update.
423 <m_entries_hash>: Now htab_up.
424
425 2020-09-17 Tom Tromey <tom@tromey.com>
426
427 * breakpoint.c (ambiguous_names_p): Use htab_up.
428
429 2020-09-17 Tom Tromey <tom@tromey.com>
430
431 * auto-load.c (struct auto_load_pspace_info)
432 <~auto_load_pspace_info, auto_load_pspace_info>: Remove.
433 <loaded_script_files, loaded_script_texts>: Change type to
434 htab_up.
435 (~auto_load_pspace_info) Remove.
436 (init_loaded_scripts_info, maybe_add_script_file)
437 (maybe_add_script_text, auto_load_info_scripts): Update.
438
439 2020-09-17 Tom Tromey <tromey@adacore.com>
440
441 * c-exp.y (name_obstack): Now static.
442
443 2020-09-17 Chungyi Chi <demonic@csie.io>
444
445 * riscv-tdep.c (riscv-insn::decode): Fix recorded insn type.
446
447 2020-09-16 Simon Marchi <simon.marchi@efficios.com>
448
449 * breakpoint.h (init_catchpoint): Change int parameter to bool.
450 (add_solib_catchpoint): Likewise.
451 * breakpoint.c (struct solib_catchpoint) <is_load>: Change type
452 to bool.
453 (add_solib_catchpoint): Change int parameter/variable to bool.
454 (catch_load_or_unload): Likewise.
455 (init_catchpoint): Likewise.
456 (create_fork_vfork_event_catchpoint): Likewise.
457 (catch_fork_command_1): Likewise.
458 (catch_exec_command_1): Likewise.
459
460 2020-09-16 Simon Marchi <simon.marchi@efficios.com>
461
462 * gdb-gdb.py.in (class StructTypePrettyPrinter) <to_string>:
463 Change instance_flags to m_instance_flags.
464
465 2020-09-16 Tom Tromey <tromey@adacore.com>
466
467 PR gdb/26598:
468 * infrun.c (fill_in_stop_func): Use find_pc_partial_function_sym.
469
470 2020-09-16 John Baldwin <jhb@FreeBSD.org>
471
472 * fbsd-nat.c (fbsd_nat_target::wait): Always check for
473 PL_FLAG_EXEC.
474 (fbsd_nat_target::insert_exec_catchpoint)
475 (fbsd_nat_target::remove_exec_catchpoint): Always define.
476 * fbsd-nat.h (fbsd_nat_target::insert_exec_catchpoint)
477 (fbsd_nat_target::remove_exec_catchpoint): Always declare.
478
479 2020-09-16 John Baldwin <jhb@FreeBSD.org>
480
481 * configure.ac: Remove check for kinfo_getvmmap().
482 * configure, config.in: Regenerate.
483 * fbsd-nat.c (fbsd_read_mapping): Remove
484 (fbsd_nat_target::find_memory_regions): Remove the procfs version.
485 (fbsd_nat_target::info_proc): Assume kinfo_getfile() and
486 kinfo_get_vmmap() are always present.
487
488 2020-09-16 John Baldwin <jhb@FreeBSD.org>
489
490 * fbsd-nat.c: Always include support for
491 TARGET_OBJECT_SIGNAL_INFO.
492
493 2020-09-16 John Baldwin <jhb@FreeBSD.org>
494
495 * fbsd-nat.c (fbsd_nat_target::pid_to_exec_file): Always use
496 sysctl and remove procfs fallback.
497
498 2020-09-16 John Baldwin <jhb@FreeBSD.org>
499
500 * fbsd-nat.c: Assume PT_LWPINFO is always defined.
501 * fbsd-nat.h: Likewise.
502
503 2020-09-16 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
504
505 * breakpoint.c (commands_command_1): Make a copy of the 'arg'
506 argument.
507
508 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
509
510 * ada-lang.c (ada_language_data): Delete.
511 (ada_language): Remove references to ada_language_data.
512 * c-lang.c (c_language_data): Delete.
513 (c_language): Remove references to c_language_data.
514 (cplus_language_data): Delete.
515 (cplus_language): Remove references to cplus_language_data.
516 (asm_language_data): Delete.
517 (asm_language): Remove references to asm_language_data.
518 (minimal_language_data): Delete.
519 (minimal_language): Remove references to minimal_language_data.
520 * d-lang.c (d_language_data): Delete.
521 (d_language): Remove references to d_language_data.
522 * f-lang.c (f_language_data): Delete.
523 (f_language): Remove references to f_language_data.
524 * go-lang.c (go_language_data): Delete.
525 (go_language): Remove references to go_language_data.
526 * language.c (unknown_language_data): Delete.
527 (unknown_language): Remove references to unknown_language_data.
528 (auto_language_data): Delete.
529 (auto_language): Remove references to auto_language_data.
530 * language.h (language_data): Delete struct.
531 (language_defn): No longer inherit from language_data.
532 * m2-lang.c (m2_language_data): Delete.
533 (m2_language): Remove references to m2_language_data.
534 * objc-lang.c (objc_language_data): Delete.
535 (objc_language): Remove references to objc_language_data.
536 * opencl-lang.c (opencl_language_data): Delete.
537 (opencl_language): Remove references to opencl_language_data.
538 * p-lang.c (pascal_language_data): Delete.
539 (pascal_language): Remove references to pascal_language_data.
540 * rust-lang.c (rust_language_data): Delete.
541 (rust_language): Remove references to rust_language_data.
542
543 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
544
545 * ada-lang.c (ada_language_data): Remove la_op_print_tab
546 initializer.
547 (ada_language::opcode_print_table): New member function.
548 * c-lang.c (c_language_data): Remove la_op_print_tab initializer.
549 (c_language::opcode_print_table): New member function.
550 (cplus_language_data): Remove la_op_print_tab initializer.
551 (cplus_language::opcode_print_table): New member function.
552 (asm_language_data): Remove la_op_print_tab initializer.
553 (asm_language::opcode_print_table): New member function.
554 (minimal_language_data): Remove la_op_print_tab initializer.
555 (minimal_language::opcode_print_table): New member function.
556 * d-lang.c (d_language_data): Remove la_op_print_tab initializer.
557 (d_language::opcode_print_table): New member function.
558 * expprint.c (print_subexp_standard): Update call to
559 opcode_print_table.
560 (op_string): Likewise.
561 * f-lang.c (f_language_data): Remove la_op_print_tab initializer.
562 (f_language::opcode_print_table): New member function.
563 * go-lang.c (go_language_data): Remove la_op_print_tab
564 initializer.
565 (go_language::opcode_print_table): New member function.
566 * language.c (unknown_language_data): Remove la_op_print_tab
567 initializer.
568 (unknown_language::opcode_print_table): New member function.
569 (auto_language_data): Remove la_op_print_tab initializer.
570 (auto_language::opcode_print_table): New member function.
571 * language.h (language_data): Remove la_op_print_tab field.
572 (language_defn::opcode_print_table): Declare new member function.
573 * m2-lang.c (m2_language_data): Remove la_op_print_tab
574 initializer.
575 (m2_language::opcode_print_table): New member function.
576 * objc-lang.c (objc_language_data): Remove la_op_print_tab
577 initializer.
578 (objc_language::opcode_print_table): New member function.
579 * opencl-lang.c (opencl_language_data): Remove la_op_print_tab
580 initializer.
581 (opencl_language::opcode_print_table): New member function.
582 * p-lang.c (pascal_language_data): Remove la_op_print_tab
583 initializer.
584 (pascal_language::opcode_print_table): New member function.
585 * rust-lang.c (rust_language_data): Remove la_op_print_tab
586 initializer.
587 (rust_language::opcode_print_table): New member function.
588
589 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
590
591 * ada-lang.c (ada_language_data): Remove la_exp_desc initializer.
592 (ada_language::expression_ops): New member function.
593 * c-lang.c (c_language_data): Remove la_exp_desc initializer.
594 (c_language::expression_ops): New member function.
595 (cplus_language_data): Remove la_exp_desc initializer.
596 (cplus_language::expression_ops): New member function.
597 (asm_language_data): Remove la_exp_desc initializer.
598 (asm_language::expression_ops): New member function.
599 (minimal_language_data): Remove la_exp_desc initializer.
600 (minimal_language::expression_ops): New member function.
601 * d-lang.c (d_language_data): Remove la_exp_desc initializer.
602 (d_language::expression_ops): New member function.
603 * eval.c (evaluate_subexp): Update call to expression_ops.
604 * expprint.c (print_subexp): Likewise.
605 (op_name): Likewise.
606 (dump_subexp_body): Likewise.
607 * f-lang.c (f_language_data): Remove la_exp_desc initializer.
608 (f_language::expression_ops): New member function.
609 * go-lang.c (go_language_data): Remove la_exp_desc initializer.
610 (go_language::expression_ops): New member function.
611 * language.c (language_defn::expression_ops): New function.
612 (unknown_language_data): Remove la_exp_desc initializer.
613 (auto_language_data): Likewise.
614 * language.h (language_data): Remove la_exp_desc field.
615 (language_defn::expression_ops): Declare new member function.
616 * m2-lang.c (m2_language_data): Remove la_exp_desc initializer.
617 (m2_language::expression_ops): New member function.
618 * objc-lang.c (objc_language_data): Remove la_exp_desc
619 initializer.
620 * opencl-lang.c (opencl_language_data): Remove la_exp_desc
621 initializer.
622 (opencl_language::expression_ops): New member function.
623 * p-lang.c (pascal_language_data): Remove la_exp_desc initializer.
624 * parse.c (operator_length): Update call to expression_ops.
625 (exp_iterate): Likewise.
626 * rust-lang.c (rust_language_data): Remove la_exp_desc
627 initializer.
628 (ruse_language::expression_ops): New member function.
629
630 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
631
632 * ada-lang.c (ada_language_data): Remove la_varobj_ops
633 initializer.
634 (ada_language::varobj_ops): New member function.
635 * c-lang.c (c_language_data): Remove la_varobj_ops
636 initializer.
637 (cplus_language_data): Likewise.
638 (cplus_language::varobj_ops): New member function.
639 (asm_language_data): Remove la_varobj_ops initializer.
640 (minimal_language_data): Likewise.
641 * d-lang.c (d_language_data): Likewise.
642 * f-lang.c (f_language_data): Likewise.
643 * go-lang.c (go_language_data): Likewise.
644 * language.c (language_defn::varobj_ops): New function.
645 (unknown_language_data): Remove la_varobj_ops
646 initializer.
647 (auto_language_data): Likewise.
648 * language.h (language_data): Remove la_varobj_ops field.
649 (language_defn::varobj_ops): Declare new member function.
650 * m2-lang.c (m2_language_data): Remove la_varobj_ops initializer.
651 * objc-lang.c (objc_language_data): Likewise.
652 * opencl-lang.c (opencl_language_data): Likewise.
653 * p-lang.c (pascal_language_data): Likewise.
654 * rust-lang.c (rust_language_data): Likewise.
655 * varobj.c (varobj_create): Update call to varobj_ops.
656 * varobj.h (default_varobj_ops): Delete define.
657
658 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
659
660 * ada-lang.c (ada_language_data): Remove la_macro_expansion
661 initializer.
662 * c-lang.c (c_language_data): Likewise.
663 (c_language::macro_expansion): New member function.
664 (cplus_language_data): Likewise.
665 (cplus_language::macro_expansion): New member function.
666 (asm_language_data): Likewise.
667 (asm_language::macro_expansion): New member function.
668 (minimal_language_data): Likewise.
669 (minimal_language::macro_expansion): New member function.
670 * d-lang.c (d_language_data): Remove la_macro_expansion
671 initializer.
672 * f-lang.c (f_language_data): Likewise.
673 * go-lang.c (go_language_data): Likewise.
674 * language.c (unknown_language_data): Likewise.
675 (auto_language_data): Likewise.
676 * language.h (language_data): Remove la_macro_expansion field.
677 (language_defn::macro_expansion): New member function.
678 * m2-lang.c (m2_language_data): Remove la_macro_expansion
679 initializer.
680 * objc-lang.c (objc_language_data): Likewise.
681 (objc_language::macro_expansion): New member function.
682 * opencl-lang.c (opencl_language_data): Likewise.
683 (opencl_language::macro_expansion): New member function.
684 * p-lang.c (pascal_language_data): Remove la_macro_expansion
685 initializer.
686 * rust-lang.c (rust_language_data): Likewise.
687 * symtab.c (default_collect_symbol_completion_matches_break_on):
688 Update call to macro_expansion.
689
690 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
691
692 * ada-lang.c (ada_language_data): Remove la_array_ordering
693 initializer.
694 * c-lang.c (c_language_data): Likewise.
695 (cplus_language_data): Likewise.
696 (asm_language_data): Likewise.
697 (minimal_language_data): Likewise.
698 * d-lang.c (d_language_data): Likewise.
699 * dwarf2/read.c (read_array_order): Update for call to
700 array_ordering.
701 * f-lang.c (f_language_data): Remove la_array_ordering
702 initializer.
703 (f_language::array_ordering): New member function.
704 * go-lang.c (go_language_data): Remove la_array_ordering
705 initializer.
706 * language.c (unknown_language_data): Likewise.
707 (auto_language_data): Likewise.
708 * language.h (language_data): Delete la_array_ordering field.
709 (language_defn::array_ordering): New member function.
710 * m2-lang.c (m2_language_data): Remove la_array_ordering
711 initializer.
712 * objc-lang.c (objc_language_data): Likewise.
713 * opencl-lang.c (opencl_language_data): Likewise.
714 * p-lang.c (pascal_language_data): Likewise.
715 * rust-lang.c (rust_language_data): Likewise.
716
717 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
718
719 * ada-lang.c (ada_language_data): Remove la_case_sensitivity
720 initializer.
721 * c-lang.c (c_language_data): Likewise.
722 (cplus_language_data): Likewise.
723 (asm_language_data): Likewise.
724 (minimal_language_data): Likewise.
725 * d-lang.c (d_language_data): Likewise.
726 * f-lang.c (f_language_data): Likewise.
727 (f_language::case_sensitivity): New member function.
728 * go-lang.c (go_language_data): Remove la_case_sensitivity
729 initializer.
730 * language.c (enum case_mode): Moved here from language.h.
731 (case_mode): Make static.
732 (show_case_command): Update for case_sensitivity being a method.
733 (set_case_command): Likewise.
734 (set_range_case): Likewise.
735 (unknown_language_data): Remove la_case_sensitivity initializer.
736 (auto_language_data): Likewise.
737 * language.h (case_mode): Delete, move enum declaration to
738 language.c.
739 (language_data): Delete la_case_sensitivity field.
740 (language_defn::case_sensitivity): New member function.
741 * m2-lang.c (m2_language_data): Remove la_case_sensitivity
742 initializer.
743 * objc-lang.c (objc_language_data): Likewise.
744 * opencl-lang.c (opencl_language_data): Likewise.
745 * p-lang.c (pascal_language_data): Likewise.
746 * rust-lang.c (rust_language_data): Likewise.
747
748 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
749
750 * ada-lang.c (ada_language_data): Remove la_range_check
751 initializer.
752 * c-lang.c (c_language_data): Likewise.
753 (cplus_language_data): Likewise.
754 (asm_language_data): Likewise.
755 (minimal_language_data): Likewise.
756 * d-lang.c (d_language_data): Likewise.
757 * f-lang.c (f_language_data): Likewise.
758 (f_language::range_checking_on_by_default): New member function.
759 * go-lang.c (go_language_data): Remove la_range_check initializer.
760 * language.c (enum range_mode): Moved here from language.h.
761 (range_mode): Made static.
762 (show_range_command): Update to use
763 range_checking_on_by_default.
764 (set_range_command): Likewise.
765 (set_range_case): Likewise.
766 (unknown_language_data): Remove la_range_check initializer.
767 (auto_language_data): Likewise.
768 * language.h (range_mode): Delete. Enum definition moved to
769 language.c.
770 (language_data): Remove la_range_check field.
771 (language_defn::range_checking_on_by_default): New member
772 function.
773 * m2-lang.c (m2_language_data): Remove la_range_check initializer.
774 (m2_language::range_checking_on_by_default): New member function.
775 * objc-lang.c (objc_language_data): Remove la_range_check
776 initializer.
777 * opencl-lang.c (opencl_language_data): Likewise.
778 * p-lang.c (pascal_language_data): Likewise.
779 (pascal_language::range_checking_on_by_default): New member
780 function.
781 * rust-lang.c (rust_language_data): Remove la_range_check
782 initializer.
783 (rust_language::range_checking_on_by_default): New member
784 function.
785
786 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
787
788 * dwarf2/read.c (dwarf2_physname): Remove special case for
789 language_go.
790 * go-lang.c (go_language::store_sym_names_in_linkage_form_p): New
791 member function.
792
793 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
794
795 * ada-lang.c (ada_language_data): Remove
796 la_store_sym_names_in_linkage_form_p initializer.
797 (ada_language::store_sym_names_in_linkage_form_p): New member
798 function.
799 * c-lang.c (c_language_data): Remove
800 la_store_sym_names_in_linkage_form_p initializer.
801 (c_language::store_sym_names_in_linkage_form_p): New member
802 function.
803 (cplus_language_data): Remove la_store_sym_names_in_linkage_form_p
804 initializer.
805 (asm_language_data): Likewise.
806 (asm_language::store_sym_names_in_linkage_form_p): New member
807 function.
808 (minimal_language_data): Remove
809 la_store_sym_names_in_linkage_form_p initializer.
810 (minimal_language::store_sym_names_in_linkage_form_p): New member
811 function.
812 * d-lang.c (d_language_data): Remove
813 la_store_sym_names_in_linkage_form_p initializer.
814 * dwarf2/read.c (dwarf2_physname): Update call to
815 store_sym_names_in_linkage_form_p.
816 * f-lang.c (f_language_data): Remove
817 la_store_sym_names_in_linkage_form_p initializer.
818 * go-lang.c (go_language_data): Remove
819 la_store_sym_names_in_linkage_form_p initializer.
820 * language.c (unknown_language_data): Remove
821 la_store_sym_names_in_linkage_form_p initializer.
822 (unknown_language::store_sym_names_in_linkage_form_p): New member
823 function.
824 (auto_language_data): Remove la_store_sym_names_in_linkage_form_p
825 initializer.
826 (auto_language::store_sym_names_in_linkage_form_p): New member
827 function.
828 * language.h (language_data): Remove
829 la_store_sym_names_in_linkage_form_p member variable.
830 (language_defn::store_sym_names_in_linkage_form_p): New member
831 function.
832 * m2-lang.c (m2_language_data): Remove
833 la_store_sym_names_in_linkage_form_p initializer.
834 * objc-lang.c (objc_language_data): Likewise.
835 * opencl-lang.c (opencl_language_data): Likewise.
836 * p-lang.c (pascal_language_data): Likewise.
837 * rust-lang.c (rust_language_data): Likewise.
838
839 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
840
841 * ada-lang.c (ada_language_data): Remove string_lower_bound
842 initializer.
843 * c-lang.c (c_language_data): Likewise.
844 (cplus_language_data): Likewise.
845 (asm_language_data): Likewise.
846 (minimal_language_data): Likewise.
847 * d-lang.c (d_language_data): Likewise.
848 * f-lang.c (f_language_data): Likewise.
849 * go-lang.c (go_language_data): Likewise.
850 * language.c (unknown_language_data): Likewise.
851 (auto_language_data): Likewise.
852 * language.h (language_data): Remove string_lower_bound field.
853 (language_defn::string_lower_bound): New member function.
854 * m2-lang.c (m2_language_data): Remove string_lower_bound
855 initializer.
856 (m2_language::string_lower_bound): New member function.
857 * objc-lang.c (objc_language_data): Remove string_lower_bound
858 initializer.
859 * opencl-lang.c (opencl_language_data): Likewise.
860 * p-lang.c (pascal_language_data): Likewise.
861 * rust-lang.c (rust_language_data): Likewise.
862 * valops.c (value_cstring): Update call to string_lower_bound.
863 (value_string): Likewise.
864 * value.c (allocate_repeated_value): Likewise.
865
866 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
867
868 * valops.c (value_repeat): Fix incorrect argument name in comment.
869
870 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
871
872 * ada-lang.c (ada_language_data): Remove c_style_arrays
873 initializer.
874 (ada_language::c_style_arrays_p): New member fuction.
875 * c-lang.c (c_language_data): Remove c_style_arrays
876 initializer.
877 (cplus_language_data): Likewise.
878 (asm_language_data): Likewise.
879 (minimal_language_data): Likewise.
880 * d-lang.c (d_language_data): Likewise.
881 * eval.c (ptrmath_type_p): Update call to c_style_arrays_p.
882 * f-lang.c (f_language_data): Remove c_style_arrays initializer.
883 (f_language::c_style_arrays_p): New member function.
884 * go-lang.c (go_language_data): Remove c_style_arrays initializer.
885 * infcall.c (value_arg_coerce): Update call to c_style_arrays_p.
886 * language.c (unknown_language_data): Remove c_style_arrays
887 initializer.
888 (auto_language_data): Likewise.
889 * language.h (language_data): Remove c_style_arrays field.
890 (language_defn::c_style_arrays_p): New member function.
891 * m2-lang.c (m2_language_data): Remove c_style_arrays initializer.
892 (m2_language::c_style_arrays_p): New member function.
893 * objc-lang.c (objc_language_data): Remove c_style_arrays
894 initializer.
895 * opencl-lang.c (opencl_language_data): Likewise.
896 * p-lang.c (pascal_language_data): Likewise.
897 * rust-lang.c (rust_language_data): Likewise.
898 * valarith.c (value_subscript): Update call to c_style_arrays_p,
899 and update local variable to a bool.
900 * valops.c (value_cast): Update call to c_style_arrays_p.
901 (value_array): Likewise.
902 * value.c (coerce_array): Likewise.
903
904 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
905
906 * ada-lang.c (ada_language_data): Remove la_language initializer.
907 * c-lang.c (c_language_data): Likewise.
908 (cplus_language_data): Likewise.
909 (asm_language_data): Likewise.
910 (minimal_language_data): Likewise.
911 * d-lang.c (d_language_data): Likewise.
912 * f-lang.c (f_language_data): Likewise.
913 * go-lang.c (go_language_data): Likewise.
914 * language.c (unknown_language_data): Likewise.
915 (auto_language_data): Likewise.
916 * language.h (language_data): Remove la_language field.
917 (language_defn::language_defn): Initialise la_language field.
918 (language_defn::la_language): New member variable.
919 * m2-lang.c (m2_language_data): Remove la_language field.
920 * objc-lang.c (objc_language_data): Likewise.
921 * opencl-lang.c (opencl_language_data): Likewise.
922 * p-lang.c (pascal_language_data): Likewise.
923 * rust-lang.c (rust_language_data): Likewise.
924
925 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
926
927 * ada-lang.c (ada_extensions): Delete, moved into
928 ada_language::filename_extensions.
929 (ada_language_data): Remove la_filename_extensions initializer.
930 (ada_language::filename_extensions): New member function.
931 * c-lang.c (c_extensions): Delete, moved into
932 c_language::filename_extensions.
933 (c_language_data): Remove la_filename_extensions initializer.
934 (c_language::filename_extensions): New member function.
935 (cplus_extensions): Delete, moved into
936 cplus_language::filename_extensions.
937 (cplus_language_data): Remove la_filename_extensions initializer.
938 (cplus_language::filename_extensions): New member function.
939 (asm_extensions): Delete, moved into
940 asm_language::filename_extensions.
941 (asm_language_data): Remove la_filename_extensions initializer.
942 (asm_language::filename_extensions): New member function.
943 (minimal_language_data): Remove la_filename_extensions
944 initializer.
945 * d-lang.c (d_extensions): Delete, moved into
946 d_language::filename_extensions.
947 (d_language_data): Remove la_filename_extensions initializer.
948 (d_language::filename_extensions): New member function.
949 * f-lang.c (f_extensions): Delete, moved into
950 f_language::filename_extensions.
951 (f_language_data): Remove la_filename_extensions initializer.
952 (f_language::filename_extensions): New member function.
953 * go-lang.c (go_language_data): Remove la_filename_extensions
954 initializer.
955 * language.c (add_set_language_command): Update now that
956 filename_extensions returns a vector.
957 (unknown_language_data): Remove la_filename_extensions
958 initializer.
959 (auto_language_data): Likewise.
960 * language.h (language_data): Remove la_filename_extensions field.
961 (language_defn::filename_extensions): New member function.
962 * m2-lang.c (m2_language_data): Remove la_filename_extensions
963 initializer.
964 * objc-lang.c (objc_extensions): Delete, moved into
965 objc_language::filename_extensions.
966 (objc_language_data): Remove la_filename_extensions initializer.
967 (objc_language::filename_extensions): New member function.
968 * opencl-lang.c (opencl_language_data): Remove
969 la_filename_extensions initializer.
970 * p-lang.c (pascal_extensions): Delete, moved into
971 pascal_language::filename_extensions.
972 (pascal_language_data): Remove la_filename_extensions initializer.
973 (pascal_language::filename_extensions): New member function.
974 * rust-lang.c (rust_extensions): Delete, moved into
975 rust_language::filename_extensions.
976 (rust_language_data): Remove la_filename_extensions initializer.
977 (rust_language::filename_extensions): New member function.
978 * symfile.c (add_filename_language): Add new assert.
979
980 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
981
982 * ada-lang.c (ada_language_data): Remove la_name and
983 la_natural_name initializers.
984 (ada_language::name): New member function.
985 (ada_language::natural_name): New member function.
986 * c-lang.c (c_language_data): Remove la_name and
987 la_natural_name initializers.
988 (c_language::name): New member function.
989 (c_language::natural_name): New member function.
990 (cplus_language_data): Remove la_name and
991 la_natural_name initializers.
992 (cplus_language::name): New member function.
993 (cplus_language::natural_name): New member function.
994 (asm_language_data): Remove la_name and
995 la_natural_name initializers.
996 (asm_language::name): New member function.
997 (asm_language::natural_name): New member function.
998 (minimal_language_data): Remove la_name and
999 la_natural_name initializers.
1000 (minimal_language::name): New member function.
1001 (minimal_language::natural_name): New member function.
1002 * compile/compile.c (compile_to_object): Update call to
1003 lanugage_defn::name.
1004 * d-lang.c (d_language_data): Remove la_name and
1005 la_natural_name initializers.
1006 (d_language::name): New member function.
1007 (d_language::natural_name): New member function.
1008 * expprint.c (print_subexp_standard): Update call to
1009 language_defn::name.
1010 (dump_raw_expression): Likewise
1011 (dump_prefix_expression): Likewise.
1012 * f-lang.c (f_language_data): Remove la_name and
1013 la_natural_name initializers.
1014 (f_language::name): New member function.
1015 (f_language::natural_name): New member function.
1016 * go-lang.c (go_language_data): Remove la_name and
1017 la_natural_name initializers.
1018 (go_language::name): New member function.
1019 (go_language::natural_name): New member function.
1020 * language.c (show_language_command): Update call to
1021 language_defn::name.
1022 (set_language_command): Likewise.
1023 (language_enum): Likewise.
1024 (language_str): Likewise.
1025 (add_set_language_command): Likewise, use
1026 language_defn::natural_name in the doc string.
1027 (unknown_language_data): Remove la_name and
1028 la_natural_name initializers.
1029 (unknown_language::name): New member function.
1030 (unknown_language::natural_name): New member function.
1031 (auto_language_data): Remove la_name and
1032 la_natural_name initializers.
1033 (auto_language::name): New member function.
1034 (auto_language::natural_name): New member function.
1035 (language_lookup_primitive_type_as_symbol): Update call to
1036 language_defn::name.
1037 * language.h (language_data): Remove la_name and la_natural_name
1038 member variables.
1039 (language_defn::name): New member function.
1040 (language_defn::natural_name): New member function.
1041 * m2-lang.c (m2_language_data): Remove la_name and
1042 la_natural_name initializers.
1043 (m2_language::name): New member function.
1044 (m2_language::natural_name): New member function.
1045 * mi/mi-cmd-var.c (mi_cmd_var_info_expression): Update call to
1046 language_defn::natural_name.
1047 * objc-lang.c (objc_language_data): Remove la_name and
1048 la_natural_name initializers.
1049 (objc_language::name): New member function.
1050 (objc_language::natural_name): New member function.
1051 * opencl-lang.c (opencl_language_data): Remove la_name and
1052 la_natural_name initializers.
1053 (opencl_language::name): New member function.
1054 (opencl_language::natural_name): New member function.
1055 * p-lang.c (pascal_language_data): Remove la_name and
1056 la_natural_name initializers.
1057 (pascal_language::name): New member function.
1058 (pascal_language::natural_name): New member function.
1059 * rust-lang.c (rust_language_data): Remove la_name and
1060 la_natural_name initializers.
1061 (rust_language::name): New member function.
1062 (rust_language::natural_name): New member function.
1063 * symtab.c (lookup_language_this): Update call to
1064 language_defn::name.
1065
1066 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
1067
1068 * ada-lang.c (ada_language_data): Remove la_name_of_this
1069 initializer.
1070 * ax-gdb.c (gen_expr): Update call to name_of_this.
1071 * c-exp.y (classify_name): Likewise.
1072 * c-lang.c (c_language_data): Remove la_name_of_this initializer.
1073 (cplus_language_data): Likewise.
1074 (cplus_language::name_of_this): New member function.
1075 (asm_language_data): Remove la_name_of_this initializer.
1076 (minimal_language_data): Likewise.
1077 * d-lang.c (d_language_data): Likewise.
1078 (d_language::name_of_this): New member function.
1079 * expprint.c (print_subexp_standard): Update call to name_of_this.
1080 * f-lang.c (f_language_data): Remove la_name_of_this initializer.
1081 * go-lang.c (go_language_data): Likewise.
1082 * language.c (unknown_language_data): Likewise.
1083 (unknown_language::name_of_this): New member function.
1084 (auto_language_data): Remove la_name_of_this initializer.
1085 (auto_language::name_of_this): New member function.
1086 * language.h (language_data): Delete la_name_of_this member
1087 variable.
1088 (language_defn::name_of_this): New member function.
1089 * m2-lang.c (m2_language_data): Remove la_name_of_this
1090 initializer.
1091 * objc-lang.c (objc_language_data): Likewise.
1092 (objc_language::name_of_this): New member function.
1093 * opencl-lang.c (opencl_language_data): Remove la_name_of_this
1094 initializer.
1095 * p-lang.c (pascal_language_data): Likewise.
1096 (pascal_language::name_of_this): New member function.
1097 * rust-lang.c (rust_language_data): Remove la_name_of_this
1098 initializer.
1099 * symtab.c (lookup_language_this): Update call to name_of_this.
1100 (lookup_symbol_aux): Likewise.
1101 * valops.c (value_of_this): Likewise.
1102
1103 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
1104
1105 * ada-lang.c (ada_language_data): Remove
1106 la_struct_too_deep_ellipsis initializer.
1107 (ada_language::struct_too_deep_ellipsis): New member function.
1108 * c-lang.c (c_language_data): Remove la_struct_too_deep_ellipsis
1109 initializer.
1110 (cplus_language_data): Likewise.
1111 (asm_language_data): Likewise.
1112 (minimal_language_data): Likewise.
1113 * cp-valprint.c (cp_print_value): Update call to
1114 struct_too_deep_ellipsis.
1115 * d-lang.c (d_language_data): Remove la_struct_too_deep_ellipsis
1116 initializer.
1117 * f-lang.c (f_language_data): Likewise.
1118 (f_language::struct_too_deep_ellipsis): New member function.
1119 * go-lang.c (go_language_data): Remove la_struct_too_deep_ellipsis
1120 initializer.
1121 * language.c (unknown_language_data): Likewise.
1122 (auto_language_data): Likewise.
1123 * language.h (language_data): Delete la_struct_too_deep_ellipsis
1124 member variable.
1125 (language_defn::struct_too_deep_ellipsis): New member function.
1126 * m2-lang.c (m2_language_data): Remove la_struct_too_deep_ellipsis
1127 initializer.Q
1128 * objc-lang.c (objc_language_data): Likewise.
1129 * opencl-lang.c (opencl_language_data): Likewise.
1130 * p-lang.c (pascal_language_data): Likewise.
1131 * rust-lang.c (rust_language_data): Likewise.
1132 * valprint.c (val_print_check_max_depth): Update call to
1133 struct_too_deep_ellipsis.
1134
1135 2020-09-16 Felix Willgerodt <felix.willgerodt@intel.com>
1136
1137 * MAINTAINERS (Write After Approval): Add myself.
1138
1139 2020-09-15 Tom Tromey <tom@tromey.com>
1140
1141 * f-valprint.c (f_value_print_inner) <case TYPE_CODE_INT>:
1142 Remove.
1143
1144 2020-09-15 Tom Tromey <tom@tromey.com>
1145
1146 * rust-lang.c (rust_value_print_inner): Remove TYPE_CODE_MEMBERPTR
1147 and TYPE_CODE_METHODPTR cases.
1148 * c-valprint.c (c_value_print_memberptr): Move to valprint.c.
1149 (c_value_print_inner): Update.
1150 * valprint.c (generic_value_print_memberptr): New function, from
1151 c_value_print_memberptr.
1152 (generic_value_print): Use it. Call cplus_print_method_ptr.
1153
1154 2020-09-15 Tom Tromey <tromey@adacore.com>
1155
1156 * python/python-internal.h (PyInt_FromLong): Remove define.
1157 * python/py-value.c (convert_value_from_python): Use
1158 gdb_py_object_from_longest.
1159 * python/py-type.c (typy_get_code): Use
1160 gdb_py_object_from_longest.
1161 * python/py-symtab.c (salpy_get_line): Use
1162 gdb_py_object_from_longest.
1163 * python/py-symbol.c (sympy_get_addr_class, sympy_line): Use
1164 gdb_py_object_from_longest.
1165 * python/py-record.c (recpy_gap_reason_code): Use
1166 gdb_py_object_from_longest.
1167 * python/py-record-btrace.c (recpy_bt_insn_size)
1168 (recpy_bt_func_level, btpy_list_count): Use
1169 gdb_py_object_from_longest.
1170 * python/py-infthread.c (gdbpy_create_ptid_object): Use
1171 gdb_py_object_from_longest. Fix error handling.
1172 * python/py-framefilter.c (bootstrap_python_frame_filters): Use
1173 gdb_py_object_from_longest.
1174 * python/py-frame.c (frapy_type, frapy_unwind_stop_reason): Use
1175 gdb_py_object_from_longest.
1176 * python/py-breakpoint.c (bppy_get_type, bppy_get_number)
1177 (bppy_get_thread, bppy_get_task, bppy_get_hit_count)
1178 (bppy_get_ignore_count): Use gdb_py_object_from_longest.
1179
1180 2020-09-15 Tom Tromey <tromey@adacore.com>
1181
1182 * python/python.c (gdbpy_parameter_value): Use
1183 gdb_py_object_from_ulongest.
1184
1185 2020-09-15 Tom Tromey <tromey@adacore.com>
1186
1187 * python/py-infevents.c (create_register_changed_event_object):
1188 Use gdb_py_object_from_longest.
1189 * python/py-exitedevent.c (create_exited_event_object): Use
1190 gdb_py_object_from_longest.
1191
1192 2020-09-15 Tom Tromey <tromey@adacore.com>
1193
1194 * python/python.c (gdbpy_parameter_value): Use
1195 gdb_py_object_from_longest.
1196 * python/py-type.c (convert_field, typy_range): Use
1197 gdb_py_object_from_longest.
1198 * python/py-tui.c (gdbpy_tui_width, gdbpy_tui_height): Use
1199 gdb_py_object_from_longest.
1200 * python/py-lazy-string.c (stpy_get_length): Use
1201 gdb_py_object_from_longest.
1202 * python/py-infthread.c (thpy_get_num, thpy_get_global_num): Use
1203 gdb_py_object_from_longest.
1204 * python/py-infevents.c (create_memory_changed_event_object): Use
1205 gdb_py_object_from_longest.
1206 * python/py-inferior.c (infpy_get_num): Use
1207 gdb_py_object_from_longest.
1208 (infpy_get_pid): Likewise.
1209
1210 2020-09-15 Tom Tromey <tromey@adacore.com>
1211
1212 * python/python-internal.h (gdb_py_long_from_ulongest): Remove
1213 defines.
1214 * python/py-value.c (valpy_long): Use
1215 gdb_py_object_from_ulongest.
1216 * python/py-symtab.c (salpy_get_pc): Use
1217 gdb_py_object_from_ulongest.
1218 (salpy_get_last): Likewise.
1219 * python/py-record-btrace.c (recpy_bt_insn_pc): Use
1220 gdb_py_object_from_ulongest.
1221 * python/py-lazy-string.c (stpy_get_address): Use
1222 gdb_py_object_from_ulongest.
1223 * python/py-frame.c (frapy_pc): Use gdb_py_object_from_ulongest.
1224 * python/py-arch.c (archpy_disassemble): Use
1225 gdb_py_object_from_ulongest and gdb_py_object_from_longest. Fix
1226 error handling.
1227
1228 2020-09-15 Tom Tromey <tromey@adacore.com>
1229
1230 * python/python-internal.h (gdb_py_long_from_longest): Remove
1231 defines.
1232 * python/py-value.c (valpy_long): Use gdb_py_object_from_longest.
1233 * python/py-type.c (convert_field, typy_get_sizeof): Use
1234 gdb_py_object_from_longest.
1235 * python/py-record-btrace.c (btpy_list_index): Use
1236 gdb_py_object_from_longest.
1237
1238 2020-09-15 Tom Tromey <tromey@adacore.com>
1239
1240 * python/python-internal.h (PyInt_FromSsize_t): Remove define.
1241 * python/py-record.c (recpy_element_number): Use
1242 gdb_py_object_from_longest.
1243 (recpy_gap_number): Likewise.
1244
1245 2020-09-15 Tom Tromey <tromey@adacore.com>
1246
1247 * top.c (ui::ui): Update.
1248 (highest_ui_num): Remove.
1249 * top.h (struct ui) <num>: Remove.
1250
1251 2020-09-15 Tom Tromey <tromey@adacore.com>
1252
1253 * unittests/memory-map-selftests.c (valid_mem_map): Now array.
1254 * ui-style.c (ansi_regex_text): Now array.
1255 * rust-exp.y (number_regex_text): Now array.
1256 * linespec.c (linespec_quote_characters): Now array.
1257 * jit.c (jit_break_name, jit_descriptor_name, reader_init_fn_sym):
1258 Now arrays.
1259
1260 2020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
1261
1262 * debuginfod-support.c (debuginfod_client_deleter): New.
1263 (debuginfod_client_up): New.
1264 (debuginfod_init): Return debuginfod_client_up.
1265 (debuginfod_source_query): Adjust.
1266 (debuginfod_debuginfo_query): Adjust.
1267
1268 2020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
1269
1270 * debuginfod-support.c (debuginfod_source_query): Use
1271 make_unique_xstrdup.
1272
1273 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
1274
1275 * gdbtypes.h (TYPE_INSTANCE_FLAGS): Remove, replace all uses
1276 with `type::instance_flags`.
1277
1278 2020-09-14 Michael Mullin <masmullin@gmail.com>
1279
1280 * xml-tdesc.c [!defined(HAVE_LIBEXPAT)] (tdesc_parse_xml):
1281 Remove baton parameter.
1282
1283 2020-09-14 Pedro Alves <pedro@palves.net>
1284
1285 * Makefile.in (SELFTESTS_SRCS): Add
1286 unittests/enum-flags-selftests.c.
1287 * btrace.c (ftrace_update_caller, ftrace_fixup_calle): Use
1288 btrace_function_flags instead of enum btrace_function_flag.
1289 * compile/compile-c-types.c (convert_qualified): Use
1290 enum_flags::raw.
1291 * compile/compile-cplus-symbols.c (convert_one_symbol)
1292 (convert_symbol_bmsym):
1293 * compile/compile-cplus-types.c (compile_cplus_convert_method)
1294 (compile_cplus_convert_struct_or_union_methods)
1295 (compile_cplus_instance::convert_qualified_base):
1296 * go-exp.y (parse_string_or_char): Add cast to int.
1297 * unittests/enum-flags-selftests.c: New file.
1298 * record-btrace.c (btrace_thread_flag_to_str): Change parameter's
1299 type to btrace_thread_flags from btrace_thread_flag.
1300 (record_btrace_cancel_resume, record_btrace_step_thread): Change
1301 local's type to btrace_thread_flags from btrace_thread_flag. Add
1302 cast in DEBUG call.
1303
1304 2020-09-14 Pedro Alves <pedro@palves.net>
1305
1306 * c-typeprint.c (c_type_print_modifier): Adjust to rename.
1307 * gdbtypes.c (address_space_name_to_int): Rename to ...
1308 (address_space_name_to_type_instance_flags): ... this.
1309 (address_space_int_to_name): Rename to ...
1310 (address_space_type_instance_flags_to_name): ... this.
1311 * gdbtypes.h (address_space_name_to_int): Rename to ...
1312 (address_space_name_to_type_instance_flags): ... this.
1313 (address_space_int_to_name): Rename to ...
1314 (address_space_type_instance_flags_to_name): ... this.
1315 * type-stack.c (type_stack::insert): Adjust to rename.
1316 * type-stack.h (type_stack::insert): Likewise.
1317
1318 2020-09-14 Pedro Alves <pedro@palves.net>
1319 Andrew Burgess <andrew.burgess@embecosm.com>
1320
1321 * avr-tdep.c (avr_address_class_type_flags): Return
1322 type_instance_flags.
1323 (avr_address_class_type_flags_to_name): Take a
1324 type_instance_flags.
1325 (avr_address_class_name_to_type_flags): Return bool and take a
1326 type_instance_flags.
1327 * d-lang.c (build_d_types): Use type::set_instance_flags.
1328 * ft32-tdep.c (ft32_address_class_type_flags): Return
1329 type_instance_flags.
1330 (ft32_address_class_type_flags_to_name): Take a
1331 type_instance_flags.
1332 (ft32_address_class_name_to_type_flags): Return bool and take a
1333 type_instance_flags.
1334 (ft32_gdbarch_init): Use type::set_instance_flags.
1335 * eval.c (fake_method::fake_method): Use type::set_instance_flags.
1336 * gdbarch.h, gdbarch.c: Regenerate.
1337 * gdbarch.sh (address_class_type_flags): Use type_instance_flags.
1338 (address_class_name_to_type_flags): Use type_instance_flags and
1339 bool.
1340 * gdbtypes.c (address_space_name_to_int)
1341 (address_space_int_to_name, make_qualified_type): Use
1342 type_instance_flags.
1343 (make_qualified_type): Use type_instance_flags and
1344 type::set_instance_flags.
1345 (make_type_with_address_space, make_cv_type, make_vector_type)
1346 (check_typedef): Use type_instance_flags.
1347 (recursive_dump_type): Cast type_instance_flags to unsigned for
1348 printing.
1349 (copy_type_recursive): Use type::set_instance_flags.
1350 (gdbtypes_post_init): Use type::set_instance_flags.
1351 * gdbtypes.h (struct type) <instance_flags>: Rename to ...
1352 <m_instance_flags>: ... this.
1353 <instance_flags, set_instance_flags>: New methods.
1354 (TYPE_INSTANCE_FLAGS): Use the instance_flags method.
1355 (SET_TYPE_INSTANCE_FLAGS): New.
1356 (address_space_name_to_int, address_space_int_to_name)
1357 (make_type_with_address_space): Pass flags using
1358 type_instance_flags instead of int.
1359 * stabsread.c (cleanup_undefined_types_noname): Use
1360 type::set_instance_flags.
1361 * s390-tdep.c (s390_address_class_type_flags): Return
1362 type_instance_flags.
1363 (s390_address_class_type_flags_to_name): Take a
1364 type_instance_flags.
1365 (s390_address_class_name_to_type_flags): Return bool and take a
1366 type_instance_flags.
1367 * type-stack.c (type_stack::follow_types): Use
1368 type_instance_flags.
1369 * dwarf2/read.c (read_tag_pointer_type): Use type_instance_flags.
1370
1371 2020-09-14 Tom Tromey <tromey@adacore.com>
1372
1373 * x86-tdep.h (x86_in_indirect_branch_thunk): Update.
1374 * x86-tdep.c (x86_is_thunk_register_name)
1375 (x86_in_indirect_branch_thunk): Update.
1376 * sparc64-tdep.c (sparc64_fpu_register_names)
1377 (sparc64_cp0_register_names, sparc64_register_names)
1378 (sparc64_pseudo_register_names): Now const.
1379 * sparc-tdep.h (struct gdbarch_tdep) <fpu_register_names,
1380 cp0_registers_num>: Now const.
1381 * sparc-tdep.c (sparc_core_register_names)
1382 (sparc32_fpu_register_names, sparc32_cp0_register_names)
1383 (sparc32_pseudo_register_names): Now const.
1384 (validate_tdesc_registers): Update.
1385 * rust-lang.c (rust_extensions): Now const.
1386 * p-lang.c (p_extensions): Now const.
1387 * objc-lang.c (objc_extensions): Now const.
1388 * nto-tdep.c (nto_thread_state_str): Now const.
1389 * moxie-tdep.c (moxie_register_names): Now const.
1390 * mips-tdep.h (struct gdbarch_tdep) <mips_processor_reg_names>:
1391 Now const.
1392 * mips-tdep.c (mips_generic_reg_names, mips_tx39_reg_names)
1393 (mips_linux_reg_names): Now const.
1394 (mips_gdbarch_init): Update.
1395 * microblaze-tdep.c (microblaze_register_names): Now const.
1396 * m68k-tdep.c (m68k_register_names): Now const.
1397 * m32r-tdep.c (m32r_register_names): Now const.
1398 * ia64-tdep.c (ia64_register_names): Now const.
1399 * i386-tdep.h (struct gdbarch_tdep) <register_names,
1400 ymmh_register_names, ymm16h_regnum, mpx_register_names,
1401 k_register_names, zmmh_register_names, xmm_avx512_register_names,
1402 ymm_avx512_register_names, pkeys_register_names>: Now const.
1403 * i386-tdep.c (i386_register_names, i386_zmm_names)
1404 (i386_zmmh_names, i386_k_names, i386_ymm_names, i386_ymmh_names)
1405 (i386_mpx_names, i386_pkeys_names, i386_bnd_names)
1406 (i386_mmx_names, i386_byte_names, i386_word_names): Now const.
1407 * f-lang.c (f_extensions): Now const.
1408 * d-lang.c (d_extensions): Now const.
1409 * csky-tdep.c (csky_register_names): Now const.
1410 * charset.c (default_charset_names, charset_enum): Now const.
1411 (_initialize_charset): Update.
1412 * c-lang.c (c_extensions, cplus_extensions, asm_extensions): Now
1413 const.
1414 * bsd-uthread.c (bsd_uthread_solib_names): Now const.
1415 (bsd_uthread_solib_loaded): Update.
1416 (bsd_uthread_state): Now const.
1417 * amd64-tdep.c (amd64_register_names, amd64_ymm_names)
1418 (amd64_ymm_avx512_names, amd64_ymmh_names)
1419 (amd64_ymmh_avx512_names, amd64_mpx_names, amd64_k_names)
1420 (amd64_zmmh_names, amd64_zmm_names, amd64_xmm_avx512_names)
1421 (amd64_pkeys_names, amd64_byte_names, amd64_word_names)
1422 (amd64_dword_names): Now const.
1423 * agent.c (can_use_agent_enum): Now const.
1424 * ada-tasks.c (task_states, long_task_states): Now const.
1425 * ada-lang.c (known_runtime_file_name_patterns)
1426 (known_auxiliary_function_name_patterns, attribute_names)
1427 (standard_exc, ada_extensions): Now const.
1428
1429 2020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
1430
1431 * bcache.h (struct bcache) <bcache>: Remove constructor.
1432 <m_hash_function, m_compare_function>: Remove.
1433 <~bcache>: Make virtual.
1434 <compare>: Remove static method, introduce virtual method.
1435 <default_hash>: Remove.
1436 <hash>: New virtual method.
1437 * bcache.c (bcache::expand_hash_table): Update.
1438 (bcache::insert): Update.
1439 (bcache::hash): New.
1440 (bcache::compare): Update comment and parameter names.
1441 * gdbtypes.c (types_deeply_equal): Update.
1442 * psymtab.h (struct psymbol_bcache): New struct.
1443 (class psymtab_storage) <psymtab_storage>: Make default.
1444 <psymbol_cache>: Change type to psymbol_bcache.
1445 * psymtab.c (psymtab_storage::psymtab_storage): Remove.
1446 (psymbol_hash): Change to...
1447 (psymbol_bcache::hash): ... this.
1448 (psymbol_compare): Change to...
1449 (psymbol_bcache::compare): ... this.
1450
1451 2020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
1452
1453 * linux-nat.c (linux_nat_wait_1): Don't use inferior_ptid when
1454 checking for initial lwp.
1455
1456 2020-09-14 Tom Tromey <tromey@adacore.com>
1457
1458 * m68k-tdep.c (m68k_extract_return_value): Use
1459 pointer_result_regnum.
1460 (m68k_store_return_value): Likewise.
1461 (m68k_reg_struct_return_p): Handle vectors and arrays.
1462 (m68k_return_value): Handle arrays.
1463 (m68k_svr4_return_value): Fix single-element aggregate handling.
1464 Handle long double. Adjust for embedded ABI.
1465 (m68k_svr4_init_abi): Set pointer_result_regnum.
1466 (m68k_embedded_init_abi): New function.
1467 (m68k_gdbarch_init): Handle Tag_GNU_M68K_ABI_FP.
1468 (m68k_osabi_sniffer): New function.
1469 (_initialize_m68k_tdep): Register osabi sniffer.
1470 * m68k-tdep.h (struct gdbarch_tdep) <pointer_result_regnum>: New
1471 member.
1472
1473 2020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
1474
1475 * xml-support.c (xml_fetch_content_from_file): Replace xfree
1476 with gdb::unique_xmalloc_ptr<char>.
1477
1478 2020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
1479
1480 * xml-support.h (xml_fetch_another): Change type to be a
1481 function_view.
1482 (xml_process_xincludes): Remove baton parameter.
1483 (xml_fetch_content_from_file): Change baton parameter to
1484 dirname.
1485 * xml-support.c (struct xinclude_parsing_data)
1486 <xinclude_parsing_data>: Remove baton parameter.
1487 <fetcher_baton>: Remove.
1488 (xinclude_start_include): Adjust.
1489 (xml_process_xincludes): Adjust.
1490 (xml_fetch_content_from_file): Replace baton parameter with
1491 dirname.
1492 * xml-syscall.c (syscall_parse_xml): Remove baton parameter.
1493 (xml_init_syscalls_info): Use a lambda.
1494 * xml-tdesc.c (tdesc_parse_xml): Remove baton parameter.
1495 (file_read_description_xml): Use a lambda.
1496 (fetch_available_features_from_target): Change baton parameter
1497 to target_ops.
1498 (target_read_description_xml): Use a lambda.
1499 (target_fetch_description_xml): Use a lambda.
1500 (string_read_description_xml): Update.
1501
1502 2020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
1503
1504 * gdbtypes.h (TYPE_ENDIANITY_NOT_DEFAULT): Remove, replace all
1505 uses with type::endianity_is_not_default.
1506
1507 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
1508
1509 * gdbtypes.h (struct type) <endianity_is_not_default,
1510 set_endianity_is_not_default>: New methods.
1511 (TYPE_ENDIANITY_NOT_DEFAULT): Use
1512 type::endianity_is_not_default, change all write call sites to
1513 use type::set_endianity_is_not_default.
1514
1515 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
1516
1517 * gdbtypes.h (TYPE_FIXED_INSTANCE): Remove, replace all
1518 uses with type::is_fixed_instance.
1519
1520 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
1521
1522 * gdbtypes.h (struct type) <is_fixed_instance,
1523 set_is_fixed_instance>: New methods.
1524 (TYPE_FIXED_INSTANCE): Use type::is_fixed_instance, change all
1525 write call sites to use type::set_is_fixed_instance.
1526
1527 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
1528
1529 * gdbtypes.h (TYPE_GNU_IFUNC): Remove, replace all
1530 uses with type::is_gnu_ifunc.
1531
1532 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
1533
1534 * gdbtypes.h (struct type) <is_gnu_ifunc, set_is_gnu_ifunc>: New methods.
1535 (TYPE_GNU_IFUNC): Use type::is_gnu_ifunc, change all write call sites to
1536 use type::set_is_gnu_ifunc.
1537
1538 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
1539
1540 * gdbtypes.h (TYPE_STUB_SUPPORTED): Remove, replace all
1541 uses with type::stub_is_supported.
1542
1543 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
1544
1545 * gdbtypes.h (struct type) <stub_is_supported, set_stub_is_supported>: New methods.
1546 (TYPE_STUB_SUPPORTED): Use type::stub_is_supported, change all write call sites to
1547 use type::set_stub_is_supported.
1548
1549 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
1550
1551 * gdbtypes.h (TYPE_VECTOR): Remove, replace all
1552 uses with type::is_vector.
1553
1554 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
1555
1556 * gdbtypes.h (struct type) <is_vector, set_is_vector>: New methods.
1557 (TYPE_VECTOR): Use type::is_vector, change all write call sites to
1558 use type::set_is_vector.
1559
1560 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
1561
1562 * gdbtypes.h (TYPE_VARARGS): Remove, replace all
1563 uses with type::has_varargs.
1564
1565 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
1566
1567 * gdbtypes.h (struct type) <has_varargs, set_has_varargs>: New methods.
1568 (TYPE_VARARGS): Use type::has_varargs, change all write call sites to
1569 use type::set_has_varargs.
1570
1571 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
1572
1573 * gdbtypes.h (TYPE_PROTOTYPED): Remove, replace all
1574 uses with type::is_prototyped.
1575
1576 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
1577
1578 * gdbtypes.h (struct type) <is_prototyped, set_is_prototyped>:
1579 New methods.
1580 (TYPE_PROTOTYPED): Use type::is_prototyped, change all write
1581 call sites to use type::set_is_prototyped.
1582
1583 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
1584
1585 * gdbtypes.h (TYPE_TARGET_STUB): Remove, replace all
1586 uses with type::target_is_stub.
1587
1588 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
1589
1590 * gdbtypes.h (struct type) <target_is_stub, set_target_is_stub>:
1591 New methods.
1592 (TYPE_TARGET_STUB): Use type::is_stub, change all write call
1593 sites to use type::set_target_is_stub.
1594
1595 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
1596
1597 * gdbtypes.h (TYPE_STUB): Remove, replace all
1598 uses with type::is_stub.
1599
1600 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
1601
1602 * gdbtypes.h (struct type) <is_stub, set_is_stub>: New methods.
1603 (TYPE_STUB): Use type::is_stub, change all write call sites to
1604 use type::set_is_stub.
1605
1606 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
1607
1608 * gdbtypes.h (TYPE_NOSIGN): Remove, replace all uses with
1609 type::has_no_signedness.
1610
1611 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
1612
1613 * gdbtypes.h (struct type) <has_no_signedness,
1614 set_has_no_signedness>: New methods.
1615 (TYPE_NOSIGN): Use type::has_no_signedness, change all write
1616 call sites to use type::set_has_no_signedness.
1617
1618 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
1619
1620 * gdbtypes.h (TYPE_UNSIGNED): Remove, replace all uses with
1621 type::is_unsigned.
1622
1623 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
1624
1625 * gdbtypes.h (struct type) <is_unsigned, set_is_unsigned>: New
1626 methods.
1627 (TYPE_UNSIGNED): Use type::is_unsigned. Change all write call
1628 sites to use type::set_is_unsigned.
1629
1630 2020-09-14 Fredrik Hederstierna <fredrik.hederstierna@verisure.com>
1631 Adam Renquinha <arenquinha@cimeq.qc.ca>
1632
1633 * arm-tdep.c (arm_m_exception_cache): Try use correct stack
1634 pointer and stack frame offset when unwinding.
1635
1636 2020-09-13 Pedro Alves <pedro@palves.net>
1637
1638 * NEWS: Document "-break-insert --qualified".
1639 * mi/mi-cmd-break.c (mi_cmd_break_insert_1): Handle "--qualified".
1640
1641 2020-09-13 Pedro Alves <pedro@palves.net>
1642
1643 * linespec.c (classify_mtype, compare_msyms): Delete.
1644 (search_minsyms_for_name): Remove classification logic. Instead
1645 filter out trampoline symbols if we also found an external
1646 function of the same name.
1647
1648 2020-09-13 Joel Brobecker <brobecker@adacore.com>
1649
1650 * NEWS: Create a new section for the next release branch.
1651 Rename the section of the current branch, now that it has
1652 been cut.
1653
1654 2020-09-13 Joel Brobecker <brobecker@adacore.com>
1655
1656 GDB 10 branch created (8087c3fa8b5d695e3e29e69d70d0b35ec902ac59):
1657 * version.in: Bump version to 11.0.50.DATE-git.
1658
1659 2020-09-12 Joel Brobecker <brobecker@adacore.com>
1660
1661 * infrun.c (namespace selftests): Only define #if GDB_SELF_TEST.
1662
1663 2020-09-11 Moritz Riesterer <moritz.riesterer@intel.com>
1664 Felix Willgerodt <Felix.Willgerodt@intel.com>
1665
1666 * gdbarch.sh: Added bfloat16 type.
1667 * gdbarch.c: Regenerated.
1668 * gdbarch.h: Regenerated.
1669 * gdbtypes.c (floatformats_bfloat16): New struct.
1670 (gdbtypes_post_init): Add builtin_bfloat16.
1671 * gdbtypes.h (struct builtin_type) <builtin_bfloat16>: New member.
1672 (floatformats_bfloat16): New struct.
1673 * i386-tdep.c (i386_zmm_type): Add field "v32_bfloat16"
1674 (i386_ymm_type): Add field "v16_bfloat16"
1675 (i386_gdbarch_init): Add set_gdbarch_bfloat16_format.
1676 * target-descriptions.c (make_gdb_type): Add case TDESC_TYPE_BFLOAT16.
1677 * gdbsupport/tdesc.cc (tdesc_predefined_types): New member bfloat16.
1678 * gdbsupport/tdesc.h (tdesc_type_kind): New member TDESC_TYPE_BFLOAT16.
1679 * features/i386/64bit-avx512.xml: Add bfloat16 type.
1680 * features/i386/64bit-avx512.c: Regenerated.
1681 * features/i386/64bit-sse.xml: Add bfloat16 type.
1682 * features/i386/64bit-sse.c: Regenerated.
1683
1684 2020-09-11 Felix Willgerodt <felix.willgerodt@intel.com>
1685
1686 * i386-tdep.c (i386_zmm_type): Fix field names.
1687 (i386_ymm_type): Fix field names.
1688
1689 2020-09-11 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1690
1691 * breakpoint.c: Fix typo in the help message of the
1692 "set breakpoint condition-evaluation" command.
1693
1694 2020-09-10 Kamil Rytarowski <n54@gmx.com>
1695
1696 * nbsd-nat.c: Include "nat/netbsd-nat.h".
1697 * (nbsd_nat_target::pid_to_exec_file)
1698 (nbsd_nat_target::thread_alive, nbsd_nat_target::thread_name)
1699 (nbsd_nat_target::post_startup_inferior)
1700 (nbsd_nat_target::post_attach, nbsd_nat_target::xfer_partial)
1701 (nbsd_add_threads): Switch local code to common gdb/nat functions.
1702 * (nbsd_pid_to_cmdline): Call sysctl from the global namespace.
1703 * (nbsd_thread_lister): Remove.
1704
1705 2020-09-10 Kamil Rytarowski <n54@gmx.com>
1706
1707 * fork-inferior.c (startup_inferior): Avoid double free.
1708
1709 2020-09-10 Kamil Rytarowski <n54@gmx.com>
1710
1711 * netbsd-nat.h (netbsd_nat::qxfer_siginfo): Add.
1712 * netbsd-nat.c (netbsd_nat::qxfer_siginfo): Likewise.
1713
1714 2020-09-10 Kamil Rytarowski <n54@gmx.com>
1715
1716 * netbsd-nat.h (netbsd_nat::enable_proc_events): Add.
1717 * netbsd-nat.c: Include <sys/ptrace.h>.
1718 * (netbsd_nat::enable_proc_events): Add.
1719
1720 2020-09-10 Kamil Rytarowski <n54@gmx.com>
1721
1722 * netbsd-nat.h: Include "gdbsupport/function-view.h".
1723 * (netbsd_nat::thread_alive, netbsd_nat::thread_name)
1724 (netbsd_nat::for_each_thread): Add.
1725 * netbsd-nat.c: Include "gdbsupport/common-defs.h" and
1726 "gdbsupport/common-debug.h".
1727 * (netbsd_nat::netbsd_thread_lister)
1728 (netbsd_nat::thread_alive, netbsd_nat::thread_name)
1729 (netbsd_nat::for_each_thread): Add.
1730
1731 2020-09-10 Kamil Rytarowski <n54@gmx.com>
1732
1733 * netbsd-nat.h: Include <unistd.h>.
1734 * (netbsd_nat::pid_to_exec_file): Add.
1735 * netbsd-nat.c: Include <sys/types.h> and <sys/sysctl.h>.
1736 * (netbsd_nat::pid_to_exec_file) Add.
1737
1738 2020-09-10 Kamil Rytarowski <n54@gmx.com>
1739
1740 * configure.nat (NATDEPFILES): Add nat/netbsd-nat.o when needed.
1741
1742 2020-09-10 Kamil Rytarowski <n54@gmx.com>
1743
1744 * netbsd-nat.h: New file.
1745 * netbsd-nat.c: Likewise.
1746
1747 2020-09-09 Tom Tromey <tromey@adacore.com>
1748
1749 * ada-lang.c (remove_extra_symbols): Do not increment when
1750 removing an element
1751
1752 2020-09-08 Tom Tromey <tromey@adacore.com>
1753
1754 * gdb_bfd.c (gdb_bfd_open): Call bfd_fopen when fstat fails.
1755
1756 2020-09-08 Tom Tromey <tromey@adacore.com>
1757
1758 PR win32/25302:
1759 * gdb_bfd.c (gdb_bfd_data): Add "st" parameter.
1760 (gdb_bfd_init_data): New function.
1761 (gdb_bfd_open, gdb_bfd_ref): Use gdb_bfd_init_data.
1762
1763 2020-09-07 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1764
1765 * infrun.c (fetch_inferior_event): Use
1766 `switch_to_target_no_thread` to switch the target.
1767
1768 2020-09-06 Tom Tromey <tom@tromey.com>
1769
1770 * symfile.h (dwarf2_free_objfile): Don't declare.
1771
1772 2020-09-03 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
1773
1774 * gdb/i386-tdep.c (i386_floatformat_for_type): Added conditions
1775 to match 16 byte real/complex type generated by Flang compiler.
1776
1777 2020-09-03 Tom de Vries <tdevries@suse.de>
1778
1779 PR breakpoint/26546
1780 * dwarf2/read.c (new_symbol): Tag label symbol without DW_AT_low_pc as
1781 LOC_OPTIMIZED_OUT instead of LOC_LABEL.
1782
1783 2020-09-02 Simon Marchi <simon.marchi@polymtl.ca>
1784
1785 * maint.c (index_digits): New function.
1786 (struct maint_print_section_data): Remove.
1787 (print_bfd_section_info): Remove print_data parameter, add arg
1788 and index_digits.
1789 (print_objfile_section_info): Likewise.
1790 (print_bfd_section_info_maybe_relocated): Likewise (plus
1791 objfile).
1792 (maintenance_info_sections): Adjust calls.
1793
1794 2020-09-02 Tom Tromey <tromey@adacore.com>
1795
1796 * ada-varobj.c (ada_varobj_get_ptr_number_of_children): Return 0
1797 for null pointers.
1798 (ada_varobj_adjust_for_child_access): Special-case null pointers.
1799
1800 2020-09-01 Simon Marchi <simon.marchi@polymtl.ca>
1801
1802 * bcache.h (struct bcache) <insert>: Change type of `added` to
1803 pointer to bool.
1804 * bcache.c (bcache::insert): Likewise.
1805 * gdbtypes.c (check_types_worklist): Adjust.
1806 * psymtab.c (add_psymbol_to_bcache): Adjust.
1807
1808 2020-08-31 Kevin Buettner <kevinb@redhat.com>
1809
1810 * corelow.c (unordered_set): Include.
1811 (class core_target): Add field 'm_core_unavailable_mappings'.
1812 (core_target::build_file_mappings): Print only one warning
1813 per inaccessible file. Add unavailable/broken mappings
1814 to m_core_unavailable_mappings.
1815 (core_target::xfer_partial): Call...
1816 (core_target::xfer_memory_via_mappings): New method.
1817
1818 2020-08-31 Simon Marchi <simon.marchi@polymtl.ca>
1819
1820 * dwarf2/read.c (struct field_info) <non_public_fields>: Change
1821 type to bool.
1822
1823 2020-08-31 Simon Marchi <simon.marchi@polymtl.ca>
1824
1825 * dwarf2/read.c (struct field_info): Fix indentation.
1826
1827 2020-08-31 Simon Marchi <simon.marchi@efficios.com>
1828
1829 * frame-unwind.h (frame_prev_register_ftype): Fix adjective
1830 ordering in comment.
1831 * frame.c (frame_id_eq): Fix indentation.
1832
1833 2020-08-31 Scott Linder <scott@scottlinder.com>
1834 Simon Marchi <simon.marchi@efficios.com>
1835
1836 * inline-frame.c (inline_frame_this_id): Remove assert that prevents
1837 inline frame ids in outer frame.
1838
1839 2020-08-31 Simon Marchi <simon.marchi@efficios.com>
1840
1841 * frame.h (enum frame_id_stack_status) <FID_STACK_OUTER>: New.
1842 * frame.c (fprint_frame_id): Handle FID_STACK_OUTER.
1843 (outer_frame_id): Use FID_STACK_OUTER instead of
1844 FID_STACK_INVALID.
1845 (frame_id_p): Don't check for outer_frame_id.
1846
1847 2020-08-31 Simon Marchi <simon.marchi@efficios.com>
1848
1849 * frame-unwind.c (frame_unwind_got_optimized): Don't set
1850 regnum/frame in value. Call allocate_value_lazy.
1851 * frame.c (frame_unwind_register_value): Use
1852 val_print_not_saved.
1853
1854 2020-08-31 Simon Marchi <simon.marchi@efficios.com>
1855
1856 * gdbtypes.h (NULL_TYPE): Remove, change all uses to nullptr.
1857
1858 2020-08-29 Pedro Alves <pedro@palves.net>
1859
1860 * progspace.c (print_program_space): Use all_inferiors. Switch to
1861 the inferior before calling target_pid_to_str.
1862
1863 2020-08-28 Tom Tromey <tom@tromey.com>
1864
1865 * xcoffread.c (xcoff_end_psymtab): Update comment.
1866 * dbxread.c (dbx_end_psymtab): Update comment.
1867
1868 2020-08-28 Tom de Vries <tdevries@suse.de>
1869
1870 PR breakpoint/26544
1871 * breakpoint.c (parse_breakpoint_sals): Remove const from struct
1872 event_location.
1873 (create_breakpoint): Same.
1874 (base_breakpoint_decode_location): Same.
1875 (bkpt_create_sals_from_location): Same.
1876 (bkpt_decode_location): Same.
1877 (bkpt_probe_create_sals_from_location): Same.
1878 (bkpt_probe_decode_location): Same.
1879 (tracepoint_create_sals_from_location): Same.
1880 (tracepoint_decode_location): Same.
1881 (tracepoint_probe_decode_location): Same.
1882 (strace_marker_create_sals_from_location): Same.
1883 (strace_marker_decode_location): Same.
1884 (create_sals_from_location_default): Same.
1885 (decode_location_default): Same.
1886 * breakpoint.h (struct breakpoint_ops): Same.
1887 (create_breakpoint): Same.
1888 * linespec.h (decode_line_full): Same.
1889 * linespec.c (decode_line_full): Same. Throw error if
1890 result.size () == 0.
1891
1892 2020-08-27 Pedro Alves <pedro@palves.net>
1893
1894 PR gdb/26524
1895 * breakpoint.c (until_break_fsm) <location_breakpoint,
1896 caller_breakpoint>: Delete fields.
1897 <breakpoints>: New field.
1898 <until_break_fsm>: Adjust to save a breakpoint vector instead of
1899 two individual breakpoints.
1900 (until_break_fsm::should_stop): Loop over breakpoints in the
1901 breakpoint vector.
1902 (until_break_fsm::clean_up): Adjust to clear the breakpoints
1903 vector.
1904 (until_break_command): Handle location expanding into multiple
1905 sals.
1906
1907 2020-08-27 Pedro Alves <pedro@palves.net>
1908
1909 PR gdb/26523
1910 * inline-frame.c (stopped_by_user_bp_inline_frame): Also consider
1911 bp_until breakpoints user-specified locations. Update intro
1912 comment.
1913
1914 2020-08-27 Simon Marchi <simon.marchi@polymtl.ca>
1915
1916 * gdb_bfd.h (gdb_bfd_section_iterator, gdb_bfd_section_range,
1917 gdb_bfd_sections): New.
1918 * maint.c (print_bfd_section_info): Change param type to
1919 maint_print_section_data.
1920 (print_objfile_section_info): Likewise.
1921 (print_bfd_section_info_maybe_relocated): Likewise.
1922 (maintenance_info_sections): Use gdb_bfd_sections.
1923
1924 2020-08-25 Shahab Vahedi <shahab@synopsys.com>
1925
1926 * MAINTAINERS: Add ARC target and maintainer.
1927
1928 2020-08-25 Anton Kolesov <anton.kolesov@synopsys.com>
1929
1930 * configure.tgt: ARC support for GNU/Linux.
1931 * Makefile.in (ALL_TARGET_OBJS): Likewise.
1932 * arc-linux-tdep.c: New file.
1933 * arc-tdep.h (ARC_STATUS32_L_MASK, ARC_STATUS32_DE_MASK): Declare.
1934 * arc-tdep.c (arc_write_pc): Use it.
1935
1936 2020-08-25 Shahab Vahedi <shahab@synopsys.com>
1937
1938 * arc-tdep.c (arc_check_for_hardware_loop): New.
1939 * arc-tdep.h (gdbarch_tdep): New field has_hw_loops.
1940
1941 2020-08-25 Shahab Vahedi <shahab@synopsys.com>
1942
1943 * arc-tdep.h: Include "gdbarch.h".
1944
1945 2020-08-25 Shahab Vahedi <shahab@synopsys.com>
1946
1947 * arch/arc.h
1948 (arc_gdbarch_features): New class to stir the selection of target XML.
1949 (arc_create_target_description): Use FEATURES to choose XML target.
1950 (arc_lookup_target_description): Use arc_create_target_description
1951 to create _new_ target descriptions or return the already created
1952 ones if the FEATURES is the same.
1953 * arch/arc.c: Implementation of prototypes described above.
1954 * gdb/arc-tdep.h (arc_regnum enum): Add more registers.
1955 (arc_gdbarch_features_init): Initialize the FEATURES struct.
1956 * arc-tdep.c (*_feature_name): Make feature names consistent.
1957 (arc_register_feature): A new struct to hold information about
1958 registers of a particular target/feature.
1959 (arc_check_tdesc_feature): Check if XML provides registers in
1960 compliance with ARC_REGISTER_FEATURE structs.
1961 (arc_update_acc_reg_names): Add aliases for r58 and r59.
1962 (determine_*_reg_feature_set): Which feature name to look for.
1963 (arc_gdbarch_features_init): Given MACH and ABFD, initialize FEATURES.
1964 (mach_type_to_arc_isa): Convert from a set of binutils machine types
1965 to expected ISA enums to be used in arc_gdbarch_features structs.
1966 * features/Makefile (FEATURE_XMLFILES): Add new files.
1967 * gdb/features/arc/v1-aux.c: New file.
1968 * gdb/features/arc/v1-aux.xml: Likewise.
1969 * gdb/features/arc/v1-core.c: Likewise.
1970 * gdb/features/arc/v1-core.xml: Likewise.
1971 * gdb/features/arc/v2-aux.c: Likewise.
1972 * gdb/features/arc/v2-aux.xml: Likewise.
1973 * gdb/features/arc/v2-core.c: Likewise.
1974 * gdb/features/arc/v2-core.xml: Likewise.
1975 * NEWS (Changes since GDB 9): Announce obsolence of old feature names.
1976
1977 2020-08-25 Gaius Mulley <gaiusmod2@gmail.com>
1978 Andrew Burgess <andrew.burgess@embecosm.com>
1979
1980 PR m2/26372
1981 * m2-exp.y (exp): Improve comment for non_empty_arglist case, add
1982 an assert. Remove single element array indexing pattern as the
1983 MULTI_SUBSCRIPT support will handle this case too.
1984
1985 2020-08-24 Simon Marchi <simon.marchi@polymtl.ca>
1986
1987 * value.h (valprint_check_validity): Move declaration from
1988 here...
1989 * valprint.h (valprint_check_validity): ... to here.
1990
1991 2020-08-24 Simon Marchi <simon.marchi@efficios.com>
1992
1993 * debug.h: New file.
1994 * debug.c (debug_prefixed_vprintf): New function.
1995 * infrun.c (infrun_debug_printf_1): Use debug_prefixed_vprintf.
1996 * linux-nat.c (linux_nat_debug_printf_1): Likewise.
1997
1998 2020-08-24 Simon Marchi <simon.marchi@efficios.com>
1999
2000 * infrun.h (infrun_debug_printf_1): New function declaration.
2001 (infrun_debug_printf): New macro.
2002 * infrun.c (infrun_debug_printf_1): Use infrun_debug_printf
2003 throughout.
2004 (infrun_debug_printf): New function.
2005 * breakpoint.c (should_be_inserted): Use infrun_debug_printf.
2006 (handle_jit_event): Likewise.
2007
2008 2020-08-21 Mark Wielaard <mark@klomp.org>
2009
2010 * ada-lex.l: Extend register warnings diagnostics comment for g++.
2011
2012 2020-08-22 Simon Marchi <simon.marchi@efficios.com>
2013
2014 * frame.c (enum class frame_id_status): New.
2015 (struct frame_info) <this_id::p>: Change type to frame_id_status.
2016 (fprintf_frame): Update.
2017 (compute_frame_id): Set frame id status to "computing" on entry.
2018 Set it back to "not_computed" on failure and to "computed" on
2019 success.
2020 (get_frame_id): Assert the frame id is not being computed.
2021 (create_sentinel_frame): Use frame_id_status::COMPUTED.
2022 (create_new_frame): Likewise.
2023 (frame_cleanup_after_sniffer): Update assert.
2024
2025 2020-08-20 Simon Marchi <simon.marchi@polymtl.ca>
2026
2027 * regcache.c (pid_ptid_regcache_map): New type.
2028 (target_ptid_regcache_map): Remove.
2029 (target_pid_ptid_regcache_map): New type.
2030 (regcaches): Change type to target_pid_ptid_regcache_map.
2031 (get_thread_arch_aspace_regcache): Update.
2032 (regcache_thread_ptid_changed): Update, handle pid-like ptid
2033 case.
2034 (regcaches_size): Update.
2035 (regcache_count): Update.
2036 (registers_changed_ptid_target_pid_test): New.
2037 (_initialize_regcache): Register new test.
2038
2039 2020-08-20 Simon Marchi <simon.marchi@polymtl.ca>
2040
2041 * regcache.c (regcache_count): New.
2042 (struct regcache_test_data): New.
2043 (regcache_test_data_up): New.
2044 (populate_regcaches_for_test): New.
2045 (regcaches_test): Remove.
2046 (get_thread_arch_aspace_regcache_test): New.
2047 (registers_changed_ptid_all_test): New.
2048 (registers_changed_ptid_target_test): New.
2049 (registers_changed_ptid_target_ptid_test): New.
2050 (regcache_thread_ptid_changed): Remove regcache_count lambda.
2051 (_initialize_regcache): Register new tests.
2052
2053 2020-08-20 Simon Marchi <simon.marchi@polymtl.ca>
2054
2055 * regcache.c (test_get_thread_arch_aspace_regcache): Rename to...
2056 (get_thread_arch_aspace_regcache_and_check): ... this. Remove
2057 gdbarch and aspace parameter. Use current inferior's aspace.
2058 Validate regcache's arch value.
2059 (regcaches_test): Update.
2060
2061 2020-08-20 Simon Marchi <simon.marchi@polymtl.ca>
2062
2063 * regcache.c (regcaches_test): Call registers_changed.
2064
2065 2020-08-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2066
2067 * infrun.c (process_event_stop_test): Fix typo "breapoint".
2068
2069 2020-08-19 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
2070
2071 * amd64-tdep.c (amd64_skip_prologue): Using symbol table
2072 to find the end of prologue for flang compiled binaries.
2073 * arm-tdep.c (arm_skip_prologue): Likewise.
2074 * i386-tdep.c (i386_skip_prologue): Likewise.
2075 * producer.c (producer_is_llvm): New function.
2076 (producer_parsing_tests): Added new tests for clang/flang.
2077 * producer.h (producer_is_llvm): New declaration.
2078
2079 2020-08-18 Simon Marchi <simon.marchi@efficios.com>
2080
2081 * linux-nat.c (linux_nat_debug_printf): New function.
2082 (linux_nat_debug_printf_1): New macro. Use throughout the file.
2083
2084 2020-08-18 Aaron Merey <amerey@redhat.com>
2085
2086 * Makefile.in (DEBUGINFOD_CFLAGS, DEBUGINFOD_LIBS): New variables.
2087 (INTERNAL_CFLAGS_BASE): Add DEBUGINFOD_CFLAGS.
2088 (CLIBS): Add DEBUGINFOD_LIBS.
2089
2090 2020-08-17 Sergei Trofimovich <siarheit@google.com>
2091
2092 * ia64-linux-nat.c: Include "gdbarch.h" to declare used
2093 'gdbarch_num_regs'.
2094
2095 2020-08-17 Tom Tromey <tromey@adacore.com>
2096
2097 * ada-varobj.c (ada_varobj_decode_var): Handle case where
2098 ada_get_decoded_value returns NULL.
2099
2100 2020-08-17 Tom Tromey <tromey@adacore.com>
2101
2102 * python/py-inferior.c (infpy_search_memory): Use
2103 gdb_py_object_from_ulongest.
2104 * python/py-infevents.c (create_inferior_call_event_object)
2105 (create_memory_changed_event_object): Use
2106 gdb_py_object_from_ulongest.
2107 * python/py-linetable.c (ltpy_entry_get_pc): Use
2108 gdb_py_object_from_ulongest.
2109
2110 2020-08-17 Simon Marchi <simon.marchi@polymtl.ca>
2111
2112 * loc.c (class symbol_needs_eval_context): Fix indentation.
2113
2114 2020-08-17 Simon Marchi <simon.marchi@polymtl.ca>
2115
2116 * dwarf2/loc.c (dwarf2_loc_desc_get_symbol_read_needs): Use
2117 bool.
2118
2119 2020-08-17 Tom de Vries <tdevries@suse.de>
2120
2121 PR gdb/26393
2122 * gdbtypes.c (dump_dynamic_prop): New function.
2123 (recursive_dump_type): Use dump_dynamic_prop for TYPE_CODE_RANGE.
2124
2125 2020-08-15 Tom de Vries <tdevries@suse.de>
2126
2127 PR backtrace/26390
2128 * stack.c (print_frame_args): Temporarily set the selected
2129 frame to FRAME while printing the frame's arguments.
2130
2131 2020-08-14 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
2132
2133 PR breakpoints/26385
2134 * ppc-linux-nat.c (ppc_linux_nat_target::low_prepare_to_resume):
2135 Always clear watchpoint with PTRACE_SET_DEBUGREG.
2136
2137 2020-08-14 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
2138
2139 * ppc-linux-nat.c (ppc_linux_dreg_interface::detect)
2140 (ppc_linux_nat_target::low_prepare_to_resume): Use ptrace () < 0
2141 and >= to check return value instead of == -1 and != -1.
2142
2143 2020-08-14 Simon Marchi <simon.marchi@polymtl.ca>
2144
2145 * utils.h (class gdb_argv) <as_array_view>: New method.
2146 * utils.c (gdb_argv_as_array_view_test): New.
2147 (_initialize_utils): Register selftest.
2148 * maint.c (maintenance_selftest): Use the new method.
2149
2150 2020-08-13 Kamil Rytarowski <n54@gmx.com>
2151
2152 * target.h (supports_dumpcore, dumpcore): New
2153 function declarations.
2154 * target.c (supports_dumpcore, dumpcore): New
2155 functions.
2156 * target-delegates.c: Rebuild.
2157 * gcore.c (gcore_command): Use target_supports_dumpcore ()
2158 and target_dumpcore ().
2159
2160 2020-08-13 Aaron Merey <amerey@redhat.com>
2161
2162 * debuginfod-support.c: Replace global variables with user_data.
2163
2164 2020-08-13 Simon Marchi <simon.marchi@polymtl.ca>
2165
2166 * maint.c (maintenance_selftest): Split args and pass array_view
2167 to run_tests.
2168
2169 2020-08-12 Luis Machado <luis.machado@linaro.org>
2170
2171 * value.c (check_type_length_before_alloc): Use ULONGEST to store a
2172 type's length.
2173 Use %s and pulongest to print the length.
2174
2175 2020-08-12 Pedro Alves <palves@redhat.com>
2176
2177 * NEWS: Move "Multi-target debugging support" item to the
2178 "Changes since GDB 9" section.
2179
2180 2020-08-12 Pedro Alves <palves@redhat.com>
2181
2182 PR gdb/26336
2183 * progspace.c (program_space::remove_objfile): Invalidate the
2184 frame cache.
2185
2186 2020-08-11 Tom de Vries <tdevries@suse.de>
2187
2188 * MAINTAINERS: Mark ms1 as deleted.
2189
2190 2020-08-10 Luis Machado <luis.machado@linaro.org>
2191
2192 PR gdb/26310
2193
2194 * aarch64-tdep.c (aarch64_analyze_prologue): Track use of SP/FP and
2195 act accordingly.
2196 (aarch64_analyze_prologue_test): Add more unit tests to exercise
2197 movz/str/stur/stp skipping behavior.
2198
2199 2020-08-10 Luis Machado <luis.machado@linaro.org>
2200
2201 * nat/aarch64-sve-linux-sigcontext.h (SVE_PT_REGS_OFFSET): Use
2202 struct user_sve_header instead of struct sve_context.
2203
2204 2020-08-09 Simon Marchi <simon.marchi@polymtl.ca>
2205
2206 * read.h (dwarf2_fetch_die_loc_sect_off,
2207 dwarf2_fetch_die_loc_cu_off): Replace function pointer +
2208 `void *` parameter with function_view.
2209 * read.c (dwarf2_fetch_die_loc_sect_off,
2210 dwarf2_fetch_die_loc_cu_off): Likewise.
2211 * loc.c (get_frame_pc_for_per_cu_dwarf_call): Remove.
2212 (per_cu_dwarf_call): Adjust.
2213 (get_frame_address_in_block_wrapper): Remove.
2214 (indirect_synthetic_pointer): Adjust.
2215 (get_ax_pc): Remove.
2216 (dwarf2_compile_expr_to_ax): Adjust.
2217
2218 2020-08-08 Tom de Vries <tdevries@suse.de>
2219
2220 PR build/26344
2221 * arch/riscv.c (riscv_lookup_target_description): Use an explicit
2222 constructor.
2223 * regcache.c (get_thread_arch_aspace_regcache): Same.
2224
2225 2020-08-07 Tom Tromey <tromey@adacore.com>
2226
2227 * ravenscar-thread.c
2228 (ravenscar_thread_target::set_base_thread_from_ravenscar_task):
2229 New method.
2230 (ravenscar_thread_target::wait): Check
2231 runtime_initialized.
2232 (ravenscar_thread_target::prepare_to_store)
2233 (ravenscar_thread_target::stopped_by_sw_breakpoint)
2234 (ravenscar_thread_target::stopped_by_hw_breakpoint)
2235 (ravenscar_thread_target::stopped_by_watchpoint)
2236 (ravenscar_thread_target::stopped_data_address)
2237 (ravenscar_thread_target::core_of_thread): Use
2238 scoped_restore_current_thread and
2239 set_base_thread_from_ravenscar_task.
2240
2241 2020-08-07 Tom Tromey <tromey@adacore.com>
2242
2243 * ravenscar-thread.c (update_thread_list): Set inferior_ptid.
2244
2245 2020-08-07 Tom Tromey <tromey@adacore.com>
2246
2247 * ravenscar-thread.c (ravenscar_thread_target::wait): Call
2248 update_inferior_ptid before update_thread_list.
2249 (temporarily_change_regcache_ptid): New class.
2250 (ravenscar_thread_target::fetch_registers)
2251 (ravenscar_thread_target::store_registers)
2252 (ravenscar_thread_target::prepare_to_store): Use base thread when
2253 forwarding operation.
2254
2255 2020-08-07 Tom Tromey <tromey@adacore.com>
2256
2257 * ravenscar-thread.c (ravenscar_thread_target::resume): Handle
2258 "is_pid" case.
2259
2260 2020-08-07 Tom Tromey <tromey@adacore.com>
2261
2262 * ravenscar-thread.c (xfer_partial, enable_btrace, add_thread):
2263 New methods.
2264 (ravenscar_thread_target::get_thread_base_cpu): Check m_cpu_map
2265 first.
2266 (ravenscar_thread_target::add_thread): Rename from
2267 ravenscar_add_thread.
2268 (ravenscar_thread_target::update_thread_list): Use a lambda.
2269 (ravenscar_thread_target::xfer_partial): New method.
2270
2271 2020-08-07 Tom Tromey <tromey@adacore.com>
2272
2273 * ada-lang.h (ada_task_list_iterator_ftype): Now a
2274 gdb::function_view.
2275 (iterate_over_live_ada_tasks): Change type of argument.
2276 * ada-tasks.c (iterate_over_live_ada_tasks): Change type
2277 of argument.
2278
2279 2020-08-07 Tom Tromey <tromey@adacore.com>
2280
2281 * ravenscar-thread.c (ravenscar_thread_target) <extra_thread_info>:
2282 Remove.
2283 (ravenscar_thread_target::extra_thread_info): Remove.
2284 (ravenscar_thread_target::pid_to_str): Mention Ravenscar in result;
2285 defer to target beneath for non-Ravenscar threads.
2286
2287 2020-08-07 Tom Tromey <tromey@adacore.com>
2288
2289 * ravenscar-thread.c (ravenscar_thread_target) <get_base_cpu,
2290 get_base_thread_from_ravenscar_task>: Now methods.
2291 <m_cpu_map>: New member.
2292 (ravenscar_thread_target::get_thread_base_cpu): Rename from
2293 ravenscar_get_thread_base_cpu. Check m_cpu_map.
2294 (ravenscar_thread_target::task_is_currently_active): Update.
2295 (ravenscar_thread_target::get_base_thread_from_ravenscar_task):
2296 Now a method.
2297 (ravenscar_thread_target::add_active_thread): Put initial thread
2298 into the m_cpu_map.
2299
2300 2020-08-07 Tom Tromey <tromey@adacore.com>
2301
2302 * ravenscar-thread.c (ravenscar_thread_target::wait): Return
2303 event_ptid.
2304
2305 2020-08-07 Tom Tromey <tromey@adacore.com>
2306
2307 * ravenscar-thread.c (ravenscar_thread_target::wait): Check
2308 runtime_initialized.
2309
2310 2020-08-07 Tom Tromey <tromey@adacore.com>
2311
2312 * ravenscar-thread.c (ravenscar_thread_target): Don't call
2313 add_active_thread.
2314 (ravenscar_thread_target::add_active_thread): Now public.
2315 (ravenscar_inferior_created): Call add_active_thread after pushing
2316 the target.
2317
2318 2020-08-07 Simon Marchi <simon.marchi@polymtl.ca>
2319
2320 * regcache.c (ptid_regcache_map): New type.
2321 (target_ptid_regcache_map): New type.
2322 (regcaches): Change type to target_ptid_regcache_map.
2323 (get_thread_arch_aspace_regcache): Update to regcaches' new
2324 type.
2325 (regcache_thread_ptid_changed): Likewise.
2326 (registers_changed_ptid): Likewise.
2327 (regcaches_size): Likewise.
2328 (regcaches_test): Update.
2329 (regcache_thread_ptid_changed): Update.
2330 * regcache.h (regcache_up): New type.
2331 * gdbsupport/ptid.h (hash_ptid): New struct.
2332
2333 2020-08-07 Simon Marchi <simon.marchi@efficios.com>
2334
2335 * observable.h (thread_ptid_changed): Add parameter
2336 `process_stratum_target *`.
2337 * infrun.c (infrun_thread_ptid_changed): Add parameter
2338 `process_stratum_target *` and use it.
2339 (selftests): New namespace.
2340 (infrun_thread_ptid_changed): New function.
2341 (_initialize_infrun): Register selftest.
2342 * regcache.c (regcache_thread_ptid_changed): Add parameter
2343 `process_stratum_target *` and use it.
2344 (regcache_thread_ptid_changed): New function.
2345 (_initialize_regcache): Register selftest.
2346 * thread.c (thread_change_ptid): Pass target to
2347 thread_ptid_changed observable.
2348
2349 2020-08-06 Caroline Tice <cmtice@google.com>
2350
2351 * dwarf2/read.c (struct dwo_file): Update comment on 'sections' field.
2352 (struct dwp_sections): Update field comments. Add loclists and
2353 rnglists fields.
2354 (struct virtual_v2_dwo_sections): Rename struct to
2355 'virtual_v2_or_v5_dwo_sections'; update comments at top of struct; add
2356 size & offset fields for loclists and rnglists.
2357 (struct dwp_hash_table): Add a 'v5' struct field to the union section.
2358 (create_debug_type_hash_table): Add 'DW_UT_split_type' to the check for
2359 skipping dummy type units.
2360 (create_dwp_hash_table): Update the large comment above the function to
2361 discuss Version 5 DWP files as well, with references. Update all the
2362 version checks in the function to check for version 5 as well. Add new
2363 section at the end to create dwp hash table for version 5.
2364 (create_dwp_v2_section): Rename function to
2365 'create_dwp_v2_or_v5_section'. Update function comment appropriately.
2366 Add V5 to error message text.
2367 (create_dwo_unit_in_dwp_v2): Change calls to create_dwp_v2_section
2368 into calls to create_dwp_v2_or_v5_section.
2369 (create_dwo_unit_in_dwp_v5): New function.
2370 (lookup_dwo_unit_in_dwp): Update conditional statement to explicitly
2371 check for version2; add else clause to handle version 5.
2372 (open_and_init_dwo_file): Add code to check dwarf version & only call
2373 create_debug_types_hash_table (with sections.types) if version is not 5;
2374 else call create_debug_type_hash_table, with sections.info.
2375 (dwarf2_locate_v2_dwp_sections): Update function comment to mention
2376 version 5.
2377 (dwarf2_locate_v5_dwp_sections): New function.
2378 (open_and_init_dwp_file): Add else-if clause for version 5 to call
2379 bfd_map_over_sections with dwarf2_locate_v5_dwp_sections.
2380
2381 2020-08-06 Simon Marchi <simon.marchi@efficios.com>
2382
2383 * regcache.h (class regcache): Remove friend
2384 registers_changed_ptid.
2385 <regcache_thread_ptid_changed>: Remove.
2386 <regcaches>: Remove.
2387 * regcache.c (regcache::regcaches): Rename to...
2388 (regcaches): ... this. Make static.
2389 (get_thread_arch_aspace_regcache): Update.
2390 (regcache::regcache_thread_ptid_changed): Rename to...
2391 (regcache_thread_ptid_changed): ... this. Update.
2392 (class regcache_access): Remove.
2393 (regcaches_test): Update.
2394 (_initialize_regcache): Update.
2395 * sparc64-tdep.c, dwarf2/index-write.c, record-btrace.c: Include
2396 <forward_list>.
2397
2398 2020-08-06 Simon Marchi <simon.marchi@efficios.com>
2399
2400 * regcache.h (class regcache) <current_regcache>: Rename to...
2401 <regcaches>: ... this. Move doc here.
2402 * regcache.c (regcache::current_regcache) Rename to...
2403 (regcache::regcaches): ... this. Move doc to header.
2404 (get_thread_arch_aspace_regcache): Update.
2405 (regcache::regcache_thread_ptid_changed): Update.
2406 (registers_changed_ptid): Update.
2407 (class regcache_access) <current_regcache_size>: Rename to...
2408 <regcaches_size>: ... this.
2409 (current_regcache_test): Rename to...
2410 (regcaches_test): ... this.
2411 (_initialize_regcache): Update.
2412
2413 2020-08-06 Victor Collod <vcollod@nvidia.com>
2414
2415 * amd64-tdep.c (amd64_analyze_prologue): Fix incorrect comment.
2416
2417 2020-08-05 Kevin Buettner <kevinb@redhat.com>
2418
2419 * corelow.c (core_target::build_file_mappings): Don't output
2420 null pathname in warning.
2421
2422 2020-08-05 Simon Marchi <simon.marchi@polymtl.ca>
2423
2424 * gdb.dwarf2/clztest.exp, gdb.dwarf2/dw2-common-block.exp,
2425 gdb.dwarf2/dw2-dup-frame.exp, gdb.dwarf2/dw2-reg-undefined.exp,
2426 gdb.dwarf2/dw2-single-line-discriminators.exp,
2427 dw2-undefined-ret-addr.exp: Pass nopie to compilation options.
2428
2429 2020-08-05 Tom Tromey <tromey@adacore.com>
2430
2431 PR rust/26197:
2432 * dwarf2/read.c (alloc_rust_variant): Handle univariant case.
2433 (quirk_rust_enum): Call alloc_rust_variant for univariant case.
2434 Fix off-by-one and type size errors in ordinary case.
2435
2436 2020-08-05 Tom de Vries <tdevries@suse.de>
2437
2438 * gdbtypes.c (type_not_allocated, type_not_associated): Use
2439 "prop->const_val () == 0" instead of "prop->const_val () != 0".
2440
2441 2020-08-04 Simon Marchi <simon.marchi@efficios.com>
2442
2443 * frame.h (frame_id_p): Return bool.
2444 (frame_id_artificial_p): Return bool.
2445 (frame_id_eq): Return bool.
2446 (has_stack_frames): Return bool.
2447 (get_selected_frame): Fix typo in comment.
2448 (get_frame_pc_if_available): Return bool.
2449 (get_frame_address_in_block_if_available): Return bool.
2450 (get_frame_func_if_available): Return bool.
2451 (read_frame_register_unsigned): Return bool.
2452 (get_frame_register_bytes): Return bool.
2453 (safe_frame_unwind_memory): Return bool.
2454 (deprecated_frame_register_read): Return bool.
2455 (frame_unwinder_is): Return bool.
2456 * frame.c (struct frame_info) <prev_arch::p>: Change type to
2457 bool.
2458 <this_id::p>: Likewise.
2459 <prev_p>: Likewise.
2460 (frame_stash_add): Return bool.
2461 (get_frame_id): Use bool.
2462 (frame_id_build_special) Use bool.
2463 (frame_id_build_unavailable_stack): Use bool.
2464 (frame_id_build): Use bool.
2465 (frame_id_p): Return bool, use true/false instead of 1/0.
2466 (frame_id_artificial_p): Likewise.
2467 (frame_id_eq): Likewise.
2468 (frame_id_inner): Likewise.
2469 (get_frame_func_if_available): Likewise.
2470 (read_frame_register_unsigned): Likewise.
2471 (deprecated_frame_register_read): Likewise.
2472 (get_frame_register_bytes): Likewise.
2473 (has_stack_frames): Likewise.
2474 (inside_main_func): Likewise.
2475 (inside_entry_func): Likewise.
2476 (get_frame_pc_if_available): Likewise.
2477 (get_frame_address_in_block_if_available): Likewise.
2478 (frame_unwinder_is): Likewise.
2479 (safe_frame_unwind_memory): Likewise.
2480 (frame_unwind_arch): Likewise.
2481
2482 2020-08-04 Simon Marchi <simon.marchi@efficios.com>
2483
2484 * frame.c (frame_info) <prev_func> <p>: Rename to status, change
2485 type to cached_copy_status.
2486 (fprintf_frame): Adjust.
2487 (get_frame_func_if_available): Adjust.
2488 (frame_cleanup_after_sniffer): Adjust.
2489
2490 2020-08-04 Mark Wielaard <mark@klomp.org>
2491
2492 * MAINTAINERS (Write After Approval): Update email address.
2493
2494 2020-08-04 Simon Marchi <simon.marchi@polymtl.ca>
2495
2496 * gdbtypes.h (TYPE_DYN_PROP_ADDR): Remove, replace uses with
2497 dynamic_prop::const_val.
2498
2499 2020-08-04 Simon Marchi <simon.marchi@polymtl.ca>
2500
2501 * gdbtypes.h (TYPE_DYN_PROP_KIND): Remove, replace uses with
2502 dynamic_prop::kind.
2503
2504 2020-08-04 Simon Marchi <simon.marchi@polymtl.ca>
2505
2506 * gdbtypes.h (TYPE_DYN_PROP_BATON): Remove.
2507
2508 2020-08-04 Jose E. Marchesi <jose.marchesi@oracle.com>
2509
2510 * configure.tgt: Set gdb_sim for bpf-*-* targets.
2511
2512 2020-08-04 Weimin Pan <weimin.pan@oracle.com>
2513 Jose E. Marchesi <jose.marchesi@oracle.com>
2514
2515 * configure.tgt: Add entry for bpf-*-*.
2516 * Makefile.in (ALL_TARGET_OBS): Add bpf-tdep.o
2517 (ALLDEPFILES): Add bpf-tdep.c.
2518 * bpf-tdep.c: New file.
2519 * MAINTAINERS: Add bpf target and maintainer.
2520 * NEWS: Mention the support for the new target.
2521
2522 2020-08-04 Tom de Vries <tdevries@suse.de>
2523
2524 PR symtab/23270
2525 * dwarf2/read.c (find_partial_die): Change internal error into Dwarf
2526 Error.
2527
2528 2020-08-03 John Baldwin <jhb@FreeBSD.org>
2529
2530 * syscalls/freebsd.xml: Regenerate.
2531
2532 2020-08-03 John Baldwin <jhb@FreeBSD.org>
2533
2534 * syscalls/update-freebsd.sh: Fix usage and year range.
2535
2536 2020-08-03 Tom de Vries <tdevries@suse.de>
2537
2538 PR symtab/26333
2539 * dwarf2/read.c (dwarf_decode_lines_1): Ignore
2540 DW_LNE_lo_user/DW_LNE_hi_user range.
2541
2542 2020-07-30 Simon Marchi <simon.marchi@polymtl.ca>
2543
2544 PR ada/26318
2545 * ada-lang.c (ada_modulus): Return 0 if property is not of const
2546 kind.
2547
2548 2020-07-30 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2549
2550 * breakpoint.c (set_breakpoint_condition): Do minor refactoring.
2551
2552 2020-07-30 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2553
2554 * breakpoint.c (set_breakpoint_condition): Update the condition
2555 expressions after checking that the input condition string parses
2556 successfully and does not contain junk at the end.
2557
2558 2020-07-30 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2559
2560 * breakpoint.c (set_breakpoint_condition): Update the
2561 condition string after parsing the new condition successfully.
2562
2563 2020-07-30 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
2564
2565 * proc-api.c (_STRUCTURED_PROC): Don't define.
2566 * proc-events.c: Likewise.
2567 * proc-flags.c: Likewise.
2568 * proc-why.c: Likewise.
2569 * procfs.c: Likewise.
2570
2571 * Makefile.in (INTERNAL_CPPFLAGS): Add LARGEFILE_CPPFLAGS.
2572 * configure, config.in: Regenerate.
2573
2574 2020-07-30 Tom de Vries <tdevries@suse.de>
2575
2576 PR build/26320
2577 * ui-style.h (struct ui_file_style::color): Wrap m_value and
2578 m_red/m_green/m_blue in a union.
2579
2580 2020-07-29 Tom de Vries <tdevries@suse.de>
2581
2582 PR tdep/26280
2583 * s390-tdep.c (s390_displaced_step_fixup): Fix Wmaybe-uninitialized.
2584
2585 2020-07-28 Tom Tromey <tromey@adacore.com>
2586
2587 PR symtab/26270:
2588 * symtab.h (find_pc_partial_function_sym): Declare.
2589 * cli/cli-cmds.c (disassemble_command): Use
2590 find_pc_partial_function_sym. Check asm_demangle.
2591 * blockframe.c (cache_pc_function_sym): New global.
2592 (cache_pc_function_name): Remove.
2593 (clear_pc_function_cache): Update.
2594 (find_pc_partial_function_sym): New function, from
2595 find_pc_partial_function.
2596 (find_pc_partial_function): Rewrite using
2597 find_pc_partial_function_sym.
2598
2599 2020-07-28 Tom Tromey <tromey@adacore.com>
2600
2601 * cli/cli-cmds.c (_initialize_cli_cmds): Rearrange "disassemble"
2602 help. Add usage.
2603
2604 2020-07-28 Tom Tromey <tromey@adacore.com>
2605
2606 * dwarf2/expr.c (dwarf_expr_context::execute_stack_op)
2607 <DW_OP_GNU_variable_value>: Cast to address type.
2608
2609 2020-07-28 Kamil Rytarowski <n54@gmx.com>
2610
2611 * nbsd-nat.h (nbsd_nat_target::xfer_partial): New declaration.
2612 * nbsd-nat.c (nbsd_nat_target::xfer_partial): New function.
2613 * nbsd-tdep.c (nbsd_gdbarch_data_handle, struct nbsd_gdbarch_data)
2614 (init_nbsd_gdbarch_data, get_nbsd_gdbarch_data)
2615 (nbsd_get_siginfo_type): New.
2616 (nbsd_init_abi): Install gdbarch "get_siginfo_type" method.
2617 (_initialize_nbsd_tdep): New.
2618
2619 2020-07-28 H.J. Lu <hongjiu.lu@intel.com>
2620
2621 PR binutils/26301
2622 * configure: Regenerated.
2623
2624 2020-07-28 H.J. Lu <hongjiu.lu@intel.com>
2625
2626 PR binutils/26301
2627 * configure: Regenerated.
2628
2629 2020-07-28 Andrew Burgess <andrew.burgess@embecosm.com>
2630
2631 * python/py-frame.c: Remove 'user-regs.h' include.
2632 (frapy_read_register): Rewrite to make use of
2633 gdbpy_parse_register_id.
2634 * python/py-registers.c (gdbpy_parse_register_id): New function,
2635 moved here from python/py-unwind.c. Updated the return type, and
2636 also accepts register descriptor objects.
2637 * python/py-unwind.c: Remove 'user-regs.h' include.
2638 (pyuw_parse_register_id): Moved to python/py-registers.c.
2639 (unwind_infopy_add_saved_register): Update to use
2640 gdbpy_parse_register_id.
2641 (pending_framepy_read_register): Likewise.
2642 * python/python-internal.h (gdbpy_parse_register_id): Declare.
2643
2644 2020-07-28 Andrew Burgess <andrew.burgess@embecosm.com>
2645
2646 * python/py-registers.c: Add 'user-regs.h' include.
2647 (register_descriptor_iter_find): New function.
2648 (register_descriptor_iterator_object_methods): New static global
2649 methods array.
2650 (register_descriptor_iterator_object_type): Add pointer to methods
2651 array.
2652
2653 2020-07-27 John Baldwin <jhb@FreeBSD.org>
2654
2655 * fbsd-nat.h: Include <osreldate.h>. Define USE_SIGTRAP_SIGINFO
2656 for all architectures on FreeBSD 11.3 and later.
2657
2658 2020-07-27 Tom Tromey <tromey@adacore.com>
2659
2660 * gcore.h (load_corefile): Don't declare.
2661
2662 2020-07-27 Tom de Vries <tdevries@suse.de>
2663
2664 * configure.ac: Fix sys/sockets.h -> sys/socket.h typo.
2665 * config.in: Regenerate.
2666 * configure: Regenerate.
2667
2668 2020-07-26 Eli Zaretskii <eliz@gnu.org>
2669
2670 * configure.ac (AC_CHECK_HEADERS): Check for sys/socket.h and
2671 ws2tcpip.h. When checking whether socklen_t type is defined, use
2672 ws2tcpip.h if it is available and sys/socket.h isn't.
2673 * configure: Regenerate.
2674 * config.in: Regenerate.
2675
2676 2020-07-25 Andrew Burgess <andrew.burgess@embecosm.com>
2677
2678 PR fortran/23051
2679 PR fortran/26139
2680 * valops.c (value_ind): Pass address to
2681 readjust_indirect_value_type.
2682 * value.c (readjust_indirect_value_type): Make parameter
2683 non-const, and add extra address parameter. Resolve original type
2684 before using it.
2685 * value.h (readjust_indirect_value_type): Update function
2686 signature and comment.
2687
2688 2020-07-25 Tom de Vries <tdevries@suse.de>
2689
2690 PR symtab/26243
2691 * dwarf2/read.c (lnp_state_machine::record_line): Ignore zero line
2692 entries.
2693
2694 2020-07-24 Aaron Merey <amerey@redhat.com>
2695
2696 * Makefile.in: Replace LIBDEBUGINFOD with DEBUGINFOD_LIBS.
2697 * configure: Rebuild.
2698
2699 2020-07-23 Kevin Buettner <kevinb@redhat.com>
2700
2701 PR corefiles/26294
2702 * corelow.c (_initialize_corelow): Add period to help text
2703 for "maintenance print core-file-backed-mappings".
2704
2705 2020-07-23 Pedro Alves <pedro@palves.net>
2706
2707 * frame-unwind.c (frame_unwind_try_unwinder): On exception, don't
2708 touch THIS_CACHE/THIS_FRAME if the frame cache was cleared
2709 meanwhile.
2710 * frame.c (frame_cache_generation, get_frame_cache_generation):
2711 New.
2712 (reinit_frame_cache): Increment FRAME_CACHE_GENERATION.
2713 (get_prev_frame_if_no_cycle): On exception, don't touch
2714 PREV_FRAME/THIS_FRAME if the frame cache was cleared meanwhile.
2715 * frame.h (get_frame_cache_generation): Declare.
2716
2717 2020-07-23 Tom de Vries <tdevries@suse.de>
2718
2719 PR tui/26282
2720 * tui/tui-winsource.h (struct tui_source_windows::tui_source_windows):
2721 New default constructor.
2722
2723 2020-07-23 Andrew Burgess <andrew.burgess@embecosm.com>
2724
2725 * disasm.c (do_mixed_source_and_assembly_deprecated): Don't
2726 exclude non-statement entries.
2727
2728 2020-07-22 Kevin Buettner <kevinb@redhat.com>
2729
2730 * NEWS (New commands): Mention new command
2731 "maintenance print core-file-backed-mappings".
2732
2733 2020-07-22 Kevin Buettner <kevinb@redhat.com>
2734
2735 * corelow.c (gdbcmd.h): Include.
2736 (core_target::info_proc_mappings): New method.
2737 (get_current_core_target): New function.
2738 (maintenance_print_core_file_backed_mappings): New function.
2739 (_initialize_corelow): Add core-file-backed-mappings to
2740 "maint print" commands.
2741
2742 2020-07-22 Kevin Buettner <kevinb@redhat.com>
2743
2744 * linux-tdep.c (dump_note_entry_p): New function.
2745 (linux_dump_mapping_p_ftype): New typedef.
2746 (linux_find_memory_regions_full): Add new parameter,
2747 should_dump_mapping_p.
2748 (linux_find_memory_regions): Adjust call to
2749 linux_find_memory_regions_full.
2750 (linux_make_mappings_core_file_notes): Use dump_note_entry_p in
2751 call to linux_find_memory_regions_full.
2752
2753 2020-07-22 Kevin Buettner <kevinb@redhat.com>
2754
2755 * corelow.c (solist.h, unordered_map): Include.
2756 (class core_target): Add field m_core_file_mappings and
2757 method build_file_mappings.
2758 (core_target::core_target): Call build_file_mappings.
2759 (core_target::~core_target): Free memory associated with
2760 m_core_file_mappings.
2761 (core_target::build_file_mappings): New method.
2762 (core_target::xfer_partial): Use m_core_file_mappings
2763 for memory transfers.
2764 * linux-tdep.c (linux_read_core_file_mappings): New
2765 function.
2766 (linux_core_info_proc_mappings): Rewrite to use
2767 linux_read_core_file_mappings.
2768 (linux_init_abi): Register linux_read_core_file_mappings.
2769
2770 2020-07-22 Kevin Buettner <kevinb@redhat.com>
2771
2772 * arch-utils.c (default_read_core_file_mappings): New function.
2773 * arch-utils.c (default_read_core_file_mappings): Declare.
2774 * gdbarch.sh (read_core_file_mappings): New gdbarch method.
2775 * gdbarch.h, gdbarch.c: Regenerate.
2776
2777 2020-07-22 Kevin Buettner <kevinb@redhat.com>
2778
2779 PR corefiles/25631
2780 * corelow.c (core_target:xfer_partial): Revise
2781 TARGET_OBJECT_MEMORY case to consider non-SEC_HAS_CONTENTS
2782 case after first checking the stratum beneath the core
2783 target.
2784 (has_all_memory): Return true.
2785 * target.c (raw_memory_xfer_partial): Revise comment
2786 regarding use of has_all_memory.
2787
2788 2020-07-22 Kevin Buettner <kevinb@redhat.com>
2789
2790 * exec.h (section_table_xfer_memory): Revise declaration,
2791 replacing section name parameter with an optional callback
2792 predicate.
2793 * exec.c (section_table_xfer_memory): Likewise.
2794 * bfd-target.c, exec.c, target.c, corelow.c: Adjust all callers
2795 of section_table_xfer_memory.
2796
2797 2020-07-22 Tom Tromey <tromey@adacore.com>
2798
2799 * mi/mi-cmd-stack.c (list_args_or_locals): Use
2800 lookup_symbol_search_name.
2801
2802 2020-07-22 Andrew Burgess <andrew.burgess@embecosm.com>
2803
2804 * python/py-registers.c (gdbpy_register_object_data_init): Remove
2805 redundant local variable.
2806 (gdbpy_get_register_descriptor): Extract descriptor vector as a
2807 reference, not pointer, update code accordingly.
2808
2809 2020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
2810 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2811
2812 * objfiles.h (struct objfile) <skip_jit_symbol_lookup>: New field.
2813 * jit.c (jit_breakpoint_re_set_internal): Use the
2814 `skip_jit_symbol_lookup` field.
2815
2816 2020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
2817 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2818
2819 * jit.c (jit_read_descriptor): Define the descriptor address once,
2820 use twice.
2821 (jit_breakpoint_deleted): Move the declaration of the loop variable
2822 `iter` into the loop header.
2823 (jit_breakpoint_re_set_internal): Move the declaration of the local
2824 variable `objf_data` to the first point of definition.
2825 (jit_event_handler): Move the declaration of local variables
2826 `code_entry`, `entry_addr`, and `objf` to their first point of use.
2827 Rename `objf` to `jited`.
2828
2829 2020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
2830
2831 * jit.h (struct jiter_objfile_data) <jiter_objfile_data, objfile>:
2832 Remove.
2833 * jit.c (get_jiter_objfile_data): Update.
2834
2835 2020-07-22 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2836 Simon Marchi <simon.marchi@polymtl.ca>
2837
2838 * jit.c (struct jit_program_space_data): Remove.
2839 (jit_program_space_key): Remove.
2840 (jiter_objfile_data::~jiter_objfile_data): Remove program space
2841 stuff.
2842 (get_jit_program_space_data): Remove.
2843 (jit_breakpoint_deleted): Iterate on all of the program space's
2844 objfiles.
2845 (jit_inferior_init): Likewise.
2846 (jit_breakpoint_re_set_internal): Likewise. Also change return
2847 type to void.
2848 (jit_breakpoint_re_set): Pass current_program_space to
2849 jit_breakpoint_re_set_internal.
2850
2851 2020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
2852
2853 * jit.h (struct jiter_objfile_data) <cached_code_address,
2854 jit_breakpoint>: Move to here from ...
2855 * jit.c (jit_program_space_data): ... here.
2856 (jiter_objfile_data::~jiter_objfile_data): Update.
2857 (jit_breakpoint_deleted): Update.
2858 (jit_breakpoint_re_set_internal): Update.
2859
2860 2020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
2861
2862 * jit.c (jiter_objfile_data::~jiter_objfile_data): Remove some
2863 checks.
2864 (jit_read_descriptor): Remove NULL check.
2865 (jit_event_handler): Add an assertion.
2866
2867 2020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
2868
2869 * jit.h (struct jit_objfile_data): Split into...
2870 (struct jiter_objfile_data): ... this ...
2871 (struct jited_objfile_data): ... and this.
2872 * objfiles.h (struct objfile) <jit_data>: Remove.
2873 <jiter_data, jited_data>: New fields.
2874 * jit.c (jit_objfile_data::~jit_objfile_data): Rename to ...
2875 (jiter_objfile_data::~jiter_objfile_data): ... this.
2876 (get_jit_objfile_data): Rename to ...
2877 (get_jiter_objfile_data): ... this.
2878 (add_objfile_entry): Update.
2879 (jit_read_descriptor): Use get_jiter_objfile_data.
2880 (jit_find_objf_with_entry_addr): Use objfile's jited_data field.
2881 (jit_breakpoint_re_set_internal): Use get_jiter_objfile_data.
2882 (jit_inferior_exit_hook): Use objfile's jited_data field.
2883
2884 2020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
2885
2886 * jit.h: Forward-declare `struct minimal_symbol`.
2887 (struct jit_objfile_data): Migrate to here from jit.c; also add a
2888 constructor, destructor, and an objfile* field.
2889 * jit.c (jit_objfile_data): Remove.
2890 (struct jit_objfile_data): Migrate from here to jit.h.
2891 (jit_objfile_data::~jit_objfile_data): New destructor
2892 implementation with code moved from free_objfile_data.
2893 (free_objfile_data): Delete.
2894 (get_jit_objfile_data): Update to use the jit_data field of objfile.
2895 (jit_find_objf_with_entry_addr): Ditto.
2896 (jit_inferior_exit_hook): Ditto.
2897 (_initialize_jit): Remove the call to
2898 register_objfile_data_with_cleanup.
2899 * objfiles.h (struct objfile) <jit_data>: New field.
2900
2901 2020-07-22 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2902
2903 * jit.h: Forward-declare `struct objfile`.
2904 (jit_event_handler): Add a second parameter, the JITer objfile.
2905 * jit.c (jit_read_descriptor): Change the signature to take the
2906 JITer objfile as an argument instead of the jit_program_space_data.
2907 (jit_inferior_init): Update the call to jit_read_descriptor.
2908 (jit_event_handler): Use the new JITer objfile argument when calling
2909 jit_read_descriptor.
2910 * breakpoint.c (handle_jit_event): Update the call to
2911 jit_event_handler to pass the JITer objfile.
2912
2913 2020-07-21 John Baldwin <jhb@FreeBSD.org>
2914
2915 * gdbarch.c: Regenerate.
2916 * gdbarch.h: Regenerate.
2917 * gdbarch.sh (handle_segmentation_fault): Remove method.
2918 * infrun.c (handle_segmentation_fault): Remove.
2919 (print_signal_received_reason): Remove call to
2920 handle_segmentation_fault.
2921
2922 2020-07-21 John Baldwin <jhb@FreeBSD.org>
2923
2924 * sparc64-linux-tdep.c (sparc64_linux_handle_segmentation_fault):
2925 Rename to sparc64_linux_report_signal_info and add siggnal
2926 argument.
2927 (sparc64_linux_init_abi): Use sparc64_linux_report_signal_info
2928 instead of sparc64_linux_handle_segmentation_fault.
2929
2930 2020-07-21 John Baldwin <jhb@FreeBSD.org>
2931
2932 * amd64-linux-tdep.c (amd64_linux_init_abi_common): Use
2933 i386_linux_report_signal_info instead of
2934 i386_linux_handle_segmentation_fault.
2935 * i386-linux-tdep.c (i386_linux_handle_segmentation_fault): Rename
2936 to i386_linux_report_signal_info and add siggnal argument.
2937 (i386_linux_init_abi): Use i386_linux_report_signal_info instead
2938 of i386_linux_handle_segmentation_fault.
2939 * i386-linux-tdep.h (i386_linux_handle_segmentation_fault): Rename
2940 to i386_linux_report_signal_info and add siggnal argument.
2941
2942 2020-07-21 John Baldwin <jhb@FreeBSD.org>
2943
2944 * corelow.c (core_target_open): Invoke gdbarch report_signal_info
2945 hook if present.
2946
2947 2020-07-21 John Baldwin <jhb@FreeBSD.org>
2948
2949 * gdbarch.c: Regenerate.
2950 * gdbarch.h: Regenerate.
2951 * gdbarch.sh (report_signal_info): New method.
2952 * infrun.c (print_signal_received_reason): Invoke gdbarch
2953 report_signal_info hook if present.
2954
2955 2020-07-21 Andrew Burgess <andrew.burgess@embecosm.com>
2956
2957 * python/py-registers.c : Add 'unordered_map' include.
2958 (gdbpy_new_reggroup): Renamed to...
2959 (gdbpy_get_reggroup): ...this. Update to only create register
2960 group descriptors when needed.
2961 (gdbpy_reggroup_iter_next): Update.
2962
2963 2020-07-21 Andrew Burgess <andrew.burgess@embecosm.com>
2964
2965 * python/py-registers.c (gdbpy_register_object_data): New static
2966 global.
2967 (gdbpy_register_object_data_init): New function.
2968 (gdbpy_new_register_descriptor): Renamed to...
2969 (gdbpy_get_register_descriptor): ...this, and update to reuse
2970 existing register descriptors where possible.
2971 (gdbpy_register_descriptor_iter_next): Update.
2972 (gdbpy_initialize_registers): Register new gdbarch data.
2973
2974 2020-07-21 Simon Marchi <simon.marchi@efficios.com>
2975
2976 * linux-nat.c (stopped_pids): Make static.
2977
2978 2020-07-21 Simon Marchi <simon.marchi@polymtl.ca>
2979
2980 PR ada/26235
2981 * gdbtypes.c (ada_discrete_type_low_bound,
2982 ada_discrete_type_high_bound): Handle undefined bounds.
2983
2984 2020-07-21 Kamil Rytarowski <n54@gmx.com>
2985
2986 * nbsd-nat.h (nbsd_nat_target::supports_multi_process): New
2987 declaration.
2988 * nbsd-nat.c (nbsd_nat_target::supports_multi_process): New
2989 function.
2990
2991 2020-07-20 John Baldwin <jhb@FreeBSD.org>
2992
2993 * fbsd-tdep.c (fbsd_skip_solib_resolver): New function.
2994 (fbsd_init_abi): Install gdbarch "skip_solib_resolver" method.
2995 * fbsd-tdep.h (fbsd_skip_solib_resolver): New prototype.
2996 * mips-fbsd-tdep.c (mips_fbsd_skip_solib_resolver): New function.
2997 (mips_fbsd_init_abi): Install gdbarch "skip_solib_resolver"
2998 method.
2999
3000 2020-07-20 Ludovic Courtès <ludo@gnu.org>
3001
3002 * guile/scm-math.c (vlscm_integer_fits_p): Use 'uintmax_t'
3003 and 'intmax_t' instead of 'scm_t_uintmax' and 'scm_t_intmax',
3004 which are deprecated in Guile 3.0.
3005 * configure.ac (try_guile_versions): Add "guile-3.0".
3006 * configure (try_guile_versions): Regenerate.
3007 * NEWS: Update entry.
3008
3009 2020-07-20 Ludovic Courtès <ludo@gnu.org>
3010 Doug Evans <dje@google.com>
3011
3012 PR gdb/21104
3013 * guile/scm-ports.c (USING_GUILE_BEFORE_2_2): New macro.
3014 (ioscm_memory_port)[read_buf_size, write_buf_size]: Wrap in #if
3015 USING_GUILE_BEFORE_2_2.
3016 (stdio_port_desc, memory_port_desc) [!USING_GUILE_BEFORE_2_2]:
3017 Change type to 'scm_t_port_type *'.
3018 (natural_buffer_size) [!USING_GUILE_BEFORE_2_2]: New variable.
3019 (ioscm_open_port) [USING_GUILE_BEFORE_2_2]: Add 'stream'
3020 parameter and honor it. Update callers.
3021 (ioscm_open_port) [!USING_GUILE_BEFORE_2_2]: New function.
3022 (ioscm_read_from_port, ioscm_write) [!USING_GUILE_BEFORE_2_2]: New
3023 functions.
3024 (ioscm_fill_input, ioscm_input_waiting, ioscm_flush): Wrap in #if
3025 USING_GUILE_BEFORE_2_2.
3026 (ioscm_init_gdb_stdio_port) [!USING_GUILE_BEFORE_2_2]: Use
3027 'ioscm_read_from_port'. Call 'scm_set_port_read_wait_fd'.
3028 (ioscm_init_stdio_buffers) [!USING_GUILE_BEFORE_2_2]: New function.
3029 (gdbscm_stdio_port_p) [!USING_GUILE_BEFORE_2_2]: Use 'SCM_PORTP'
3030 and 'SCM_PORT_TYPE'.
3031 (gdbscm_memory_port_end_input, gdbscm_memory_port_seek)
3032 (ioscm_reinit_memory_port): Wrap in #if USING_GUILE_BEFORE_2_2.
3033 (gdbscm_memory_port_read, gdbscm_memory_port_write)
3034 (gdbscm_memory_port_seek, gdbscm_memory_port_close)
3035 [!USING_GUILE_BEFORE_2_2]: New functions.
3036 (gdbscm_memory_port_print): Remove use of 'SCM_PTOB_NAME'.
3037 (ioscm_init_memory_port_type) [!USING_GUILE_BEFORE_2_2]: Use
3038 'gdbscm_memory_port_read'.
3039 Wrap 'scm_set_port_end_input', 'scm_set_port_flush', and
3040 'scm_set_port_free' calls in #if USING_GUILE_BEFORE_2_2.
3041 (gdbscm_get_natural_buffer_sizes) [!USING_GUILE_BEFORE_2_2]: New
3042 function.
3043 (ioscm_init_memory_port): Remove.
3044 (ioscm_init_memory_port_stream): New function
3045 (ioscm_init_memory_port_buffers) [USING_GUILE_BEFORE_2_2]: New
3046 function.
3047 (gdbscm_memory_port_read_buffer_size) [!USING_GUILE_BEFORE_2_2]:
3048 Return scm_from_uint (0).
3049 (gdbscm_set_memory_port_read_buffer_size_x)
3050 [!USING_GUILE_BEFORE_2_2]: Call 'scm_setvbuf'.
3051 (gdbscm_memory_port_write_buffer_size) [!USING_GUILE_BEFORE_2_2]:
3052 Return scm_from_uint (0).
3053 (gdbscm_set_memory_port_write_buffer_size_x)
3054 [!USING_GUILE_BEFORE_2_2]: Call 'scm_setvbuf'.
3055 * configure.ac (try_guile_versions): Add "guile-2.2".
3056 * configure: Regenerate.
3057 * NEWS: Add entry.
3058
3059 2020-07-18 Tom Tromey <tom@tromey.com>
3060
3061 * linux-nat.c (linux_multi_process): Remove.
3062 (linux_nat_target::supports_multi_process): Return true.
3063
3064 2020-07-17 Andrew Burgess <andrew.burgess@embecosm.com>
3065
3066 * arch/riscv.c (riscv_tdesc_cache): Change map type.
3067 (riscv_lookup_target_description): Return pointer out of
3068 unique_ptr.
3069 * target-descriptions.c (allocate_target_description): Add
3070 comment.
3071 (target_desc_deleter::operator()): Likewise.
3072 * target-descriptions.h (struct target_desc_deleter): Moved to
3073 gdbsupport/tdesc.h.
3074 (target_desc_up): Likewise.
3075
3076 2020-07-17 Tom Tromey <tromey@adacore.com>
3077
3078 * linux-nat.c (linux_nat_target::supports_non_stop)
3079 (linux_nat_target::always_non_stop_p): Use "true".
3080 (linux_nat_target::supports_disable_randomization): Use "true" and
3081 "false".
3082
3083 2020-07-16 Caroline Tice <cmtice@google.com>
3084
3085 * dwarf2/read.c (RNGLIST_HEADER_SIZE32) New constant definition.
3086 (RNGLIST_HEADER_SIZE64): New constant definition.
3087 (struct dwop_section_names): Add rnglists_dwo.
3088 (dwop_section_names): Add .debug_rnglists.dwo, .zdebug_rnglists.dwo.
3089 (struct loclist_header): Rename to 'loclists_rnglists_header'.
3090 (struct dwo_sections): Add rnglists field.
3091 (read_attribut_reprocess): Add tag parameter.
3092 (dwarf2_ranges_read): Add tag parameter & remove forward function decl.
3093 (cu_debug_rnglists_section): New function (decl & definition).
3094 (dwarf2_locate_dwo_sections): Add code to read rnglists_dwo section.
3095 (dwarf2_rnglists_process): Add a dwarf_tag parameter, for the kind of
3096 die whose range is being checked; get rnglist section from
3097 cu_debug_rnglists_section, to get from either objfile or dwo file as
3098 appropriate. Add cases for DW_RLE_base_addressx,
3099 DW_RLE_startx_length, DW_RLE_startx_endx. Also, update to only add
3100 the base address to DW_RLE_offset_pairs (not to all ranges), moving
3101 test inside if-condition and updating complaint message.
3102 (dwarf2_ranges_process): Add dwarf tag parameter and pass it to
3103 dwarf2_rnglists_process.
3104 (dwarf2_ranges_read): Add dwarf tag parameter and pass it to
3105 dwarf2_ranges_process.
3106 (dwarf2_get_pc_bounds): Check for DW_FORM_rnglistx when setting
3107 need_ranges_base and update comment appropriately. Also pass die tag
3108 to dwarf2_ranges_read.
3109 (dwarf2_record_block_ranges): Check for DW_FORM_rnglistx when setting
3110 need_ranges_base and update comment appropriately. Also pass die tag
3111 to dwarf2_ranges_process.
3112 (read_full_die_1): Add code to read DW_AT_rnglists_base and assign to
3113 cu->ranges_base. Also pass die tag to read_attribute_reprocess.
3114 (partial_die_info::read): Check for DW_FORM_rnglistx when setting
3115 need_ranges_base and update comment appropriately. Also pass die tag
3116 to read_attribute_reprocess and dwarf2_ranges_read.
3117 (read_loclist_header): Rename function to read_loclists_rnglists_header,
3118 and update function comment appropriately.
3119 (read_loclist_index): Call read_loclists_rnglists_header instead of
3120 read_loclist_header.
3121 (read_rnglist_index): New function.
3122 (read_attribute_reprocess): Add tag parameter. Add code for
3123 DW_FORM_rnglistx, passing tag to read_rnglist_index.
3124 (read_attribute_value): Mark DW_FORM_rnglistx with need_reprocess.
3125
3126 2020-07-15 Andrew Burgess <andrew.burgess@embecosm.com>
3127
3128 * f-typeprint.c (f_type_print_base): Allow for dynamic types not
3129 being resolved.
3130
3131 2020-07-14 Andrew Burgess <andrew.burgess@embecosm.com>
3132
3133 * arch-utils.c (show_architecture): Update formatting of messages.
3134
3135 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
3136
3137 * gdbtypes.h (struct type) <bounds>: Handle array and string
3138 types.
3139 * ada-lang.c (assign_aggregate): Use type::bounds on
3140 array/string type.
3141 * c-typeprint.c (c_type_print_varspec_suffix): Likewise.
3142 * c-varobj.c (c_number_of_children): Likewise.
3143 (c_describe_child): Likewise.
3144 * eval.c (evaluate_subexp_for_sizeof): Likewise.
3145 * f-typeprint.c (f_type_print_varspec_suffix): Likewise.
3146 (f_type_print_base): Likewise.
3147 * f-valprint.c (f77_array_offset_tbl): Likewise.
3148 (f77_get_upperbound): Likewise.
3149 (f77_print_array_1): Likewise.
3150 * guile/scm-type.c (gdbscm_type_range): Likewise.
3151 * m2-typeprint.c (m2_array): Likewise.
3152 (m2_is_long_set_of_type): Likewise.
3153 * m2-valprint.c (get_long_set_bounds): Likewise.
3154 * p-typeprint.c (pascal_type_print_varspec_prefix): Likewise.
3155 * python/py-type.c (typy_range): Likewise.
3156 * rust-lang.c (rust_internal_print_type): Likewise.
3157 * type-stack.c (type_stack::follow_types): Likewise.
3158 * valarith.c (value_subscripted_rvalue): Likewise.
3159 * valops.c (value_cast): Likewise.
3160
3161 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
3162
3163 * gdbtypes.c (TYPE_ARRAY_BIT_STRIDE): Remove. Update all
3164 callers to use the equivalent accessor methods.
3165
3166 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
3167
3168 * gdbtypes.h (struct range_bounds) <bit_stride>: New method.
3169 (struct type) <bit_stride>: New method.
3170 (TYPE_BIT_STRIDE): Remove.
3171 * gdbtypes.c (update_static_array_size): Use type::bit_stride.
3172
3173 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
3174
3175 * gdbtypes.h (TYPE_ARRAY_LOWER_BOUND_VALUE,
3176 TYPE_ARRAY_UPPER_BOUND_VALUE): Remove. Update all
3177 callers to use the equivalent accessor methods instead.
3178
3179 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
3180
3181 * gdbtypes.h (TYPE_ARRAY_UPPER_BOUND_IS_UNDEFINED,
3182 TYPE_ARRAY_LOWER_BOUND_IS_UNDEFINED): Remove. Update all
3183 callers to use the equivalent accessor methods instead.
3184
3185 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
3186
3187 * gdbtypes.h (TYPE_LOW_BOUND_KIND,
3188 TYPE_HIGH_BOUND_KIND): Remove. Update all callers
3189 to use dynamic_prop::kind.
3190
3191 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
3192
3193 * gdbtypes.h (TYPE_LOW_BOUND_UNDEFINED,
3194 TYPE_HIGH_BOUND_UNDEFINED): Remove. Update all callers
3195 to get the bound property's kind and check against
3196 PROP_UNDEFINED.
3197
3198 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
3199
3200 * gdbtypes.h (TYPE_LOW_BOUND, TYPE_HIGH_BOUND): Remove. Update
3201 all callers to use type::range_bounds followed by
3202 dynamic_prop::{low,high}.
3203
3204 2020-07-12 Simon Marchi <simon.marchi@polymtl.ca>
3205
3206 * gdbtypes.h (struct dynamic_prop) <kind, set_undefined,
3207 const_val, set_const_val, baton, set_locexpr, set_loclist,
3208 set_addr_offset, variant_parts, set_variant_parts,
3209 original_type, set_original_type>: New methods.
3210 <kind>: Rename to...
3211 <m_kind>: ... this. Update all users to use the new methods
3212 instead.
3213 <data>: Rename to...
3214 <m_data>: ... this. Update all users to use the new methods
3215 instead.
3216
3217 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
3218
3219 * gdbtypes.c (get_discrete_bounds): Return failure if
3220 the range type's bounds are not both defined and constant
3221 values.
3222 (get_array_bounds): Update comment. Remove undefined bound check.
3223
3224 2020-07-12 Simon Marchi <simon.marchi@polymtl.ca>
3225
3226 * gdbtypes.h (TYPE_RANGE_DATA): Remove. Update callers to use
3227 the type::bounds method directly.
3228
3229 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
3230
3231 * gdbtypes.h (struct type) <bounds, set_bounds>: New methods.
3232 (TYPE_RANGE_DATA): Use type::bounds. Change all uses that
3233 are used to set the range type's bounds to use set_bounds.
3234
3235 2020-07-11 Philippe Waroquiers <philippe.waroquiers@skynet.be>
3236
3237 * exec.c (_initialize_exec): Update exec-file-mismatch help.
3238
3239 2020-07-10 Pedro Alves <pedro@palves.net>
3240
3241 * gdbthread.h (inferior_ref): Define.
3242 (scoped_restore_current_thread) <m_thread>: Now a thread_info_ref.
3243 (scoped_restore_current_thread) <m_inf>: Now an inferior_ref.
3244 * thread.c
3245 (scoped_restore_current_thread::restore):
3246 Adjust to gdb::ref_ptr.
3247 (scoped_restore_current_thread::~scoped_restore_current_thread):
3248 Remove manual decref handling.
3249 (scoped_restore_current_thread::scoped_restore_current_thread):
3250 Adjust to use
3251 inferior_ref::new_reference/thread_info_ref::new_reference.
3252 Incref the thread before calling get_frame_id instead of after.
3253 Let TARGET_CLOSE_ERROR propagate.
3254
3255 2020-07-10 Pedro Alves <pedro@palves.net>
3256
3257 * frame-tailcall.c (dwarf2_tailcall_sniffer_first): Only swallow
3258 NO_ENTRY_VALUE_ERROR / MEMORY_ERROR / OPTIMIZED_OUT_ERROR /
3259 NOT_AVAILABLE_ERROR.
3260 * value.c (value_optimized_out): Only swallow MEMORY_ERROR /
3261 OPTIMIZED_OUT_ERROR / NOT_AVAILABLE_ERROR.
3262
3263 2020-07-10 Simon Marchi <simon.marchi@polymtl.ca>
3264 Pedro Alves <pedro@palves.net>
3265
3266 PR gdb/26199
3267 * infrun.c (threads_are_resumed_pending_p): Delete.
3268 (do_target_wait): Remove threads_are_executing and
3269 threads_are_resumed_pending_p checks from the inferior_matches
3270 lambda. Update comments.
3271
3272 2020-07-10 Pedro Alves <pedro@palves.net>
3273
3274 PR gdb/26199
3275 * infrun.c (handle_no_resumed): Transfer terminal to inferior with
3276 executing threads.
3277
3278 2020-07-10 Pedro Alves <pedro@palves.net>
3279
3280 PR gdb/26199
3281 * infrun.c (handle_no_resumed): Handle multiple targets.
3282
3283 2020-07-10 Pedro Alves <pedro@palves.net>
3284
3285 PR gdb/26199
3286 * infrun.c (prepare_to_wait): Check target_can_async_p instead of
3287 target_is_async_p.
3288
3289 2020-07-10 Pedro Alves <pedro@palves.net>
3290
3291 PR gdb/26199
3292 * target.c (target_pass_ctrlc): Look at the inferior's non-exited
3293 threads, not all threads.
3294
3295 2020-07-10 Pedro Alves <pedro@palves.net>
3296
3297 PR gdb/26199
3298 * remote.c (remote_target::open_1): Pass remote target pointer as
3299 data to create_async_event_handler.
3300 (remote_async_inferior_event_handler): Mark async event handler
3301 before returning if the remote target still has either pending
3302 events or unacknowledged notifications.
3303
3304 2020-07-10 John Baldwin <jhb@FreeBSD.org>
3305
3306 * fbsd-nat.h (fbsd_nat_target::supports_multi_process): New
3307 declaration.
3308 * fbsd-nat.c (fbsd_nat_target::supports_multi_process): New
3309 function.
3310
3311 2020-07-09 John Baldwin <jhb@FreeBSD.org>
3312
3313 * inf-ptrace.c (inf_ptrace_target::wait): Don't compare against
3314 inferior_ptid.
3315
3316 2020-07-09 John Baldwin <jhb@FreeBSD.org>
3317
3318 * fbsd-tdep.c (fbsd_print_auxv_entry): Handle AT_FREEBSD_ARGC,
3319 AT_FREEBSD_ARGV, AT_FREEBSD_ENVC, AT_FREEBSD_ENVV,
3320 AT_FREEBSD_PS_STRINGS.
3321
3322 2020-07-08 Hannes Domani <ssbssa@yahoo.de>
3323
3324 * auto-load.c (auto_load_objfile_script_1): Convert drive part
3325 of debugfile path on Windows.
3326
3327 2020-07-08 John Baldwin <jhb@FreeBSD.org>
3328
3329 * fbsd-nat.c (fbsd_nat_target::find_memory_regions): Rename 'obfd'
3330 argument to 'data'.
3331
3332 2020-07-08 Tom Tromey <tromey@adacore.com>
3333
3334 * ada-lang.c (ada_exception_message_1): Use read_memory.
3335
3336 2020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
3337
3338 PR python/22748
3339 * dwarf2/frame-tailcall.c (dwarf2_tailcall_sniffer_first): Remove
3340 special handling for inline frames.
3341 * findvar.c (value_of_register_lazy): Skip inline frames when
3342 creating lazy register values.
3343 * frame.c (frame_id_computed_p): Delete definition.
3344 * frame.h (frame_id_computed_p): Delete declaration.
3345
3346 2020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
3347
3348 * NEWS: Mention additions to Python API.
3349 * python/py-arch.c (archpy_register_groups): New function.
3350 (arch_object_methods): Add 'register_groups' method.
3351 * python/py-registers.c (reggroup_iterator_object): New struct.
3352 (reggroup_object): New struct.
3353 (gdbpy_new_reggroup): New function.
3354 (gdbpy_reggroup_to_string): New function.
3355 (gdbpy_reggroup_name): New function.
3356 (gdbpy_reggroup_iter): New function.
3357 (gdbpy_reggroup_iter_next): New function.
3358 (gdbpy_new_reggroup_iterator): New function
3359 (gdbpy_initialize_registers): Register new types.
3360 (reggroup_iterator_object_type): Define new Python type.
3361 (gdbpy_reggroup_getset): New static global.
3362 (reggroup_object_type): Define new Python type.
3363 * python/python-internal.h
3364
3365 2020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
3366
3367 * Makefile.in (SUBDIR_PYTHON_SRCS): Add py-registers.c
3368 * python/py-arch.c (archpy_registers): New function.
3369 (arch_object_methods): Add 'registers' method.
3370 * python/py-registers.c: New file.
3371 * python/python-internal.h
3372 (gdbpy_new_register_descriptor_iterator): Declare.
3373 (gdbpy_initialize_registers): Declare.
3374 * python/python.c (do_start_initialization): Call
3375 gdbpy_initialize_registers.
3376 * NEWS: Mention additions to the Python API.
3377
3378 2020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
3379
3380 * NEWS: Mention new Python API method.
3381 * python/py-unwind.c (pending_framepy_architecture): New function.
3382 (pending_frame_object_methods): Add architecture method.
3383
3384 2020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
3385
3386 * gdbarch.c: Regenerate.
3387 * gdbarch.h: Regenerate.
3388 * gdbarch.sh (deprecated_set_gdbarch_data): Delete.
3389 (gdbarch_data): Use internal_error for the case where
3390 deprecated_set_gdbarch_data was originally needed.
3391 * ia64-libunwind-tdep.c (libunwind_descr_init): Update parameters,
3392 and use passed in obstack.
3393 (libunwind_frame_set_descr): Should no longer get back NULL from
3394 gdbarch_data.
3395 (_initialize_libunwind_frame): Register as a pre-init gdbarch data
3396 type.
3397 * user-regs.c (user_regs_init): Update parameters, and use passed
3398 in obstack.
3399 (user_reg_add): Should no longer get back NULL from gdbarch_data.
3400 (_initialize_user_regs): Register as a pre-init gdbarch data type.
3401
3402 2020-07-06 Tom de Vries <tdevries@suse.de>
3403
3404 * buildsym.c (buildsym_compunit::end_symtab_with_blockvector): Handle
3405 End-Of-Sequence in lte_is_less_than.
3406 * symtab.c (find_pc_sect_line): Revert change from commit 3d92a3e313
3407 "gdb: Don't reorder line table entries too much when sorting".
3408
3409 2020-07-06 Tom de Vries <tdevries@suse.de>
3410
3411 PR tui/26205
3412 * tui/tui-win.c (tui_partial_win_by_name): Don't test for NULL name.
3413
3414 2020-07-05 Tom de Vries <tdevries@suse.de>
3415
3416 PR build/26187
3417 * inferior.h (struct infcall_suspend_state_deleter): If available, use
3418 std::uncaught_exceptions instead of deprecated
3419 std::uncaught_exception.
3420
3421 2020-07-02 Simon Marchi <simon.marchi@polymtl.ca>
3422
3423 * macroexp.h (macro_stringify): Return
3424 gdb::unique_xmalloc_ptr<char>.
3425 * macroexp.c (macro_stringify): Likewise.
3426 * macrotab.c (fixup_definition): Update.
3427
3428 2020-07-02 Simon Marchi <simon.marchi@polymtl.ca>
3429
3430 * c-exp.y (scan_macro_expansion): Don't free `expansion`.
3431 (lex_one_token): Update.
3432 * macroexp.c (struct macro_buffer) <release>: Return
3433 gdb::unique_xmalloc_ptr<char>.
3434 (macro_stringify): Update.
3435 (macro_expand): Update.
3436 (macro_expand_next): Return gdb::unique_xmalloc_ptr<char>.
3437 * macroexp.h (macro_expand_next): Likewise.
3438
3439 2020-07-02 Simon Marchi <simon.marchi@efficios.com>
3440
3441 * macroexp.h (macro_lookup_ftype): Remove.
3442 (macro_expand, macro_expand_once, macro_expand_next): Remove
3443 lookup function parameters, add scope parameter.
3444 * macroexp.c (scan, substitute_args, expand, maybe_expand,
3445 macro_expand, macro_expand_once, macro_expand_next): Likewise.
3446 * macroscope.h (standard_macro_lookup): Change parameter type
3447 to macro_scope.
3448 * macroscope.c (standard_macro_lookup): Likewise.
3449 * c-exp.y (lex_one_token): Update.
3450 * macrocmd.c (macro_expand_command): Likewise.
3451 (macro_expand_once_command): Likewise.
3452
3453 2020-07-02 Simon Marchi <simon.marchi@polymtl.ca>
3454
3455 * inf-loop.c (inferior_event_handler): Remove client_data param.
3456 * inf-loop.h (inferior_event_handler): Likewise.
3457 * infcmd.c (step_1): Adjust.
3458 * infrun.c (proceed): Adjust.
3459 (fetch_inferior_event): Remove client_data param.
3460 (infrun_async_inferior_event_handler): Adjust.
3461 * infrun.h (fetch_inferior_event): Remove `void *` param.
3462 * linux-nat.c (handle_target_event): Adjust.
3463 * record-btrace.c (record_btrace_handle_async_inferior_event):
3464 Adjust.
3465 * record-full.c (record_full_async_inferior_event_handler):
3466 Adjust.
3467 * remote.c (remote_async_inferior_event_handler): Adjust.
3468
3469 2020-07-01 Tom Tromey <tom@tromey.com>
3470
3471 * tui/tui-data.h (struct tui_win_info) <name>: Now pure virtual.
3472 * tui/tui-stack.h (struct tui_locator_window) <name>: New method.
3473
3474 2020-07-01 Tom Tromey <tom@tromey.com>
3475
3476 * tui/tui-wingeneral.c (tui_win_info::refresh_window): Move from
3477 tui_gen_win_info.
3478 (tui_win_info::make_window): Merge with
3479 tui_gen_win_info::make_window.
3480 (tui_win_info::make_visible): Move from tui_gen_win_info.
3481 * tui/tui-win.c (tui_win_info::max_width): Move from
3482 tui_gen_win_info.
3483 * tui/tui-layout.h (class tui_layout_window) <m_window>: Change
3484 type.
3485 <window_factory>: Likewise.
3486 * tui/tui-layout.c (tui_win_info::resize): Move from
3487 tui_gen_win_info.
3488 (make_standard_window): Change return type.
3489 (get_locator_window, tui_get_window_by_name): Likewise.
3490 (tui_layout_window::apply): Remove a cast.
3491 * tui/tui-data.h (MIN_WIN_HEIGHT): Move earlier.
3492 (struct tui_win_info): Merge with tui_gen_win_info.
3493 (struct tui_gen_win_info): Remove.
3494
3495 2020-07-01 Tom Tromey <tom@tromey.com>
3496
3497 * tui/tui-stack.h (struct tui_locator_window): Derive from
3498 tui_win_info.
3499 <do_scroll_horizontal, do_scroll_vertical>: New methods.
3500 <can_box>: New method.
3501
3502 2020-07-01 Tom Tromey <tom@tromey.com>
3503
3504 * tui/tui-stack.h (struct tui_locator_window): Remove body.
3505
3506 2020-07-01 Tom Tromey <tom@tromey.com>
3507
3508 * tui/tui-regs.c (tui_data_window::display_registers_from)
3509 (tui_data_window::display_registers_from)
3510 (tui_data_window::first_data_item_displayed)
3511 (tui_data_window::delete_data_content_windows): Update.
3512 (tui_data_window::refresh_window, tui_data_window::no_refresh):
3513 Remove.
3514 (tui_data_window::check_register_values): Update.
3515 (tui_data_item_window::rerender): Add parameters. Update.
3516 (tui_data_item_window::refresh_window): Remove.
3517 * tui/tui-data.h (struct tui_gen_win_info) <no_refresh>: No longer
3518 virtual.
3519 * tui/tui-regs.h (struct tui_data_item_window): Don't derive from
3520 tui_gen_win_info.
3521 <refresh_window, max_height, min_height>: Remove.
3522 <rerender>: Add parameters.
3523 <x, y, visible>: New members.
3524 (struct tui_data_window) <refresh_window, no_refresh>: Remove.
3525 <m_item_width>: New member.
3526
3527 2020-07-01 Tom Tromey <tom@tromey.com>
3528
3529 * tui/tui-regs.c (tui_data_window::show_register_group)
3530 (tui_data_window::check_register_values): Update.
3531 * tui/tui-regs.h (struct tui_data_item_window) <regno>: Rename
3532 from item_no.
3533
3534 2020-07-01 Tom Tromey <tom@tromey.com>
3535
3536 * tui/tui-regs.c (tui_data_window::show_register_group): Remove
3537 useless "if".
3538
3539 2020-07-01 Tom Tromey <tom@tromey.com>
3540
3541 * tui/tui-regs.c (tui_data_window::show_register_group): Update.
3542 * tui/tui-regs.h (struct tui_data_item_window) <name>: Remove.
3543
3544 2020-07-01 Tom Tromey <tom@tromey.com>
3545
3546 * tui/tui-stack.c (SINGLE_KEY): Move from tui-data.h
3547 * tui/tui-winsource.h (enum tui_line_or_address_kind)
3548 (struct tui_line_or_address): Move from tui-data.h.
3549 * tui/tui-win.c (DEFAULT_TAB_LEN): Move from tui-data.h.
3550 * tui/tui-data.h (DEFAULT_TAB_LEN): Move to tui-win.c.
3551 (tui_cmd_window, tui_source_window_base, tui_source_window)
3552 (tui_disasm_window): Don't declare.
3553 (enum tui_line_or_address_kind, struct tui_line_or_address): Move
3554 to tui-winsource.h.
3555 (SINGLE_KEY): Move to tui-stack.c.
3556
3557 2020-07-01 Tom Tromey <tom@tromey.com>
3558
3559 * tui/tui-regs.h (struct tui_data_item_window) <content>: Now a
3560 std::string.
3561 * tui/tui-regs.c (class tab_expansion_file): New.
3562 (tab_expansion_file::write): New method.
3563 (tui_register_format): Change return type. Use
3564 tab_expansion_file.
3565 (tui_get_register, tui_data_window::display_registers_from)
3566 (tui_data_item_window::rerender): Update.
3567 * tui/tui-io.h (tui_expand_tabs): Don't declare.
3568 * tui/tui-io.c (tui_expand_tabs): Remove.
3569
3570 2020-07-01 Tom Tromey <tom@tromey.com>
3571
3572 * tui/tui-regs.c (tui_reggroup_completer): Use complete_on_enum.
3573
3574 2020-07-01 Fangrui Song <maskray@google.com>
3575
3576 * dwarf2/read.c (lnp_state_machine::check_line_address): Test -1.
3577
3578 2020-07-01 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
3579
3580 * dwarf2/read.c (set_die_type): Removed conditions to restrict
3581 forms for DW_AT_associated and DW_AT_allocated attributes,
3582 which is already checked in function attr_to_dynamic_prop.
3583
3584 2020-06-30 Tom Tromey <tromey@adacore.com>
3585
3586 * dwarf2/read.c (quirk_rust_enum): Correctly call
3587 alloc_rust_variant for default-less enum.
3588
3589 2020-06-30 Tom Tromey <tromey@adacore.com>
3590
3591 PR build/26183:
3592 * ada-lang.c (ada_lookup_name_info::ada_lookup_name_info): Use
3593 gdb::to_string.
3594
3595 2020-06-29 Simon Marchi <simon.marchi@efficios.com>
3596
3597 * gdbarch.sh (displaced_step_copy_insn): Update doc.
3598 * gdbarch.h: Re-generate.
3599
3600 2020-06-28 Tom Tromey <tom@tromey.com>
3601
3602 * command.h (cmd_types): Remove.
3603 (cmd_type): Don't declare.
3604 * cli/cli-decode.h (enum cmd_types): Uncomment. No longer a
3605 typedef.
3606 * cli/cli-cmds.c (setting_cmd): Use cmd->type directly.
3607 * cli/cli-decode.c (cmd_type): Remove.
3608
3609 2020-06-27 Pedro Alves <palves@redhat.com>
3610
3611 * fork-child.c (prefork_hook): Adjust.
3612 * infcmd.c (set_inferior_io_terminal, get_inferior_io_terminal):
3613 Delete.
3614 (set_inferior_tty_command, show_inferior_tty_command): Adjust.
3615 * inferior.c (inferior::set_tty, inferior::tty): New methods.
3616 * inferior.h (set_inferior_io_terminal, get_inferior_io_terminal):
3617 Remove declarations.
3618 (struct inferior) <set_tty, tty>: New methods.
3619 (struct inferior) <terminal>: Rename to ...
3620 (struct inferior) <m_terminal>: ... this and make private.
3621 * main.c (captured_main_1): Adjust.
3622 * mi/mi-cmd-env.c (mi_cmd_inferior_tty_set): Adjust.
3623 (mi_cmd_inferior_tty_show): Adjust.
3624 * nto-procfs.c (nto_procfs_target::create_inferior): Adjust.
3625 * windows-nat.c (windows_nat_target::create_inferior): Adjust.
3626
3627 2020-06-26 Nick Alcock <nick.alcock@oracle.com>
3628
3629 * configure.ac: Add --enable-libctf: handle --disable-static
3630 properly.
3631 * acinclude.m4: sinclude ../config/enable.m4.
3632 * Makefile.in (aclocal_m4_deps): Adjust accordingly.
3633 (LIBCTF): Substitute in.
3634 (CTF_DEPS): New, likewise.
3635 (CLIBS): libctf needs symbols from libbfd: move earlier.
3636 (CDEPS): Use CTF_DEPS, not LIBCTF, now LIBCTF can include rpath
3637 flags.
3638 * ctfread.c: Surround in ENABLE_LIBCTF.
3639 (elfctf_build_psymtabs) [!ENABLE_LIBCTF]: New stub.
3640 * configure: Regenerate.
3641 * config.in: Likewise.
3642
3643 2020-06-25 Simon Marchi <simon.marchi@efficios.com>
3644
3645 * infcmd.c (set_inferior_io_terminal): Use make_unique_xstrdup.
3646
3647 2020-06-25 Simon Marchi <simon.marchi@efficios.com>
3648
3649 * inferior.h (struct inferior) <terminal>: Change type to
3650 gdb::unique_xmalloc_ptr<char>.
3651 * inferior.c (inferior::~inferior): Don't free inf->terminal.
3652 * infcmd.c (set_inferior_io_terminal): Don't free terminal
3653 field, adjust to unique pointer.
3654 (get_inferior_io_terminal): Adjust to unique pointer.
3655
3656 2020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
3657
3658 * riscv-tdep.c (riscv_print_registers_info): Loop over all
3659 registers, not just the known core set of registers.
3660
3661 2020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
3662
3663 * riscv-tdep.c (riscv_register_name): Return NULL for duplicate
3664 fflags, frm, and fcsr registers.
3665 (riscv_register_reggroup_p): Remove unknown CSRs from save and
3666 restore groups.
3667 (riscv_tdesc_unknown_reg): New function.
3668 (riscv_gdbarch_init): Pass riscv_tdesc_unknown_reg to
3669 tdesc_use_registers.
3670 * riscv-tdep.h (struct gdbarch_tdep): Add
3671 unknown_csrs_first_regnum, unknown_csrs_count,
3672 duplicate_fflags_regnum, duplicate_frm_regnum, and
3673 duplicate_fcsr_regnum fields.
3674
3675 2020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
3676
3677 * target-descriptions.c (tdesc_use_registers): Add new parameter a
3678 callback, use the callback (when not null) to help number unknown
3679 registers.
3680 * target-descriptions.h (tdesc_unknown_register_ftype): New typedef.
3681 (tdesc_use_registers): Add extra parameter to declaration.
3682
3683 2020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
3684
3685 * riscv-tdep.c (value_of_riscv_user_reg): Moved to here from later
3686 in the file.
3687 (class riscv_pending_register_alias): Likewise.
3688 (riscv_register_feature::register_info): Change 'required_p' field
3689 to 'required', and change its type. Add 'check' member function.
3690 (riscv_register_feature::register_info::check): Define new member
3691 function.
3692 (riscv_xreg_feature): Change initialisation of 'required' field.
3693 (riscv_freg_feature): Likewise.
3694 (riscv_virtual_feature): Likewise.
3695 (riscv_csr_feature): Likewise.
3696 (riscv_check_tdesc_feature): Take extra parameter, the csr
3697 tdesc_feature, rewrite the function to use the new
3698 riscv_register_feature::register_info::check function.
3699 (riscv_gdbarch_init): Pass the csr tdesc_feature where needed.
3700
3701 2020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
3702
3703 * features/Makefile: Remove all references to the deleted files
3704 below.
3705 * features/riscv/32bit-csr.c: Deleted.
3706 * features/riscv/32bit-csr.xml: Deleted.
3707 * features/riscv/64bit-csr.c: Deleted.
3708 * features/riscv/64bit-csr.xml: Deleted.
3709 * features/riscv/rebuild-csr-xml.sh: Deleted.
3710
3711 2020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
3712
3713 * riscv-tdep.c (struct riscv_register_feature::register_info): Fix
3714 whitespace error for declaration of names member variable.
3715 (struct riscv_register_feature): Add new prefer_first_name member
3716 variable, and fix whitespace error in declaration of registers.
3717 (riscv_xreg_feature): Initialize prefer_first_name field.
3718 (riscv_freg_feature): Likewise.
3719 (riscv_virtual_feature): Likewise.
3720 (riscv_csr_feature): Likewise.
3721 (riscv_register_name): Expand on comments. Remove register name
3722 modifications for CSR and virtual registers.
3723
3724 2020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
3725
3726 * riscv-tdep.c (struct riscv_register_feature): Fix whitespace
3727 errors.
3728
3729 2020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
3730
3731 * riscv-tdep.c (riscv_create_csr_aliases): Handle csr aliases from
3732 riscv-opc.h.
3733 (class riscv_pending_register_alias): New class.
3734 (riscv_check_tdesc_feature): Take vector of pending aliases and
3735 populate it as appropriate.
3736 (riscv_setup_register_aliases): Delete.
3737 (riscv_gdbarch_init): Create vector of pending aliases and pass it
3738 to riscv_check_tdesc_feature in all cases. Use the vector to
3739 create the register aliases.
3740
3741 2020-06-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
3742
3743 * sol2-tdep.c (sol2_static_transform_name): Remove.
3744 (sol2_init_abi): Don't register it.
3745 * gdbarch.sh (static_transform_name): Remove.
3746 * gdbarch.c, gdbarch.h: Regenerate.
3747
3748 * dbxread.c (read_dbx_symtab) <'S'>: Remove call to
3749 gdbarch_static_transform_name.
3750 * mdebugread.c (parse_partial_symbols) <'S'>: Likewise.
3751 * stabsread.c (define_symbol) <'X'>: Remove.
3752 (define_symbol) <'S'>: Remove gdbarch_static_transform_name
3753 handling.
3754 <'V'>: Likewise.
3755 * xcoffread.c (scan_xcoff_symtab): Remove gdbarch.
3756 <'S'>: Remove call to gdbarch_static_transform_name.
3757
3758 2020-06-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
3759
3760 * procfs.c (procfs_pre_trace): New function.
3761 (procfs_target::create_inferior): Pass it to fork_inferior.
3762
3763 2020-06-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
3764
3765 * configure.tgt <sparc-*-linux*> (gdb_target_obs): Remove
3766 sparc-sol2-tdep.o, sol2-tdep.o, sparc64-sol2-tdep.o.
3767 <sparc64-*-linux*> (gdb_target_obs): Remove sparc64-sol2-tdep.o,
3768 sol2-tdep.o, sparc-sol2-tdep.o.
3769 * sparc-sol2-tdep.c (sparc32_sol2_init_abi): Make static.
3770 * sparc-tdep.h (sparc32_sol2_init_abi): Remove.
3771 * sparc64-sol2-tdep.c (sparc64_sol2_init_abi): Make static.
3772 * sparc64-tdep.h (sparc64_sol2_init_abi): Remove.
3773
3774 2020-06-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
3775
3776 * amd64-sol2-tdep.c (amd64_sol2_sigtramp_p): Remove.
3777 (amd64_sol2_init_abi): Use sol2_sigtramp_p.
3778 Call sol2_init_abi.
3779 Remove calls to set_gdbarch_skip_solib_resolver,
3780 set_gdbarch_core_pid_to_str.
3781 * i386-sol2-tdep.c (i386_sol2_sigtramp_p): Remove.
3782 (i386_sol2_static_transform_name): Remove.
3783 (i386_sol2_init_abi): Call sol2_init_abi.
3784 Remove calls to set_gdbarch_sofun_address_maybe_missing,
3785 set_gdbarch_static_transform_name,
3786 set_gdbarch_skip_solib_resolver, set_gdbarch_core_pid_to_str.
3787 Use sol2_sigtramp_p.
3788 * sol2-tdep.c (sol2_pc_in_sigtramp): New function.
3789 (sol2_sigtramp_p): New function.
3790 (sol2_static_transform_name): New function.
3791 (sol2_skip_solib_resolver, sol2_core_pid_to_str): Make static.
3792 (sol2_init_abi): New function.
3793 * sol2-tdep.h (sol2_sigtramp_p, sol2_init_abi): Declare.
3794 (sol2_skip_solib_resolver, sol2_core_pid_to_str): Remove.
3795 * sparc-sol2-tdep.c (sparc_sol2_pc_in_sigtramp): Remove.
3796 (sparc32_sol2_sigtramp_frame_sniffer): Just call sol2_sigtramp_p.
3797 (sparc_sol2_static_transform_name): Remove.
3798 (sparc32_sol2_init_abi): Call sol2_init_abi.
3799 Remove calls to set_gdbarch_sofun_address_maybe_missing,
3800 set_gdbarch_static_transform_name,
3801 set_gdbarch_skip_solib_resolver,
3802 set_gdbarch_core_pid_to_str.
3803 * sparc-tdep.h (sparc_sol2_pc_in_sigtramp)
3804 (sparc_sol2_static_transform_name): Remove
3805 * sparc64-sol2-tdep.c (sparc64_sol2_sigtramp_frame_sniffer): Just
3806 call sol2_sigtramp_p.
3807 (sparc64_sol2_init_abi): Call sol2_init_abi.
3808 Remove calls to set_gdbarch_sofun_address_maybe_missing,
3809 set_gdbarch_static_transform_name,
3810 set_gdbarch_skip_solib_resolver, set_gdbarch_core_pid_to_str.
3811
3812 2020-06-24 Philippe Waroquiers <philippe.waroquiers@skynet.be>
3813
3814 * symfile-add-flags.h: New flag SYMFILE_ALWAYS_CONFIRM.
3815 * exec.c (validate_exec_file): If from_tty, set both
3816 SYMFILE_VERBOSE (== from_tty) and SYMFILE_ALWAYS_CONFIRM.
3817 * symfile.c (symbol_file_add_with_addrs): if always_confirm
3818 and from_tty, unconditionally ask a confirmation.
3819
3820 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
3821
3822 * target-descriptions.c (tdesc_architecture_name): Protect against
3823 NULL pointer dereference.
3824 (maint_print_xml_tdesc_cmd): New function.
3825 (_initialize_target_descriptions): Register new 'maint print
3826 xml-tdesc' command and give it the filename completer.
3827 * NEWS: Mention new 'maint print xml-tdesc' command.
3828
3829 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
3830
3831 * target-descriptions.c (class tdesc_compatible_info): New class.
3832 (struct target_desc): Change type of compatible vector.
3833 (tdesc_compatible_p): Update for change in type of
3834 target_desc::compatible.
3835 (tdesc_compatible_info_list): New function.
3836 (tdesc_compatible_info_arch_name): New function.
3837 (tdesc_add_compatible): Update for change in type of
3838 target_desc::compatible.
3839 (print_c_tdesc::visit_pre): Likewise.
3840
3841 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
3842
3843 * target-descriptions.c (print_c_tdesc::print_c_tdesc): Change
3844 whitespace to underscore.
3845 (maint_print_c_tdesc_cmd): Use fake filename for target
3846 descriptions that came from the target.
3847 (_initialize_target_descriptions): Add filename command completion
3848 for 'maint print c-tdesc'.
3849
3850 2020-06-23 Simon Marchi <simon.marchi@efficios.com>
3851
3852 * dwarf2/loc.c (decode_debug_loclists_addresses): Add empty
3853 lines.
3854
3855 2020-06-23 Simon Marchi <simon.marchi@efficios.com>
3856
3857 * dwarf2/loc.c (decode_debug_loc_dwo_addresses): Add empty
3858 lines.
3859 (dwarf2_find_location_expression): Likewise.
3860 (call_site_parameter_matches): Likewise.
3861 (dwarf2_compile_expr_to_ax): Likewise.
3862 (disassemble_dwarf_expression): Likewise.
3863 (loclist_describe_location): Likewise.
3864
3865 2020-06-23 Pedro Alves <palves@redhat.com>
3866
3867 * gdbarch-selftests.c: Don't include inferior.h, gdbthread.h or
3868 progspace-and-thread.h. Include scoped-mock-context.h instead.
3869 (register_to_value_test): Use scoped_mock_context.
3870 * regcache.c: Include "scoped-mock-context.h".
3871 (cooked_read_test): Don't error out if a target is already pushed.
3872 Use scoped_mock_context. Adjust.
3873 * scoped-mock-context.h: New file.
3874
3875 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
3876
3877 * ada-lang.c (ada_language_data): Delete la_is_string_type_p
3878 initializer.
3879 (ada_language::is_string_type_p): New member function.
3880 * c-lang.c (c_language_data): Delete la_is_string_type_p
3881 initializer.
3882 (cplus_language_data): Likewise.
3883 (asm_language_data): Likewise.
3884 (minimal_language_data): Likewise.
3885 * d-lang.c (d_language_data): Likewise.
3886 * f-lang.c (f_is_string_type_p): Delete function, implementation
3887 moved to f_language::is_string_type_p.
3888 (f_language_data): Delete la_is_string_type_p initializer.
3889 (f_language::is_string_type_p): New member function,
3890 implementation from f_is_string_type_p.
3891 * go-lang.c (go_is_string_type_p): Delete function, implementation
3892 moved to go_language::is_string_type_p.
3893 (go_language_data): Delete la_is_string_type_p initializer.
3894 (go_language::is_string_type_p): New member function,
3895 implementation from go_is_string_type_p.
3896 * language.c (language_defn::is_string_type_p): Define new member
3897 function.
3898 (default_is_string_type_p): Make static, add comment copied from
3899 header file.
3900 (unknown_language_data): Delete la_is_string_type_p initializer.
3901 (unknown_language::is_string_type_p): New member function.
3902 (auto_language_data): Delete la_is_string_type_p initializer.
3903 (auto_language::is_string_type_p): New member function.
3904 * language.h (language_data): Delete la_is_string_type_p field.
3905 (language_defn::is_string_type_p): Declare new function.
3906 (default_is_string_type_p): Delete desclaration, move comment to
3907 definition.
3908 * m2-lang.c (m2_is_string_type_p): Delete function, implementation
3909 moved to m2_language::is_string_type_p.
3910 (m2_language_data): Delete la_is_string_type_p initializer.
3911 (m2_language::is_string_type_p): New member function,
3912 implementation from m2_is_string_type_p.
3913 * objc-lang.c (objc_language_data): Delete la_is_string_type_p
3914 initializer.
3915 * opencl-lang.c (opencl_language_data): Likewise.
3916 * p-lang.c (pascal_is_string_type_p): Delete function,
3917 implementation moved to pascal_language::is_string_type_p.
3918 (pascal_language_data): Delete la_is_string_type_p initializer.
3919 (pascal_language::is_string_type_p): New member function,
3920 implementation from pascal_is_string_type_p.
3921 * rust-lang.c (rust_is_string_type_p): Delete function,
3922 implementation moved to rust_language::is_string_type_p.
3923 (rust_language_data): Delete la_is_string_type_p initializer.
3924 (rust_language::is_string_type_p): New member function,
3925 implementation from rust_is_string_type_p.
3926 * valprint.c (val_print_scalar_or_string_type_p): Update call to
3927 is_string_type_p.
3928
3929 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
3930
3931 * ada-lang.c (ada_language_data): Delete la_print_typedef
3932 initializer.
3933 (ada_language::print_typedef): New member function.
3934 * c-lang.c (c_language_data): Delete la_print_typedef initializer.
3935 (cplus_language_data): Likewise.
3936 (asm_language_data): Likewise.
3937 (minimal_language_data): Likewise.
3938 * d-lang.c (d_language_data): Likewise.
3939 * f-lang.c (f_language_data): Likewise.
3940 (f_language::print_typedef): New member function.
3941 * go-lang.c (go_language_data): Delete la_print_typedef
3942 initializer.
3943 * language.c (language_defn::print_typedef): Define member
3944 function.
3945 (unknown_language_data): Delete la_print_typedef initializer.
3946 (unknown_language::print_typedef): New member function.
3947 (auto_language_data): Delete la_print_typedef initializer.
3948 (auto_language::print_typedef): New member function.
3949 * language.h (language_data): Delete la_print_typedef field.
3950 (language_defn::print_typedef): Declare new member function.
3951 (LA_PRINT_TYPEDEF): Update call to print_typedef.
3952 (default_print_typedef): Delete declaration.
3953 * m2-lang.c (m2_language_data): Delete la_print_typedef
3954 initializer.
3955 (m2_language::print_typedef): New member function.
3956 * objc-lang.c (objc_language_data): Delete la_print_typedef
3957 initializer.
3958 * opencl-lang.c (opencl_language_data): Likewise.
3959 * p-lang.c (pascal_language_data): Likewise.
3960 (pascal_language::print_typedef): New member function.
3961 * rust-lang.c (rust_print_typedef): Delete function,
3962 implementation moved to rust_language::print_typedef.
3963 (rust_language): Delete la_print_typedef initializer.
3964 (rust_language::print_typedef): New member function,
3965 implementation from rust_print_typedef.
3966 * typeprint.c (default_print_typedef): Delete.
3967
3968 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
3969
3970 * ada-lang.c (ada_language_data): Delete la_printstr initializer.
3971 (ada_language::printstr): New member function.
3972 * c-lang.c (c_language_data): Delete la_printstr initializer.
3973 (cplus_language_data): Likewise.
3974 (asm_language_data): Likewise.
3975 (minimal_language_data): Likewise.
3976 * d-lang.c (d_language_data): Likewise.
3977 * f-lang.c (f_printstr): Rename to f_language::printstr.
3978 (f_language_data): Delete la_printstr initializer.
3979 (f_language::printstr): New member function, implementation from
3980 f_printstr.
3981 * go-lang.c (go_language_data): Delete la_printstr initializer.
3982 * language.c (language_defn::printstr): Define new member
3983 function.
3984 (unk_lang_printstr): Delete.
3985 (unknown_language_data): Delete la_printstr initializer.
3986 (unknown_language::printstr): New member function.
3987 (auto_language_data): Delete la_printstr initializer.
3988 (auto_language::printstr): New member function.
3989 * language.h (language_data): Delete la_printstr field.
3990 (language_defn::printstr): Declare new member function.
3991 (LA_PRINT_STRING): Update call to printstr.
3992 * m2-lang.c (m2_printstr): Rename to m2_language::printstr.
3993 (m2_language_data): Delete la_printstr initializer.
3994 (m2_language::printstr): New member function, implementation from
3995 m2_printstr.
3996 * objc-lang.c (objc_language_data): Delete la_printstr
3997 initializer.
3998 * opencl-lang.c (opencl_language_data): Likewise.
3999 * p-lang.c (pascal_printstr): Rename to pascal_language::printstr.
4000 (pascal_language_data): Delete la_printstr initializer.
4001 (pascal_language::printstr): New member function, implementation
4002 from pascal_printstr.
4003 * p-lang.h (pascal_printstr): Delete declaration.
4004 * rust-lang.c (rust_printstr): Update header comment.
4005 (rust_language_data): Delete la_printstr initializer.
4006 (rust_language::printstr): New member function.
4007
4008 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
4009
4010 * ada-lang.c (ada_language_data): Delete la_printchar initializer.
4011 (ada_language::printchar): New member function.
4012 * c-lang.c (c_language_data): Delete la_printchar initializer.
4013 (cplus_language_data): Likewise.
4014 (asm_language_data): Likewise.
4015 (minimal_language_data): Likewise.
4016 * d-lang.c (d_language_data): Likewise.
4017 * f-lang.c (f_printchar): Rename to f_language::printchar.
4018 (f_language_data): Delete la_printchar initializer.
4019 (f_language::printchar): New member function, implementation from
4020 f_printchar.
4021 * go-lang.c (go_language_data): Delete la_printchar initializer.
4022 * language.c (unk_lang_printchar): Delete.
4023 (language_defn::printchar): Define new member function.
4024 (unknown_language_data): Delete la_printchar initializer.
4025 (unknown_language::printchar): New member function.
4026 (auto_language_data): Delete la_printchar initializer.
4027 (auto_language::printchar): New member function.
4028 * language.h (language_data): Delete la_printchar field.
4029 (language_defn::printchar): Declare new member function.
4030 (LA_PRINT_CHAR): Update call to printchar.
4031 * m2-lang.c (m2_language_data): Delete la_printchar initializer.
4032 (m2_language::printchar): New member function.
4033 * objc-lang.c (objc_language_data): Delete la_printchar
4034 initializer.
4035 * opencl-lang.c (opencl_language_data): Likewise.
4036 * p-lang.c (pascal_language_data): Delete la_printchar
4037 initializer.
4038 (pascal_language::printchar): New member function.
4039 * rust-lang.c (rust_printchar): Rename to
4040 rust_language::printchar.
4041 (rust_language_data): Delete la_printchar initializer.
4042 (rust_language::printchar): New member function, implementation
4043 from rust_printchar.
4044
4045 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
4046
4047 * ada-lang.c (emit_char): Renamed to ada_language::emitchar.
4048 (ada_language_data): Delete la_emitchar initializer.
4049 (ada_language::emitchar): New member function, implementation from
4050 emit_char.
4051 * c-lang.c (c_language_data): Delete la_emitchar initializer.
4052 (cplus_language_data): Likewise.
4053 (asm_language_data): Likewise.
4054 (minimal_language_data): Likewise.
4055 * d-lang.c (d_language_data): Likewise.
4056 * f-lang.c (f_emit_char): Rename to f_language::emitchar.
4057 (f_language_data): Delete la_emitchar initializer.
4058 (f_language::emitchar): New member function, implementation from
4059 f_emit_char.
4060 * go-lang.c (go_language_data): Delete la_emitchar initializer.
4061 * language.c (unk_lang_emit_char): Delete.
4062 (language_defn::emitchar): New member function definition.
4063 (unknown_language_data): Delete la_emitchar initializer.
4064 (unknown_language::emitchar): New member function.
4065 (auto_language_data): Delete la_emitchar initializer.
4066 (auto_language::emitchar): New member function.
4067 * language.h (language_data): Delete la_emitchar field.
4068 (language_defn::emitchar): New member field declaration.
4069 (LA_EMIT_CHAR): Update call to emitchar.
4070 * m2-lang.c (m2_emit_char): Rename to m2_language::emitchar.
4071 (m2_language_data): Delete la_emitchar initializer.
4072 (m2_language::emitchar): New member function, implementation from
4073 m2_emit_char.
4074 * objc-lang.c (objc_language_data): Delete la_emitchar
4075 initializer.
4076 * opencl-lang.c (opencl_language_data): Likewise.
4077 * p-lang.c (pascal_emit_char): Rename to pascal_language::emitchar.
4078 (pascal_language_data): Delete la_emitchar initializer.
4079 (pascal_language::emitchar): New member function, implementation
4080 from pascal_emit_char.
4081 * rust-lang.c (rust_emitchar): Rename to rust_language::emitchar.
4082 (rust_language_data): Delete la_emitchar initializer.
4083 (rust_language::emitchar): New member function, implementation
4084 from rust_emitchar.
4085
4086 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
4087
4088 * ada-lang.c (resolve): Rename to ada_language::post_parser.
4089 (ada_language_data): Delete la_post_parser initializer.
4090 (ada_language::post_parser): New member function.
4091 * c-lang.c (c_language_data): Delete la_post_parser initializer.
4092 (cplus_language_data): Likewise.
4093 (asm_language_data): Likewise.
4094 (minimal_language_data): Likewise.
4095 * d-lang.c (d_language_data): Likewise.
4096 * f-lang.c (f_language_data): Likewise.
4097 * go-lang.c (go_language_data): Likewise.
4098 * language.c (unknown_language_data): Likewise.
4099 (auto_language_data): Likewise.
4100 * language.h (language_data): Delete la_post_parser field.
4101 (language_defn::post_parser): New member function.
4102 * m2-lang.c (m2_language_data): Delete la_post_parser initializer.
4103 * objc-lang.c (objc_language_data): Likewise.
4104 * opencl-lang.c (opencl_language_data): Likewise.
4105 * p-lang.c (pascal_language_data): Likewise.
4106 * parse.c (parse_exp_in_context): Update call to post_parser.
4107 (null_post_parser): Delete definition.
4108 * parser-defs.h (null_post_parser): Delete declaration.
4109 * rust-lang.c (rust_language_data): Delete la_post_parser
4110 initializer.
4111
4112 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
4113
4114 * ada-lang.c (parse): Rename to ada_language::parser.
4115 (ada_language_data): Delete la_parser initializer.
4116 (ada_language::parser): New member function, implementation from
4117 parse.
4118 * c-lang.c (c_language_data): Delete la_parser initializer.
4119 (cplus_language_data): Likewise.
4120 (asm_language_data): Likewise.
4121 (minimal_language_data): Likewise.
4122 * d-lang.c (d_language_data): Likewise.
4123 (d_language::parser): New member function.
4124 * f-lang.c (f_language_data): Delete la_parser initializer.
4125 (f_language::parser): New member function.
4126 * go-lang.c (go_language_data): Delete la_parser initializer.
4127 (go_language::parser): New member function.
4128 * language.c (unk_lang_parser): Delete.
4129 (language_defn::parser): Define new member function.
4130 (unknown_language_data): Delete la_parser initializer.
4131 (unknown_language::parser): New member function.
4132 (auto_language_data): Delete la_parser initializer.
4133 (auto_language::parser): New member function.
4134 * language.h (language_data): Delete la_parser field.
4135 (language_defn::parser): Declare new member function.
4136 * m2-lang.c (m2_language_data): Delete la_parser initializer.
4137 (m2_language::parser): New member function.
4138 * objc-lang.c (objc_language_data): Delete la_parser initializer.
4139 * opencl-lang.c (opencl_language_data): Likewise.
4140 * p-lang.c (pascal_language_data): Likewise.
4141 (pascal_language::parser): New member function.
4142 * parse.c (parse_exp_in_context): Update call to parser.
4143 * rust-lang.c (rust_language_data): Delete la_parser initializer.
4144 (rust_language::parser): New member function.
4145
4146 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
4147
4148 * top.c (print_gdb_configuration): Print --with-python-libdir
4149 configuration value.
4150
4151 2020-06-22 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4152
4153 * NEWS: Mention change to the alias command.
4154
4155 2020-06-22 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4156
4157 * cli/cli-cmds.c (lookup_cmd_for_default_args)
4158 (alias_command_completer)
4159 (make_alias_options_def_group): New functions.
4160 (alias_opts, alias_option_defs): New struct and array.
4161 (alias_usage_error): Update usage.
4162 (alias_command): Handles optional DEFAULT-ARGS... arguments.
4163 Use option framework.
4164 (_initialize_cli_cmds): Update alias command help.
4165 Update aliases command help.
4166 (show_user):
4167 Add NULL for new default_args lookup_cmd argument.
4168 (valid_command_p): Rename to validate_aliased_command.
4169 Add NULL for new default_args lookup_cmd argument. Verify that the
4170 aliased_command has no default args.
4171 * cli/cli-decode.c (help_cmd): Show aliases definitions.
4172 (lookup_cmd_1, lookup_cmd): New argument default_args.
4173 (add_alias_cmd):
4174 Add NULL for new default_args lookup_cmd argument.
4175 (print_help_for_command): Show default args under the layout
4176 alias some_alias = some_aliased_cmd some_alias_default_arg.
4177 * cli/cli-decode.h (struct cmd_list_element): New member default_args.
4178 xfree default_args in destructor.
4179 * cli/cli-script.c (process_next_line, do_define_command):
4180 Add NULL for new default_args lookup_cmd argument.
4181 * command.h: Declare new default_args argument in lookup_cmd
4182 and lookup_cmd_1.
4183 * completer.c (complete_line_internal_1):
4184 Add NULL for new default_args lookup_cmd or lookup_cmd_1 argument.
4185 * guile/scm-cmd.c (gdbscm_parse_command_name): Likewise.
4186 * guile/scm-param.c (add_setshow_generic, pascm_parameter_defined_p):
4187 Likewise.
4188 * infcmd.c (_initialize_infcmd): Likewise.
4189 * python/py-auto-load.c (gdbpy_initialize_auto_load): Likewise.
4190 * python/py-cmd.c (gdbpy_parse_command_name): Likewise.
4191 * python/py-param.c (add_setshow_generic): Likewise.
4192 * remote.c (_initialize_remote): Likewise.
4193 * top.c (execute_command): Prepend default_args if command has some.
4194 (set_verbose):
4195 Add NULL for new default_args lookup_cmd or lookup_cmd_1 argument.
4196 * tracepoint.c (validate_actionline, encode_actions_1):
4197 Add NULL for new default_args lookup_cmd or lookup_cmd_1 argument.
4198
4199 2020-06-22 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4200
4201 * jit.c (jit_read_descriptor): Use bool as the return type.
4202 (jit_breakpoint_re_set_internal): Use bool as the return type.
4203 Invert the return value logic; return true if the jit breakpoint
4204 has been successfully initialized.
4205 (jit_inferior_init): Update the call to
4206 jit_breakpoint_re_set_internal.
4207
4208 2020-06-22 Pedro Alves <palves@redhat.com>
4209
4210 PR gdb/25939
4211 * procfs.c (procfs_target::wait): Don't reference inferior_ptid.
4212 Use the current inferior instead. Don't return
4213 TARGET_WAITKIND_SPURIOUS/inferior_ptid -- instead continue and
4214 wait again.
4215 * sol-thread.c (sol_thread_target::wait): Don't reference
4216 inferior_ptid.
4217 (ps_lgetregs, ps_lsetregs, ps_lgetfpregs, ps_lsetfpregs)
4218 (sol_update_thread_list_callback): Use the current inferior's pid
4219 instead of inferior_ptid.
4220
4221 2020-06-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
4222
4223 * procfs.c: Cleanup many comments.
4224
4225 (READ_WATCHFLAG, WRITE_WATCHFLAG, EXEC_WATCHFLAG)
4226 (AFTER_WATCHFLAG): Replace by value.
4227
4228 (MAIN_PROC_NAME_FORMAT): Inline ...
4229 (create_procinfo): ... here.
4230
4231 (procfs_debug_inferior): Remove SYS_exec handling.
4232 (syscall_is_exec): Likewise.
4233 (procfs_set_exec_trap): Likewise.
4234
4235 (syscall_is_lwp_exit): Inline in callers.
4236 (syscall_is_exit): Likewise.
4237 (syscall_is_exec): Likewise.
4238 (syscall_is_lwp_create): Likewise.
4239
4240 (invalidate_cache): Remove #if 0 code.
4241
4242 (make_signal_thread_runnable): Remove.
4243 (procfs_target::resume): Remove #if 0 code.
4244
4245 2020-06-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
4246
4247 PR gdb/25939
4248 * procfs.c (procfs_target::procfs_init_inferior): Move push_target
4249 call ...
4250 (procfs_target::create_inferior): ... here.
4251
4252 2020-06-21 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4253
4254 * exec.c (validate_exec_file): Ensure the build-id is up to
4255 date by calling reopen_exec_file (that checks file timestamp
4256 to decide to re-read the file).
4257
4258 2020-06-18 Pedro Alves <palves@redhat.com>
4259
4260 PR gdb/25412
4261 * gdbthread.h (delete_thread, delete_thread_silent)
4262 (find_thread_ptid): Update comments.
4263 * thread.c (current_thread_): New global.
4264 (is_current_thread): Move higher, and reimplement.
4265 (inferior_thread): Reimplement.
4266 (set_thread_exited): Use bool. Add assertions.
4267 (add_thread_silent): Simplify thread-reuse handling by always
4268 calling delete_thread.
4269 (delete_thread): Remove intro comment.
4270 (find_thread_ptid): Skip exited threads.
4271 (switch_to_thread_no_regs): Write to current_thread_.
4272 (switch_to_no_thread): Check CURRENT_THREAD_ instead of
4273 INFERIOR_PTID. Clear current_thread_.
4274
4275 2020-06-18 Pedro Alves <palves@redhat.com>
4276
4277 * aix-thread.c (pd_update): Use switch_to_thread.
4278
4279 2020-06-18 Pedro Alves <palves@redhat.com>
4280
4281 * ravenscar-thread.c (ravenscar_thread_target): Update.
4282 (ravenscar_thread_target::update_inferior_ptid): Rename to ...
4283 (ravenscar_thread_target::add_active_thread): ... this. Don't
4284 set m_base_ptid here. Update to avoid referencing inferior_ptid.
4285 (ravenscar_thread_target::wait): Don't write to inferior_ptid.
4286
4287 2020-06-18 Pedro Alves <palves@redhat.com>
4288
4289 * nat/windows-nat.c (current_windows_thread): Remove.
4290 * nat/windows-nat.h (current_windows_thread): Remove.
4291 * windows-nat.c (windows_nat_target::stopped_by_sw_breakpoint):
4292 Adjust.
4293 (display_selectors): Adjust to fetch the current
4294 windows_thread_info based on inferior_ptid.
4295 (fake_create_process): No longer write to current_windows_thread.
4296 (windows_nat_target::get_windows_debug_event):
4297 Don't set inferior_ptid or current_windows_thread.
4298 (windows_nat_target::wait): Adjust to not rely on
4299 current_windows_thread.
4300 (do_initial_windows_stuff): Now a method of windows_nat_target.
4301 Switch to the last_ptid thread.
4302 (windows_nat_target::attach): Adjust.
4303 (windows_nat_target::detach): Use switch_to_no_thread instead of
4304 writing to inferior_ptid directly.
4305 (windows_nat_target::create_inferior): Adjust.
4306
4307 2020-06-18 Pedro Alves <palves@redhat.com>
4308
4309 * windows-nat.c (do_initial_windows_stuff): No longer set inferior_ptid.
4310
4311 2020-06-18 Pedro Alves <palves@redhat.com>
4312
4313 * go32-nat.c (go32_nat_target::create_inferior): Switch to thread
4314 after creating it, instead of writing to inferior_ptid. Don't
4315 write to inferior_ptid.
4316
4317 2020-06-18 Pedro Alves <palves@redhat.com>
4318
4319 * fork-child.c (postfork_hook): Don't write to inferior_ptid.
4320
4321 2020-06-18 Pedro Alves <palves@redhat.com>
4322
4323 * bsd-kvm.c (bsd_kvm_target_open): Switch to thread after adding
4324 it, instead of writing to inferior_ptid.
4325
4326 2020-06-18 Pedro Alves <palves@redhat.com>
4327
4328 * btrace.c (btrace_fetch): Use switch_to_thread instead of writing
4329 to inferior_ptid.
4330
4331 2020-06-18 Pedro Alves <palves@redhat.com>
4332
4333 * bsd-kvm.c (bsd_kvm_target::close): Use switch_to_no_thread
4334 instead of writing to inferior_ptid directly.
4335
4336 2020-06-18 Pedro Alves <palves@redhat.com>
4337
4338 * corelow.c (core_target::close): Use switch_to_no_thread instead
4339 of writing to inferior_ptid directly.
4340 (add_to_thread_list, core_target_open): Use switch_to_thread
4341 instead of writing to inferior_ptid directly.
4342
4343 2020-06-18 Pedro Alves <palves@redhat.com>
4344
4345 * darwin-nat.c (darwin_nat_target::decode_message): Don't write to
4346 inferior_ptid.
4347 (darwin_nat_target::stop_inferior, darwin_nat_target::kill): Avoid
4348 inferior_ptid.
4349 (darwin_attach_pid): Use switch_to_no_thread instead of writing to
4350 inferior_ptid directly.
4351 (darwin_nat_target::init_thread_list): Switch to thread, instead
4352 of writing to inferior_ptid.
4353 (darwin_nat_target::attach): Don't write to inferior_ptid.
4354 (darwin_nat_target::get_ada_task_ptid): Avoid inferior_ptid.
4355
4356 2020-06-18 Pedro Alves <palves@redhat.com>
4357
4358 * gnu-nat.c (gnu_nat_target::create_inferior): Switch to the added
4359 thread.
4360 (gnu_nat_target::attach): Don't write to inferior_ptid directly.
4361 Instead use switch_to_thread.
4362 (gnu_nat_target::detach): Use switch_to_no_thread
4363 instead of writing to inferior_ptid directly. Used passed-in
4364 inferior instead of looking up the inferior by pid.
4365
4366 2020-06-18 Pedro Alves <palves@redhat.com>
4367
4368 * go32-nat.c (go32_nat_target::create_inferior): Don't write to
4369 inferior_ptid.
4370
4371 2020-06-18 Pedro Alves <palves@redhat.com>
4372
4373 * nto-procfs.c (nto_procfs_target::update_thread_list): Avoid
4374 inferior_ptid.
4375 (nto_procfs_target::attach): Avoid inferior_ptid. Switch to
4376 thread.
4377 (nto_procfs_target::detach): Avoid referencing
4378 inferior_ptid. Use switch_to_no_thread instead of writing to
4379 inferior_ptid directly.
4380 (nto_procfs_target::mourn_inferior): Use switch_to_no_thread
4381 instead of writing to inferior_ptid directly.
4382 (nto_procfs_target::create_inferior): Avoid inferior_ptid. Switch
4383 to thread.
4384
4385 2020-06-18 Pedro Alves <palves@redhat.com>
4386
4387 * remote-sim.c (gdbsim_target::create_inferior): Switch to thread
4388 after creating it, instead of writing to inferior_ptid.
4389 (gdbsim_target_open): Use switch_to_no_thread instead of writing
4390 to inferior_ptid directly.
4391 (gdbsim_target::wait): Don't write to inferior_ptid.
4392
4393 2020-06-18 Pedro Alves <palves@redhat.com>
4394
4395 * remote.c (remote_target::remote_notice_new_inferior): Use
4396 switch_to_thread instead of writing to inferior_ptid directly.
4397 (remote_target::add_current_inferior_and_thread): Use
4398 switch_to_no_thread instead of writing to inferior_ptid directly.
4399 (extended_remote_target::attach): Use switch_to_inferior_no_thread
4400 and switch_to_thread instead of using set_current_inferior or
4401 writing to inferior_ptid directly.
4402
4403 2020-06-18 Pedro Alves <palves@redhat.com>
4404
4405 * tracectf.c (ctf_target_open): Switch to added thread instead of
4406 writing to inferior_ptid directly.
4407 (ctf_target::close): Use switch_to_no_thread instead of writing to
4408 inferior_ptid directly.
4409
4410 2020-06-18 Pedro Alves <palves@redhat.com>
4411
4412 * tracefile-tfile.c (tfile_target_open): Don't write to
4413 inferior_ptid directly, instead switch to added thread.
4414 (tfile_target::close): Use switch_to_no_thread instead of writing
4415 to inferior_ptid directly.
4416
4417 2020-06-18 Pedro Alves <palves@redhat.com>
4418
4419 * procfs.c (procfs_target::attach): Don't write to inferior_ptid.
4420 (procfs_target::detach): Use switch_to_no_thread
4421 instead of writing to inferior_ptid directly.
4422 (do_attach): Change return type to void. Switch to the added
4423 thread.
4424 (procfs_target::create_inferior): Switch to the added thread.
4425 (procfs_do_thread_registers): Don't write to inferior_ptid.
4426
4427 2020-06-18 Pedro Alves <palves@redhat.com>
4428
4429 * infrun.c (generic_mourn_inferior): Use switch_to_thread instead
4430 of writing to inferior_ptid.
4431 (scoped_restore_exited_inferior): Delete.
4432 (handle_vfork_child_exec_or_exit): Simplify using
4433 scoped_restore_current_pspace_and_thread. Use switch_to_thread
4434 instead of writing to inferior_ptid.
4435 (THREAD_STOPPED_BY): Delete.
4436 (thread_stopped_by_watchpoint, thread_stopped_by_sw_breakpoint)
4437 (thread_stopped_by_hw_breakpoint): Delete.
4438 (save_waitstatus): Use
4439 scoped_restore_current_thread+switch_to_thread, and call
4440 target_stopped_by_watchpoint instead of
4441 thread_stopped_by_watchpoint, target_stopped_by_sw_breakpoint
4442 instead of thread_stopped_by_sw_breakpoint, and
4443 target_stopped_by_hw_breakpoint instead of
4444 thread_stopped_by_hw_breakpoint.
4445 (handle_inferior_event)
4446 <TARGET_WAITKIND_EXITED/TARGET_WAITKIND_SIGNALLED>: Don't write to
4447 inferior_ptid directly, nor
4448 set_current_inferior/set_current_program_space. Use
4449 switch_to_thread / switch_to_inferior_no_thread instead.
4450
4451 2020-06-18 Pedro Alves <palves@redhat.com>
4452
4453 * target.c (generic_mourn_inferior): Use switch_to_no_thread
4454 instead of writing to inferior_ptid.
4455
4456 2020-06-18 Pedro Alves <palves@redhat.com>
4457
4458 * inf-ptrace.c (inf_ptrace_target::create_inferior): Switch to the
4459 added thread.
4460 (inf_ptrace_target::attach): Don't write to inferior_ptid. Switch
4461 to the added thread.
4462 (inf_ptrace_target::detach_success): Use switch_to_no_thread
4463 instead of writing to inferior_ptid.
4464
4465 2020-06-18 Pedro Alves <palves@redhat.com>
4466
4467 * gdbarch-selftests.c: Include "progspace-and-thread.h".
4468 (register_to_value_test): Mock a program_space too. Heap-allocate
4469 the address space. Don't write to inferior_ptid. Use
4470 switch_to_thread instead.
4471
4472 2020-06-18 Pedro Alves <palves@redhat.com>
4473
4474 * linux-tdep.c (find_signalled_thread(thread_info *,void *)):
4475 Delete.
4476 (find_signalled_thread()): New, factored out from
4477 linux_make_corefile_notes and adjusted to handle exited threads.
4478 (linux_make_corefile_notes): Adjust to use the new
4479 find_signalled_thread.
4480
4481 2020-06-18 Pedro Alves <palves@redhat.com>
4482
4483 * linux-tdep.c (btrace_fetch): Save/restore current thread instead
4484 of saving/restoring inferior_ptid.
4485
4486 2020-06-17 Tom Tromey <tom@tromey.com>
4487
4488 * tui/tui-win.h (tui_scroll_forward, tui_scroll_backward)
4489 (tui_scroll_left, tui_scroll_right, struct tui_win_info): Don't
4490 declare.
4491 * tui/tui-data.h (MIN_CMD_WIN_HEIGHT): Remove.
4492
4493 2020-06-15 Simon Marchi <simon.marchi@efficios.com>
4494
4495 * dwarf2/read.c (dwarf2_initialize_objfile): Check for presence
4496 of partial symtabs.
4497
4498 2020-06-17 Simon Marchi <simon.marchi@efficios.com>
4499
4500 * regformats/reg-arm.dat: Remove.
4501 * regformats/reg-bfin.dat: Remove.
4502 * regformats/reg-cris.dat: Remove.
4503 * regformats/reg-crisv32.dat: Remove.
4504 * regformats/reg-m32r.dat: Remove.
4505 * regformats/reg-tilegx.dat: Remove.
4506 * regformats/reg-tilegx32.dat: Remove.
4507
4508 2020-06-17 Simon Marchi <simon.marchi@efficios.com>
4509
4510 * features/Makefile (WHICH): Remove arm files.
4511 * regformats/arm/arm-with-iwmmxt.dat: Remove.
4512 * regformats/arm/arm-with-neon.dat: Remove.
4513 * regformats/arm/arm-with-vfpv2.dat: Remove.
4514 * regformats/arm/arm-with-vfpv3.dat: Remove.
4515
4516 2020-06-17 Simon Marchi <simon.marchi@efficios.com>
4517
4518 * features/Makefile (XMLTOC): Remove rx.xml.
4519
4520 2020-06-17 Pedro Alves <palves@redhat.com>
4521
4522 * gdbthread.h (thread_control_state) <trap_expected> Update
4523 comments.
4524
4525 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
4526
4527 * ada-lang.c (ada_lookup_symbol_nonlocal): Rename to
4528 ada_language::lookup_symbol_nonlocal.
4529 (ada_language_data): Delete la_lookup_symbol_nonlocal initializer.
4530 (ada_language::lookup_symbol_nonlocal): New member function,
4531 implementation from ada_lookup_symbol_nonlocal.
4532 * c-lang.c (c_language_data): Delete la_lookup_symbol_nonlocal
4533 initializer.
4534 (cplus_language_data): Delete la_lookup_symbol_nonlocal
4535 initializer.
4536 (cplus_language::lookup_symbol_nonlocal): New member function.
4537 (asm_language_data): Delete la_lookup_symbol_nonlocal initializer.
4538 (minimal_language_data) Likewise.
4539 * cp-namespace.c (cp_lookup_nested_symbol): Update comment.
4540 * d-lang.c (d_language_data): Delete la_lookup_symbol_nonlocal
4541 initializer.
4542 (d_language::lookup_symbol_nonlocal): New member function.
4543 * f-lang.c (f_language_data): Delete la_lookup_symbol_nonlocal
4544 initializer.
4545 (f_language::lookup_symbol_nonlocal): New member function.
4546 * go-lang.c (go_language_data): Delete la_lookup_symbol_nonlocal
4547 initializer.
4548 * language.c (unknown_language_data): Likewise.
4549 (auto_language_data): Likewise.
4550 * language.h (language_data): Delete la_lookup_symbol_nonlocal
4551 field.
4552 (language_defn::lookup_symbol_nonlocal): New member function.
4553 * m2-lang.c (m2_language_data): Delete la_lookup_symbol_nonlocal
4554 initializer.
4555 * objc-lang.c (objc_language_data): Likewise.
4556 * opencl-lang.c (opencl_language_data): Likewise.
4557 * p-lang.c (pascal_language_data): Likewise.
4558 * rust-lang.c (rust_lookup_symbol_nonlocal): Rename to
4559 rust_language::lookup_symbol_nonlocal.
4560 (rust_language_data): Delete la_lookup_symbol_nonlocal
4561 initializer.
4562 (rust_language::lookup_symbol_nonlocal): New member function,
4563 implementation from rust_lookup_symbol_nonlocal.
4564 * symtab.c (lookup_symbol_aux): Update call to
4565 lookup_symbol_nonlocal.
4566 (basic_lookup_symbol_nonlocal): Rename to...
4567 (language_defn::lookup_symbol_nonlocal): ...this, and update
4568 header comment. Remove language_defn parameter, and replace with
4569 uses of `this'.
4570 * symtab.h (basic_lookup_symbol_nonlocal): Delete declaration.
4571
4572 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
4573
4574 * ada-lang.c (ada_language_data): Delete la_value_print_inner
4575 initializer.
4576 (ada_language::value_print_inner): New member function.
4577 * c-lang.c (c_language_data): Delete la_value_print_inner
4578 initializer.
4579 (cplus_language_data): Likewise.
4580 (asm_language_data): Likewise.
4581 (minimal_language_data): Likewise.
4582 * d-lang.c (d_language_data): Likewise.
4583 (d_language::value_print_inner): New member function.
4584 * f-lang.c (f_language_data): Delete la_value_print_inner
4585 initializer.
4586 (f_language::value_print_inner): New member function.
4587 * f-lang.h (f_value_print_innner): Rename to...
4588 (f_value_print_inner): ...this (note spelling of 'inner').
4589 * f-valprint.c (f_value_print_innner): Rename to...
4590 (f_value_print_inner): ...this (note spelling of 'inner').
4591 * go-lang.c (go_language_data): Delete la_value_print_inner
4592 initializer.
4593 (go_language::value_print_inner): New member function.
4594 * language.c (language_defn::value_print_inner): Define new member
4595 function.
4596 (unk_lang_value_print_inner): Delete.
4597 (unknown_language_data): Delete la_value_print_inner initializer.
4598 (unknown_language::value_print_inner): New member function.
4599 (auto_language_data): Delete la_value_print_inner initializer.
4600 (auto_language::value_print_inner): New member function.
4601 * language.h (language_data): Delete la_value_print_inner field.
4602 (language_defn::value_print_inner): Delcare new member function.
4603 * m2-lang.c (m2_language_data): Delete la_value_print_inner
4604 initializer.
4605 (m2_language::value_print_inner): New member function.
4606 * objc-lang.c (objc_language_data): Delete la_value_print_inner
4607 initializer.
4608 * opencl-lang.c (opencl_language_data): Likewise.
4609 * p-lang.c (pascal_language_data): Likewise.
4610 (pascal_language::value_print_inner): New member function.
4611 * rust-lang.c (rust_language_data): Delete la_value_print_inner
4612 initializer.
4613 (rust_language::value_print_inner): New member function.
4614 * valprint.c (do_val_print): Update call to value_print_inner.
4615
4616 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
4617
4618 * ada-lang.c (ada_language_data): Delete la_value_print
4619 initializer.
4620 (ada_language::value_print): New member function.
4621 * c-lang.c (c_language_data): Delete la_value_print initializer.
4622 (cplus_language_data): Likewise.
4623 (asm_language_data): Likewise.
4624 (minimal_language_data): Likewise.
4625 * d-lang.c (d_language_data): Likewise.
4626 * f-lang.c (f_language_data): Likewise.
4627 * go-lang.c (go_language_data): Likewise.
4628 * language.c (unk_lang_value_print): Delete.
4629 (language_defn::value_print): Define new member function.
4630 (unknown_language_data): Delete la_value_print initializer.
4631 (unknown_language::value_print): New member function.
4632 (auto_language_data): Delete la_value_print initializer.
4633 (auto_language::value_print): New member function.
4634 * language.h (language_data): Delete la_value_print field.
4635 (language_defn::value_print): Declare new member function.
4636 (LA_VALUE_PRINT): Update call to value_print.
4637 * m2-lang.c (m2_language_data): Delete la_value_print initializer.
4638 * objc-lang.c (objc_language_data): Likewise.
4639 * opencl-lang.c (opencl_language_data): Likewise.
4640 * p-lang.c (pascal_language_data): Likewise.
4641 (pascal_language::value_print): New member function.
4642 * rust-lang.c (rust_language_data): Delete la_value_print
4643 initializer.
4644
4645 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
4646
4647 * ada-lang.c (ada_watch_location_expression): Rename to
4648 ada_language::watch_location_expression.
4649 (ada_language_data): Delete la_watch_location_expression
4650 initializer.
4651 (ada_language::watch_location_expression): New member function,
4652 implementation from ada_watch_location_expression.
4653 * breakpoint.c (watch_command_1): Update call to
4654 watch_location_expression.
4655 * c-lang.c (c_watch_location_expression): Rename to
4656 language_defn::watch_location_expression.
4657 (c_language_data): Delete la_watch_location_expression
4658 initializer.
4659 (cplus_language_data): Likewise.
4660 (asm_language_data): Likewise.
4661 (minimal_language_data): Likewise.
4662 * c-lang.h (c_watch_location_expression): Delete declaration.
4663 * d-lang.c (d_language_data): Delete la_watch_location_expression
4664 initializer.
4665 * f-lang.c (f_language_data): Likewise.
4666 * go-lang.c (go_language_data): Likewise.
4667 * language.c (language_defn::watch_location_expression): Member
4668 function implementation from c_watch_location_expression.
4669 (unknown_language_data): Delete la_watch_location_expression
4670 initializer.
4671 (auto_language_data): Likewise.
4672 * language.h (language_data): Delete la_watch_location_expression
4673 field.
4674 (language_defn::watch_location_expression): Declare new member
4675 function.
4676 * m2-lang.c (m2_language_data): Delete
4677 la_watch_location_expression initializer.
4678 * objc-lang.c (objc_language_data): Likewise.
4679 * opencl-lang.c (opencl_language_data): Likewise.
4680 * p-lang.c (pascal_language_data): Likewise.
4681 * rust-lang.c (rust_watch_location_expression): Rename to
4682 rust_language::watch_location_expression.
4683 (rust_language_data): Delete la_watch_location_expression
4684 initializer.
4685 (rust_language::watch_location_expression): New member function,
4686 implementation from rust_watch_location_expression.
4687
4688 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
4689
4690 * ada-lang.c (ada_collect_symbol_completion_matches): Rename to
4691 ada_language::collect_symbol_completion_matches.
4692 (ada_language_data): Delete la_collect_symbol_completion_matches
4693 initializer.
4694 (ada_language::collect_symbol_completion_matches): New member
4695 function, implementation from
4696 ada_collect_symbol_completion_matches.
4697 * c-lang.c (c_language_data): Delete
4698 la_collect_symbol_completion_matches initializer.
4699 (cplus_language_data): Likewise.
4700 (asm_language_data): Likewise.
4701 (minimal_language_data): Likewise.
4702 * d-lang.c (d_language_data): Likewise.
4703 * f-lang.c (f_collect_symbol_completion_matches): Rename to
4704 f_language::collect_symbol_completion_matches.
4705 (f_language_data): Delete la_collect_symbol_completion_matches
4706 initializer.
4707 (f_language::collect_symbol_completion_matches) New member
4708 function, implementation from f_collect_symbol_completion_matches.
4709 * go-lang.c (go_language_data): Delete
4710 la_collect_symbol_completion_matches initializer.
4711 * language.c (unknown_language_data): Likewise.
4712 (auto_language_data): Likewise.
4713 * language.h (language_data): Delete
4714 la_collect_symbol_completion_matches field.
4715 (language_defn::collect_symbol_completion_matches): New member
4716 function.
4717 * m2-lang.c (m2_language_data): Delete
4718 la_collect_symbol_completion_matches initializer.
4719 * objc-lang.c (objc_language_data): Likewise.
4720 * opencl-lang.c (opencl_language_data): Likewise.
4721 * p-lang.c (pascal_language_data): Likewise.
4722 * rust-lang.c (rust_language_data): Likewise.
4723 * symtab.c (default_collect_symbol_completion_matches): Delete.
4724 (collect_symbol_completion_matches): Update call to
4725 collect_symbol_completion_matches.
4726 (collect_symbol_completion_matches_type): Likewise.
4727 * symtab.h (default_collect_symbol_completion_matches): Delete
4728 declaration.
4729
4730 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
4731
4732 * ada-lang.c (ada_get_gdb_completer_word_break_characters): Delete.
4733 (ada_language_data): Delete la_word_break_characters initializer.
4734 (ada_language::word_break_characters): New member function.
4735 * c-lang.c (c_language_data): Delete la_word_break_characters
4736 initializer.
4737 (cplus_language_data): Likewise.
4738 (asm_language_data): Likewise.
4739 (minimal_language_data): Likewise.
4740 * completer.c: Update global comment.
4741 (advance_to_expression_complete_word_point): Update call to
4742 word_break_characters.
4743 (complete_files_symbols): Likewise.
4744 (complete_line_internal_1): Likewise.
4745 (default_completer_handle_brkchars): Likewise.
4746 (skip_quoted_chars): Likewise.
4747 * d-lang.c (d_language_data): Delete la_word_break_characters
4748 initializer.
4749 * f-lang.c (f_word_break_characters): Delete.
4750 (f_language_data): Delete la_word_break_characters initializer.
4751 (f_language::word_break_characters): New member function.
4752 * go-lang.c (go_language_data): Delete la_word_break_characters
4753 initializer.
4754 * language.c (unknown_language_data): Likewise.
4755 (auto_language_data): Likewise.
4756 * language.h (default_word_break_characters): Move declaration to
4757 earlier in the file.
4758 (language_data): Delete la_word_break_characters field.
4759 (language_defn::word_break_characters): New member function.
4760 * m2-lang.c (m2_language_data): Delete la_word_break_characters
4761 initializer.
4762 * objc-lang.c (objc_language_data): Likewise.
4763 * opencl-lang.c (opencl_language_data): Likewise.
4764 * p-lang.c (pascal_language_data): Likewise.
4765 * rust-lang.c (rust_language_data): Likewise.
4766
4767 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
4768
4769 * ada-lang.c (ada_get_symbol_name_matcher): Update header comment.
4770 (ada_language_data): Delete la_get_symbol_name_matcher
4771 initializer.
4772 (language_defn::get_symbol_name_matcher_inner): New member
4773 function.
4774 * c-lang.c (c_language_data): Delete la_get_symbol_name_matcher
4775 initializer.
4776 (cplus_language_data): Likewise.
4777 (cplus_language::get_symbol_name_matcher_inner): New member
4778 function.
4779 (asm_language_data): Delete la_get_symbol_name_matcher initializer.
4780 (minimal_language_data): Likewise.
4781 * cp-support.h (cp_get_symbol_name_matcher): Update header comment.
4782 * d-lang.c (d_language_data): Delete la_get_symbol_name_matcher
4783 initializer.
4784 * dictionary.c (iter_match_first_hashed): Update call to
4785 get_symbol_name_matcher.
4786 (iter_match_next_hashed): Likewise.
4787 (iter_match_next_linear): Likewise.
4788 * dwarf2/read.c (dw2_expand_symtabs_matching_symbol): Likewise.
4789 * f-lang.c (f_language_data): Delete la_get_symbol_name_matcher
4790 initializer.
4791 (f_language::get_symbol_name_matcher_inner): New member function.
4792 * go-lang.c (go_language_data): Delete la_get_symbol_name_matcher
4793 initializer.
4794 * language.c (default_symbol_name_matcher): Update header comment,
4795 make static.
4796 (language_defn::get_symbol_name_matcher): New definition.
4797 (language_defn::get_symbol_name_matcher_inner): Likewise.
4798 (get_symbol_name_matcher): Delete.
4799 (unknown_language_data): Delete la_get_symbol_name_matcher
4800 initializer.
4801 (auto_language_data): Likewise.
4802 * language.h (language_data): Delete la_get_symbol_name_matcher
4803 field.
4804 (language_defn::get_symbol_name_matcher): New member function.
4805 (language_defn::get_symbol_name_matcher_inner): Likewise.
4806 (default_symbol_name_matcher): Delete declaration.
4807 * linespec.c (find_methods): Update call to
4808 get_symbol_name_matcher.
4809 * m2-lang.c (m2_language_data): Delete la_get_symbol_name_matcher
4810 initializer.
4811 * minsyms.c (lookup_minimal_symbol): Update call to
4812 get_symbol_name_matcher.
4813 (iterate_over_minimal_symbols): Likewise.
4814 * objc-lang.c (objc_language_data): Delete
4815 la_get_symbol_name_matcher initializer.
4816 * opencl-lang.c (opencl_language_data): Likewise.
4817 * p-lang.c (pascal_language_data): Likewise.
4818 * psymtab.c (psymbol_name_matches): Update call to
4819 get_symbol_name_matcher.
4820 * rust-lang.c (rust_language_data): Delete
4821 la_get_symbol_name_matcher initializer.
4822 * symtab.c (symbol_matches_search_name): Update call to
4823 get_symbol_name_matcher.
4824 (compare_symbol_name): Likewise.
4825
4826 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
4827
4828 * ada-lang.c (ada_language_data): Delete la_compute_program
4829 initializer.
4830 * c-lang.c (c_language_data): Likewise.
4831 (c_language::compute_program): New member function.
4832 (cplus_language_data): Delete la_compute_program initializer.
4833 (cplus_language::compute_program): New member function.
4834 (asm_language_data): Delete la_compute_program initializer.
4835 (minimal_language_data): Likewise.
4836 * c-lang.h (c_compute_program): Update comment.
4837 (cplus_compute_program): Likewise.
4838 * compile/compile-c-support.c (c_compute_program): Likewise.
4839 (cplus_compute_program): Likewise.
4840 * compile/compile.c (compile_to_object): Update call to
4841 la_compute_program.
4842 * d-lang.c (d_language_data): Delete la_compute_program
4843 initializer.
4844 * f-lang.c (f_language_data): Likewise.
4845 * go-lang.c (go_language_data): Likewise.
4846 * language.c (unknown_language_data): Likewise.
4847 (auto_language_data): Likewise.
4848 * language.h (language_data): Delete la_compute_program field.
4849 (language_defn::compute_program): New member function.
4850 * m2-lang.c (m2_language_data): Delete la_compute_program
4851 initializer.
4852 * objc-lang.c (objc_language_data): Likewise.
4853 * opencl-lang.c (opencl_language_data): Likewise.
4854 * p-lang.c (pascal_language_data): Likewise.
4855 * rust-lang.c (rust_language_data): Likewise.
4856
4857 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
4858
4859 * ada-lang.c (ada_language_data) Delete
4860 la_class_name_from_physname initializer.
4861 * c-lang.c (c_language_data): Likewise.
4862 (cplus_language_data): Likewise.
4863 (cplus_language::class_name_from_physname): New member function.
4864 (asm_language_data): Delete la_class_name_from_physname
4865 initializer.
4866 (minimal_language_data): Likewise.
4867 * d-lang.c (d_language_data): Likewise.
4868 * dwarf2/read.c (guess_partial_die_structure_name): Update to call
4869 method on language_defn class.
4870 (guess_full_die_structure_name): Likewise.
4871 * f-lang.c (f_language_data): Delete la_class_name_from_physname
4872 initializer.
4873 * go-lang.c (go_language_data): Likewise.
4874 * language.c (language_class_name_from_physname): Delete.
4875 (unk_lang_class_name): Delete.
4876 (unknown_language_data): Delete la_class_name_from_physname
4877 initializer.
4878 (auto_language_data): Likewise.
4879 * language.h (language_data): Delete la_class_name_from_physname
4880 field.
4881 (language_defn::class_name_from_physname): New function.
4882 (language_class_name_from_physname): Delete declaration.
4883 * m2-lang.c (m2_language_data): Delete la_class_name_from_physname
4884 initializer.
4885 * objc-lang.c (objc_language_data): Likewise.
4886 * opencl-lang.c (opencl_language_data): Likewise.
4887 * p-lang.c (pascal_language_data): Likewise.
4888 * rust-lang.c (rust_language_data): Likewise.
4889
4890 2020-06-16 Tom Tromey <tom@tromey.com>
4891
4892 * tui/tui-data.h (STATUS_NAME): New macro.
4893 * tui/tui-layout.c (tui_remove_some_windows)
4894 (initialize_known_windows, tui_register_window)
4895 (tui_layout_split::remove_windows, initialize_layouts)
4896 (tui_new_layout_command): Don't use hard-coded window names.
4897
4898 2020-06-16 Tom Tromey <tom@tromey.com>
4899
4900 PR tui/25348:
4901 * tui/tui.c (tui_ensure_readline_initialized): Rename from
4902 tui_initialize_readline. Only run once. Call rl_initialize.
4903 * tui/tui.h (tui_ensure_readline_initialized): Rename from
4904 tui_initialize_readline.
4905 * tui/tui-io.c (tui_setup_io): Call
4906 tui_ensure_readline_initialized.
4907 * tui/tui-interp.c (tui_interp::init): Update.
4908
4909 2020-06-16 Tom Tromey <tom@tromey.com>
4910
4911 * tui/tui-layout.c (tui_layout_split::remove_windows): Fix logic.
4912 Also preserve the status window.
4913
4914 2020-06-16 Tom Tromey <tom@tromey.com>
4915
4916 * python/py-tui.c (tui_py_window::~tui_py_window): Handle case
4917 where m_window==nullptr.
4918
4919 2020-06-15 Tom Tromey <tromey@adacore.com>
4920
4921 * windows-nat.c (windows_nat::handle_output_debug_string):
4922 Update.
4923 (windows_nat::handle_ms_vc_exception): Update.
4924 * target.h (target_read_string): Change API.
4925 * target.c (target_read_string): Change API.
4926 * solib-svr4.c (open_symbol_file_object, svr4_read_so_list):
4927 Update.
4928 * solib-frv.c (frv_current_sos): Update.
4929 * solib-dsbt.c (dsbt_current_sos): Update.
4930 * solib-darwin.c (darwin_current_sos): Update.
4931 * linux-thread-db.c (inferior_has_bug): Update.
4932 * expprint.c (print_subexp_standard): Update.
4933 * ada-lang.c (ada_main_name, ada_tag_name_from_tsd)
4934 (ada_exception_message_1): Update.
4935
4936 2020-06-15 Tom Tromey <tromey@adacore.com>
4937
4938 * linux-tdep.c (dump_mapping_p): Use target_read_memory.
4939
4940 2020-06-15 Tom Tromey <tromey@adacore.com>
4941
4942 * valprint.c (read_string): Update comment.
4943 * target.c (MIN): Remove.
4944 (target_read_string): Rewrite.
4945
4946 2020-06-15 Tom Tromey <tromey@adacore.com>
4947
4948 * corefile.c (read_memory_string): Remove.
4949 * ada-valprint.c (ada_value_print_ptr): Update.
4950 * ada-lang.h (ada_tag_name): Change return type.
4951 * ada-lang.c (type_from_tag): Update.
4952 (ada_tag_name_from_tsd): Change return type. Use
4953 target_read_string.
4954 (ada_tag_name): Likewise.
4955 * gdbcore.h (read_memory_string): Don't declare.
4956
4957 2020-06-14 Hannes Domani <ssbssa@yahoo.de>
4958
4959 * symtab.c (rbreak_command): Ignore Windows drive colon.
4960
4961 2020-06-12 Simon Marchi <simon.marchi@efficios.com>
4962
4963 * NEWS: Mention removed GDBserver host support.
4964
4965 2020-06-12 Nelson Chu <nelson.chu@sifive.com>
4966
4967 * features/riscv/rebuild-csr-xml.sh: Updated.
4968
4969 2020-06-11 Tom Tromey <tom@tromey.com>
4970
4971 PR gdb/18318:
4972 * c-exp.y (lex_one_token): Handle 'p' like 'e'.
4973
4974 2020-06-09 Jonny Grant <jg@jguk.org>
4975 2020-06-09 Simon Marchi <simon.marchi@polymtl.ca>
4976
4977 * main.c (captured_main_1): Don't print new line after help.
4978 (print_gdb_help): add mailing list and IRC channel information
4979 to --help. Add new lines between items in the footer. Remove
4980 quotes around bug url.
4981
4982 2020-06-11 Keith Seitz <keiths@redhat.com>
4983
4984 PR gdb/21356
4985 * gdbtypes.c (resolve_dynamic_union, resolve_dynamic_struct):
4986 Resolve typedefs for type length calculations.
4987
4988 2020-06-10 Tom de Vries <tdevries@suse.de>
4989
4990 PR ada/24713
4991 * dwarf2/index-write.c (struct mapped_symtab): Add m_string_obstack.
4992 (write_psymbols): Enable .gdb_index for ada.
4993 * dwarf2/read.c: Remove comment stating .gdb_index is unsupported for
4994 ada.
4995
4996 2020-06-10 Tom de Vries <tdevries@suse.de>
4997
4998 * dwarf2/read.c (dw2_symtab_iter_init_common): Factor out of ...
4999 (dw2_symtab_iter_init): ... here. Add variant with "offset_type
5000 namei" instead of "const char *name" argument.
5001 (dw2_map_matching_symbols): Use "offset_type namei" variant of
5002 dw2_symtab_iter_init.
5003
5004 2020-06-08 Simon Marchi <simon.marchi@efficios.com>
5005
5006 * gdbtypes.h (TYPE_FIELD_TYPE): Remove. Change all call sites
5007 to use type::field and field::type instead.
5008
5009 2020-06-08 Simon Marchi <simon.marchi@efficios.com>
5010
5011 * gdbtypes.h (FIELD_TYPE): Remove. Change all call sites
5012 to use field::type instead.
5013
5014 2020-06-08 Simon Marchi <simon.marchi@efficios.com>
5015
5016 * gdbtypes.h (struct field) <type, set_type>: New methods.
5017 Rename `type` field to...
5018 <m_type>: ... this. Change references throughout to use type or
5019 set_type methods.
5020 (FIELD_TYPE): Use field::type. Change call sites that modify
5021 the field's type to use field::set_type instead.
5022
5023 2020-06-08 Simon Marchi <simon.marchi@efficios.com>
5024
5025 * gdbtypes.h (TYPE_INDEX_TYPE): Remove. Change all call sites
5026 to use type::index_type instead.
5027
5028 2020-06-08 Simon Marchi <simon.marchi@efficios.com>
5029
5030 * gdbtypes.h (struct type) <index_type, set_index_type>: New
5031 methods.
5032 (TYPE_INDEX_TYPE): Use type::index_type.
5033 * gdbtypes.c (create_array_type_with_stride): Likewise.
5034
5035 2020-06-07 Tom Tromey <tom@tromey.com>
5036
5037 * valprint.c (generic_val_print_float): Remove "embedded_offset"
5038 parameter.
5039 (generic_value_print): Update.
5040
5041 2020-06-05 Andrew Burgess <andrew.burgess@embecosm.com>
5042
5043 Revert commit 982a38f60b0.
5044 * python/py-tui.c (gdbpy_tui_set_title): Restore use of get.
5045
5046 2020-06-05 Andrew Burgess <andrew.burgess@embecosm.com>
5047
5048 * python/py-tui.c (gdbpy_tui_set_title): Use release, not get, to
5049 avoid use after free.
5050
5051 2020-06-05 Tom de Vries <tdevries@suse.de>
5052
5053 * NEWS: Fix typos.
5054
5055 2020-06-04 Simon Marchi <simon.marchi@efficios.com>
5056
5057 * dwarf2/read.c (dwarf2_read_gdb_index): Save partial_symtabs in
5058 the per_bfd object.
5059 (dwarf2_read_debug_names): Likewise.
5060 (dwarf2_initialize_objfile): Use partial_symtabs from per_bfd
5061 object when re-using a per_bfd object with an index.
5062
5063 2020-06-03 Tom de Vries <tdevries@suse.de>
5064
5065 PR symtab/26046
5066 * dwarf2/read.c (scan_partial_symbols): Recurse into DW_TAG_subprogram
5067 children for C++.
5068 (load_partial_dies): Don't skip DW_TAG_inlined_subroutine child of
5069 DW_TAG_subprogram.
5070
5071 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
5072
5073 * ada-lang.c (ada_language_data): Delete skip_trampoline
5074 initializer.
5075 * c-lang.c (c_language_data): Likewise.
5076 (cplus_language_data): Likewise.
5077 (cplus_language::skip_trampoline): New member function.
5078 (asm_language_data): Delete skip_trampoline initializer.
5079 (minimal_language_data): Likewise.
5080 * d-lang.c (d_language_data): Likewise.
5081 * f-lang.c (f_language_data): Likewise.
5082 * go-lang.c (go_language_data): Likewise.
5083 * language.c (unk_lang_trampoline): Delete function.
5084 (skip_language_trampoline): Update.
5085 (unknown_language_data): Delete skip_trampoline initializer.
5086 (auto_language_data): Likewise.
5087 * language.h (language_data): Delete skip_trampoline field.
5088 (language_defn::skip_trampoline): New function.
5089 * m2-lang.c (m2_language_data): Delete skip_trampoline
5090 initializer.
5091 * objc-lang.c (objc_skip_trampoline): Delete function, move
5092 implementation to objc_language::skip_trampoline.
5093 (objc_language_data): Delete skip_trampoline initializer.
5094 (objc_language::skip_trampoline): New member function with
5095 implementation from objc_skip_trampoline.
5096 * opencl-lang.c (opencl_language_data): Delete skip_trampoline
5097 initializer.
5098 * p-lang.c (pascal_language_data): Likewise.
5099 * rust-lang.c (rust_language_data): Likewise.
5100
5101 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
5102
5103 * ada-lang.c (ada_language_data): Delete la_demangle initializer.
5104 (ada_language::demangle): New member function.
5105 * c-lang.c (c_language_data): Delete la_demangle initializer.
5106 (cplus_language_data): Delete la_demangle initializer.
5107 (cplus_language::demangle): New member function.
5108 (asm_language_data): Delete la_demangle initializer.
5109 (minimal_language_data): Delete la_demangle initializer.
5110 * d-lang.c (d_language_data): Delete la_demangle initializer.
5111 (d_language::demangle): New member function.
5112 * f-lang.c (f_language_data): Delete la_demangle initializer.
5113 (f_language::demangle): New member function.
5114 * go-lang.c (go_language_data): Delete la_demangle initializer.
5115 (go_language::demangle): New member function.
5116 * language.c (language_demangle): Update.
5117 (unk_lang_demangle): Delete.
5118 (unknown_language_data): Delete la_demangle initializer.
5119 (unknown_language::demangle): New member function.
5120 (auto_language_data): Delete la_demangle initializer.
5121 (auto_language::demangle): New member function.
5122 * language.h (language_data): Delete la_demangle field.
5123 (language_defn::demangle): New function.
5124 * m2-lang.c (m2_language_data): Delete la_demangle initializer.
5125 * objc-lang.c (objc_language_data): Delete la_demangle
5126 initializer.
5127 (objc_language::demangle): New member function.
5128 * opencl-lang.c (opencl_language_data): Delete la_demangle
5129 initializer.
5130 * p-lang.c (pascal_language_data): Likewise.
5131 * rust-lang.c (rust_language_data): Likewise.
5132 (rust_language::demangle): New member function.
5133
5134 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
5135
5136 * ada-lang.c (ada_language_data): Delete la_print_type
5137 initializer.
5138 (ada_language::print_type): New member function.
5139 * c-lang.c (c_language_data): Delete la_print_type initializer.
5140 (c_language::print_type): New member function.
5141 (cplus_language_data): Delete la_print_type initializer.
5142 (cplus_language::print_type): New member function.
5143 (asm_language_data): Delete la_print_type initializer.
5144 (asm_language::print_type): New member function.
5145 (minimal_language_data): Delete la_print_type initializer.
5146 (minimal_language::print_type): New member function.
5147 * d-lang.c (d_language_data): Delete la_print_type initializer.
5148 (d_language::print_type): New member function.
5149 * f-lang.c (f_language_data): Delete la_print_type initializer.
5150 (f_language::print_type): New member function.
5151 * go-lang.c (go_language_data): Delete la_print_type initializer.
5152 (go_language::print_type): New member function.
5153 * language.c (unk_lang_print_type): Delete.
5154 (unknown_language_data): Delete la_print_type initializer.
5155 (unknown_language::print_type): New member function.
5156 (auto_language_data): Delete la_print_type initializer.
5157 (auto_language::print_type): New member function.
5158 * language.h (language_data): Delete la_print_type field.
5159 (language_defn::print_type): New function.
5160 (LA_PRINT_TYPE): Update.
5161 * m2-lang.c (m2_language_data): Delete la_print_type initializer.
5162 (m2_language::print_type): New member function.
5163 * objc-lang.c (objc_language_data): Delete la_print_type
5164 initializer.
5165 (objc_language::print_type): New member function.
5166 * opencl-lang.c (opencl_print_type): Delete, implementation moved
5167 to opencl_language::print_type.
5168 (opencl_language_data): Delete la_print_type initializer.
5169 (opencl_language::print_type): New member function, implementation
5170 from opencl_print_type.
5171 * p-lang.c (pascal_language_data): Delete la_print_type
5172 initializer.
5173 (pascal_language::print_type): New member function.
5174 * rust-lang.c (rust_print_type): Delete, implementation moved to
5175 rust_language::print_type.
5176 (rust_language_data): Delete la_print_type initializer.
5177 (rust_language::print_type): New member function, implementation
5178 from rust_print_type.
5179
5180 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
5181
5182 * ada-lang.c (ada_sniff_from_mangled_name): Delete function,
5183 implementation moves to...
5184 (ada_language::sniff_from_mangled_name): ...here. Update return
5185 type.
5186 (ada_language_data): Delete la_sniff_from_mangled_name
5187 initializer.
5188 * c-lang.c (c_language_data): Likewise.
5189 (cplus_language_data): Likewise.
5190 (cplus_language::sniff_from_mangled_name): New member function,
5191 implementation taken from gdb_sniff_from_mangled_name.
5192 (asm_language_data): Delete la_sniff_from_mangled_name
5193 initializer.
5194 (minimal_language_data): Likewise.
5195 * cp-support.c (gdb_sniff_from_mangled_name): Delete,
5196 implementation moves to cplus_language::sniff_from_mangled_name.
5197 * cp-support.h (gdb_sniff_from_mangled_name): Delete declaration.
5198 * d-lang.c (d_sniff_from_mangled_name): Delete, implementation
5199 moves to...
5200 (d_language::sniff_from_mangled_name): ...here.
5201 (d_language_data): Delete la_sniff_from_mangled_name initializer.
5202 * f-lang.c (f_language_data): Likewise.
5203 * go-lang.c (go_sniff_from_mangled_name): Delete, implementation
5204 moves to...
5205 (go_language::sniff_from_mangled_name): ...here.
5206 (go_language_data): Delete la_sniff_from_mangled_name initializer.
5207 * language.c (language_sniff_from_mangled_name): Delete.
5208 (unknown_language_data): Delete la_sniff_from_mangled_name
5209 initializer.
5210 (auto_language_data): Likewise.
5211 * language.h (language_data): Delete la_sniff_from_mangled_name
5212 field.
5213 (language_defn::sniff_from_mangled_name): New function.
5214 (language_sniff_from_mangled_name): Delete declaration.
5215 * m2-lang.c (m2_language_data): Delete la_sniff_from_mangled_name
5216 field.
5217 * objc-lang.c (objc_sniff_from_mangled_name): Delete,
5218 implementation moves to...
5219 (objc_language::sniff_from_mangled_name): ...here.
5220 (objc_language_data): Delete la_sniff_from_mangled_name initializer.
5221 * opencl-lang.c (opencl_language_data): Likewise.
5222 * p-lang.c (pascal_language_data): Likewise.
5223 * rust-lang.c (rust_sniff_from_mangled_name): Delete,
5224 implementation moves to...
5225 (rust_language::sniff_from_mangled_name): ...here.
5226 (rust_language_data): Delete la_sniff_from_mangled_name
5227 initializer.
5228 * symtab.c (symbol_find_demangled_name): Call
5229 sniff_from_mangled_name member function.
5230
5231 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
5232
5233 * ada-lang.c (ada_language_data): Delete la_search_name_hash
5234 initializer.
5235 * c-lang.c (c_language_data): Likewise.
5236 (cplus_language_data): Likewise.
5237 (cplus_language::search_name_hash): New member function.
5238 (asm_language_data): Delete la_search_name_hash initializer.
5239 (minimal_language_data): Likewise.
5240 * d-lang.c (d_language_data): Likewise.
5241 * dictionary.c (default_search_name_hash): Rename to...
5242 (language_defn::search_name_hash): ...this.
5243 * f-lang.c (f_language_data): Likewise.
5244 (f_language::search_name_hash): New member function.
5245 * go-lang.c (go_language_data): Delete la_search_name_hash
5246 initializer.
5247 * language.c (unknown_language_data): Likewise.
5248 (auto_language_data): Likewise.
5249 * language.h (struct language_data): Delete la_search_name_hash
5250 field.
5251 (language_defn::search_name_hash): Declare new member function.
5252 (default_search_name_hash): Delete declaration.
5253 * m2-lang.c (m2_language_data): Delete la_search_name_hash
5254 initializer.
5255 * objc-lang.c (objc_language_data): Likewise.
5256 * opencl-lang.c (opencl_language_data): Likewise.
5257 * p-lang.c (pascal_language_data): Likewise.
5258 * rust-lang.c (rust_language_data): Likewise.
5259 * symtab.c (search_name_hash): Update call.
5260
5261 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
5262
5263 * ada-lang.c (ada_language_data): Delete la_get_compile_instance
5264 initializer.
5265 * c-lang.c (class compile_instance): Declare.
5266 (c_language_data): Delete la_get_compile_instance initializer.
5267 (c_language::get_compile_instance): New member function.
5268 (cplus_language_data): Delete la_get_compile_instance initializer.
5269 (cplus_language::get_compile_instance): New member function.
5270 (asm_language_data): Delete la_get_compile_instance initializer.
5271 (minimal_language_data): Likewise.
5272 * c-lang.h (c_get_compile_context): Update comment.
5273 (cplus_get_compile_context): Update comment.
5274 * compile/compile.c (compile_to_object): Update calls, don't rely
5275 on function pointer being NULL.
5276 * d-lang.c (d_language_data): Delete la_get_compile_instance
5277 initializer.
5278 * f-lang.c (f_language_data): Likewise.
5279 * go-lang.c (go_language_data): Likewise.
5280 * language.c (unknown_language_data): Likewise.
5281 (auto_language_data): Likewise.
5282 * language.h (language_data): Delete la_get_compile_instance field.
5283 (language_defn::get_compile_instance): New member function.
5284 * m2-lang.c (m2_language_data): Delete la_get_compile_instance
5285 initializer.
5286 * objc-lang.c (objc_language_data): Likewise.
5287 * opencl-lang.c (opencl_language_data): Likewise.
5288 * p-lang.c (pascal_language_data): Likewise.
5289 * rust-lang.c (rust_language_data): Likewise.
5290
5291 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
5292
5293 * ada-lang.c (ada_add_all_symbols): Update comment.
5294 (ada_iterate_over_symbols): Delete, move implementation to...
5295 (ada_language::iterate_over_symbols): ...here, a new member
5296 function, rewrite to use range based for loop.
5297 (ada_language_data): Delete la_iterate_over_symbols initializer.
5298 * c-lang.c (c_language_data): Likewise.
5299 (cplus_language_data): Likewise.
5300 (asm_language_data): Likewise.
5301 (minimal_language_data): Likewise.
5302 * d-lang.c (d_language_data): Likewise.
5303 * f-lang.c (f_language_data): Likewise.
5304 * go-lang.c (go_language_data): Likewise.
5305 * language.c (unknown_language_data): Likewise.
5306 (auto_language_data): Likewise.
5307 * language.h (language_data): Delete la_iterate_over_symbols field.
5308 (language_defn::iterate_over_symbols): New member function.
5309 (LA_ITERATE_OVER_SYMBOLS): Update.
5310 * linespec.c (iterate_over_all_matching_symtabs): Update.
5311 * m2-lang.c (m2_language_data): Delete la_iterate_over_symbols
5312 initializer.
5313 * objc-lang.c (objc_language_data): Likewise.
5314 * opencl-lang.c (opencl_language_data): Likewise.
5315 * p-lang.c (pascal_language_data): Likewise.
5316 * rust-lang.c (rust_language_data): Likewise.
5317
5318 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
5319
5320 * ada-lang.c (ada_language_data): Delete
5321 la_lookup_transparent_type initializer.
5322 * c-lang.c (c_language_data): Likewise.
5323 (cplus_language_data): Likewise.
5324 (cplus_language::lookup_transparent_type): New member function.
5325 (asm_language_data): Delete la_lookup_transparent_type
5326 initializer.
5327 (minimal_language_data): Likewise.
5328 * d-lang.c (d_language_data): Likewise.
5329 * f-lang.c (f_language_data): Likewise.
5330 * go-lang.c (go_language_data): Likewise.
5331 * language.c (unknown_language_data): Likewise.
5332 (auto_language_data): Likewise.
5333 * language.h (struct language_data): Delete
5334 la_lookup_transparent_type field.
5335 (language_defn::lookup_transparent_type): New member function.
5336 * m2-lang.c (m2_language_data): Delete la_lookup_transparent_type
5337 initializer.
5338 * objc-lang.c (objc_language_data): Likewise.
5339 * opencl-lang.c (opencl_language_data): Likewise.
5340 * p-lang.c (pascal_language_data): Likewise.
5341 * rust-lang.c (rust_language_data): Likewise.
5342 * symtab.c (symbol_matches_domain): Update call.
5343
5344 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
5345
5346 * ada-lang.c (ada_language_arch_info): Delete function, move
5347 implementation to...
5348 (ada_language::language_arch_info): ...here, a new member
5349 function.
5350 (ada_language_data): Delete la_language_arch_info.
5351 * c-lang.c (c_language_data): Likewise.
5352 (c_language::language_arch_info): New member function.
5353 (cplus_language_arch_info): Delete function, move
5354 implementation to...
5355 (cplus_language::language_arch_info): ...here, a new member
5356 function.
5357 (cplus_language_data): Delete la_language_arch_info.
5358 (asm_language_data): Likewise.
5359 (asm_language::language_arch_info): New member function.
5360 (minimal_language_data): Delete la_language_arch_info.
5361 (minimal_language::language_arch_info): New member function.
5362 * d-lang.c (d_language_arch_info): Delete function, move
5363 implementation to...
5364 (d_language::language_arch_info): ...here, a new member
5365 function.
5366 (d_language_data): Delete la_language_arch_info.
5367 * f-lang.c (f_language_arch_info): Delete function, move
5368 implementation to...
5369 (f_language::language_arch_info): ...here, a new member
5370 function.
5371 (f_language_data): Delete la_language_arch_info.
5372 * go-lang.c (go_language_arch_info): Delete function, move
5373 implementation to...
5374 (go_language::language_arch_info): ...here, a new member
5375 function.
5376 (go_language_data): Delete la_language_arch_info.
5377 * language.c (unknown_language_data): Likewise.
5378 (unknown_language::language_arch_info): New member function.
5379 (auto_language_data): Delete la_language_arch_info.
5380 (auto_language::language_arch_info): New member function.
5381 (language_gdbarch_post_init): Update call to
5382 la_language_arch_info.
5383 * language.h (language_data): Delete la_language_arch_info
5384 function pointer.
5385 (language_defn::language_arch_info): New function.
5386 * m2-lang.c (m2_language_arch_info): Delete function, move
5387 implementation to...
5388 (m2_language::language_arch_info): ...here, a new member
5389 function.
5390 (m2_language_data): Delete la_language_arch_info.
5391 * objc-lang.c (objc_language_arch_info): Delete function, move
5392 implementation to...
5393 (objc_language::language_arch_info): ...here, a new member
5394 function.
5395 (objc_language_data): Delete la_language_arch_info.
5396 * opencl-lang.c (opencl_language_arch_info): Delete function, move
5397 implementation to...
5398 (opencl_language::language_arch_info): ...here, a new member
5399 function.
5400 (opencl_language_data): Delete la_language_arch_info.
5401 * p-lang.c (pascal_language_arch_info): Delete function, move
5402 implementation to...
5403 (pascal_language::language_arch_info): ...here, a new member
5404 function.
5405 (pascal_language_data): Delete la_language_arch_info.
5406 * rust-lang.c (rust_language_arch_info): Delete function, move
5407 implementation to...
5408 (rust_language::language_arch_info): ...here, a new member
5409 function.
5410 (rust_language_data): Delete la_language_arch_info.
5411
5412 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
5413
5414 * ada-lang.c (ada_language_data): Delete la_pass_by_reference
5415 initializer.
5416 * c-lang.c (c_language_data): Likewise.
5417 (cplus_language_data): Likewise.
5418 (cplus_language::pass_by_reference_info): New method.
5419 (asm_language_data): Delete la_pass_by_reference initializer.
5420 (minimal_language_data): Likewise.
5421 * cp-abi.c (cp_pass_by_reference): Remove use of
5422 default_pass_by_reference.
5423 * d-lang.c (d_language_data): Likewise.
5424 * f-lang.c (f_language_data): Likewise.
5425 * gnu-v3-abi.c (gnuv3_pass_by_reference): Remove use of
5426 default_pass_by_reference.
5427 * go-lang.c (go_language_data): Likewise.
5428 * language.c (language_pass_by_reference): Update.
5429 (default_pass_by_reference): Delete.
5430 (unknown_language_data): Delete la_pass_by_reference
5431 initializer.
5432 (auto_language_data): Likewise.
5433 * language.h (struct language_data): Delete la_pass_by_reference
5434 field.
5435 (language_defn::pass_by_reference_info): New member function.
5436 (default_pass_by_reference): Delete declaration.
5437 * m2-lang.c (m2_language_data): Delete la_pass_by_reference
5438 initializer.
5439 * objc-lang.c (objc_language_data): Likewise.
5440 * opencl-lang.c (opencl_language_data): Likewise.
5441 * p-lang.c (pascal_language_data): Likewise.
5442 * rust-lang.c (rust_language_data): Likewise.
5443
5444 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
5445
5446 * ada-lang.c (ada_read_var_value): Delete function, move
5447 implementation to...
5448 (ada_language::read_var_value): ...here.
5449 (ada_language_data): Delete la_read_var_value initializer.
5450 * c-lang.c (c_language_data): Likewise.
5451 (cplus_language_data): Likewise.
5452 (minimal_language_data): Likewise.
5453 * d-lang.c (d_language_data): Likewise.
5454 * f-lang.c (f_language_data): Likewise.
5455 * findvar.c (default_read_var_value): Rename to...
5456 (language_defn::read_var_value): ...this.
5457 * findvar.c (read_var_value): Update header comment, and change to
5458 call member function instead of function pointer.
5459 * go-lang.c (go_language_data): Likewise.
5460 * language.c (unknown_language_data): Delete la_read_var_value
5461 initializer.
5462 (auto_language_data): Likewise.
5463 * language.h (struct language_data): Delete la_read_var_value
5464 field.
5465 (language_defn::read_var_value): New member function.
5466 (default_read_var_value): Delete declaration.
5467 * m2-lang.c (m2_language_data): Delete la_read_var_value
5468 initializer.
5469 * objc-lang.c (objc_language_data): Likewise.
5470 * opencl-lang.c (opencl_language_data): Likewise.
5471 * p-lang.c (pascal_language_data): Likewise.
5472 * rust-lang.c (rust_language_data): Likewise.
5473 * value.h (default_read_var_value): Delete declaration.
5474
5475 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
5476
5477 * ada-lang.c (ada_print_array_index): Delete function, move
5478 implementation to...
5479 (ada_language::print_array_index): ...here.
5480 (ada_language_data): Delete la_print_array_index initializer.
5481 * c-lang.c (c_language_data): Likewise.
5482 (cplus_language_data): Likewise.
5483 (minimal_language_data): Likewise.
5484 * d-lang.c (d_language_data): Likewise.
5485 * f-lang.c (f_language_data): Likewise.
5486 * go-lang.c (go_language_data): Likewise.
5487 * language.c (default_print_array_index): Delete function, move
5488 implementation to...
5489 (language_defn::print_array_index): ...here.
5490 (unknown_language_data): Delete la_print_array_index initializer.
5491 (auto_language_data): Likewise.
5492 * language.h (struct language_data): Delete la_print_array_index
5493 field.
5494 (language_defn::print_array_index): New member function.
5495 (LA_PRINT_ARRAY_INDEX): Update.
5496 (default_print_array_index): Delete declaration.
5497 * m2-lang.c (m2_language_data): Delete la_print_array_index
5498 initializer.
5499 * objc-lang.c (objc_language_data): Likewise.
5500 * opencl-lang.c (opencl_language_data): Likewise.
5501 * p-lang.c (pascal_language_data): Likewise.
5502 * rust-lang.c (rust_language_data): Likewise.
5503
5504 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
5505
5506 * gdb/ada-lang.c (ada_language_defn): Convert to...
5507 (ada_language_data): ...this.
5508 (class ada_language): New class.
5509 (ada_language_defn): New static global.
5510 * gdb/c-lang.c (c_language_defn): Convert to...
5511 (c_language_data): ...this.
5512 (class c_language): New class.
5513 (c_language_defn): New static global.
5514 (cplus_language_defn): Convert to...
5515 (cplus_language_data): ...this.
5516 (class cplus_language): New class.
5517 (cplus_language_defn): New static global.
5518 (asm_language_defn): Convert to...
5519 (asm_language_data): ...this.
5520 (class asm_language): New class.
5521 (asm_language_defn): New static global.
5522 (minimal_language_defn): Convert to...
5523 (minimal_language_data): ...this.
5524 (class minimal_language): New class.
5525 (minimal_language_defn): New static global.
5526 * gdb/d-lang.c (d_language_defn): Convert to...
5527 (d_language_data): ...this.
5528 (class d_language): New class.
5529 (d_language_defn): New static global.
5530 * gdb/f-lang.c (f_language_defn): Convert to...
5531 (f_language_data): ...this.
5532 (class f_language): New class.
5533 (f_language_defn): New static global.
5534 * gdb/go-lang.c (go_language_defn): Convert to...
5535 (go_language_data): ...this.
5536 (class go_language): New class.
5537 (go_language_defn): New static global.
5538 * gdb/language.c (unknown_language_defn): Remove declaration.
5539 (current_language): Initialize to nullptr, real initialization is
5540 moved to _initialize_language.
5541 (languages): Delete global.
5542 (language_defn::languages): Define.
5543 (set_language_command): Use language_defn::languages.
5544 (set_language): Likewise.
5545 (range_error): Likewise.
5546 (language_enum): Likewise.
5547 (language_def): Likewise.
5548 (add_set_language_command): Use language_def::languages for the
5549 language list, and language_def to lookup language pointers.
5550 (skip_language_trampoline): Use language_defn::languages.
5551 (unknown_language_defn): Convert to...
5552 (unknown_language_data): ...this.
5553 (class unknown_language): New class.
5554 (unknown_language_defn): New static global.
5555 (auto_language_defn): Convert to...
5556 (auto_language_data): ...this.
5557 (class auto_language): New class.
5558 (auto_language_defn): New static global.
5559 (language_gdbarch_post_init): Use language_defn::languages.
5560 (_initialize_language): Initialize current_language.
5561 * gdb/language.h (struct language_defn): Rename to...
5562 (struct language_data): ...this.
5563 (struct language_defn): New.
5564 (auto_language_defn): Delete.
5565 (unknown_language_defn): Delete.
5566 (minimal_language_defn): Delete.
5567 (ada_language_defn): Delete.
5568 (asm_language_defn): Delete.
5569 (c_language_defn): Delete.
5570 (cplus_language_defn): Delete.
5571 (d_language_defn): Delete.
5572 (f_language_defn): Delete.
5573 (go_language_defn): Delete.
5574 (m2_language_defn): Delete.
5575 (objc_language_defn): Delete.
5576 (opencl_language_defn): Delete.
5577 (pascal_language_defn): Delete.
5578 (rust_language_defn): Delete.
5579 * gdb/m2-lang.c (m2_language_defn): Convert to...
5580 (m2_language_data): ...this.
5581 (class m2_language): New class.
5582 (m2_language_defn): New static global.
5583 * gdb/objc-lang.c (objc_language_defn): Convert to...
5584 (objc_language_data): ...this.
5585 (class objc_language): New class.
5586 (objc_language_defn): New static global.
5587 * gdb/opencl-lang.c (opencl_language_defn): Convert to...
5588 (opencl_language_data): ...this.
5589 (class opencl_language): New class.
5590 (opencl_language_defn): New static global.
5591 * gdb/p-lang.c (pascal_language_defn): Convert to...
5592 (pascal_language_data): ...this.
5593 (class pascal_language): New class.
5594 (pascal_language_defn): New static global.
5595 * gdb/rust-exp.y (rust_lex_tests): Use language_def to find
5596 language pointer, update comment format.
5597 * gdb/rust-lang.c (rust_language_defn): Convert to...
5598 (rust_language_data): ...this.
5599 (class rust_language): New class.
5600 (rust_language_defn): New static global.
5601
5602 2020-06-01 Andrew Burgess <andrew.burgess@embecosm.com>
5603
5604 * dwarf2/read.c (class lnp_state_machine) <m_last_address>: New
5605 member variable.
5606 <m_stmt_at_address>: New member variable.
5607 (lnp_state_machine::record_line): Don't record some lines, update
5608 tracking of is_stmt at the same address.
5609 (lnp_state_machine::lnp_state_machine): Initialise new member
5610 variables.
5611
5612 2020-06-01 Samuel Thibault <samuel.thibault@ens-lyon.org>
5613
5614 * config/i386/i386gnu.mn [%_S.o %_U.o] (COMPILE.post): Add
5615 "-include gnu-nat-mig.h".
5616 * gnu-nat-mig.h: New file.
5617 * gnu-nat.c: Include "gnu-nat-mig.h".
5618 (exc_server, msg_reply_server, notify_server,
5619 process_reply_server): Remove declarations.
5620
5621 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
5622
5623 * gnu-nat.h (inf_validate_procs, inf_suspend, inf_set_traced,
5624 steal_exc_port, proc_get_state, inf_clear_wait, inf_cleanup,
5625 inf_startup, inf_update_suspends, inf_set_pid, inf_steal_exc_ports,
5626 inf_validate_procinfo, inf_validate_task_sc, inf_restore_exc_ports,
5627 inf_set_threads_resume_sc, inf_set_threads_resume_sc_for_signal_thread,
5628 inf_resume, inf_set_step_thread, inf_detach, inf_attach, inf_signal,
5629 inf_continue, make_proc, proc_abort, _proc_free, proc_update_sc,
5630 proc_get_exception_port, proc_set_exception_port, _proc_get_exc_port,
5631 proc_steal_exc_port, proc_restore_exc_port, proc_trace): Move functions
5632 to gnu_nat_target class.
5633 * gnu-nat.c: Likewise.
5634 (inf_update_procs, S_proc_wait_reply, set_task_pause_cmd,
5635 set_task_exc_port_cmd, set_signals_cmd, set_thread_pause_cmd,
5636 set_thread_exc_port_cmd): Call inf_validate_procs through gnu_target
5637 object.
5638 (gnu_nat_target::create_inferior, gnu_nat_target::detach): Pass `this'
5639 instead of `gnu_target'.
5640
5641 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
5642
5643 * i386-gnu-tdep.c: Include "gdbcore.h"
5644 (gnu_sigtramp_code, i386_gnu_sc_reg_offset): New arrays.
5645 (GNU_SIGTRAMP_LEN, GNU_SIGTRAMP_TAIL,
5646 I386_GNU_SIGCONTEXT_THREAD_STATE_OFFSET): New macros
5647 (i386_gnu_sigtramp_start, i386_gnu_sigtramp_p,
5648 i386_gnu_sigcontext_addr): New functions
5649 (i386gnu_init_abi): Register i386_gnu_sigtramp_p,
5650 i386_gnu_sigcontext_addr, and i386_gnu_sc_reg_offset in the gdbarch
5651 tdep.
5652
5653 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
5654
5655 * gnu-nat.c (gnu_nat_target::create_inferior): Move push_target call
5656 before fork_inferior call. Avoid calling it if target_is_pushed returns
5657 true.
5658
5659 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
5660
5661 * gnu-nat.h (gnu_target): New variable declaration.
5662 * i386-gnu-nat.c (_initialize_i386gnu_nat): Initialize
5663 gnu_target.
5664 * gnu-nat.c (gnu_target): New variable.
5665 (inf_validate_procs): Pass gnu_target to thread_change_ptid,
5666 add_thread_silent, and add_thread calls.
5667 (gnu_nat_target::create_inferior): Pass gnu_target to
5668 add_thread_silent, thread_change_ptid call.
5669 (gnu_nat_target::detach): Pass gnu_target to detach_inferior
5670 call.
5671
5672 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
5673
5674 * gnu-nat.c (gnu_xfer_auxv): Remove unused `res' variable.
5675 (gnu_nat_target::find_memory_regions): Remove unused
5676 `old_address' variable.
5677
5678 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
5679
5680 * gnu-nat.c: Include "gdbarch.h".
5681
5682 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
5683
5684 * reply_mig_hack.awk (Error return): Cast function through
5685 void *, to bypass compiler function call check.
5686
5687 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
5688
5689 * config/i386/i386gnu.mn (%_reply_S.c): Add dependency on
5690 $(srcdir)/reply_mig_hack.awk.
5691
5692 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
5693
5694 * gnu-nat.h (gnu_debug_flag): Set type to bool.
5695
5696 2020-05-30 Jonny Grant <jg@jguk.org>
5697
5698 * configure.ac (ACX_BUGURL): change bug URL to https.
5699
5700 2020-05-30 Pedro Alves <palves@redhat.com>
5701
5702 * cp-support.c (replace_typedefs_template): New.
5703 (replace_typedefs_qualified_name): Handle
5704 DEMANGLE_COMPONENT_TEMPLATE.
5705
5706 2020-05-29 Simon Marchi <simon.marchi@efficios.com>
5707
5708 * dwarf2/comp-unit.c, dwarf2/comp-unit.h, dwarf2/index-cache.c,
5709 dwarf2/index-cache.h, dwarf2/index-write.c,
5710 dwarf2/index-write.h, dwarf2/line-header.c,
5711 dwarf2/line-header.h, dwarf2/macro.c, dwarf2/macro.h,
5712 dwarf2/read.c, dwarf2/read.h: Rename struct dwarf2_per_objfile
5713 variables and fields from `dwarf2_per_objfile` to just
5714 `per_objfile` throughout.
5715
5716 2020-05-28 Simon Marchi <simon.marchi@polymtl.ca>
5717
5718 * dwarf2/loc.c (class dwarf_evaluate_loc_desc)
5719 <push_dwarf_reg_entry_value>: Add comment.
5720
5721 2020-05-28 Kevin Buettner <kevinb@redhat.com>
5722 Keith Seitz <keiths@redhat.com>
5723
5724 * python/python.c (do_start_initialization): Call PyEval_SaveThread
5725 instead of PyEval_ReleaseLock.
5726 (class gdbpy_gil): Move to earlier in file.
5727 (finalize_python): Set gdb_python_initialized.
5728 (gdbpy_check_quit_flag): Acquire GIL via gdbpy_gil. Return early
5729 when not initialized.
5730
5731 2020-05-28 Simon Marchi <simon.marchi@efficios.com>
5732
5733 * dwarf2/loc.c (class dwarf_evaluate_loc_desc)
5734 <push_dwarf_reg_entry_value>: Remove assert. Override
5735 per_objfile with caller_per_objfile.
5736
5737 2020-05-28 Tom de Vries <tdevries@suse.de>
5738
5739 * dwarf2/read.c (dw2_symtab_iter_next, dw2_expand_marked_cus): Limit
5740 PR gold/15646 workaround to symbol kind "type".
5741
5742 2020-05-27 Tom Tromey <tromey@adacore.com>
5743
5744 * dwarf2/read.c (load_partial_dies): Use add_partial_symbol.
5745
5746 2020-05-27 Tom Tromey <tromey@adacore.com>
5747
5748 * dwarf2/abbrev.h (struct abbrev_table) <lookup_abbrev>: Inline.
5749 Use htab_find_with_hash.
5750 <add_abbrev>: Remove "abbrev_number" parameter.
5751 * dwarf2/abbrev.c (abbrev_table::add_abbrev): Remove
5752 "abbrev_number" parameter. Use htab_find_slot_with_hash.
5753 (hash_abbrev): Add comment.
5754 (abbrev_table::lookup_abbrev): Move to header file.
5755 (abbrev_table::read): Update.
5756
5757 2020-05-27 Tom Tromey <tromey@adacore.com>
5758
5759 * dwarf2/read.c (struct partial_die_info) <name>: Declare new
5760 method.
5761 <canonical_name>: New member.
5762 <raw_name>: Rename from "name".
5763 (partial_die_info): Initialize canonical_name.
5764 (scan_partial_symbols): Check raw_name.
5765 (partial_die_parent_scope, partial_die_full_name)
5766 (add_partial_symbol, add_partial_subprogram)
5767 (add_partial_enumeration, load_partial_dies): Use "name" method.
5768 (partial_die_info::name): New method.
5769 (partial_die_info::read, guess_partial_die_structure_name)
5770 (partial_die_info::fixup): Update.
5771
5772 2020-05-27 Tom Tromey <tromey@adacore.com>
5773
5774 * dwarf2/attribute.h (struct attribute) <form_is_ref>: Inline.
5775 <get_ref_die_offset>: Inline.
5776 <get_ref_die_offset_complaint>: New method.
5777 * dwarf2/attribute.c (attribute::form_is_ref): Move to header.
5778 (attribute::get_ref_die_offset_complaint): Rename from
5779 get_ref_die_offset. Just issue complaint.
5780
5781 2020-05-27 Hannes Domani <ssbssa@yahoo.de>
5782
5783 * cli/cli-cmds.c (shell_escape): Move exit_status_set_internal_vars.
5784
5785 2020-05-27 Hannes Domani <ssbssa@yahoo.de>
5786
5787 * exec.c (exec_file_attach): Use errno value of first openp failure.
5788
5789 2020-05-27 Hannes Domani <ssbssa@yahoo.de>
5790
5791 * nat/windows-nat.c (windows_thread_info::~windows_thread_info):
5792 Don't close thread handle.
5793
5794 2020-05-27 Tom Tromey <tom@tromey.com>
5795 Simon Marchi <simon.marchi@efficios.com>
5796
5797 * objfiles.h (struct objfile) <partial_symtabs>: Now a
5798 shared_ptr.
5799 * dwarf2/read.h (struct dwarf2_per_objfile) <partial_symtabs>: New
5800 member.
5801 * dwarf2/read.c (dwarf2_per_bfd_bfd_data_key,
5802 dwarf2_per_bfd_objfile_data_key>: New globals.
5803 (dwarf2_has_info): Use shared dwarf2_per_bfd if possible.
5804 (dwarf2_get_section_info): Use get_dwarf2_per_objfile.
5805 (dwarf2_initialize_objfile): Consider cases where per_bfd can be
5806 shared.
5807 (dwarf2_build_psymtabs): Set objfile::partial_symtabs and
5808 short-circuit when sharing.
5809 (dwarf2_build_psymtabs): Set dwarf2_per_objfile::partial_symtabs.
5810 (dwarf2_psymtab::expand_psymtab): Use free_cached_comp_units.
5811
5812 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
5813
5814 * dwarf2/read.h (struct dwarf2_per_bfd) <line_header_hash>: Move
5815 to...
5816 (struct dwarf2_per_objfile) <line_header_hash>: ... here.
5817 * dwarf2/read.c (handle_DW_AT_stmt_list): Update.
5818
5819 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
5820
5821 * dwarf2/read.c (struct mapped_index_base) <symbol_name_at,
5822 build_name_components, find_name_components_bounds>:
5823 Add per_objfile parameter.
5824 (struct mapped_index) <symbol_name_at>: Likewise.
5825 (struct mapped_debug_names): Remove constructor.
5826 <dwarf2_per_objfile>: Remove field.
5827 <namei_to_name, symbol_name_at>: Add per_objfile parameter.
5828 (mapped_index_base::find_name_components_bounds,
5829 mapped_index_base::build_name_components,
5830 dw2_expand_symtabs_matching_symbol): Likewise.
5831 (class mock_mapped_index) <symbol_name_at>: Likewise.
5832 (check_match): Likewise.
5833 (check_find_bounds_finds): Likewise.
5834 (test_mapped_index_find_name_component_bounds): Update.
5835 (CHECK_MATCH): Update.
5836 (dw2_expand_symtabs_matching): Update.
5837 (class dw2_debug_names_iterator) <dw2_debug_names_iterator>: Add
5838 per_objfile parameter.
5839 <find_vec_in_debug_names>: Likewise.
5840 <m_per_objfile>: New field.
5841 (mapped_debug_names::namei_to_name): Add dwarf2_per_objfile
5842 parameter.
5843 (dw2_debug_names_iterator::find_vec_in_debug_names): Likewise.
5844 (dw2_debug_names_iterator::next): Update.
5845 (dw2_debug_names_lookup_symbol): Update.
5846 (dw2_debug_names_expand_symtabs_for_function): Update.
5847 (dw2_debug_names_map_matching_symbols): Update.
5848 (dw2_debug_names_expand_symtabs_matching): Update.
5849 (dwarf2_read_debug_names): Update.
5850
5851 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
5852
5853 * dwarf2/read.h (struct dwarf2_cu): Forward-declare.
5854 (struct dwarf2_per_bfd) <free_cached_comp_units>: Remove,
5855 move to dwarf2_per_objfile.
5856 <read_in_chain>: Remove.
5857 (struct dwarf2_per_objfile) <get_cu, set_cu, remove_cu,
5858 remove_all_cus, age_comp_units>: New methods.
5859 <m_dwarf2_cus>: New member.
5860 (struct dwarf2_per_cu_data) <cu>: Remove.
5861 * dwarf2/read.c (struct dwarf2_cu) <read_in_chain>: Remove.
5862 (age_cached_comp_units, free_one_cached_comp_unit): Remove,
5863 moved to methods of dwarf2_per_objfile.
5864 (dwarf2_clear_marks): Remove.
5865 (dwarf2_queue_item::~dwarf2_queue_item): Update.
5866 (dwarf2_per_bfd::~dwarf2_per_bfd): Don't free dwarf2_cus.
5867 (dwarf2_per_bfd::free_cached_comp_units): Remove.
5868 (dwarf2_per_objfile::remove_all_cus): New.
5869 (class free_cached_comp_units) <~free_cached_comp_units>:
5870 Update.
5871 (load_cu): Update.
5872 (dw2_do_instantiate_symtab): Adjust.
5873 (fill_in_sig_entry_from_dwo_entry): Adjust.
5874 (cutu_reader::init_tu_and_read_dwo_dies): Update.
5875 (cutu_reader::cutu_reader): Likewise.
5876 (cutu_reader::keep): Use dwarf2_per_objfile::set_cu.
5877 (cutu_reader::cutu_reader): Use dwarf2_per_objfile::get_cu.
5878 (process_psymtab_comp_unit): Use dwarf2_per_objfile::remove_cu
5879 and dwarf2_per_objfile::age_comp_units.
5880 (load_partial_comp_unit): Update.
5881 (maybe_queue_comp_unit): Use dwarf2_per_objfile::get_cu.
5882 (process_queue): Likewise.
5883 (find_partial_die): Use dwarf2_per_objfile::get_cu instead of cu
5884 backlink.
5885 (dwarf2_read_addr_index): Likewise.
5886 (follow_die_offset): Likewise.
5887 (dwarf2_fetch_die_loc_sect_off): Likewise.
5888 (dwarf2_fetch_constant_bytes): Likewise.
5889 (dwarf2_fetch_die_type_sect_off): Likewise.
5890 (follow_die_sig_1): Likewise.
5891 (load_full_type_unit): Likewise.
5892 (read_signatured_type): Likewise.
5893 (dwarf2_cu::dwarf2_cu): Don't set cu field.
5894 (dwarf2_cu::~dwarf2_cu): Remove.
5895 (dwarf2_per_objfile::get_cu): New.
5896 (dwarf2_per_objfile::set_cu): New.
5897 (age_cached_comp_units): Rename to...
5898 (dwarf2_per_objfile::age_comp_units): ... this. Adjust
5899 to std::unordered_map.
5900 (free_one_cached_comp_unit): Rename to...
5901 (dwarf2_per_objfile::remove_cu): ... this. Adjust
5902 to std::unordered_map.
5903 (dwarf2_per_objfile::~dwarf2_per_objfile): New.
5904 (dwarf2_mark_helper): Use dwarf2_per_objfile::get_cu, expect
5905 a dwarf2_per_objfile in data.
5906 (dwarf2_mark): Pass dwarf2_per_objfile in data to htab_traverse.
5907 (dwarf2_clear_marks): Remove.
5908
5909 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
5910
5911 * dwarf2/read.c (class cutu_reader) <cutu_reader>: Replace
5912 `int use_existing_cu` parameter with `dwarf2_cu *existing_cu`.
5913 (init_tu_and_read_dwo_dies): Likewise.
5914 (cutu_reader::init_tu_and_read_dwo_dies): Likewise.
5915 (cutu_reader::cutu_reader): Likewise.
5916 (load_partial_comp_unit): Likewise.
5917 (process_psymtab_comp_unit): Update.
5918 (build_type_psymtabs_1): Update.
5919 (process_skeletonless_type_unit): Update.
5920 (load_full_comp_unit): Update.
5921 (find_partial_die): Update.
5922 (dwarf2_read_addr_index): Update.
5923 (read_signatured_type): Update.
5924
5925 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
5926
5927 * dwarf2/read.h (struct dwarf2_per_cu_data) <m_header,
5928 m_header_read_in>: New fields.
5929 <get_header>: New method.
5930 * dwarf2/read.c (per_cu_header_read_in): Remove.
5931 (dwarf2_per_cu_data::get_header): New.
5932 (dwarf2_per_cu_data::addr_size): Update.
5933 (dwarf2_per_cu_data::offset_size): Update.
5934 (dwarf2_per_cu_data::ref_addr_size): Update.
5935
5936 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
5937
5938 * dwarf2/read.c (load_cu): Return dwarf2_cu.
5939 (dw2_do_instantiate_symtab): Update.
5940 (queue_and_load_all_dwo_tus): Change parameter from
5941 dwarf2_per_cu_data to dwarf2_cu.
5942 (dwarf2_fetch_die_loc_sect_off): Update.
5943 (dwarf2_fetch_constant_bytes): Update.
5944 (dwarf2_fetch_die_type_sect_off): Update.
5945
5946 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
5947
5948 * dwarf2/read.c (process_full_comp_unit,
5949 process_full_type_unit): Remove per_cu, per_objfile paramters.
5950 Add dwarf2_cu parameter.
5951 (process_queue): Update.
5952
5953 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
5954
5955 * dwarf2/read.c (create_cu_from_index_list): Replace
5956 dwarf2_per_objfile parameter with dwarf2_per_bfd.
5957 (create_cus_from_index_list): Likewise.
5958 (create_cus_from_index): Likewise.
5959 (create_signatured_type_table_from_index): Likewise.
5960 (create_cus_from_debug_names_list): Likewise.
5961 (create_cus_from_debug_names): Likewise.
5962 (dwarf2_read_gdb_index): Update.
5963 (dwarf2_read_debug_names): Update.
5964
5965 2020-05-27 Tom Tromey <tom@tromey.com>
5966 Simon Marchi <simon.marchi@efficios.com>
5967
5968 * dwarf2/read.h (struct dwarf2_per_objfile)
5969 <get_type_for_signatured_type, set_type_for_signatured_type>:
5970 New methods.
5971 <m_type_map>: New member.
5972 (struct signatured_type) <type>: Remove.
5973 * dwarf2/read.c
5974 (dwarf2_per_objfile::get_type_for_signatured_type,
5975 dwarf2_per_objfile::set_type_for_signatured_type): New.
5976 (get_signatured_type): Use new methods.
5977
5978 2020-05-27 Tom Tromey <tom@tromey.com>
5979 Simon Marchi <simon.marchi@efficios.com>
5980
5981 * dwarf2/read.h (struct type_unit_group_unshareable): New.
5982 (struct dwarf2_per_objfile) <type_units>: New member.
5983 <get_type_unit_group_unshareable>: New method.
5984 * dwarf2/read.c (struct type_unit_group) <compunit_symtab,
5985 num_symtabs, symtabs>: Remove; move to
5986 type_unit_group_unshareable.
5987 (dwarf2_per_objfile::get_type_unit_group_unshareable): New.
5988 (process_full_type_unit, dwarf2_cu::setup_type_unit_groups)
5989 (dwarf2_cu::setup_type_unit_groups): Use type_unit_group_unshareable.
5990
5991 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
5992
5993 * dwarf2/read.h (struct dwarf2_per_cu_data):
5994 <dwarf2_per_objfile>: Remove.
5995 * dwarf2/read.c (create_cu_from_index_list): Don't assign
5996 dwarf2_per_objfile.
5997 (create_signatured_type_table_from_index): Likewise.
5998 (create_signatured_type_table_from_debug_names): Likewise.
5999 (create_debug_type_hash_table): Likewise.
6000 (fill_in_sig_entry_from_dwo_entry): Likewise.
6001 (create_type_unit_group): Likewise.
6002 (read_comp_units_from_section): Likewise.
6003 (create_cus_hash_table): Likewise.
6004
6005 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
6006
6007 * dwarf2/read.c (process_psymtab_comp_unit): Remove reference to
6008 dwarf2_per_cu_data::dwarf2_per_objfile.
6009 (compute_compunit_symtab_includes): Likewise.
6010 (dwarf2_cu::start_symtab): Likewise.
6011
6012 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
6013
6014 * dwarf2/read.h (dwarf2_get_die_type): Add dwarf2_per_objfile
6015 parameter.
6016 * dwarf2/read.c (get_die_type_at_offset): Likewise.
6017 (read_namespace_alias): Update.
6018 (lookup_die_type): Update.
6019 (dwarf2_get_die_type): Add dwarf2_per_objfile parameter.
6020 * dwarf2/loc.c (class dwarf_evaluate_loc_desc) <get_base_type>:
6021 Update.
6022 (disassemble_dwarf_expression): Update.
6023
6024 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
6025
6026 * dwarf2/read.h (struct dwarf2_queue_item): Add
6027 dwarf2_per_objfile parameter, assign new parameter.
6028 <per_objfile>: New field.
6029 * dwarf2/read.c (free_one_cached_comp_unit): Add
6030 dwarf2_per_objfile parameter.
6031 (queue_comp_unit): Likewise.
6032 (dw2_do_instantiate_symtab): Update.
6033 (process_psymtab_comp_unit): Update.
6034 (maybe_queue_comp_unit): Add dwarf2_per_objfile parameter.
6035 (process_imported_unit_die): Update.
6036 (queue_and_load_dwo_tu): Update.
6037 (follow_die_offset): Update.
6038 (follow_die_sig_1): Update.
6039
6040 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
6041
6042 * dwarf2/read.h (struct dwarf2_per_cu_data) <objfile>: Remove.
6043 * dwarf2/read.c (dwarf2_compute_name): Pass per_objfile down.
6044 (read_call_site_scope): Assign per_objfile.
6045 (dwarf2_per_cu_data::objfile): Remove.
6046 * gdbtypes.h (struct call_site) <per_objfile>: New member.
6047 * dwarf2/loc.h (dwarf2_evaluate_loc_desc): Add
6048 dwarf2_per_objfile parameter.
6049 * dwarf2/loc.c (dwarf2_evaluate_loc_desc_full): Add
6050 dwarf2_per_objfile parameter.
6051 (dwarf_expr_reg_to_entry_parameter): Add output
6052 dwarf2_per_objfile parameter.
6053 (locexpr_get_frame_base): Update.
6054 (class dwarf_evaluate_loc_desc) <get_tls_address>: Update.
6055 <push_dwarf_reg_entry_value>: Update.
6056 <call_site_to_target_addr>: Update.
6057 (dwarf_entry_parameter_to_value): Add dwarf2_per_objfile
6058 parameter.
6059 (value_of_dwarf_reg_entry): Update.
6060 (rw_pieced_value): Update.
6061 (indirect_synthetic_pointer): Update.
6062 (dwarf2_evaluate_property): Update.
6063 (dwarf2_loc_desc_get_symbol_read_needs): Add dwarf2_per_objfile
6064 parameter.
6065 (locexpr_read_variable): Update.
6066 (locexpr_get_symbol_read_needs): Update.
6067 (loclist_read_variable): Update.
6068
6069 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
6070
6071 * dwarf2/read.h (dwarf2_fetch_die_loc_sect_off,
6072 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
6073 dwarf2_fetch_die_type_sect_off): Add dwarf2_per_objfile
6074 parameter.
6075 * dwarf2/read.c (dwarf2_fetch_die_loc_sect_off,
6076 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
6077 dwarf2_fetch_die_type_sect_off): Add dwarf2_per_objfile
6078 parameter.
6079 * dwarf2/loc.c (indirect_synthetic_pointer, per_cu_dwarf_call,
6080 sect_variable_value): Add dwarf2_per_objfile parameter.
6081 (class dwarf_evaluate_loc_desc) <dwarf_call,
6082 dwarf_variable_value>: Update.
6083 (fetch_const_value_from_synthetic_pointer): Add
6084 dwarf2_per_objfile parameter.
6085 (fetch_const_value_from_synthetic_pointer): Update.
6086 (coerced_pieced_ref): Update.
6087 (class symbol_needs_eval_context) <dwarf_call,
6088 dwarf_variable_value>: Update.
6089 (dwarf2_compile_expr_to_ax): Update.
6090
6091 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
6092
6093 * dwarf2/loc.c (allocate_piece_closure): Add dwarf2_per_objfile
6094 parameter.
6095 (dwarf2_evaluate_loc_desc_full): Update.
6096
6097 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
6098
6099 * dwarf2/read.h (dwarf2_read_addr_index): Add dwarf2_per_objfile
6100 parameter.
6101 * dwarf2/read.c (dwarf2_read_addr_index): Likewise.
6102 * dwarf2/loc.c (decode_debug_loclists_addresses): Add
6103 dwarf2_per_objfile parameter.
6104 (decode_debug_loc_dwo_addresses): Likewise.
6105 (dwarf2_find_location_expression): Update.
6106 (class dwarf_evaluate_loc_desc) <get_addr_index>: Update.
6107 (locexpr_describe_location_piece): Add dwarf2_per_objfile
6108 parameter.
6109 (disassemble_dwarf_expression): Add dwarf2_per_objfile
6110 parameter.
6111 (locexpr_describe_location_1): Likewise.
6112 (locexpr_describe_location): Update.
6113
6114 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
6115
6116 * dwarf2/read.h (struct dwarf2_per_cu_data) <text_offset>:
6117 Remove.
6118 * dwarf2/read.c (dwarf2_per_cu_data::text_offset): Remove.
6119 * dwarf2/loc.c (dwarf2_find_location_expression): Update.
6120 (dwarf2_compile_property_to_c): Update.
6121 (dwarf2_compile_expr_to_ax): Add dwarf2_per_objfile parameter,
6122 use text offset from objfile.
6123 (locexpr_tracepoint_var_ref): Update.
6124 (locexpr_generate_c_location): Update.
6125 (loclist_describe_location): Update.
6126 (loclist_tracepoint_var_ref): Update.
6127 * dwarf2/compile.h (compile_dwarf_bounds_to_c): Add
6128 dwarf2_per_objfile parameter.
6129 * dwarf2/loc2c.c (do_compile_dwarf_expr_to_c): Likewise,
6130 use text offset from objfile.
6131 (compile_dwarf_expr_to_c): Add dwarf2_per_objfile parameter.
6132
6133 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
6134
6135 * dwarf2/expr.h (struct dwarf_expr_context)
6136 <dwarf_expr_context>: Add dwarf2_per_objfile parameter.
6137 <offset>: Remove.
6138 <per_objfile>: New member.
6139 * dwarf2/expr.c (dwarf_expr_context::dwarf_expr_context): Add
6140 dwarf2_per_objfile parameter. Don't set offset, set
6141 per_objfile.
6142 (dwarf_expr_context::execute_stack_op): Use offset from objfile.
6143 * dwarf2/frame.c (dwarf2_frame_find_fde): Return (by parameter)
6144 a dwarf2_per_objfile object instead of an offset.
6145 (class dwarf_expr_executor) <dwarf_expr_executor>: Add
6146 constructor.
6147 (execute_stack_op): Add dwarf2_per_objfile parameter, pass it
6148 to dwarf2_expr_executor constructor. Don't set offset.
6149 (dwarf2_fetch_cfa_info): Update.
6150 (struct dwarf2_frame_cache) <text_offset>: Remove.
6151 <per_objfile>: New field.
6152 (dwarf2_frame_cache): Update.
6153 (dwarf2_frame_prev_register): Update.
6154 * dwarf2/loc.c (class dwarf_evaluate_loc_desc)
6155 <dwarf_evaluate_loc_desc>: Add constructor.
6156 (dwarf2_evaluate_loc_desc_full): Update.
6157 (dwarf2_locexpr_baton_eval): Update.
6158 (class symbol_needs_eval_context) <symbol_needs_eval_context>:
6159 Add constructor.
6160 (dwarf2_loc_desc_get_symbol_read_needs): Update.
6161
6162 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
6163
6164 * dwarf2/read.h (struct dwarf2_per_cu_data) <addr_type,
6165 addr_sized_int_type>: Move to dwarf2_cu.
6166 <int_type>: Move to dwarf2_per_objfile.
6167 (struct dwarf2_per_objfile) <int_type>: Move here.
6168 * dwarf2/read.c (struct dwarf2_cu) <addr_type,
6169 addr_sized_int_type>: Move here.
6170 (read_func_scope): Update.
6171 (read_array_type): Update.
6172 (read_tag_string_type): Update.
6173 (attr_to_dynamic_prop): Update.
6174 (dwarf2_per_cu_data::int_type): Rename to...
6175 (dwarf2_per_objfile::int_type): ... this.
6176 (dwarf2_per_cu_data::addr_sized_int_type): Rename to...
6177 (dwarf2_cu::addr_sized_int_type): ... this.
6178 (read_subrange_type): Update.
6179 (dwarf2_per_cu_data::addr_type): Rename to...
6180 (dwarf2_cu::addr_type): ... this.
6181 (set_die_type): Update.
6182
6183 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
6184
6185 * dwarf2/read.c (queue_and_load_all_dwo_tus): Access per_objfile
6186 data through per_cu->cu.
6187
6188 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
6189
6190 * dwarf2/read.c (lookup_dwo_comp_unit): Change
6191 dwarf2_per_cu_data parameter fo dwarf2_cu.
6192 (lookup_dwo_type_unit): Likewise.
6193 (read_cutu_die_from_dwo): Likewise.
6194 (lookup_dwo_unit): Likewise.
6195 (open_and_init_dwo_file): Likewise.
6196 (lookup_dwo_cutu): Likewise.
6197 (lookup_dwo_comp_unit): Likewise.
6198 (lookup_dwo_type_unit): Likewise.
6199 (cutu_reader::init_tu_and_read_dwo_dies): Update.
6200 (cutu_reader::cutu_reader): Update.
6201
6202 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
6203
6204 * dwarf2/read.c (process_full_comp_unit): Add dwarf2_per_objfile
6205 parameter.
6206 (process_full_type_unit): Likewise.
6207 (process_queue): Update.
6208
6209 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
6210
6211 * dwarf2/read.c (recursively_compute_inclusions): Add
6212 dwarf2_per_objfile parameter.
6213 (compute_compunit_symtab_includes): Likewise.
6214 (process_cu_includes): Update.
6215
6216 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
6217
6218 * dwarf2/read.c (create_partial_symtab): Add dwarf2_per_objfile
6219 parameter.
6220 (create_type_unit_group): Update.
6221 (process_psymtab_comp_unit_reader): Update.
6222 (build_type_psymtabs_reader): Update.
6223
6224 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
6225
6226 * dwarf2/read.c (cutu_reader::keep): Access dwarf2_per_objfile
6227 object through m_this_cu->cu.
6228
6229 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
6230
6231 * dwarf2/read.c (queue_and_load_dwo_tu): Expect a dwarf2_cu as
6232 the info parameter.
6233 (queue_and_load_all_dwo_tus): Pass per_cu->cu.
6234
6235 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
6236
6237 * dwarf2/read.c (class cutu_reader) <cutu_reader>: Add
6238 per_objfile parameter.
6239 (load_full_type_unit): Add per_objfile parameter.
6240 (read_signatured_type): Likewise.
6241 (load_full_comp_unit): Likewise.
6242 (load_cu): Likewise.
6243 (dw2_do_instantiate_symtab): Likewise.
6244 (dw2_get_file_names): Likewise.
6245 (dw2_map_symtabs_matching_filename): Update.
6246 (dw_expand_symtabs_matching_file_matcher): Update.
6247 (dw2_map_symbol_filenames): Update.
6248 (process_psymtab_comp_unit): Add per_objfile parameter.
6249 (build_type_psymtabs_1): Update.
6250 (process_skeletonless_type_unit): Update.
6251 (dwarf2_build_psymtabs_hard): Update.
6252 (load_partial_comp_unit): Add per_objfile parameter.
6253 (scan_partial_symbols): Update.
6254 (load_full_comp_unit): Add per_objfile parameter.
6255 (process_imported_unit_die): Update.
6256 (create_cus_hash_table): Update.
6257 (find_partial_die): Update.
6258 (dwarf2_read_addr_index): Update.
6259 (follow_die_offset): Update.
6260 (dwarf2_fetch_die_loc_sect_off): Update.
6261 (dwarf2_fetch_constant_bytes): Update.
6262 (dwarf2_fetch_die_type_sect_off): Update.
6263 (follow_die_sig_1): Update.
6264 (load_full_type_unit): Add per_objfile parameter.
6265 (read_signatured_type): Likewise.
6266
6267 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
6268
6269 * dwarf2/read.c (lookup_dwo_unit): Use bfd_get_filename instead
6270 of objfile_name.
6271
6272 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
6273
6274 * dwarf2/read.h (struct dwarf2_per_bfd) <obfd>: New member.
6275 (dwarf2_get_dwz_file): Replace parameter with dwarf2_per_bfd.
6276 * dwarf2/read.c (dwarf2_per_bfd::dwarf2_per_bfd): Assign obfd
6277 field.
6278 (dwarf2_get_dwz_file): Replace parameter with dwarf2_per_bfd.
6279 (create_cus_from_index): Update.
6280 (dwarf2_read_gdb_index): Update.
6281 (create_cus_from_debug_names): Update.
6282 (dwarf2_read_debug_names): Update.
6283 (get_abbrev_section_for_cu): Update.
6284 (create_all_comp_units): Update.
6285 (read_attribute_value): Update.
6286 (get_debug_line_section): Update.
6287 * dwarf2/index-cache.c (index_cache::store): Update.
6288 * dwarf2/index-write.c (save_gdb_index_command): Update.
6289 * dwarf2/macro.c (dwarf_decode_macro_bytes): Update.
6290
6291 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
6292
6293 * dwarf2/read.h (struct dwarf2_per_cu_data) <per_bfd>: New
6294 member.
6295 * dwarf2/read.c (dwarf2_per_bfd::allocate_per_cu): Initialize
6296 dwarf2_per_cu_data::per_bfd.
6297 (dwarf2_per_bfd::allocate_signatured_type): Likewise.
6298 (create_type_unit_group): Likewise.
6299 (queue_comp_unit): Remove reference to
6300 per_cu->dwarf2_per_objfile.
6301 (maybe_queue_comp_unit): Likewise.
6302 (fill_in_sig_entry_from_dwo_entry): Assign new field.
6303 (create_cus_hash_table): Assign new field.
6304
6305 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
6306
6307 * dwarf2/read.c: Replace
6308 dwarf2_cu->per_cu->dwarf2_per_objfile references with
6309 dwarf2_cu->per_objfile throughout.
6310
6311 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
6312
6313 * dwarf2/read.c (dw2_do_instantiate_symtab): Add per_objfile
6314 parameter, don't use per_cu->dwarf2_per_objfile.
6315 (dw2_instantiate_symtab): Likewise.
6316 (dw2_find_last_source_symtab): Update.
6317 (dw2_map_expand_apply): Update.
6318 (dw2_lookup_symbol): Update.
6319 (dw2_expand_symtabs_for_function): Update.
6320 (dw2_expand_all_symtabs): Update.
6321 (dw2_expand_symtabs_with_fullname): Update.
6322 (dw2_expand_symtabs_matching_one): Add per_objfile parameter,
6323 don't use per_cu->dwarf2_per_objfile.
6324 (dw2_expand_marked_cus): Update.
6325 (dw2_find_pc_sect_compunit_symtab): Update.
6326 (dw2_debug_names_lookup_symbol): Update.
6327 (dw2_debug_names_expand_symtabs_for_function): Update.
6328 (dw2_debug_names_map_matching_symbols): Update.
6329 (dwarf2_psymtab::expand_psymtab): Update.
6330
6331 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
6332
6333 * dwarf2/read.c (struct dwarf2_cu) <dwarf2_cu>: Add parameter.
6334 <per_objfile>: New member.
6335 (class cutu_reader) <init_tu_and_read_dwo_dies>: Add parameter.
6336 (cutu_reader::init_tu_and_read_dwo_dies): Add parameter, update
6337 call to dwarf2_cu.
6338 (cutu_reader::cutu_reader): Update.
6339 (dwarf2_cu::dwarf2_cu): Add parameter, initialize per_objfile.
6340
6341 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
6342
6343 * dwarf2/read.h (struct dwarf2_per_bfd) <die_type_hash>: Move to
6344 struct dwarf2_per_objfile.
6345 (struct dwarf2_per_objfile) <die_type_hash>: Move from struct
6346 dwarf2_per_bfd.
6347 * dwarf2/read.c (set_die_type): Update.
6348 (get_die_type_at_offset): Update.
6349
6350 2020-05-27 Tom Tromey <tom@tromey.com>
6351 Simon Marchi <simon.marchi@efficios.com>
6352
6353 * dwarf2/read.h (struct dwarf2_per_bfd) <num_psymtabs>: New
6354 method.
6355 (struct dwarf2_per_objfile) <resize_symtabs, symtab_set_p,
6356 get_symtab, set_symtab>: New methods.
6357 <m_symtabs>: New field.
6358 (struct dwarf2_psymtab): Derive from partial_symtab.
6359 <readin_p, get_compunit_symtab>: Declare methods.
6360 * dwarf2/read.c (dwarf2_per_objfile::symtab_set_p,
6361 dwarf2_per_objfile::get_symtab, dwarf2_per_objfile::set_symtab):
6362 New methods.
6363 (struct dwarf2_per_cu_quick_data) <compunit_symtab>: Remove.
6364 (dw2_do_instantiate_symtab, dw2_instantiate_symtab)
6365 (dw2_map_expand_apply, dw2_map_symtabs_matching_filename)
6366 (dw2_symtab_iter_next, dw2_print_stats)
6367 (dw2_expand_symtabs_with_fullname)
6368 (dw2_expand_symtabs_matching_one)
6369 (dw_expand_symtabs_matching_file_matcher)
6370 (dw2_find_pc_sect_compunit_symtab, dw2_map_symbol_filenames)
6371 (dw2_debug_names_iterator::next)
6372 (dw2_debug_names_map_matching_symbols)
6373 (fill_in_sig_entry_from_dwo_entry, dwarf2_psymtab::read_symtab)
6374 (process_queue, dwarf2_psymtab::expand_psymtab): Update.
6375 (dwarf2_psymtab::readin_p, dwarf2_psymtab::get_compunit_symtab):
6376 New methods.
6377 (get_compunit_symtab, process_full_comp_unit)
6378 (process_full_type_unit): Update.
6379 (dwarf2_build_psymtabs, dwarf2_initialize_objfile, add_type_unit): Call
6380
6381 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
6382
6383 * dwarf2/read.h (dwarf2_per_objfile): Rename to dwarf2_per_bfd,
6384 then introduce a new dwarf2_per_objfile type.
6385 <read_line_string>: Move to the new dwarf2_per_objfile type.
6386 <objfile>: Likewise.
6387 (dwarf2_per_bfd): Rename dwarf2_per_objfile to this.
6388 * dwarf2/read.c: Replace references to dwarf2_per_objfile with
6389 dwarf2_per_objfile->per_bfd.
6390 (dwarf2_per_objfile::dwarf2_per_objfile): Rename to...
6391 (dwarf2_per_bfd::dwarf2_per_bfd): ... this.
6392 (dwarf2_per_objfile::free_cached_comp_units): Rename to...
6393 (dwarf2_per_bfd::free_cached_comp_units): ... this.
6394 (dwarf2_has_info): Allocate dwarf2_per_bfd.
6395 (dwarf2_per_objfile::locate_sections): Rename to...
6396 (dwarf2_per_bfd::locate_sections): ... this.
6397 (dwarf2_per_objfile::get_cutu): Rename to...
6398 (dwarf2_per_bfd::get_cutu): ... this.
6399 (dwarf2_per_objfile::get_cu): Rename to...
6400 (dwarf2_per_bfd::get_cu): ... this.
6401 (dwarf2_per_objfile::get_tu): Rename to...
6402 (dwarf2_per_bfd::get_tu): ... this.
6403 (dwarf2_per_objfile::allocate_per_cu): Rename to...
6404 (dwarf2_per_bfd::allocate_per_cu): ... this.
6405 (dwarf2_per_objfile::allocate_signatured_type): Rename to...
6406 (dwarf2_per_bfd::allocate_signatured_type): ... this.
6407 (get_gdb_index_contents_ftype): Change parameter from
6408 dwarf2_per_objfile to dwarf2_per_bfd.
6409 * dwarf2/macro.c, dwarf2/index-write.c: Replace references to
6410 dwarf2_per_objfile with dwarf2_per_objfile->per_bfd.
6411
6412 2020-05-27 Tom Tromey <tom@tromey.com>
6413 Simon Marchi <simon.marchi@efficios.com>
6414
6415 * dwarf2/loc.c (struct piece_closure) <per_objfile>: New member.
6416 (allocate_piece_closure): Set "per_objfile" member.
6417 (dwarf2_find_location_expression, dwarf2_locexpr_baton_eval)
6418 (locexpr_describe_location, loclist_describe_location): Use new
6419 member.
6420 * dwarf2/read.c (read_call_site_scope)
6421 (mark_common_block_symbol_computed, attr_to_dynamic_prop)
6422 (dwarf2_const_value_attr, dwarf2_fetch_die_loc_sect_off)
6423 (fill_in_loclist_baton, dwarf2_symbol_mark_computed,
6424 handle_data_member_location): Set per_objfile member.
6425 * dwarf2/loc.h (struct dwarf2_locexpr_baton) <per_objfile>: New
6426 member.
6427 (struct dwarf2_loclist_baton) <per_objfile>: New member.
6428
6429 2020-05-27 Tom Tromey <tom@tromey.com>
6430
6431 * dwarf2/read.h (struct dwarf2_per_objfile) <allocate_per_cu,
6432 allocate_signatured_type>: Declare new methods.
6433 <m_num_psymtabs>: New member.
6434 (struct dwarf2_per_cu_data) <index>: New member.
6435 * dwarf2/read.c (dwarf2_per_objfile::allocate_per_cu)
6436 (dwarf2_per_objfile::allocate_signatured_type): New methods.
6437 (create_cu_from_index_list): Use allocate_per_cu.
6438 (create_signatured_type_table_from_index)
6439 (create_signatured_type_table_from_debug_names)
6440 (create_debug_type_hash_table, add_type_unit)
6441 (read_comp_units_from_section): Use allocate_signatured_type.
6442
6443 2020-05-27 Tom Tromey <tom@tromey.com>
6444
6445 * psymtab.c (partial_map_expand_apply)
6446 (psym_find_pc_sect_compunit_symtab, psym_lookup_symbol)
6447 (psym_lookup_global_symbol_language)
6448 (psymtab_to_symtab, psym_find_last_source_symtab, dump_psymtab)
6449 (psym_print_stats, psym_expand_symtabs_for_function)
6450 (psym_map_symbol_filenames, psym_map_matching_symbols)
6451 (psym_expand_symtabs_matching)
6452 (partial_symtab::read_dependencies, maintenance_info_psymtabs)
6453 (maintenance_check_psymtabs): Update.
6454 * psympriv.h (struct partial_symtab) <readin_p,
6455 get_compunit_symtab>: Add objfile parameter.
6456 (struct standard_psymtab) <readin_p, get_compunit_symtab>:
6457 Likewise.
6458 * dwarf2/read.c (struct dwarf2_include_psymtab) <readin_p,
6459 get_compunit_symtab>: Likewise.
6460 (dwarf2_psymtab::expand_psymtab): Pass objfile argument.
6461
6462 2020-05-27 Tom Tromey <tom@tromey.com>
6463
6464 * dwarf2/read.h (struct dwarf2_per_objfile) <obstack>: New
6465 member.
6466 * dwarf2/read.c (delete_file_name_entry): Fix comment.
6467 (create_cu_from_index_list)
6468 (create_signatured_type_table_from_index)
6469 (create_signatured_type_table_from_debug_names)
6470 (dw2_get_file_names_reader, dwarf2_initialize_objfile)
6471 (dwarf2_create_include_psymtab)
6472 (create_debug_type_hash_table, add_type_unit)
6473 (create_type_unit_group, read_comp_units_from_section)
6474 (dwarf2_compute_name, create_cus_hash_table)
6475 (create_dwp_hash_table, create_dwo_unit_in_dwp_v1)
6476 (create_dwo_unit_in_dwp_v2, open_and_init_dwp_file): Use new
6477 obstack.
6478 (dw2_get_real_path): Likewise. Change argument to
6479 dwarf2_per_objfile.
6480
6481 2020-05-27 Luis Machado <luis.machado@linaro.org>
6482
6483 PR tdep/26000
6484 * arm-tdep.c (thumb_analyze_prologue): Fix instruction matching
6485 for ldrd (immediate).
6486
6487 2020-05-26 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6488
6489 * command.h: Add comment giving the name of class_tui.
6490 * cli/cli-cmds.c (_initialize_cli_cmds): If TUI defined,
6491 create the fake command for the help for class_tui.
6492
6493 2020-05-26 Tom Tromey <tromey@adacore.com>
6494
6495 * ada-lang.c (ada_print_array_index): Change type. Call val_atr.
6496 (ada_value_ptr_subscript): Don't call pos_atr on the lower bound.
6497 (val_atr): New function.
6498 (value_val_atr): Use it.
6499 * ada-valprint.c (print_optional_low_bound): Change low bound
6500 handling for enums.
6501 (val_print_packed_array_elements): Don't call discrete_position.
6502 * gdbtypes.c (get_discrete_bounds) <TYPE_CODE_RANGE>: Call
6503 discrete_position for enum types.
6504 * language.c (default_print_array_index): Change type.
6505 * language.h (struct language_defn) <la_print_array_index>: Add
6506 index_type parameter, change type of index_value.
6507 (LA_PRINT_ARRAY_INDEX): Add index_type parameter.
6508 (default_print_array_index): Update.
6509 * valprint.c (maybe_print_array_index): Don't call
6510 value_from_longest. Update.
6511 (value_print_array_elements): Don't call discrete_position.
6512
6513 2020-05-26 Tom Tromey <tromey@adacore.com>
6514
6515 * ada-lang.c (value_val_atr): Handle TYPE_CODE_RANGE.
6516 * gdbtypes.c (discrete_position): Handle TYPE_CODE_RANGE.
6517
6518 2020-05-25 Cristiano De Alti <cristiano_dealti@hotmail.com>
6519
6520 PR gdb/13519
6521 * avr-tdep.c (avr_integer_to_address): Return data or code
6522 address accordingly to the second 'type' argument of the
6523 function.
6524
6525 2020-05-25 Michael Weghorn <m.weghorn@posteo.de>
6526
6527 * infcmd.c, inferior.h: (construct_inferior_arguments):
6528 Moved function from here to gdbsupport/common-inferior.{h,cc}
6529
6530 2020-05-23 Tom Tromey <tom@tromey.com>
6531
6532 Revert commit eca1f90c:
6533 * NEWS: Remove entry for completion styling.
6534 * completer.c (_rl_completion_prefix_display_length): Move
6535 declaration later.
6536 (gdb_fnprint): Revert.
6537 (gdb_display_match_list_1): Likewise.
6538 * cli/cli-style.c (completion_prefix_style)
6539 (completion_difference_style, completion_suffix_style): Remove.
6540 (_initialize_cli_style): Revert.
6541 * cli/cli-style.h (completion_prefix_style)
6542 (completion_difference_style, completion_suffix_style): Don't
6543 declare.
6544
6545 2020-05-24 Pedro Alves <palves@redhat.com>
6546
6547 * symtab.c (completion_list_add_name): Return boolean indication
6548 of whether the symbol matched.
6549 (completion_list_add_symbol): Don't try to remove C++ aliases if
6550 the symbol didn't match in the first place.
6551 * symtab.h (completion_list_add_name): Return bool.
6552
6553 2020-05-23 Simon Marchi <simon.marchi@polymtl.ca>
6554
6555 * gdbtypes.h (TYPE_FIELD): Remove. Replace all uses with
6556 type::field.
6557
6558 2020-05-23 Joel Brobecker <brobecker@adacore.com>
6559
6560 GDB 9.2 released.
6561
6562 2020-05-23 Tom Tromey <tom@tromey.com>
6563
6564 * NEWS: Add entry for completion styling.
6565 * completer.c (_rl_completion_prefix_display_length): Move
6566 declaration earlier.
6567 (gdb_fnprint): Use completion_style.
6568 (gdb_display_match_list_1): Likewise.
6569 * cli/cli-style.c (completion_prefix_style)
6570 (completion_difference_style, completion_suffix_style): New
6571 globals.
6572 (_initialize_cli_style): Register new globals.
6573 * cli/cli-style.h (completion_prefix_style)
6574 (completion_difference_style, completion_suffix_style): Declare.
6575
6576 2020-05-23 Pedro Alves <palves@redhat.com>
6577
6578 * utils.c: Include "gdbsupport/gdb-safe-ctype.h".
6579 (parse_escape): Use ISDIGIT instead of isdigit.
6580 (puts_debug): Use gdb_isprint instead of isprint.
6581 (fprintf_symbol_filtered): Use ISALNUM instead of isalnum.
6582 (cp_skip_operator_token, skip_ws, strncmp_iw_with_mode): Use
6583 ISSPACE instead of isspace.
6584 (strncmp_iw_with_mode): Use TOLOWER instead of tolower and ISSPACE
6585 instead of isspace.
6586 (strcmp_iw_ordered): Use ISSPACE instead of isspace.
6587 (string_to_core_addr): Use TOLOWER instead of tolower, ISXDIGIT
6588 instead of isxdigit and ISDIGIT instead of isdigit.
6589
6590 2020-05-22 Simon Marchi <simon.marchi@efficios.com>
6591
6592 * gdbtypes.h (struct type) <field>: New method.
6593 (TYPE_FIELDS): Remove, replace all uses with either type::fields
6594 or type::field.
6595
6596 2020-05-22 Simon Marchi <simon.marchi@efficios.com>
6597
6598 * gdbtypes.h (struct type) <fields, set_fields>: New methods.
6599 (TYPE_FIELDS): Use type::fields. Change all call sites that
6600 modify the propery to use type::set_fields instead.
6601
6602 2020-05-22 Simon Marchi <simon.marchi@efficios.com>
6603
6604 * gdbtypes.h (TYPE_NFIELDS): Remove. Change all cal sites to use
6605 type::num_fields instead.
6606
6607 2020-05-22 Simon Marchi <simon.marchi@efficios.com>
6608
6609 * gdbtypes.h (struct type) <num_fields, set_num_fields>: New
6610 methods.
6611 (TYPE_NFIELDS): Use type::num_fields. Change all call sites
6612 that modify the number of fields to use type::set_num_fields
6613 instead.
6614
6615 2020-05-22 Tom Tromey <tromey@adacore.com>
6616
6617 * compile/compile-object-load.h (munmap_list_free): Don't
6618 declare.
6619
6620 2020-05-22 Andrew Burgess <andrew.burgess@embecosm.com>
6621
6622 * annotate.c (annotate_source_line): Update return type, add call
6623 to update current symtab and line.
6624 * annotate.h (annotate_source_line): Update return type, and
6625 extend header comment.
6626 * source.c (info_line_command): Check annotation_level before
6627 calling annotate_source_line.
6628 * stack.c (print_frame_info): If calling annotate_source_line
6629 returns true, then don't print any other source line information.
6630
6631 2020-05-21 Simon Marchi <simon.marchi@efficios.com>
6632
6633 * lm32-tdep.c (lm32_register_reggroup_p): Fix condition.
6634
6635 2020-05-21 Simon Marchi <simon.marchi@efficios.com>
6636
6637 * coffread.c (patch_type): Remove NULL check before xfree.
6638 * corefile.c (set_gnutarget): Likewise.
6639 * cp-abi.c (set_cp_abi_as_auto_default): Likewise.
6640 * exec.c (build_section_table): Likewise.
6641 * remote.c (remote_target::pass_signals): Likewise.
6642 * utils.c (n_spaces): Likewise.
6643 * cli/cli-script.c (document_command): Likewise.
6644 * i386-windows-tdep.c (core_process_module_section): Likewise.
6645 * linux-fork.c (struct fork_info) <~fork_info>: Likewise.
6646
6647 2020-05-20 Simon Marchi <simon.marchi@efficios.com>
6648
6649 * symfile.c (reread_symbols): Clear objfile's section_offsets
6650 vector and section indices, re-compute them by calling
6651 sym_offsets.
6652
6653 2020-05-20 Tom Tromey <tromey@adacore.com>
6654
6655 * ada-lang.c (bound_name, MAX_ADA_DIMENS): Remove.
6656 (desc_one_bound, desc_index_type): Compute field name.
6657
6658 2020-05-20 Tom de Vries <tdevries@suse.de>
6659
6660 PR symtab/25833
6661 * dwarf2/read.c (dw2_map_matching_symbols): Handle .gdb_index.
6662
6663 2020-05-20 Alan Modra <amodra@gmail.com>
6664
6665 PR 25993
6666 * solib-darwin.c (darwin_bfd_open): Don't strdup pathname for
6667 bfd_set_filename.
6668 * solib-aix.c (solib_aix_bfd_open): Use std::string for name
6669 passed to bfd_set_filename.
6670 * symfile-mem.c (add_vsyscall_page): Likewise for string
6671 passed to symbol_file_add_from_memory.
6672 (symbol_file_add_from_memory): Make name param a const char* and
6673 don't strdup.
6674
6675 2020-05-20 Alan Modra <amodra@gmail.com>
6676
6677 * coff-pe-read.c (read_pe_exported_syms): Use bfd_get_filename
6678 rather than accessing bfd->filename directly.
6679 * dtrace-probe.c (dtrace_static_probe_ops::get_probes): Likewise,
6680 and use bfd_section_name.
6681 * dwarf2/frame.c (decode_frame_entry): Likewise.
6682 * exec.c (exec_set_section_address): Likewise.
6683 * solib-aix.c (solib_aix_bfd_open): Likewise.
6684 * stap-probe.c (get_stap_base_address): Likewise.
6685 * symfile.c (reread_symbols): Likewise.
6686
6687 2020-05-19 Tom Tromey <tromey@adacore.com>
6688
6689 * sparc64-tdep.c (adi_tag_fd): Update call to target_fileio_open.
6690
6691 2020-05-19 Simon Marchi <simon.marchi@efficios.com>
6692
6693 * dwarf2/read.c (quirk_rust_enum): Allocate enough fields.
6694
6695 2020-05-19 Pedro Alves <palves@redhat.com>
6696
6697 * NEWS (set exec-file-mismatch): Adjust entry.
6698 * exec.c: Include "build-id.h".
6699 (validate_exec_file): Try to match build IDs instead of filenames.
6700 * gdb_bfd.c (struct gdb_bfd_open_closure): New.
6701 (gdb_bfd_iovec_fileio_open): Adjust to use gdb_bfd_open_closure
6702 and pass down 'warn_if_slow'.
6703 (gdb_bfd_open): Add 'warn_if_slow' parameter. Use
6704 gdb_bfd_open_closure to pass it down.
6705 * gdb_bfd.h (gdb_bfd_open): Add 'warn_if_slow' parameter.
6706
6707 2020-05-19 Pedro Alves <palves@redhat.com>
6708
6709 * gdb_bfd.c (gdb_bfd_iovec_fileio_open): Adjust.
6710 * target.c (target_fileio_open_1): Rename to target_fileio_open
6711 and make extern. Use bool.
6712 (target_fileio_open, target_fileio_open_warn_if_slow): Delete.
6713 (target_fileio_read_alloc_1): Adjust.
6714 * target.h (target_fileio_open): Add 'warn_if_slow' parameter.
6715 (target_fileio_open_warn_if_slow): Delete declaration.
6716
6717 2020-05-19 Pedro Alves <palves@redhat.com>
6718
6719 * gdb_bfd.h: (gdb_bfd_open): Default to 'fd' parameter to -1.
6720 Adjust all callers.
6721
6722 2020-05-19 Yoshinori Sato <ysato@users.sourceforge.jp>
6723
6724 * h8300-tdep.c (h8300_is_argument_spill): Change how we check
6725 whether disp is negative.
6726
6727 2020-05-19 Simon Marchi <simon.marchi@efficios.com>
6728
6729 * symfile.h (struct symfile_segment_data)
6730 <~symfile_segment_data>: Remove.
6731 <segment_info>: Change to std::vector.
6732 * symfile.c (default_symfile_segments): Update.
6733 * elfread.c (elf_symfile_segments): Update.
6734
6735 2020-05-19 Simon Marchi <simon.marchi@efficios.com>
6736
6737 * symfile.h (struct symfile_segment_data) <struct segment>: New.
6738 <segments>: New.
6739 <segment_bases, segment_sizes>: Remove.
6740 * symfile.c (default_symfile_segments): Update.
6741 * elfread.c (elf_symfile_segments): Update.
6742 * remote.c (remote_target::get_offsets): Update.
6743 * solib-target.c (solib_target_relocate_section_addresses):
6744 Update.
6745
6746 2020-05-19 Simon Marchi <simon.marchi@efficios.com>
6747
6748 * symfile.h (struct symfile_segment_data): Initialize fields.
6749 <~symfile_segment_data>: Add.
6750 (symfile_segment_data_up): New.
6751 (struct sym_fns) <sym_segments>: Return a
6752 symfile_segment_data_up.
6753 (default_symfile_segments): Return a symfile_segment_data_up.
6754 (free_symfile_segment_data): Remove.
6755 (get_symfile_segment_data): Return a symfile_segment_data_up.
6756 * symfile.c (default_symfile_segments): Likewise.
6757 (get_symfile_segment_data): Likewise.
6758 (free_symfile_segment_data): Remove.
6759 (symfile_find_segment_sections): Update.
6760 * elfread.c (elf_symfile_segments): Return a
6761 symfile_segment_data_up.
6762 * remote.c (remote_target::get_offsets): Update.
6763 * solib-target.c (solib_target_relocate_section_addresses):
6764 Update.
6765 * symfile-debug.c (debug_sym_segments): Return a
6766 symfile_segment_data_up.
6767
6768 2020-05-18 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
6769
6770 PR build/25981
6771 * i386-sol2-nat.c [PR_MODEL_NATIVE != PR_MODEL_LP64] (regmap):
6772 Hardcode register numbers.
6773
6774 PR build/25981
6775 * procfs.c [(__i386__ || __x86_64__) && sun] (proc_get_LDT_entry,
6776 procfs_find_LDT_entry): Remove.
6777 * procfs.h [(__i386__ || __x86_64__) && sun] (struct ssd,
6778 procfs_find_LDT_entry): Remove.
6779 * sol-thread.c [(__i386__ || __x86_64__) && sun] (ps_lgetLDT):
6780 Remove.
6781
6782 2020-05-17 Pedro Alves <palves@redhat.com>
6783 Andrew Burgess <andrew.burgess@embecosm.com>
6784 Keno Fischer <keno@juliacomputing.com>
6785
6786 PR gdb/25741
6787 * breakpoint.c (build_target_condition_list): Update comments.
6788 (build_target_command_list): Update comments and skip matching
6789 locations.
6790 (insert_bp_location): Move "set breakpoint auto-hw on" handling to
6791 a separate function. Simplify "set breakpoint auto-hw off"
6792 handling.
6793 (insert_breakpoints): Update comment.
6794 (tracepoint_locations_match): New parameter. For breakpoints,
6795 compare location types too, if the caller wants to.
6796 (handle_automatic_hardware_breakpoints): New functions.
6797 (bp_location_is_less_than): Also sort by location type and
6798 hardware breakpoint length.
6799 (update_global_location_list): Handle "set breakpoint auto-hw on"
6800 here.
6801 (update_breakpoint_locations): Ask breakpoint_locations_match to
6802 ignore location types.
6803
6804 2020-05-16 Simon Marchi <simon.marchi@efficios.com>
6805
6806 * gdbtypes.h (TYPE_NAME): Remove. Change all cal sites to use
6807 type::name instead.
6808
6809 2020-05-16 Simon Marchi <simon.marchi@efficios.com>
6810
6811 * gdbtypes.h (struct type) <name, set_name>: New methods.
6812 (TYPE_CODE): Use type::name. Change all call sites used to set
6813 the name to use type::set_name instead.
6814
6815 2020-05-16 Tom Tromey <tom@tromey.com>
6816
6817 * top.c (quit_force): Update.
6818 * infrun.c (handle_no_resumed): Update.
6819 * top.h (all_uis): New function.
6820 (ALL_UIS): Remove.
6821
6822 2020-05-16 Simon Marchi <simon.marchi@efficios.com>
6823
6824 * mips-linux-tdep.c (mips_linux_in_dynsym_stub): Fix condition.
6825
6826 2020-05-16 Pedro Alves <palves@redhat.com>
6827
6828 * ia64-linux-nat.c
6829 (ia64_linux_nat_target) <enable_watchpoints_in_psr(ptid_t)>:
6830 Declare method.
6831 (enable_watchpoints_in_psr): Now a method of ia64_linux_nat_target.
6832
6833 2020-05-15 Simon Marchi <simon.marchi@efficios.com>
6834
6835 * sparc64-tdep.c (adi_stat_t): Remove typedef (leaving struct).
6836 (sparc64_adi_info): Likewise.
6837
6838 2020-05-15 Tom Tromey <tom@tromey.com>
6839
6840 * symtab.c (lookup_language_this, lookup_symbol_aux): Use
6841 block_objfile.
6842 (lookup_objfile_from_block): Remove.
6843 (lookup_symbol_in_block, lookup_symbol_in_static_block)
6844 (lookup_global_symbol): Use block_objfile.
6845 * symtab.h (lookup_objfile_from_block): Don't declare.
6846 * printcmd.c (clear_dangling_display_expressions): Use
6847 block_objfile.
6848 * parse.c (operator_check_standard): Use block_objfile.
6849
6850 2020-05-15 Tom Tromey <tom@tromey.com>
6851
6852 * language.c (language_alloc_type_symbol): Set
6853 SYMBOL_SECTION.
6854 * symtab.c (initialize_objfile_symbol): Remove.
6855 (allocate_symbol): Remove.
6856 (allocate_template_symbol): Remove.
6857 * dwarf2/read.c (fixup_go_packaging): Use "new".
6858 (new_symbol): Use "new".
6859 (read_variable): Don't call initialize_objfile_symbol. Use
6860 "new".
6861 (read_func_scope): Use "new".
6862 * xcoffread.c (process_xcoff_symbol): Don't call
6863 initialize_objfile_symbol.
6864 (SYMBOL_DUP): Remove.
6865 * coffread.c (process_coff_symbol, coff_read_enum_type): Use
6866 "new".
6867 * symtab.h (allocate_symbol, initialize_objfile_symbol)
6868 (allocate_template_symbol): Don't declare.
6869 (struct symbol): Add copy constructor. Change defaults.
6870 * jit.c (finalize_symtab): Use "new".
6871 * ctfread.c (ctf_add_enum_member_cb, new_symbol, ctf_add_var_cb):
6872 Use "new".
6873 * stabsread.c (patch_block_stabs, define_symbol, read_enum_type)
6874 (common_block_end): Use "new".
6875 * mdebugread.c (parse_symbol): Use "new".
6876 (new_symbol): Likewise.
6877
6878 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6879
6880 * NEWS: Mention changes to help and apropos.
6881
6882 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6883
6884 * command.h (enum command_class): Improve comments, document
6885 that class_alias is for user-defined aliases, give the class
6886 name for each class, remove unused class_xdb.
6887 * cli/cli-decode.c (add_com_alias): Document THECLASS intended usage.
6888 * breakpoint.c (_initialize_breakpoint): Replace class_alias
6889 by a precise class.
6890 * infcmd.c (_initialize_infcmd): Likewise.
6891 * reverse.c (_initialize_reverse): Likewise.
6892 * stack.c (_initialize_stack): Likewise.
6893 * symfile.c (_initialize_symfile): Likewise.
6894 * tracepoint.c (_initialize_tracepoint): Likewise.
6895
6896 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6897
6898 * cli/cli-decode.c (apropos_cmd): Produce output for aliases
6899 when their aliased command is traversed.
6900 (help_cmd): Add fput_command_names_styled call to
6901 output command name and aliases when command has an alias.
6902
6903 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6904
6905 * cli/cli-decode.h (help_cmd_list): Remove declaration.
6906 * cli/cli-decode.c (help_cmd_list): Declare as static,
6907 remove prefix argument, use bool for recurse arg, rework to show the aliases of
6908 a command together with the command.
6909 (fput_command_name_styled, fput_command_names_styled): New functions.
6910 (print_help_for_command): Remove prefix arg, use bool for recurse arg, use
6911 fput_command_name_styled.
6912 (help_list, help_all): Update callers to remove prefix arg and use bool recurse.
6913 * cli/cli-cmds.c (_initialize_cli_cmds): Update alias_command doc.
6914
6915 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6916
6917 * cli/cli-setshow.h (cmd_show_list): Remove prefix argument.
6918 * cli/cli-decode.c (do_show_prefix_cmd): Likewise.
6919 * command.h (cmd_show_list): Likewise.
6920 * dwarf2/index-cache.c (show_index_cache_command): Likewise.
6921 * cli/cli-setshow.c (cmd_show_list): Use the prefix to produce the output. Skip aliases.
6922
6923 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6924
6925 * unittests/command-def-selftests.c (traverse_command_structure):
6926 Verify all commands of a list have the same prefix command and
6927 that only the top cmdlist commands have a null prefix.
6928
6929 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6930
6931 * cli/cli-decode.c (lookup_cmd_for_prefix): Return the aliased command
6932 as prefix, not one of its aliases.
6933 (set_cmd_prefix): Remove.
6934 (do_add_cmd): Centralize the setting of the prefix of a command, when
6935 command is defined after its full chain of prefix commands.
6936 (add_alias_cmd): Remove call to set_cmd_prefix, as do_add_cmd does it.
6937 (add_setshow_cmd_full): Likewise.
6938 (update_prefix_field_of_prefixed_commands): New function.
6939 (add_prefix_cmd): Replace non working call to set_cmd_prefix by
6940 update_prefix_field_of_prefixed_commands.
6941 * gdb/remote-fileio.c (initialize_remote_fileio): Use the real
6942 addresses of remote_set_cmdlist and remote_show_cmdlist given
6943 as argument, not the address of an argument.
6944 * gdb/remote-fileio.h (initialize_remote_fileio): Likewise.
6945 * gdb/remote.c (_initialize_remote): Likewise.
6946
6947 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6948
6949 * cli/cli-cmds.c (alias_command): Check for an existing alias
6950 using lookup_cmd_composition, as valid_command_p is too strict
6951 and forbids aliases that are the prefix of an existing alias
6952 or command.
6953 * cli/cli-decode.c (lookup_cmd_composition): Ensure a prefix
6954 command is properly recognised as a valid command.
6955
6956 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6957
6958 * unittests/help-doc-selftests.c: Rename to
6959 unittests/command-def-selftests.c
6960 * unittests/command-def-selftests.c (help_doc_tests): Update some
6961 comments.
6962 (command_structure_tests, traverse_command_structure): New namespace
6963 and function.
6964 (command_structure_invariants_tests): New function.
6965 (_initialize_command_def_selftests) Renamed from
6966 _initialize_help_doc_selftests, register command_structure_invariants
6967 selftest.
6968
6969 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6970
6971 * cli/cli-cmds.c (_initialize_cli_cmds): Define 'info set' as
6972 an alias of 'show'.
6973
6974 2020-05-15 Joel Brobecker <brobecker@adacore.com>
6975
6976 * ada-lang.h: (ada_is_gnat_encoded_fixed_point_type): Renames
6977 ada_is_fixed_point_type. Update all callers.
6978 (gnat_encoded_fixed_point_delta): Renames ada_delta. Update
6979 all callers.
6980 * ada-lang.c (gnat_encoded_fixed_type_info): Renames fixed_type_info.
6981 Update all callers.
6982 * ada-typeprint.c (print_gnat_encoded_fixed_point_type): Renames
6983 print_fixed_point_type. Update all callers.
6984 * ada-valprint.c (ada_value_print_num): Replace call to
6985 ada_is_fixed_point_type by ada_is_gnat_encoded_fixed_point_type.
6986
6987 2020-05-14 Kevin Buettner <kevinb@redhat.com>
6988
6989 * nat/linux-btrace.c (btrace_this_cpu): Add check for AMD
6990 processors.
6991 (cpu_supports_bts): Add CV_AMD case.
6992
6993 2020-05-14 Laurent Morichetti <Laurent.Morichetti@amd.com>
6994 Simon Marchi <simon.marchi@efficios.com>
6995
6996 * infrun.c (stop_all_threads): Collect multiple wait events at
6997 each pass.
6998
6999 2020-05-14 Simon Marchi <simon.marchi@efficios.com>
7000
7001 * gdbtypes.h (TYPE_CODE): Remove. Change all call sites to use
7002 type::code instead.
7003
7004 2020-05-14 Simon Marchi <simon.marchi@efficios.com>
7005
7006 * gdbtypes.h (struct type) <code, set_code>: New methods.
7007 (TYPE_CODE): Use type::code. Change all call sites used to set
7008 the code to use type::set_code instead.
7009
7010 2020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
7011 Tom de Vries <tdevries@suse.de>
7012 Pedro Alves <palves@redhat.com>
7013
7014 PR threads/25478
7015 * infrun.c (stop_all_threads): Do NOT ignore
7016 TARGET_WAITKIND_NO_RESUMED, TARGET_WAITKIND_THREAD_EXITED,
7017 TARGET_WAITKIND_EXITED, TARGET_WAITKIND_SIGNALLED wait statuses
7018 received.
7019 (handle_no_resumed): Remove code handling a live inferior with no
7020 threads.
7021 * remote.c (has_single_non_exited_thread): New.
7022 (remote_target::update_thread_list): Do not delete a thread if is
7023 the last thread of the process.
7024 * thread.c (thread_select): Call delete_exited_threads instead of
7025 prune_threads.
7026
7027 2020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
7028
7029 * infrun.c (stop_all_threads): Enable/disable thread events of all
7030 targets. Move a debug message denoting the end of the function
7031 into the SCOPED_EXIT block.
7032
7033 2020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
7034
7035 * process-stratum-target.h: Include <set>.
7036 (all_non_exited_process_targets, switch_to_target_no_thread): New
7037 function declarations.
7038 * process-stratum-target.c (all_non_exited_process_targets)
7039 (switch_to_target_no_thread): New function implementations.
7040
7041 2020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
7042
7043 * infrun.c (handle_inferior_event): Extract out a piece of code
7044 into...
7045 (mark_non_executing_threads): ...this new function.
7046
7047 2020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
7048
7049 * infrun.c (resume_1): Move a 'regcache_read_pc' call down to first
7050 use.
7051
7052 2020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
7053
7054 * regcache.c (regcache_read_pc_protected): New function
7055 implementation that returns 0 if the PC cannot read via
7056 'regcache_read_pc'.
7057 * infrun.c (proceed): Call 'regcache_read_pc_protected'
7058 instead of 'regcache_read_pc'.
7059 (keep_going_pass_signal): Ditto.
7060
7061 2020-05-13 Tom Tromey <tromey@adacore.com>
7062
7063 * ada-lang.c (align_value): Remove.
7064 (ada_template_to_fixed_record_type_1): Use align_up.
7065
7066 2020-05-13 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
7067
7068 * async-event.c: Update the copyright year.
7069 * async-event.h: Update the copyright year.
7070
7071 2020-05-12 Simon Marchi <simon.marchi@efficios.com>
7072
7073 * objfiles.h (is_addr_in_objfile,
7074 shared_objfile_contains_address_p): Return bool.
7075 * objfile.c (is_addr_in_objfile,
7076 shared_objfile_contains_address_p): Return bool.
7077
7078 2020-05-11 Tom Tromey <tromey@adacore.com>
7079
7080 * cli/cli-cmds.c (info_command): Restore.
7081 (_initialize_cli_cmds): Use add_prefix_command for "info".
7082 * gdb-gdb.gdb.in: Restore breakpoint on info_command.
7083
7084 2020-05-11 Tom Tromey <tromey@adacore.com>
7085
7086 * ada-lang.c (ada_value_primitive_field): Now public.
7087 * ada-lang.h (ada_value_primitive_field): Declare.
7088 * ada-valprint.c (print_field_values): Use
7089 ada_value_primitive_field for wrapper fields.
7090
7091 2020-05-11 Tom de Vries <tdevries@suse.de>
7092
7093 * dwarf2/index-write.c (debug_names::psymbol_tag): Handle
7094 MODULE_DOMAIN.
7095
7096 2020-05-11 Tom de Vries <tdevries@suse.de>
7097
7098 PR symtab/25941
7099 * dwarf2/read.c (create_cus_from_debug_names_list): Initialize CUs
7100 with length 0, if not gdb-produced.
7101 (cutu_reader::cutu_reader): Set CU length to actual length if 0.
7102
7103 2020-05-09 Tom de Vries <tdevries@suse.de>
7104
7105 PR gdb/25955
7106 * break-catch-throw.c (check_status_exception_catchpoint): Fix name
7107 calculation.
7108
7109 2020-05-09 Tom Tromey <tom@tromey.com>
7110
7111 * top.c (server_command): Now bool.
7112 * top.h (server_command): Now bool.
7113
7114 2020-05-08 Tom Tromey <tromey@adacore.com>
7115
7116 * dwarf2/read.c (read_lexical_block_scope): Don't process a DIE
7117 already being processed.
7118
7119 2020-05-08 Tom Tromey <tom@tromey.com>
7120
7121 * printcmd.c (struct display) <next>: Remove.
7122 <display>: New constructor.
7123 <exp_string>: Now a std::string.
7124 <enabled_p>: Now a bool.
7125 (display_number): Move definition earlier.
7126 (displays): Rename from display_chain. Now a std::vector.
7127 (ALL_DISPLAYS, ALL_DISPLAYS_SAFE): Remove.
7128 (display_command): Update.
7129 (do_one_display, disable_display)
7130 (enable_disable_display_command, do_enable_disable_display):
7131 Update.
7132 (free_display): Remove.
7133 (clear_displays): Rewrite.
7134 (delete_display): Update.
7135 (map_display_numbers): Use function_view. Remove "data"
7136 parameter. Update.
7137 (do_delete_display): Remove.
7138 (undisplay_command): Update.
7139 (do_one_display, do_displays, disable_display)
7140 (info_display_command): Update.
7141 (do_enable_disable_display): Remove.
7142 (enable_disable_display_command)
7143 (clear_dangling_display_expressions): Update.
7144
7145 2020-05-08 Tom Tromey <tom@tromey.com>
7146
7147 * symtab.c (set_symbol_cache_size)
7148 (maintenance_print_symbol_cache, maintenance_flush_symbol_cache)
7149 (maintenance_print_symbol_cache_statistics): Update.
7150 * symmisc.c (print_symbol_bcache_statistics)
7151 (print_objfile_statistics, maintenance_print_objfiles)
7152 (maintenance_info_symtabs, maintenance_check_symtabs)
7153 (maintenance_expand_symtabs, maintenance_info_line_tables):
7154 Update.
7155 * symfile-debug.c (set_debug_symfile): Update.
7156 * source.c (forget_cached_source_info): Update.
7157 * python/python.c (gdbpy_progspaces): Update.
7158 * psymtab.c (maintenance_info_psymtabs): Update.
7159 * probe.c (parse_probes): Update.
7160 * linespec.c (iterate_over_all_matching_symtabs)
7161 (collect_symtabs_from_filename, search_minsyms_for_name): Update.
7162 * guile/scm-progspace.c (gdbscm_progspaces): Update.
7163 * exec.c (exec_target::close): Update.
7164 * ada-tasks.c (ada_tasks_new_objfile_observer): Update.
7165 * breakpoint.c (print_one_breakpoint_location)
7166 (create_longjmp_master_breakpoint)
7167 (create_std_terminate_master_breakpoint): Update.
7168 * progspace.c (program_spaces): Now a std::vector.
7169 (maybe_new_address_space): Update.
7170 (add_program_space): Remove.
7171 (program_space::program_space): Update.
7172 (remove_program_space): Update.
7173 (number_of_program_spaces): Remove.
7174 (print_program_space, update_address_spaces): Update.
7175 * progspace.h (program_spaces): Change type.
7176 (ALL_PSPACES): Remove.
7177 (number_of_program_spaces): Don't declare.
7178 (struct program_space) <next>: Remove.
7179
7180 2020-05-08 Tom Tromey <tom@tromey.com>
7181
7182 * mi/mi-cmd-file.c (mi_cmd_file_list_shared_libraries): Update.
7183 * solib-svr4.c (svr4_fetch_objfile_link_map): Update.
7184 (enable_break): Update.
7185 * solib-frv.c (frv_fdpic_find_global_pointer): Update.
7186 (frv_fdpic_find_canonical_descriptor): Update.
7187 (frv_fetch_objfile_link_map): Update.
7188 * progspace.c (program_space::free_all_objfiles): Update.
7189 (program_space::solibs): New method.
7190 * progspace.h (struct program_space) <solibs>: New method.
7191 * solist.h (master_so_list): Don't declare.
7192 (ALL_SO_LIBS): Remove.
7193 * solib.h (so_list_head): Remove.
7194 (update_solib_list): Update comment.
7195 * solib.c (master_so_list): Remove.
7196 (solib_used, update_solib_list, solib_add)
7197 (info_sharedlibrary_command, clear_solib)
7198 (reload_shared_libraries_1, remove_user_added_objfile): Update.
7199
7200 2020-05-08 Tom Tromey <tom@tromey.com>
7201
7202 * extension.c (extension_languages): Now a std::array.
7203 (ALL_EXTENSION_LANGUAGES): Remove.
7204 (get_ext_lang_defn, get_ext_lang_of_file)
7205 (eval_ext_lang_from_control_command): Update.
7206 (finish_ext_lang_initialization)
7207 (auto_load_ext_lang_scripts_for_objfile)
7208 (ext_lang_type_printers::ext_lang_type_printers)
7209 (apply_ext_lang_type_printers)
7210 (ext_lang_type_printers::~ext_lang_type_printers)
7211 (apply_ext_lang_val_pretty_printer, apply_ext_lang_frame_filter)
7212 (preserve_ext_lang_values, get_breakpoint_cond_ext_lang)
7213 (breakpoint_ext_lang_cond_says_stop, check_quit_flag)
7214 (get_matching_xmethod_workers, ext_lang_colorize)
7215 (ext_lang_before_prompt): Update.
7216 (ALL_ENABLED_EXTENSION_LANGUAGES): Remove.
7217
7218 2020-05-08 Tom Tromey <tom@tromey.com>
7219
7220 * symtab.h (class demangle_result_storage) <set_malloc_ptr>: New
7221 overload.
7222 <swap_string, m_string>: Remove.
7223 * symtab.c (demangle_for_lookup, completion_list_add_symbol):
7224 Update.
7225 * stabsread.c (define_symbol, read_type): Update.
7226 * linespec.c (find_linespec_symbols): Update.
7227 * gnu-v3-abi.c (gnuv3_get_typeid): Update.
7228 * dwarf2/read.c (dwarf2_canonicalize_name): Update.
7229 * dbxread.c (read_dbx_symtab): Update.
7230 * cp-support.h (cp_canonicalize_string_full)
7231 (cp_canonicalize_string, cp_canonicalize_string_no_typedefs):
7232 Return unique_xmalloc_ptr.
7233 * cp-support.c (inspect_type): Update.
7234 (cp_canonicalize_string_full): Return unique_xmalloc_ptr.
7235 (cp_canonicalize_string_no_typedefs, cp_canonicalize_string):
7236 Likewise.
7237 * c-typeprint.c (print_name_maybe_canonical): Update.
7238 * break-catch-throw.c (check_status_exception_catchpoint):
7239 Update.
7240
7241 2020-05-08 Tom de Vries <tdevries@suse.de>
7242
7243 * infrun.c (follow_fork): Copy current_line and current_symtab to
7244 child thread.
7245
7246 2020-05-07 Simon Marchi <simon.marchi@efficios.com>
7247
7248 * async-event.c (struct async_signal_handler, struct
7249 async_event_handler): Reformat, remove typedef.
7250
7251 2020-05-07 Simon Marchi <simon.marchi@efficios.com>
7252
7253 * gdbtypes.h (TYPE_DYN_PROP_LIST): Remove. Update all users
7254 access thistype->main_type->dyn_prop_list directly.
7255
7256 2020-05-07 Simon Marchi <simon.marchi@efficios.com>
7257
7258 * gdbtypes.h (struct type) <remove_dyn_prop>: New method.
7259 (remove_dyn_prop): Remove. Update all users to use
7260 type::remove_dyn_prop.
7261 * gdbtypes.c (remove_dyn_prop): Rename to...
7262 (type::remove_dyn_prop): ... this.
7263
7264 2020-05-07 Simon Marchi via Gdb-patches <gdb-patches@sourceware.org>
7265
7266 * gdbtypes.h (struct type) <add_dyn_prop>: New method.
7267 (add_dyn_prop): Remove. Update all users to use
7268 type::add_dyn_prop.
7269 * gdbtypes.c (add_dyn_prop): Rename to...
7270 (type::add_dyn_prop): ... this.
7271
7272 2020-05-07 Simon Marchi <simon.marchi@efficios.com>
7273
7274 * gdbtypes.h (struct type) <get_dyn_prop>: New method.
7275 (get_dyn_prop): Remove. Update all users to use
7276 type::dyn_prop.
7277 * gdbtypes.c (get_dyn_prop): Rename to...
7278 (type::dyn_prop): ... this.
7279
7280 2020-05-06 Simon Marchi <simon.marchi@efficios.com>
7281
7282 * gdbtypes.h (struct main_type) <flag_static>: Remove.
7283
7284 2020-05-06 Simon Marchi <simon.marchi@efficios.com>
7285
7286 * amd64-tdep.c (amd64_analyze_prologue): Check for `endbr64`
7287 instruction, skip it if it's there.
7288
7289 2020-05-05 Simon Marchi <simon.marchi@efficios.com>
7290
7291 * gdbtypes.h (struct main_type) <flag_incomplete>: Remove.
7292
7293 2020-05-04 Simon Marchi <simon.marchi@efficios.com>
7294
7295 * gdbtypes.h (TYPE_INCOMPLETE): Remove.
7296 * gdbtypes.c (recursive_dump_type): Remove use of
7297 TYPE_INCOMPLETE.
7298
7299 2020-05-03 Tom Tromey <tom@tromey.com>
7300
7301 * breakpoint.c (catch_command, tcatch_command): Remove.
7302 (_initialize_breakpoint): Use add_basic_prefix_cmd,
7303 add_show_prefix_cmd.
7304 (set_breakpoint_cmd, show_breakpoint_cmd): Remove
7305 * utils.c (set_internal_problem_cmd, show_internal_problem_cmd):
7306 Remove.
7307 (add_internal_problem_command): Use add_basic_prefix_cmd,
7308 add_show_prefix_cmd.
7309 * mips-tdep.c (set_mipsfpu_command): Remove.
7310 (_initialize_mips_tdep): Use add_basic_prefix_cmd.
7311 * dwarf2/index-cache.c (set_index_cache_command): Remove.
7312 (_initialize_index_cache): Use add_basic_prefix_cmd.
7313 * memattr.c (dummy_cmd): Remove.
7314 (_initialize_mem): Use add_basic_prefix_cmd, add_show_prefix_cmd.
7315 * tui/tui-win.c (set_tui_cmd, show_tui_cmd): Remove.
7316 (_initialize_tui_win): Use add_basic_prefix_cmd,
7317 add_show_prefix_cmd.
7318 * cli/cli-logging.c (set_logging_command): Remove.
7319 (_initialize_cli_logging): Use add_basic_prefix_cmd,
7320 add_show_prefix_cmd.
7321 (show_logging_command): Remove.
7322 * target.c (target_command): Remove.
7323 (add_target): Use add_basic_prefix_cmd.
7324
7325 2020-05-02 Hannes Domani <ssbssa@yahoo.de>
7326
7327 * gdbtypes.h (enum dynamic_prop_node_kind): Fix typo.
7328
7329 2020-05-01 Philippe Waroquiers <philippe.waroquiers@skynet.be>
7330
7331 * gdb-gdb.gdb-in: Remove breakpoint on disappeared function
7332 info_command.
7333
7334 2020-04-30 Kamil Rytarowski <n54@gmx.com>
7335
7336 * nbsd-nat.c (nbsd_enable_proc_events)
7337 (nbsd_nat_target::post_startup_inferior): Add.
7338 (nbsd_nat_target::post_attach): Call `nbsd_enable_proc_events'.
7339 (nbsd_nat_target::update_thread_list): Rewrite.
7340 (nbsd_nat_target::wait): Handle "PTRACE_LWP_EXIT" and
7341 "PTRACE_LWP_CREATE".
7342 * nbsd-nat.h (nbsd_nat_target::post_startup_inferior): Add.
7343
7344 2020-04-30 Philippe Waroquiers <philippe.waroquiers@skynet.be>
7345
7346 * stack.c (_initialize_stack): Remove duplicated creation
7347 of "frame" command and "f" alias.
7348
7349 2020-04-30 Hannes Domani <ssbssa@yahoo.de>
7350
7351 PR gdb/18706
7352 * gdbtypes.c (check_typedef): Calculate size of array of
7353 stubbed type.
7354
7355 2020-04-30 Hannes Domani <ssbssa@yahoo.de>
7356
7357 PR gdb/15559
7358 * i386-tdep.c (i386_push_dummy_call): Call
7359 i386_thiscall_push_dummy_call.
7360 (i386_thiscall_push_dummy_call): New function.
7361 * i386-tdep.h (i386_thiscall_push_dummy_call): Declare.
7362 * i386-windows-tdep.c (i386_windows_push_dummy_call): New function.
7363 (i386_windows_init_abi): Call set_gdbarch_push_dummy_call.
7364
7365 2020-04-29 Simon Marchi <simon.marchi@efficios.com>
7366
7367 * gdbarch.sh (do_read): Add shellcheck disable directive for
7368 warning SC2162.
7369
7370 2020-04-29 Simon Marchi <simon.marchi@efficios.com>
7371
7372 * gdbarch.sh: Use ${foo:-} where shellcheck would report a
7373 "referenced but not assigned" warning.
7374
7375 2020-04-29 Simon Marchi <simon.marchi@efficios.com>
7376
7377 * gdbarch.sh: Remove code that sets fallbackdefault.
7378
7379 2020-04-29 Simon Marchi <simon.marchi@efficios.com>
7380
7381 * gdbarch.sh: Use shell operators && and || instead of
7382 -a and -o.
7383
7384 2020-04-29 Simon Marchi <simon.marchi@efficios.com>
7385
7386 * gdbarch.sh: Use $(...) instead of `...`.
7387
7388 2020-04-29 Simon Marchi <simon.marchi@efficios.com>
7389
7390 * gdbarch.sh: Use double quotes around variables.
7391
7392 2020-04-29 Simon Marchi <simon.marchi@efficios.com>
7393
7394 * gdbarch.sh: Use %s with printf, instead of variables in the
7395 format string.
7396
7397 2020-04-29 Tom Tromey <tromey@adacore.com>
7398
7399 PR ada/25875:
7400 * dwarf2/read.c (update_enumeration_type_from_children): Compute
7401 type fields here.
7402 (read_enumeration_type): Call
7403 update_enumeration_type_from_children later. Update comments.
7404 (process_enumeration_scope): Don't create type fields.
7405
7406 2020-04-29 Kamil Rytarowski <n54@gmx.com>
7407
7408 * nbsd-tdep.c: Include "xml-syscall.h".
7409 (nbsd_init_abi): Call `set_xml_syscall_file_name'.
7410
7411 2020-04-29 Kamil Rytarowski <n54@gmx.com>
7412
7413 * nbsd-nat.c: Include "sys/wait.h".
7414 (nbsd_resume, nbsd_nat_target::resume, nbsd_wait)
7415 (nbsd_nat_target::wait, nbsd_nat_target::insert_exec_catchpoint)
7416 (nbsd_nat_target::remove_exec_catchpoint)
7417 (nbsd_nat_target::set_syscall_catchpoint): Add.
7418 * nbsd-nat.h (nbsd_nat_target::resume, nbsd_nat_target::wait)
7419 (nbsd_nat_target::insert_exec_catchpoint)
7420 (nbsd_nat_target::remove_exec_catchpoint)
7421 (nbsd_nat_target::set_syscall_catchpoint): Add.
7422 * nbsd-tdep.c (nbsd_get_syscall_number): Add.
7423 (nbsd_init_abi): Call `set_gdbarch_get_syscall_number' and pass
7424 `nbsd_get_syscall_number'.
7425
7426 2020-04-29 Tom Tromey <tom@tromey.com>
7427
7428 * stack.c (print_block_frame_labels): Remove.
7429
7430 2020-04-29 Hannes Domani <ssbssa@yahoo.de>
7431
7432 PR gdb/17320
7433 * ada-valprint.c (val_print_packed_array_elements): Move array
7434 end bracket to new line.
7435 (ada_val_print_string): Remove extra spaces before first array
7436 element.
7437 * c-valprint.c (c_value_print_array): Likewise.
7438 * m2-valprint.c (m2_print_array_contents): Likewise.
7439 (m2_value_print_inner): Likewise.
7440 * p-valprint.c (pascal_value_print_inner): Likewise.
7441 * valprint.c (generic_val_print_array): Likewise.
7442 (value_print_array_elements): Move first array element and array
7443 end bracket to new line.
7444
7445 2020-04-29 Tom de Vries <tdevries@suse.de>
7446
7447 PR symtab/25889
7448 * linespec.c (find_method): Fix ix calculation.
7449
7450 2020-04-28 Kamil Rytarowski <n54@gmx.com>
7451
7452 * syscalls/update-netbsd.sh: New file.
7453 * syscalls/netbsd.xml: Regenerate.
7454 * data-directory/Makefile.in: Register `netbsd.xml' in
7455 `SYSCALLS_FILES'.
7456
7457 2020-04-28 Simon Marchi <simon.marchi@efficios.com>
7458
7459 * syscalls/update-freebsd.sh: Add double quotes.
7460
7461 2020-04-28 Tom Tromey <tom@tromey.com>
7462
7463 * NEWS: Update.
7464 * python/py-cmd.c (gdbpy_initialize_commands): Add COMMAND_TUI.
7465 (cmdpy_init): Allow class_tui.
7466
7467 2020-04-28 Mark Williams <mark@myosotissp.com>
7468
7469 PR gdb/24480
7470 * dwarf2read.c: Add missing assingments to list_in_scope when
7471 start_symtab was already called.
7472
7473 2020-04-28 Simon Marchi <simon.marchi@efficios.com>
7474
7475 PR gdb/25881
7476 * dwarf2/read.c (offset_map_type): Use
7477 gdb:hash_enum<sect_offset> as hash function.
7478
7479 2020-04-28 Tom de Vries <tdevries@suse.de>
7480
7481 * dwarf2/read.c (process_structure_scope): Add symbol for struct decl
7482 with DW_AT_signature.
7483
7484 2020-04-27 Simon Marchi <simon.marchi@efficios.com>
7485
7486 * configure.ac: Remove check for fs_base/gs_base in
7487 user_regs_struct.
7488 * configure: Re-generate.
7489 * config.in: Re-generate.
7490 * amd64-nat.c (amd64_native_gregset_reg_offset): Adjust.
7491 * amd64-linux-nat.c (amd64_linux_nat_target::fetch_registers,
7492 amd64_linux_nat_target::store_registers, ps_get_thread_area, ): Adjust.
7493
7494 2020-04-27 Luis Machado <luis.machado@linaro.org>
7495
7496 * dwarf2/frame-tailcall.c (dwarf2_tailcall_sniffer_first): Handle
7497 problematic inline frame unwinding situation.
7498 * frame.c (frame_id_computed_p): New function.
7499 * frame.h (frame_id_computed_p): New prototype.
7500
7501 2020-04-26 Tom Tromey <tom@tromey.com>
7502
7503 * command.h (enum command_class) <class_pseudo>: Remove.
7504
7505 2020-04-26 Philippe Waroquiers <philippe.waroquiers@skynet.be>
7506
7507 * cli/cli-decode.c (lookup_cmd_composition): Fix comments
7508 and whitespace.
7509
7510 2020-04-25 Kamil Rytarowski <n54@gmx.com>
7511
7512 * inf-ptrace.c (inf_ptrace_target::wait): Remove
7513 `PT_GET_PROCESS_STATE' block.
7514
7515 2020-04-24 Tom Tromey <tom@tromey.com>
7516
7517 * symtab.h (symbol_get_demangled_name): Don't declare.
7518 * symtab.c (symbol_get_demangled_name): Remove.
7519 (general_symbol_info::natural_name)
7520 (general_symbol_info::demangled_name): Update.
7521
7522 2020-04-24 Tom Tromey <tom@tromey.com>
7523
7524 PR rust/25025:
7525 * dwarf2/read.c (dwarf2_physname): Do not demangle for Rust.
7526
7527 2020-04-24 Tom Tromey <tom@tromey.com>
7528
7529 PR symtab/12707:
7530 * dwarf2/read.c (add_partial_symbol): Use the linkage name if it
7531 exists.
7532 (new_symbol): Likewise.
7533 * compile/compile-object-load.c (get_out_value_type): Use
7534 symbol_matches_search_name.
7535
7536 2020-04-24 Tom Tromey <tom@tromey.com>
7537
7538 * dwarf2/read.c (add_partial_symbol): Do not call
7539 compute_and_set_names.
7540
7541 2020-04-24 Tom Tromey <tom@tromey.com>
7542
7543 * dwarf2/read.c (add_partial_symbol): Use new add_psymbol_to_list
7544 overload.
7545
7546 2020-04-24 Tom Tromey <tom@tromey.com>
7547
7548 * psymtab.c (add_psymbol_to_bcache): Simplify calling convention.
7549 (add_psymbol_to_list): New overload. Make old overload call new
7550 one.
7551 * psympriv.h (add_psymbol_to_list): New overload.
7552
7553 2020-04-24 Tom Tromey <tom@tromey.com>
7554
7555 * dwarf2/read.c (partial_die_info::read) <case
7556 DW_AT_linkage_name>: Use value_as_string.
7557 (dwarf2_string_attr): Use value_as_string.
7558 * dwarf2/attribute.h (struct attribute) <value_as_string>: Declare
7559 method.
7560 * dwarf2/attribute.c (attribute::value_as_string): New method.
7561
7562 2020-04-24 Tom Tromey <tom@tromey.com>
7563
7564 * symtab.c (general_symbol_info::natural_name)
7565 (general_symbol_info::demangled_name): Check for language_rust.
7566
7567 2020-04-24 Tom Tromey <tom@tromey.com>
7568
7569 * dwarf2/read.c (dw2_linkage_name): Move Rust "{" hack here...
7570 (dwarf2_physname): ... from here.
7571 (partial_die_info::read): Add Rust "{" hack.
7572
7573 2020-04-24 Tom Tromey <tom@tromey.com>
7574
7575 * symtab.h (struct general_symbol_info) <set_demangled_name>: New
7576 method.
7577 (symbol_set_demangled_name): Don't declare.
7578 * symtab.c (general_symbol_info::set_demangled_name): Rename from
7579 symbol_set_demangled_name.
7580 (general_symbol_info::set_language)
7581 (general_symbol_info::compute_and_set_names): Update.
7582 * minsyms.c (minimal_symbol_reader::install): Update.
7583 * dwarf2/read.c (new_symbol): Update.
7584
7585 2020-04-24 Tom Tromey <tromey@adacore.com>
7586
7587 PR python/23662:
7588 * python/py-type.c (convert_field): Handle
7589 FIELD_LOC_KIND_DWARF_BLOCK.
7590 (typy_get_sizeof): Handle TYPE_HAS_DYNAMIC_LENGTH.
7591 (typy_get_dynamic): Nw function.
7592 (type_object_getset): Add "dynamic".
7593 * NEWS: Add entry.
7594
7595 2020-04-24 Tom Tromey <tromey@adacore.com>
7596
7597 * ada-typeprint.c (print_choices, print_variant_part)
7598 (print_record_field_types_dynamic): New functions.
7599 (print_record_field_types): Use print_record_field_types_dynamic.
7600
7601 2020-04-24 Tom Tromey <tromey@adacore.com>
7602
7603 * dwarf2/read.c (handle_data_member_location): New overload.
7604 (dwarf2_add_field): Use it.
7605 (decode_locdesc): Add "computed" parameter. Update comment.
7606 * gdbtypes.c (is_dynamic_type_internal): Also look for
7607 FIELD_LOC_KIND_DWARF_BLOCK.
7608 (resolve_dynamic_struct): Handle FIELD_LOC_KIND_DWARF_BLOCK.
7609 * gdbtypes.c (is_dynamic_type_internal): Add special case for C++
7610 virtual base classes.
7611 * gnu-v3-abi.c (gnuv3_baseclass_offset): Handle
7612 FIELD_LOC_KIND_DWARF_BLOCK.
7613
7614 2020-04-24 Tom Tromey <tromey@adacore.com>
7615
7616 * dwarf2/read.c (read_structure_type): Handle dynamic length.
7617 * gdbtypes.c (is_dynamic_type_internal): Check
7618 TYPE_HAS_DYNAMIC_LENGTH.
7619 (resolve_dynamic_type_internal): Use TYPE_DYNAMIC_LENGTH.
7620 * gdbtypes.h (TYPE_HAS_DYNAMIC_LENGTH, TYPE_DYNAMIC_LENGTH):
7621 New macros.
7622 (enum dynamic_prop_node_kind) <DYN_PROP_BYTE_SIZE>: New
7623 constant.
7624
7625 2020-04-24 Tom Tromey <tromey@adacore.com>
7626
7627 * dwarf2/read.c (struct variant_field): Rewrite.
7628 (struct variant_part_builder): New.
7629 (struct nextfield): Remove "variant" field. Add "offset".
7630 (struct field_info): Add "current_variant_part" and
7631 "variant_parts".
7632 (alloc_discriminant_info): Remove.
7633 (alloc_rust_variant): New function.
7634 (quirk_rust_enum): Update.
7635 (dwarf2_add_field): Set "offset" member. Don't handle
7636 DW_TAG_variant_part.
7637 (offset_map_type): New typedef.
7638 (convert_variant_range, create_one_variant)
7639 (create_one_variant_part, create_variant_parts)
7640 (add_variant_property): New functions.
7641 (dwarf2_attach_fields_to_type): Call add_variant_property.
7642 (read_structure_type): Don't handle DW_TAG_variant_part.
7643 (handle_variant_part, handle_variant): New functions.
7644 (handle_struct_member_die): Use them.
7645 (process_structure_scope): Don't handle variant parts.
7646 * gdbtypes.h (TYPE_FLAG_DISCRIMINATED_UNION): Remove.
7647 (struct discriminant_info): Remove.
7648 (enum dynamic_prop_node_kind) <DYN_PROP_DISCRIMINATED>: Remove.
7649 (struct main_type) <flag_discriminated_union>: Remove.
7650 * rust-lang.c (rust_enum_p, rust_empty_enum_p): Rewrite.
7651 (rust_enum_variant): Return int. Remove "contents". Rewrite.
7652 (rust_print_enum, rust_print_struct_def, rust_evaluate_subexp):
7653 Update.
7654 * valops.c (value_union_variant): Remove.
7655 * value.h (value_union_variant): Don't declare.
7656
7657 2020-04-24 Tom Tromey <tromey@adacore.com>
7658
7659 * ada-lang.c (ada_discrete_type_high_bound, ada_discrete_type_low)
7660 (ada_value_primitive_packed_val): Update.
7661 * ada-valprint.c (ada_value_print_1): Update.
7662 * dwarf2/loc.c (evaluate_for_locexpr_baton): New struct.
7663 (dwarf2_locexpr_baton_eval): Take a property_addr_info rather than
7664 just an address. Use evaluate_for_locexpr_baton.
7665 (dwarf2_evaluate_property): Update.
7666 * dwarf2/loc.h (struct property_addr_info) <valaddr>: Now an
7667 array_view.
7668 * findvar.c (default_read_var_value): Update.
7669 * gdbtypes.c (compute_variant_fields_inner)
7670 (resolve_dynamic_type_internal): Update.
7671 (resolve_dynamic_type): Change type of valaddr parameter.
7672 * gdbtypes.h (resolve_dynamic_type): Update.
7673 * valarith.c (value_subscripted_rvalue): Update.
7674 * value.c (value_from_contents_and_address): Update.
7675
7676 2020-04-24 Tom Tromey <tromey@adacore.com>
7677
7678 * dwarf2/loc.c (dwarf2_locexpr_baton_eval): Add
7679 "push_initial_value" parameter.
7680 (dwarf2_evaluate_property): Likewise.
7681 * dwarf2/loc.h (dwarf2_evaluate_property): Update.
7682
7683 2020-04-24 Tom Tromey <tromey@adacore.com>
7684
7685 * gdbtypes.c (is_dynamic_type_internal): Check for variant parts.
7686 (variant::matches, compute_variant_fields_recurse)
7687 (compute_variant_fields_inner, compute_variant_fields): New
7688 functions.
7689 (resolve_dynamic_struct): Check for DYN_PROP_VARIANT_PARTS.
7690 Use resolved_type after type is made.
7691 (operator==): Add new cases.
7692 * gdbtypes.h (TYPE_HAS_VARIANT_PARTS): New macro.
7693 (struct discriminant_range, struct variant, struct variant_part):
7694 New.
7695 (union dynamic_prop_data) <variant_parts, original_type>: New
7696 members.
7697 (enum dynamic_prop_node_kind) <DYN_PROP_VARIANT_PARTS>: New constant.
7698 (enum dynamic_prop_kind) <PROP_TYPE, PROP_VARIANT_PARTS>: New
7699 constants.
7700 * value.c (unpack_bits_as_long): Now public.
7701 * value.h (unpack_bits_as_long): Declare.
7702
7703 2020-04-24 Tom Tromey <tromey@adacore.com>
7704
7705 * rs6000-tdep.c (struct ppc_variant): Rename from "variant".
7706 (variants, find_variant_by_arch, rs6000_gdbarch_init): Update.
7707
7708 2020-04-24 Hannes Domani <ssbssa@yahoo.de>
7709
7710 * windows-tdep.c (exception_values): Add WOW64 exception numbers.
7711
7712 2020-04-24 Kamil Rytarowski <n54@gmx.com>
7713
7714 * inf-ptrace.h (follow_fork, insert_fork_catchpoint)
7715 (remove_fork_catchpoint, post_startup_inferior)
7716 (post_attach): Move...
7717 * obsd-nat.h (follow_fork, insert_fork_catchpoint)
7718 (remove_fork_catchpoint, post_startup_inferior)
7719 (post_attach): ...here.
7720 * inf-ptrace.c (follow_fork, insert_fork_catchpoint)
7721 (remove_fork_catchpoint, post_startup_inferior)
7722 (post_attach): Move...
7723 * obsd-nat.c (follow_fork, insert_fork_catchpoint)
7724 (remove_fork_catchpoint, post_startup_inferior)
7725 (post_attach): ...here.
7726
7727 2020-04-24 Tom Tromey <tromey@adacore.com>
7728
7729 * nat/windows-nat.h (struct windows_thread_info)
7730 <pc_adjusted>: New member.
7731 * windows-nat.c (windows_fetch_one_register): Check
7732 pc_adjusted.
7733 (windows_nat_target::get_windows_debug_event)
7734 (windows_nat_target::wait): Set pc_adjusted.
7735
7736 2020-04-24 Tom de Vries <tdevries@suse.de>
7737
7738 * contrib/cc-with-tweaks.sh: Remove <exec>.gdb-index file handling.
7739 Run gdb-add-index inside temp dir.
7740
7741 2020-04-23 Tom Tromey <tromey@adacore.com>
7742
7743 * windows-tdep.c (is_linked_with_cygwin_dll): Always update "iter"
7744 in loop.
7745
7746 2020-04-23 Luis Machado <luis.machado@linaro.org>
7747
7748 * dwarf2/frame-tailcall.c (dwarf2_tailcall_sniffer_first): Use
7749 get_frame_register instead of gdbarch_unwind_pc.
7750
7751 2020-04-23 Tom de Vries <tdevries@suse.de>
7752
7753 * symtab.c (lookup_global_symbol): Prefer def over decl.
7754
7755 2020-04-23 Tom de Vries <tdevries@suse.de>
7756
7757 PR symtab/25807
7758 * block.c (best_symbol, better_symbol): Promote to external.
7759 * block.h (best_symbol, better_symbol): Declare.
7760 * symtab.c (lookup_symbol_in_objfile_symtabs): Prefer def over
7761 decl.
7762
7763 2020-04-23 Tom Tromey <tromey@adacore.com>
7764
7765 PR ada/25837:
7766 * dwarf2/read.c (dw2_expand_symtabs_matching_symbol): Store a
7767 "const char *", not a "const std::string &".
7768 <name_and_matcher::operator==>: Update.
7769 * unittests/lookup_name_info-selftests.c: Change type of
7770 "result".
7771
7772 2020-04-23 Tom Tromey <tom@tromey.com>
7773
7774 * inferior.h (iterate_over_inferiors): Don't declare.
7775 * inferior.c (iterate_over_inferiors): Remove.
7776 * darwin-nat.c (find_inferior_task_it, find_inferior_pid_it):
7777 Remove.
7778 (darwin_find_inferior_by_task, darwin_find_inferior_by_pid): Don't
7779 use iterate_over_inferiors.
7780 (darwin_resume_inferior_it)
7781 (struct resume_inferior_threads_param)
7782 (darwin_resume_inferior_threads_it): Remove.
7783 (darwin_nat_target::resume): Don't use iterate_over_inferiors.
7784
7785 2020-04-23 Tom de Vries <tdevries@suse.de>
7786
7787 * blockframe.c (find_pc_partial_function): Use
7788 find_pc_sect_compunit_symtab rather than
7789 objfile->sf->qf->find_pc_sect_compunit_symtab.
7790
7791 2020-04-22 Tom de Vries <tdevries@suse.de>
7792
7793 PR symtab/25764
7794 * dwarf2/read.c (scan_partial_symbols): Allow external variable decls
7795 in psymtabs.
7796
7797 2020-04-22 Tom de Vries <tdevries@suse.de>
7798
7799 PR symtab/25801
7800 * psymtab.c (psym_map_symtabs_matching_filename): Don't skip shared
7801 symtabs.
7802
7803 2020-04-22 Tom de Vries <tdevries@suse.de>
7804
7805 PR symtab/25700
7806 * dwarf2/read.c (dwarf2_build_psymtabs_hard): Don't create psymtab for
7807 CU if already created.
7808
7809 2020-04-21 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
7810
7811 * infrun.c (displaced_step_fixup): Switch to the event_thread
7812 before calling displaced_step_restore, not after.
7813
7814 2020-04-21 Markus Metzger <markus.t.metzger@intel.com>
7815
7816 * record-btrace.c (record_btrace_enable_warn): Ignore thread if
7817 its inferior is not recorded by us.
7818 (record_btrace_target_open): Replace call to
7819 all_non_exited_threads () with call to current_inferior
7820 ()->non_exited_threads ().
7821 (record_btrace_target::stop_recording): Likewise.
7822 (record_btrace_target::close): Likewise.
7823 (record_btrace_target::wait): Likewise.
7824 (record_btrace_target::record_stop_replaying): Likewise.
7825
7826 2020-04-21 Markus Metzger <markus.t.metzger@intel.com>
7827
7828 * btrace.c (btrace_enable): Throw an error on double enables and
7829 when enabling recording fails.
7830 (btrace_disable): Throw an error if the thread is not recorded.
7831
7832 2020-04-21 Markus Metzger <markus.t.metzger@intel.com>
7833
7834 * record-btrace.c (record_btrace_target::fetch_registers): Forward
7835 request if we do not have a thread_info.
7836
7837 2020-04-21 Tom de Vries <tdevries@suse.de>
7838
7839 PR gdb/25471
7840 * thread.c
7841 (scoped_restore_current_thread::scoped_restore_current_thread): Catch
7842 exception in get_frame_id.
7843
7844 2020-04-20 Tom Tromey <tromey@adacore.com>
7845
7846 * python/python.c (struct gdbpy_event): Mark move constructor as
7847 noexcept.
7848 * python/py-tui.c (class gdbpy_tui_window_maker): Mark move
7849 constructor as noexcept.
7850 * completer.h (struct completion_result): Mark move constructor as
7851 noexcept.
7852 * completer.c (completion_result::completion_result): Use
7853 initialization style. Don't call reset_match_list.
7854
7855 2020-04-20 Mihails Strasuns <mihails.strasuns@intel.com>
7856
7857 * MAINTAINERS (Write After Approval): Add myself.
7858
7859 2020-04-18 Tom Tromey <tom@tromey.com>
7860
7861 * windows-tdep.c (init_w32_command_list)
7862 (w32_prefix_command_valid): Restore.
7863 (_initialize_windows_tdep): Call init_w32_command_list.
7864
7865 2020-04-18 Tom Tromey <tom@tromey.com>
7866
7867 * xcoffread.c (enter_line_range, scan_xcoff_symtab): Update.
7868 * value.c (value_fn_field): Update.
7869 * valops.c (find_function_in_inferior)
7870 (value_allocate_space_in_inferior): Update.
7871 * tui/tui-winsource.c (tui_update_source_windows_with_line):
7872 Update.
7873 * tui/tui-source.c (tui_source_window::set_contents): Update.
7874 * symtab.c (lookup_global_or_static_symbol)
7875 (find_function_start_sal_1, skip_prologue_sal)
7876 (print_msymbol_info, find_gnu_ifunc, symbol_arch): Update.
7877 * symmisc.c (dump_msymbols, dump_symtab_1)
7878 (maintenance_print_one_line_table): Update.
7879 * symfile.c (init_entry_point_info, section_is_mapped)
7880 (list_overlays_command, simple_read_overlay_table)
7881 (simple_overlay_update_1): Update.
7882 * stap-probe.c (handle_stap_probe): Update.
7883 * stabsread.c (dbx_init_float_type, define_symbol)
7884 (read_one_struct_field, read_enum_type, read_range_type): Update.
7885 * source.c (info_line_command): Update.
7886 * python/python.c (gdbpy_source_objfile_script)
7887 (gdbpy_execute_objfile_script): Update.
7888 * python/py-type.c (save_objfile_types): Update.
7889 * python/py-objfile.c (py_free_objfile): Update.
7890 * python/py-inferior.c (python_new_objfile): Update.
7891 * psymtab.c (psym_find_pc_sect_compunit_symtab, dump_psymtab)
7892 (dump_psymtab_addrmap_1, maintenance_info_psymtabs)
7893 (maintenance_check_psymtabs): Update.
7894 * printcmd.c (info_address_command): Update.
7895 * objfiles.h (struct objfile) <arch>: New method, from
7896 get_objfile_arch.
7897 (get_objfile_arch): Don't declare.
7898 * objfiles.c (get_objfile_arch): Remove.
7899 (filter_overlapping_sections): Update.
7900 * minsyms.c (msymbol_is_function): Update.
7901 * mi/mi-symbol-cmds.c (mi_cmd_symbol_list_lines)
7902 (output_nondebug_symbol): Update.
7903 * mdebugread.c (parse_symbol, basic_type, parse_partial_symbols)
7904 (mdebug_expand_psymtab): Update.
7905 * machoread.c (macho_add_oso_symfile): Update.
7906 * linux-tdep.c (linux_infcall_mmap, linux_infcall_munmap):
7907 Update.
7908 * linux-fork.c (checkpoint_command): Update.
7909 * linespec.c (convert_linespec_to_sals): Update.
7910 * jit.c (finalize_symtab): Update.
7911 * infrun.c (insert_exception_resume_from_probe): Update.
7912 * ia64-tdep.c (ia64_find_unwind_table): Update.
7913 * hppa-tdep.c (internalize_unwinds): Update.
7914 * gdbtypes.c (get_type_arch, init_float_type, objfile_type):
7915 Update.
7916 * gcore.c (call_target_sbrk): Update.
7917 * elfread.c (record_minimal_symbol, elf_symtab_read)
7918 (elf_rel_plt_read, elf_gnu_ifunc_record_cache)
7919 (elf_gnu_ifunc_resolve_by_got): Update.
7920 * dwarf2/read.c (create_addrmap_from_index)
7921 (create_addrmap_from_aranges, dw2_find_pc_sect_compunit_symtab)
7922 (read_debug_names_from_section)
7923 (process_psymtab_comp_unit_reader, add_partial_symbol)
7924 (add_partial_subprogram, process_full_comp_unit)
7925 (read_file_scope, read_func_scope, read_lexical_block_scope)
7926 (read_call_site_scope, dwarf2_ranges_read)
7927 (dwarf2_record_block_ranges, dwarf2_add_field)
7928 (mark_common_block_symbol_computed, read_tag_pointer_type)
7929 (read_tag_string_type, dwarf2_init_float_type)
7930 (dwarf2_init_complex_target_type, read_base_type)
7931 (partial_die_info::read, partial_die_info::read)
7932 (read_attribute_value, dwarf_decode_lines_1, new_symbol)
7933 (dwarf2_fetch_die_loc_sect_off): Update.
7934 * dwarf2/loc.c (dwarf2_find_location_expression)
7935 (class dwarf_evaluate_loc_desc, rw_pieced_value)
7936 (dwarf2_evaluate_loc_desc_full, dwarf2_locexpr_baton_eval)
7937 (dwarf2_loc_desc_get_symbol_read_needs)
7938 (locexpr_describe_location_piece, locexpr_describe_location_1)
7939 (loclist_describe_location): Update.
7940 * dwarf2/index-write.c (write_debug_names): Update.
7941 * dwarf2/frame.c (dwarf2_build_frame_info): Update.
7942 * dtrace-probe.c (dtrace_process_dof): Update.
7943 * dbxread.c (read_dbx_symtab, dbx_end_psymtab)
7944 (process_one_symbol): Update.
7945 * ctfread.c (ctf_init_float_type, read_base_type): Update.
7946 * coffread.c (coff_symtab_read, enter_linenos, decode_base_type)
7947 (coff_read_enum_type): Update.
7948 * cli/cli-cmds.c (edit_command, list_command): Update.
7949 * buildsym.c (buildsym_compunit::finish_block_internal): Update.
7950 * breakpoint.c (create_overlay_event_breakpoint)
7951 (create_longjmp_master_breakpoint)
7952 (create_std_terminate_master_breakpoint)
7953 (create_exception_master_breakpoint, get_sal_arch): Update.
7954 * block.c (block_gdbarch): Update.
7955 * annotate.c (annotate_source_line): Update.
7956
7957 2020-04-17 Tom Tromey <tromey@adacore.com>
7958
7959 * auto-load.c (show_auto_load_cmd): Remove.
7960 (auto_load_show_cmdlist_get): Use add_show_prefix_cmd.
7961 * arc-tdep.c (_initialize_arc_tdep): Use add_show_prefix_cmd.
7962 (maintenance_print_arc_command): Remove.
7963 * tui/tui-win.c (tui_command): Remove.
7964 (tui_get_cmd_list): Use add_basic_prefix_cmd.
7965 * tui/tui-layout.c (tui_layout_command): Remove.
7966 (_initialize_tui_layout): Use add_basic_prefix_cmd.
7967 * python/python.c (user_set_python, user_show_python): Remove.
7968 (_initialize_python): Use add_basic_prefix_cmd,
7969 add_show_prefix_cmd.
7970 * guile/guile.c (set_guile_command, show_guile_command): Remove.
7971 (install_gdb_commands): Use add_basic_prefix_cmd,
7972 add_show_prefix_cmd.
7973 (info_guile_command): Remove.
7974 * dwarf2/read.c (set_dwarf_cmd, show_dwarf_cmd): Remove.
7975 (_initialize_dwarf2_read): Use add_basic_prefix_cmd,
7976 add_show_prefix_cmd.
7977 * cli/cli-style.h (class cli_style_option) <add_setshow_commands>:
7978 Remove do_set and do_show parameters.
7979 * cli/cli-style.c (set_style, show_style): Remove.
7980 (_initialize_cli_style): Use add_basic_prefix_cmd,
7981 add_show_prefix_cmd.
7982 (cli_style_option::add_setshow_commands): Remove do_set and
7983 do_show parameters.
7984 (cli_style_option::add_setshow_commands): Use
7985 add_basic_prefix_cmd, add_show_prefix_cmd.
7986 (STYLE_ADD_SETSHOW_COMMANDS): Remove macro.
7987 (set_style_name): Remove.
7988 * cli/cli-dump.c (dump_command, append_command): Remove.
7989 (srec_dump_command, ihex_dump_command, verilog_dump_command)
7990 (tekhex_dump_command, binary_dump_command)
7991 (binary_append_command): Remove.
7992 (_initialize_cli_dump): Use add_basic_prefix_cmd.
7993 * windows-tdep.c (w32_prefix_command_valid): Remove global.
7994 (init_w32_command_list): Remove; move into ...
7995 (_initialize_windows_tdep): ... here. Use add_basic_prefix_cmd.
7996 * valprint.c (set_print, show_print, set_print_raw)
7997 (show_print_raw): Remove.
7998 (_initialize_valprint): Use add_basic_prefix_cmd,
7999 add_show_prefix_cmd.
8000 * typeprint.c (set_print_type, show_print_type): Remove.
8001 (_initialize_typeprint): Use add_basic_prefix_cmd,
8002 add_show_prefix_cmd.
8003 * record.c (set_record_command, show_record_command): Remove.
8004 (_initialize_record): Use add_basic_prefix_cmd,
8005 add_show_prefix_cmd.
8006 * cli/cli-cmds.c (_initialize_cli_cmds): Use add_basic_prefix_cmd,
8007 add_show_prefix_cmd.
8008 (info_command, show_command, set_debug, show_debug): Remove.
8009 * top.h (set_history, show_history): Don't declare.
8010 * top.c (set_history, show_history): Remove.
8011 * target-descriptions.c (set_tdesc_cmd, show_tdesc_cmd)
8012 (unset_tdesc_cmd): Remove.
8013 (_initialize_target_descriptions): Use add_basic_prefix_cmd,
8014 add_show_prefix_cmd.
8015 * symtab.c (info_module_command): Remove.
8016 (_initialize_symtab): Use add_basic_prefix_cmd.
8017 * symfile.c (overlay_command): Remove.
8018 (_initialize_symfile): Use add_basic_prefix_cmd.
8019 * sparc64-tdep.c (info_adi_command): Remove.
8020 (_initialize_sparc64_adi_tdep): Use add_basic_prefix_cmd.
8021 * sh-tdep.c (show_sh_command, set_sh_command): Remove.
8022 (_initialize_sh_tdep): Use add_basic_prefix_cmd,
8023 add_show_prefix_cmd.
8024 * serial.c (serial_set_cmd, serial_show_cmd): Remove.
8025 (_initialize_serial): Use add_basic_prefix_cmd,
8026 add_show_prefix_cmd.
8027 * ser-tcp.c (set_tcp_cmd, show_tcp_cmd): Remove.
8028 (_initialize_ser_tcp): Use add_basic_prefix_cmd,
8029 add_show_prefix_cmd.
8030 * rs6000-tdep.c (set_powerpc_command, show_powerpc_command)
8031 (_initialize_rs6000_tdep): Use add_basic_prefix_cmd,
8032 add_show_prefix_cmd.
8033 * riscv-tdep.c (show_riscv_command, set_riscv_command)
8034 (show_debug_riscv_command, set_debug_riscv_command): Remove.
8035 (_initialize_riscv_tdep): Use add_basic_prefix_cmd,
8036 add_show_prefix_cmd.
8037 * remote.c (remote_command, set_remote_cmd): Remove.
8038 (_initialize_remote): Use add_basic_prefix_cmd.
8039 * record-full.c (set_record_full_command)
8040 (show_record_full_command): Remove.
8041 (_initialize_record_full): Use add_basic_prefix_cmd,
8042 add_show_prefix_cmd.
8043 * record-btrace.c (cmd_set_record_btrace)
8044 (cmd_show_record_btrace, cmd_set_record_btrace_bts)
8045 (cmd_show_record_btrace_bts, cmd_set_record_btrace_pt)
8046 (cmd_show_record_btrace_pt): Remove.
8047 (_initialize_record_btrace): Use add_basic_prefix_cmd,
8048 add_show_prefix_cmd.
8049 * ravenscar-thread.c (set_ravenscar_command)
8050 (show_ravenscar_command): Remove.
8051 (_initialize_ravenscar): Use add_basic_prefix_cmd,
8052 add_show_prefix_cmd.
8053 * mips-tdep.c (show_mips_command, set_mips_command)
8054 (_initialize_mips_tdep): Use add_basic_prefix_cmd,
8055 add_show_prefix_cmd.
8056 * maint.c (maintenance_command, maintenance_info_command)
8057 (maintenance_check_command, maintenance_print_command)
8058 (maintenance_set_cmd, maintenance_show_cmd): Remove.
8059 (_initialize_maint_cmds): Use add_basic_prefix_cmd,
8060 add_show_prefix_cmd.
8061 (show_per_command_cmd): Remove.
8062 * maint-test-settings.c (maintenance_set_test_settings_cmd):
8063 Remove.
8064 (maintenance_show_test_settings_cmd): Remove.
8065 (_initialize_maint_test_settings): Use add_basic_prefix_cmd,
8066 add_show_prefix_cmd.
8067 * maint-test-options.c (maintenance_test_options_command):
8068 Remove.
8069 (_initialize_maint_test_options): Use add_basic_prefix_cmd.
8070 * macrocmd.c (macro_command): Remove
8071 (_initialize_macrocmd): Use add_basic_prefix_cmd.
8072 * language.c (set_check, show_check): Remove.
8073 (_initialize_language): Use add_basic_prefix_cmd,
8074 add_show_prefix_cmd.
8075 * infcmd.c (unset_command): Remove.
8076 (_initialize_infcmd): Use add_basic_prefix_cmd.
8077 * i386-tdep.c (set_mpx_cmd, show_mpx_cmd): Remove.
8078 (_initialize_i386_tdep): Use add_basic_prefix_cmd,
8079 add_show_prefix_cmd.
8080 * go32-nat.c (go32_info_dos_command): Remove.
8081 (_initialize_go32_nat): Use add_basic_prefix_cmd.
8082 * cli/cli-decode.c (do_prefix_cmd, add_basic_prefix_cmd)
8083 (do_show_prefix_cmd, add_show_prefix_cmd): New functions.
8084 * frame.c (set_backtrace_cmd, show_backtrace_cmd): Remove.
8085 (_initialize_frame): Use add_basic_prefix_cmd,
8086 add_show_prefix_cmd.
8087 * dcache.c (set_dcache_command, show_dcache_command): Remove.
8088 (_initialize_dcache): Use add_basic_prefix_cmd,
8089 add_show_prefix_cmd.
8090 * cp-support.c (maint_cplus_command): Remove.
8091 (_initialize_cp_support): Use add_basic_prefix_cmd.
8092 * btrace.c (maint_btrace_cmd, maint_btrace_set_cmd)
8093 (maint_btrace_show_cmd, maint_btrace_pt_set_cmd)
8094 (maint_btrace_pt_show_cmd, _initialize_btrace): Use
8095 add_basic_prefix_cmd, add_show_prefix_cmd.
8096 * breakpoint.c (save_command): Remove.
8097 (_initialize_breakpoint): Use add_basic_prefix_cmd.
8098 * arm-tdep.c (set_arm_command, show_arm_command): Remove.
8099 (_initialize_arm_tdep): Use add_basic_prefix_cmd,
8100 add_show_prefix_cmd.
8101 * ada-lang.c (maint_set_ada_cmd, maint_show_ada_cmd)
8102 (set_ada_command, show_ada_command): Remove.
8103 (_initialize_ada_language): Use add_basic_prefix_cmd,
8104 add_show_prefix_cmd.
8105 * command.h (add_basic_prefix_cmd, add_show_prefix_cmd): Declare.
8106
8107 2020-04-16 Kamil Rytarowski <n54@gmx.com>
8108
8109 * nbsd-nat.c (inf_ptrace_target::auxv_parse): Remove.
8110 * nbsd-nat.h (inf_ptrace_target::auxv_parse): Likewise.
8111
8112 2020-04-16 Simon Marchi <simon.marchi@polymtl.ca>
8113
8114 * windows-tdep.c (is_linked_with_cygwin_dll): Add filename to
8115 warning messages.
8116
8117 2020-04-16 Simon Marchi <simon.marchi@polymtl.ca>
8118
8119 * windows-tdep.c (is_linked_with_cygwin_dll): Consider case where
8120 import table is not at beginning of .idata section.
8121
8122 2020-04-16 Pedro Alves <palves@redhat.com>
8123
8124 * inferior.c (delete_inferior): Use delete operator directly
8125 instead of delete_program_space.
8126 * progspace.c (add_program_space): New, factored out from
8127 program_space::program_space.
8128 (remove_program_space): New, factored out from
8129 delete_program_space.
8130 (program_space::program_space): Remove intro comment. Rewrite.
8131 (program_space::~program_space): Remove intro comment. Call
8132 remove_program_space.
8133 (delete_program_space): Delete.
8134 * progspace.h (program_space::program_space): Make explicit. Move
8135 intro comment here, adjusted.
8136 (program_space::~program_space): Move intro comment here,
8137 adjusted.
8138 (delete_program_space): Remove.
8139
8140 2020-04-16 Tom Tromey <tromey@adacore.com>
8141
8142 * windows-nat.c (windows_nat::handle_access_violation): New
8143 function.
8144 * nat/windows-nat.h (handle_access_violation): Declare.
8145 * nat/windows-nat.c (handle_exception): Move Cygwin code to
8146 windows-nat.c. Call handle_access_violation.
8147
8148 2020-04-16 Tom de Vries <tdevries@suse.de>
8149
8150 PR symtab/25791
8151 * dwarf2/index-write.c (write_gdbindex): Generate CU table entries for
8152 CUs without psymtab.
8153
8154 2020-04-16 Kevin Buettner <kevinb@redhat.com>
8155
8156 * python/python.c (do_start_initialization): Don't call
8157 PyEval_InitThreads for Python 3.9 and beyond.
8158
8159 2020-04-15 Kamil Rytarowski <n54@gmx.com>
8160
8161 * obsd-nat.c (obsd_nat_target::update_thread_list): Pass "this" to
8162 thread functions.
8163 (obsd_nat_target::wait): Likewise.
8164
8165 2020-04-15 Tom Tromey <tromey@adacore.com>
8166
8167 * windows-nat.c (DEBUG_EXEC, DEBUG_EVENTS, DEBUG_MEM)
8168 (DEBUG_EXCEPT): Use debug_printf.
8169
8170 2020-04-15 Andrew Burgess <andrew.burgess@embecosm.com>
8171
8172 * completer.c (class completion_tracker::completion_hash_entry)
8173 <hash_name>: New member function.
8174 (completion_tracker::discard_completions): New callback to hash a
8175 completion_hash_entry, pass this to htab_create_alloc.
8176
8177 2016-01-20 Jon Turney <jon.turney@dronecode.org.uk>
8178
8179 * windows-nat.c (windows_make_so): Warn rather than stopping with
8180 an error if realpath() fails.
8181
8182 2020-04-14 Kamil Rytarowski <n54@gmx.com>
8183
8184 * nbsd-nat.c (nbsd_pid_to_kinfo_proc2): New.
8185 (nbsd_nat_target::info_proc): Add do_status.
8186
8187 2020-04-14 Simon Marchi <simon.marchi@polymtl.ca>
8188 Tom de Vries <tdevries@suse.de>
8189
8190 PR symtab/25718
8191 * psympriv.h (struct partial_symtab::read_symtab)
8192 (struct partial_symtab::expand_psymtab)
8193 (struct partial_symtab::read_dependencies): Update comments.
8194 * dwarf2/read.c (struct dwarf2_include_psymtab::read_symtab): Call
8195 read_symtab for includer.
8196 (struct dwarf2_include_psymtab::expand_psymtab): Assert false.
8197 (struct dwarf2_include_psymtab::readin_p): Call readin_p () for includer.
8198 (struct dwarf2_include_psymtab::m_readin): Remove.
8199 (struct dwarf2_include_psymtab::includer): New member function.
8200 (dwarf2_psymtab::expand_psymtab): Assert !readin.
8201
8202 2020-04-14 Tom de Vries <tdevries@suse.de>
8203
8204 PR symtab/25720
8205 * symmisc.c (maintenance_expand_symtabs): Call expand_symtabs_matching
8206 with NULL symbol_matcher and lookup_name.
8207 * psymtab.c (psym_expand_symtabs_matching): Handle NULL symbol_matcher
8208 and lookup_name.
8209 * dwarf2/read.c (dw2_expand_symtabs_matching)
8210 (dw2_debug_names_expand_symtabs_matching): Same.
8211 * symfile.h (struct quick_symbol_functions::expand_symtabs_matching):
8212 Make lookup_name a pointer. Update comment.
8213 * symtab.c (global_symbol_searcher::expand_symtabs): Handle
8214 lookup_name being a pointer.
8215 * symfile.c (expand_symtabs_matching): Same.
8216 * symfile-debug.c (debug_qf_expand_symtabs_matching): Same.
8217 * linespec.c (iterate_over_all_matching_symtabs): Same.
8218
8219 2020-04-13 Tom Tromey <tom@tromey.com>
8220
8221 * run-on-main-thread.c: Update include.
8222 * unittests/main-thread-selftests.c: Update include.
8223 * tui/tui-win.c: Update include.
8224 * tui/tui-io.c: Update include.
8225 * tui/tui-interp.c: Update include.
8226 * tui/tui-hooks.c: Update include.
8227 * top.h: Update include.
8228 * top.c: Update include.
8229 * ser-base.c: Update include.
8230 * remote.c: Update include.
8231 * remote-notif.c: Update include.
8232 * remote-fileio.c: Update include.
8233 * record-full.c: Update include.
8234 * record-btrace.c: Update include.
8235 * python/python.c: Update include.
8236 * posix-hdep.c: Update include.
8237 * mingw-hdep.c: Update include.
8238 * mi/mi-main.c: Update include.
8239 * mi/mi-interp.c: Update include.
8240 * main.c: Update include.
8241 * linux-nat.c: Update include.
8242 * interps.c: Update include.
8243 * infrun.c: Update include.
8244 * inf-loop.c: Update include.
8245 * event-top.c: Update include.
8246 * event-loop.c: Move to ../gdbsupport/.
8247 * event-loop.h: Move to ../gdbsupport/.
8248 * async-event.h: Update include.
8249 * Makefile.in (COMMON_SFILES, HFILES_NO_SRCDIR): Update.
8250
8251 2020-04-13 Tom Tromey <tom@tromey.com>
8252
8253 * tui/tui-win.c: Include async-event.h.
8254 * remote.c: Include async-event.h.
8255 * remote-notif.c: Include async-event.h.
8256 * record-full.c: Include async-event.h.
8257 * record-btrace.c: Include async-event.h.
8258 * infrun.c: Include async-event.h.
8259 * event-top.c: Include async-event.h.
8260 * event-loop.h: Move some declarations to async-event.h.
8261 * event-loop.c: Don't include ser-event.h or top.h. Move some
8262 code to async-event.c.
8263 * async-event.h: New file.
8264 * async-event.c: New file.
8265 * Makefile.in (COMMON_SFILES): Add async-event.c.
8266 (HFILES_NO_SRCDIR): Add async-event.h.
8267
8268 2020-04-13 Tom Tromey <tom@tromey.com>
8269
8270 * utils.c (flush_streams): New function.
8271 * event-loop.c (gdb_wait_for_event): Call flush_streams.
8272
8273 2020-04-13 Tom Tromey <tom@tromey.com>
8274
8275 * event-loop.c (handle_file_event): Use warning, not
8276 printf_unfiltered.
8277
8278 2020-04-13 Tom Tromey <tom@tromey.com>
8279
8280 * event-loop.c: Include <chrono>.
8281
8282 2020-04-13 Tom Tromey <tom@tromey.com>
8283
8284 * gdb_select.h: Move to ../gdbsupport/.
8285 * event-loop.c: Update include path.
8286 * top.c: Update include path.
8287 * ser-base.c: Update include path.
8288 * ui-file.c: Update include path.
8289 * ser-tcp.c: Update include path.
8290 * guile/scm-ports.c: Update include path.
8291 * posix-hdep.c: Update include path.
8292 * ser-unix.c: Update include path.
8293 * gdb_usleep.c: Update include path.
8294 * mingw-hdep.c: Update include path.
8295 * inflow.c: Update include path.
8296 * infrun.c: Update include path.
8297 * event-top.c: Update include path.
8298
8299 2020-04-13 Tom Tromey <tom@tromey.com>
8300
8301 * configure: Rebuild.
8302 * configure.ac: Remove checks that are now in GDB_AC_COMMON.
8303
8304 2020-04-13 Tom Tromey <tom@tromey.com>
8305
8306 * event-loop.h (start_event_loop): Don't declare.
8307 * event-loop.c (start_event_loop): Move...
8308 * main.c (start_event_loop): ...here. Now static.
8309
8310 2020-04-13 Sergio Durigan Junior <sergiodj@sergiodj.net>
8311
8312 * MAINTAINERS: Update my email address.
8313
8314 2020-04-12 Kamil Rytarowski <n54@gmx.com>
8315
8316 * nbsd-nat.c (nbsd_nat_target::info_proc): Add IP_MINIMAL and
8317 IP_ALL.
8318
8319 2020-04-12 Kamil Rytarowski <n54@gmx.com>
8320
8321 * nbsd-nat.c (nbsd_pid_to_cmdline): Add.
8322 (nbsd_nat_target::info_proc): Add do_cmdline.
8323
8324 2020-04-12 Kamil Rytarowski <n54@gmx.com>
8325
8326 * nbsd-nat.c (nbsd_pid_to_cwd): Add.
8327 (nbsd_nat_target::info_proc): Add do_cwd.
8328
8329 2020-04-12 Kamil Rytarowski <n54@gmx.com>
8330
8331 * nbsd-nat.c (nbsd_nat_target::info_proc): Add do_exe.
8332
8333 2020-04-11 Kamil Rytarowski <n54@gmx.com>
8334
8335 * nbsd-nat.c; Include "nbsd-tdep.h" and "gdbarch.h".
8336 * nbsd-nat.c (nbsd_nat_target::find_memory_regions)
8337 (nbsd_nat_target::info_proc): New functions.
8338 * nbsd-nat.c (kinfo_get_vmmap): New function.
8339 * nbsd-nat.c (nbsd_nat_target::info_proc) Use
8340 nbsd_info_proc_mappings_header and nbsd_info_proc_mappings_entry.
8341 * nbsd-tdep.c (nbsd_info_proc_mappings_header)
8342 (nbsd_info_proc_mappings_entry, nbsd_vm_map_entry_flags): New
8343 functions.
8344 * nbsd-tdep.c (KINFO_VME_PROT_READ, KINFO_VME_PROT_WRITE)
8345 (KINFO_VME_PROT_EXEC, KINFO_VME_FLAG_COW)
8346 (KINFO_VME_FLAG_NEEDS_COPY, KINFO_VME_FLAG_NOCOREDUMP)
8347 (KINFO_VME_FLAG_PAGEABLE, KINFO_VME_FLAG_GROWS_UP)
8348 (KINFO_VME_FLAG_GROWS_DOWN): New.
8349
8350 2020-04-10 Artur Shepilko <nomadbyte@gmail.com>
8351
8352 * utils.c (copy_bitwise): Use unsigned 0 constant as operand of
8353 bit shift.
8354
8355 2020-04-10 Tom Tromey <tromey@adacore.com>
8356
8357 * symfile.c (symbol_file_add_separate): Preserve OBJF_MAINLINE.
8358
8359 2020-04-10 Tom Tromey <tromey@adacore.com>
8360
8361 * symtab.c (get_symbol_address, get_msymbol_address): Skip
8362 separate debug files.
8363
8364 2020-04-10 Hannes Domani <ssbssa@yahoo.de>
8365
8366 * nat/windows-nat.c (STATUS_WX86_BREAKPOINT, STATUS_WX86_SINGLE_STEP):
8367 Move to...
8368 * nat/windows-nat.h (STATUS_WX86_BREAKPOINT, STATUS_WX86_SINGLE_STEP):
8369 ... here.
8370 * windows-nat.c (windows_nat_target::get_windows_debug_event):
8371 Check for STATUS_WX86_BREAKPOINT.
8372 (windows_nat_target::wait): Same.
8373
8374 2020-04-10 Tom de Vries <tdevries@suse.de>
8375
8376 PR cli/25808
8377 * python/lib/gdb/__init__.py: Initialize lexer with stripnl=False.
8378
8379 2020-04-09 Simon Marchi <simon.marchi@polymtl.ca>
8380
8381 * MAINTAINERS (Global Maintainers): Add Tom de Vries.
8382 (Write After Approval): Remove Tom de Vries.
8383
8384 2020-04-09 Bernd Edlinger <bernd.edlinger@hotmail.de>
8385
8386 revert partially:
8387 2020-04-01 Bernd Edlinger <bernd.edlinger@hotmail.de>
8388
8389 * buildsym.c (record_line): Fix undefined behavior and preserve
8390 lines at eof.
8391
8392 2020-04-09 Kamil Rytarowski <n54@gmx.com>
8393
8394 * auxv.h (svr4_auxv_parse): New.
8395 * auxv.c (default_auxv_parse): Split into default_auxv_parse
8396 and generic_auxv_parse.
8397 (svr4_auxv_parse): Add.
8398 * obsd-tdep.c: Include "auxv.h".
8399 (obsd_auxv_parse): Remove.
8400 (obsd_init_abi): Remove comment.
8401 (obsd_init_abi): Change set_gdbarch_auxv_parse passed argument
8402 from `obsd_auxv_parse' to `svr4_auxv_parse'.
8403 * nbsd-tdep.c: Include "auxv.h".
8404 (nbsd_init_abi): Call set_gdbarch_auxv_parse.
8405
8406 2020-04-08 Tom Tromey <tromey@adacore.com>
8407
8408 * nat/windows-nat.h (last_wait_event): Don't declare.
8409 (wait_for_debug_event): Update comment.
8410 * nat/windows-nat.c (last_wait_event): Now static.
8411
8412 2020-04-08 Tom Tromey <tromey@adacore.com>
8413
8414 * windows-nat.c (wait_for_debug_event): Move to
8415 nat/windows-nat.c.
8416 * nat/windows-nat.h (wait_for_debug_event): Declare.
8417 * nat/windows-nat.c (wait_for_debug_event): Move from
8418 windows-nat.c. No longer static.
8419
8420 2020-04-08 Tom Tromey <tromey@adacore.com>
8421
8422 * windows-nat.c (get_windows_debug_event): Use
8423 fetch_pending_stop.
8424 * nat/windows-nat.h (fetch_pending_stop): Declare.
8425 * nat/windows-nat.c (fetch_pending_stop): New function.
8426
8427 2020-04-08 Tom Tromey <tromey@adacore.com>
8428
8429 * windows-nat.c (windows_continue): Use matching_pending_stop and
8430 continue_last_debug_event.
8431 * nat/windows-nat.h (matching_pending_stop)
8432 (continue_last_debug_event): Declare.
8433 * nat/windows-nat.c (DEBUG_EVENTS): New define.
8434 (matching_pending_stop, continue_last_debug_event): New
8435 functions.
8436
8437 2020-04-08 Tom Tromey <tromey@adacore.com>
8438
8439 * windows-nat.c (MS_VC_EXCEPTION): Move to nat/windows-nat.c.
8440 (handle_exception_result): Move to nat/windows-nat.h.
8441 (DEBUG_EXCEPTION_SIMPLE): Remove.
8442 (windows_nat::handle_ms_vc_exception): New function.
8443 (handle_exception): Move to nat/windows-nat.c.
8444 (get_windows_debug_event): Update.
8445 (STATUS_WX86_BREAKPOINT, STATUS_WX86_SINGLE_STEP): Move to
8446 nat/windows-nat.c.
8447 * nat/windows-nat.h (handle_ms_vc_exception): Declare.
8448 (handle_exception_result): Move from windows-nat.c.
8449 (handle_exception): Declare.
8450 * nat/windows-nat.c (MS_VC_EXCEPTION, handle_exception)
8451 (STATUS_WX86_SINGLE_STEP, STATUS_WX86_BREAKPOINT): Move from
8452 windows-nat.c.
8453
8454 2020-04-08 Tom Tromey <tromey@adacore.com>
8455
8456 * windows-nat.c (exception_count, event_count): Remove.
8457 (handle_exception, get_windows_debug_event)
8458 (do_initial_windows_stuff): Update.
8459
8460 2020-04-08 Tom Tromey <tromey@adacore.com>
8461
8462 * windows-nat.c (windows_nat::handle_load_dll)
8463 (windows_nat::handle_unload_dll): Rename. No longer static.
8464 * nat/windows-nat.h (handle_load_dll, handle_unload_dll):
8465 Declare.
8466
8467 2020-04-08 Tom Tromey <tromey@adacore.com>
8468
8469 * complaints.h (stop_whining): Declare at top-level.
8470 (complaint): Don't declare stop_whining.
8471
8472 2020-04-08 Tom Tromey <tromey@adacore.com>
8473
8474 * windows-nat.c (windows_nat::handle_output_debug_string):
8475 Rename. No longer static.
8476 * nat/windows-nat.h (handle_output_debug_string): Declare.
8477
8478 2020-04-08 Tom Tromey <tromey@adacore.com>
8479
8480 * windows-nat.c (current_process_handle, current_process_id)
8481 (main_thread_id, last_sig, current_event, last_wait_event)
8482 (current_windows_thread, desired_stop_thread_id, pending_stops)
8483 (struct pending_stop, siginfo_er): Move to nat/windows-nat.c.
8484 (display_selectors, fake_create_process)
8485 (get_windows_debug_event): Update.
8486 * nat/windows-nat.h (current_process_handle, current_process_id)
8487 (main_thread_id, last_sig, current_event, last_wait_event)
8488 (current_windows_thread, desired_stop_thread_id, pending_stops)
8489 (struct pending_stop, siginfo_er): Move from windows-nat.c.
8490 * nat/windows-nat.c (current_process_handle, current_process_id)
8491 (main_thread_id, last_sig, current_event, last_wait_event)
8492 (current_windows_thread, desired_stop_thread_id, pending_stops)
8493 (siginfo_er): New globals. Move from windows-nat.c.
8494
8495 2020-04-08 Tom Tromey <tromey@adacore.com>
8496
8497 * windows-nat.c (get_image_name): Move to nat/windows-nat.c.
8498 (handle_load_dll): Update.
8499 * nat/windows-nat.c (get_image_name): Move from windows-nat.c.
8500
8501 2020-04-08 Tom Tromey <tromey@adacore.com>
8502
8503 * windows-nat.c (enum thread_disposition_type): Move to
8504 nat/windows-nat.h.
8505 (windows_nat::thread_rec): Rename from thread_rec. No longer
8506 static.
8507 (windows_add_thread, windows_nat_target::fetch_registers)
8508 (windows_nat_target::store_registers, handle_exception)
8509 (windows_nat_target::resume, get_windows_debug_event)
8510 (windows_nat_target::get_tib_address)
8511 (windows_nat_target::thread_name)
8512 (windows_nat_target::thread_alive): Update.
8513 * nat/windows-nat.h (enum thread_disposition_type): Move from
8514 windows-nat.c.
8515 (thread_rec): Declare.
8516
8517 2020-04-08 Tom Tromey <tromey@adacore.com>
8518
8519 * windows-nat.c: Add "using namespace".
8520 * nat/windows-nat.h: Wrap contents in windows_nat namespace.
8521 * nat/windows-nat.c: Wrap contents in windows_nat namespace.
8522
8523 2020-04-08 Tom Tromey <tromey@adacore.com>
8524
8525 * nat/windows-nat.h (struct windows_thread_info): Declare
8526 destructor.
8527 * nat/windows-nat.c (~windows_thread_info): New.
8528
8529 2020-04-08 Tom Tromey <tromey@adacore.com>
8530
8531 PR gdb/22992
8532 * windows-nat.c (current_event): Update comment.
8533 (last_wait_event, desired_stop_thread_id): New globals.
8534 (struct pending_stop): New.
8535 (pending_stops): New global.
8536 (windows_nat_target) <stopped_by_sw_breakpoint>
8537 <supports_stopped_by_sw_breakpoint>: New methods.
8538 (windows_fetch_one_register): Add assertions. Adjust PC.
8539 (windows_continue): Handle pending stops. Suspend other threads
8540 when stepping. Use last_wait_event
8541 (wait_for_debug_event): New function.
8542 (get_windows_debug_event): Use wait_for_debug_event. Handle
8543 pending stops. Queue spurious stops.
8544 (windows_nat_target::wait): Set stopped_at_software_breakpoint.
8545 (windows_nat_target::kill): Use wait_for_debug_event.
8546 * nat/windows-nat.h (struct windows_thread_info)
8547 <stopped_at_software_breakpoint>: New field.
8548 * nat/windows-nat.c (windows_thread_info::resume): Clear
8549 stopped_at_software_breakpoint.
8550
8551 2020-04-08 Tom Tromey <tromey@adacore.com>
8552
8553 * windows-nat.c (enum thread_disposition_type): New.
8554 (thread_rec): Replace "get_context" parameter with "disposition";
8555 change type.
8556 (windows_add_thread, windows_nat_target::fetch_registers)
8557 (windows_nat_target::store_registers, handle_exception)
8558 (windows_nat_target::resume, get_windows_debug_event)
8559 (windows_nat_target::get_tib_address)
8560 (windows_nat_target::thread_name)
8561 (windows_nat_target::thread_alive): Update.
8562
8563 2020-04-08 Tom Tromey <tromey@adacore.com>
8564
8565 * windows-nat.c (thread_rec): Use windows_thread_info::suspend.
8566 (windows_continue): Use windows_continue::resume.
8567 * nat/windows-nat.h (struct windows_thread_info) <suspend,
8568 resume>: Declare new methods.
8569 * nat/windows-nat.c: New file.
8570 * configure.nat (NATDEPFILES): Add nat/windows-nat.o when needed.
8571
8572 2020-04-08 Tom Tromey <tromey@adacore.com>
8573
8574 * windows-nat.c (windows_add_thread, windows_delete_thread)
8575 (windows_nat_target::fetch_registers)
8576 (windows_nat_target::store_registers, fake_create_process)
8577 (windows_nat_target::resume, windows_nat_target::resume)
8578 (get_windows_debug_event, windows_nat_target::wait)
8579 (windows_nat_target::pid_to_str)
8580 (windows_nat_target::get_tib_address)
8581 (windows_nat_target::get_ada_task_ptid)
8582 (windows_nat_target::thread_name)
8583 (windows_nat_target::thread_alive): Use lwp, not tid.
8584
8585 2020-04-08 Tom Tromey <tromey@adacore.com>
8586
8587 * windows-nat.c (handle_exception)
8588 (windows_nat_target::thread_name): Update.
8589 * nat/windows-nat.h (windows_thread_info): Remove destructor.
8590 <name>: Now unique_xmalloc_ptr.
8591
8592 2020-04-08 Tom Tromey <tromey@adacore.com>
8593
8594 * windows-nat.c (thread_rec)
8595 (windows_nat_target::fetch_registers): Update.
8596 * nat/windows-nat.h (struct windows_thread_info) <suspended>:
8597 Update comment.
8598 <debug_registers_changed, reload_context>: Now bool.
8599
8600 2020-04-08 Tom Tromey <tromey@adacore.com>
8601
8602 * windows-nat.c (windows_add_thread): Use new.
8603 (windows_init_thread_list, windows_delete_thread): Use delete.
8604 (get_windows_debug_event): Update.
8605 * nat/windows-nat.h (struct windows_thread_info): Add constructor,
8606 destructor, and initializers.
8607
8608 2020-04-08 Tom Tromey <tromey@adacore.com>
8609
8610 * windows-nat.c (struct windows_thread_info): Remove.
8611 * nat/windows-nat.h: New file.
8612
8613 2020-04-08 Tom Tromey <tromey@adacore.com>
8614
8615 * windows-nat.c (struct windows_thread_info) <tid>: Rename from "id".
8616 (thread_rec, windows_add_thread, windows_delete_thread)
8617 (windows_continue): Update.
8618
8619 2020-04-08 Tom Tromey <tromey@adacore.com>
8620
8621 * windows-nat.c (struct windows_thread_info): Remove typedef.
8622 (thread_head): Remove.
8623 (thread_list): New global.
8624 (thread_rec, windows_add_thread, windows_init_thread_list)
8625 (windows_delete_thread, windows_continue): Update.
8626
8627 2020-04-08 Simon Marchi <simon.marchi@polymtl.ca>
8628
8629 * windows-tdep.h (windows_init_abi): Add comment.
8630 (cygwin_init_abi): New declaration.
8631 * windows-tdep.c: Split signal enumeration in two, one for
8632 Windows and one for Cygwin.
8633 (windows_gdb_signal_to_target): Only deal with signal of the
8634 Windows OS ABI.
8635 (cygwin_gdb_signal_to_target): New function.
8636 (windows_init_abi): Rename to windows_init_abi_common, don't set
8637 gdb_signal_to_target gdbarch method. Add new new function with
8638 this name.
8639 (cygwin_init_abi): New function.
8640 * amd64-windows-tdep.c (amd64_windows_init_abi_common): Add
8641 comment. Don't call windows_init_abi.
8642 (amd64_windows_init_abi): Add comment, call windows_init_abi.
8643 (amd64_cygwin_init_abi): Add comment, call cygwin_init_abi.
8644 * i386-windows-tdep.c (i386_windows_init_abi): Rename to
8645 i386_windows_init_abi_common, don't call windows_init_abi. Add
8646 a new function of this name.
8647 (i386_cygwin_init_abi): New function.
8648 (_initialize_i386_windows_tdep): Bind i386_cygwin_init_abi to
8649 OS ABI Cygwin.
8650
8651 2020-04-08 Simon Marchi <simon.marchi@polymtl.ca>
8652
8653 * dwarf2/read.c (read_gdb_index_from_buffer): Remove objfile
8654 parameter.c.
8655 (dwarf2_read_gdb_index): Update.
8656
8657 2020-04-07 Kamil Rytarowski <n54@gmx.com>
8658
8659 * nbsd-tdep.c: Include "objfiles.h".
8660 (nbsd_skip_solib_resolver): New.
8661 (nbsd_init_abi): Call set_gdbarch_skip_solib_resolver().
8662
8663 2020-04-07 Nitika Achra <Nitika.Achra@amd.com>
8664
8665 * dwarf2/loc.c (loclist_describe_location): Call the function decode_debug_loclists_
8666 addresses if DWARF version is 5 or more because DW_LLE_start* or DW_LLE_offset_pair
8667 with DW_LLE_base_addressx are being emitted in DWARFv5.
8668 Add the newly added kind DW_LOC_OFFSET_PAIR also.
8669 The length of location description is an unsigned ULEB integer in DWARFv5 instead of
8670 unsigned integer.
8671
8672 2020-04-07 Nitika Achra <Nitika.Achra@amd.com>
8673
8674 * dwarf2/loc.c (enum debug_loc_kind): Add a new kind DEBUG_LOC_OFFSET_PAIR.
8675 (dwarf2_find_location_expression): Call the function decode_debug_loclists_
8676 addresses if DWARF version is 5 or more. DW_LLE_start* or DW_LLE_offset_pair
8677 with DW_LLE_base_addressx are being emitted in DWARFv5 instead of DW_LLE_GNU*.
8678 Add applicable base address if the entry is DW_LLE_offset_pair from DWO.
8679 (decode_debug_loclists_addresses): Return DEBUG_LOC_OFFSET_PAIR instead of
8680 DEBUG_LOC_START_END in case of DW_LLE_offset_pair.
8681
8682
8683 2020-04-07 Nitika Achra <Nitika.Achra@amd.com>
8684
8685 * dwarf2/read.c (cu_debug_loc_section): Added the declaration for the function.
8686 (read_loclist_index): New function definition.
8687 (lookup_loclist_base): New function definition.
8688 (read_loclist_header): New function definition.
8689 (dwarf2_cu): Add loclist_base and loclist_header field.
8690 (dwarf2_locate_dwo_sections): Handle .debug_loclists.dwo section.
8691 (read_full_die_1): Read the value of DW_AT_loclists_base.
8692 (read_attribute_reprocess): Handle DW_FORM_loclistx.
8693 (read_attribute_value): Handle DW_FORM_loclistx.
8694 (skip_one_die): Handle DW_FORM_loclistx.
8695 (loclist_header): New structure declaration.
8696 * dwarf2/attribute.c (form_is_section_offset): Handle DW_FORM_loclistx.
8697
8698 2020-04-07 Simon Marchi <simon.marchi@polymtl.ca>
8699
8700 * dwarf2/read.h (struct dwarf2_psymtab): Remove two-parameters
8701 constructor. Remove `addr` parameter from other constructor and
8702 add `per_cu` parameter.
8703 * dwarf2/read.c (create_partial_symtab): Update.
8704
8705 2020-04-07 Tom de Vries <tdevries@suse.de>
8706
8707 PR symtab/25796
8708 * dwarf2/read.c (can_have_DW_AT_const_value_p): New function.
8709 (partial_die_info::fixup): Inherit has_const_value.
8710
8711 2020-04-07 Tom de Vries <tdevries@suse.de>
8712
8713 * psymtab.c (maintenance_check_psymtabs): Skip static LOC_BLOCK
8714 symbols without address.
8715
8716 2020-04-06 Kamil Rytarowski <n54@gmx.com>
8717
8718 * nbsd-nat.h (struct thread_info): Add forward declaration.
8719 (nbsd_nat_target::thread_alive): Add.
8720 (nbsd_nat_target::thread_name): Likewise.
8721 (nbsd_nat_target::update_thread_list): Likewise.
8722 (update_thread_list::post_attach): Likewise.
8723 (post_attach::pid_to_str): Likewise.
8724 * nbsd-nat.c: Include "gdbthread.h" and "inferior.h".
8725 (nbsd_thread_lister): Add.
8726 (nbsd_nat_target::thread_alive): Likewise.
8727 (nbsd_nat_target::thread_name): Likewise.
8728 (nbsd_add_threads): Likewise.
8729 (update_thread_list::post_attach): Likewise.
8730 (nbsd_nat_target::update_thread_list): Likewise.
8731 (post_attach::pid_to_str): Likewise.
8732
8733 2020-04-06 Tom Tromey <tromey@adacore.com>
8734
8735 * ada-valprint.c (print_variant_part): Extract the variant field.
8736 (print_field_values): Use the field as the outer value when
8737 recursing.
8738
8739 2020-04-06 Tom Tromey <tromey@adacore.com>
8740
8741 * sh-nbsd-tdep.c: Include nbsd-tdep.h.
8742 * ppc-nbsd-tdep.c: Include nbsd-tdep.h.
8743 * mips-nbsd-tdep.c (mipsnbsd_init_abi): Add missing ";".
8744 * arm-nbsd-tdep.c: Include nbsd-tdep.h.
8745 * hppa-nbsd-tdep.c: Include nbsd-tdep.h.
8746
8747 2020-04-06 Tom Tromey <tromey@adacore.com>
8748
8749 * dwarf2/read.c (read_base_type) <DW_ATE_complex_float>: Handle
8750 TYPE_CODE_ERROR.
8751
8752 2020-04-06 Kamil Rytarowski <n54@gmx.com>
8753
8754 * nbsd-tdep.c: Include "gdbarch.h".
8755 Define enum with NetBSD signal numbers.
8756 (nbsd_gdb_signal_from_target, nbsd_gdb_signal_to_target): New.
8757 * alpha-nbsd-tdep.c (alphanbsd_init_abi): Call nbsd_init_abi().
8758 * amd64-nbsd-tdep.c (amd64nbsd_init_abi): Likewise.
8759 * arm-nbsd-tdep.c (arm_netbsd_elf_init_abi): Likewise.
8760 * hppa-nbsd-tdep.c (hppanbsd_init_abi): Likewise.
8761 * i386-nbsd-tdep.c (i386nbsd_init_abi): Likewise.
8762 * mips-nbsd-tdep.c (nbsd_init_abi): Likewise.
8763 * ppc-nbsd-tdep.c (ppcnbsd_init_abi): Likewise.
8764 * sh-nbsd-tdep.c (shnbsd_init_abi): Likewise.
8765 * sparc-nbsd-tdep.c (sparc32nbsd_init_abi): Likewise.
8766 * sparc64-nbsd-tdep.c (sparc64nbsd_init_abi): Likewise.
8767 * vax-nbsd-tdep.c (vaxnbsd_elf_init_abi): Likewise.
8768
8769 2020-04-03 Hannes Domani <ssbssa@yahoo.de>
8770
8771 PR gdb/25325
8772 * dwarf2/read.c (read_enumeration_type): Fix typed enum attributes.
8773
8774 2020-04-03 Tom Tromey <tromey@adacore.com>
8775
8776 * dwarf2/loc.c (disassemble_dwarf_expression) <DW_OP_const_type>:
8777 Read constant block.
8778
8779 2020-04-02 Simon Marchi <simon.marchi@polymtl.ca>
8780
8781 * gdb_bfd.h: Include gdbsupport/byte-vector.h.
8782 (gdb_bfd_get_full_section_contents): New declaration.
8783 * gdb_bfd.c (gdb_bfd_get_full_section_contents): New function.
8784 * windows-tdep.c (is_linked_with_cygwin_dll): Use
8785 gdb_bfd_get_full_section_contents.
8786
8787 2020-04-02 Simon Marchi <simon.marchi@polymtl.ca>
8788
8789 * exec.c (build_section_table): Replace internal_error with
8790 gdb_assert.
8791 (section_table_xfer_memory_partial): Likewise.
8792 * mdebugread.c (parse_partial_symbols): Likewise.
8793 * psymtab.c (lookup_partial_symbol): Likewise.
8794 * utils.c (wrap_here): Likewise.
8795
8796 2020-04-02 Tom Tromey <tromey@adacore.com>
8797
8798 * f-lang.c (build_fortran_types): Use arch_type to initialize
8799 builtin_complex_s32 in the TYPE_CODE_ERROR case.
8800
8801 2020-04-02 Tom Tromey <tromey@adacore.com>
8802
8803 * dwarf2/read.c (partial_die_info::read): Do not create a vector
8804 of attributes.
8805
8806 2020-04-02 Andrew Burgess <andrew.burgess@embecosm.com>
8807 Bernd Edlinger <bernd.edlinger@hotmail.de>
8808 Tom Tromey <tromey@adacore.com>
8809
8810 * buildsym.c (buildsym_compunit::record_line): Remove
8811 deduplication code.
8812
8813 2020-04-02 Tom de Vries <tdevries@suse.de>
8814
8815 PR ada/24671
8816 * dwarf2/read.c (dw2_map_matching_symbols): Handle -readnow.
8817
8818 2020-04-02 Tom de Vries <tdevries@suse.de>
8819
8820 * dwarf2/read.c (dwarf2_gdb_index_functions,
8821 dwarf2_debug_names_functions): Init lookup_global_symbol_language with
8822 NULL.
8823 * psymtab.c (psym_lookup_global_symbol_language): New function.
8824 (psym_functions): Init psym_lookup_global_symbol_language with
8825 psym_lookup_global_symbol_language.
8826 * symfile-debug.c (debug_sym_quick_functions): Init
8827 lookup_global_symbol_language with NULL.
8828 * symfile.c (set_initial_language): Remove fixme comment.
8829 * symfile.h (struct quick_symbol_functions): Add
8830 lookup_global_symbol_language.
8831 * symtab.c (find_quick_global_symbol_language): New function.
8832 (find_main_name): Use find_quick_global_symbol_language.
8833
8834 2020-04-01 Simon Marchi <simon.marchi@polymtl.ca>
8835
8836 * windows-tdep.c (is_linked_with_cygwin_dll): Fix style.
8837
8838 2020-04-01 Bernd Edlinger <bernd.edlinger@hotmail.de>
8839
8840 * buildsym.c (record_line): Fix undefined behavior and preserve
8841 lines at eof.
8842
8843 2020-04-01 Bernd Edlinger <bernd.edlinger@hotmail.de>
8844
8845 * buildsym.c (record_line): Fix the resizing condition.
8846
8847 2020-04-01 Tom Tromey <tom@tromey.com>
8848
8849 * value.h (value_literal_complex): Add comment.
8850 * valops.c (value_literal_complex): Refer to value.h.
8851
8852 2020-04-01 Tom Tromey <tom@tromey.com>
8853
8854 * c-exp.y (FLOAT_KEYWORD, COMPLEX): New tokens.
8855 (scalar_type): New rule, from typebase.
8856 (typebase): Use scalar_type. Recognize complex types.
8857 (field_name): Handle FLOAT_KEYWORD.
8858 (ident_tokens): Add _Complex and __complex__.
8859
8860 2020-04-01 Tom Tromey <tom@tromey.com>
8861
8862 PR exp/25299:
8863 * valarith.c (promotion_type, complex_binop): New functions.
8864 (scalar_binop): Handle complex numbers. Use promotion_type.
8865 (value_pos, value_neg, value_complement): Handle complex numbers.
8866
8867 2020-04-01 Tom Tromey <tom@tromey.com>
8868
8869 * c-exp.y (COMPLEX_INT, COMPLEX_FLOAT): New tokens.
8870 (exp) <COMPLEX_INT, COMPLEX_FLOAT>: New rules.
8871 (parse_number): Handle complex numbers.
8872
8873 2020-04-01 Tom Tromey <tom@tromey.com>
8874
8875 * c-valprint.c (c_decorations): Change complex suffix to "i".
8876
8877 2020-04-01 Tom Tromey <tom@tromey.com>
8878
8879 * valprint.c (generic_value_print_complex): Use accessors.
8880 * value.h (value_real_part, value_imaginary_part): Declare.
8881 * valops.c (value_real_part, value_imaginary_part): New
8882 functions.
8883 * value.c (creal_internal_fn, cimag_internal_fn): Use accessors.
8884
8885 2020-04-01 Tom Tromey <tom@tromey.com>
8886
8887 * stabsread.c (rs6000_builtin_type, read_sun_floating_type)
8888 (read_range_type): Update.
8889 * mdebugread.c (basic_type): Update.
8890 * go-lang.c (build_go_types): Use init_complex_type.
8891 * gdbtypes.h (struct main_type) <complex_type>: New member.
8892 (init_complex_type): Update.
8893 (arch_complex_type): Don't declare.
8894 * gdbtypes.c (init_complex_type): Remove "objfile" parameter.
8895 Make name if none given. Use alloc_type_copy. Look for cached
8896 complex type.
8897 (arch_complex_type): Remove.
8898 (gdbtypes_post_init): Use init_complex_type.
8899 * f-lang.c (build_fortran_types): Use init_complex_type.
8900 * dwarf2/read.c (read_base_type): Update.
8901 * d-lang.c (build_d_types): Use init_complex_type.
8902 * ctfread.c (read_base_type): Update.
8903
8904 2020-04-01 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
8905
8906 * infrun.c (stop_all_threads): Update assertion, plus when
8907 stopping threads, take into account that we might be trying
8908 to stop an all-stop target.
8909 (stop_waiting): Call 'stop_all_threads' if there exists a
8910 non-stop target.
8911
8912 2020-04-01 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
8913
8914 * target.h (exists_non_stop_target): New function declaration.
8915 * target.c (exists_non_stop_target): New function.
8916
8917 2020-04-01 Hannes Domani <ssbssa@yahoo.de>
8918
8919 PR gdb/24789
8920 * eval.c (is_integral_or_integral_reference): New function.
8921 (evaluate_subexp_standard): Allow integer references in
8922 pointer arithmetic.
8923
8924 2020-04-01 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
8925
8926 * remote.c (remote_target::remote_parse_stop_reply): Remove the
8927 check for no ptid in the stop reply when the target is non-stop.
8928
8929 2020-04-01 Tom Tromey <tromey@adacore.com>
8930
8931 * symtab.h (class lookup_name_info) <lookup_name_info>: Change
8932 "name" parameter to rvalue reference. Initialize m_name_holder.
8933 <lookup_name_info>: New overloads.
8934 <name>: Return gdb::string_view.
8935 <c_str>: New method.
8936 <make_ignore_params>: Update.
8937 <search_name_hash>: Update.
8938 <language_lookup_name>: Return const char *.
8939 <m_name>: Change type.
8940 * symtab.c (demangle_for_lookup_info::demangle_for_lookup_info)
8941 (demangle_for_lookup_info::demangle_for_lookup_info): Update.
8942 (lookup_name_info::match_any): Update.
8943 * psymtab.c (match_partial_symbol, lookup_partial_symbol):
8944 Update.
8945 * minsyms.c (linkage_name_str): Update.
8946 * language.c (default_symbol_name_matcher): Update.
8947 * dwarf2/read.c (mapped_index_base::find_name_components_bounds):
8948 Update.
8949 * ada-lang.c (ada_fold_name): Change parameter to string_view.
8950 (ada_lookup_name_info::ada_lookup_name_info): Update.
8951 (literal_symbol_name_matcher): Update.
8952
8953 2020-04-01 Tom Tromey <tromey@adacore.com>
8954
8955 * psymtab.c (psymtab_search_name): Remove function.
8956 (psym_lookup_symbol): Create search name and lookup name here.
8957 (lookup_partial_symbol): Remove "name" parameter; add
8958 lookup_name.
8959 (psym_expand_symtabs_for_function): Update.
8960
8961 2020-03-31 Joel Jones <joelkevinjones@gmail.com>
8962
8963 PR tui/25597:
8964 * python/py-tui.c: Include gdb_curses.h inside of #ifdef TUI.
8965
8966 2020-03-31 Tom Tromey <tromey@adacore.com>
8967
8968 * dwarf2/abbrev.c (abbrev_table::read): Conditionally call
8969 memcpy.
8970
8971 2020-03-30 Nelson Chu <nelson.chu@sifive.com>
8972
8973 * features/riscv/32bit-csr.xml: Regenerated.
8974 * features/riscv/64bit-csr.xml: Regenerated.
8975
8976 2020-03-30 Tom Tromey <tromey@adacore.com>
8977
8978 * ada-valprint.c (print_variant_part): Update.
8979 * ada-lang.h (ada_which_variant_applies): Update.
8980 * ada-lang.c (ada_which_variant_applies): Remove outer_type and
8981 outer_valaddr parameters; replace with "outer" value parameter.
8982 (to_fixed_variant_branch_type): Update.
8983
8984 2020-03-30 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
8985
8986 * ppc-linux-nat.c: Include <algorithm>, <unordered_map>, and
8987 <list>. Remove inclusion of observable.h.
8988 (PPC_DEBUG_CURRENT_VERSION): Move up define.
8989 (struct arch_lwp_info): New struct.
8990 (class ppc_linux_dreg_interface): New class.
8991 (struct ppc_linux_process_info): New struct.
8992 (struct ppc_linux_nat_target) <low_delete_thread, low_new_fork>
8993 <low_new_clone, low_forget_process, low_prepare_to_resume>
8994 <copy_thread_dreg_state, mark_thread_stale>
8995 <mark_debug_registers_changed, register_hw_breakpoint>
8996 <clear_hw_breakpoint, register_wp, clear_wp>
8997 <can_use_watchpoint_cond_accel, calculate_dvc, check_condition>
8998 <num_memory_accesses, get_trigger_type>
8999 <create_watchpoint_request, hwdebug_point_cmp>
9000 <init_arch_lwp_info, get_arch_lwp_info>
9001 <low_stopped_by_watchpoint, low_stopped_data_address>: Declare as
9002 methods.
9003 <struct ptid_hash>: New inner struct.
9004 <m_dreg_interface, m_process_info, m_installed_hw_bps>: Declare
9005 members.
9006 (saved_dabr_value, hwdebug_info, max_slots_number)
9007 (struct hw_break_tuple, struct thread_points, ppc_threads)
9008 (have_ptrace_hwdebug_interface)
9009 (hwdebug_find_thread_points_by_tid)
9010 (hwdebug_insert_point, hwdebug_remove_point): Remove.
9011 (ppc_linux_nat_target::can_use_hw_breakpoint): Use
9012 m_dreg_interface, remove call to PTRACE_SET_DEBUGREG.
9013 (ppc_linux_nat_target::region_ok_for_hw_watchpoint): Add comment,
9014 use m_dreg_interface.
9015 (hwdebug_point_cmp): Change to...
9016 (ppc_linux_nat_target::hwdebug_point_cmp): ...this method. Use
9017 reference arguments instead of pointers.
9018 (ppc_linux_nat_target::ranged_break_num_registers): Use
9019 m_dreg_interface.
9020 (ppc_linux_nat_target::insert_hw_breakpoint): Add comment, use
9021 m_dreg_interface. Call register_hw_breakpoint.
9022 (ppc_linux_nat_target::remove_hw_breakpoint): Add comment, use
9023 m_dreg_interface. Call clear_hw_breakpoint.
9024 (get_trigger_type): Change to...
9025 (ppc_linux_nat_target::get_trigger_type): ...this method. Add
9026 comment.
9027 (ppc_linux_nat_target::insert_mask_watchpoint): Update comment,
9028 use m_dreg_interface. Call register_hw_breakpoint.
9029 (ppc_linux_nat_target::remove_mask_watchpoint): Update comment,
9030 use m_dreg_interface. Call clear_hw_breakpoint.
9031 (can_use_watchpoint_cond_accel): Change to...
9032 (ppc_linux_nat_target::can_use_watchpoint_cond_accel): ...this
9033 method. Update comment, use m_dreg_interface and
9034 m_process_info.
9035 (calculate_dvc): Change to...
9036 (ppc_linux_nat_target::calculate_dvc): ...this method. Use
9037 m_dreg_interface.
9038 (num_memory_accesses): Change to...
9039 (ppc_linux_nat_target::num_memory_accesses): ...this method.
9040 (check_condition): Change to...
9041 (ppc_linux_nat_target::check_condition): ...this method.
9042 (ppc_linux_nat_target::can_accel_watchpoint_condition): Update
9043 comment, use m_dreg_interface.
9044 (create_watchpoint_request): Change to...
9045 (ppc_linux_nat_target::create_watchpoint_request): ...this
9046 method. Use m_dreg_interface.
9047 (ppc_linux_nat_target::insert_watchpoint): Add comment, use
9048 m_dreg_interface. Call register_hw_breakpoint or register_wp.
9049 (ppc_linux_nat_target::remove_watchpoint): Add comment, use
9050 m_dreg_interface. Call clear_hw_breakpoint or clear_wp.
9051 (ppc_linux_nat_target::low_forget_process)
9052 (ppc_linux_nat_target::low_new_fork)
9053 (ppc_linux_nat_target::low_new_clone)
9054 (ppc_linux_nat_target::low_delete_thread)
9055 (ppc_linux_nat_target::low_prepare_to_resume): New methods.
9056 (ppc_linux_nat_target::low_new_thread): Remove previous logic,
9057 only call mark_thread_stale.
9058 (ppc_linux_thread_exit): Remove.
9059 (ppc_linux_nat_target::stopped_data_address): Change to...
9060 (ppc_linux_nat_target::low_stopped_data_address): This. Add
9061 comment, use m_dreg_interface and m_thread_hw_breakpoints.
9062 (ppc_linux_nat_target::stopped_by_watchpoint): Change to...
9063 (ppc_linux_nat_target::stopped_by_watchpoint): This. Add
9064 comment. Call low_stopped_data_address.
9065 (ppc_linux_nat_target::watchpoint_addr_within_range): Use
9066 m_dreg_interface.
9067 (ppc_linux_nat_target::masked_watch_num_registers): Use
9068 m_dreg_interface.
9069 (ppc_linux_nat_target::copy_thread_dreg_state)
9070 (ppc_linux_nat_target::mark_thread_stale)
9071 (ppc_linux_nat_target::mark_debug_registers_changed)
9072 (ppc_linux_nat_target::register_hw_breakpoint)
9073 (ppc_linux_nat_target::clear_hw_breakpoint)
9074 (ppc_linux_nat_target::register_wp)
9075 (ppc_linux_nat_target::clear_wp)
9076 (ppc_linux_nat_target::init_arch_lwp_info)
9077 (ppc_linux_nat_target::get_arch_lwp_info): New methods.
9078 (_initialize_ppc_linux_nat): Remove observer callback.
9079
9080 2020-03-30 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
9081
9082 * ppc-linux-nat.c (ppc_linux_nat_target::store_registers)
9083 (ppc_linux_nat_target::auxv_parse)
9084 (ppc_linux_nat_target::read_description)
9085 (supply_gregset, fill_gregset, supply_fpregset, fill_fpregset):
9086 Move up.
9087
9088 2020-03-30 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
9089
9090 * linux-nat.h (low_new_clone): New method.
9091 * linux-nat.c (linux_handle_extended_wait): Call low_new_clone.
9092
9093 2020-03-29 Simon Marchi <simon.marchi@polymtl.ca>
9094
9095 * dbxread.c (dbx_psymtab_to_symtab_1): Rename to...
9096 (dbx_expand_psymtab): ... this.
9097 (start_psymtab): Update.
9098 * mdebugread.c (psymtab_to_symtab_1): Rename to...
9099 (mdebug_expand_psymtab): ... this.
9100 (parse_partial_symbols): Update.
9101 (new_psymtab): Update.
9102 * xcoffread.c (xcoff_psymtab_to_symtab_1): Rename to...
9103 (xcoff_expand_psymtab): ... this.
9104 (xcoff_start_psymtab): Update.
9105
9106 2020-03-29 Simon Marchi <simon.marchi@polymtl.ca>
9107
9108 * psympriv.h (partial_symtab) <read_dependencies>: Rename to...
9109 <expand_dependencies>: ... this.
9110 * psymtab.c (partial_symtab::read_dependencies): Rename to...
9111 (partial_symtab::expand_dependencies): ... this.
9112 * dwarf2/read.c (dwarf2_include_psymtab) <expand_psymtab>:
9113 Update.
9114 (dwarf2_psymtab::expand_psymtab): Update.
9115 * dbxread.c (dbx_psymtab_to_symtab_1): Update.
9116 * mdebugread.c (psymtab_to_symtab_1): Update.
9117 * xcoffread.c (xcoff_psymtab_to_symtab_1): Update.
9118
9119 2020-03-29 Simon Marchi <simon.marchi@polymtl.ca>
9120
9121 * psympriv.h (discard_psymtab): Remove.
9122 * dbxread.c (dbx_end_psymtab): Update.
9123 * xcoffread.c (xcoff_end_psymtab): Update.
9124
9125 2020-03-28 Tom Tromey <tom@tromey.com>
9126
9127 * dwarf2/attribute.h (struct attribute) <form_is_constant>: Update
9128 comment.
9129
9130 2020-03-28 Tom Tromey <tom@tromey.com>
9131
9132 * dwarf2/read.c (read_attribute_reprocess): Fix formatting.
9133
9134 2020-03-27 Hannes Domani <ssbssa@yahoo.de>
9135
9136 * windows-nat.c (windows_add_all_dlls): Fix system dll paths.
9137
9138 2020-03-26 John Baldwin <jhb@FreeBSD.org>
9139
9140 * fbsd-tdep.c (fbsd_print_auxv_entry): Handle AT_FREEBSD_BSDFLAGS.
9141
9142 2020-03-26 Tom Tromey <tom@tromey.com>
9143
9144 * dwarf2/read.c (handle_data_member_location, dwarf2_add_field)
9145 (mark_common_block_symbol_computed, read_tag_string_type)
9146 (attr_to_dynamic_prop, read_subrange_type): Update.
9147 (dwarf2_get_ref_die_offset, dwarf2_get_attr_constant_value): Move
9148 to be methods on struct attribute.
9149 (skip_one_die, process_imported_unit_die, read_namespace_alias)
9150 (read_call_site_scope, partial_die_info::read)
9151 (partial_die_info::read, lookup_die_type, follow_die_ref):
9152 Update.
9153 * dwarf2/attribute.c (attribute::get_ref_die_offset): New method,
9154 from dwarf2_get_ref_die_offset.
9155 (attribute::constant_value): New method, from
9156 dwarf2_get_attr_constant_value.
9157 * dwarf2/attribute.h (struct attribute) <get_ref_die_offset>:
9158 Declare method.
9159 <constant_value>: New method.
9160
9161 2020-03-26 Tom Tromey <tom@tromey.com>
9162
9163 * dwarf2/read.c (dwarf_unit_type_name, dwarf_tag_name)
9164 (dwarf_attr_name, dwarf_form_name, dwarf_bool_name)
9165 (dwarf_type_encoding_name): Move to stringify.c.
9166 * Makefile.in (COMMON_SFILES): Add dwarf2/stringify.c.
9167 * dwarf2/stringify.c: New file.
9168 * dwarf2/stringify.h: New file.
9169
9170 2020-03-26 Tom Tromey <tom@tromey.com>
9171
9172 * dwarf2/die.h (struct die_info) <addr_base, ranges_base>:
9173 Rewrite.
9174
9175 2020-03-26 Tom Tromey <tom@tromey.com>
9176
9177 * dwarf2/die.h (struct die_info) <addr_base, ranges_base>: New
9178 methods.
9179 * dwarf2/read.c (lookup_addr_base): Move to die.h.
9180 (lookup_ranges_base): Likewise.
9181 (read_cutu_die_from_dwo, read_full_die_1): Update.
9182
9183 2020-03-26 Tom Tromey <tom@tromey.com>
9184
9185 * dwarf2/read.c (read_import_statement, read_file_scope)
9186 (read_type_unit_scope, inherit_abstract_dies, read_func_scope)
9187 (read_lexical_block_scope, read_call_site_scope)
9188 (dwarf2_get_subprogram_pc_bounds, get_scope_pc_bounds)
9189 (handle_struct_member_die, process_structure_scope)
9190 (update_enumeration_type_from_children)
9191 (process_enumeration_scope, read_array_type, read_common_block)
9192 (read_namespace, read_module, read_subroutine_type): Update.
9193 (sibling_die): Remove.
9194
9195 2020-03-26 Tom Tromey <tom@tromey.com>
9196
9197 * dwarf2/read.c (lookup_addr_base, lookup_ranges_base)
9198 (build_type_psymtabs_reader, read_structure_type)
9199 (read_enumeration_type, read_full_die_1): Update.
9200 (dwarf2_attr_no_follow): Move to die.h.
9201 * dwarf2/die.h (struct die_info) <attr>: New method.
9202
9203 2020-03-26 Tom Tromey <tom@tromey.com>
9204
9205 * dwarf2/read.c (struct dwarf2_cu) <base_known>: Remove.
9206 <base_address>: Now an optional.
9207 (dwarf2_find_base_address, dwarf2_rnglists_process)
9208 (dwarf2_ranges_process, fill_in_loclist_baton)
9209 (dwarf2_symbol_mark_computed): Update.
9210
9211 2020-03-26 Tom Tromey <tom@tromey.com>
9212
9213 * dwarf2/read.c (struct die_info): Move to die.h.
9214 * dwarf2/die.h: New file.
9215
9216 2020-03-26 Tom Tromey <tom@tromey.com>
9217
9218 * dwarf2/line-header.h (dwarf_decode_line_header): Declare.
9219 * dwarf2/read.c
9220 (dwarf2_statement_list_fits_in_line_number_section_complaint):
9221 Move to line-header.c.
9222 (read_checked_initial_length_and_offset, read_formatted_entries):
9223 Likewise.
9224 (dwarf_decode_line_header): Split into two.
9225 * dwarf2/line-header.c
9226 (dwarf2_statement_list_fits_in_line_number_section_complaint):
9227 Move from read.c.
9228 (read_checked_initial_length_and_offset, read_formatted_entries):
9229 Likewise.
9230 (dwarf_decode_line_header): New function, split from read.c.
9231
9232 2020-03-26 Tom Tromey <tom@tromey.com>
9233
9234 * dwarf2/read.h (struct dwarf2_per_objfile) <read_line_string>:
9235 Declare method.
9236 * dwarf2/read.c (read_attribute_value): Update.
9237 (dwarf2_per_objfile::read_line_string): Rename from
9238 read_indirect_line_string.
9239 (read_formatted_entries): Update.
9240
9241 2020-03-26 Tom Tromey <tom@tromey.com>
9242
9243 * dwarf2/macro.c (dwarf_decode_macro_bytes): Use objfile local
9244 variable.
9245
9246 2020-03-26 Tom Tromey <tom@tromey.com>
9247
9248 * dwarf2/macro.h (dwarf_decode_macros): Make section parameter
9249 const.
9250 * dwarf2/macro.c (skip_form_bytes, skip_unknown_opcode)
9251 (dwarf_decode_macro_bytes, dwarf_decode_macros): Make section
9252 parameter const.
9253
9254 2020-03-26 Tom Tromey <tom@tromey.com>
9255
9256 * dwarf2/read.c (dwarf_decode_macros): Make "lh" const.
9257 * dwarf2/macro.h (dwarf_decode_macros): Constify "lh" parameter.
9258 * dwarf2/macro.c (macro_start_file): Constify "lh" parameter.
9259 (dwarf_decode_macro_bytes, dwarf_decode_macros): Likewise.
9260
9261 2020-03-26 Tom Tromey <tom@tromey.com>
9262
9263 * dwarf2/line-header.h (struct line_header) <is_valid_file_index,
9264 file_names_size, file_full_name, file_file_name>: Use const.
9265 <file_name_at, file_names>: Add const overload.
9266 * dwarf2/line-header.c (line_header::file_file_name)
9267 (line_header::file_full_name): Update.
9268
9269 2020-03-26 Tom Tromey <tom@tromey.com>
9270
9271 * dwarf2/read.c (dwarf2_macro_malformed_definition_complaint)
9272 (macro_start_file, consume_improper_spaces)
9273 (parse_macro_definition, skip_form_bytes, skip_unknown_opcode)
9274 (dwarf_parse_macro_header, dwarf_decode_macro_bytes)
9275 (dwarf_decode_macros): Move to macro.c.
9276 * dwarf2/macro.c: New file.
9277 * dwarf2/macro.h: New file.
9278 * Makefile.in (COMMON_SFILES): Add dwarf2/macro.c.
9279
9280 2020-03-26 Tom Tromey <tom@tromey.com>
9281
9282 * dwarf2/section.h (struct dwarf2_section_info) <read_string>: New
9283 method.
9284 * dwarf2/section.c: New method. From
9285 read_indirect_string_at_offset_from.
9286 * dwarf2/read.c (mapped_debug_names::namei_to_name): Update.
9287 (read_indirect_string_at_offset_from): Move to section.c.
9288 (read_indirect_string_at_offset): Rewrite.
9289 (read_indirect_line_string_at_offset): Remove.
9290 (read_indirect_string, read_indirect_line_string)
9291 (dwarf_decode_macro_bytes): Update.
9292
9293 2020-03-26 Tom Tromey <tom@tromey.com>
9294
9295 * dwarf2/section.h (struct dwarf2_section_info)
9296 <overload_complaint>: Declare.
9297 (dwarf2_section_buffer_overflow_complaint): Don't declare.
9298 * dwarf2/section.c (dwarf2_section_info::overflow_complaint):
9299 Rename from dwarf2_section_buffer_overflow_complaint.
9300 * dwarf2/read.c (skip_one_die, partial_die_info::read)
9301 (skip_form_bytes, dwarf_decode_macro_bytes): Update.
9302
9303 2020-03-26 Tom Tromey <tom@tromey.com>
9304
9305 * dwarf2/section.h (dwarf2_section_buffer_overflow_complaint):
9306 Declare.
9307 * dwarf2/section.c (dwarf2_section_buffer_overflow_complaint):
9308 Move from read.c.
9309 * dwarf2/read.c (dwarf2_section_buffer_overflow_complaint): Move
9310 to section.c.
9311
9312 2020-03-26 Tom Tromey <tom@tromey.com>
9313
9314 * dwarf2/read.c (dwarf_decode_macros): Split into two overloads.
9315
9316 2020-03-26 Tom Tromey <tom@tromey.com>
9317
9318 * dwarf2/read.c (macro_start_file): Change "cu" parameter to
9319 "builder".
9320 (dwarf_decode_macro_bytes): Likewise. Add dwarf2_per_objfile
9321 parameter.
9322 (dwarf_decode_macros): Update.
9323
9324 2020-03-26 Tom Tromey <tom@tromey.com>
9325
9326 * dwarf2/read.c (read_attribute_value): Update.
9327 (read_indirect_string_from_dwz): Move to dwz.c; change into
9328 method.
9329 (dwarf_decode_macro_bytes): Update.
9330 * dwarf2/dwz.h (struct dwz_file) <read_string>: Declare method.
9331 * dwarf2/dwz.c: New file.
9332 * Makefile.in (COMMON_SFILES): Add dwz.c.
9333
9334 2020-03-26 Tom Tromey <tom@tromey.com>
9335
9336 * dwarf2/read.h (struct dwz_file): Move to dwz.h.
9337 * dwarf2/read.c: Add include.
9338 * dwarf2/index-write.c: Add include.
9339 * dwarf2/index-cache.c: Add include.
9340 * dwarf2/dwz.h: New file.
9341
9342 2020-03-25 Tom Tromey <tom@tromey.com>
9343
9344 * compile/compile-object-load.c (get_out_value_type): Mention
9345 correct symbol name in error message.
9346
9347 2020-03-25 Hannes Domani <ssbssa@yahoo.de>
9348
9349 * windows-nat.c (windows_add_all_dlls): Fix system dll paths.
9350
9351 2020-03-25 Tom de Vries <tdevries@suse.de>
9352
9353 * symtab.h (is_main_symtab_of_compunit_symtab): New function.
9354 * symmisc.c (dump_symtab_1): Print user and includes fields.
9355 (maintenance_info_symtabs): Same.
9356
9357 2020-03-25 Andrew Burgess <andrew.burgess@embecosm.com>
9358
9359 PR gdb/25534
9360 * riscv-tdep.c (riscv_arg_info::c_offset): Update comment.
9361 (riscv_regcache_cooked_write): New function.
9362 (riscv_push_dummy_call): Use new function.
9363 (riscv_return_value): Likewise.
9364
9365 2020-03-24 Simon Marchi <simon.marchi@polymtl.ca>
9366
9367 * fbsd-nat.c (fbsd_nat_target::follow_fork): Change bool to int.
9368 * fbsd-nat.h (class fbsd_nat_target) <follow_fork>: Likewise.
9369 * inf-ptrace.c (inf_ptrace_target::follow_fork): Likewise.
9370 * inf-ptrace.h (struct inf_ptrace_target) <follow_fork>: Likewise.
9371 * infrun.c (follow_fork): Likewise.
9372 (follow_fork_inferior): Likewise.
9373 * linux-nat.c (linux_nat_target::follow_fork): Likewise.
9374 * linux-nat.h (class linux_nat_target): Likewise.
9375 * remote.c (class remote_target) <follow_fork>: Likewise.
9376 (remote_target::follow_fork): Likewise.
9377 * target-delegates.c: Re-generate.
9378 * target.c (default_follow_fork): Likewise.
9379 (target_follow_fork): Likewise.
9380 * target.h (struct target_ops) <follow_fork>: Likewise.
9381 (target_follow_fork): Likewise.
9382
9383 2020-03-24 Tom de Vries <tdevries@suse.de>
9384
9385 * psymtab.c (maintenance_info_psymtabs): Print user field.
9386
9387 2020-03-20 Tom Tromey <tromey@adacore.com>
9388
9389 * dwarf2/loc.h (dwarf2_evaluate_property): Make "addr_stack"
9390 const.
9391 * dwarf2/loc.c (dwarf2_evaluate_property): Make "addr_stack"
9392 const.
9393
9394 2020-03-20 Simon Marchi <simon.marchi@efficios.com>
9395
9396 * ptrace.m4: Don't check for ptrace declaration.
9397 * config.in: Re-generate.
9398 * configure: Re-generate.
9399 * nat/gdb_ptrace.h: Don't declare ptrace if HAVE_DECL_PTRACE is
9400 not defined.
9401
9402 2020-03-20 Kamil Rytarowski <n54@gmx.com>
9403
9404 * amd64-bsd-nat.c (gdb_ptrace): Change return type from `int' to
9405 `PTRACE_TYPE_RET'.
9406 * i386-bsd-nat.c (gdb_ptrace): Likewise.
9407 * sparc-nat.c (gdb_ptrace): Likewise.
9408 * x86-bsd-nat.c (gdb_ptrace): Likewise.
9409
9410 2020-03-20 Tom Tromey <tromey@adacore.com>
9411
9412 * c-exp.y (lex_one_token): Fix assert.
9413
9414 2020-03-20 Tom Tromey <tromey@adacore.com>
9415
9416 * ada-tasks.c (read_atcb): Use smaller length in strncpy call.
9417 * linux-tdep.c (linux_fill_prpsinfo): Use smaller length in
9418 strncpy call.
9419
9420 2020-03-20 Tom Tromey <tromey@adacore.com>
9421
9422 * symmisc.c (maintenance_print_one_line_table): Use ui_out.
9423
9424 2020-03-20 Tom Tromey <tromey@adacore.com>
9425
9426 * ada-valprint.c (print_variant_part): Remove parameters; switch
9427 to value-based API.
9428 (print_field_values): Likewise.
9429 (ada_val_print_struct_union): Likewise.
9430 (ada_value_print_1): Update.
9431
9432 2020-03-20 Kamil Rytarowski <n54@gmx.com>
9433
9434 * ppc-nbsd-nat.c (ppc_nbsd_nat_target): Inherit from
9435 nbsd_nat_target instead of inf_ptrace_target.
9436 * ppc-nbsd-nat.c: Include "nbsd-nat.h", as we are now using
9437 nbsd_nat_target.
9438
9439 2020-03-20 Kamil Rytarowski <n54@gmx.com>
9440
9441 * hppa-nbsd-nat.c (fetch_registers): New variable lwp and pass
9442 it to the ptrace call.
9443 * (store_registers): Likewise.
9444
9445 2020-03-20 Kamil Rytarowski <n54@gmx.com>
9446
9447 * ppc-nbsd-nat.c (fetch_registers): New variable lwp and pass
9448 it to the ptrace call.
9449 * (store_registers): Likewise.
9450
9451 2020-03-19 Luis Machado <luis.machado@linaro.org>
9452
9453 * nat/aarch64-sve-linux-ptrace.c (aarch64_sve_set_vq): If vg is not
9454 valid, fetch vg value from ptrace.
9455
9456 2020-03-19 Kamil Rytarowski <n54@gmx.com>
9457 * inf-ptrace.h: Disable get_ptrace_pid on NetBSD.
9458 * inf-ptrace.c: Likewise.
9459 * (gdb_ptrace): Add.
9460 * (inf_ptrace_target::resume): Update.
9461 * (inf_ptrace_target::xfer_partial): Likewise.
9462 * (inf_ptrace_peek_poke): Change argument `pid' to `ptid'.
9463 * (inf_ptrace_peek_poke): Update.
9464
9465 2020-03-19 Kamil Rytarowski <n54@gmx.com>
9466
9467 * x86-bsd-nat.c (gdb_ptrace): New.
9468 * (x86bsd_dr_set): Add new argument `ptid'.
9469 * (x86bsd_dr_get, x86bsd_dr_set, x86bsd_dr_set_control,
9470 x86bsd_dr_set_addr): Update.
9471
9472 2020-03-19 Andrew Burgess <andrew.burgess@embecosm.com>
9473
9474 * remote.c (remote_target::process_stop_reply): Handle events for
9475 all threads differently.
9476
9477 2020-03-19 Andrew Burgess <andrew.burgess@embecosm.com>
9478
9479 * completer.c (completion_tracker::remove_completion): Define new
9480 function.
9481 * completer.h (completion_tracker::remove_completion): Declare new
9482 function.
9483 * symtab.c (completion_list_add_symbol): Remove aliasing msymbols
9484 when adding a C++ function symbol.
9485
9486 2020-03-19 Andrew Burgess <andrew.burgess@embecosm.com>
9487
9488 * completer.c (completion_tracker::completion_hash_entry): Define
9489 new class.
9490 (advance_to_filename_complete_word_point): Call
9491 recompute_lowest_common_denominator.
9492 (completion_tracker::completion_tracker): Call discard_completions
9493 to setup the hash table.
9494 (completion_tracker::discard_completions): Allow for being called
9495 from the constructor, pass new equal function, and element deleter
9496 when constructing the hash table. Initialise new class member
9497 variables.
9498 (completion_tracker::maybe_add_completion): Remove use of
9499 m_entries_vec, and store more information into m_entries_hash.
9500 (completion_tracker::recompute_lcd_visitor): New function, most
9501 content taken from...
9502 (completion_tracker::recompute_lowest_common_denominator):
9503 ...here, this now just visits each item in the hash calling the
9504 above visitor.
9505 (completion_tracker::build_completion_result): Remove use of
9506 m_entries_vec, call recompute_lowest_common_denominator.
9507 * completer.h (completion_tracker::have_completions): Remove use
9508 of m_entries_vec.
9509 (completion_tracker::completion_hash_entry): Declare new class.
9510 (completion_tracker::recompute_lowest_common_denominator): Change
9511 function signature.
9512 (completion_tracker::recompute_lcd_visitor): Declare new function.
9513 (completion_tracker::m_entries_vec): Delete.
9514 (completion_tracker::m_entries_hash): Initialize to NULL.
9515 (completion_tracker::m_lowest_common_denominator_valid): New
9516 member variable.
9517 (completion_tracker::m_lowest_common_denominator_max_length): New
9518 member variable.
9519
9520 2020-03-17 Kamil Rytarowski <n54@gmx.com>
9521
9522 * regformats/regdef.h: Put reg in gdb namespace.
9523
9524 2020-03-17 Kamil Rytarowski <n54@gmx.com>
9525
9526 * i386-bsd-nat.c (gdb_ptrace): New.
9527 * (i386bsd_fetch_inferior_registers,
9528 i386bsd_store_inferior_registers) Switch from pid_t to ptid_t.
9529 * (i386bsd_fetch_inferior_registers,
9530 i386bsd_store_inferior_registers) Use gdb_ptrace.
9531
9532 2020-03-17 Kamil Rytarowski <n54@gmx.com>
9533
9534 * amd64-bsd-nat.c (gdb_ptrace): New.
9535 * (amd64bsd_fetch_inferior_registers,
9536 amd64bsd_store_inferior_registers) Switch from pid_t to ptid_t.
9537 * (amd64bsd_fetch_inferior_registers,
9538 amd64bsd_store_inferior_registers) Use gdb_ptrace.
9539
9540 2020-03-17 Kamil Rytarowski <n54@gmx.com>
9541
9542 * user-regs.c (user_reg::read): Rename to...
9543 (user_reg::xread): ...this.
9544 * (append_user_reg): Rename argument `read' to `xread'.
9545 * (user_reg_add_builtin): Likewise.
9546 * (user_reg_add): Likewise.
9547 * (value_of_user_reg): Likewise.
9548
9549 2020-03-17 Kamil Rytarowski <n54@gmx.com>
9550
9551 * sparc-nat.c (gdb_ptrace): New.
9552 * sparc-nat.c (sparc_fetch_inferior_registers)
9553 (sparc_store_inferior_registers) Remove obsolete comment.
9554 * sparc-nat.c (sparc_fetch_inferior_registers)
9555 (sparc_store_inferior_registers) Switch from pid_t to ptid_t.
9556 * sparc-nat.c (sparc_fetch_inferior_registers)
9557 (sparc_store_inferior_registers) Use gdb_ptrace.
9558
9559 2020-03-17 Kamil Rytarowski <n54@gmx.com>
9560
9561 * sh-nbsd-nat.c (fetch_registers): New variable lwp and pass
9562 it to the ptrace call.
9563 * sh-nbsd-nat.c (store_registers): Likewise.
9564
9565 2020-03-17 Kamil Rytarowski <n54@gmx.com>
9566
9567 * sh-nbsd-nat.c (sh_nbsd_nat_target): Inherit from
9568 nbsd_nat_target instead of inf_ptrace_target.
9569 * sh-nbsd-nat.c: Include "nbsd-nat.h", as we are now using
9570 nbsd_nat_target.
9571
9572 2020-03-17 Kamil Rytarowski <n54@gmx.com>
9573
9574 * amd64-bsd-nat.c: Include amd64-bsd-nat.h".
9575
9576 2020-03-17 Kamil Rytarowski <n54@gmx.com>
9577
9578 * nbsd-nat.c: Include <sys/types.h>, <sys/ptrace.h> and
9579 <sys/sysctl.h>.
9580 * nbsd-nat.c (nbsd_nat_target::pid_to_exec_file): Rewrite.
9581
9582 2020-03-17 Tom de Vries <tdevries@suse.de>
9583
9584 PR gdb/23710
9585 * dwarf2/read.h (struct dwarf2_per_cu_data): Add unit_type and lang
9586 fields.
9587 * dwarf2/read.c (process_psymtab_comp_unit): Initialize unit_type and lang
9588 fields.
9589 (process_imported_unit_die): Skip import of c++ CUs.
9590
9591 2020-03-16 Tom Tromey <tom@tromey.com>
9592
9593 * p-valprint.c (pascal_object_print_value): Initialize
9594 base_value.
9595
9596 2020-03-16 Anton Kolesov <anton.kolesov@synopsys.com>
9597 Shahab Vahedi <shahab@synopsys.com>
9598
9599 * Makefile.in: Add arch/arc.o
9600 * configure.tgt: Likewise.
9601 * arc-tdep.c (arc_tdesc_init): Use arc_read_description.
9602 (_initialize_arc_tdep): Don't initialize old target descriptions.
9603 (arc_read_description): New function to cache target descriptions.
9604 * arc-tdep.h (arc_read_description): Add proto type.
9605 * arch/arc.c: New file.
9606 * arch/arc.h: Likewise.
9607 * features/Makefile: Replace old target descriptions with new.
9608 * features/arc-arcompact.c: Remove.
9609 * features/arc-arcompact.xml: Likewise.
9610 * features/arc-v2.c: Likewise
9611 * features/arc-v2.xml: Likewise
9612 * features/arc/aux-arcompact.xml: New file.
9613 * features/arc/aux-v2.xml: Likewise.
9614 * features/arc/core-arcompact.xml: Likewise.
9615 * features/arc/core-v2.xml: Likewise.
9616 * features/arc/aux-arcompact.c: Generate.
9617 * features/arc/aux-v2.c: Likewise.
9618 * features/arc/core-arcompact.c: Likewise.
9619 * features/arc/core-v2.c: Likewise.
9620 * target-descriptions (maint_print_c_tdesc_cmd): Support ARC features.
9621
9622 2020-03-16 Tom Tromey <tromey@adacore.com>
9623
9624 PR gdb/25663:
9625 * dwarf2/read.c (dwarf2_name): Strip leading namespaces after
9626 putting value into bcache.
9627
9628 2020-03-16 Simon Marchi <simon.marchi@efficios.com>
9629
9630 PR gdb/21500
9631 * amd64-windows-tdep.c (amd64_windows_init_abi): Rename
9632 to...
9633 (amd64_windows_init_abi_common): ... this. Don't set size of
9634 long type.
9635 (amd64_windows_init_abi): New function.
9636 (amd64_cygwin_init_abi): New function.
9637 (_initialize_amd64_windows_tdep): Use amd64_cygwin_init_abi for
9638 the Cygwin OS ABI.
9639 * i386-windows-tdep.c (_initialize_i386_windows_tdep): Clarify
9640 comment.
9641
9642 2020-03-16 Simon Marchi <simon.marchi@efficios.com>
9643
9644 * windows-tdep.h (is_linked_with_cygwin_dll): New declaration.
9645 * windows-tdep.c (CYGWIN_DLL_NAME): New.
9646 (pe_import_directory_entry): New struct type.
9647 (is_linked_with_cygwin_dll): New function.
9648 * amd64-windows-tdep.c (amd64_windows_osabi_sniffer): Select
9649 GDB_OSABI_CYGWIN if the BFD is linked with the Cygwin DLL.
9650 * i386-windows-tdep.c (i386_windows_osabi_sniffer): Likewise.
9651
9652 2020-03-16 Simon Marchi <simon.marchi@efficios.com>
9653
9654 * i386-windows-tdep.c: Mass-rename "cygwin" to "windows", except
9655 i386_cygwin_core_osabi_sniffer.
9656
9657 2020-03-16 Simon Marchi <simon.marchi@efficios.com>
9658
9659 * i386-cygwin-tdep.c: Rename to...
9660 * i386-windows-tdep.c: ... this.
9661 * Makefile.in (ALL_TARGET_OBS): Rename i386-cygwin-tdep.c to
9662 i386-windows-tdep.c.
9663 * configure.tgt: Likewise.
9664
9665 2020-03-16 Simon Marchi <simon.marchi@efficios.com>
9666
9667 * osabi.h (enum gdb_osabi): Add GDB_OSABI_WINDOWS.
9668 * osabi.c (gdb_osabi_names): Add "Windows".
9669 * i386-cygwin-tdep.c (i386_cygwin_osabi_sniffer): Return
9670 GDB_OSABI_WINDOWS when the binary's target is "pei-i386".
9671 (i386_cygwin_core_osabi_sniffer): New function, extracted from
9672 i386_cygwin_osabi_sniffer.
9673 (_initialize_i386_cygwin_tdep): Register OS ABI
9674 GDB_OSABI_WINDOWS for i386.
9675 * amd64-windows-tdep.c (amd64_windows_osabi_sniffer): Return
9676 GDB_OSABI_WINDOWS when the binary's target is "pei-x86-64".
9677 (_initialize_amd64_windows_tdep): Register OS ABI GDB_OSABI_WINDOWS
9678 for x86-64.
9679 * configure.tgt: Use GDB_OSABI_WINDOWS as the default OS ABI
9680 when the target matches '*-*-mingw*'.
9681
9682 2020-03-16 Simon Marchi <simon.marchi@efficios.com>
9683
9684 * defs.h (enum gdb_osabi): Move to...
9685 * osabi.h (enum gdb_osabi): ... here.
9686 * gdbarch.sh: Include osabi.h in gdbarch.h.
9687 * gdbarch.h: Re-generate.
9688
9689 2020-03-16 Simon Marchi <simon.marchi@efficios.com>
9690
9691 * amd64-windows-tdep.c (amd64_windows_osabi_sniffer): New
9692 function.
9693 (_initialize_amd64_windows_tdep): Register osabi sniffer.
9694
9695 2020-03-14 Tom Tromey <tom@tromey.com>
9696
9697 * c-typeprint.c (cp_type_print_method_args): Print "__restrict__"
9698 for C++.
9699 (c_type_print_modifier): Likewise. Add "language" parameter.
9700 (c_type_print_varspec_prefix, c_type_print_base_struct_union)
9701 (c_type_print_base_1): Update.
9702 * type-stack.h (enum type_pieces) <tp_atomic, tp_restrict>: New
9703 constants.
9704 * type-stack.c (type_stack::insert): Handle tp_atomic and
9705 tp_restrict.
9706 (type_stack::follow_type_instance_flags): Likewise.
9707 (type_stack::follow_types): Likewise. Merge type-following code.
9708 * c-exp.y (RESTRICT, ATOMIC): New tokens.
9709 (space_identifier, cv_with_space_id)
9710 (const_or_volatile_or_space_identifier_noopt)
9711 (const_or_volatile_or_space_identifier): Remove.
9712 (single_qualifier, qualifier_seq_noopt, qualifier_seq): New
9713 rules.
9714 (ptr_operator, typebase): Update.
9715 (enum token_flag) <FLAG_C>: New constant.
9716 (ident_tokens): Add "restrict", "__restrict__", "__restrict", and
9717 "_Atomic".
9718 (lex_one_token): Handle FLAG_C.
9719
9720 2020-03-14 Kamil Rytarowski <n54@gmx.com>
9721
9722 * m68k-bsd-nat.c (fetch_registers): New variable lwp and pass
9723 it to the ptrace call.
9724 * m68k-bsd-nat.c (store_registers): Likewise.
9725
9726 2020-03-14 Kamil Rytarowski <n54@gmx.com>
9727
9728 * m68k-bsd-nat.c (m68kbsd_supply_gregset): Change type of regs to
9729 gdb_byte *.
9730 * m68k-bsd-nat.c (m68kbsd_supply_fpregset): Likewise.
9731 * m68k-bsd-nat.c (m68kbsd_collect_gregset): Likewise.
9732 * m68k-bsd-nat.c (m68kbsd_supply_pcb): Cast &tmp to gdb_byte *.
9733
9734 2020-03-14 Kamil Rytarowski <n54@gmx.com>
9735
9736 * m68k-bsd-nat.c (m68k_bsd_nat_target): Inherit from
9737 nbsd_nat_target instead of inf_ptrace_target.
9738 * m68k-bsd-nat.c: Include "nbsd-nat.h", as we are now using
9739 nbsd_nat_target.
9740
9741 2020-03-14 Kamil Rytarowski <n54@gmx.com>
9742
9743 * m68k-bsd-nat.c: Define _KERNTYPES to get the declaration of
9744 register_t.
9745
9746 2020-03-14 Kamil Rytarowski <n54@gmx.com>
9747
9748 * alpha-bsd-nat.c (fetch_registers): New variable lwp and pass
9749 it to the ptrace call.
9750 * alpha-bsd-nat.c (store_registers): Likewise.
9751
9752 2020-03-14 Kamil Rytarowski <n54@gmx.com>
9753
9754 * alpha-bsd-nat.c: Remove <sys/procfs.h> and "gregset.h" from
9755 includes.
9756 * alpha-bsd-nat.c (gregset_t, fpregset_t): Remove.
9757 * alpha-bsd-nat.c (supply_gregset, fill_gregset, supply_fpregset,
9758 fill_fpregset): Likewise.
9759
9760 2020-03-14 Kamil Rytarowski <n54@gmx.com>
9761
9762 * alpha-bsd-nat.c (alpha_netbsd_nat_target): Inherit from
9763 nbsd_nat_target instead of inf_ptrace_target.
9764 * alpha-bsd-nat.c: Include "nbsd-nat.h", as we are now using
9765 nbsd_nat_target.
9766
9767 2020-03-14 Kamil Rytarowski <n54@gmx.com>
9768
9769 * alpha-bsd-nat.c: Define _KERNTYPES to get the declaration of
9770 register_t.
9771
9772 2020-03-14 Kamil Rytarowski <n54@gmx.com>
9773
9774 * arm-nbsd-nat.c (fetch_register): New variable lwp and pass
9775 it to the ptrace call.
9776 * arm-nbsd-nat.c (fetch_fp_register): Likewise.
9777 * arm-nbsd-nat.c (fetch_fp_regs): Likewise.
9778 * arm-nbsd-nat.c (store_register): Likewise.
9779 * arm-nbsd-nat.c (store_regs): Likewise.
9780 * arm-nbsd-nat.c (store_fp_register): Likewise.
9781 * arm-nbsd-nat.c (store_fp_regs): Likewise.
9782
9783 2020-03-14 Kamil Rytarowski <n54@gmx.com>
9784
9785 * arm-nbsd-nat.c (arm_netbsd_nat_target): Inherit from
9786 nbsd_nat_target instead of inf_ptrace_target.
9787 * arm-nbsd-nat.c: Include "nbsd-nat.h", as we are now using
9788 nbsd_nat_target.
9789
9790 2020-03-14 Kamil Rytarowski <n54@gmx.com>
9791
9792 * x86-bsd-nat.c (x86bsd_dr_get): New variable lwp and pass
9793 it to the ptrace call.
9794 * x86-bsd-nat.c (x86bsd_dr_set): Likewise.
9795
9796 2020-03-14 Kamil Rytarowski <n54@gmx.com>
9797
9798 * vax-bsd-nat.c (vaxbsd_supply_gregset): New variable lwp and pass
9799 it to the ptrace call.
9800 * vax-bsd-nat.c (vaxbsd_collect_gregset): Likewise.
9801
9802 2020-03-14 Kamil Rytarowski <n54@gmx.com>
9803
9804 * vax-bsd-nat.c (vaxbsd_supply_gregset): Cast gregs to const
9805 gdb_byte *.
9806 * vax-bsd-nat.c (vaxbsd_collect_gregset): Cast gregs to void *.
9807
9808 2020-03-14 Kamil Rytarowski <n54@gmx.com>
9809
9810 * vax-bsd-nat.c (vax_bsd_nat_target): Inherit from nbsd_nat_target
9811 instead of inf_ptrace_target.
9812 * vax-bsd-nat.c: Include "nbsd-nat.h", as we are now using
9813 nbsd_nat_target.
9814
9815 2020-03-14 Kamil Rytarowski <n54@gmx.com>
9816
9817 * mips-nbsd-nat.c: Define _KERNTYPES to get the declaration of
9818 register_t.
9819
9820 2020-03-14 Kamil Rytarowski <n54@gmx.com>
9821
9822 * ppc-nbsd-nat.c: Define _KERNTYPES to get the declaration of
9823 register_t.
9824
9825 2020-03-14 Kamil Rytarowski <n54@gmx.com>
9826
9827 * vax-bsd-nat.c: Define _KERNTYPES to get the declaration of
9828 register_t.
9829
9830 2020-03-13 Tom Tromey <tom@tromey.com>
9831
9832 * value.h (val_print): Don't declare.
9833 * valprint.h (val_print_array_elements)
9834 (val_print_scalar_formatted, generic_val_print): Don't declare.
9835 * valprint.c (generic_val_print_array): Take a struct value.
9836 (generic_val_print_ptr, generic_val_print_memberptr)
9837 (generic_val_print_bool, generic_val_print_int)
9838 (generic_val_print_char, generic_val_print_complex)
9839 (generic_val_print): Remove.
9840 (generic_value_print): Update.
9841 (do_val_print): Remove unused parameters. Don't call
9842 la_val_print.
9843 (val_print): Remove.
9844 (common_val_print): Update. Don't call value_check_printable.
9845 (val_print_scalar_formatted, val_print_array_elements): Remove.
9846 * rust-lang.c (rust_val_print): Remove.
9847 (rust_language_defn): Update.
9848 * p-valprint.c (pascal_val_print): Remove.
9849 (pascal_value_print_inner): Update.
9850 (pascal_object_print_val_fields, pascal_object_print_val):
9851 Remove.
9852 (pascal_object_print_static_field): Update.
9853 * p-lang.h (pascal_val_print): Don't declare.
9854 * p-lang.c (pascal_language_defn): Update.
9855 * opencl-lang.c (opencl_language_defn): Update.
9856 * objc-lang.c (objc_language_defn): Update.
9857 * m2-valprint.c (m2_print_unbounded_array, m2_val_print): Remove.
9858 * m2-lang.h (m2_val_print): Don't declare.
9859 * m2-lang.c (m2_language_defn): Update.
9860 * language.h (struct language_defn) <la_val_print>: Remove.
9861 * language.c (unk_lang_value_print_inner): Rename. Change
9862 argument types.
9863 (unknown_language_defn, auto_language_defn): Update.
9864 * go-valprint.c (go_val_print): Remove.
9865 * go-lang.h (go_val_print): Don't declare.
9866 * go-lang.c (go_language_defn): Update.
9867 * f-valprint.c (f_val_print): Remove.
9868 * f-lang.h (f_value_print): Don't declare.
9869 * f-lang.c (f_language_defn): Update.
9870 * d-valprint.c (d_val_print): Remove.
9871 * d-lang.h (d_value_print): Don't declare.
9872 * d-lang.c (d_language_defn): Update.
9873 * cp-valprint.c (cp_print_value_fields)
9874 (cp_print_value_fields_rtti, cp_print_value): Remove.
9875 (cp_print_static_field): Update.
9876 * c-valprint.c (c_val_print_array, c_val_print_ptr)
9877 (c_val_print_struct, c_val_print_union, c_val_print_int)
9878 (c_val_print_memberptr, c_val_print): Remove.
9879 * c-lang.h (c_val_print_array, cp_print_value_fields)
9880 (cp_print_value_fields_rtti): Don't declare.
9881 * c-lang.c (c_language_defn, cplus_language_defn)
9882 (asm_language_defn, minimal_language_defn): Update.
9883 * ada-valprint.c (ada_val_print_ptr, ada_val_print_num): Remove.
9884 (ada_val_print_enum): Take a struct value.
9885 (ada_val_print_flt, ada_val_print_array, ada_val_print_1)
9886 (ada_val_print): Remove.
9887 (ada_value_print_1): Update.
9888 (printable_val_type): Remove.
9889 * ada-lang.h (ada_val_print): Don't declare.
9890 * ada-lang.c (ada_language_defn): Update.
9891
9892 2020-03-13 Tom Tromey <tom@tromey.com>
9893
9894 * valprint.c (do_val_print): Update.
9895 * python/python-internal.h (gdbpy_apply_val_pretty_printer): Take
9896 a struct value.
9897 (value_to_value_object_no_release): Declare.
9898 * python/py-value.c (value_to_value_object_no_release): New
9899 function.
9900 * python/py-prettyprint.c (gdbpy_apply_val_pretty_printer): Take a
9901 struct value.
9902 * guile/scm-value.c (vlscm_scm_from_value_no_release): New
9903 function.
9904 * guile/scm-pretty-print.c (gdbscm_apply_val_pretty_printer): Take
9905 a struct value.
9906 * guile/guile-internal.h (vlscm_scm_from_value_no_release):
9907 Declare.
9908 (gdbscm_apply_val_pretty_printer): Take a struct value.
9909 * extension.h (apply_ext_lang_val_pretty_printer): Take a struct
9910 value.
9911 * extension.c (apply_ext_lang_val_pretty_printer): Take a struct
9912 value.
9913 * extension-priv.h (struct extension_language_ops)
9914 <apply_val_pretty_printer>: Take a struct value.
9915 * cp-valprint.c (cp_print_value): Create a struct value.
9916 (cp_print_value): Update.
9917
9918 2020-03-13 Tom Tromey <tom@tromey.com>
9919
9920 * ada-valprint.c (print_field_values): Call common_val_print.
9921
9922 2020-03-13 Tom Tromey <tom@tromey.com>
9923
9924 * ada-valprint.c (val_print_packed_array_elements): Remove
9925 bitoffset and val parameters. Call common_val_print.
9926 (ada_val_print_string): Remove offset, address, and original_value
9927 parameters.
9928 (ada_val_print_array): Update.
9929 (ada_value_print_array): New function.
9930 (ada_value_print_1): Call it.
9931
9932 2020-03-13 Tom Tromey <tom@tromey.com>
9933
9934 * ada-valprint.c (ada_value_print): Use common_val_print.
9935
9936 2020-03-13 Tom Tromey <tom@tromey.com>
9937
9938 * ada-valprint.c (ada_val_print_ref): Use common_val_print.
9939
9940 2020-03-13 Tom Tromey <tom@tromey.com>
9941
9942 * ada-valprint.c (ada_value_print_num): New function.
9943 (ada_value_print_1): Use it.
9944
9945 2020-03-13 Tom Tromey <tom@tromey.com>
9946
9947 * ada-valprint.c (ada_value_print_1) <TYPE_CODE_FLT>: Rewrite.
9948
9949 2020-03-13 Tom Tromey <tom@tromey.com>
9950
9951 * ada-valprint.c (ada_value_print_ptr): New function.
9952 (ada_value_print_1): Use it.
9953
9954 2020-03-13 Tom Tromey <tom@tromey.com>
9955
9956 * ada-valprint.c (ada_val_print_gnat_array): Take a struct value;
9957 call common_val_print.
9958 (ada_val_print_1): Update.
9959 (ada_value_print_1): New function.
9960 (ada_value_print_inner): Rewrite.
9961
9962 2020-03-13 Tom Tromey <tom@tromey.com>
9963
9964 * cp-valprint.c (cp_print_value_fields): Update.
9965 (cp_print_value): New function.
9966
9967 2020-03-13 Tom Tromey <tom@tromey.com>
9968
9969 * m2-valprint.c (m2_value_print_inner): Use
9970 cp_print_value_fields.
9971 * cp-valprint.c (cp_print_value_fields): New function.
9972 * c-valprint.c (c_value_print_struct): New function.
9973 (c_value_print_inner): Use c_value_print_struct.
9974 * c-lang.h (cp_print_value_fields): Declare.
9975
9976 2020-03-13 Tom Tromey <tom@tromey.com>
9977
9978 * c-valprint.c (c_value_print_array): New function.
9979 (c_value_print_inner): Use it.
9980
9981 2020-03-13 Tom Tromey <tom@tromey.com>
9982
9983 * c-valprint.c (c_value_print_memberptr): New function.
9984 (c_value_print_inner): Use it.
9985
9986 2020-03-13 Tom Tromey <tom@tromey.com>
9987
9988 * c-valprint.c (c_value_print_int): New function.
9989 (c_value_print_inner): Use it.
9990
9991 2020-03-13 Tom Tromey <tom@tromey.com>
9992
9993 * c-valprint.c (c_value_print_ptr): New function.
9994 (c_value_print_inner): Use it.
9995
9996 2020-03-13 Tom Tromey <tom@tromey.com>
9997
9998 * c-valprint.c (c_value_print_inner): Rewrite.
9999
10000 2020-03-13 Tom Tromey <tom@tromey.com>
10001
10002 * valprint.c (generic_value_print_complex): New function.
10003 (generic_value_print): Use it.
10004
10005 2020-03-13 Tom Tromey <tom@tromey.com>
10006
10007 * valprint.c (generic_val_print_float): Don't call
10008 val_print_scalar_formatted.
10009 (generic_val_print, generic_value_print): Update.
10010
10011 2020-03-13 Tom Tromey <tom@tromey.com>
10012
10013 * valprint.c (generic_value_print_char): New function
10014 (generic_value_print): Use it.
10015
10016 2020-03-13 Tom Tromey <tom@tromey.com>
10017
10018 * valprint.c (generic_value_print_int): New function.
10019 (generic_value_print): Use it.
10020
10021 2020-03-13 Tom Tromey <tom@tromey.com>
10022
10023 * valprint.c (generic_value_print_bool): New function.
10024 (generic_value_print): Use it.
10025
10026 2020-03-13 Tom Tromey <tom@tromey.com>
10027
10028 * valprint.c (generic_val_print_func): Simplify.
10029 (generic_val_print, generic_value_print): Update.
10030
10031 2020-03-13 Tom Tromey <tom@tromey.com>
10032
10033 * valprint.c (generic_val_print_flags): Remove.
10034 (generic_val_print, generic_value_print): Update.
10035 (val_print_type_code_flags): Add original_value parameter.
10036
10037 2020-03-13 Tom Tromey <tom@tromey.com>
10038
10039 * valprint.c (generic_val_print): Update.
10040 (generic_value_print): Update.
10041 * valprint.c (generic_val_print_enum): Don't call
10042 val_print_scalar_formatted.
10043
10044 2020-03-13 Tom Tromey <tom@tromey.com>
10045
10046 * valprint.c (generic_value_print): Call generic_value_print_ptr.
10047 * valprint.c (generic_value_print_ptr): New function.
10048
10049 2020-03-13 Tom Tromey <tom@tromey.com>
10050
10051 * valprint.c (generic_value_print): Rewrite.
10052
10053 2020-03-13 Tom Tromey <tom@tromey.com>
10054
10055 * p-valprint.c (pascal_object_print_value_fields)
10056 (pascal_object_print_value): New functions.
10057
10058 2020-03-13 Tom Tromey <tom@tromey.com>
10059
10060 * p-valprint.c (pascal_value_print_inner): Rewrite.
10061
10062 2020-03-13 Tom Tromey <tom@tromey.com>
10063
10064 * f-valprint.c (f_value_print_innner): Rewrite.
10065
10066 2020-03-13 Tom Tromey <tom@tromey.com>
10067
10068 * m2-valprint.c (m2_print_unbounded_array): New overload.
10069 (m2_print_unbounded_array): Update.
10070 (m2_print_array_contents): Take a struct value.
10071 (m2_value_print_inner): Rewrite.
10072
10073 2020-03-13 Tom Tromey <tom@tromey.com>
10074
10075 * d-valprint.c (dynamic_array_type): Call d_value_print_inner.
10076 (d_value_print_inner): New function.
10077 * d-lang.h (d_value_print_inner): Declare.
10078 * d-lang.c (d_language_defn): Use d_value_print_inner.
10079
10080 2020-03-13 Tom Tromey <tom@tromey.com>
10081
10082 * go-valprint.c (go_value_print_inner): New function.
10083 * go-lang.h (go_value_print_inner): Declare.
10084 * go-lang.c (go_language_defn): Use go_value_print_inner.
10085
10086 2020-03-13 Tom Tromey <tom@tromey.com>
10087
10088 * rust-lang.c (val_print_struct, rust_print_enum): Use the value
10089 API.
10090 (rust_val_print): Rewrite.
10091 (rust_value_print_inner): New function, from rust_val_print.
10092 (rust_language_defn): Use rust_value_print_inner.
10093
10094 2020-03-13 Tom Tromey <tom@tromey.com>
10095
10096 * ada-valprint.c (ada_value_print_inner): New function.
10097 * ada-lang.h (ada_value_print_inner): Declare.
10098 * ada-lang.c (ada_language_defn): Use ada_value_print_inner.
10099
10100 2020-03-13 Tom Tromey <tom@tromey.com>
10101
10102 * f-valprint.c (f_value_print_innner): New function.
10103 * f-lang.h (f_value_print_innner): Declare.
10104 * f-lang.c (f_language_defn): Use f_value_print_innner.
10105
10106 2020-03-13 Tom Tromey <tom@tromey.com>
10107
10108 * p-valprint.c (pascal_value_print_inner): New function.
10109 * p-lang.h (pascal_value_print_inner): Declare.
10110 * p-lang.c (pascal_language_defn): Use pascal_value_print_inner.
10111
10112 2020-03-13 Tom Tromey <tom@tromey.com>
10113
10114 * m2-valprint.c (m2_value_print_inner): New function.
10115 * m2-lang.h (m2_value_print_inner): Declare.
10116 * m2-lang.c (m2_language_defn): Use m2_value_print_inner.
10117
10118 2020-03-13 Tom Tromey <tom@tromey.com>
10119
10120 * opencl-lang.c (opencl_language_defn): Use c_value_print_inner.
10121 * objc-lang.c (objc_language_defn): Use c_value_print_inner.
10122 * c-valprint.c (c_value_print_inner): New function.
10123 * c-lang.h (c_value_print_inner): Declare.
10124 * c-lang.c (c_language_defn, cplus_language_defn)
10125 (asm_language_defn, minimal_language_defn): Use
10126 c_value_print_inner.
10127
10128 2020-03-13 Tom Tromey <tom@tromey.com>
10129
10130 * p-valprint.c (pascal_object_print_value_fields): Now static.
10131 * p-lang.h (pascal_object_print_value_fields): Don't declare.
10132
10133 2020-03-13 Tom Tromey <tom@tromey.com>
10134
10135 * c-valprint.c (c_val_print_array): Simplify.
10136
10137 2020-03-13 Tom Tromey <tom@tromey.com>
10138
10139 * valprint.c (value_print_array_elements): New function.
10140 * valprint.h (value_print_array_elements): Declare.
10141
10142 2020-03-13 Tom Tromey <tom@tromey.com>
10143
10144 * printcmd.c (print_formatted): Use value_print_scalar_formatted.
10145 * mips-tdep.c (mips_print_register): Use
10146 value_print_scalar_formatted.
10147
10148 2020-03-13 Tom Tromey <tom@tromey.com>
10149
10150 * valprint.h (value_print_scalar_formatted): Declare.
10151 * valprint.c (value_print_scalar_formatted): New function.
10152
10153 2020-03-13 Tom Tromey <tom@tromey.com>
10154
10155 * valprint.h (generic_value_print): Declare.
10156 * valprint.c (generic_value_print): New function.
10157
10158 2020-03-13 Tom Tromey <tom@tromey.com>
10159
10160 * valprint.c (do_val_print): Call la_value_print_inner, if
10161 available.
10162 * rust-lang.c (rust_language_defn): Update.
10163 * p-lang.c (pascal_language_defn): Update.
10164 * opencl-lang.c (opencl_language_defn): Update.
10165 * objc-lang.c (objc_language_defn): Update.
10166 * m2-lang.c (m2_language_defn): Update.
10167 * language.h (struct language_defn) <la_value_print_inner>: New
10168 member.
10169 * language.c (unknown_language_defn, auto_language_defn): Update.
10170 * go-lang.c (go_language_defn): Update.
10171 * f-lang.c (f_language_defn): Update.
10172 * d-lang.c (d_language_defn): Update.
10173 * c-lang.c (c_language_defn, cplus_language_defn)
10174 (asm_language_defn, minimal_language_defn): Update.
10175 * ada-lang.c (ada_language_defn): Update.
10176
10177 2020-03-13 Tom Tromey <tom@tromey.com>
10178
10179 * c-valprint.c (c_value_print): Use common_val_print.
10180
10181 2020-03-13 Tom Tromey <tom@tromey.com>
10182
10183 * cp-valprint.c (cp_print_static_field): Use common_val_print.
10184
10185 2020-03-13 Tom Tromey <tom@tromey.com>
10186
10187 * f-valprint.c (f77_print_array_1, f_val_print): Use
10188 common_val_print.
10189
10190 2020-03-13 Tom Tromey <tom@tromey.com>
10191
10192 * riscv-tdep.c (riscv_print_one_register_info): Use
10193 common_val_print.
10194
10195 2020-03-13 Tom Tromey <tom@tromey.com>
10196
10197 * mi/mi-main.c (output_register): Use common_val_print.
10198
10199 2020-03-13 Tom Tromey <tom@tromey.com>
10200
10201 * infcmd.c (default_print_one_register_info): Use
10202 common_val_print.
10203
10204 2020-03-13 Tom Tromey <tom@tromey.com>
10205
10206 * valprint.h (common_val_print_checked): Declare.
10207 * valprint.c (common_val_print_checked): New function.
10208 * stack.c (print_frame_arg): Use common_val_print_checked.
10209
10210 2020-03-13 Tom Tromey <tom@tromey.com>
10211
10212 * valprint.c (do_val_print): New function, from val_print.
10213 (val_print): Use do_val_print.
10214 (common_val_print): Use do_val_print.
10215
10216 2020-03-13 Tom Tromey <tom@tromey.com>
10217
10218 * valprint.c (value_print): Use scoped_value_mark.
10219
10220 2020-03-13 Tom de Vries <tdevries@suse.de>
10221
10222 PR symtab/25646
10223 * psymtab.c (partial_symtab::partial_symtab): Don't set
10224 globals_offset and statics_offset. Push element onto
10225 current_global_psymbols and current_static_psymbols stacks.
10226 (concat): New function.
10227 (end_psymtab_common): Set globals_offset and statics_offset. Pop
10228 element from current_global_psymbols and current_static_psymbols
10229 stacks. Concat popped elements to global_psymbols and
10230 static_symbols.
10231 (add_psymbol_to_list): Use current_global_psymbols and
10232 current_static_psymbols stacks.
10233 * psymtab.h (class psymtab_storage): Add current_global_psymbols and
10234 current_static_psymbols fields.
10235
10236 2020-03-12 Christian Biesinger <cbiesinger@google.com>
10237
10238 * corelow.c (sniff_core_bfd): Remove.
10239 (class core_target) <m_core_vec>: Remove.
10240 (core_target::core_target): Update.
10241 (core_file_fns): Remove.
10242 (deprecated_add_core_fns): Remove.
10243 (default_core_sniffer): Remove.
10244 (sniff_core_bfd): Remove.
10245 (default_check_format): Remove.
10246 (gdb_check_format): Remove.
10247 (core_target_open): Update.
10248 (core_target::get_core_register_section): Update.
10249 (get_core_registers_cb): Update.
10250 (core_target::fetch_registers): Update.
10251 * gdbcore.h (struct core_fns): Remove.
10252 (deprecated_add_core_fns): Remove.
10253 (default_core_sniffer): Remove.
10254 (default_check_format): Remove.
10255
10256 2020-03-12 Tom Tromey <tom@tromey.com>
10257
10258 * arm-tdep.c (struct arm_mapping_symbol) <value>: Now a
10259 CORE_ADDR.
10260 (struct arm_exidx_entry) <addr>: Now a CORE_ADDR.
10261
10262 2020-03-12 Tom Tromey <tom@tromey.com>
10263
10264 * remote.c (remote_target::download_tracepoint)
10265 (remote_target::enable_tracepoint)
10266 (remote_target::disable_tracepoint): Use phex, not sprintf_vma.
10267 * breakpoint.c (print_recreate_masked_watchpoint): Use phex, not
10268 sprintf_vma.
10269
10270 2020-03-12 Tom Tromey <tom@tromey.com>
10271
10272 * symfile-mem.c: Update CORE_ADDR size assert.
10273
10274 2020-03-12 Simon Marchi <simon.marchi@efficios.com>
10275
10276 * selftest.m4: Move to gdbsupport/.
10277 * acinclude.m4: Update path to selftest.m4.
10278
10279 2020-03-12 Simon Marchi <simon.marchi@efficios.com>
10280
10281 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Rename to...
10282 (SELFTESTS_SRCS): ... this. Add disasm-selftests.c,
10283 gdbarch-selfselftests.c and selftest-arch.c.
10284 (SUBDIR_UNITTESTS_OBS): Rename to...
10285 (SELFTESTS_OBS): ... this.
10286 (COMMON_SFILES): Remove disasm-selftests.c and
10287 gdbarch-selftests.c.
10288 * configure.ac: Don't add selftest-arch.{c,o} to
10289 CONFIG_{SRCS,OBS}.
10290 * disasm-selftests.c, gdbarch-selftests.c: Remove GDB_SELF_TEST
10291 preprocessor conditions.
10292
10293 2020-03-12 Simon Marchi <simon.marchi@efficios.com>
10294
10295 * configure.ac: Don't source bfd/development.sh.
10296 * selftest.m4: Modify comment.
10297 * configure: Re-generate.
10298
10299 2020-03-12 Simon Marchi <simon.marchi@efficios.com>
10300
10301 * selftest.m4 (GDB_AC_SELFTEST): Error out if $development is
10302 not "true" or "false".
10303 * configure: Re-generate.
10304
10305 2020-03-12 Christian Biesinger <cbiesinger@google.com>
10306
10307 * Makefile.in (HFILES_NO_SRCDIR): Add new arm-nbsd-tdep.h file.
10308 * arm-nbsd-nat.c (arm_supply_gregset): Moved to arm-nbsd-tdep and
10309 renamed to arm_nbsd_supply_gregset.
10310 (fetch_register): Update to call arm_nbsd_supply_gregset.
10311 (fetch_regs): Remove in favor of fetch_register with a -1 regno.
10312 (arm_netbsd_nat_target::fetch_registers): Update.
10313 (fetch_elfcore_registers): Removed.
10314 (_initialize_arm_netbsd_nat): Removed call to deprecated_add_core_fns.
10315 * arm-nbsd-tdep.c (struct arm_nbsd_reg): New struct.
10316 (arm_nbsd_supply_gregset): Moved from arm-nbsd-nat.c and updated to
10317 not require NetBSD system headers.
10318 (arm_nbsd_regset): New struct.
10319 (arm_nbsd_iterate_over_regset_sections): New function.
10320 (arm_netbsd_init_abi_common): Updated to call
10321 set_gdbarch_iterate_over_regset_sections.
10322 * arm-nbsd-tdep.h: New file.
10323
10324 2020-03-11 Kevin Buettner <kevinb@redhat.com>
10325
10326 * symtab.c (find_pc_sect_line): Add check which prevents infinite
10327 recursion.
10328
10329 2020-03-11 Simon Marchi <simon.marchi@efficios.com>
10330
10331 * configure: Re-generate.
10332
10333 2020-03-11 Tom Tromey <tromey@adacore.com>
10334
10335 * ada-typeprint.c (print_choices): Fix comment.
10336
10337 2020-03-11 Andrew Burgess <andrew.burgess@embecosm.com>
10338
10339 * buildsyms.c (buildsym_compunit::record_line): Avoid accessing
10340 previous item in the list, when the list has no items.
10341
10342 2020-03-11 Tom de Vries <tdevries@suse.de>
10343
10344 * dwarf2/loc.c (dwarf2_evaluate_property): Handle NULL frame in
10345 PROP_LOCLIST handling code.
10346
10347 2020-03-10 Andrew Burgess <andrew.burgess@embecosm.com>
10348
10349 * buildsym-legacy.c (record_line): Pass extra parameter to
10350 record_line.
10351 * buildsym.c (buildsym_compunit::record_line): Take an extra
10352 parameter, reduce duplication in the line table, and record the
10353 is_stmt flag in the line table.
10354 * buildsym.h (buildsym_compunit::record_line): Add extra
10355 parameter.
10356 * disasm.c (do_mixed_source_and_assembly_deprecated): Ignore
10357 non-statement lines.
10358 * dwarf2/read.c (dwarf_record_line_1): Add extra parameter, pass
10359 this to the symtab builder.
10360 (dwarf_finish_line): Pass extra parameter to dwarf_record_line_1.
10361 (lnp_state_machine::record_line): Pass a suitable is_stmt flag
10362 through to dwarf_record_line_1.
10363 * infrun.c (process_event_stop_test): When stepping, don't stop at
10364 a non-statement instruction, and only refresh the step info when
10365 we land in the middle of a line's range. Also add an extra
10366 comment.
10367 * jit.c (jit_symtab_line_mapping_add_impl): Initialise is_stmt
10368 field.
10369 * record-btrace.c (btrace_find_line_range): Only record lines
10370 marked as is-statement.
10371 * stack.c (frame_show_address): Show the frame address if we are
10372 in a non-statement sal.
10373 * symmisc.c (dump_symtab_1): Print the is_stmt flag.
10374 (maintenance_print_one_line_table): Print a header for the is_stmt
10375 column, and include is_stmt information in the output.
10376 * symtab.c (find_pc_sect_line): Find lines marked as statements in
10377 preference to non-statements.
10378 (find_pcs_for_symtab_line): Prefer is-statement entries.
10379 (find_line_common): Likewise.
10380 * symtab.h (struct linetable_entry): Add is_stmt field.
10381 (struct symtab_and_line): Likewise.
10382 * xcoffread.c (arrange_linetable): Initialise is_stmt field when
10383 arranging the line table.
10384
10385 2020-03-07 Tom de Vries <tdevries@suse.de>
10386
10387 * dwarf2/read.c (read_typedef): Treat anonymous typedef as forwarder
10388 DIE.
10389
10390 2020-03-07 Tom Tromey <tom@tromey.com>
10391
10392 * valops.c (value_literal_complex): Remove obsolete comment.
10393 * gdbtypes.h (enum type_code) <TYPE_CODE_FLT>: Remove obsolete
10394 comment.
10395
10396 2020-03-06 Simon Marchi <simon.marchi@polymtl.ca>
10397
10398 * infrun.h: Forward-declare thread_info.
10399 (set_step_info): Add thread_info parameter, add doc.
10400 * infrun.c (set_step_info): Add thread_info parameter, move doc
10401 to header.
10402 * infrun.c (process_event_stop_test): Pass thread to
10403 set_step_info call.
10404 * infcmd.c (set_step_frame): Add thread_info pointer, pass it to
10405 set_step_info.
10406 (prepare_one_step): Add thread_info parameter, pass it to
10407 set_step_frame and prepare_one_step (recursive) call.
10408 (step_1): Pass thread to prepare_one_step call.
10409 (step_command_fsm::should_stop): Pass thread to
10410 prepare_one_step.
10411 (until_next_fsm): Pass thread to set_step_frame call.
10412 (finish_command): Pass thread to set_step_info call.
10413
10414 2020-03-06 Hannes Domani <ssbssa@yahoo.de>
10415
10416 * windows-tdep.c (windows_solib_create_inferior_hook):
10417 Check if inferior is running.
10418
10419 2020-03-06 Tom de Vries <tdevries@suse.de>
10420
10421 * NEWS: Fix "the the".
10422 * ctfread.c: Same.
10423
10424 2020-03-06 Tom de Vries <tdevries@suse.de>
10425
10426 * psymtab.c (psymtab_to_symtab): Don't print "done.".
10427
10428 2020-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
10429
10430 * .dir-locals.el: Add a comment referencing the other copies of
10431 this file.
10432
10433 2020-03-05 John Baldwin <jhb@FreeBSD.org>
10434
10435 * fbsd-tdep.c (fbsd_make_corefile_notes): Use std::string for
10436 psargs.
10437
10438 2020-03-05 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
10439
10440 * .gitattributes: New file.
10441
10442 2020-03-04 Tom Tromey <tom@tromey.com>
10443
10444 * symmisc.c (print_symbol_bcache_statistics)
10445 (print_objfile_statistics): Update.
10446 * symfile.c (allocate_symtab): Use intern.
10447 * psymtab.c (partial_symtab::partial_symtab): Use intern.
10448 * objfiles.h (struct objfile_per_bfd_storage) <filename_cache,
10449 macro_cache>: Remove.
10450 <string_cache>: New member.
10451 (struct objfile) <intern>: New methods.
10452 * elfread.c (elf_symtab_read): Use intern.
10453 * dwarf2/read.c (fixup_go_packaging): Intern package name.
10454 (dwarf2_compute_name, dwarf2_physname)
10455 (create_dwo_unit_in_dwp_v1, create_dwo_unit_in_dwp_v2): Intern
10456 names.
10457 (guess_partial_die_structure_name): Update.
10458 (partial_die_info::fixup): Intern name.
10459 (dwarf2_canonicalize_name): Change parameter to objfile. Intern
10460 name.
10461 (dwarf2_name): Intern name. Update.
10462 * buildsym.c (buildsym_compunit::get_macro_table): Use
10463 string_cache.
10464
10465 2020-03-04 Tom Tromey <tom@tromey.com>
10466
10467 * jit.c (bfd_open_from_target_memory): Make "target" const.
10468 * corefile.c (gnutarget): Now const.
10469 * gdbcore.h (gnutarget): Now const.
10470
10471 2020-03-04 Hannes Domani <ssbssa@yahoo.de>
10472
10473 * NEWS: Mention support for WOW64 processes.
10474 * amd64-windows-nat.c (amd64_mappings): Rename and remove static.
10475 (amd64_windows_segment_register_p): Remove static.
10476 (_initialize_amd64_windows_nat): Update.
10477 * configure.nat <windows> (NATDEPFILES): Add i386-windows-nat.o.
10478 * i386-windows-nat.c (context_offset): Update.
10479 (i386_mappings): Rename and remove static.
10480 (i386_windows_segment_register_p): Remove static.
10481 (_initialize_i386_windows_nat): Update.
10482 * windows-nat.c (STATUS_WX86_BREAKPOINT): New macro.
10483 (STATUS_WX86_SINGLE_STEP): New macro.
10484 (EnumProcessModulesEx): New macro.
10485 (Wow64SuspendThread): New macro.
10486 (Wow64GetThreadContext): New macro.
10487 (Wow64SetThreadContext): New macro.
10488 (Wow64GetThreadSelectorEntry): New macro.
10489 (windows_set_context_register_offsets): Add static.
10490 (windows_set_segment_register_p): Likewise.
10491 (windows_add_thread): Adapt for WOW64 processes.
10492 (windows_fetch_one_register): Likewise.
10493 (windows_nat_target::fetch_registers): Likewise.
10494 (windows_store_one_register): Likewise.
10495 (display_selector): Likewise.
10496 (display_selectors): Likewise.
10497 (handle_exception): Likewise.
10498 (windows_continue): Likewise.
10499 (windows_nat_target::resume): Likewise.
10500 (windows_add_all_dlls): Likewise.
10501 (do_initial_windows_stuff): Likewise.
10502 (windows_nat_target::attach): Likewise.
10503 (windows_get_exec_module_filename): Likewise.
10504 (windows_nat_target::create_inferior): Likewise.
10505 (windows_xfer_siginfo): Likewise.
10506 (_initialize_loadable): Initialize Wow64SuspendThread,
10507 Wow64GetThreadContext, Wow64SetThreadContext,
10508 Wow64GetThreadSelectorEntry and EnumProcessModulesEx.
10509 * windows-nat.h (windows_set_context_register_offsets):
10510 Remove declaration.
10511 (windows_set_segment_register_p): Likewise.
10512 (i386_windows_segment_register_p): Add declaration.
10513 (amd64_windows_segment_register_p): Likewise.
10514
10515 2020-03-04 Luis Machado <luis.machado@linaro.org>
10516
10517 Revert aa66aac47b4dd38f9524ddb5546c08cc09930d37 due to regressions
10518 in "info registers" for AArch64/ARM.
10519
10520 The change caused "info registers" to not print GPR's.
10521
10522 gdb/ChangeLog:
10523
10524 2020-02-01 Shahab Vahedi <shahab@synopsys.com>
10525
10526 * target-descriptions.c (tdesc_register_in_reggroup_p): Return 0
10527 when reg->group is empty and reggroup is not.
10528
10529 2020-03-03 Tom Tromey <tromey@adacore.com>
10530
10531 * dwarf2/frame.c (struct dwarf2_frame_cache)
10532 <checked_tailcall_bottom, entry_cfa_sp_offset,
10533 entry_cfa_sp_offset_p>: Remove members.
10534 (dwarf2_frame_cache): Call dwarf2_tailcall_sniffer_first.
10535 (dwarf2_frame_prev_register): Don't call
10536 dwarf2_tailcall_sniffer_first.
10537 (dwarf2_append_unwinders): Don't append tailcall unwinder.
10538 * frame-unwind.c (add_unwinder): New fuction.
10539 (frame_unwind_init): Use it. Add tailcall unwinder.
10540
10541 2020-03-03 Andrew Burgess <andrew.burgess@embecosm.com>
10542 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
10543
10544 * f-valprint.c (f_val_print): Handle TYPE_CODE_BOOL, any non-zero
10545 value should be printed as true.
10546
10547 2020-03-03 Hannes Domani <ssbssa@yahoo.de>
10548
10549 * windows-tdep.c (windows_solib_create_inferior_hook): New function.
10550 (windows_init_abi): Set and use windows_so_ops.
10551
10552 2020-03-03 Sergio Durigan Junior <sergiodj@redhat.com>
10553
10554 * printcmd.c (print_c_string): Check also for TYPE_CODE_PTR
10555 when verifying if dealing with a convenience variable.
10556
10557 2020-03-03 Luis Machado <luis.machado@linaro.org>
10558
10559 * auxv.c (default_print_auxv_entry): Add new AUXV entries.
10560
10561 2020-03-02 Simon Marchi <simon.marchi@polymtl.ca>
10562
10563 * infrun.c (gdbarch_supports_displaced_stepping): New.
10564 (use_displaced_stepping): Break up conditions in smaller pieces.
10565 Use gdbarch_supports_displaced_stepping.
10566 (displaced_step_prepare_throw): Use
10567 gdbarch_supports_displaced_stepping.
10568
10569 2020-03-02 Andrew Burgess <andrew.burgess@embecosm.com>
10570
10571 * NEWS: Mention new behaviour of the history filename.
10572 * top.c (write_history_p): Add comment.
10573 (show_write_history_p): Add header comment, give a different
10574 message when history writing is on, but the history filename is
10575 empty.
10576 (history_filename): Add comment.
10577 (history_filename_empty): New function.
10578 (show_history_filename): Add header comment, give a different
10579 message when the filename is empty.
10580 (init_history): Compare history_filename against nullptr, and only
10581 read history if the filename is not empty.
10582 (set_history_filename): Add header comment, and only make
10583 non-empty filenames absolute.
10584 (init_main): Make the filename argument to 'set history filename'
10585 optional.
10586
10587 2020-03-02 Christian Biesinger <cbiesinger@google.com>
10588
10589 * arm-nbsd-nat.c (arm_supply_fparegset): Rename to...
10590 (arm_supply_vfpregset): ...this, and update to use VFP registers.
10591 (fetch_fp_register): Update.
10592 (fetch_fp_regs): Update.
10593 (store_fp_register): Update.
10594 (store_fp_regs): Update.
10595 (arm_netbsd_nat_target::read_description): New function.
10596 (fetch_elfcore_registers): Update.
10597
10598 2020-03-02 Andrew Burgess <andrew.burgess@embecosm.com>
10599
10600 * remote.c (remote_target::remote_parse_stop_reply): Don't use the
10601 general_thread if the stop reply is missing a thread-id.
10602 (remote_target::process_stop_reply): Use the first non-exited
10603 thread if the target didn't pass a thread-id.
10604 * infrun.c (do_target_wait): Move call to
10605 switch_to_inferior_no_thread to ....
10606 (do_target_wait_1): ... here.
10607
10608 2020-02-29 Jon Turney <jon.turney@dronecode.org.uk>
10609
10610 * debuginfod-support.c: Include defs.h first.
10611
10612 2020-02-28 Tom de Vries <tdevries@suse.de>
10613
10614 * symfile.c (set_initial_language): Use default language for lookup.
10615
10616 2020-02-28 Simon Marchi <simon.marchi@efficios.com>
10617
10618 * dwarf2/read.c (cutu_reader::init_tu_and_read_dwo_dies): Remove
10619 reader variable, pass `this` to read_cutu_die_from_dwo.
10620
10621 2020-02-27 Aaron Merey <amerey@redhat.com>
10622
10623 * source.c (open_source_file): Check for nullptr when computing
10624 srcpath.
10625
10626 2020-02-27 Tom Tromey <tromey@adacore.com>
10627
10628 * dwarf2/read.c (struct field_info) <nfields>: Now a method, not a
10629 member.
10630 (dwarf2_add_field): Don't update nfields.
10631 (dwarf2_attach_fields_to_type, process_structure_scope): Update.
10632
10633 2020-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
10634
10635 * gdbtypes.c (create_array_type_with_stride): Use std::abs not
10636 abs.
10637
10638 2020-02-26 Tom Tromey <tom@tromey.com>
10639
10640 * dwarf2/read.c (struct dwarf2_include_psymtab): New.
10641 (dwarf2_create_include_psymtab): Use dwarf2_include_psymtab.
10642 (dwarf2_psymtab::expand_psymtab, dwarf2_psymtab::readin_p)
10643 (dwarf2_psymtab::get_compunit_symtab): Remove null checks for
10644 per_cu_data.
10645
10646 2020-02-26 Tom Tromey <tom@tromey.com>
10647
10648 * dwarf2/index-write.c (psym_index_map): Change type.
10649 (add_address_entry_worker, write_one_signatured_type)
10650 (recursively_count_psymbols, recursively_write_psymbols)
10651 (class debug_names, psyms_seen_size, write_gdbindex)
10652 (write_debug_names): Use partial_symtab, not dwarf2_psymtab.
10653
10654 2020-02-26 Aaron Merey <amerey@redhat.com>
10655
10656 * Makefile.in: Handle optional debuginfod support.
10657 * NEWS: Update.
10658 * README: Add --with-debuginfod summary.
10659 * config.in: Regenerate.
10660 * configure: Regenerate.
10661 * configure.ac: Handle optional debuginfod support.
10662 * debuginfod-support.c: debuginfod helper functions.
10663 * debuginfod-support.h: Ditto.
10664 * doc/gdb.texinfo: Add --with-debuginfod to configure options
10665 summary.
10666 * dwarf2/read.c (dwarf2_get_dwz_file): Query debuginfod servers
10667 when a dwz file cannot be found.
10668 * elfread.c (elf_symfile_read): Query debuginfod servers when a
10669 debuginfo file cannot be found.
10670 * source.c (open_source_file): Query debuginfod servers when a
10671 source file cannot be found.
10672 * top.c (print_gdb_configuration): Include
10673 --{with,without}-debuginfod in the output.
10674
10675 2020-02-26 Jérémie Galarneau <jeremie.galarneau@efficios.com>
10676
10677 * thread.c (thr_try_catch_cmd): Print thread name.
10678
10679 2020-02-26 Simon Marchi <simon.marchi@efficios.com>
10680
10681 * dwarf2/loc.h (dwarf2_fetch_die_loc_sect_off,
10682 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
10683 dwarf2_fetch_die_type_sect_off): Move to...
10684 * dwarf2/read.h (dwarf2_fetch_die_loc_sect_off,
10685 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
10686 dwarf2_fetch_die_type_sect_off): ... here.
10687 * dwarf2/read.c (dwarf2_fetch_die_loc_sect_off,
10688 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
10689 dwarf2_fetch_die_type_sect_off): Move doc to header file.
10690
10691 2020-02-26 Tom de Vries <tdevries@suse.de>
10692
10693 PR gdb/25603
10694 * symfile.c (set_initial_language): Exit-early if
10695 language_mode == language_mode_manual.
10696
10697 2020-02-25 Simon Marchi <simon.marchi@polymtl.ca>
10698
10699 * dwarf2/loc.h (dwarf2_read_addr_index): Move...
10700 * dwarf2/read.h (dwarf2_read_addr_index): ... here.
10701 * dwarf2/read.c (dwarf2_read_addr_index): Move doc to header.
10702
10703 2020-02-25 Andrew Burgess <andrew.burgess@embecosm.com>
10704
10705 * gdbtypes.c (create_array_type_with_stride): Handle negative
10706 array strides.
10707 * valarith.c (value_subscripted_rvalue): Likewise.
10708
10709 2020-02-25 Luis Machado <luis.machado@linaro.org>
10710
10711 * aarch64-tdep.c (aarch64_vnv_type): Fix comment typo.
10712
10713 2020-02-25 Simon Marchi <simon.marchi@polymtl.ca>
10714
10715 * loc.h (dwarf2_get_die_type): Move to...
10716 * read.h (dwarf2_get_die_type): ... here.
10717 * read.c (dwarf2_get_die_type): Move doc to header.
10718
10719 2020-02-25 Joel Brobecker <brobecker@adacore.com>
10720
10721 * copypright.py (EXCLUDE_LIST): Add 'gnulib/config.in' and
10722 'gnulib/Makefile.in' to the list.
10723
10724 2020-02-24 Tom Tromey <tom@tromey.com>
10725
10726 * dwarf2/read.h (struct type_unit_unshareable) <num_symtabs>:
10727 Remove.
10728 * dwarf2/read.c (dwarf2_cu::setup_type_unit_groups): Use
10729 XOBNEWVEC.
10730
10731 2020-02-24 Tom Tromey <tom@tromey.com>
10732
10733 * dwarf2/read.h (struct dwarf2_per_cu_data) <type_unit_group_p>:
10734 New method.
10735 * dwarf2/read.c (IS_TYPE_UNIT_GROUP): Remove.
10736 (dw2_do_instantiate_symtab, dw2_get_file_names)
10737 (build_type_psymtab_dependencies, load_full_type_unit): Update.
10738
10739 2020-02-24 Tom Tromey <tom@tromey.com>
10740
10741 * dwarf2read.c (dwarf2_build_psymtabs_hard): Use
10742 make_scoped_restore.
10743 (dwarf2_psymtab::read_symtab): Don't clear
10744 reading_partial_symbols.
10745
10746 2020-02-24 Tom de Vries <tdevries@suse.de>
10747
10748 PR gdb/25592
10749 * stack.c (iterate_over_block_locals): Handle LOC_CONST.
10750
10751 2020-02-24 Tom de Vries <tdevries@suse.de>
10752
10753 * tui/tui-layout.c (_initialize_tui_layout): Fix help messages for
10754 commands layout next/prev/regs.
10755
10756 2020-02-22 Tom Tromey <tom@tromey.com>
10757
10758 * dwarf2/loc.h (dwarf2_compile_expr_to_ax): Don't declare.
10759 * dwarf2/loc.c (dwarf2_compile_expr_to_ax): Now static.
10760
10761 2020-02-22 Tom Tromey <tom@tromey.com>
10762
10763 * tui/tui-data.h (TUI_DISASM_WIN): Cast to tui_disasm_window.
10764
10765 2020-02-22 Tom Tromey <tom@tromey.com>
10766
10767 * tui/tui-win.c (_initialize_tui_win): Add usage text.
10768 * tui/tui-stack.c (_initialize_tui_stack): Add usage text.
10769 * tui/tui-regs.c (_initialize_tui_regs): Add usage text.
10770 * tui/tui.c (_initialize_tui): Add usage text.
10771
10772 2020-02-22 Tom Tromey <tom@tromey.com>
10773
10774 * tui/tui-win.c (tui_set_focus_command)
10775 (tui_set_win_height_command): Use error_no_arg.
10776 (_initialize_tui_win): Update help text.
10777 (FOCUS_USAGE, WIN_HEIGHT_USAGE): Don't define.
10778
10779 2020-02-22 Tom Tromey <tom@tromey.com>
10780
10781 * tui/tui-layout.c (extract_display_start_addr): Rewrite.
10782 * tui/tui-disasm.h (struct tui_disasm_window)
10783 <display_start_addr>: Declare.
10784 * tui/tui-source.h (struct tui_source_window)
10785 <display_start_addr>: Declare.
10786 * tui/tui-winsource.h (struct tui_source_window_base)
10787 <show_source_line, display_start_addr>: New methods.
10788 <m_horizontal_offset, m_start_line_or_addr, m_gdbarch, m_content>:
10789 Rename and move to protected section.
10790 * tui/tui-winsource.c (tui_source_window_base::update_source_window)
10791 (tui_source_window_base::do_erase_source_content): Update.
10792 (tui_source_window_base::show_source_line): Now a method.
10793 (tui_source_window_base::show_source_content)
10794 (tui_source_window_base::tui_source_window_base)
10795 (tui_source_window_base::rerender)
10796 (tui_source_window_base::refill)
10797 (tui_source_window_base::do_scroll_horizontal)
10798 (tui_source_window_base::set_is_exec_point_at)
10799 (tui_source_window_base::update_breakpoint_info)
10800 (tui_source_window_base::update_exec_info): Update.
10801 * tui/tui-source.c (tui_source_window::set_contents)
10802 (tui_source_window::showing_source_p)
10803 (tui_source_window::do_scroll_vertical)
10804 (tui_source_window::location_matches_p)
10805 (tui_source_window::line_is_displayed): Update.
10806 (tui_source_window::display_start_addr): New method.
10807 * tui/tui-disasm.c (tui_disasm_window::set_contents)
10808 (tui_disasm_window::do_scroll_vertical)
10809 (tui_disasm_window::location_matches_p): Update.
10810 (tui_disasm_window::display_start_addr): New method.
10811
10812 2020-02-22 Tom Tromey <tom@tromey.com>
10813
10814 * NEWS: Add entry for gdb.register_window_type.
10815 * tui/tui-layout.h (window_factory): New typedef.
10816 (tui_register_window): Declare.
10817 * tui/tui-layout.c (saved_tui_windows): New global.
10818 (tui_apply_current_layout): Use it.
10819 (tui_register_window): New function.
10820 * python/python.c (do_start_initialization): Call
10821 gdbpy_initialize_tui.
10822 (python_GdbMethods): Add "register_window_type" function.
10823 * python/python-internal.h (gdbpy_register_tui_window)
10824 (gdbpy_initialize_tui): Declare.
10825 * python/py-tui.c: New file.
10826 * Makefile.in (SUBDIR_PYTHON_SRCS): Add py-tui.c.
10827
10828 2020-02-22 Tom Tromey <tom@tromey.com>
10829
10830 * tui/tui-io.c (do_tui_putc): Don't omit annotations.
10831
10832 2020-02-22 Tom Tromey <tom@tromey.com>
10833
10834 * tui/tui-win.c (tui_set_win_focus_to): Move to tui-data.c.
10835 * tui/tui-data.h (tui_set_win_with_focus): Don't declare.
10836 * tui/tui-data.c (tui_set_win_with_focus): Remove.
10837 (tui_set_win_focus_to): Move from tui-win.c.
10838
10839 2020-02-22 Tom Tromey <tom@tromey.com>
10840
10841 * tui/tui-layout.c (make_standard_window, get_locator_window): New
10842 functions.
10843 (known_window_types): New global.
10844 (tui_get_window_by_name): Reimplement.
10845 (initialize_known_windows): New function.
10846 (validate_window_name): Rewrite.
10847 (_initialize_tui_layout): Call initialize_known_windows.
10848
10849 2020-02-22 Tom Tromey <tom@tromey.com>
10850
10851 * tui/tui.h (enum tui_win_type) <LOCATOR_WIN, DATA_ITEM_WIN>:
10852 Remove constants.
10853 * tui/tui-winsource.h (struct tui_source_window_base)
10854 <tui_source_window_base>: Remove parameter.
10855 * tui/tui-winsource.c
10856 (tui_source_window_base::tui_source_window_base): Remove
10857 parameter.
10858 (tui_source_window_base::refill): Update.
10859 * tui/tui-stack.h (struct tui_locator_window)
10860 <tui_locator_window>: Update.
10861 * tui/tui-source.h (struct tui_source_window) <tui_source_window>:
10862 Default the constructor.
10863 * tui/tui-regs.h (struct tui_data_item_window)
10864 <tui_data_item_window>: Default the constructor.
10865 (struct tui_data_window) <tui_data_window>: Likewise.
10866 * tui/tui-disasm.h (struct tui_disasm_window) <tui_disasm_window>:
10867 Default the constructor.
10868 * tui/tui-data.h (struct tui_gen_win_info) <tui_gen_win_info>:
10869 Default the constructor.
10870 <type>: Remove.
10871 (struct tui_win_info) <tui_win_info>: Default the constructor.
10872 * tui/tui-data.c (tui_win_info::tui_win_info): Remove.
10873 * tui/tui-command.h (struct tui_cmd_window) <tui_cmd_window>:
10874 Default the constructor.
10875
10876 2020-02-22 Tom Tromey <tom@tromey.com>
10877
10878 * tui/tui-wingeneral.h (tui_make_all_invisible): Don't declare.
10879 * tui/tui-wingeneral.c (tui_make_all_invisible): Remove.
10880 * tui/tui-win.c (tui_resize_all): Don't call
10881 tui_delete_invisible_windows.
10882 * tui/tui-layout.c (tui_apply_current_layout): Delete windows when
10883 done.
10884 (tui_set_layout): Update.
10885 (tui_add_win_to_layout): Don't call tui_delete_invisible_windows.
10886 * tui/tui-data.h (tui_delete_invisible_windows): Don't declare.
10887 * tui/tui-data.c (tui_delete_invisible_windows): Remove.
10888
10889 2020-02-22 Tom Tromey <tom@tromey.com>
10890
10891 * tui/tui-win.c (tui_partial_win_by_name): Handle ambiguity
10892 correctly.
10893
10894 2020-02-22 Tom Tromey <tom@tromey.com>
10895
10896 * tui/tui-data.c (tui_next_win, tui_prev_win): Reimplement.
10897
10898 2020-02-22 Tom Tromey <tom@tromey.com>
10899
10900 * tui/tui-winsource.h (struct tui_source_window_iterator)
10901 <inner_iterator>: New etytypedef.
10902 <tui_source_window_iterator>: Take "end" parameter.
10903 <tui_source_window_iterator>: Take iterator.
10904 <operator*, advance>: Update.
10905 <m_iter>: Change type.
10906 <m_end>: New field.
10907 (struct tui_source_windows) <begin, end>: Update.
10908 * tui/tui-layout.c (tui_windows): New global.
10909 (tui_apply_current_layout): Clear tui_windows.
10910 (tui_layout_window::apply): Update tui_windows.
10911 * tui/tui-data.h (tui_windows): Declare.
10912 (all_tui_windows): Now inline function.
10913 (class tui_window_iterator, struct all_tui_windows): Remove.
10914
10915 2020-02-22 Tom Tromey <tom@tromey.com>
10916
10917 PR tui/17850:
10918 * tui/tui-win.c (tui_gen_win_info::max_width): New method.
10919 * tui/tui-layout.h (class tui_layout_base) <get_sizes>: Add
10920 "height" argument.
10921 (class tui_layout_window) <get_sizes>: Likewise.
10922 (class tui_layout_split) <tui_layout_split>: Add "vertical"
10923 argument.
10924 <get_sizes>: Add "height" argument.
10925 <m_vertical>: New field.
10926 * tui/tui-layout.c (tui_layout_split::clone): Update.
10927 (tui_layout_split::get_sizes): Add "height" argument.
10928 (tui_layout_split::adjust_size, tui_layout_split::apply): Update.
10929 (tui_new_layout_command): Parse "-horizontal".
10930 (_initialize_tui_layout): Update help string.
10931 (tui_layout_split::specification): Add "-horizontal" when needed.
10932 * tui/tui-layout.c (tui_layout_window::get_sizes): Add "height"
10933 argument.
10934 * tui/tui-data.h (struct tui_gen_win_info) <max_width, min_width>:
10935 New methods.
10936
10937 2020-02-22 Tom Tromey <tom@tromey.com>
10938
10939 * tui/tui-layout.h (enum tui_adjust_result): New.
10940 (class tui_layout_base) <adjust_size>: Return tui_adjust_result.
10941 (class tui_layout_window) <adjust_size>: Return
10942 tui_adjust_result. Rewrite.
10943 (class tui_layout_split) <adjust_size>: Return tui_adjust_result.
10944 * tui/tui-layout.c (tui_layout_split::adjust_size): Update.
10945
10946 2020-02-22 Tom Tromey <tom@tromey.com>
10947
10948 * tui/tui-layout.h (class tui_layout_split) <add_split>: Change
10949 parameter and return types.
10950 (class tui_layout_base) <specification>: Add "depth".
10951 (class tui_layout_window) <specification>: Add "depth".
10952 (class tui_layout_split) <specification>: Add "depth".
10953 * tui/tui-layout.c (tui_layout_split::add_split): Change parameter
10954 and return types.
10955 (tui_new_layout_command): Parse sub-layouts.
10956 (_initialize_tui_layout): Update help string.
10957 (tui_layout_window::specification): Add "depth".
10958 (add_layout_command): Update.
10959
10960 2020-02-22 Tom Tromey <tom@tromey.com>
10961
10962 * NEWS: Add "tui new-layout" item.
10963 * tui/tui-layout.c (add_layout_command): Return cmd_list_element.
10964 Add new-layout command to help text.
10965 (validate_window_name): New function.
10966 (tui_new_layout_command): New function.
10967 (_initialize_tui_layout): Register "new-layout".
10968 (tui_layout_window::specification): New method.
10969 (tui_layout_window::specification): New method.
10970 * tui/tui-layout.h (class tui_layout_base) <specification>: New
10971 method.
10972 (class tui_layout_window) <specification>: New method.
10973 (class tui_layout_split) <specification>: New method.
10974
10975 2020-02-22 Tom Tromey <tom@tromey.com>
10976
10977 * tui/tui.c (tui_enable): Call tui_set_initial_layout.
10978 * tui/tui-win.c (window_name_completer): Update comment.
10979 * tui/tui-layout.h (class tui_layout_base) <replace_window>:
10980 Declare method.
10981 (class tui_layout_window) <replace_window>: Likewise.
10982 (class tui_layout_split) <replace_window>: Likewise.
10983 (tui_set_layout): Don't declare.
10984 (tui_set_initial_layout): Declare function.
10985 * tui/tui-layout.c (layouts, applied_skeleton, src_regs_layout)
10986 (asm_regs_layout): New globals.
10987 (tui_current_layout, show_layout): Remove.
10988 (tui_set_layout, tui_add_win_to_layout): Rewrite.
10989 (find_layout, tui_apply_layout): New function.
10990 (layout_completer): Remove.
10991 (tui_next_layout): Reimplement.
10992 (tui_next_layout_command): New function.
10993 (tui_set_initial_layout, tui_prev_layout_command): New functions.
10994 (tui_regs_layout): Reimplement.
10995 (tui_regs_layout_command): New function.
10996 (extract_display_start_addr): Rewrite.
10997 (next_layout, prev_layout): Remove.
10998 (tui_layout_window::replace_window): New method.
10999 (tui_layout_split::replace_window): New method.
11000 (destroy_layout): New function.
11001 (layout_list): New global.
11002 (add_layout_command): New function.
11003 (initialize_layouts): Update.
11004 (tui_layout_command): New function.
11005 (_initialize_tui_layout): Install "layout" commands.
11006 * tui/tui-data.h (enum tui_layout_type): Remove.
11007 (tui_current_layout): Don't declare.
11008
11009 2020-02-22 Tom Tromey <tom@tromey.com>
11010
11011 * tui/tui-regs.c (tui_reg_layout): Remove.
11012 (tui_reg_command): Use tui_regs_layout.
11013 * tui/tui-layout.h (tui_reg_command): Declare.
11014 * tui/tui-layout.c (tui_reg_command): New function.
11015
11016 2020-02-22 Tom Tromey <tom@tromey.com>
11017
11018 * tui/tui.c (tui_rl_delete_other_windows): Call
11019 tui_remove_some_windows.
11020 * tui/tui-layout.h (class tui_layout_base) <remove_windows>:
11021 Declare method.
11022 (class tui_layout_window) <remove_windows>: New method.
11023 (class tui_layout_split) <remove_windows>: Declare.
11024 (tui_remove_some_windows): Declare.
11025 * tui/tui-layout.c (tui_remove_some_windows): New function.
11026 (tui_layout_split::remove_windows): New method.
11027
11028 2020-02-22 Tom Tromey <tom@tromey.com>
11029
11030 * tui/tui.c (tui_rl_change_windows): Call tui_next_layout.
11031 * tui/tui-layout.h (tui_next_layout): Declare.
11032 * tui/tui-layout.c (tui_next_layout): New function.
11033
11034 2020-02-22 Tom Tromey <tom@tromey.com>
11035
11036 * tui/tui-regs.c (tui_data_window::display_registers_from): Use
11037 correct coordinates.
11038
11039 2020-02-22 Tom Tromey <tom@tromey.com>
11040
11041 * tui/tui-layout.h (tui_add_win_to_layout): Add comment.
11042 * tui/tui-layout.c (tui_add_win_to_layout): Add assert. Remove
11043 DATA_WIN case.
11044
11045 2020-02-22 Tom Tromey <tom@tromey.com>
11046
11047 * tui/tui-disasm.c (tui_get_low_disassembly_address): Use
11048 TUI_DISASM_WIN, not tui_win_list.
11049
11050 2020-02-22 Tom Tromey <tom@tromey.com>
11051
11052 * valprint.c (generic_val_print_enum_1)
11053 (val_print_type_code_flags): Style member names.
11054 * rust-lang.c (val_print_struct, rust_print_enum)
11055 (rust_print_struct_def, rust_internal_print_type): Style member
11056 names.
11057 * p-valprint.c (pascal_object_print_value_fields): Style member
11058 names. Only call fprintf_symbol_filtered for static members.
11059 * m2-typeprint.c (m2_record_fields, m2_enum): Style member names.
11060 * f-valprint.c (f_val_print): Style member names.
11061 * f-typeprint.c (f_type_print_base): Style member names.
11062 * cp-valprint.c (cp_print_value_fields): Style member names. Only
11063 call fprintf_symbol_filtered for static members.
11064 (cp_print_class_member): Style member names.
11065 * c-typeprint.c (c_print_type_1, c_type_print_base_1): Style
11066 member names.
11067 * ada-valprint.c (ada_print_scalar): Style enum names.
11068 (ada_val_print_enum): Likewise.
11069 * ada-typeprint.c (print_enum_type): Style enum names.
11070
11071 2020-02-21 Tom Tromey <tom@tromey.com>
11072
11073 * psympriv.h (struct partial_symtab): Update comment.
11074
11075 2020-02-21 Tom Tromey <tromey@adacore.com>
11076
11077 * mips-tdep.h (mips_pc_is_mips16, mips_pc_is_micromips): Parameter
11078 type is CORE_ADDR.
11079
11080 2020-02-21 Tom de Vries <tdevries@suse.de>
11081
11082 PR gdb/25534
11083 * psymtab.c (partial_symtab::read_dependencies): Don't read dependency
11084 if dependencies[i]->user != NULL.
11085
11086 2020-02-21 Ali Tamur <tamur@google.com>
11087
11088 * dwarf2/read.c (dwarf2_name): Add null check.
11089
11090 2020-02-20 Tom Tromey <tom@tromey.com>
11091
11092 * dwarf2/read.c (dwarf2_find_containing_comp_unit): Use ">", not
11093 ">=", in binary search.
11094 (dwarf2_find_containing_comp_unit): New overload.
11095 (run_test): New self-test.
11096 (_initialize_dwarf2_read): Register new test.
11097
11098 2020-02-20 Nelson Chu <nelson.chu@sifive.com>
11099
11100 * riscv-tdep.c: Updated since the DECLARE_CSR is changed.
11101 * riscv-tdep.h: Likewise.
11102 * features/riscv/rebuild-csr-xml.sh: Generate the 64bit-csr.xml without
11103 rv32-only CSR.
11104 * features/riscv/64bit-csr.xml: Regenerated.
11105
11106 2020-02-20 Sergio Durigan Junior <sergiodj@redhat.com>
11107 Tom Tromey <tom@tromey.com>
11108
11109 * utils.c (fputs_maybe_filtered): Call 'stream->puts' instead
11110 of 'fputc_unfiltered'.
11111 (putchar_unfiltered): Call 'fputc_unfiltered'.
11112 (fputc_unfiltered): Call 'fputs_unfiltered'.
11113
11114 2020-02-20 Andrew Burgess <andrew.burgess@embecosm.com>
11115
11116 * config.in: Regenerate.
11117 * configure: Regenerate.
11118 * configure.ac: Add --with-python-libdir option.
11119 * main.c: Use WITH_PYTHON_LIBDIR.
11120
11121 2020-02-19 Tom Tromey <tom@tromey.com>
11122
11123 * symtab.c (general_symbol_info::compute_and_set_names): Use
11124 obstack_strndup. Simplify call to symbol_set_demangled_name.
11125
11126 2020-02-19 Simon Marchi <simon.marchi@efficios.com>
11127
11128 * dwarf2/read.c (allocate_signatured_type_table,
11129 allocate_dwo_unit_table, allocate_type_unit_groups_table,
11130 allocate_dwo_file_hash_table, allocate_dwp_loaded_cutus_table):
11131 Remove objfile parameter, update all callers.
11132
11133 2020-02-19 Doug Evans <dje@google.com>
11134
11135 PR rust/25535
11136 * rust-lang.c (rust_print_enum): Apply embedded_offset to
11137 rust_enum_variant calculation.
11138
11139 2020-02-19 Tom Tromey <tromey@adacore.com>
11140
11141 * mips-tdep.h (mips_pc_is_mips): Parameter type is CORE_ADDR.
11142
11143 2020-02-19 Tom Tromey <tromey@adacore.com>
11144
11145 * ada-lang.c (cache_symbol): Use obstack_strdup.
11146
11147 2020-02-19 Andrew Burgess <andrew.burgess@embecosm.com>
11148
11149 * configure: Regenerate.
11150
11151 2020-02-19 Tom Tromey <tromey@adacore.com>
11152
11153 * python/python.c (do_start_initialization): Use XNEWVEC. Remove
11154 NULL check.
11155
11156 2020-02-19 Maciej W. Rozycki <macro@wdc.com>
11157
11158 * NEWS: Mention RISC-V GNU/Linux GDBserver support.
11159
11160 2020-02-19 Andrew Burgess <andrew.burgess@embecosm.com>
11161
11162 * arch/riscv.c (struct riscv_gdbarch_features_hasher): Only define
11163 if GDBSERVER is not defined.
11164 (riscv_tdesc_cache): Likewise, also store const target_desc.
11165 (STATIC_IN_GDB): Define.
11166 (riscv_create_target_description): Update declaration with
11167 STATIC_IN_GDB.
11168 (riscv_lookup_target_description): New function, only define if
11169 GDBSERVER is not defined.
11170 * arch/riscv.h (riscv_create_target_description): Declare only
11171 when GDBSERVER is defined.
11172 (riscv_lookup_target_description): New declaration when GDBSERVER
11173 is not defined.
11174 * nat/riscv-linux-tdesc.c (riscv_linux_read_description): Rename to...
11175 (riscv_linux_read_features): ...this, and return
11176 riscv_gdbarch_features instead of target_desc.
11177 * nat/riscv-linux-tdesc.h: Include 'arch/riscv.h'.
11178 (riscv_linux_read_description): Rename to...
11179 (riscv_linux_read_features): ...this.
11180 * riscv-linux-nat.c (riscv_linux_nat_target::read_description):
11181 Update to use riscv_gdbarch_features and
11182 riscv_lookup_target_description.
11183 * riscv-tdep.c (riscv_find_default_target_description): Use
11184 riscv_lookup_target_description instead of
11185 riscv_create_target_description.
11186
11187 2020-02-18 Simon Marchi <simon.marchi@efficios.com>
11188
11189 * valprint.c (generic_val_print_enum_1): When printing a flag
11190 enum with value 0 and there is no enumerator with value 0, print
11191 just "0" instead of "(unknown: 0x0)".
11192
11193 2020-02-18 Simon Marchi <simon.marchi@efficios.com>
11194
11195 * valprint.c (generic_val_print_enum_1): Print unknown part of
11196 flag enum in hex.
11197
11198 2020-02-18 Simon Marchi <simon.marchi@efficios.com>
11199
11200 * dwarf2/read.c (update_enumeration_type_from_children): Allow
11201 flag enums to contain duplicate enumerators.
11202 * valprint.c (generic_val_print_enum_1): Update comment.
11203
11204 2020-02-18 Simon Marchi <simon.marchi@efficios.com>
11205
11206 * dwarf2/read.c: Include "count-one-bits.h".
11207 (update_enumeration_type_from_children): If an enumerator has
11208 multiple bits set, don't treat the enumeration as a "flag enum".
11209 * valprint.c (generic_val_print_enum_1): Assert that enumerators
11210 of flag enums have 0 or 1 bit set.
11211
11212 2020-02-18 Bernd Edlinger <bernd.edlinger@hotmail.de>
11213
11214 * aarch64-tdep.c (aarch64_displaced_step_copy_insn): Use an explicit
11215 conversion.
11216 * amd64-tdep.c (amd64_displaced_step_copy_insn): Likewise.
11217 * arm-linux-tdep.c (arm_linux_displaced_step_copy_insn): Likewise.
11218 * i386-tdep.c (i386_displaced_step_copy_insn): Likewise.
11219 * rs6000-tdep.c (ppc_displaced_step_copy_insn): Likewise.
11220 * s390-tdep.c (s390_displaced_step_copy_insn): Likewise.
11221
11222 2020-02-18 Simon Marchi <simon.marchi@efficios.com>
11223
11224 * MAINTAINERS: Change palmer@sifive.com to palmer@dabbelt.com.
11225
11226 2020-02-14 Simon Marchi <simon.marchi@efficios.com>
11227
11228 * aarch64-tdep.c (aarch64_displaced_step_copy_insn): Use
11229 displaced_step_closure_up.
11230 * aarch64-tdep.h (aarch64_displaced_step_copy_insn): Likewise.
11231 (struct displaced_step_closure_up):
11232 * amd64-tdep.c (amd64_displaced_step_copy_insn): Likewise.
11233 * amd64-tdep.h (amd64_displaced_step_copy_insn): Likewise.
11234 * arm-linux-tdep.c (arm_linux_displaced_step_copy_insn):
11235 Likewise.
11236 * gdbarch.sh (displaced_step_copy_insn): Likewise.
11237 * gdbarch.c, gdbarch.h: Re-generate.
11238 * i386-linux-tdep.c (i386_linux_displaced_step_copy_insn): Use
11239 displaced_step_closure_up.
11240 * i386-tdep.c (i386_displaced_step_copy_insn): Likewise.
11241 * i386-tdep.h (i386_displaced_step_copy_insn): Likewise.
11242 * infrun.h (displaced_step_closure_up): New type alias.
11243 (struct displaced_step_inferior_state) <step_closure>: Change
11244 type to displaced_step_closure_up.
11245 * rs6000-tdep.c (ppc_displaced_step_copy_insn): Use
11246 displaced_step_closure_up.
11247 * s390-tdep.c (s390_displaced_step_copy_insn): Likewise.
11248
11249 2020-02-14 Tom Tromey <tom@tromey.com>
11250
11251 * minidebug.c (gnu_debug_key): New global.
11252 (find_separate_debug_file_in_section): Use it.
11253
11254 2020-02-14 Simon Marchi <simon.marchi@efficios.com>
11255
11256 * gdbarch.sh (displaced_step_copy_insn): Change return type to an
11257 std::unique_ptr.
11258 * gdbarch.c: Re-generate.
11259 * gdbarch.h: Re-generate.
11260 * infrun.c (displaced_step_prepare_throw): Adjust to std::unique_ptr
11261 change.
11262 * aarch64-tdep.c (aarch64_displaced_step_copy_insn): Change return
11263 type to std::unique_ptr.
11264 * aarch64-tdep.h (aarch64_displaced_step_copy_insn): Likewise.
11265 * amd64-tdep.c (amd64_displaced_step_copy_insn): Likewise.
11266 * amd64-tdep.h (amd64_displaced_step_copy_insn): Likewise.
11267 * arm-linux-tdep.c (arm_linux_displaced_step_copy_insn): Likewise.
11268 * i386-linux-tdep.c (i386_linux_displaced_step_copy_insn): Likewise.
11269 * i386-tdep.c (i386_displaced_step_copy_insn): Likewise.
11270 * i386-tdep.h (i386_displaced_step_copy_insn): Likewise.
11271 * rs6000-tdep.c (ppc_displaced_step_copy_insn): Likewise.
11272 * s390-tdep.c (s390_displaced_step_copy_insn): Likewise.
11273
11274 2020-02-14 Simon Marchi <simon.marchi@efficios.com>
11275
11276 * infrun.c (get_displaced_step_closure_by_addr): Adjust to
11277 std::unique_ptr.
11278 (displaced_step_clear): Rename to...
11279 (displaced_step_reset): ... this. Just call displaced->reset ().
11280 (displaced_step_clear_cleanup): Rename to...
11281 (displaced_step_reset_cleanup): ... this.
11282 (displaced_step_prepare_throw): Adjust to std::unique_ptr.
11283 (displaced_step_fixup): Likewise.
11284 (resume_1): Likewise.
11285 (handle_inferior_event): Restore child's memory before calling
11286 displaced_step_fixup on the parent.
11287 * infrun.h (displaced_step_inferior_state) <reset>: Adjust
11288 to std::unique_ptr.
11289 <step_closure>: Change type to std::unique_ptr.
11290
11291 2020-02-14 Simon Marchi <simon.marchi@efficios.com>
11292
11293 * arm-tdep.c: Include count-one-bits.h.
11294 (cleanup_block_store_pc): Use count_one_bits.
11295 (cleanup_block_load_pc): Use count_one_bits.
11296 (arm_copy_block_xfer): Use count_one_bits.
11297 (thumb2_copy_block_xfer): Use count_one_bits.
11298 (thumb_copy_pop_pc_16bit): Use count_one_bits.
11299 * arch/arm-get-next-pcs.c: Include count-one-bits.h.
11300 (thumb_get_next_pcs_raw): Use count_one_bits.
11301 (arm_get_next_pcs_raw): Use count_one_bits_l.
11302 * arch/arm.c (bitcount): Remove.
11303 * arch/arm.h (bitcount): Remove.
11304
11305 2020-02-14 Tom Tromey <tromey@adacore.com>
11306
11307 * dwarf2/frame-tailcall.c (dwarf2_tailcall_sniffer_first):
11308 Update.
11309 * dwarf2/loc.h (call_site_find_chain): Return unique_xmalloc_ptr.
11310 * dwarf2/loc.c (call_site_find_chain_1): Return
11311 unique_xmalloc_ptr.
11312 (call_site_find_chain): Likewise.
11313
11314 2020-02-14 Richard Biener <rguenther@suse.de>
11315
11316 * dwarf2/read.c (lnp_state_machine::handle_special_opcode): Apply CSE
11317 on expression with division operators.
11318
11319 2020-02-13 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
11320
11321 * MAINTAINERS (Write After Approval): Adding myself.
11322
11323 2020-02-12 Tom Tromey <tom@tromey.com>
11324
11325 * event-loop.c (event_data, gdb_event, event_handler_func):
11326 Remove.
11327
11328 2020-02-12 Tom Tromey <tom@tromey.com>
11329
11330 * dwarf2/frame.c (dwarf2_frame_bfd_data): New global.
11331 (dwarf2_frame_objfile_data): Add comment.
11332 (find_comp_unit, set_comp_unit): New functions.
11333 (dwarf2_frame_find_fde): Use find_comp_unit.
11334 (dwarf2_build_frame_info): Use set_comp_unit.
11335
11336 2020-02-12 Tom Tromey <tom@tromey.com>
11337
11338 * dwarf2/frame.c (struct comp_unit) <objfile>: Remove.
11339 (comp_unit): Don't initialize objfile.
11340 (execute_cfa_program): Add text_offset parameter.
11341 (execute_cfa_program_test, dwarf2_fetch_cfa_info)
11342 (dwarf2_frame_cache): Update.
11343 (dwarf2_build_frame_info): Don't set "objfile" member.
11344
11345 2020-02-12 Tom Tromey <tom@tromey.com>
11346
11347 * dwarf2/frame.c (decode_frame_entry_1): Add gdbarch parameter.
11348 (decode_frame_entry): Likewise.
11349 (dwarf2_build_frame_info): Update.
11350
11351 2020-02-12 Tom Tromey <tom@tromey.com>
11352
11353 * dwarf2/frame.c (struct comp_unit) <obstack>: New member.
11354 (decode_frame_entry_1): Use the comp_unit obstack.
11355
11356 2020-02-12 Tom Tromey <tom@tromey.com>
11357
11358 * dwarf2/frame.c (struct comp_unit): Add initializers and
11359 constructor.
11360 (dwarf2_frame_objfile_data): Store a comp_unit.
11361 (dwarf2_frame_find_fde): Update.
11362 (dwarf2_build_frame_info): Use "new".
11363
11364 2020-02-12 Tom Tromey <tom@tromey.com>
11365
11366 * dwarf2/frame.c (struct dwarf2_fde_table): Remove.
11367 (dwarf2_fde_table): Typedef for std::vector.
11368 (dwarf2_frame_objfile_data): Remove the deleter. Now static.
11369 (dwarf2_frame_find_fde, add_fde, decode_frame_entry_1)
11370 (decode_frame_entry): Update.
11371 (dwarf2_build_frame_info): Use "new".
11372
11373 2020-02-12 Christian Biesinger <cbiesinger@google.com>
11374
11375 * arm-tdep.c (arm_gdbarch_init): Update.
11376 * arm-tdep.h (struct gdbarch_tdep) <have_fpa_registers,
11377 have_wmmx_registers, have_vfp_pseudos, have_neon_pseudos,
11378 have_neon, is_m>: Change to bool.
11379
11380 2020-02-12 Christian Biesinger <cbiesinger@google.com>
11381
11382 * arm-tdep.c (arm_dump_tdep): Print more fields of tdep.
11383
11384 2020-02-12 Tom Tromey <tom@tromey.com>
11385
11386 * dwarf2/loc.c (struct dwarf_expr_baton): Remove.
11387
11388 2020-02-12 Hannes Domani <ssbssa@yahoo.de>
11389
11390 * windows-tdep.c (struct windows_gdbarch_data): Add tib_ptr_type.
11391 (windows_get_tlb_type): Use windows_gdbarch_data->tib_ptr_type.
11392
11393 2020-02-11 Tom Tromey <tom@tromey.com>
11394
11395 * psymtab.h: Update comment.
11396
11397 2020-02-11 Tom Tromey <tom@tromey.com>
11398
11399 * gdb_obstack.h (struct auto_obstack): Use
11400 DISABLE_COPY_AND_ASSIGN.
11401
11402 2020-02-11 Tom Tromey <tom@tromey.com>
11403
11404 * dwarf2/frame.h (struct objfile): Don't forward declare.
11405
11406 2020-02-11 Christian Biesinger <cbiesinger@google.com>
11407
11408 * cris-tdep.c (cris_supply_gregset): Change signature to match
11409 what struct regset expects.
11410 (cris_regset): New struct.
11411 (fetch_core_registers): Remove.
11412 (cris_iterate_over_regset_sections): New function.
11413 (_initialize_cris_tdep): Don't call deprecated_add_core_fns.
11414 (cris_gdbarch_init): Call set_gdbarch_iterate_over_regset_sections.
11415
11416 2020-02-11 Christian Biesinger <cbiesinger@google.com>
11417
11418 * arch/arm.h (enum gdb_regnum): Add comment for the FP0..7
11419 registers.
11420
11421 2020-02-11 Christian Biesinger <cbiesinger@google.com>
11422
11423 * arm-tdep.c (arm_dump_tdep): Add \n in fprintf.
11424
11425 2020-02-11 Simon Marchi <simon.marchi@efficios.com>
11426
11427 * configure: Re-generate.
11428
11429 2020-02-11 Simon Marchi <simon.marchi@efficios.com>
11430
11431 * configure: Re-generate.
11432
11433 2020-02-11 Simon Marchi <simon.marchi@efficios.com>
11434
11435 * acinclude: Update warning.m4 path.
11436 * warning.m4: Move to gdbsupport.
11437
11438 2020-02-11 Tom Tromey <tromey@adacore.com>
11439
11440 * remote.c (remote_console_output): Update.
11441 * printcmd.c (printf_command): Update.
11442 * event-loop.c (gdb_wait_for_event): Update.
11443 * linux-nat.c (sigchld_handler): Update.
11444 * remote-sim.c (gdb_os_write_stdout): Update.
11445 (gdb_os_flush_stdout): Update.
11446 (gdb_os_flush_stderr): Update.
11447 (gdb_os_write_stderr): Update.
11448 * exceptions.c (print_exception): Update.
11449 * remote-fileio.c (remote_fileio_func_read): Update.
11450 (remote_fileio_func_write): Update.
11451 * tui/tui.c (tui_enable): Update.
11452 * tui/tui-interp.c (tui_interp::init): Update.
11453 * utils.c (init_page_info): Update.
11454 (putchar_unfiltered, fputc_unfiltered): Update.
11455 (gdb_flush): Update.
11456 (emit_style_escape): Update.
11457 (flush_wrap_buffer, fputs_maybe_filtered): Update.
11458 * ui-file.c (ui_file_isatty, ui_file_read, ui_file_write)
11459 (ui_file_write_async_safe, ui_file_flush, ui_file_puts): Remove.
11460 (stderr_file::write): Update.
11461 (stderr_file::puts): Update.
11462 * ui-file.h (ui_file_isatty, ui_file_write)
11463 (ui_file_write_async_safe, ui_file_read, ui_file_flush)
11464 (ui_file_puts): Don't declare.
11465
11466 2020-02-10 Tom de Vries <tdevries@suse.de>
11467
11468 * dwarf2/read.c (process_psymtab_comp_unit_reader): Cast concat NULL
11469 sentinel to char *.
11470
11471 2020-02-09 Tom de Vries <tdevries@suse.de>
11472
11473 * dwarf2read.c (process_psymtab_comp_unit_reader): Append CU offset to
11474 filename if it matches "<artificial>".
11475
11476 2020-02-09 Hannes Domani <ssbssa@yahoo.de>
11477
11478 * windows-tdep.c (struct enum_value_name): New struct.
11479 (create_enum): New function.
11480 (windows_get_siginfo_type): Create and use enum types.
11481
11482 2020-02-09 Hannes Domani <ssbssa@yahoo.de>
11483
11484 * NEWS: Mention $_siginfo support for Windows.
11485 * windows-nat.c (handle_exception): Set siginfo_er.
11486 (windows_nat_target::mourn_inferior): Reset siginfo_er.
11487 (windows_xfer_siginfo): New function.
11488 (windows_nat_target::xfer_partial): Call windows_xfer_siginfo.
11489 * windows-tdep.c (struct windows_gdbarch_data): New struct.
11490 (init_windows_gdbarch_data): New function.
11491 (get_windows_gdbarch_data): New function.
11492 (windows_get_siginfo_type): New function.
11493 (windows_init_abi): Register windows_get_siginfo_type.
11494 (_initialize_windows_tdep): Register init_windows_gdbarch_data.
11495
11496 2020-02-08 Tom Tromey <tom@tromey.com>
11497
11498 * dwarf2/read.c (class cutu_reader) <cutu_reader,
11499 init_tu_and_read_dwo_dies>: Remove "keep" parameter.
11500 <keep>: Declare method.
11501 <m_keep>: Remove member.
11502 <~cutu_reader>: Remove.
11503 (cutu_reader::init_tu_and_read_dwo_dies): Update.
11504 (cutu_reader::cutu_reader): Update.
11505 (cutu_reader::keep): Rename from ~cutu_reader.
11506 (process_psymtab_comp_unit, build_type_psymtabs_1)
11507 (process_skeletonless_type_unit, load_partial_comp_unit)
11508 (load_full_comp_unit, dwarf2_read_addr_index)
11509 (read_signatured_type): Update.
11510
11511 2020-02-08 Tom Tromey <tom@tromey.com>
11512
11513 * dwarf2/read.c (process_psymtab_comp_unit_reader): Remove
11514 "want_partial_unit" parameter.
11515 (process_psymtab_comp_unit): Change want_partial_unit to bool.
11516 Inline check for DW_TAG_partial_unit.
11517 (dwarf2_build_psymtabs_hard, scan_partial_symbols): Update.
11518
11519 2020-02-08 Tom Tromey <tom@tromey.com>
11520
11521 * dwarf2/read.c (read_n_bytes, read_direct_string): Move to
11522 read.c.
11523 * dwarf2/leb.h (read_n_bytes, read_direct_string): Move from
11524 read.c.
11525
11526 2020-02-08 Tom Tromey <tom@tromey.com>
11527
11528 * dwarf2/read.c (read_address): Move to comp-unit.c.
11529 (dwarf2_rnglists_process, dwarf2_ranges_process)
11530 (read_attribute_value, dwarf_decode_lines_1)
11531 (var_decode_location, decode_locdesc): Update.
11532 * dwarf2/comp-unit.c (comp_unit_head::read_address): Move from
11533 read.c. Remove "cu" parameter.
11534 * dwarf2/comp-unit.h (struct comp_unit_head) <read_address>: New
11535 method.
11536
11537 2020-02-08 Tom Tromey <tom@tromey.com>
11538
11539 * dwarf2/read.c (read_attribute_value, read_indirect_string)
11540 (read_indirect_line_string): Update.
11541 * dwarf2/comp-unit.c (read_offset): Remove.
11542 (read_comp_unit_head): Update.
11543 * dwarf2/comp-unit.h (struct comp_unit_head) <read_offset>: New
11544 method.
11545 (read_offset): Don't declare.
11546
11547 2020-02-08 Tom Tromey <tom@tromey.com>
11548
11549 * Makefile.in (COMMON_SFILES): Add dwarf2/comp-unit.c.
11550 * dwarf2/read.c (struct comp_unit_head): Move to
11551 dwarf2/comp-unit.h.
11552 (enum class rcuh_kind): Move to comp-unit.h.
11553 (get_cu_length, offset_in_cu_p): Now methods on comp_unit_head.
11554 (read_comp_unit_head, error_check_comp_unit_head)
11555 (read_and_check_comp_unit_head): Move to comp-unit.c.
11556 (read_offset, dwarf_unit_type_name): Likewise.
11557 (create_debug_type_hash_table, read_cutu_die_from_dwo)
11558 (cutu_reader::cutu_reader, read_call_site_scope)
11559 (find_partial_die, follow_die_offset): Update.
11560 * dwarf2/comp-unit.h: New file, from dwarf2read.c.
11561
11562 2020-02-08 Tom Tromey <tom@tromey.com>
11563
11564 * dwarf2/read.c (read_offset_1): Move to leb.c.
11565 (read_abbrev_offset, read_offset, dwarf_decode_line_header)
11566 (dwarf_decode_macro_bytes): Update.
11567 * dwarf2/leb.c (read_offset): Rename; move from read.c.
11568 * dwarf2/leb.h (read_offset): Declare.
11569
11570 2020-02-08 Tom Tromey <tom@tromey.com>
11571
11572 * dwarf2/read.c (dwarf2_section_size): Remove.
11573 (error_check_comp_unit_head, dwarf2_symbol_mark_computed):
11574 Update.
11575 * dwarf2/section.h (struct dwarf2_section_info) <get_size>: New method.
11576
11577 2020-02-08 Tom Tromey <tom@tromey.com>
11578
11579 * dwarf2/read.c (read_initial_length): Move to leb.c.
11580 * dwarf2/leb.h (read_initial_length): Declare.
11581 * dwarf2/leb.c (read_initial_length): Move from read.c. Add
11582 handle_nonstd parameter.
11583 * dwarf2/frame.c (read_initial_length): Remove.
11584 (decode_frame_entry_1): Update.
11585
11586 2020-02-08 Tom Tromey <tom@tromey.com>
11587
11588 * dwarf2/loc.c (dwarf2_find_location_expression)
11589 (dwarf_evaluate_loc_desc::get_tls_address)
11590 (dwarf_evaluate_loc_desc::push_dwarf_reg_entry_value)
11591 (rw_pieced_value, dwarf2_evaluate_loc_desc_full)
11592 (dwarf2_locexpr_baton_eval, dwarf2_evaluate_property)
11593 (dwarf2_compile_property_to_c)
11594 (dwarf2_loc_desc_get_symbol_read_needs)
11595 (dwarf2_compile_expr_to_ax, locexpr_describe_location)
11596 (locexpr_tracepoint_var_ref, locexpr_generate_c_location)
11597 (loclist_describe_location, loclist_tracepoint_var_ref)
11598 (loclist_generate_c_location): Update.
11599 * compile/compile-loc2c.c (do_compile_dwarf_expr_to_c): Update.
11600 * dwarf2/loc.h (dwarf2_per_cu_objfile, dwarf2_per_cu_addr_size)
11601 (dwarf2_per_cu_ref_addr_size, dwarf2_per_cu_offset_size)
11602 (dwarf2_per_cu_text_offset, dwarf2_version): Don't declare.
11603 * dwarf2/read.c (dwarf2_per_cu_data::objfile)
11604 (dwarf2_per_cu_data::addr_size)
11605 (dwarf2_per_cu_data::ref_addr_size)
11606 (dwarf2_per_cu_data::text_offset)
11607 (dwarf2_per_cu_data::addr_type): Now methods.
11608 (per_cu_header_read_in): Make per_cu "const".
11609 (dwarf2_version): Remove.
11610 (dwarf2_per_cu_data::int_type): Now a method.
11611 (dwarf2_per_cu_data::_addr_sized_int_type): Likewise.
11612 (set_die_type, read_array_type, read_subrange_index_type)
11613 (read_tag_string_type, read_subrange_type): Update.
11614 * dwarf2/read.h (struct dwarf2_per_cu_data) <addr_size,
11615 offset_size, ref_addr_size, text_offset, addr_type, version,
11616 objfile, int_type, addr_sized_int_type>: Declare methods.
11617
11618 2020-02-08 Tom Tromey <tom@tromey.com>
11619
11620 * dwarf2/read.h (struct dwarf2_per_cu_data) <imported_symtabs>:
11621 Move earlier.
11622
11623 2020-02-08 Tom Tromey <tom@tromey.com>
11624
11625 * dwarf2/read.h (dwarf_line_debug): Declare.
11626 * Makefile.in (COMMON_SFILES): Add dwarf2/line-header.c.
11627 * dwarf2/read.c: Move line_header code to new files.
11628 (dwarf_line_debug): No longer static.
11629 * dwarf2/line-header.c: New file.
11630 * dwarf2/line-header.h: New file.
11631
11632 2020-02-08 Tom Tromey <tom@tromey.com>
11633
11634 * dwarf2/read.c (struct line_header) <file_full_name,
11635 file_file_name>: Return unique_xmalloc_ptr.
11636 (line_header::file_file_name): Update.
11637 (line_header::file_full_name): Update.
11638 (dw2_get_file_names_reader): Update.
11639 (macro_start_file): Update.
11640
11641 2020-02-08 Tom Tromey <tom@tromey.com>
11642
11643 * dwarf2/read.c (struct line_header) <file_full_name,
11644 file_file_name>: Declare methods.
11645 (dw2_get_file_names_reader): Update.
11646 (file_file_name): Now a method.
11647 (file_full_name): Likewise.
11648 (macro_start_file): Update.
11649
11650 2020-02-08 Tom Tromey <tom@tromey.com>
11651
11652 * dwarf2/read.c (dwarf_always_disassemble)
11653 (show_dwarf_always_disassemble): Move to loc.c.
11654 (_initialize_dwarf2_read): Move "always-disassemble" registration
11655 to loc.c.
11656 * dwarf2/read.h (dwarf_always_disassemble): Don't declare.
11657 * dwarf2/loc.c (dwarf_always_disassemble): Move from read.c. Now
11658 static.
11659 (show_dwarf_always_disassemble): Move from read.c.
11660 (_initialize_dwarf2loc): Move always-disassemble from read.c.
11661
11662 2020-02-08 Tom Tromey <tom@tromey.com>
11663
11664 * dwarf2/read.c (~dwarf2_per_objfile): Update.
11665 (create_quick_file_names_table): Return htab_up.
11666 (dw2_get_file_names_reader, dw2_forget_cached_source_info):
11667 Update.
11668 * dwarf2/read.h (struct dwarf2_per_objfile)
11669 <quick_file_names_table>: Now htab_up.
11670
11671 2020-02-08 Tom Tromey <tom@tromey.com>
11672
11673 * dwarf2/abbrev.c (abbrev_table::read): Simplify.
11674
11675 2020-02-08 Tom Tromey <tom@tromey.com>
11676
11677 * dwarf2/abbrev.c (abbrev_table): Move constructor from header.
11678 Rewrite.
11679 (abbrev_table::add_abbrev, abbrev_table::lookup_abbrev): Rewrite.
11680 * dwarf2/abbrev.h (struct abbrev_info) <next>: Remove.
11681 (abbrev_table::abbrev_table): No longer inline.
11682 (ABBREV_HASH_SIZE): Remove.
11683 (abbrev_table::m_abbrevs): Now an htab_up.
11684
11685 2020-02-08 Tom Tromey <tom@tromey.com>
11686
11687 * dwarf2/read.c (read_cutu_die_from_dwo): Update.
11688 (cutu_reader): Update.
11689 (build_type_psymtabs_1): Update.
11690 * dwarf2/abbrev.c (abbrev_table::read): Rename.
11691 (abbrev_table::alloc_abbrev): Update.
11692 * dwarf2/abbrev.h (abbrev_table_up): Move earlier.
11693 (abbrev_table::read): New static method, renamed from
11694 abbrev_table_read_table.
11695 (abbrev_table::alloc_abbrev)
11696 (abbrev_table::add_abbrev): Now private.
11697 (abbrev_table::abbrev_table): Now private.
11698 (abbrev_table::m_abbrev_obstack): Now private. Rename.
11699
11700 2020-02-08 Tom Tromey <tom@tromey.com>
11701
11702 * dwarf2/read.c (set_die_type, get_die_type_at_offset): Update.
11703 * dwarf2/read.h (struct dwarf2_per_objfile) <die_type_hash>: Now
11704 htab_up.
11705
11706 2020-02-08 Tom Tromey <tom@tromey.com>
11707
11708 * dwarf2/read.c (struct dwp_file) <loaded_cus, loaded_tus>: Now
11709 htab_up.
11710 (lookup_dwo_unit_in_dwp): Update.
11711 (allocate_dwp_loaded_cutus_table): Return htab_up. Don't allocate
11712 on obstack.
11713
11714 2020-02-08 Tom Tromey <tom@tromey.com>
11715
11716 * dwarf2/read.c (allocate_dwo_file_hash_table): Don't allocate on
11717 obstack.
11718
11719 2020-02-08 Tom Tromey <tom@tromey.com>
11720
11721 * dwarf2/read.c (~dwarf2_per_objfile): Don't delete
11722 line_header_hash.
11723 (handle_DW_AT_stmt_list): Update. Don't allocate on obstack.
11724 * dwarf2/read.h (struct dwarf2_per_objfile) <line_header_hash>:
11725 Change type to htab_up.
11726
11727 2020-02-08 Tom Tromey <tom@tromey.com>
11728
11729 * dwarf2/read.c (allocate_type_unit_groups_table): Return
11730 htab_up. Don't allocate on obstack.
11731 (get_type_unit_group, dwarf2_build_psymtabs_hard): Update.
11732 * dwarf2/read.h (struct dwarf2_per_objfile) <type_unit_groups>:
11733 Change type to htab_up.
11734
11735 2020-02-08 Tom Tromey <tom@tromey.com>
11736
11737 * dwarf2/read.h (struct dwarf2_per_objfile) <signatured_types>:
11738 Change type to htab_up.
11739 * dwarf2/read.c (create_signatured_type_table_from_index)
11740 (create_signatured_type_table_from_debug_names)
11741 (create_all_type_units, add_type_unit)
11742 (lookup_dwo_signatured_type, lookup_signatured_type)
11743 (process_skeletonless_type_unit): Update.
11744 (create_debug_type_hash_table, create_debug_types_hash_table):
11745 Change type of types_htab.
11746 (allocate_signatured_type_table, allocate_dwo_unit_table): Return
11747 htab_up. Don't allocate on obstack.
11748 (create_cus_hash_table): Change type of cus_htab parameter.
11749 (struct dwo_file) <cus, tus>: Now htab_up.
11750 (lookup_dwo_signatured_type, lookup_dwo_cutu)
11751 (process_dwo_file_for_skeletonless_type_units, lookup_dwo_cutu)
11752 (queue_and_load_all_dwo_tus): Update.
11753 * dwarf2/index-write.c (write_gdbindex): Update.
11754 (write_debug_names): Update.
11755
11756 2020-02-08 Tom Tromey <tom@tromey.com>
11757
11758 * dwarf2/read.h (struct dwarf2_queue_item): Move from
11759 dwarf2/read.c. Remove "next" member. Add constructor ntad
11760 destructor.
11761 (struct dwarf2_per_objfile) <queue>: New member.
11762 * dwarf2/read.c (struct dwarf2_queue_item): Move to
11763 dwarf2/read.h.
11764 (dwarf2_queue, dwarf2_queue_tail): Remove.
11765 (class dwarf2_queue_guard): Add parameter to constructor. Use
11766 DISABLE_COPY_AND_ASSIGN.
11767 <m_per_objfile>: New member.
11768 <~dwarf2_queue_guard>: Rewrite.
11769 (dw2_do_instantiate_symtab, queue_comp_unit, process_queue):
11770 Update.
11771 (~dwarf2_queue_item): New.
11772
11773 2020-02-08 Tom Tromey <tom@tromey.com>
11774
11775 * dwarf2/read.c (struct die_info) <has_children>: New member.
11776 (dw2_get_file_names_reader): Remove has_children.
11777 (dw2_get_file_names): Update.
11778 (read_cutu_die_from_dwo): Remove has_children.
11779 (cutu_reader::init_tu_and_read_dwo_dies)
11780 (cutu_reader::cutu_reader): Update.
11781 (process_psymtab_comp_unit_reader, build_type_psymtabs_reader):
11782 Remove has_children.
11783 (build_type_psymtabs_1, process_skeletonless_type_unit)
11784 (load_partial_comp_unit, load_full_comp_unit): Update.
11785 (create_dwo_cu_reader): Remove has_children.
11786 (create_cus_hash_table, read_die_and_children): Update.
11787 (read_full_die_1,read_full_die): Remove has_children.
11788 (read_signatured_type): Update.
11789 (class cutu_reader) <has_children>: Remove.
11790
11791 2020-02-08 Tom Tromey <tom@tromey.com>
11792
11793 * dwarf2/expr.c: Rename from dwarf2expr.c.
11794 * dwarf2/expr.h: Rename from dwarf2expr.h.
11795 * dwarf2/frame-tailcall.c: Rename from dwarf2-frame-tailcall.c.
11796 * dwarf2/frame-tailcall.h: Rename from dwarf2-frame-tailcall.h.
11797 * dwarf2/frame.c: Rename from dwarf2-frame.c.
11798 * dwarf2/frame.h: Rename from dwarf2-frame.h.
11799 * dwarf2/index-cache.c: Rename from dwarf-index-cache.c.
11800 * dwarf2/index-cache.h: Rename from dwarf-index-cache.h.
11801 * dwarf2/index-common.c: Rename from dwarf-index-common.c.
11802 * dwarf2/index-common.h: Rename from dwarf-index-common.h.
11803 * dwarf2/index-write.c: Rename from dwarf-index-write.c.
11804 * dwarf2/index-write.h: Rename from dwarf-index-write.h.
11805 * dwarf2/loc.c: Rename from dwarf2loc.c.
11806 * dwarf2/loc.h: Rename from dwarf2loc.h.
11807 * dwarf2/read.c: Rename from dwarf2read.c.
11808 * dwarf2/read.h: Rename from dwarf2read.h.
11809 * dwarf2/abbrev.c, aarch64-tdep.c, alpha-tdep.c,
11810 amd64-darwin-tdep.c, arc-tdep.c, arm-tdep.c, bfin-tdep.c,
11811 compile/compile-c-symbols.c, compile/compile-cplus-symbols.c,
11812 compile/compile-loc2c.c, cris-tdep.c, csky-tdep.c, findvar.c,
11813 gdbtypes.c, guile/scm-type.c, h8300-tdep.c, hppa-bsd-tdep.c,
11814 hppa-linux-tdep.c, i386-darwin-tdep.c, i386-linux-tdep.c,
11815 i386-tdep.c, iq2000-tdep.c, m32c-tdep.c, m68hc11-tdep.c,
11816 m68k-tdep.c, microblaze-tdep.c, mips-tdep.c, mn10300-tdep.c,
11817 msp430-tdep.c, nds32-tdep.c, nios2-tdep.c, or1k-tdep.c,
11818 riscv-tdep.c, rl78-tdep.c, rs6000-tdep.c, rx-tdep.c, s12z-tdep.c,
11819 s390-tdep.c, score-tdep.c, sh-tdep.c, sparc-linux-tdep.c,
11820 sparc-tdep.c, sparc64-linux-tdep.c, sparc64-tdep.c, tic6x-tdep.c,
11821 tilegx-tdep.c, v850-tdep.c, xstormy16-tdep.c, xtensa-tdep.c:
11822 Update.
11823 * Makefile.in (COMMON_SFILES): Update.
11824 (HFILES_NO_SRCDIR): Update.
11825
11826 2020-02-08 Tom Tromey <tom@tromey.com>
11827
11828 * dwarf2read.c (struct die_reader_specs) <comp_dir>: Remove.
11829 (init_cu_die_reader, read_cutu_die_from_dwo): Update.
11830
11831 2020-02-08 Tom Tromey <tom@tromey.com>
11832
11833 * dwarf2read.h (struct die_info): Don't declare.
11834
11835 2020-02-08 Tom Tromey <tom@tromey.com>
11836
11837 * dwarf2read.h (die_info_ptr): Remove typedef.
11838
11839 2020-02-08 Tom Tromey <tom@tromey.com>
11840
11841 * dwarf2read.c (read_call_site_scope)
11842 (handle_data_member_location, dwarf2_add_member_fn)
11843 (mark_common_block_symbol_computed, read_common_block)
11844 (attr_to_dynamic_prop, partial_die_info::read)
11845 (var_decode_location, dwarf2_fetch_die_loc_sect_off)
11846 (dwarf2_symbol_mark_computed, set_die_type): Update.
11847 * dwarf2/attribute.h (struct attribute) <form_is_block>: Declare
11848 method.
11849 (attr_form_is_block): Don't declare.
11850 * dwarf2/attribute.c (attribute::form_is_block): Now a method.
11851
11852 2020-02-08 Tom Tromey <tom@tromey.com>
11853
11854 * dwarf2read.c (dwarf2_find_base_address, )
11855 (read_call_site_scope, rust_containing_type)
11856 (dwarf2_get_pc_bounds, dwarf2_record_block_ranges)
11857 (handle_data_member_location, dwarf2_add_member_fn)
11858 (get_alignment, read_structure_type, process_structure_scope)
11859 (mark_common_block_symbol_computed, read_common_block)
11860 (read_tag_string_type, attr_to_dynamic_prop, read_subrange_type)
11861 (partial_die_info::read, read_attribute_value, new_symbol)
11862 (lookup_die_type, dwarf2_get_ref_die_offset)
11863 (dwarf2_get_attr_constant_value, follow_die_ref_or_sig)
11864 (dwarf2_fetch_die_loc_sect_off, get_DW_AT_signature_type)
11865 (dwarf2_symbol_mark_computed): Update.
11866 * dwarf2/attribute.h (struct attribute) <value_as_address,
11867 form_is_section_offset, form_is_constant, form_is_ref>: Declare
11868 methods.
11869 (value_as_address, attr_form_is_section_offset)
11870 (attr_form_is_constant, attr_form_is_ref): Don't declare.
11871 * dwarf2/attribute.c (attribute::value_as_address)
11872 (attribute::form_is_section_offset, attribute::form_is_constant)
11873 (attribute::form_is_ref): Now methods.
11874
11875 2020-02-08 Tom Tromey <tom@tromey.com>
11876
11877 * dwarf2read.c (struct attribute, DW_STRING)
11878 (DW_STRING_IS_CANONICAL, DW_UNSND, DW_BLOCK, DW_SND, DW_ADDR)
11879 (DW_SIGNATURE, struct dwarf_block, attr_value_as_address)
11880 (attr_form_is_block, attr_form_is_section_offset)
11881 (attr_form_is_constant, attr_form_is_ref): Move.
11882 * dwarf2/attribute.h: New file.
11883 * dwarf2/attribute.c: New file, from dwarf2read.c.
11884 * Makefile.in (COMMON_SFILES): Add dwarf2/attribute.c.
11885
11886 2020-02-08 Tom Tromey <tom@tromey.com>
11887
11888 * dwarf2read.c (abbrev_table_up, struct abbrev_info)
11889 (struct attr_abbrev, ABBREV_HASH_SIZE, struct abbrev_table):
11890 Move.
11891 (read_cutu_die_from_dwo, build_type_psymtabs_1): Update.
11892 (abbrev_table::alloc_abbrev, abbrev_table::add_abbrev)
11893 (abbrev_table::lookup_abbrev, abbrev_table_read_table): Move to
11894 abbrev.c.
11895 * dwarf2/abbrev.h: New file.
11896 * dwarf2/abbrev.c: New file, from dwarf2read.c.
11897 * Makefile.in (COMMON_SFILES): Add dwarf2/abbrev.c.
11898
11899 2020-02-08 Tom Tromey <tom@tromey.com>
11900
11901 * dwarf2read.c (dwarf2_section_buffer_overflow_complaint)
11902 (dwarf2_section_size, dwarf2_get_section_info)
11903 (create_signatured_type_table_from_debug_names)
11904 (create_addrmap_from_aranges, read_debug_names_from_section)
11905 (get_gdb_index_contents_from_section, read_comp_unit_head)
11906 (error_check_comp_unit_head, read_abbrev_offset)
11907 (create_debug_type_hash_table, init_cu_die_reader)
11908 (read_cutu_die_from_dwo, dwarf2_build_psymtabs_hard)
11909 (read_comp_units_from_section, create_cus_hash_table)
11910 (create_dwp_hash_table, create_dwo_unit_in_dwp_v1)
11911 (create_dwp_v2_section, dwarf2_rnglists_process)
11912 (dwarf2_ranges_process, read_die_and_siblings, read_full_die)
11913 (abbrev_table_read_table, read_indirect_string_at_offset_from)
11914 (read_indirect_string_from_dwz, read_addr_index_1)
11915 (read_str_index, dwarf_decode_line_header, skip_form_bytes)
11916 (dwarf_decode_macro_bytes, dwarf_decode_macros)
11917 (fill_in_loclist_baton): Update.
11918 * dwarf2/section.h (struct dwarf2_section_info) <get_name,
11919 get_containing_section, get_bfd_owner, get_bfd_section,
11920 get_file_name, get_id, get_flags, empty, read>: Declare methods.
11921 (dwarf2_read_section, get_section_name, get_section_file_name)
11922 (get_containing_section, get_section_bfd_owner)
11923 (get_section_bfd_section, get_section_name, get_section_file_name)
11924 (get_section_id, get_section_flags, dwarf2_section_empty_p): Don't
11925 declare.
11926 * dwarf2/section.c (dwarf2_section_info::get_containing_section)
11927 (dwarf2_section_info::get_bfd_owner)
11928 (dwarf2_section_info::get_bfd_section)
11929 (dwarf2_section_info::get_name)
11930 (dwarf2_section_info::get_file_name, dwarf2_section_info::get_id)
11931 (dwarf2_section_info::get_flags, dwarf2_section_info::empty)
11932 (dwarf2_section_info::read): Now methods.
11933 * dwarf-index-write.c (class debug_names): Update.
11934
11935 2020-02-08 Tom Tromey <tom@tromey.com>
11936
11937 * dwarf2read.h (struct dwarf2_section_info, dwarf2_read_section):
11938 Move to dwarf2/section.h.
11939 * dwarf2read.c (get_containing_section, get_section_bfd_owner)
11940 (get_section_bfd_section, get_section_name)
11941 (get_section_file_name, get_section_id, get_section_flags)
11942 (dwarf2_section_empty_p, dwarf2_read_section): Moe to
11943 dwarf2/section.c.
11944 * dwarf2/section.h: New file.
11945 * dwarf2/section.c: New file, from dwarf2read.c.
11946 * Makefile.in (COMMON_SFILES): Add dwarf2/section.c.
11947
11948 2020-02-08 Tom Tromey <tom@tromey.com>
11949
11950 * dwarf2read.h (read_unsigned_leb128): Don't declare.
11951 * dwarf2read.c (read_1_byte, read_1_signed_byte, read_2_bytes)
11952 (read_2_signed_bytes, read_3_bytes, read_4_bytes)
11953 (read_4_signed_bytes, read_8_bytes): Move to dwarf2/leb.h.
11954 (read_unsigned_leb128, read_signed_leb128): Move to dwarf2/leb.c.
11955 * dwarf2/leb.h: New file, from dwarf2read.c.
11956 * dwarf2/leb.c: New file, from dwarf2read.c.
11957 * dwarf2-frame.c (read_1_byte, read_4_bytes, read_8_bytes):
11958 Remove.
11959 * Makefile.in (CONFIG_SRC_SUBDIR): Add dwarf2.
11960 (COMMON_SFILES): Add dwarf2/leb.c.
11961
11962 2020-02-08 Joel Brobecker <brobecker@adacore.com>
11963
11964 GDB 9.1 released.
11965
11966 2020-02-05 Iain Buclaw <ibuclaw@gdcproject.org>
11967
11968 PR gdb/25190:
11969 * gdb/remote-sim.c (gdb_os_write_stderr): Update.
11970 * gdb/remote.c (remote_console_output): Update.
11971 * gdb/ui-file.c (fputs_unfiltered): Rename to...
11972 (ui_file_puts): ...this.
11973 * gdb/ui-file.h (ui_file_puts): Add declaration.
11974 * gdb/utils.c (emit_style_escape): Update.
11975 (flush_wrap_buffer): Update.
11976 (fputs_maybe_filtered): Update.
11977 (fputs_unfiltered): Add function.
11978
11979 2020-02-05 Iain Buclaw <ibuclaw@gdcproject.org>
11980
11981 * gdb/event-loop.c (gdb_wait_for_event): Update.
11982 * gdb/printcmd.c (printf_command): Update.
11983 * gdb/remote-fileio.c (remote_fileio_func_write): Update.
11984 * gdb/remote-sim.c (gdb_os_flush_stdout): Update.
11985 (gdb_os_flush_stderr): Update.
11986 * gdb/remote.c (remote_console_output): Update.
11987 * gdb/ui-file.c (gdb_flush): Rename to...
11988 (ui_file_flush): ...this.
11989 (stderr_file::write): Update.
11990 (stderr_file::puts): Update.
11991 * gdb/ui-file.h (gdb_flush): Rename to...
11992 (ui_file_flush): ...this.
11993 * gdb/utils.c (gdb_flush): Add function.
11994 * gdb/utils.h (gdb_flush): Add declaration.
11995
11996 2020-02-07 Tom Tromey <tromey@adacore.com>
11997
11998 PR breakpoints/24915:
11999 * source.c (find_and_open_source): Do not check basenames_may_differ.
12000
12001 2020-02-07 Tom Tromey <tom@tromey.com>
12002
12003 * README: Update gdbserver documentation.
12004 * gdbserver: Move to top level.
12005 * configure.tgt (build_gdbserver): Remove.
12006 * configure.ac: Remove --enable-gdbserver.
12007 * configure: Rebuild.
12008 * Makefile.in (distclean): Don't mention gdbserver.
12009
12010 2020-02-06 Shahab Vahedi <shahab@synopsys.com>
12011
12012 * source-cache.c (source_cache::ensure): Surround
12013 get_plain_source_lines with a try/catch.
12014 (source_cache::get_line_charpos): Get rid of try/catch
12015 and only check for the return value of "ensure".
12016 * tui/tui-source.c (tui_source_window::set_contents):
12017 Simplify "nlines" calculation.
12018
12019 2020-02-06 Shahab Vahedi <shahab@synopsys.com>
12020
12021 * MAINTAINERS (Write After Approval): Add myself.
12022
12023 2020-02-05 Christian Biesinger <cbiesinger@google.com>
12024
12025 * sparc-nat.h (struct sparc_target) <xfer_partial>: Fix base class
12026 function call.
12027
12028 2020-02-05 Christian Biesinger <cbiesinger@google.com>
12029
12030 * ppc-nbsd-tdep.h: Fix macro name in #endif comment.
12031
12032 2020-02-05 Maciej W. Rozycki <macro@wdc.com>
12033
12034 * nat/riscv-linux-tdesc.h: New file.
12035 * nat/riscv-linux-tdesc.c: New file, taking code from...
12036 * riscv-linux-nat.c (riscv_linux_nat_target::read_description):
12037 ... here.
12038 * configure.nat <linux> <riscv*>: Add nat/riscv-linux-tdesc.o to
12039 NATDEPFILES.
12040
12041 2020-02-04 Andrew Burgess <andrew.burgess@embecosm.com>
12042
12043 * remote-sim.c (sim_inferior_data::sim_inferior_data): Assert that
12044 we don't set the fake simulator ptid to the null_ptid.
12045
12046 2020-02-03 Simon Marchi <simon.marchi@efficios.com>
12047
12048 * fork-child.c (gdb_startup_inferior): Use bool instead of int.
12049 * gdbthread.h (class thread_info) <resumed>: Likewise.
12050 * infrun.c (resume_1): Likewise.
12051 (proceed): Likewise.
12052 (infrun_thread_stop_requested): Likewise.
12053 (stop_all_threads): Likewise.
12054 (handle_inferior_event): Likewise.
12055 (restart_threads): Likewise.
12056 (finish_step_over): Likewise.
12057 (keep_going_stepped_thread): Likewise.
12058 * linux-nat.c (attach_proc_task_lwp_callback): Likewise.
12059 (linux_handle_extended_wait): Likewise.
12060 * record-btrace.c (get_thread_current_frame_id): Likewise.
12061 * record-full.c (record_full_wait_1): Likewise.
12062 * remote.c (remote_target::process_initial_stop_replies): Likewise.
12063 * target.c (target_resume): Likewise.
12064 * thread.c (set_running_thread): Likewise.
12065
12066 2020-02-03 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
12067
12068 * f-valprint.c (f77_print_array_1): Changed datatype of index
12069 variable to LONGEST from int to enable it to contain bound
12070 values correctly.
12071
12072 2020-02-03 Maciej W. Rozycki <macro@wdc.com>
12073
12074 * riscv-linux-nat.c [!NFPREG] (NFPREG): New macro.
12075 (supply_fpregset_regnum, fill_fpregset): Handle regset buffer
12076 offsets according to FLEN determined.
12077 (riscv_linux_nat_target::read_description): Determine FLEN
12078 dynamically.
12079 (riscv_linux_nat_target::fetch_registers): Size regset buffer
12080 according to FLEN determined.
12081 (riscv_linux_nat_target::store_registers): Likewise.
12082
12083 2020-02-01 Shahab Vahedi <shahab@synopsys.com>
12084
12085 * target-descriptions.c (tdesc_register_in_reggroup_p): Return 0
12086 when reg->group is empty and reggroup is not.
12087
12088 2020-01-31 Tom Tromey <tromey@adacore.com>
12089
12090 * ravenscar-thread.c (ravenscar_thread_target::mourn_inferior):
12091 Call beneath target's mourn_inferior after unpushing.
12092
12093 2020-01-31 Andrew Burgess <andrew.burgess@embecosm.com>
12094
12095 PR tui/9765
12096 * tui/tui-disasm.c (tui_find_disassembly_address): If we don't
12097 have enough lines to fill the screen, still return the lowest
12098 address we found.
12099
12100 2020-01-31 Andrew Burgess <andrew.burgess@embecosm.com>
12101
12102 * tui/tui-win.c (_initialize_tui_win): Update help text for '+',
12103 '-', '<', and '>' commands.
12104
12105 2020-01-29 Pedro Alves <palves@redhat.com>
12106 Sergio Durigan Junior <sergiodj@redhat.com>
12107
12108 * infcmd.c (construct_inferior_arguments): Assert that
12109 'argc' is greater than 0.
12110
12111 2020-01-29 Luis Machado <luis.machado@linaro.org>
12112
12113 * aarch64-tdep.c (BRK_INSN_MASK): Define to 0xffe0001f.
12114 (BRK_INSN_MASK): Define to 0xd4200000.
12115 (aarch64_program_breakpoint_here_p): New function.
12116 (aarch64_gdbarch_init): Set gdbarch_program_breakpoint_here_p hook.
12117 * arch-utils.c (default_program_breakpoint_here_p): Moved from
12118 breakpoint.c.
12119 * arch-utils.h (default_program_breakpoint_here_p): Moved from
12120 breakpoint.h
12121 * breakpoint.c (bp_loc_is_permanent): Changed return type to bool and
12122 call gdbarch_program_breakpoint_here_p.
12123 (program_breakpoint_here): Moved to arch-utils.c, renamed to
12124 default_program_breakpoint_here_p, changed return type to bool and
12125 simplified.
12126 * breakpoint.h (program_breakpoint_here): Moved prototype to
12127 arch-utils.h, renamed to default_program_breakpoint_here_p and changed
12128 return type to bool.
12129 * gdbarch.c: Regenerate.
12130 * gdbarch.h: Regenerate.
12131 * gdbarch.sh (program_breakpoint_here_p): New method.
12132 * infrun.c (handle_signal_stop): Call
12133 gdbarch_program_breakpoint_here_p.
12134
12135 2020-01-26 Tom Tromey <tom@tromey.com>
12136
12137 * ctfread.c (struct ctf_fp_info): Reindent.
12138 (_initialize_ctfread): Remove.
12139
12140 2020-01-26 Tom Tromey <tom@tromey.com>
12141
12142 * psymtab.c (partial_map_expand_apply)
12143 (psym_find_pc_sect_compunit_symtab, psym_lookup_symbol)
12144 (psymtab_to_symtab, psym_find_last_source_symtab, dump_psymtab)
12145 (psym_print_stats, psym_expand_symtabs_for_function)
12146 (psym_map_symbol_filenames, psym_map_matching_symbols)
12147 (psym_expand_symtabs_matching)
12148 (partial_symtab::read_dependencies, maintenance_info_psymtabs)
12149 (maintenance_check_psymtabs): Use new methods.
12150 * psympriv.h (struct partial_symtab) <readin_p,
12151 get_compunit_symtab>: New methods.
12152 <readin, compunit_symtab>: Remove members.
12153 (struct standard_psymtab): New.
12154 (struct legacy_psymtab): Derive from standard_psymtab.
12155 * dwarf2read.h (struct dwarf2_psymtab): Derive from
12156 standard_psymtab.
12157 * ctfread.c (struct ctf_psymtab): Derive from standard_psymtab.
12158
12159 2020-01-26 Tom Tromey <tom@tromey.com>
12160
12161 * xcoffread.c (xcoff_psymtab_to_symtab_1): Call
12162 read_dependencies. Add assert.
12163 * psymtab.c (partial_symtab::read_dependencies): New method.
12164 * psympriv.h (struct partial_symtab) <read_dependencies>: New
12165 method.
12166 * mdebugread.c (psymtab_to_symtab_1): Call read_dependencies.
12167 * dwarf2read.c (dwarf2_psymtab::expand_psymtab): Call
12168 read_dependencies.
12169 * dbxread.c (dbx_psymtab_to_symtab_1): Call read_dependencies.
12170 Add assert.
12171
12172 2020-01-26 Tom Tromey <tom@tromey.com>
12173
12174 * xcoffread.c (xcoff_psymtab_to_symtab_1): Change argument order.
12175 Call expand_psymtab.
12176 (xcoff_read_symtab): Call expand_psymtab.
12177 (xcoff_start_psymtab, xcoff_end_psymtab): Set
12178 legacy_expand_psymtab.
12179 * psympriv.h (struct partial_symtab) <expand_psymtab>: New
12180 method.
12181 (struct legacy_psymtab) <expand_psymtab>: Implement.
12182 <legacy_expand_psymtab>: New member.
12183 * mdebugread.c (mdebug_read_symtab): Call expand_psymtab.
12184 (parse_partial_symbols): Set legacy_expand_psymtab.
12185 (psymtab_to_symtab_1): Change argument order. Call
12186 expand_psymtab.
12187 (new_psymtab): Set legacy_expand_psymtab.
12188 * dwarf2read.h (struct dwarf2_psymtab) <expand_psymtab>: Declare.
12189 * dwarf2read.c (dwarf2_psymtab::read_symtab): Call
12190 expand_psymtab.
12191 (dwarf2_psymtab::expand_psymtab): Rename from
12192 psymtab_to_symtab_1. Call expand_psymtab.
12193 * dbxread.c (start_psymtab): Set legacy_expand_psymtab.
12194 (dbx_end_psymtab): Likewise.
12195 (dbx_psymtab_to_symtab_1): Change argument order. Call
12196 expand_psymtab.
12197 (dbx_read_symtab): Call expand_psymtab.
12198 * ctfread.c (struct ctf_psymtab) <expand_psymtab>: Declare.
12199 (ctf_psymtab::expand_psymtab): Rename from psymtab_to_symtab.
12200 (ctf_psymtab::read_symtab): Call expand_psymtab.
12201
12202 2020-01-26 Tom Tromey <tom@tromey.com>
12203
12204 * xcoffread.c (xcoff_read_symtab): Remove prints. Add assert.
12205 * psymtab.c (psymtab_to_symtab): Print verbose "Reading"
12206 messages.
12207 * mdebugread.c (mdebug_read_symtab): Remove prints.
12208 * dwarf2read.c (dwarf2_psymtab::read_symtab): Remove prints. Add
12209 assert.
12210 * dbxread.c (dbx_read_symtab): Remove prints. Add assert.
12211
12212 2020-01-26 Tom Tromey <tom@tromey.com>
12213
12214 * xcoffread.c (this_symtab_psymtab, read_xcoff_symtab)
12215 (xcoff_psymtab_to_symtab_1, xcoff_read_symtab)
12216 (xcoff_start_psymtab, xcoff_end_psymtab, scan_xcoff_symtab): Use
12217 legacy_symtab.
12218 * stabsread.h (dbx_end_psymtab): Use legacy_symtab.
12219 * psymtab.c (psymtab_to_symtab): Call method.
12220 (dump_psymtab): Update.
12221 * psympriv.h (struct partial_symtab): Add virtual destructor.
12222 <read_symtab>: New method.
12223 (struct legacy_symtab): New.
12224 * mdebugread.c (mdebug_read_symtab): Use legacy_psymtab.
12225 (struct pst_map) <pst>: Now a legacy_psymtab.
12226 (parse_procedure, parse_partial_symbols, psymtab_to_symtab_1)
12227 (new_psymtab): Use legacy_psymtab.
12228 * dwarf2read.h (struct dwarf2_psymtab): New.
12229 (struct dwarf2_per_cu_data) <psymtab>: Use it.
12230 * dwarf2read.c (dwarf2_create_include_psymtab)
12231 (dwarf2_build_include_psymtabs, create_type_unit_group)
12232 (create_partial_symtab, process_psymtab_comp_unit_reader)
12233 (build_type_psymtabs_reader, build_type_psymtab_dependencies)
12234 (set_partial_user): Use dwarf2_psymtab.
12235 (dwarf2_psymtab::read_symtab): Rename from dwarf2_read_symtab.
12236 (psymtab_to_symtab_1, process_full_comp_unit)
12237 (process_full_type_unit, dwarf2_ranges_read)
12238 (dwarf2_get_pc_bounds, psymtab_include_file_name)
12239 (dwarf_decode_lines): Use dwarf2_psymtab.
12240 * dwarf-index-write.c (psym_index_map): Use dwarf2_psymtab.
12241 (add_address_entry_worker, write_one_signatured_type)
12242 (recursively_count_psymbols, recursively_write_psymbols)
12243 (write_one_signatured_type, psyms_seen_size, write_gdbindex)
12244 (write_debug_names): Likewise.
12245 * dbxread.c (struct header_file_location): Take a legacy_psymtab.
12246 <pst>: Now a legacy_psymtab.
12247 (find_corresponding_bincl_psymtab): Return a legacy_psymtab.
12248 (read_dbx_symtab, start_psymtab, dbx_end_psymtab)
12249 (dbx_psymtab_to_symtab_1, read_ofile_symtab): Use legacy_psymtab.
12250 * ctfread.c (struct ctf_psymtab): New.
12251 (ctf_start_symtab, ctf_end_symtab, psymtab_to_symtab): Take a
12252 ctf_psymtab.
12253 (ctf_psymtab::read_symtab): Rename from ctf_read_symtab.
12254 (create_partial_symtab): Return a ctf_psymtab.
12255 (scan_partial_symbols): Update.
12256
12257 2020-01-26 Tom Tromey <tom@tromey.com>
12258
12259 * xcoffread.c (xcoff_start_psymtab): Use new.
12260 * psymtab.c (partial_symtab::partial_symtab): New constructor,
12261 renamed from start_psymtab_common.
12262 * psympriv.h (struct partial_symtab): Add new constructor.
12263 (start_psymtab_common): Don't declare.
12264 * mdebugread.c (parse_partial_symbols): Use new.
12265 * dwarf2read.c (create_partial_symtab): Use new.
12266 * dbxread.c (start_psymtab): Use new.
12267 * ctfread.c (create_partial_symtab): Use new.
12268
12269 2020-01-26 Tom Tromey <tom@tromey.com>
12270
12271 * xcoffread.c (xcoff_end_psymtab): Use new.
12272 * psymtab.c (start_psymtab_common): Use new.
12273 (partial_symtab::partial_symtab): Rename from allocate_psymtab.
12274 Update.
12275 * psympriv.h (struct partial_symtab): Add parameters to
12276 constructor. Don't inline.
12277 (allocate_psymtab): Don't declare.
12278 * mdebugread.c (new_psymtab): Use new.
12279 * dwarf2read.c (dwarf2_create_include_psymtab): Use new.
12280 * dbxread.c (dbx_end_psymtab): Use new.
12281
12282 2020-01-26 Tom Tromey <tom@tromey.com>
12283
12284 * psymtab.h (class psymtab_storage) <install_psymtab>: Rename from
12285 allocate_psymtab. Update documentation.
12286 * psymtab.c (psymtab_storage::install_psymtab): Rename from
12287 allocate_psymtab. Do not use new.
12288 (allocate_psymtab): Use new. Update.
12289
12290 2020-01-26 Tom Tromey <tom@tromey.com>
12291
12292 * xcoffread.c (xcoff_psymtab_to_symtab_1): Update.
12293 * psymtab.c (psym_print_stats): Update.
12294 * psympriv.h (struct partial_symtab) <readin,
12295 psymtabs_addrmap_supported, anonymous>: Now bool.
12296 * mdebugread.c (psymtab_to_symtab_1): Update.
12297 * dwarf2read.c (create_type_unit_group, create_partial_symtab)
12298 (build_type_psymtabs_reader, psymtab_to_symtab_1)
12299 (process_full_comp_unit, process_full_type_unit): Update.
12300 * dbxread.c (dbx_psymtab_to_symtab_1): Update.
12301 * ctfread.c (psymtab_to_symtab): Update.
12302
12303 2020-01-26 Tom Tromey <tom@tromey.com>
12304
12305 * mdebugread.c (parse_partial_symbols): Use discard_psymtab.
12306 * psymtab.h (class psymtab_storage) <free_psymtabs>: Remove.
12307 * psymtab.c (psymtab_storage): Delete psymtabs.
12308 (psymtab_storage::allocate_psymtab): Use new.
12309 (psymtab_storage::discard_psymtab): Use delete.
12310 * psympriv.h (struct partial_symtab): Add constructor and
12311 initializers.
12312
12313 2020-01-26 Tom Tromey <tom@tromey.com>
12314
12315 * machoread.c: Do not include psympriv.h.
12316
12317 2020-01-25 Philippe Waroquiers <philippe.waroquiers@skynet.be>
12318
12319 * NEWS: Mention the new option and the set/show commands.
12320
12321 2020-01-25 Philippe Waroquiers <philippe.waroquiers@skynet.be>
12322
12323 * exec.c (exec_file_mismatch_names, exec_file_mismatch_mode)
12324 (show_exec_file_mismatch_command, set_exec_file_mismatch_command)
12325 (validate_exec_file): New variables, enums, functions.
12326 (exec_file_locate_attach, print_section_info): Style the filenames.
12327 (_initialize_exec): Install show_exec_file_mismatch_command and
12328 set_exec_file_mismatch_command.
12329 * gdbcore.h (validate_exec_file): Declare.
12330 * infcmd.c (attach_command): Call validate_exec_file.
12331 * remote.c ( remote_target::remote_add_inferior): Likewise.
12332
12333 2020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
12334
12335 * frame.c (find_frame_sal): Move call to get_next_frame into more
12336 inner scope.
12337 * inline-frame.c (inilne_state) <inline_state>: Update argument
12338 types.
12339 (inilne_state) <skipped_symbol>: Rename to...
12340 (inilne_state) <skipped_symbols>: ...this, and change to a vector.
12341 (skip_inline_frames): Build vector of skipped symbols and use this
12342 to reate the inline_state.
12343 (inline_skipped_symbol): Add a comment and some assertions, fetch
12344 skipped symbol from the list.
12345
12346 2020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
12347
12348 * buildsym.c (lte_is_less_than): Delete.
12349 (buildsym_compunit::end_symtab_with_blockvector): Create local
12350 lambda function to sort line table entries, and use
12351 std::stable_sort instead of std::sort.
12352 * symtab.c (find_pc_sect_line): Skip backward over end of sequence
12353 markers when looking for a previous line.
12354
12355 2020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
12356
12357 * dwarf2read.c (lnp_state_machine::record_line): Include
12358 end_sequence parameter in debug print out. Record the line if we
12359 are at an end_sequence marker even if it's not the start of a
12360 statement.
12361 * symmisc.c (maintenance_print_one_line_table): Print end of
12362 sequence markers with 'END' not '0'.
12363
12364 2020-01-24 Pedro Alves <palves@redhat.com>
12365
12366 PR gdb/25410
12367 * thread.c (scoped_restore_current_thread::restore): Use
12368 switch_to_inferior_no_thread.
12369 * exec.c: Include "progspace-and-thread.h".
12370 (add_target_sections, remove_target_sections):
12371 scoped_restore_current_pspace_and_thread instead of
12372 scoped_restore_current_thread.
12373 * infrun.c (handle_vfork_child_exec_or_exit): Assign the pspace
12374 and aspace to the inferior before calling clone_program_space.
12375 Remove stale comment.
12376
12377 2020-01-24 Christian Biesinger <cbiesinger@google.com>
12378
12379 * arm-nbsd-nat.c (arm_nbsd_nat_target::fetch_registers): Rename to...
12380 (arm_netbsd_nat_target::fetch_registers): ...this.
12381 (arm_nbsd_nat_target::store_registers): Rename to...
12382 (arm_netbsd_nat_target::store_registers): ...this.
12383
12384 2020-01-24 Christian Biesinger <cbiesinger@google.com>
12385
12386 * arm-nbsd-nat.c: Define _KERNTYPES to get the declaration of
12387 register_t.
12388
12389 2020-01-24 Christian Biesinger <cbiesinger@google.com>
12390
12391 * aarch64-fbsd-tdep.c (aarch64_fbsd_iterate_over_regset_sections):
12392 Update comment.
12393 * aarch64-linux-tdep.c (aarch64_linux_iterate_over_regset_sections):
12394 Likewise.
12395 * arm-fbsd-tdep.c (arm_fbsd_iterate_over_regset_sections): Likewise.
12396 * gdbcore.h (deprecated_add_core_fns): Update comment to point to
12397 the correct replacement (iterate_over_regset_sections).
12398 * riscv-fbsd-tdep.c (riscv_fbsd_iterate_over_regset_sections):
12399 Update comment.
12400
12401 2020-01-24 Graham Markall <graham.markall@embecosm.com>
12402
12403 PR gdb/23718
12404 * gdb/python/python.c (execute_gdb_command): Call
12405 async_enable_stdin in catch block.
12406
12407 2020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
12408
12409 * event-loop.c (start_event_loop): Wrap async_enable_stdin with
12410 SWITCH_THRU_ALL_UIS.
12411
12412 2020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
12413
12414 PR tui/9765
12415 * minsyms.c (lookup_minimal_symbol_by_pc_section): Update header
12416 comment, add extra parameter, and update to store previous symbol
12417 when appropriate.
12418 * minsyms.h (lookup_minimal_symbol_by_pc_section): Update comment,
12419 add extra parameter.
12420 * tui/tui-disasm.c (tui_disassemble): Update header comment,
12421 remove unneeded parameter, add try/catch around gdb_print_insn,
12422 rewrite to add items to asm_lines vector.
12423 (tui_find_backward_disassembly_start_address): New function.
12424 (tui_find_disassembly_address): Updated throughout.
12425 (tui_disasm_window::set_contents): Update for changes to
12426 tui_disassemble.
12427 (tui_disasm_window::do_scroll_vertical): No need to adjust the
12428 number of lines to scroll.
12429
12430 2020-01-23 Simon Marchi <simon.marchi@polymtl.ca>
12431
12432 * objfiles.h (ALL_OBJFILE_OSECTIONS): Move up.
12433 (SECT_OFF_DATA): Likewise.
12434 (SECT_OFF_RODATA): Likewise.
12435 (SECT_OFF_TEXT): Likewise.
12436 (SECT_OFF_BSS): Likewise.
12437 (struct objfile) <text_section_offset, data_section_offset>: New
12438 methods.
12439 * amd64-windows-tdep.c (amd64_windows_find_unwind_info): Use
12440 objfile::text_section_offset.
12441 * coff-pe-read.c (add_pe_forwarded_sym): Likewise.
12442 * coffread.c (coff_symtab_read): Likewise.
12443 (enter_linenos): Likewise.
12444 (process_coff_symbol): Likewise.
12445 * ctfread.c (get_objfile_text_range): Likewise.
12446 * dtrace-probe.c (dtrace_probe::get_relocated_address):
12447 Use objfile::data_section_offset.
12448 * dwarf2-frame.c (execute_cfa_program): Use
12449 objfile::text_section_offset.
12450 (dwarf2_frame_find_fde): Likewise.
12451 * dwarf2read.c (create_addrmap_from_index): Likewise.
12452 (create_addrmap_from_aranges): Likewise.
12453 (dw2_find_pc_sect_compunit_symtab): Likewise.
12454 (process_psymtab_comp_unit_reader): Likewise.
12455 (add_partial_symbol): Likewise.
12456 (add_partial_subprogram): Likewise.
12457 (process_full_comp_unit): Likewise.
12458 (read_file_scope): Likewise.
12459 (read_func_scope): Likewise.
12460 (read_lexical_block_scope): Likewise.
12461 (read_call_site_scope): Likewise.
12462 (dwarf2_rnglists_process): Likewise.
12463 (dwarf2_ranges_process): Likewise.
12464 (dwarf2_ranges_read): Likewise.
12465 (dwarf_decode_lines_1): Likewise.
12466 (new_symbol): Likewise.
12467 (dwarf2_fetch_die_loc_sect_off): Likewise.
12468 (dwarf2_per_cu_text_offset): Likewise.
12469 * hppa-bsd-tdep.c (hppabsd_find_global_pointer): Likewise.
12470 * hppa-tdep.c (read_unwind_info): Likewise.
12471 * ia64-tdep.c (ia64_find_unwind_table): Likewise.
12472 * psympriv.h (struct partial_symtab): Likewise.
12473 * psymtab.c (find_pc_sect_psymtab): Likewise.
12474 * solib-svr4.c (enable_break): Likewise.
12475 * stap-probe.c (relocate_address): Use
12476 objfile::data_section_offset.
12477 * xcoffread.c (enter_line_range): Use
12478 objfile::text_section_offset.
12479 (read_xcoff_symtab): Likewise.
12480
12481 2020-01-23 Simon Marchi <simon.marchi@efficios.com>
12482
12483 * darwin-nat.c (darwin_nat_target::wait_1): Move `inf`
12484 declaration to narrower scopes.
12485
12486 2020-01-23 Simon Marchi <simon.marchi@efficios.com>
12487
12488 * darwin-nat.h (struct darwin_exception_msg, enum
12489 darwin_msg_state, struct darwin_thread_info, darwin_thread_t):
12490 Move up.
12491 (class darwin_nat_target) <wait_1, check_new_threads,
12492 decode_exception_message, decode_message, stop_inferior,
12493 init_thread_list, ptrace_him, cancel_breakpoint>: Declare.
12494 * darwin-nat.c (darwin_check_new_threads): Rename to...
12495 (darwin_nat_target::check_new_threads): ... this.
12496 (darwin_suspend_inferior_it): Remove.
12497 (darwin_decode_exception_message): Rename to...
12498 (darwin_nat_target::decode_exception_message): ... this.
12499 (darwin_nat_target::resume): Pass target to find_inferior_ptid.
12500 (darwin_decode_message): Rename to...
12501 (darwin_nat_target::decode_message): ... this.
12502 (cancel_breakpoint): Rename to...
12503 (darwin_nat_target::cancel_breakpoint): ... this.
12504 (darwin_wait): Rename to...
12505 (darwin_nat_target::wait_1): ... this. Use range-based for loop
12506 instead of iterate_over_inferiors.
12507 (darwin_nat_target::wait): Call wait_1 instead of darwin_wait.
12508 (darwin_stop_inferior): Rename to...
12509 (darwin_nat_target::stop_inferior): ... this.
12510 (darwin_nat_target::kill): Call wait_1 instead of darwin_wait.
12511 (darwin_init_thread_list): Rename to...
12512 (darwin_nat_target::init_thread_list): ... this.
12513 (darwin_ptrace_him): Rename to...
12514 (darwin_nat_target::ptrace_him): ... this.
12515 (darwin_nat_target::create_inferior): Pass lambda function to
12516 fork_inferior.
12517 (darwin_nat_target::detach): Call stop_inferior instead of
12518 darwin_stop_inferior.
12519 * fork-inferior.h (fork_inferior): Change init_trace_fun
12520 parameter to gdb::function_view.
12521 * fork-inferior.c (fork_inferior): Likewise.
12522
12523 2020-01-23 Hannes Domani <ssbssa@yahoo.de>
12524
12525 * i386-cygwin-tdep.c (core_process_module_section): Update.
12526 * windows-nat.c (struct lm_info_windows): Add text_offset.
12527 (windows_xfer_shared_libraries): Update.
12528 * windows-tdep.c (windows_xfer_shared_library):
12529 Add text_offset_cached argument.
12530 * windows-tdep.h (windows_xfer_shared_library): Update.
12531
12532 2020-01-21 Simon Marchi <simon.marchi@efficios.com>
12533
12534 * gdbarch.sh: Add declaration for _initialize_gdbarch.
12535
12536 2020-01-21 Simon Marchi <simon.marchi@efficios.com>
12537
12538 * remote-sim.c (check_for_duplicate_sim_descriptor): Remove.
12539 (get_sim_inferior_data): Remove use of iterate_over_inferiors,
12540 replace with range-based for.
12541 (gdbsim_interrupt_inferior): Remove.
12542 (gdbsim_target::interrupt): Replace iterate_over_inferiors use
12543 with a range-based for. Inline code from
12544 gdbsim_interrupt_inferior.
12545
12546 2020-01-21 Simon Marchi <simon.marchi@efficios.com>
12547
12548 * infrun.c (proceed): Fix indentation.
12549
12550 2020-01-21 Tom Tromey <tromey@adacore.com>
12551
12552 * source-cache.c (source_cache::ensure): Call ext_lang_colorize.
12553 * python/python.c (python_extension_ops): Update.
12554 (gdbpy_colorize): New function.
12555 * python/lib/gdb/__init__.py (colorize): New function.
12556 * extension.h (ext_lang_colorize): Declare.
12557 * extension.c (ext_lang_colorize): New function.
12558 * extension-priv.h (struct extension_language_ops) <colorize>: New
12559 member.
12560 * cli/cli-style.c (_initialize_cli_style): Update help text.
12561
12562 2020-01-21 Luis Machado <luis.machado@linaro.org>
12563
12564 * aarch64-tdep.c (struct aarch64_displaced_step_closure)
12565 <cond>: Change type to bool.
12566 (aarch64_displaced_step_b_cond): Update cond to use bool type.
12567 (aarch64_displaced_step_cb): Likewise.
12568 (aarch64_displaced_step_tb): Likewise.
12569
12570 2020-01-21 Luis Machado <luis.machado@linaro.org>
12571
12572 * aarch64-tdep.c (aarch64_displaced_step_fixup): Add more debugging
12573 output.
12574
12575 2020-01-21 Luis Machado <luis.machado@linaro.org>
12576
12577 * aarch64-tdep.c (struct aarch64_displaced_step_closure )
12578 <pc_adjust>: Adjust the documentation.
12579 (aarch64_displaced_step_fixup): Check if PC really moved before
12580 adjusting it.
12581
12582 2020-01-19 Tom Tromey <tom@tromey.com>
12583
12584 * disasm.c (~gdb_disassembler): New destructor.
12585 (gdb_buffered_insn_length): Call disassemble_free_target.
12586 * disasm.h (class gdb_disassembler): Declare destructor. Use
12587 DISABLE_COPY_AND_ASSIGN.
12588
12589 2020-01-19 Tom Tromey <tom@tromey.com>
12590
12591 * dwarf2read.c (abbrev_table_up): Move typedef earlier.
12592 (die_reader_func_ftype): Remove.
12593 (cutu_reader): New class.
12594 (dw2_get_file_names_reader): Remove "data" parameter.
12595 (dw2_get_file_names): Use cutu_reader.
12596 (create_debug_type_hash_table): Update.
12597 (read_cutu_die_from_dwo): Update comment.
12598 (lookup_dwo_unit): Add dwo_name parameter.
12599 (cutu_reader::init_tu_and_read_dwo_dies): Now a method. Remove
12600 die_reader_func_ftype and data parameters.
12601 (cutu_reader::cutu_reader): Rename from init_cutu_and_read_dies.
12602 Remove die_reader_func_ftype and data parameters.
12603 (~cutu_reader): New; from init_cutu_and_read_dies.
12604 (cutu_reader::cutu_reader): Rename from
12605 init_cutu_and_read_dies_no_follow. Remove die_reader_func_ftype
12606 and data parameters.
12607 (init_cutu_and_read_dies_simple): Remove.
12608 (struct process_psymtab_comp_unit_data): Remove.
12609 (process_psymtab_comp_unit_reader): Remove data parameter; add
12610 want_partial_unit and pretend_language parameters.
12611 (process_psymtab_comp_unit): Use cutu_reader.
12612 (build_type_psymtabs_reader): Remove data parameter.
12613 (build_type_psymtabs_1): Use cutu_reader.
12614 (process_skeletonless_type_unit): Likewise.
12615 (load_partial_comp_unit_reader): Remove.
12616 (load_partial_comp_unit): Use cutu_reader.
12617 (load_full_comp_unit_reader): Remove.
12618 (load_full_comp_unit): Use cutu_reader.
12619 (struct create_dwo_cu_data): Remove.
12620 (create_dwo_cu_reader): Remove datap parameter; add dwo_file and
12621 dwo_unit parameters.
12622 (create_cus_hash_table): Use cutu_reader.
12623 (struct dwarf2_read_addr_index_data): Remove.
12624 (dwarf2_read_addr_index_reader): Remove.
12625 (dwarf2_read_addr_index): Use cutu_reader.
12626 (read_signatured_type_reader): Remove.
12627 (read_signatured_type): Use cutu_reader.
12628
12629 2020-01-19 Tom Tromey <tom@tromey.com>
12630
12631 * tui/tui.c (tui_show_assembly): Use tui_suppress_output.
12632 * tui/tui-wingeneral.h (class tui_suppress_output): New.
12633 (tui_wrefresh): Declare.
12634 * tui/tui-wingeneral.c (suppress_output): New global.
12635 (tui_suppress_output, ~tui_suppress_output): New constructor and
12636 destructor.
12637 (tui_wrefresh): New function.
12638 (tui_gen_win_info::refresh_window): Use tui_wrefresh.
12639 (tui_gen_win_info::make_window): Call wnoutrefresh when needed.
12640 * tui/tui-regs.h (struct tui_data_window) <no_refresh>: Declare
12641 method.
12642 * tui/tui-regs.c (tui_data_window::erase_data_content): Call
12643 tui_wrefresh.
12644 (tui_data_window::no_refresh): New method.
12645 (tui_data_item_window::refresh_window): Call tui_wrefresh.
12646 (tui_reg_command): Use tui_suppress_output
12647 * tui/tui-layout.c (tui_set_layout): Use tui_suppress_output.
12648 * tui/tui-data.h (struct tui_gen_win_info) <no_refresh>: New
12649 method.
12650 * tui/tui-command.c (tui_refresh_cmd_win): Call tui_wrefresh.
12651
12652 2020-01-19 Tom Tromey <tom@tromey.com>
12653
12654 * tui/tui-winsource.c (tui_update_source_windows_with_line):
12655 Handle case where symtab is null.
12656
12657 2020-01-19 Simon Marchi <simon.marchi@polymtl.ca>
12658
12659 * linux-fork.c (one_fork_p): Simplify.
12660
12661 2020-01-17 Simon Marchi <simon.marchi@efficios.com>
12662
12663 * top.c (struct qt_args): Remove.
12664 (kill_or_detach): Change return type to void, replace `void *`
12665 parameter with a proper one.
12666 (print_inferior_quit_action): Likewise.
12667 (quit_confirm): Use range-based for loop to iterate over inferiors.
12668 (quit_force): Likewise.
12669
12670 2020-01-17 Simon Marchi <simon.marchi@efficios.com>
12671
12672 * mi/mi-main.c (run_one_inferior): Change return type to void, replace
12673 `void *` parameter with proper parameters.
12674 (mi_cmd_exec_run): Use range-based loop to iterate over inferiors.
12675 (print_one_inferior): Change return type to void, replace `void *`
12676 parameter with proper parameters.
12677 (mi_cmd_list_thread_groups): Use range-based loop to iterate over
12678 inferiors.
12679 (get_other_inferior): Remove.
12680 (mi_cmd_remove_inferior): Use range-based loop to iterate over
12681 inferiors.
12682
12683 2020-01-17 Simon Marchi <simon.marchi@efficios.com>
12684
12685 * mi/mi-interp.c (report_initial_inferior): Remove.
12686 (mi_interp::init): Use range-based for to iterate over inferiors.
12687
12688 2020-01-17 Simon Marchi <simon.marchi@efficios.com>
12689
12690 * python/py-inferior.c (build_inferior_list): Remove.
12691 (gdbpy_ref): Use range-based for loop to iterate over inferiors.
12692
12693 2020-01-16 Christian Biesinger <cbiesinger@google.com>
12694
12695 * btrace.c (btrace_compute_ftrace_1): Fix spelling error (Unkown).
12696 (btrace_stitch_trace): Likewise.
12697 * charset.c (intermediate_encoding): Likewise (vaild).
12698 * nat/linux-btrace.c (linux_read_pt): Likewise (Unkown).
12699 * python/py-record-btrace.c (struct PyMethodDef): Likewise (occurences).
12700 * record-btrace.c (record_btrace_print_conf): Likewise (unkown).
12701
12702 2020-01-16 Hannes Domani <ssbssa@yahoo.de>
12703
12704 * windows-tdep.c (windows_get_tlb_type):
12705 Add rtl_user_process_parameters type.
12706
12707 2020-01-16 Pedro Alves <palves@redhat.com>
12708 Norbert Lange <nolange79@gmail.com>
12709
12710 PR build/24805
12711 * gdbsupport/gdb_proc_service.h (PS_EXPORT): New.
12712 (ps_get_thread_area, ps_getpid, ps_lcontinue, ps_lgetfpregs)
12713 (ps_lgetregs, ps_lsetfpregs, ps_lsetregs, ps_lstop, ps_pcontinue)
12714 (ps_pdread, ps_pdwrite, ps_pglobal_lookup, ps_pstop, ps_ptread)
12715 (ps_ptwrite, ps_lgetxregs, ps_lgetxregsize, ps_lsetxregs)
12716 (ps_plog): Redeclare exported functions with default visibility.
12717
12718 2020-01-16 Nitika Achra <Nitika.Achra@amd.com>
12719
12720 * dwarf2loc.c (decode_debug_loclists_addresses): Handle
12721 DW_LLE_base_addressx, DW_LLE_startx_length, DW_LLE_start_length.
12722
12723 2020-01-15 Simon Marchi <simon.marchi@efficios.com>
12724
12725 * infcmd.c (post_create_inferior): Use get_thread_regcache
12726 instead of get_current_regcache.
12727
12728 2020-01-14 Tom Tromey <tom@tromey.com>
12729
12730 PR symtab/12535:
12731 * python/python.c (gdbpy_decode_line): Treat empty string the same
12732 as no argument.
12733
12734 2020-01-14 Tom Tromey <tom@tromey.com>
12735
12736 * Makefile.in (CLIBS): Remove second use of $(LIBIBERTY).
12737
12738 2020-01-14 Tom Tromey <tom@tromey.com>
12739
12740 * nat/linux-btrace.c: Don't include <config.h>.
12741 * nat/linux-ptrace.c: Don't include <config.h>.
12742 * nat/x86-linux-dregs.c: Don't include <config.h>.
12743
12744 2020-01-14 Tom Tromey <tom@tromey.com>
12745
12746 * configure: Rebuild.
12747 * configure.ac: Move many checks to ../gdbsupport/common.m4.
12748
12749 2020-01-14 Tom Tromey <tom@tromey.com>
12750
12751 * nat/x86-linux-dregs.c: Include configh.h.
12752 * nat/linux-ptrace.c: Include configh.h.
12753 * nat/linux-btrace.c: Include configh.h.
12754 * defs.h: Include config.h, bfd.h.
12755 * configure.ac: Don't source common.host.
12756 (CONFIG_OBS, CONFIG_SRCS): Remove gdbsupport files.
12757 * configure: Rebuild.
12758 * acinclude.m4: Update path.
12759 * Makefile.in (SUPPORT, LIBSUPPORT, INCSUPPORT): New variables.
12760 (CONFIG_SRC_SUBDIR): Remove gdbsupport.
12761 (INTERNAL_CFLAGS_BASE): Add INCSUPPORT.
12762 (CLIBS): Add LIBSUPPORT.
12763 (CDEPS): Likewise.
12764 (COMMON_SFILES): Remove gdbsupport files.
12765 (HFILES_NO_SRCDIR): Likewise.
12766 (stamp-version): Update path to create-version.sh.
12767 (ALLDEPFILES): Remove gdbsupport files.
12768
12769 2020-01-14 Tom Tromey <tom@tromey.com>
12770
12771 * gdbsupport/common.m4 (GDB_AC_COMMON): Define WIN32APILIBS and
12772 USE_WIN32API when needed.
12773 * configure.ac (USE_WIN32API): Don't define.
12774 (WIN32LIBS): Use WIN32APILIBS.
12775 * configure: Rebuild.
12776
12777 2020-01-14 Tom Tromey <tom@tromey.com>
12778
12779 * configure: Rebuild.
12780 * gdbsupport/common.m4 (GDB_AC_COMMON): Fix indentation.
12781
12782 2020-01-14 Bernd Edlinger <bernd.edlinger@hotmail.de>
12783
12784 * skip.c (skip_function_command): Make skip w/o arguments use the
12785 name of the inlined function if pc is inside any inlined function.
12786
12787 2020-01-14 Luis Machado <luis.machado@linaro.org>
12788
12789 * inf-ptrace.c (inf_ptrace_target::resume): Update comments.
12790 * infrun.c (resume_1): Likewise.
12791 (handle_inferior_event): Remove stale comment.
12792 * linux-nat.c (linux_nat_target::resume): Update comments.
12793 (save_stop_reason): Likewise.
12794 (linux_nat_filter_event): Likewise.
12795 * linux-nat.h (struct lwp_info) <stop_pc>, <stop_reason>: Likewise.
12796
12797 2020-01-13 Andrew Burgess <andrew.burgess@embecosm.com>
12798
12799 * elfread.c (record_minimal_symbol): Set section index to 0 for
12800 non-allocatable sections.
12801
12802
12803 2020-01-13 Ali Tamur <tamur@google.com>
12804
12805 * dwarf2read.c (dwarf2_debug_sections): Add debug_str_offsets sections.
12806 (dwarf2_cu): Add str_offsets_base field. Change the type of addr_base
12807 to gdb::optional. Update comments.
12808 (dwo_file): Update comments.
12809 (read_attribute): Update API to take an additional out parameter,
12810 need_reprocess. This is used to mark attributes that need other
12811 attributes (e.g. str_offsets_base) for correct computation which may not
12812 have been read yet.
12813 (read_attribute_reprocess): New function declaration.
12814 (read_addr_index): Likewise.
12815 (read_dwo_str_index): Likewise.
12816 (read_stub_str_index): Likewise.
12817 (dwarf2_per_objfile::locate_sections): Handle debug_str_offsets section.
12818 (lookup_addr_base): New function definition.
12819 (lookup_ranges_base): Likewise.
12820 (read_cutu_die_from_dwo): Use the new functions: lookup_addr_base,
12821 lookup_ranges_base.
12822 (init_cutu_and_read_dies): Update comments.
12823 (init_cutu_and_read_dies_no_follow): Change API to take parent compile
12824 unit. This is used to inherit parent's str_offsets_base and addr_base.
12825 Update comments.
12826 (init_cutu_and_read_dies_simple): Reflect API changes.
12827 (skip_one_die): Reflect API changes. Handle DW_FORM_rnglistx.
12828 (create_cus_hash_table): Change API to take parent compile unit.
12829 Reflect API changes.
12830 (open_and_init_dwo_file): Reflect API changes.
12831 (dwarf2_get_pc_bounds): Update comments.
12832 (dwarf2_record_block_ranges): Likewise.
12833 (read_full_die_1): Change implementation to reprocess attributes that
12834 need str_offsets_base and addr_base.
12835 (partial_die_info::read): Likewise.
12836 (read_attribute_reprocess): New function definition.
12837 (read_attribute_value): Change API to take an additional out parameter,
12838 need_reprocess. Handle DW_FORM_rnglistx. No longer trigger an error
12839 when a non-dwo compile unit has index based attributes.
12840 (read_attribute): Reflect API changes.
12841 (read_addr_index_1): Reflect API changes. Update comments.
12842 (dwarf2_read_addr_index_data): Reflect API changes.
12843 (dwarf2_read_addr_index): Likewise.
12844 (read_str_index): Change API and implementation. This becomes a helper
12845 to be used by the new string index related methods. Update error
12846 message and comments.
12847 (read_dwo_str_index): New function definition.
12848 (read_stub_str_index): Likewise.
12849 * dwarf2read.h (dwarf2_per_objfile): Add str_offsets field.
12850 * symfile.h (dwarf2_debug_sections): Likewise.
12851 * xcoffread.c (dwarf2_debug_sections): Likewise.
12852
12853 2020-01-13 Simon Marchi <simon.marchi@efficios.com>
12854
12855 * gdbcore.h (struct core_fns) <core_read_registers>: Change
12856 core_reg_sect type to gdb_byte *.
12857 * arm-nbsd-nat.c (fetch_elfcore_registers): Likewise.
12858 * cris-tdep.c (fetch_core_registers): Likewise.
12859 * corelow.c (core_target::get_core_register_section): Change
12860 type of `contents` to gdb::byte_vector.
12861
12862 2020-01-13 Andrew Burgess <andrew.burgess@embecosm.com>
12863
12864 * tui/tui-wingeneral.c (box_win): Position the title in the center
12865 of the border.
12866
12867 2020-01-13 Simon Marchi <simon.marchi@polymtl.ca>
12868
12869 * corelow.c (core_target::get_core_register_section): Use
12870 std::vector instead of alloca.
12871
12872 2020-01-13 Simon Marchi <simon.marchi@efficios.com>
12873
12874 * warning.m4: Add -Wmissing-declarations to build_warnings.
12875 * configure: Re-generate.
12876
12877 2020-01-13 Simon Marchi <simon.marchi@efficios.com>
12878
12879 * python/python.c (init__gdb_module): Add declaration.
12880
12881 2020-01-13 Simon Marchi <simon.marchi@efficios.com>
12882
12883 * aarch64-fbsd-nat.c (_initialize_aarch64_fbsd_nat): Add declaration.
12884 * aarch64-fbsd-tdep.c (_initialize_aarch64_fbsd_tdep): Add declaration.
12885 * aarch64-linux-nat.c (_initialize_aarch64_linux_nat): Add declaration.
12886 * aarch64-linux-tdep.c (_initialize_aarch64_linux_tdep): Add declaration.
12887 * aarch64-newlib-tdep.c (_initialize_aarch64_newlib_tdep): Add declaration.
12888 * aarch64-tdep.c (_initialize_aarch64_tdep): Add declaration.
12889 * ada-exp.y (_initialize_ada_exp): Add declaration.
12890 * ada-lang.c (_initialize_ada_language): Add declaration.
12891 * ada-tasks.c (_initialize_tasks): Add declaration.
12892 * agent.c (_initialize_agent): Add declaration.
12893 * aix-thread.c (_initialize_aix_thread): Add declaration.
12894 * alpha-bsd-nat.c (_initialize_alphabsd_nat): Add declaration.
12895 * alpha-linux-nat.c (_initialize_alpha_linux_nat): Add declaration.
12896 * alpha-linux-tdep.c (_initialize_alpha_linux_tdep): Add declaration.
12897 * alpha-nbsd-tdep.c (_initialize_alphanbsd_tdep): Add declaration.
12898 * alpha-obsd-tdep.c (_initialize_alphaobsd_tdep): Add declaration.
12899 * alpha-tdep.c (_initialize_alpha_tdep): Add declaration.
12900 * amd64-darwin-tdep.c (_initialize_amd64_darwin_tdep): Add declaration.
12901 * amd64-dicos-tdep.c (_initialize_amd64_dicos_tdep): Add declaration.
12902 * amd64-fbsd-nat.c (_initialize_amd64fbsd_nat): Add declaration.
12903 * amd64-fbsd-tdep.c (_initialize_amd64fbsd_tdep): Add declaration.
12904 * amd64-linux-nat.c (_initialize_amd64_linux_nat): Add declaration.
12905 * amd64-linux-tdep.c (_initialize_amd64_linux_tdep): Add declaration.
12906 * amd64-nbsd-nat.c (_initialize_amd64nbsd_nat): Add declaration.
12907 * amd64-nbsd-tdep.c (_initialize_amd64nbsd_tdep): Add declaration.
12908 * amd64-obsd-nat.c (_initialize_amd64obsd_nat): Add declaration.
12909 * amd64-obsd-tdep.c (_initialize_amd64obsd_tdep): Add declaration.
12910 * amd64-sol2-tdep.c (_initialize_amd64_sol2_tdep): Add declaration.
12911 * amd64-tdep.c (_initialize_amd64_tdep): Add declaration.
12912 * amd64-windows-nat.c (_initialize_amd64_windows_nat): Add declaration.
12913 * amd64-windows-tdep.c (_initialize_amd64_windows_tdep): Add declaration.
12914 * annotate.c (_initialize_annotate): Add declaration.
12915 * arc-newlib-tdep.c (_initialize_arc_newlib_tdep): Add declaration.
12916 * arc-tdep.c (_initialize_arc_tdep): Add declaration.
12917 * arch-utils.c (_initialize_gdbarch_utils): Add declaration.
12918 * arm-fbsd-nat.c (_initialize_arm_fbsd_nat): Add declaration.
12919 * arm-fbsd-tdep.c (_initialize_arm_fbsd_tdep): Add declaration.
12920 * arm-linux-nat.c (_initialize_arm_linux_nat): Add declaration.
12921 * arm-linux-tdep.c (_initialize_arm_linux_tdep): Add declaration.
12922 * arm-nbsd-nat.c (_initialize_arm_netbsd_nat): Add declaration.
12923 * arm-nbsd-tdep.c (_initialize_arm_netbsd_tdep): Add declaration.
12924 * arm-obsd-tdep.c (_initialize_armobsd_tdep): Add declaration.
12925 * arm-pikeos-tdep.c (_initialize_arm_pikeos_tdep): Add declaration.
12926 * arm-symbian-tdep.c (_initialize_arm_symbian_tdep): Add declaration.
12927 * arm-tdep.c (_initialize_arm_tdep): Add declaration.
12928 * arm-wince-tdep.c (_initialize_arm_wince_tdep): Add declaration.
12929 * auto-load.c (_initialize_auto_load): Add declaration.
12930 * auxv.c (_initialize_auxv): Add declaration.
12931 * avr-tdep.c (_initialize_avr_tdep): Add declaration.
12932 * ax-gdb.c (_initialize_ax_gdb): Add declaration.
12933 * bfin-linux-tdep.c (_initialize_bfin_linux_tdep): Add declaration.
12934 * bfin-tdep.c (_initialize_bfin_tdep): Add declaration.
12935 * break-catch-sig.c (_initialize_break_catch_sig): Add declaration.
12936 * break-catch-syscall.c (_initialize_break_catch_syscall): Add declaration.
12937 * break-catch-throw.c (_initialize_break_catch_throw): Add declaration.
12938 * breakpoint.c (_initialize_breakpoint): Add declaration.
12939 * bsd-uthread.c (_initialize_bsd_uthread): Add declaration.
12940 * btrace.c (_initialize_btrace): Add declaration.
12941 * charset.c (_initialize_charset): Add declaration.
12942 * cli/cli-cmds.c (_initialize_cli_cmds): Add declaration.
12943 * cli/cli-dump.c (_initialize_cli_dump): Add declaration.
12944 * cli/cli-interp.c (_initialize_cli_interp): Add declaration.
12945 * cli/cli-logging.c (_initialize_cli_logging): Add declaration.
12946 * cli/cli-script.c (_initialize_cli_script): Add declaration.
12947 * cli/cli-style.c (_initialize_cli_style): Add declaration.
12948 * coff-pe-read.c (_initialize_coff_pe_read): Add declaration.
12949 * coffread.c (_initialize_coffread): Add declaration.
12950 * compile/compile-cplus-types.c (_initialize_compile_cplus_types): Add declaration.
12951 * compile/compile.c (_initialize_compile): Add declaration.
12952 * complaints.c (_initialize_complaints): Add declaration.
12953 * completer.c (_initialize_completer): Add declaration.
12954 * copying.c (_initialize_copying): Add declaration.
12955 * corefile.c (_initialize_core): Add declaration.
12956 * corelow.c (_initialize_corelow): Add declaration.
12957 * cp-abi.c (_initialize_cp_abi): Add declaration.
12958 * cp-namespace.c (_initialize_cp_namespace): Add declaration.
12959 * cp-support.c (_initialize_cp_support): Add declaration.
12960 * cp-valprint.c (_initialize_cp_valprint): Add declaration.
12961 * cris-linux-tdep.c (_initialize_cris_linux_tdep): Add declaration.
12962 * cris-tdep.c (_initialize_cris_tdep): Add declaration.
12963 * csky-linux-tdep.c (_initialize_csky_linux_tdep): Add declaration.
12964 * csky-tdep.c (_initialize_csky_tdep): Add declaration.
12965 * ctfread.c (_initialize_ctfread): Add declaration.
12966 * d-lang.c (_initialize_d_language): Add declaration.
12967 * darwin-nat-info.c (_initialize_darwin_info_commands): Add declaration.
12968 * darwin-nat.c (_initialize_darwin_nat): Add declaration.
12969 * dbxread.c (_initialize_dbxread): Add declaration.
12970 * dcache.c (_initialize_dcache): Add declaration.
12971 * disasm-selftests.c (_initialize_disasm_selftests): Add declaration.
12972 * disasm.c (_initialize_disasm): Add declaration.
12973 * dtrace-probe.c (_initialize_dtrace_probe): Add declaration.
12974 * dummy-frame.c (_initialize_dummy_frame): Add declaration.
12975 * dwarf-index-cache.c (_initialize_index_cache): Add declaration.
12976 * dwarf-index-write.c (_initialize_dwarf_index_write): Add declaration.
12977 * dwarf2-frame-tailcall.c (_initialize_tailcall_frame): Add declaration.
12978 * dwarf2-frame.c (_initialize_dwarf2_frame): Add declaration.
12979 * dwarf2expr.c (_initialize_dwarf2expr): Add declaration.
12980 * dwarf2loc.c (_initialize_dwarf2loc): Add declaration.
12981 * dwarf2read.c (_initialize_dwarf2_read): Add declaration.
12982 * elfread.c (_initialize_elfread): Add declaration.
12983 * exec.c (_initialize_exec): Add declaration.
12984 * extension.c (_initialize_extension): Add declaration.
12985 * f-lang.c (_initialize_f_language): Add declaration.
12986 * f-valprint.c (_initialize_f_valprint): Add declaration.
12987 * fbsd-nat.c (_initialize_fbsd_nat): Add declaration.
12988 * fbsd-tdep.c (_initialize_fbsd_tdep): Add declaration.
12989 * filesystem.c (_initialize_filesystem): Add declaration.
12990 * findcmd.c (_initialize_mem_search): Add declaration.
12991 * findvar.c (_initialize_findvar): Add declaration.
12992 * fork-child.c (_initialize_fork_child): Add declaration.
12993 * frame-base.c (_initialize_frame_base): Add declaration.
12994 * frame-unwind.c (_initialize_frame_unwind): Add declaration.
12995 * frame.c (_initialize_frame): Add declaration.
12996 * frv-linux-tdep.c (_initialize_frv_linux_tdep): Add declaration.
12997 * frv-tdep.c (_initialize_frv_tdep): Add declaration.
12998 * ft32-tdep.c (_initialize_ft32_tdep): Add declaration.
12999 * gcore.c (_initialize_gcore): Add declaration.
13000 * gdb-demangle.c (_initialize_gdb_demangle): Add declaration.
13001 * gdb_bfd.c (_initialize_gdb_bfd): Add declaration.
13002 * gdbarch-selftests.c (_initialize_gdbarch_selftests): Add declaration.
13003 * gdbarch.c (_initialize_gdbarch): Add declaration.
13004 * gdbtypes.c (_initialize_gdbtypes): Add declaration.
13005 * gnu-nat.c (_initialize_gnu_nat): Add declaration.
13006 * gnu-v2-abi.c (_initialize_gnu_v2_abi): Add declaration.
13007 * gnu-v3-abi.c (_initialize_gnu_v3_abi): Add declaration.
13008 * go-lang.c (_initialize_go_language): Add declaration.
13009 * go32-nat.c (_initialize_go32_nat): Add declaration.
13010 * guile/guile.c (_initialize_guile): Add declaration.
13011 * h8300-tdep.c (_initialize_h8300_tdep): Add declaration.
13012 * hppa-linux-nat.c (_initialize_hppa_linux_nat): Add declaration.
13013 * hppa-linux-tdep.c (_initialize_hppa_linux_tdep): Add declaration.
13014 * hppa-nbsd-nat.c (_initialize_hppanbsd_nat): Add declaration.
13015 * hppa-nbsd-tdep.c (_initialize_hppanbsd_tdep): Add declaration.
13016 * hppa-obsd-nat.c (_initialize_hppaobsd_nat): Add declaration.
13017 * hppa-obsd-tdep.c (_initialize_hppabsd_tdep): Add declaration.
13018 * hppa-tdep.c (_initialize_hppa_tdep): Add declaration.
13019 * i386-bsd-nat.c (_initialize_i386bsd_nat): Add declaration.
13020 * i386-cygwin-tdep.c (_initialize_i386_cygwin_tdep): Add declaration.
13021 * i386-darwin-nat.c (_initialize_i386_darwin_nat): Add declaration.
13022 * i386-darwin-tdep.c (_initialize_i386_darwin_tdep): Add declaration.
13023 * i386-dicos-tdep.c (_initialize_i386_dicos_tdep): Add declaration.
13024 * i386-fbsd-nat.c (_initialize_i386fbsd_nat): Add declaration.
13025 * i386-fbsd-tdep.c (_initialize_i386fbsd_tdep): Add declaration.
13026 * i386-gnu-nat.c (_initialize_i386gnu_nat): Add declaration.
13027 * i386-gnu-tdep.c (_initialize_i386gnu_tdep): Add declaration.
13028 * i386-go32-tdep.c (_initialize_i386_go32_tdep): Add declaration.
13029 * i386-linux-nat.c (_initialize_i386_linux_nat): Add declaration.
13030 * i386-linux-tdep.c (_initialize_i386_linux_tdep): Add declaration.
13031 * i386-nbsd-nat.c (_initialize_i386nbsd_nat): Add declaration.
13032 * i386-nbsd-tdep.c (_initialize_i386nbsd_tdep): Add declaration.
13033 * i386-nto-tdep.c (_initialize_i386nto_tdep): Add declaration.
13034 * i386-obsd-nat.c (_initialize_i386obsd_nat): Add declaration.
13035 * i386-obsd-tdep.c (_initialize_i386obsd_tdep): Add declaration.
13036 * i386-sol2-nat.c (_initialize_amd64_sol2_nat): Add declaration.
13037 * i386-sol2-tdep.c (_initialize_i386_sol2_tdep): Add declaration.
13038 * i386-tdep.c (_initialize_i386_tdep): Add declaration.
13039 * i386-windows-nat.c (_initialize_i386_windows_nat): Add declaration.
13040 * ia64-libunwind-tdep.c (_initialize_libunwind_frame): Add declaration.
13041 * ia64-linux-nat.c (_initialize_ia64_linux_nat): Add declaration.
13042 * ia64-linux-tdep.c (_initialize_ia64_linux_tdep): Add declaration.
13043 * ia64-tdep.c (_initialize_ia64_tdep): Add declaration.
13044 * ia64-vms-tdep.c (_initialize_ia64_vms_tdep): Add declaration.
13045 * infcall.c (_initialize_infcall): Add declaration.
13046 * infcmd.c (_initialize_infcmd): Add declaration.
13047 * inflow.c (_initialize_inflow): Add declaration.
13048 * infrun.c (_initialize_infrun): Add declaration.
13049 * interps.c (_initialize_interpreter): Add declaration.
13050 * iq2000-tdep.c (_initialize_iq2000_tdep): Add declaration.
13051 * jit.c (_initialize_jit): Add declaration.
13052 * language.c (_initialize_language): Add declaration.
13053 * linux-fork.c (_initialize_linux_fork): Add declaration.
13054 * linux-nat.c (_initialize_linux_nat): Add declaration.
13055 * linux-tdep.c (_initialize_linux_tdep): Add declaration.
13056 * linux-thread-db.c (_initialize_thread_db): Add declaration.
13057 * lm32-tdep.c (_initialize_lm32_tdep): Add declaration.
13058 * m2-lang.c (_initialize_m2_language): Add declaration.
13059 * m32c-tdep.c (_initialize_m32c_tdep): Add declaration.
13060 * m32r-linux-nat.c (_initialize_m32r_linux_nat): Add declaration.
13061 * m32r-linux-tdep.c (_initialize_m32r_linux_tdep): Add declaration.
13062 * m32r-tdep.c (_initialize_m32r_tdep): Add declaration.
13063 * m68hc11-tdep.c (_initialize_m68hc11_tdep): Add declaration.
13064 * m68k-bsd-nat.c (_initialize_m68kbsd_nat): Add declaration.
13065 * m68k-bsd-tdep.c (_initialize_m68kbsd_tdep): Add declaration.
13066 * m68k-linux-nat.c (_initialize_m68k_linux_nat): Add declaration.
13067 * m68k-linux-tdep.c (_initialize_m68k_linux_tdep): Add declaration.
13068 * m68k-tdep.c (_initialize_m68k_tdep): Add declaration.
13069 * machoread.c (_initialize_machoread): Add declaration.
13070 * macrocmd.c (_initialize_macrocmd): Add declaration.
13071 * macroscope.c (_initialize_macroscope): Add declaration.
13072 * maint-test-options.c (_initialize_maint_test_options): Add declaration.
13073 * maint-test-settings.c (_initialize_maint_test_settings): Add declaration.
13074 * maint.c (_initialize_maint_cmds): Add declaration.
13075 * mdebugread.c (_initialize_mdebugread): Add declaration.
13076 * memattr.c (_initialize_mem): Add declaration.
13077 * mep-tdep.c (_initialize_mep_tdep): Add declaration.
13078 * mi/mi-cmd-env.c (_initialize_mi_cmd_env): Add declaration.
13079 * mi/mi-cmds.c (_initialize_mi_cmds): Add declaration.
13080 * mi/mi-interp.c (_initialize_mi_interp): Add declaration.
13081 * mi/mi-main.c (_initialize_mi_main): Add declaration.
13082 * microblaze-linux-tdep.c (_initialize_microblaze_linux_tdep): Add declaration.
13083 * microblaze-tdep.c (_initialize_microblaze_tdep): Add declaration.
13084 * mips-fbsd-nat.c (_initialize_mips_fbsd_nat): Add declaration.
13085 * mips-fbsd-tdep.c (_initialize_mips_fbsd_tdep): Add declaration.
13086 * mips-linux-nat.c (_initialize_mips_linux_nat): Add declaration.
13087 * mips-linux-tdep.c (_initialize_mips_linux_tdep): Add declaration.
13088 * mips-nbsd-nat.c (_initialize_mipsnbsd_nat): Add declaration.
13089 * mips-nbsd-tdep.c (_initialize_mipsnbsd_tdep): Add declaration.
13090 * mips-sde-tdep.c (_initialize_mips_sde_tdep): Add declaration.
13091 * mips-tdep.c (_initialize_mips_tdep): Add declaration.
13092 * mips64-obsd-nat.c (_initialize_mips64obsd_nat): Add declaration.
13093 * mips64-obsd-tdep.c (_initialize_mips64obsd_tdep): Add declaration.
13094 * mipsread.c (_initialize_mipsread): Add declaration.
13095 * mn10300-linux-tdep.c (_initialize_mn10300_linux_tdep): Add declaration.
13096 * mn10300-tdep.c (_initialize_mn10300_tdep): Add declaration.
13097 * moxie-tdep.c (_initialize_moxie_tdep): Add declaration.
13098 * msp430-tdep.c (_initialize_msp430_tdep): Add declaration.
13099 * nds32-tdep.c (_initialize_nds32_tdep): Add declaration.
13100 * nios2-linux-tdep.c (_initialize_nios2_linux_tdep): Add declaration.
13101 * nios2-tdep.c (_initialize_nios2_tdep): Add declaration.
13102 * nto-procfs.c (_initialize_procfs): Add declaration.
13103 * objc-lang.c (_initialize_objc_language): Add declaration.
13104 * observable.c (_initialize_observer): Add declaration.
13105 * opencl-lang.c (_initialize_opencl_language): Add declaration.
13106 * or1k-linux-tdep.c (_initialize_or1k_linux_tdep): Add declaration.
13107 * or1k-tdep.c (_initialize_or1k_tdep): Add declaration.
13108 * osabi.c (_initialize_gdb_osabi): Add declaration.
13109 * osdata.c (_initialize_osdata): Add declaration.
13110 * p-valprint.c (_initialize_pascal_valprint): Add declaration.
13111 * parse.c (_initialize_parse): Add declaration.
13112 * ppc-fbsd-nat.c (_initialize_ppcfbsd_nat): Add declaration.
13113 * ppc-fbsd-tdep.c (_initialize_ppcfbsd_tdep): Add declaration.
13114 * ppc-linux-nat.c (_initialize_ppc_linux_nat): Add declaration.
13115 * ppc-linux-tdep.c (_initialize_ppc_linux_tdep): Add declaration.
13116 * ppc-nbsd-nat.c (_initialize_ppcnbsd_nat): Add declaration.
13117 * ppc-nbsd-tdep.c (_initialize_ppcnbsd_tdep): Add declaration.
13118 * ppc-obsd-nat.c (_initialize_ppcobsd_nat): Add declaration.
13119 * ppc-obsd-tdep.c (_initialize_ppcobsd_tdep): Add declaration.
13120 * printcmd.c (_initialize_printcmd): Add declaration.
13121 * probe.c (_initialize_probe): Add declaration.
13122 * proc-api.c (_initialize_proc_api): Add declaration.
13123 * proc-events.c (_initialize_proc_events): Add declaration.
13124 * proc-service.c (_initialize_proc_service): Add declaration.
13125 * procfs.c (_initialize_procfs): Add declaration.
13126 * producer.c (_initialize_producer): Add declaration.
13127 * psymtab.c (_initialize_psymtab): Add declaration.
13128 * python/python.c (_initialize_python): Add declaration.
13129 * ravenscar-thread.c (_initialize_ravenscar): Add declaration.
13130 * record-btrace.c (_initialize_record_btrace): Add declaration.
13131 * record-full.c (_initialize_record_full): Add declaration.
13132 * record.c (_initialize_record): Add declaration.
13133 * regcache-dump.c (_initialize_regcache_dump): Add declaration.
13134 * regcache.c (_initialize_regcache): Add declaration.
13135 * reggroups.c (_initialize_reggroup): Add declaration.
13136 * remote-notif.c (_initialize_notif): Add declaration.
13137 * remote-sim.c (_initialize_remote_sim): Add declaration.
13138 * remote.c (_initialize_remote): Add declaration.
13139 * reverse.c (_initialize_reverse): Add declaration.
13140 * riscv-fbsd-nat.c (_initialize_riscv_fbsd_nat): Add declaration.
13141 * riscv-fbsd-tdep.c (_initialize_riscv_fbsd_tdep): Add declaration.
13142 * riscv-linux-nat.c (_initialize_riscv_linux_nat): Add declaration.
13143 * riscv-linux-tdep.c (_initialize_riscv_linux_tdep): Add declaration.
13144 * riscv-tdep.c (_initialize_riscv_tdep): Add declaration.
13145 * rl78-tdep.c (_initialize_rl78_tdep): Add declaration.
13146 * rs6000-aix-tdep.c (_initialize_rs6000_aix_tdep): Add declaration.
13147 * rs6000-lynx178-tdep.c (_initialize_rs6000_lynx178_tdep):
13148 Add declaration.
13149 * rs6000-nat.c (_initialize_rs6000_nat): Add declaration.
13150 * rs6000-tdep.c (_initialize_rs6000_tdep): Add declaration.
13151 * run-on-main-thread.c (_initialize_run_on_main_thread): Add declaration.
13152 * rust-exp.y (_initialize_rust_exp): Add declaration.
13153 * rx-tdep.c (_initialize_rx_tdep): Add declaration.
13154 * s12z-tdep.c (_initialize_s12z_tdep): Add declaration.
13155 * s390-linux-nat.c (_initialize_s390_nat): Add declaration.
13156 * s390-linux-tdep.c (_initialize_s390_linux_tdep): Add declaration.
13157 * s390-tdep.c (_initialize_s390_tdep): Add declaration.
13158 * score-tdep.c (_initialize_score_tdep): Add declaration.
13159 * ser-go32.c (_initialize_ser_dos): Add declaration.
13160 * ser-mingw.c (_initialize_ser_windows): Add declaration.
13161 * ser-pipe.c (_initialize_ser_pipe): Add declaration.
13162 * ser-tcp.c (_initialize_ser_tcp): Add declaration.
13163 * ser-uds.c (_initialize_ser_socket): Add declaration.
13164 * ser-unix.c (_initialize_ser_hardwire): Add declaration.
13165 * serial.c (_initialize_serial): Add declaration.
13166 * sh-linux-tdep.c (_initialize_sh_linux_tdep): Add declaration.
13167 * sh-nbsd-nat.c (_initialize_shnbsd_nat): Add declaration.
13168 * sh-nbsd-tdep.c (_initialize_shnbsd_tdep): Add declaration.
13169 * sh-tdep.c (_initialize_sh_tdep): Add declaration.
13170 * skip.c (_initialize_step_skip): Add declaration.
13171 * sol-thread.c (_initialize_sol_thread): Add declaration.
13172 * solib-aix.c (_initialize_solib_aix): Add declaration.
13173 * solib-darwin.c (_initialize_darwin_solib): Add declaration.
13174 * solib-dsbt.c (_initialize_dsbt_solib): Add declaration.
13175 * solib-frv.c (_initialize_frv_solib): Add declaration.
13176 * solib-svr4.c (_initialize_svr4_solib): Add declaration.
13177 * solib-target.c (_initialize_solib_target): Add declaration.
13178 * solib.c (_initialize_solib): Add declaration.
13179 * source-cache.c (_initialize_source_cache): Add declaration.
13180 * source.c (_initialize_source): Add declaration.
13181 * sparc-linux-nat.c (_initialize_sparc_linux_nat): Add declaration.
13182 * sparc-linux-tdep.c (_initialize_sparc_linux_tdep): Add declaration.
13183 * sparc-nat.c (_initialize_sparc_nat): Add declaration.
13184 * sparc-nbsd-nat.c (_initialize_sparcnbsd_nat): Add declaration.
13185 * sparc-nbsd-tdep.c (_initialize_sparcnbsd_tdep): Add declaration.
13186 * sparc-obsd-tdep.c (_initialize_sparc32obsd_tdep): Add declaration.
13187 * sparc-sol2-tdep.c (_initialize_sparc_sol2_tdep): Add declaration.
13188 * sparc-tdep.c (_initialize_sparc_tdep): Add declaration.
13189 * sparc64-fbsd-nat.c (_initialize_sparc64fbsd_nat): Add declaration.
13190 * sparc64-fbsd-tdep.c (_initialize_sparc64fbsd_tdep): Add declaration.
13191 * sparc64-linux-nat.c (_initialize_sparc64_linux_nat): Add declaration.
13192 * sparc64-linux-tdep.c (_initialize_sparc64_linux_tdep): Add declaration.
13193 * sparc64-nat.c (_initialize_sparc64_nat): Add declaration.
13194 * sparc64-nbsd-nat.c (_initialize_sparc64nbsd_nat): Add declaration.
13195 * sparc64-nbsd-tdep.c (_initialize_sparc64nbsd_tdep): Add declaration.
13196 * sparc64-obsd-nat.c (_initialize_sparc64obsd_nat): Add declaration.
13197 * sparc64-obsd-tdep.c (_initialize_sparc64obsd_tdep): Add declaration.
13198 * sparc64-sol2-tdep.c (_initialize_sparc64_sol2_tdep): Add declaration.
13199 * sparc64-tdep.c (_initialize_sparc64_adi_tdep): Add declaration.
13200 * stabsread.c (_initialize_stabsread): Add declaration.
13201 * stack.c (_initialize_stack): Add declaration.
13202 * stap-probe.c (_initialize_stap_probe): Add declaration.
13203 * std-regs.c (_initialize_frame_reg): Add declaration.
13204 * symfile-debug.c (_initialize_symfile_debug): Add declaration.
13205 * symfile-mem.c (_initialize_symfile_mem): Add declaration.
13206 * symfile.c (_initialize_symfile): Add declaration.
13207 * symmisc.c (_initialize_symmisc): Add declaration.
13208 * symtab.c (_initialize_symtab): Add declaration.
13209 * target.c (_initialize_target): Add declaration.
13210 * target-connection.c (_initialize_target_connection): Add
13211 declaration.
13212 * target-dcache.c (_initialize_target_dcache): Add declaration.
13213 * target-descriptions.c (_initialize_target_descriptions): Add declaration.
13214 * thread.c (_initialize_thread): Add declaration.
13215 * tic6x-linux-tdep.c (_initialize_tic6x_linux_tdep): Add declaration.
13216 * tic6x-tdep.c (_initialize_tic6x_tdep): Add declaration.
13217 * tilegx-linux-nat.c (_initialize_tile_linux_nat): Add declaration.
13218 * tilegx-linux-tdep.c (_initialize_tilegx_linux_tdep): Add declaration.
13219 * tilegx-tdep.c (_initialize_tilegx_tdep): Add declaration.
13220 * tracectf.c (_initialize_ctf): Add declaration.
13221 * tracefile-tfile.c (_initialize_tracefile_tfile): Add declaration.
13222 * tracefile.c (_initialize_tracefile): Add declaration.
13223 * tracepoint.c (_initialize_tracepoint): Add declaration.
13224 * tui/tui-hooks.c (_initialize_tui_hooks): Add declaration.
13225 * tui/tui-interp.c (_initialize_tui_interp): Add declaration.
13226 * tui/tui-layout.c (_initialize_tui_layout): Add declaration.
13227 * tui/tui-regs.c (_initialize_tui_regs): Add declaration.
13228 * tui/tui-stack.c (_initialize_tui_stack): Add declaration.
13229 * tui/tui-win.c (_initialize_tui_win): Add declaration.
13230 * tui/tui.c (_initialize_tui): Add declaration.
13231 * typeprint.c (_initialize_typeprint): Add declaration.
13232 * ui-style.c (_initialize_ui_style): Add declaration.
13233 * unittests/array-view-selftests.c (_initialize_array_view_selftests): Add declaration.
13234 * unittests/child-path-selftests.c (_initialize_child_path_selftests): Add declaration.
13235 * unittests/cli-utils-selftests.c (_initialize_cli_utils_selftests): Add declaration.
13236 * unittests/common-utils-selftests.c (_initialize_common_utils_selftests): Add declaration.
13237 * unittests/copy_bitwise-selftests.c (_initialize_copy_bitwise_utils_selftests): Add declaration.
13238 * unittests/environ-selftests.c (_initialize_environ_selftests): Add declaration.
13239 * unittests/filtered_iterator-selftests.c
13240 (_initialize_filtered_iterator_selftests): Add declaration.
13241 * unittests/format_pieces-selftests.c (_initialize_format_pieces_selftests): Add declaration.
13242 * unittests/function-view-selftests.c (_initialize_function_view_selftests): Add declaration.
13243 * unittests/help-doc-selftests.c (_initialize_help_doc_selftests): Add declaration.
13244 * unittests/lookup_name_info-selftests.c (_initialize_lookup_name_info_selftests): Add declaration.
13245 * unittests/main-thread-selftests.c
13246 (_initialize_main_thread_selftests): Add declaration.
13247 * unittests/memory-map-selftests.c (_initialize_memory_map_selftests): Add declaration.
13248 * unittests/memrange-selftests.c (_initialize_memrange_selftests): Add declaration.
13249 * unittests/mkdir-recursive-selftests.c (_initialize_mkdir_recursive_selftests): Add declaration.
13250 * unittests/observable-selftests.c (_initialize_observer_selftest): Add declaration.
13251 * unittests/offset-type-selftests.c (_initialize_offset_type_selftests): Add declaration.
13252 * unittests/optional-selftests.c (_initialize_optional_selftests): Add declaration.
13253 * unittests/parse-connection-spec-selftests.c (_initialize_parse_connection_spec_selftests): Add declaration.
13254 * unittests/rsp-low-selftests.c (_initialize_rsp_low_selftests): Add declaration.
13255 * unittests/scoped_fd-selftests.c (_initialize_scoped_fd_selftests): Add declaration.
13256 * unittests/scoped_mmap-selftests.c (_initialize_scoped_mmap_selftests): Add declaration.
13257 * unittests/scoped_restore-selftests.c (_initialize_scoped_restore_selftests): Add declaration.
13258 * unittests/string_view-selftests.c (_initialize_string_view_selftests): Add declaration.
13259 * unittests/style-selftests.c (_initialize_style_selftest): Add declaration.
13260 * unittests/tracepoint-selftests.c (_initialize_tracepoint_selftests): Add declaration.
13261 * unittests/tui-selftests.c (_initialize_tui_selftest): Add
13262 declaration.
13263 * unittests/unpack-selftests.c (_initialize_unpack_selftests): Add declaration.
13264 * unittests/utils-selftests.c (_initialize_utils_selftests): Add declaration.
13265 * unittests/vec-utils-selftests.c (_initialize_vec_utils_selftests): Add declaration.
13266 * unittests/xml-utils-selftests.c (_initialize_xml_utils): Add declaration.
13267 * user-regs.c (_initialize_user_regs): Add declaration.
13268 * utils.c (_initialize_utils): Add declaration.
13269 * v850-tdep.c (_initialize_v850_tdep): Add declaration.
13270 * valops.c (_initialize_valops): Add declaration.
13271 * valprint.c (_initialize_valprint): Add declaration.
13272 * value.c (_initialize_values): Add declaration.
13273 * varobj.c (_initialize_varobj): Add declaration.
13274 * vax-bsd-nat.c (_initialize_vaxbsd_nat): Add declaration.
13275 * vax-nbsd-tdep.c (_initialize_vaxnbsd_tdep): Add declaration.
13276 * vax-tdep.c (_initialize_vax_tdep): Add declaration.
13277 * windows-nat.c (_initialize_windows_nat): Add declaration.
13278 (_initialize_check_for_gdb_ini): Add declaration.
13279 (_initialize_loadable): Add declaration.
13280 * windows-tdep.c (_initialize_windows_tdep): Add declaration.
13281 * x86-bsd-nat.c (_initialize_x86_bsd_nat): Add declaration.
13282 * x86-linux-nat.c (_initialize_x86_linux_nat): Add declaration.
13283 * xcoffread.c (_initialize_xcoffread): Add declaration.
13284 * xml-support.c (_initialize_xml_support): Add declaration.
13285 * xstormy16-tdep.c (_initialize_xstormy16_tdep): Add declaration.
13286 * xtensa-linux-nat.c (_initialize_xtensa_linux_nat): Add declaration.
13287 * xtensa-linux-tdep.c (_initialize_xtensa_linux_tdep): Add declaration.
13288 * xtensa-tdep.c (_initialize_xtensa_tdep): Add declaration.
13289
13290 2020-01-13 Simon Marchi <simon.marchi@polymtl.ca>
13291
13292 * regformats/regdat.sh: Generate declaration for init function.
13293
13294 2020-01-13 Simon Marchi <simon.marchi@polymtl.ca>
13295
13296 * remote-sim.c (next_pid, INITIAL_PID, sim_inferior_data): Move
13297 up.
13298 (gdbsim_target) <get_inferior_data_by_ptid, resume_one_inferior,
13299 close_one_inferior>: New methods.
13300 (get_sim_inferior_data_by_ptid): Move to gdbsim_target,
13301 pass down target to find_inferior_pid.
13302 (gdbsim_target::fetch_registers, gdbsim_target::store_registers):
13303 Pass down target to find_inferior_ptid.
13304 (gdbsim_target::create_inferior): Pass down target to
13305 add_thread_silent.
13306 (gdbsim_close_inferior): Move to gdbsim_close_inferior, pass
13307 target down to find_inferior_ptid and switch_to_thread.
13308 (gdbsim_target::close): Update to call close_one_inferior.
13309 (struct resume_data): Remove.
13310 (gdbsim_resume_inferior): Move to gdbsim_target. Take arguments
13311 directly, rather than through a void pointer.
13312 (gdbsim_target::resume): Update to call resume_one_inferior.
13313
13314 2020-01-12 Simon Marchi <simon.marchi@polymtl.ca>
13315
13316 * gdbsupport/gdb_wait.c: Include gdb_wait.h.
13317
13318 2020-01-12 Pedro Alves <palves@redhat.com>
13319
13320 * bsd-kvm.c (bsd_kvm_target::close): Call exit_inferior_silent
13321 directly for the current inferior instead of
13322 discard_all_inferiors.
13323 (discard_all_inferiors): Delete.
13324
13325 2020-01-11 Tom Tromey <tom@tromey.com>
13326
13327 * tui/tui-wingeneral.c (box_win): Check cli_styling.
13328 * tui/tui-winsource.c (tui_source_window_base::refill): Use
13329 deprecated_safe_get_selected_frame.
13330
13331 2020-01-10 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
13332
13333 * inferior.c (print_inferior): Switch inferior before printing it.
13334
13335 2020-01-10 Aleksandar Paunovic <aleksandar.paunovic@intel.com>
13336 Pedro Alves <palves@redhat.com>
13337
13338 * progspace-and-thread.c (switch_to_program_space_and_thread):
13339 Assert there's an inferior for PSPACE. Use
13340 switch_to_inferior_no_thread to switch the inferior too.
13341 * progspace.c (program_space::~program_space): Call
13342 clear_symtab_users here, with SYMFILE_DEFER_BP_RESET.
13343 (program_space::free_all_objfiles): Don't call clear_symtab_users
13344 here.
13345 * symfile.c (symbol_file_clear): Call clear_symtab_users here.
13346
13347 2020-01-10 Pedro Alves <palves@redhat.com>
13348
13349 * NEWS: Mention multi-target debugging, "info connections", and
13350 "add-inferior -no-connection".
13351
13352 2020-01-10 Pedro Alves <palves@redhat.com>
13353
13354 * infrun.c: Include "target-connection.h".
13355 (check_multi_target_resumption): New.
13356 (proceed): Call it.
13357 * target-connection.c (make_target_connection_string): Make
13358 extern.
13359 * target-connection.h (make_target_connection_string): Declare.
13360
13361 2020-01-10 Pedro Alves <palves@redhat.com>
13362
13363 * Makefile.in (COMMON_SFILES): Add target-connection.c.
13364 * inferior.c (uiout_field_connection): New function.
13365 (print_inferior): Add new "connection-id" column.
13366 (add_inferior_command): Show connection number/string of added
13367 inferior.
13368 * process-stratum-target.h
13369 (process_stratum_target::connection_string): New virtual method.
13370 (process_stratum_target::connection_number): New field.
13371 * remote.c (remote_target::connection_string): New override.
13372 * target-connection.c: New file.
13373 * target-connection.h: New file.
13374 * target.c (decref_target): Remove process_stratum targets from
13375 the connection list.
13376 (target_stack::push): Add process_stratum targets to the
13377 connection list.
13378
13379 2020-01-10 Pedro Alves <palves@redhat.com>
13380
13381 Revert:
13382 2016-04-12 Pedro Alves <palves@redhat.com>
13383 * serial.c (serial_open, serial_fdopen_ops, do_serial_close):
13384 Remove references to name.
13385 * serial.h (struct serial) <name>: Delete.
13386
13387 2020-01-10 Pedro Alves <palves@redhat.com>
13388
13389 * gdbarch-selftests.c (register_to_value_test): Remove "target
13390 already pushed" check.
13391
13392 2020-01-10 Pedro Alves <palves@redhat.com>
13393 John Baldwin <jhb@FreeBSD.org>
13394
13395 * aarch64-linux-nat.c
13396 (aarch64_linux_nat_target::thread_architecture): Adjust.
13397 * ada-tasks.c (print_ada_task_info): Adjust find_thread_ptid call.
13398 (task_command_1): Likewise.
13399 * aix-thread.c (sync_threadlists, aix_thread_target::resume)
13400 (aix_thread_target::wait, aix_thread_target::fetch_registers)
13401 (aix_thread_target::store_registers)
13402 (aix_thread_target::thread_alive): Adjust.
13403 * amd64-fbsd-tdep.c: Include "inferior.h".
13404 (amd64fbsd_get_thread_local_address): Pass down target.
13405 * amd64-linux-nat.c (ps_get_thread_area): Use ps_prochandle
13406 thread's gdbarch instead of target_gdbarch.
13407 * break-catch-sig.c (signal_catchpoint_print_it): Adjust call to
13408 get_last_target_status.
13409 * break-catch-syscall.c (print_it_catch_syscall): Likewise.
13410 * breakpoint.c (breakpoints_should_be_inserted_now): Consider all
13411 inferiors.
13412 (update_inserted_breakpoint_locations): Skip if inferiors with no
13413 execution.
13414 (update_global_location_list): When handling moribund locations,
13415 find representative inferior for location's pspace, and use thread
13416 count of its process_stratum target.
13417 * bsd-kvm.c (bsd_kvm_target_open): Pass target down.
13418 * bsd-uthread.c (bsd_uthread_target::wait): Use
13419 as_process_stratum_target and adjust thread_change_ptid and
13420 add_thread calls.
13421 (bsd_uthread_target::update_thread_list): Use
13422 as_process_stratum_target and adjust find_thread_ptid,
13423 thread_change_ptid and add_thread calls.
13424 * btrace.c (maint_btrace_packet_history_cmd): Adjust
13425 find_thread_ptid call.
13426 * corelow.c (add_to_thread_list): Adjust add_thread call.
13427 (core_target_open): Adjust add_thread_silent and thread_count
13428 calls.
13429 (core_target::pid_to_str): Adjust find_inferior_ptid call.
13430 * ctf.c (ctf_target_open): Adjust add_thread_silent call.
13431 * event-top.c (async_disconnect): Pop targets from all inferiors.
13432 * exec.c (add_target_sections): Push exec target on all inferiors
13433 sharing the program space.
13434 (remove_target_sections): Remove the exec target from all
13435 inferiors sharing the program space.
13436 (exec_on_vfork): New.
13437 * exec.h (exec_on_vfork): Declare.
13438 * fbsd-nat.c (fbsd_add_threads): Add fbsd_nat_target parameter.
13439 Pass it down.
13440 (fbsd_nat_target::update_thread_list): Adjust.
13441 (fbsd_nat_target::resume): Adjust.
13442 (fbsd_handle_debug_trap): Add fbsd_nat_target parameter. Pass it
13443 down.
13444 (fbsd_nat_target::wait, fbsd_nat_target::post_attach): Adjust.
13445 * fbsd-tdep.c (fbsd_corefile_thread): Adjust
13446 get_thread_arch_regcache call.
13447 * fork-child.c (gdb_startup_inferior): Pass target down to
13448 startup_inferior and set_executing.
13449 * gdbthread.h (struct process_stratum_target): Forward declare.
13450 (add_thread, add_thread_silent, add_thread_with_info)
13451 (in_thread_list): Add process_stratum_target parameter.
13452 (find_thread_ptid(inferior*, ptid_t)): New overload.
13453 (find_thread_ptid, thread_change_ptid): Add process_stratum_target
13454 parameter.
13455 (all_threads()): Delete overload.
13456 (all_threads, all_non_exited_threads): Add process_stratum_target
13457 parameter.
13458 (all_threads_safe): Use brace initialization.
13459 (thread_count): Add process_stratum_target parameter.
13460 (set_resumed, set_running, set_stop_requested, set_executing)
13461 (threads_are_executing, finish_thread_state): Add
13462 process_stratum_target parameter.
13463 (switch_to_thread): Use is_current_thread.
13464 * i386-fbsd-tdep.c: Include "inferior.h".
13465 (i386fbsd_get_thread_local_address): Pass down target.
13466 * i386-linux-nat.c (i386_linux_nat_target::low_resume): Adjust.
13467 * inf-child.c (inf_child_target::maybe_unpush_target): Remove
13468 have_inferiors check.
13469 * inf-ptrace.c (inf_ptrace_target::create_inferior)
13470 (inf_ptrace_target::attach): Adjust.
13471 * infcall.c (run_inferior_call): Adjust.
13472 * infcmd.c (run_command_1): Pass target to
13473 scoped_finish_thread_state.
13474 (proceed_thread_callback): Skip inferiors with no execution.
13475 (continue_command): Rename 'all_threads' local to avoid hiding
13476 'all_threads' function. Adjust get_last_target_status call.
13477 (prepare_one_step): Adjust set_running call.
13478 (signal_command): Use user_visible_resume_target. Compare thread
13479 pointers instead of inferior_ptid.
13480 (info_program_command): Adjust to pass down target.
13481 (attach_command): Mark target's 'thread_executing' flag.
13482 (stop_current_target_threads_ns): New, factored out from ...
13483 (interrupt_target_1): ... this. Switch inferior before making
13484 target calls.
13485 * inferior-iter.h
13486 (struct all_inferiors_iterator, struct all_inferiors_range)
13487 (struct all_inferiors_safe_range)
13488 (struct all_non_exited_inferiors_range): Filter on
13489 process_stratum_target too. Remove explicit.
13490 * inferior.c (inferior::inferior): Push dummy target on target
13491 stack.
13492 (find_inferior_pid, find_inferior_ptid, number_of_live_inferiors):
13493 Add process_stratum_target parameter, and pass it down.
13494 (have_live_inferiors): Adjust.
13495 (switch_to_inferior_and_push_target): New.
13496 (add_inferior_command, clone_inferior_command): Handle
13497 "-no-connection" parameter. Use
13498 switch_to_inferior_and_push_target.
13499 (_initialize_inferior): Mention "-no-connection" option in
13500 the help of "add-inferior" and "clone-inferior" commands.
13501 * inferior.h: Include "process-stratum-target.h".
13502 (interrupt_target_1): Use bool.
13503 (struct inferior) <push_target, unpush_target, target_is_pushed,
13504 find_target_beneath, top_target, process_target, target_at,
13505 m_stack>: New.
13506 (discard_all_inferiors): Delete.
13507 (find_inferior_pid, find_inferior_ptid, number_of_live_inferiors)
13508 (all_inferiors, all_non_exited_inferiors): Add
13509 process_stratum_target parameter.
13510 * infrun.c: Include "gdb_select.h" and <unordered_map>.
13511 (target_last_proc_target): New global.
13512 (follow_fork_inferior): Push target on new inferior. Pass target
13513 to add_thread_silent. Call exec_on_vfork. Handle target's
13514 reference count.
13515 (follow_fork): Adjust get_last_target_status call. Also consider
13516 target.
13517 (follow_exec): Push target on new inferior.
13518 (struct execution_control_state) <target>: New field.
13519 (user_visible_resume_target): New.
13520 (do_target_resume): Call target_async.
13521 (resume_1): Set target's threads_executing flag. Consider resume
13522 target.
13523 (commit_resume_all_targets): New.
13524 (proceed): Also consider resume target. Skip threads of inferiors
13525 with no execution. Commit resumtion in all targets.
13526 (start_remote): Pass current inferior to wait_for_inferior.
13527 (infrun_thread_stop_requested): Consider target as well. Pass
13528 thread_info pointer to clear_inline_frame_state instead of ptid.
13529 (infrun_thread_thread_exit): Consider target as well.
13530 (random_pending_event_thread): New inferior parameter. Use it.
13531 (do_target_wait): Rename to ...
13532 (do_target_wait_1): ... this. Add inferior parameter, and pass it
13533 down.
13534 (threads_are_resumed_pending_p, do_target_wait): New.
13535 (prepare_for_detach): Adjust calls.
13536 (wait_for_inferior): New inferior parameter. Handle it. Use
13537 do_target_wait_1 instead of do_target_wait.
13538 (fetch_inferior_event): Adjust. Switch to representative
13539 inferior. Pass target down.
13540 (set_last_target_status): Add process_stratum_target parameter.
13541 Save target in global.
13542 (get_last_target_status): Add process_stratum_target parameter and
13543 handle it.
13544 (nullify_last_target_wait_ptid): Clear 'target_last_proc_target'.
13545 (context_switch): Check inferior_ptid == null_ptid before calling
13546 inferior_thread().
13547 (get_inferior_stop_soon): Pass down target.
13548 (wait_one): Rename to ...
13549 (poll_one_curr_target): ... this.
13550 (struct wait_one_event): New.
13551 (wait_one): New.
13552 (stop_all_threads): Adjust.
13553 (handle_no_resumed, handle_inferior_event): Adjust to consider the
13554 event's target.
13555 (switch_back_to_stepped_thread): Also consider target.
13556 (print_stop_event): Update.
13557 (normal_stop): Update. Also consider the resume target.
13558 * infrun.h (wait_for_inferior): Remove declaration.
13559 (user_visible_resume_target): New declaration.
13560 (get_last_target_status, set_last_target_status): New
13561 process_stratum_target parameter.
13562 * inline-frame.c (clear_inline_frame_state(ptid_t)): Add
13563 process_stratum_target parameter, and use it.
13564 (clear_inline_frame_state (thread_info*)): New.
13565 * inline-frame.c (clear_inline_frame_state(ptid_t)): Add
13566 process_stratum_target parameter.
13567 (clear_inline_frame_state (thread_info*)): Declare.
13568 * linux-fork.c (delete_checkpoint_command): Pass target down to
13569 find_thread_ptid.
13570 (checkpoint_command): Adjust.
13571 * linux-nat.c (linux_nat_target::follow_fork): Switch to thread
13572 instead of just tweaking inferior_ptid.
13573 (linux_nat_switch_fork): Pass target down to thread_change_ptid.
13574 (exit_lwp): Pass target down to find_thread_ptid.
13575 (attach_proc_task_lwp_callback): Pass target down to
13576 add_thread/set_running/set_executing.
13577 (linux_nat_target::attach): Pass target down to
13578 thread_change_ptid.
13579 (get_detach_signal): Pass target down to find_thread_ptid.
13580 Consider last target status's target.
13581 (linux_resume_one_lwp_throw, resume_lwp)
13582 (linux_handle_syscall_trap, linux_handle_extended_wait, wait_lwp)
13583 (stop_wait_callback, save_stop_reason, linux_nat_filter_event)
13584 (linux_nat_wait_1, resume_stopped_resumed_lwps): Pass target down.
13585 (linux_nat_target::async_wait_fd): New.
13586 (linux_nat_stop_lwp, linux_nat_target::thread_address_space): Pass
13587 target down.
13588 * linux-nat.h (linux_nat_target::async_wait_fd): Declare.
13589 * linux-tdep.c (get_thread_arch_regcache): Pass target down.
13590 * linux-thread-db.c (struct thread_db_info::process_target): New
13591 field.
13592 (add_thread_db_info): Save target.
13593 (get_thread_db_info): New process_stratum_target parameter. Also
13594 match target.
13595 (delete_thread_db_info): New process_stratum_target parameter.
13596 Also match target.
13597 (thread_from_lwp): Adjust to pass down target.
13598 (thread_db_notice_clone): Pass down target.
13599 (check_thread_db_callback): Pass down target.
13600 (try_thread_db_load_1): Always push the thread_db target.
13601 (try_thread_db_load, record_thread): Pass target down.
13602 (thread_db_target::detach): Pass target down. Always unpush the
13603 thread_db target.
13604 (thread_db_target::wait, thread_db_target::mourn_inferior): Pass
13605 target down. Always unpush the thread_db target.
13606 (find_new_threads_callback, thread_db_find_new_threads_2)
13607 (thread_db_target::update_thread_list): Pass target down.
13608 (thread_db_target::pid_to_str): Pass current inferior down.
13609 (thread_db_target::get_thread_local_address): Pass target down.
13610 (thread_db_target::resume, maintenance_check_libthread_db): Pass
13611 target down.
13612 * nto-procfs.c (nto_procfs_target::update_thread_list): Adjust.
13613 * procfs.c (procfs_target::procfs_init_inferior): Declare.
13614 (proc_set_current_signal, do_attach, procfs_target::wait): Adjust.
13615 (procfs_init_inferior): Rename to ...
13616 (procfs_target::procfs_init_inferior): ... this and adjust.
13617 (procfs_target::create_inferior, procfs_notice_thread)
13618 (procfs_do_thread_registers): Adjust.
13619 * ppc-fbsd-tdep.c: Include "inferior.h".
13620 (ppcfbsd_get_thread_local_address): Pass down target.
13621 * proc-service.c (ps_xfer_memory): Switch current inferior and
13622 program space as well.
13623 (get_ps_regcache): Pass target down.
13624 * process-stratum-target.c
13625 (process_stratum_target::thread_address_space)
13626 (process_stratum_target::thread_architecture): Pass target down.
13627 * process-stratum-target.h
13628 (process_stratum_target::threads_executing): New field.
13629 (as_process_stratum_target): New.
13630 * ravenscar-thread.c
13631 (ravenscar_thread_target::update_inferior_ptid): Pass target down.
13632 (ravenscar_thread_target::wait, ravenscar_add_thread): Pass target
13633 down.
13634 * record-btrace.c (record_btrace_target::info_record): Adjust.
13635 (record_btrace_target::record_method)
13636 (record_btrace_target::record_is_replaying)
13637 (record_btrace_target::fetch_registers)
13638 (get_thread_current_frame_id, record_btrace_target::resume)
13639 (record_btrace_target::wait, record_btrace_target::stop): Pass
13640 target down.
13641 * record-full.c (record_full_wait_1): Switch to event thread.
13642 Pass target down.
13643 * regcache.c (regcache::regcache)
13644 (get_thread_arch_aspace_regcache, get_thread_arch_regcache): Add
13645 process_stratum_target parameter and handle it.
13646 (current_thread_target): New global.
13647 (get_thread_regcache): Add process_stratum_target parameter and
13648 handle it. Switch inferior before calling target method.
13649 (get_thread_regcache): Pass target down.
13650 (get_thread_regcache_for_ptid): Pass target down.
13651 (registers_changed_ptid): Add process_stratum_target parameter and
13652 handle it.
13653 (registers_changed_thread, registers_changed): Pass target down.
13654 (test_get_thread_arch_aspace_regcache): New.
13655 (current_regcache_test): Define a couple local test_target_ops
13656 instances and use them for testing.
13657 (readwrite_regcache): Pass process_stratum_target parameter.
13658 (cooked_read_test, cooked_write_test): Pass mock_target down.
13659 * regcache.h (get_thread_regcache, get_thread_arch_regcache)
13660 (get_thread_arch_aspace_regcache): Add process_stratum_target
13661 parameter.
13662 (regcache::target): New method.
13663 (regcache::regcache, regcache::get_thread_arch_aspace_regcache)
13664 (regcache::registers_changed_ptid): Add process_stratum_target
13665 parameter.
13666 (regcache::m_target): New field.
13667 (registers_changed_ptid): Add process_stratum_target parameter.
13668 * remote.c (remote_state::supports_vCont_probed): New field.
13669 (remote_target::async_wait_fd): New method.
13670 (remote_unpush_and_throw): Add remote_target parameter.
13671 (get_current_remote_target): Adjust.
13672 (remote_target::remote_add_inferior): Push target.
13673 (remote_target::remote_add_thread)
13674 (remote_target::remote_notice_new_inferior)
13675 (get_remote_thread_info): Pass target down.
13676 (remote_target::update_thread_list): Skip threads of inferiors
13677 bound to other targets. (remote_target::close): Don't discard
13678 inferiors. (remote_target::add_current_inferior_and_thread)
13679 (remote_target::process_initial_stop_replies)
13680 (remote_target::start_remote)
13681 (remote_target::remote_serial_quit_handler): Pass down target.
13682 (remote_target::remote_unpush_target): New remote_target
13683 parameter. Unpush the target from all inferiors.
13684 (remote_target::remote_unpush_and_throw): New remote_target
13685 parameter. Pass it down.
13686 (remote_target::open_1): Check whether the current inferior has
13687 execution instead of checking whether any inferior is live. Pass
13688 target down.
13689 (remote_target::remote_detach_1): Pass down target. Use
13690 remote_unpush_target.
13691 (extended_remote_target::attach): Pass down target.
13692 (remote_target::remote_vcont_probe): Set supports_vCont_probed.
13693 (remote_target::append_resumption): Pass down target.
13694 (remote_target::append_pending_thread_resumptions)
13695 (remote_target::remote_resume_with_hc, remote_target::resume)
13696 (remote_target::commit_resume): Pass down target.
13697 (remote_target::remote_stop_ns): Check supports_vCont_probed.
13698 (remote_target::interrupt_query)
13699 (remote_target::remove_new_fork_children)
13700 (remote_target::check_pending_events_prevent_wildcard_vcont)
13701 (remote_target::remote_parse_stop_reply)
13702 (remote_target::process_stop_reply): Pass down target.
13703 (first_remote_resumed_thread): New remote_target parameter. Pass
13704 it down.
13705 (remote_target::wait_as): Pass down target.
13706 (unpush_and_perror): New remote_target parameter. Pass it down.
13707 (remote_target::readchar, remote_target::remote_serial_write)
13708 (remote_target::getpkt_or_notif_sane_1)
13709 (remote_target::kill_new_fork_children, remote_target::kill): Pass
13710 down target.
13711 (remote_target::mourn_inferior): Pass down target. Use
13712 remote_unpush_target.
13713 (remote_target::core_of_thread)
13714 (remote_target::remote_btrace_maybe_reopen): Pass down target.
13715 (remote_target::pid_to_exec_file)
13716 (remote_target::thread_handle_to_thread_info): Pass down target.
13717 (remote_target::async_wait_fd): New.
13718 * riscv-fbsd-tdep.c: Include "inferior.h".
13719 (riscv_fbsd_get_thread_local_address): Pass down target.
13720 * sol2-tdep.c (sol2_core_pid_to_str): Pass down target.
13721 * sol-thread.c (sol_thread_target::wait, ps_lgetregs, ps_lsetregs)
13722 (ps_lgetfpregs, ps_lsetfpregs, sol_update_thread_list_callback):
13723 Adjust.
13724 * solib-spu.c (spu_skip_standalone_loader): Pass down target.
13725 * solib-svr4.c (enable_break): Pass down target.
13726 * spu-multiarch.c (parse_spufs_run): Pass down target.
13727 * spu-tdep.c (spu2ppu_sniffer): Pass down target.
13728 * target-delegates.c: Regenerate.
13729 * target.c (g_target_stack): Delete.
13730 (current_top_target): Return the current inferior's top target.
13731 (target_has_execution_1): Refer to the passed-in inferior's top
13732 target.
13733 (target_supports_terminal_ours): Check whether the initial
13734 inferior was already created.
13735 (decref_target): New.
13736 (target_stack::push): Incref/decref the target.
13737 (push_target, push_target, unpush_target): Adjust.
13738 (target_stack::unpush): Defref target.
13739 (target_is_pushed): Return bool. Adjust to refer to the current
13740 inferior's target stack.
13741 (dispose_inferior): Delete, and inline parts ...
13742 (target_preopen): ... here. Only dispose of the current inferior.
13743 (target_detach): Hold strong target reference while detaching.
13744 Pass target down.
13745 (target_thread_name): Add assertion.
13746 (target_resume): Pass down target.
13747 (target_ops::beneath, find_target_at): Adjust to refer to the
13748 current inferior's target stack.
13749 (get_dummy_target): New.
13750 (target_pass_ctrlc): Pass the Ctrl-C to the first inferior that
13751 has a thread running.
13752 (initialize_targets): Rename to ...
13753 (_initialize_target): ... this.
13754 * target.h: Include "gdbsupport/refcounted-object.h".
13755 (struct target_ops): Inherit refcounted_object.
13756 (target_ops::shortname, target_ops::longname): Make const.
13757 (target_ops::async_wait_fd): New method.
13758 (decref_target): Declare.
13759 (struct target_ops_ref_policy): New.
13760 (target_ops_ref): New typedef.
13761 (get_dummy_target): Declare function.
13762 (target_is_pushed): Return bool.
13763 * thread-iter.c (all_matching_threads_iterator::m_inf_matches)
13764 (all_matching_threads_iterator::all_matching_threads_iterator):
13765 Handle filter target.
13766 * thread-iter.h (struct all_matching_threads_iterator, struct
13767 all_matching_threads_range, class all_non_exited_threads_range):
13768 Filter by target too. Remove explicit.
13769 * thread.c (threads_executing): Delete.
13770 (inferior_thread): Pass down current inferior.
13771 (clear_thread_inferior_resources): Pass down thread pointer
13772 instead of ptid_t.
13773 (add_thread_silent, add_thread_with_info, add_thread): Add
13774 process_stratum_target parameter. Use it for thread and inferior
13775 searches.
13776 (is_current_thread): New.
13777 (thread_info::deletable): Use it.
13778 (find_thread_ptid, thread_count, in_thread_list)
13779 (thread_change_ptid, set_resumed, set_running): New
13780 process_stratum_target parameter. Pass it down.
13781 (set_executing): New process_stratum_target parameter. Pass it
13782 down. Adjust reference to 'threads_executing'.
13783 (threads_are_executing): New process_stratum_target parameter.
13784 Adjust reference to 'threads_executing'.
13785 (set_stop_requested, finish_thread_state): New
13786 process_stratum_target parameter. Pass it down.
13787 (switch_to_thread): Also match inferior.
13788 (switch_to_thread): New process_stratum_target parameter. Pass it
13789 down.
13790 (update_threads_executing): Reimplement.
13791 * top.c (quit_force): Pop targets from all inferior.
13792 (gdb_init): Don't call initialize_targets.
13793 * windows-nat.c (windows_nat_target) <get_windows_debug_event>:
13794 Declare.
13795 (windows_add_thread, windows_delete_thread): Adjust.
13796 (get_windows_debug_event): Rename to ...
13797 (windows_nat_target::get_windows_debug_event): ... this. Adjust.
13798 * tracefile-tfile.c (tfile_target_open): Pass down target.
13799 * gdbsupport/common-gdbthread.h (struct process_stratum_target):
13800 Forward declare.
13801 (switch_to_thread): Add process_stratum_target parameter.
13802 * mi/mi-interp.c (mi_on_resume_1): Add process_stratum_target
13803 parameter. Use it.
13804 (mi_on_resume): Pass target down.
13805 * nat/fork-inferior.c (startup_inferior): Add
13806 process_stratum_target parameter. Pass it down.
13807 * nat/fork-inferior.h (startup_inferior): Add
13808 process_stratum_target parameter.
13809 * python/py-threadevent.c (py_get_event_thread): Pass target down.
13810
13811 2020-01-10 Pedro Alves <palves@redhat.com>
13812
13813 * remote.c (remote_target::start_remote): Don't set inferior_ptid
13814 directly. Instead find the first thread in the thread list and
13815 use switch_to_thread.
13816
13817 2020-01-10 Pedro Alves <palves@redhat.com>
13818
13819 * remote.c (remote_target::remote_add_inferior): Don't bind a
13820 process to the current inferior if the current inferior is already
13821 bound to a process.
13822
13823 2020-01-10 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
13824 Pedro Alves <palves@redhat.com>
13825
13826 * remote.c (remote_target::remote_parse_stop_reply) <W/X packets>:
13827 If no process is specified, return null_ptid instead of
13828 inferior_ptid.
13829 (remote_target::wait_as): Handle TARGET_WAITKIND_EXITED /
13830 TARGET_WAITKIND_SIGNALLED with no pid.
13831
13832 2020-01-10 Pedro Alves <palves@redhat.com>
13833
13834 * remote.c (first_remote_resumed_thread): New.
13835 (remote_target::wait_as): Use it as default event_ptid instead of
13836 inferior_ptid.
13837
13838 2020-01-10 Pedro Alves <palves@redhat.com>
13839
13840 * infrun.c (handle_no_resumed): Use all_non_exited_inferiors.
13841
13842 2020-01-10 Pedro Alves <palves@redhat.com>
13843
13844 * tracefile-tfile.c (tfile_target::close): Assert that trace_fd is
13845 not -1.
13846
13847 2020-01-10 Pedro Alves <palves@redhat.com>
13848
13849 * break-catch-sig.c (signal_catchpoint_print_it): Don't pass a
13850 ptid to get_last_target_status.
13851 * break-catch-syscall.c (print_it_catch_syscall): Don't pass a
13852 ptid to get_last_target_status.
13853 * infcmd.c (continue_command): Don't pass a target_waitstatus to
13854 get_last_target_status.
13855 (info_program_command): Don't pass a target_waitstatus to
13856 get_last_target_status.
13857 * infrun.c (init_wait_for_inferior): Use
13858 nullify_last_target_wait_ptid.
13859 (get_last_target_status): Handle nullptr arguments.
13860 (nullify_last_target_wait_ptid): Clear target_last_waitstatus.
13861 (print_stop_event): Don't pass a ptid to get_last_target_status.
13862 (normal_stop): Don't pass a ptid to get_last_target_status.
13863 * infrun.h (get_last_target_status, set_last_target_status): Move
13864 comments here and update.
13865 (nullify_last_target_wait_ptid): Declare.
13866 * linux-fork.c (fork_load_infrun_state): Remove local extern
13867 declaration of nullify_last_target_wait_ptid.
13868 * linux-nat.c (get_detach_signal): Don't pass a target_waitstatus
13869 to get_last_target_status.
13870
13871 2020-01-10 Pedro Alves <palves@redhat.com>
13872
13873 * gdbthread.h (scoped_restore_current_thread)
13874 <dont_restore, restore, m_dont_restore>: Declare.
13875 * thread.c (thread_alive): Add assertion. Return bool.
13876 (switch_to_thread_if_alive): New.
13877 (prune_threads): Switch inferior/thread.
13878 (print_thread_info_1): Switch thread before calling target methods.
13879 (scoped_restore_current_thread::restore): New, factored out from
13880 ...
13881 (scoped_restore_current_thread::~scoped_restore_current_thread):
13882 ... this.
13883 (scoped_restore_current_thread::scoped_restore_current_thread):
13884 Add assertion.
13885 (thread_apply_all_command, thread_select): Use
13886 switch_to_thread_if_alive.
13887 * infrun.c (proceed, restart_threads, handle_signal_stop)
13888 (switch_back_to_stepped_thread): Switch current thread before
13889 calling target methods.
13890
13891 2020-01-10 Pedro Alves <palves@redhat.com>
13892
13893 * inferior.c (switch_to_inferior_no_thread): New function,
13894 factored out from ...
13895 (inferior_command): ... here.
13896 * inferior.h (switch_to_inferior_no_thread): Declare.
13897 * mi/mi-main.c (run_one_inferior): Use
13898 switch_to_inferior_no_thread.
13899
13900 2020-01-10 Pedro Alves <palves@redhat.com>
13901
13902 * infcmd.c (kill_command): Remove dead code.
13903
13904 2020-01-10 Pedro Alves <palves@redhat.com>
13905
13906 * remote.c (remote_target::mourn_inferior): No longer check
13907 whether the target is running.
13908
13909 2020-01-10 Pedro Alves <palves@redhat.com>
13910
13911 * corelow.c (core_target::has_execution): Change parameter type to
13912 inferior pointer.
13913 * inferior.c (number_of_live_inferiors): Use
13914 inferior::has_execution instead of target_has_execution_1.
13915 * inferior.h (inferior::has_execution): New.
13916 * linux-thread-db.c (thread_db_target::update_thread_list): Use
13917 inferior::has_execution instead of target_has_execution_1.
13918 * process-stratum-target.c
13919 (process_stratum_target::has_execution): Change parameter type to
13920 inferior pointer. Check the inferior's PID instead of
13921 inferior_ptid.
13922 * process-stratum-target.h
13923 (process_stratum_target::has_execution): Change parameter type to
13924 inferior pointer.
13925 * record-full.c (record_full_core_target::has_execution): Change
13926 parameter type to inferior pointer.
13927 * target.c (target_has_execution_1): Change parameter type to
13928 inferior pointer.
13929 (target_has_execution_current): Adjust.
13930 * target.h (target_ops::has_execution): Change parameter type to
13931 inferior pointer.
13932 (target_has_execution_1): Change parameter type to inferior
13933 pointer. Change return type to bool.
13934 * tracefile.h (tracefile_target::has_execution): Change parameter
13935 type to inferior pointer.
13936
13937 2020-01-10 Pedro Alves <palves@redhat.com>
13938
13939 * exceptions.c (print_flush): Remove current_top_target() check.
13940
13941 2020-01-10 Pedro Alves <palves@redhat.com>
13942
13943 * remote.c (show_remote_exec_file): Show the current inferior's
13944 exec-file instead of the command variable's value.
13945
13946 2020-01-10 Pedro Alves <palves@redhat.com>
13947
13948 * record-full.c (record_full_resume_ptid): New global.
13949 (record_full_target::resume): Set it.
13950 (record_full_wait_1): Use record_full_resume_ptid instead of
13951 inferior_ptid.
13952
13953 2020-01-10 Pedro Alves <palves@redhat.com>
13954
13955 * gdbthread.h (scoped_restore_current_thread)
13956 <dont_restore, restore, m_dont_restore>: Declare.
13957 * thread.c (thread_alive): Add assertion. Return bool.
13958 (switch_to_thread_if_alive): New.
13959 (prune_threads): Switch inferior/thread.
13960 (print_thread_info_1): Switch thread before calling target methods.
13961 (scoped_restore_current_thread::restore): New, factored out from
13962 ...
13963 (scoped_restore_current_thread::~scoped_restore_current_thread):
13964 ... this.
13965 (scoped_restore_current_thread::scoped_restore_current_thread):
13966 Add assertion.
13967 (thread_apply_all_command, thread_select): Use
13968 switch_to_thread_if_alive.
13969
13970 2020-01-10 George Barrett <bob@bob131.so>
13971
13972 * stap-probe.c (stap_modify_semaphore): Don't check for null
13973 semaphores.
13974 (stap_probe::set_semaphore, stap_probe::clear_semaphore): Check
13975 for null semaphores.
13976
13977 2020-01-09 Andrew Burgess <andrew.burgess@embecosm.com>
13978
13979 * tui/tui-source.c (tui_source_window::do_scroll_vertical): Update
13980 all source windows, and maintain horizontal scroll status while
13981 doing so.
13982
13983 2020-01-09 Tom Tromey <tom@tromey.com>
13984
13985 PR tui/18932:
13986 * tui/tui-source.c (tui_source_window::do_scroll_vertical): Call
13987 update_source_window, not print_source_lines.
13988
13989 2020-01-09 Andrew Burgess <andrew.burgess@embecosm.com>
13990
13991 * tui/tui.c (tui_enable): Register tui hooks after calling
13992 tui_display_main.
13993
13994 2020-01-09 Christian Biesinger <cbiesinger@google.com>
13995
13996 * gdbsupport/common-defs.h: Don't define _FORTIFY_SOURCE on MinGW.
13997
13998 2020-01-08 Simon Marchi <simon.marchi@efficios.com>
13999
14000 * thread.c (print_thread_info_1): Fix indentation.
14001
14002 2020-01-09 Christian Biesinger <cbiesinger@google.com>
14003
14004 * symtab.c (general_symbol_info::compute_and_set_names): Move the
14005 unique_xmalloc_ptr outside the if to always free the demangled name.
14006
14007 2020-01-08 Tom Tromey <tromey@adacore.com>
14008
14009 * xcoffread.c (enter_line_range, read_xcoff_symtab)
14010 (process_xcoff_symbol, xcoff_symfile_offsets): Update.
14011 * symtab.h (MSYMBOL_VALUE_ADDRESS): Update.
14012 (struct section_offsets, ANOFFSET, SIZEOF_N_SECTION_OFFSETS):
14013 Remove.
14014 (section_offsets): New typedef.
14015 * symtab.c (fixup_section, get_msymbol_address): Update.
14016 * symmisc.c (dump_msymbols): Update.
14017 * symfile.h (relative_addr_info_to_section_offsets)
14018 (symfile_map_offsets_to_segments): Update.
14019 * symfile.c (build_section_addr_info_from_objfile)
14020 (init_objfile_sect_indices): Update.
14021 (struct place_section_arg): Change type of "offsets".
14022 (place_section): Update.
14023 (relative_addr_info_to_section_offsets): Change type of
14024 "section_offsets". Remove "num_sections" parameter.
14025 (default_symfile_offsets, syms_from_objfile_1)
14026 (set_objfile_default_section_offset): Update.
14027 (reread_symbols): No need to preserve section offsets by hand.
14028 (symfile_map_offsets_to_segments): Change type of "offsets".
14029 * stap-probe.c (relocate_address): Update.
14030 * stabsread.h (process_one_symbol): Update.
14031 * solib-target.c (struct lm_info_target) <offsets>: Change type.
14032 (solib_target_relocate_section_addresses): Update.
14033 * solib-svr4.c (enable_break, svr4_relocate_main_executable):
14034 Update.
14035 * solib-frv.c (frv_relocate_main_executable): Update.
14036 * solib-dsbt.c (dsbt_relocate_main_executable): Update.
14037 * solib-aix.c (solib_aix_get_section_offsets): Change return
14038 type.
14039 (solib_aix_solib_create_inferior_hook): Update.
14040 * remote.c (remote_target::get_offsets): Update.
14041 * psymtab.c (find_pc_sect_psymtab): Update.
14042 * psympriv.h (struct partial_symbol) <address, text_low,
14043 text_high>: Update.
14044 * objfiles.h (obj_section_offset): Update.
14045 (struct objfile) <section_offsets>: Change type.
14046 <num_sections>: Remove.
14047 (objfile_relocate): Update.
14048 * objfiles.c (entry_point_address_query): Update
14049 (relocate_one_symbol): Change type of "section_offsets".
14050 (objfile_relocate1, objfile_relocate1): Change type of
14051 "new_offsets".
14052 (objfile_rebase1): Update.
14053 * mipsread.c (mipscoff_symfile_read): Update.
14054 (read_alphacoff_dynamic_symtab): Remove "section_offsets"
14055 parameter.
14056 * mdebugread.c (parse_symbol): Change type of "section_offsets".
14057 (parse_external, psymtab_to_symtab_1): Update.
14058 * machoread.c (macho_symfile_offsets): Update.
14059 * ia64-tdep.c (ia64_find_unwind_table): Update.
14060 * hppa-tdep.c (read_unwind_info): Update.
14061 * hppa-bsd-tdep.c (hppabsd_find_global_pointer): Update.
14062 * dwarf2read.c (create_addrmap_from_index)
14063 (create_addrmap_from_aranges, dw2_find_pc_sect_compunit_symtab)
14064 (process_psymtab_comp_unit_reader, add_partial_symbol)
14065 (add_partial_subprogram, process_full_comp_unit)
14066 (read_file_scope, read_func_scope, read_lexical_block_scope)
14067 (read_call_site_scope, dwarf2_rnglists_process)
14068 (dwarf2_ranges_process, dwarf2_ranges_read)
14069 (dwarf_decode_lines_1, var_decode_location, new_symbol)
14070 (dwarf2_fetch_die_loc_sect_off, dwarf2_per_cu_text_offset):
14071 Update.
14072 * dwarf2-frame.c (execute_cfa_program, dwarf2_frame_find_fde):
14073 Update.
14074 * dtrace-probe.c (dtrace_probe::get_relocated_address): Update.
14075 * dbxread.c (read_dbx_symtab, read_ofile_symtab): Update.
14076 (process_one_symbol): Change type of "section_offsets".
14077 * ctfread.c (get_objfile_text_range): Update.
14078 * coffread.c (coff_symtab_read, enter_linenos)
14079 (process_coff_symbol): Update.
14080 * coff-pe-read.c (add_pe_forwarded_sym): Update.
14081 * amd64-windows-tdep.c (amd64_windows_find_unwind_info): Update.
14082
14083 2020-01-08 Tom Tromey <tromey@adacore.com>
14084
14085 * dwarf2read.c (parse_macro_definition): Use std::string.
14086 (parse_macro_definition): Likewise.
14087
14088 2020-01-08 Tom Tromey <tromey@adacore.com>
14089
14090 * dwarf2read.c (abbrev_table_read_table): Use std::vector.
14091 (ATTR_ALLOC_CHUNK): Remove.
14092
14093 2020-01-08 Tom Tromey <tromey@adacore.com>
14094
14095 * dwarf2read.c (fixup_go_packaging): Use unique_xmalloc_ptr.
14096
14097 2020-01-08 Tom Tromey <tromey@adacore.com>
14098
14099 * dwarf2read.c (add_partial_symbol): Use unique_xmalloc_ptr.
14100 (dwarf2_compute_name, open_dwo_file): Likewise.
14101 (process_enumeration_scope): Use std::vector.
14102 (guess_partial_die_structure_name): Use unique_xmalloc_ptr.
14103 (partial_die_info::fixup, dwarf2_start_subfile)
14104 (guess_full_die_structure_name, dwarf2_name): Likewise.
14105 (determine_prefix): Update.
14106 (guess_full_die_structure_name): Make return type const.
14107 (partial_die_full_name): Return unique_xmalloc_ptr.
14108 (DW_FIELD_ALLOC_CHUNK): Remove.
14109
14110 2020-01-07 Tom Tromey <tromey@adacore.com>
14111
14112 PR build/24937:
14113 * stap-probe.c (class stap_static_probe_ops): Add constructor.
14114
14115 2020-01-02 Jon Turney <jon.turney@dronecode.org.uk>
14116
14117 * cli/cli-style.c: Set cli_styling to 'true' in the Cygwin build.
14118
14119 2020-01-06 Andrew Burgess <andrew.burgess@embecosm.com>
14120
14121 * stack.c (print_frame_info): Move disassemble_next_line code
14122 inside source_print block.
14123
14124 2020-01-06 Eli Zaretskii <eliz@gnu.org>
14125
14126 * gdbsupport/gdb_wait.c: Include <signal.h> instead of
14127 gdb/signals.h, as we are now using native signal symbols.
14128
14129 2020-01-06 Shahab Vahedi <shahab@synopsys.com>
14130
14131 * tui/tui-disasm.c (tui_disasm_window::addr_is_displayed): Avoid
14132 overflow by an early check of content vs threshold.
14133 * tui/tui-source.c (tui_source_window::line_is_displayed):
14134 Likewise.
14135
14136 2020-01-06 Eli Zaretskii <eliz@gnu.org>
14137
14138 * NEWS: Mention the recent fix of $_exitsignal on MS-Windows.
14139
14140 2020-01-02 Jon Turney <jon.turney@dronecode.org.uk>
14141
14142 * coff-pe-read.c (read_pe_exported_syms): Don't try to read the
14143 export table if no section contains it's RVA.
14144
14145 2020-01-06 Eli Zaretskii <eliz@gnu.org>
14146
14147 * windows-tdep.c: Fix a typo in WINDOWS_SIGABRT.
14148
14149 2020-01-06 Hannes Domani <ssbssa@yahoo.de>
14150
14151 * source.c (print_source_lines_base): Set last_line_listed.
14152
14153 2020-01-06 Shahab Vahedi <shahab@synopsys.com>
14154
14155 * tui/tui-disasm.c: Remove trailing spaces.
14156
14157 2020-01-06 Eli Zaretskii <eliz@gnu.org>
14158 Pedro Alves <palves@redhat.com>
14159
14160 * Makefile.in (COMMON_SFILES): Add gdbsupport/gdb_wait.c.
14161 * windows-tdep.c: New enumeration of WINDOWS_SIG* signals.
14162 (windows_gdb_signal_to_target): New function, uses the above
14163 enumeration to convert GDB internal signal codes to equivalent
14164 Windows codes.
14165 (windows_init_abi): Call set_gdbarch_gdb_signal_to_target.
14166 * windows-nat.c: Include "gdb_wait.h".
14167 (get_windows_debug_event): Extract the fatal exception from the
14168 exit status and convert to the equivalent Posix signal number.
14169 * cli/cli-cmds.c (exit_status_set_internal_vars): Account for the
14170 possibility that WTERMSIG returns GDB_SIGNAL_UNKNOWN.
14171 * gdbsupport/gdb_wait.c: New file, implements
14172 windows_status_to_termsig.
14173 * gdbsupport/gdb_wait.h (WIFEXITED, WIFSIGNALED, WEXITSTATUS)
14174 (WTERMSIG) [__MINGW32__]: Separate definitions for MinGW.
14175
14176 2020-01-05 Andrew Burgess <andrew.burgess@embecosm.com>
14177
14178 * tui/tui-layout.c (tui_add_win_to_layout): Use tui_set_layout not
14179 show_layout.
14180
14181 2020-01-05 Luis Machado <luis.machado@linaro.org>
14182
14183 * aarch64-linux-nat.c
14184 (aarch64_linux_nat_target::thread_architecture): Use bfd_arch_aarch64
14185 and bfd_mach_aarch64.
14186
14187 2020-01-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
14188
14189 * ui-file.c (stdio_file::can_emit_style_escape)
14190 (tee_file::can_emit_style_escape): Ensure style is used also on
14191 gdb_stderr when gdb_stderr is a tty supporting styling, similarly
14192 to gdb_stdout.
14193 * main.c (set_gdb_data_directory): Use file style to output the
14194 warning that the given pathname is not a directory.
14195 * top.c (show_history_filename, gdb_safe_append_history)
14196 (show_gdb_datadir): Use file style.
14197
14198 2020-01-03 Hannes Domani <ssbssa@yahoo.de>
14199
14200 * solib-target.c (struct lm_info_target):
14201 Change offsets to be a unique_xmalloc_ptr.
14202 (solib_target_relocate_section_addresses): Update.
14203
14204 2020-01-03 Hannes Domani <ssbssa@yahoo.de>
14205
14206 * windows-nat.c (windows_clear_solib): Free so_list linked list.
14207
14208 2020-01-03 Bernd Edlinger <bernd.edlinger@hotmail.de>
14209
14210 * MAINTAINERS (Write After Approval): Add myself.
14211
14212 2020-01-02 Luis Machado <luis.machado@linaro.org>
14213
14214 * proc-service.c (get_ps_regcache): Remove reference to obsolete
14215 Cell BE architecture.
14216 * target.h (struct target_ops) <thread_architecture>: Likewise.
14217
14218 2020-01-01 Hannes Domani <ssbssa@yahoo.de>
14219
14220 * Makefile.in: Use INSTALL_PROGRAM_ENV.
14221
14222 2020-01-01 Hannes Domani <ssbssa@yahoo.de>
14223
14224 * MAINTAINERS (Write After Approval): Add myself.
14225
14226 2020-01-01 Joel Brobecker <brobecker@adacore.com>
14227
14228 * gdbarch.sh: Update copyright year range of generated files.
14229
14230 2020-01-01 Joel Brobecker <brobecker@adacore.com>
14231
14232 Update copyright year range in all GDB files.
14233
14234 2020-01-01 Joel Brobecker <brobecker@adacore.com>
14235
14236 * copyright.py: Convert to Python 3.
14237
14238 2020-01-01 Joel Brobecker <brobecker@adacore.com>
14239
14240 * copyright.py: Adapt after move of gnulib directory from gdb
14241 directory to toplevel directory.
14242
14243 2020-01-01 Joel Brobecker <brobecker@adacore.com>
14244
14245 * copyright.py (main): Exit if run from the wrong directory.
14246
14247 2020-01-01 Joel Brobecker <brobecker@adacore.com>
14248
14249 * top.c (print_gdb_version): Change copyright year to 2020.
14250
14251 2020-01-01 Joel Brobecker <brobecker@adacore.com>
14252
14253 * config/djgpp/fnchange.lst: Add entry for gdb/ChangeLog-2019.
14254
14255 For older changes see ChangeLog-2019.
14256 \f
14257 Local Variables:
14258 mode: change-log
14259 left-margin: 8
14260 fill-column: 74
14261 version-control: never
14262 coding: utf-8
14263 End:
This page took 0.340093 seconds and 4 git commands to generate.