Fix gdb.base/infcall-nested-structs-c++.exp with Clang
[deliverable/binutils-gdb.git] / gdb / ChangeLog
1 2020-09-24 Tom Tromey <tromey@adacore.com>
2
3 PR tui/26638:
4 * tui/tui-stack.h (struct tui_locator_window) <can_focus>: New
5 method.
6 * tui/tui-data.h (struct tui_win_info) <can_focus>: New method.
7 * tui/tui-data.c (tui_next_win): Exclude non-focusable windows.
8 (tui_prev_win): Rewrite.
9
10 2020-09-23 Hannes Domani <ssbssa@yahoo.de>
11
12 * nat/windows-nat.c (handle_exception): Handle 64bit breakpoints
13 in WOW64 processes as SIGINT.
14 * nat/windows-nat.h: Make wow64_process a shared variable.
15 * windows-nat.c: Remove static wow64_process variable.
16
17 2020-09-23 Tom Tromey <tom@tromey.com>
18
19 PR symtab/25470:
20 * value.c (unpack_long, pack_long, pack_unsigned_long): Handle bit
21 offset and bit size.
22 * printcmd.c (print_scalar_formatted): Handle zero-length
23 integer.
24 (print_scalar_formatted): Use bit_size_differs_p.
25 * gdbtypes.h (enum type_specific_kind) <TYPE_SPECIFIC_INT>: New
26 constant.
27 (union type_specific): <int_stuff>: New member.
28 (struct type) <bit_size_differs_p, bit_size, bit_offset>: New
29 methods.
30 * gdbtypes.c (init_integer_type, init_boolean_type): Initialize
31 TYPE_SPECIFIC_FIELD.
32 (recursive_dump_type, copy_type_recursive): Update.
33 * dwarf2/read.c (read_base_type): Handle DW_AT_bit_size and
34 DW_AT_data_bit_offset.
35
36 2020-09-23 Tom Tromey <tom@tromey.com>
37
38 * utils.h (class gdb_argv): Add move operators.
39 <append>: New methods.
40 * compile/compile.c (build_argc_argv): Remove.
41 (compile_args_argc): Remove.
42 (compile_args_argv): Change type.
43 (set_compile_args): Simplify.
44 (append_args): Remove.
45 (filter_args): Remove argcp parameter.
46 (get_args): Return gdb_argv. Simplify.
47 (compile_to_object): Update.
48
49 2020-09-23 Tom Tromey <tom@tromey.com>
50
51 * compile/compile-object-run.c (do_module_cleanup)
52 <~do_module_cleanup> :Remove.
53 (do_module_cleanup): Update.
54 * compile/compile-object-load.h (struct munmap_list): Add move
55 assignment operator.
56 <source_file>: Now a std::string.
57 <munmap_list>: Rename. No longer a pointer.
58 * compile/compile-object-load.c (struct setup_sections_data): Add
59 constructor.
60 <setup_one_section>: Declare.
61 <munmap_list>: Move earlier.
62 <m_bfd>: New member.
63 <m_last_size, m_last_section_first, m_last_prot,
64 m_last_max_alignment>: Rename, add initializers where needed.
65 (setup_sections_data::setup_one_section): Rename from
66 setup_sections. Update.
67 (compile_object_load): Update. Don't use bfd_map_over_sections.
68
69 2020-09-23 Tom Tromey <tom@tromey.com>
70
71 * compile/compile-object-run.c (struct do_module_cleanup): Add
72 parameters to constructor. Update destructor.
73 <source_file, scope, scope_data, out_value_type, out_value_addr,
74 munmap_list_head, objfile_name_string>: Remove.
75 <module>: New member.
76 (do_module_cleanup): Update.
77 (compile_object_run): Update.
78
79 2020-09-23 Tom Tromey <tom@tromey.com>
80
81 * compile/compile.c (eval_compile_command): Update.
82 * compile/compile-object-run.h (compile_object_run): Take a
83 compile_module_up.
84 * compile/compile-object-run.c (compile_object_run): Take a
85 compile_module_up.
86 * compile/compile-object-load.h (struct compile_module): Add
87 constructor, destructor.
88 (compile_module_up): New typedef.
89 (compile_object_load): Return compile_object_up.
90 * compile/compile-object-load.c (compile_object_load): Return
91 compile_module_up.
92
93 2020-09-23 Tom Tromey <tom@tromey.com>
94
95 * compile/compile-object-run.c (struct do_module_cleanup): Add
96 constructor, destructor.
97 <objfile_name_string>: Don't use struct hack.
98 (do_module_cleanup): Use delete.
99 (compile_object_run): Use new.
100
101 2020-09-23 Tom Tromey <tom@tromey.com>
102
103 * compile/compile-cplus-types.c
104 (compile_cplus_convert_struct_or_union): Use std::vector.
105 (compile_cplus_convert_func): Likewise.
106 * compile/compile-c-types.c (convert_func): Use std::vector.
107
108 2020-09-21 Tom Tromey <tromey@adacore.com>
109
110 * sparc-tdep.c (sparc32_skip_prologue): Use
111 skip_prologue_using_sal.
112
113 2020-09-19 Tom Tromey <tom@tromey.com>
114
115 * symfile.c (add_section_size_callback): Remove.
116 (load_one_section): Rename from load_section_callback. Change
117 parameters.
118 (generic_load): Use foreach.
119
120 2020-09-19 Tom Tromey <tom@tromey.com>
121
122 * exec.c (add_to_section_table): Remove.
123 (build_section_table): Use foreach.
124
125 2020-09-19 Tom Tromey <tom@tromey.com>
126
127 * elfread.c (elf_locate_sections): Change parameters.
128 (elf_symfile_read): Use foreach.
129
130 2020-09-19 Tom Tromey <tom@tromey.com>
131
132 * cli/cli-dump.c (struct callback_data): Remove.
133 (restore_one_section): Rename from restore_section_callback.
134 Change parameters.
135 (restore_binary_file): Change parameters.
136 (restore_command): Use foreach.
137
138 2020-09-19 Tom Tromey <tom@tromey.com>
139
140 * gcore.c (make_output_phdrs): Remove 'ignored' parameter.
141 (gcore_copy_callback): Likewise.
142 (gcore_memory_sections): Use foreach.
143
144 2020-09-19 Tom Tromey <tom@tromey.com>
145
146 * osabi.h (generic_elf_osabi_sniff_abi_tag_sections): Update.
147 * osabi.c (generic_elf_osabi_sniff_abi_tag_sections): Change
148 parameters.
149 (generic_elf_osabi_sniffer): Use foreach.
150 * mips-sde-tdep.c (mips_sde_elf_osabi_sniffer): Use foreach.
151 * arm-tdep.c (arm_elf_osabi_sniffer): Use foreach.
152
153 2020-09-19 Tom Tromey <tom@tromey.com>
154
155 * dwarf2/read.c (locate_dwz_sections): Change parameters.
156 (dwarf2_get_dwz_file): Use foreach.
157 (dwarf2_locate_dwo_sections): Change parameters.
158 (open_and_init_dwo_file): Use foreach.
159 (dwarf2_locate_common_dwp_sections): Change parameters.
160 (open_and_init_dwp_file): Use foreach.
161
162 2020-09-19 Tom Tromey <tom@tromey.com>
163
164 * symfile.h: (find_lowest_section): Don't declare.
165 * symfile.c (find_lowest_section): Now static. Change
166 parameters.
167 (struct place_section_arg): Remove.
168 (place_section): Change parameters.
169 (addr_info_make_relative): Use foreach.
170 (symfile_dummy_outputs): Remove.
171 (default_symfile_relocate): Use foreach.
172
173 2020-09-19 Tom Tromey <tom@tromey.com>
174
175 * objfiles.c (add_to_objfile_sections): Rename from
176 add_to_objfile_sections_full.
177 (add_to_objfile_sections): Remove.
178 (build_objfile_section_table): Use foreach.
179
180 2020-09-19 Tom Tromey <tom@tromey.com>
181
182 * stap-probe.c (get_stap_base_address_1): Remove.
183 (get_stap_base_address): Use foreach.
184
185 2020-09-19 Tom Tromey <tom@tromey.com>
186
187 * gdb_bfd.c (free_one_bfd_section): Remove 'abfd' and 'ignore'
188 parameters.
189 (gdb_bfd_close_or_warn): Use foreach.
190
191 2020-09-19 Tom Tromey <tom@tromey.com>
192
193 * corelow.c (add_to_thread_list): Change parameters.
194 (core_target_open): Use foreach.
195
196 2020-09-19 Tom Tromey <tom@tromey.com>
197
198 * gdb_bfd.h (gdb_bfd_sections): New overload. Fix formatting of
199 existing function.
200
201 2020-09-19 Andrew Burgess <andrew.burgess@embecosm.com>
202
203 * f-valprint.c (f77_print_array_1): Adjust printing of whitespace
204 for arrays.
205
206 2020-09-19 Andrew Burgess <andrew.burgess@embecosm.com>
207
208 * eval.c: Remove 'f-lang.h' include.
209 (value_f90_subarray): Moved to f-lang.c.
210 (eval_call): Renamed to...
211 (evaluate_subexp_do_call): ...this, is no longer static, header
212 comment moved into header file.
213 (evaluate_funcall): Update call to eval_call.
214 (skip_undetermined_arglist): Moved to f-lang.c.
215 (fortran_value_subarray): Likewise.
216 (evaluate_subexp_standard): OP_F77_UNDETERMINED_ARGLIST handling
217 moved to evaluate_subexp_f.
218 (calc_f77_array_dims): Moved to f-lang.c
219 * expprint.c (print_subexp_funcall): New function.
220 (print_subexp_standard): OP_F77_UNDETERMINED_ARGLIST handling
221 moved to print_subexp_f, OP_FUNCALL uses new function.
222 (dump_subexp_body_funcall): New function.
223 (dump_subexp_body_standard): OP_F77_UNDETERMINED_ARGLIST handling
224 moved to dump_subexp_f, OP_FUNCALL uses new function.
225 * expression.h (evaluate_subexp_do_call): Declare.
226 * f-lang.c (value_f90_subarray): Moved from eval.c.
227 (skip_undetermined_arglist): Likewise.
228 (calc_f77_array_dims): Likewise.
229 (fortran_value_subarray): Likewise.
230 (evaluate_subexp_f): Add OP_F77_UNDETERMINED_ARGLIST support.
231 (operator_length_f): Likewise.
232 (print_subexp_f): Likewise.
233 (dump_subexp_body_f): Likewise.
234 * fortran-operator.def (OP_F77_UNDETERMINED_ARGLIST): Move
235 declaration of this operation to here.
236 * parse.c (operator_length_standard): OP_F77_UNDETERMINED_ARGLIST
237 support moved to operator_length_f.
238 * parser-defs.h (dump_subexp_body_funcall): Declare.
239 (print_subexp_funcall): Declare.
240 * std-operator.def (OP_F77_UNDETERMINED_ARGLIST): Moved to
241 fortran-operator.def.
242
243 2020-09-19 Andrew Burgess <andrew.burgess@embecosm.com>
244
245 * eval.c (fortran_value_subarray): New function, content is taken
246 from...
247 (evaluate_subexp_standard): ...here, in two places. Now arrays
248 and strings both call the new function.
249 (calc_f77_array_dims): Add header comment, handle strings.
250
251 2020-09-18 Victor Collod <vcollod@nvidia.com>
252
253 PR gdb/26635
254 * i386-tdep.c (i386_skip_endbr): Add a helper function to skip endbr.
255 (i386_analyze_prologue): Call i386_skip_endbr.
256
257 2020-09-18 Tom Tromey <tromey@adacore.com>
258
259 * windows-nat.c (struct windows_nat_target) <wait>: Update.
260 (windows_nat_target::wait): Update.
261 * target/wait.h (enum target_wait_flag): New. Use
262 DEF_ENUM_FLAGS_TYPE.
263 * target/target.h (target_wait): Change type of options.
264 * target.h (target_options_to_string, default_target_wait):
265 Update.
266 (struct target_ops) <wait>: Change type of options.
267 * target.c (target_wait, default_target_wait, do_option): Change
268 type of "options".
269 (target_options_to_string): Likewise.
270 * target-delegates.c: Rebuild.
271 * target-debug.h (target_debug_print_target_wait_flags): Rename
272 from target_debug_print_options.
273 * sol-thread.c (class sol_thread_target) <wait>: Update.
274 (sol_thread_target::wait): Update.
275 * rs6000-nat.c (class rs6000_nat_target) <wait>: Update.
276 (rs6000_nat_target::wait): Update.
277 * remote.c (class remote_target) <wait, wait_ns, wait_as>:
278 Update.
279 (remote_target::wait_ns, remote_target::wait_as): Change type of
280 "options".
281 (remote_target::wait): Update.
282 * remote-sim.c (struct gdbsim_target) <wait>: Update.
283 (gdbsim_target::wait): Update.
284 * record-full.c (class record_full_base_target) <wait>: Update.
285 (record_full_wait_1): Change type of "options".
286 (record_full_base_target::wait): Update.
287 * record-btrace.c (class record_btrace_target) <wait>: Update.
288 (record_btrace_target::wait): Update.
289 * ravenscar-thread.c (struct ravenscar_thread_target) <wait>:
290 Update.
291 (ravenscar_thread_target::wait): Update.
292 * procfs.c (class procfs_target) <wait>: Update.
293 (procfs_target::wait): Update.
294 * obsd-nat.h (class obsd_nat_target) <wait>: Update.
295 * obsd-nat.c (obsd_nat_target::wait): Update.
296 * nto-procfs.c (struct nto_procfs_target) <wait>: Update.
297 (nto_procfs_target::wait): Update.
298 * nbsd-nat.h (struct nbsd_nat_target) <wait>: Update.
299 * nbsd-nat.c (nbsd_wait): Change type of "options".
300 (nbsd_nat_target::wait): Update.
301 * linux-thread-db.c (class thread_db_target) <wait>: Update.
302 (thread_db_target::wait): Update.
303 * linux-nat.h (class linux_nat_target) <wait>: Update.
304 * linux-nat.c (linux_nat_target::wait): Update.
305 (linux_nat_wait_1): Update.
306 * infrun.c (do_target_wait_1, do_target_wait): Change type of
307 "options".
308 * inf-ptrace.h (struct inf_ptrace_target) <wait>: Update.
309 * inf-ptrace.c (inf_ptrace_target::wait): Update.
310 * go32-nat.c (struct go32_nat_target) <wait>: Update.
311 (go32_nat_target::wait): Update.
312 * gnu-nat.h (struct gnu_nat_target) <wait>: Update.
313 * gnu-nat.c (gnu_nat_target::wait): Update.
314 * fbsd-nat.h (class fbsd_nat_target) <wait>: Update.
315 * fbsd-nat.c (fbsd_nat_target::wait): Update.
316 * darwin-nat.h (class darwin_nat_target) <wait>: Update.
317 * darwin-nat.c (darwin_nat_target::wait): Update.
318 * bsd-uthread.c (struct bsd_uthread_target) <wait>: Update.
319 (bsd_uthread_target::wait): Update.
320 * aix-thread.c (class aix_thread_target) <wait>: Update.
321 (aix_thread_target::wait): Update.
322
323 2020-09-18 Andrew Burgess <andrew.burgess@embecosm.com>
324
325 * compile/compile-object-run.c (create_copied_type_recursive): New
326 function.
327 (compile_object_run): Use new function.
328
329 2020-08-21 Jon Turney <jon.turney@dronecode.org.uk>
330
331 * NEWS: Mention x86_64 Cygwin core file support.
332
333 2020-07-01 Jon Turney <jon.turney@dronecode.org.uk>
334
335 * windows-tdep.c (NOTE_INFO_MODULE, NOTE_INFO_MODULE64): Define.
336 (core_process_module_section): Handle NOTE_INFO_MODULE64.
337
338 2020-07-01 Jon Turney <jon.turney@dronecode.org.uk>
339
340 * windows-tdep.h: Add prototypes.
341 * i386-windows-tdep.c(windows_core_xfer_shared_libraries): Move.
342 (i386_windows_core_pid_to_str): Move and rename ...
343 * windows-tdep.c (windows_core_xfer_shared_libraries): ... to here
344 (windows_core_pid_to_str): ... and here.
345 * amd64-windows-tdep.c (amd64_windows_init_abi_common): Register here.
346
347 2020-07-01 Jon Turney <jon.turney@dronecode.org.uk>
348 * amd64-windows-tdep.c(amd64_windows_gregset_reg_offset): Add.
349 (amd64_windows_init_abi_common): ... and register.
350
351 2020-07-01 Jon Turney <jon.turney@dronecode.org.uk>
352
353 * amd64-windows-tdep.c (amd64_cygwin_core_osabi_sniffer): New.
354 (_initialize_amd64_windows_tdep): Register amd64_cygwin_core_osabi_sniffer.
355
356 2020-09-18 Pedro Alves <pedro@palves.net>
357
358 PR gdb/26631
359 * thread.c (thread_find_command): Switch inferior before calling
360 target methods.
361
362 2020-09-17 Tom Tromey <tromey@adacore.com>
363
364 * tic6x-tdep.c (tic6x_gdbarch_init): Update.
365 * target-descriptions.h (struct tdesc_arch_data_deleter): New.
366 (tdesc_arch_data_up): New typedef.
367 (tdesc_use_registers, tdesc_data_alloc): Update.
368 (tdesc_data_cleanup): Don't declare.
369 * target-descriptions.c (tdesc_data_alloc): Return a
370 tdesc_arch_data_up.
371 (tdesc_arch_data_deleter::operator()): Rename from
372 tdesc_data_cleanup. Change argument type.
373 (tdesc_use_registers): Change early_data to an rvalue reference.
374 (tdesc_use_registers): Don't use delete.
375 * sparc-tdep.c (sparc32_gdbarch_init): Update.
376 * s390-tdep.c (s390_gdbarch_init): Update.
377 * rx-tdep.c (rx_gdbarch_init): Update.
378 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
379 * riscv-tdep.c (riscv_gdbarch_init): Update.
380 * or1k-tdep.c (or1k_gdbarch_init): Update.
381 * nios2-tdep.c (nios2_gdbarch_init): Update.
382 * nds32-tdep.c (nds32_gdbarch_init): Update.
383 * mips-tdep.c (mips_gdbarch_init): Update.
384 * microblaze-tdep.c (microblaze_gdbarch_init): Update.
385 * m68k-tdep.c (m68k_gdbarch_init): Update.
386 * i386-tdep.c (i386_gdbarch_init): Update.
387 * arm-tdep.c (arm_gdbarch_init): Update.
388 * arc-tdep.c (arc_tdesc_init): Update.
389 (arc_gdbarch_init): Update.
390 * aarch64-tdep.c (aarch64_gdbarch_init): Update.
391
392 2020-09-17 Hannes Domani <ssbssa@yahoo.de>
393
394 * windows-nat.c (ctrl_c_handler): Use 32bit DbgUiRemoteBreakin
395 for WOW64 processes.
396
397 2020-09-17 Tom Tromey <tom@tromey.com>
398
399 * dwarf2/read.c (compute_compunit_symtab_includes): Use htab_up.
400
401 2020-09-17 Tom Tromey <tom@tromey.com>
402
403 * value.c (preserve_values): Update.
404 * python/py-type.c (save_objfile_types): Update.
405 * guile/scm-type.c (save_objfile_types): Update.
406 * gdbtypes.h (create_copied_types_hash): Return htab_up.
407 * gdbtypes.c (create_copied_types_hash): Return htab_up.
408 * compile/compile-object-run.c (compile_object_run): Update.
409
410 2020-09-17 Tom Tromey <tom@tromey.com>
411
412 * typeprint.h (class typedef_hash_table) <~typedef_hash_table>:
413 Remove.
414 <m_table>: Now htab_up.
415 * typeprint.c (typedef_hash_table::recursively_update)
416 (typedef_hash_table::add_template_parameters)
417 (typedef_hash_table::typedef_hash_table): Update.
418 (typedef_hash_table::~typedef_hash_table): Remove.
419 (typedef_hash_table::typedef_hash_table)
420 (typedef_hash_table::find_global_typedef)
421 (typedef_hash_table::find_typedef): Update.
422
423 2020-09-17 Tom Tromey <tom@tromey.com>
424
425 * target-descriptions.c (tdesc_use_registers): Use htab_up.
426
427 2020-09-17 Tom Tromey <tom@tromey.com>
428
429 * linespec.c (class decode_compound_collector)
430 <~decode_compound_collector>: Remove.
431 <m_unique_syms>: Now htab_up.
432 (decode_compound_collector::operator ()): Update.
433 (class symtab_collector) <~symtab_collector>: Remove.
434 <m_symtab_table>: Now htab_up.
435 (symtab_collector::operator ()): Update.
436
437 2020-09-17 Tom Tromey <tom@tromey.com>
438
439 * filename-seen-cache.c (filename_seen_cache::filename_seen_cache)
440 (filename_seen_cache::clear): Update.
441 (~filename_seen_cache): Remove.
442 (filename_seen_cache::seen): Update.
443 * filename-seen-cache.h (class filename_seen_cache) <m_tab>: Now
444 htab_up.
445 <~filename_seen_cache>: Remove.
446 <traverse>: Update.
447
448 2020-09-17 Tom Tromey <tom@tromey.com>
449
450 * completer.c (completion_tracker::discard_completions)
451 (completion_tracker::~completion_tracker)
452 (completion_tracker::maybe_add_completion)
453 (completion_tracker::remove_completion)
454 (completion_tracker::recompute_lowest_common_denominator)
455 (completion_tracker::build_completion_result): Update.
456 * completer.h (class completion_tracker) <have_completions>:
457 Update.
458 <m_entries_hash>: Now htab_up.
459
460 2020-09-17 Tom Tromey <tom@tromey.com>
461
462 * breakpoint.c (ambiguous_names_p): Use htab_up.
463
464 2020-09-17 Tom Tromey <tom@tromey.com>
465
466 * auto-load.c (struct auto_load_pspace_info)
467 <~auto_load_pspace_info, auto_load_pspace_info>: Remove.
468 <loaded_script_files, loaded_script_texts>: Change type to
469 htab_up.
470 (~auto_load_pspace_info) Remove.
471 (init_loaded_scripts_info, maybe_add_script_file)
472 (maybe_add_script_text, auto_load_info_scripts): Update.
473
474 2020-09-17 Tom Tromey <tromey@adacore.com>
475
476 * c-exp.y (name_obstack): Now static.
477
478 2020-09-17 Chungyi Chi <demonic@csie.io>
479
480 * riscv-tdep.c (riscv-insn::decode): Fix recorded insn type.
481
482 2020-09-16 Simon Marchi <simon.marchi@efficios.com>
483
484 * breakpoint.h (init_catchpoint): Change int parameter to bool.
485 (add_solib_catchpoint): Likewise.
486 * breakpoint.c (struct solib_catchpoint) <is_load>: Change type
487 to bool.
488 (add_solib_catchpoint): Change int parameter/variable to bool.
489 (catch_load_or_unload): Likewise.
490 (init_catchpoint): Likewise.
491 (create_fork_vfork_event_catchpoint): Likewise.
492 (catch_fork_command_1): Likewise.
493 (catch_exec_command_1): Likewise.
494
495 2020-09-16 Simon Marchi <simon.marchi@efficios.com>
496
497 * gdb-gdb.py.in (class StructTypePrettyPrinter) <to_string>:
498 Change instance_flags to m_instance_flags.
499
500 2020-09-16 Tom Tromey <tromey@adacore.com>
501
502 PR gdb/26598:
503 * infrun.c (fill_in_stop_func): Use find_pc_partial_function_sym.
504
505 2020-09-16 John Baldwin <jhb@FreeBSD.org>
506
507 * fbsd-nat.c (fbsd_nat_target::wait): Always check for
508 PL_FLAG_EXEC.
509 (fbsd_nat_target::insert_exec_catchpoint)
510 (fbsd_nat_target::remove_exec_catchpoint): Always define.
511 * fbsd-nat.h (fbsd_nat_target::insert_exec_catchpoint)
512 (fbsd_nat_target::remove_exec_catchpoint): Always declare.
513
514 2020-09-16 John Baldwin <jhb@FreeBSD.org>
515
516 * configure.ac: Remove check for kinfo_getvmmap().
517 * configure, config.in: Regenerate.
518 * fbsd-nat.c (fbsd_read_mapping): Remove
519 (fbsd_nat_target::find_memory_regions): Remove the procfs version.
520 (fbsd_nat_target::info_proc): Assume kinfo_getfile() and
521 kinfo_get_vmmap() are always present.
522
523 2020-09-16 John Baldwin <jhb@FreeBSD.org>
524
525 * fbsd-nat.c: Always include support for
526 TARGET_OBJECT_SIGNAL_INFO.
527
528 2020-09-16 John Baldwin <jhb@FreeBSD.org>
529
530 * fbsd-nat.c (fbsd_nat_target::pid_to_exec_file): Always use
531 sysctl and remove procfs fallback.
532
533 2020-09-16 John Baldwin <jhb@FreeBSD.org>
534
535 * fbsd-nat.c: Assume PT_LWPINFO is always defined.
536 * fbsd-nat.h: Likewise.
537
538 2020-09-16 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
539
540 * breakpoint.c (commands_command_1): Make a copy of the 'arg'
541 argument.
542
543 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
544
545 * ada-lang.c (ada_language_data): Delete.
546 (ada_language): Remove references to ada_language_data.
547 * c-lang.c (c_language_data): Delete.
548 (c_language): Remove references to c_language_data.
549 (cplus_language_data): Delete.
550 (cplus_language): Remove references to cplus_language_data.
551 (asm_language_data): Delete.
552 (asm_language): Remove references to asm_language_data.
553 (minimal_language_data): Delete.
554 (minimal_language): Remove references to minimal_language_data.
555 * d-lang.c (d_language_data): Delete.
556 (d_language): Remove references to d_language_data.
557 * f-lang.c (f_language_data): Delete.
558 (f_language): Remove references to f_language_data.
559 * go-lang.c (go_language_data): Delete.
560 (go_language): Remove references to go_language_data.
561 * language.c (unknown_language_data): Delete.
562 (unknown_language): Remove references to unknown_language_data.
563 (auto_language_data): Delete.
564 (auto_language): Remove references to auto_language_data.
565 * language.h (language_data): Delete struct.
566 (language_defn): No longer inherit from language_data.
567 * m2-lang.c (m2_language_data): Delete.
568 (m2_language): Remove references to m2_language_data.
569 * objc-lang.c (objc_language_data): Delete.
570 (objc_language): Remove references to objc_language_data.
571 * opencl-lang.c (opencl_language_data): Delete.
572 (opencl_language): Remove references to opencl_language_data.
573 * p-lang.c (pascal_language_data): Delete.
574 (pascal_language): Remove references to pascal_language_data.
575 * rust-lang.c (rust_language_data): Delete.
576 (rust_language): Remove references to rust_language_data.
577
578 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
579
580 * ada-lang.c (ada_language_data): Remove la_op_print_tab
581 initializer.
582 (ada_language::opcode_print_table): New member function.
583 * c-lang.c (c_language_data): Remove la_op_print_tab initializer.
584 (c_language::opcode_print_table): New member function.
585 (cplus_language_data): Remove la_op_print_tab initializer.
586 (cplus_language::opcode_print_table): New member function.
587 (asm_language_data): Remove la_op_print_tab initializer.
588 (asm_language::opcode_print_table): New member function.
589 (minimal_language_data): Remove la_op_print_tab initializer.
590 (minimal_language::opcode_print_table): New member function.
591 * d-lang.c (d_language_data): Remove la_op_print_tab initializer.
592 (d_language::opcode_print_table): New member function.
593 * expprint.c (print_subexp_standard): Update call to
594 opcode_print_table.
595 (op_string): Likewise.
596 * f-lang.c (f_language_data): Remove la_op_print_tab initializer.
597 (f_language::opcode_print_table): New member function.
598 * go-lang.c (go_language_data): Remove la_op_print_tab
599 initializer.
600 (go_language::opcode_print_table): New member function.
601 * language.c (unknown_language_data): Remove la_op_print_tab
602 initializer.
603 (unknown_language::opcode_print_table): New member function.
604 (auto_language_data): Remove la_op_print_tab initializer.
605 (auto_language::opcode_print_table): New member function.
606 * language.h (language_data): Remove la_op_print_tab field.
607 (language_defn::opcode_print_table): Declare new member function.
608 * m2-lang.c (m2_language_data): Remove la_op_print_tab
609 initializer.
610 (m2_language::opcode_print_table): New member function.
611 * objc-lang.c (objc_language_data): Remove la_op_print_tab
612 initializer.
613 (objc_language::opcode_print_table): New member function.
614 * opencl-lang.c (opencl_language_data): Remove la_op_print_tab
615 initializer.
616 (opencl_language::opcode_print_table): New member function.
617 * p-lang.c (pascal_language_data): Remove la_op_print_tab
618 initializer.
619 (pascal_language::opcode_print_table): New member function.
620 * rust-lang.c (rust_language_data): Remove la_op_print_tab
621 initializer.
622 (rust_language::opcode_print_table): New member function.
623
624 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
625
626 * ada-lang.c (ada_language_data): Remove la_exp_desc initializer.
627 (ada_language::expression_ops): New member function.
628 * c-lang.c (c_language_data): Remove la_exp_desc initializer.
629 (c_language::expression_ops): New member function.
630 (cplus_language_data): Remove la_exp_desc initializer.
631 (cplus_language::expression_ops): New member function.
632 (asm_language_data): Remove la_exp_desc initializer.
633 (asm_language::expression_ops): New member function.
634 (minimal_language_data): Remove la_exp_desc initializer.
635 (minimal_language::expression_ops): New member function.
636 * d-lang.c (d_language_data): Remove la_exp_desc initializer.
637 (d_language::expression_ops): New member function.
638 * eval.c (evaluate_subexp): Update call to expression_ops.
639 * expprint.c (print_subexp): Likewise.
640 (op_name): Likewise.
641 (dump_subexp_body): Likewise.
642 * f-lang.c (f_language_data): Remove la_exp_desc initializer.
643 (f_language::expression_ops): New member function.
644 * go-lang.c (go_language_data): Remove la_exp_desc initializer.
645 (go_language::expression_ops): New member function.
646 * language.c (language_defn::expression_ops): New function.
647 (unknown_language_data): Remove la_exp_desc initializer.
648 (auto_language_data): Likewise.
649 * language.h (language_data): Remove la_exp_desc field.
650 (language_defn::expression_ops): Declare new member function.
651 * m2-lang.c (m2_language_data): Remove la_exp_desc initializer.
652 (m2_language::expression_ops): New member function.
653 * objc-lang.c (objc_language_data): Remove la_exp_desc
654 initializer.
655 * opencl-lang.c (opencl_language_data): Remove la_exp_desc
656 initializer.
657 (opencl_language::expression_ops): New member function.
658 * p-lang.c (pascal_language_data): Remove la_exp_desc initializer.
659 * parse.c (operator_length): Update call to expression_ops.
660 (exp_iterate): Likewise.
661 * rust-lang.c (rust_language_data): Remove la_exp_desc
662 initializer.
663 (ruse_language::expression_ops): New member function.
664
665 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
666
667 * ada-lang.c (ada_language_data): Remove la_varobj_ops
668 initializer.
669 (ada_language::varobj_ops): New member function.
670 * c-lang.c (c_language_data): Remove la_varobj_ops
671 initializer.
672 (cplus_language_data): Likewise.
673 (cplus_language::varobj_ops): New member function.
674 (asm_language_data): Remove la_varobj_ops initializer.
675 (minimal_language_data): Likewise.
676 * d-lang.c (d_language_data): Likewise.
677 * f-lang.c (f_language_data): Likewise.
678 * go-lang.c (go_language_data): Likewise.
679 * language.c (language_defn::varobj_ops): New function.
680 (unknown_language_data): Remove la_varobj_ops
681 initializer.
682 (auto_language_data): Likewise.
683 * language.h (language_data): Remove la_varobj_ops field.
684 (language_defn::varobj_ops): Declare new member function.
685 * m2-lang.c (m2_language_data): Remove la_varobj_ops initializer.
686 * objc-lang.c (objc_language_data): Likewise.
687 * opencl-lang.c (opencl_language_data): Likewise.
688 * p-lang.c (pascal_language_data): Likewise.
689 * rust-lang.c (rust_language_data): Likewise.
690 * varobj.c (varobj_create): Update call to varobj_ops.
691 * varobj.h (default_varobj_ops): Delete define.
692
693 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
694
695 * ada-lang.c (ada_language_data): Remove la_macro_expansion
696 initializer.
697 * c-lang.c (c_language_data): Likewise.
698 (c_language::macro_expansion): New member function.
699 (cplus_language_data): Likewise.
700 (cplus_language::macro_expansion): New member function.
701 (asm_language_data): Likewise.
702 (asm_language::macro_expansion): New member function.
703 (minimal_language_data): Likewise.
704 (minimal_language::macro_expansion): New member function.
705 * d-lang.c (d_language_data): Remove la_macro_expansion
706 initializer.
707 * f-lang.c (f_language_data): Likewise.
708 * go-lang.c (go_language_data): Likewise.
709 * language.c (unknown_language_data): Likewise.
710 (auto_language_data): Likewise.
711 * language.h (language_data): Remove la_macro_expansion field.
712 (language_defn::macro_expansion): New member function.
713 * m2-lang.c (m2_language_data): Remove la_macro_expansion
714 initializer.
715 * objc-lang.c (objc_language_data): Likewise.
716 (objc_language::macro_expansion): New member function.
717 * opencl-lang.c (opencl_language_data): Likewise.
718 (opencl_language::macro_expansion): New member function.
719 * p-lang.c (pascal_language_data): Remove la_macro_expansion
720 initializer.
721 * rust-lang.c (rust_language_data): Likewise.
722 * symtab.c (default_collect_symbol_completion_matches_break_on):
723 Update call to macro_expansion.
724
725 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
726
727 * ada-lang.c (ada_language_data): Remove la_array_ordering
728 initializer.
729 * c-lang.c (c_language_data): Likewise.
730 (cplus_language_data): Likewise.
731 (asm_language_data): Likewise.
732 (minimal_language_data): Likewise.
733 * d-lang.c (d_language_data): Likewise.
734 * dwarf2/read.c (read_array_order): Update for call to
735 array_ordering.
736 * f-lang.c (f_language_data): Remove la_array_ordering
737 initializer.
738 (f_language::array_ordering): New member function.
739 * go-lang.c (go_language_data): Remove la_array_ordering
740 initializer.
741 * language.c (unknown_language_data): Likewise.
742 (auto_language_data): Likewise.
743 * language.h (language_data): Delete la_array_ordering field.
744 (language_defn::array_ordering): New member function.
745 * m2-lang.c (m2_language_data): Remove la_array_ordering
746 initializer.
747 * objc-lang.c (objc_language_data): Likewise.
748 * opencl-lang.c (opencl_language_data): Likewise.
749 * p-lang.c (pascal_language_data): Likewise.
750 * rust-lang.c (rust_language_data): Likewise.
751
752 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
753
754 * ada-lang.c (ada_language_data): Remove la_case_sensitivity
755 initializer.
756 * c-lang.c (c_language_data): Likewise.
757 (cplus_language_data): Likewise.
758 (asm_language_data): Likewise.
759 (minimal_language_data): Likewise.
760 * d-lang.c (d_language_data): Likewise.
761 * f-lang.c (f_language_data): Likewise.
762 (f_language::case_sensitivity): New member function.
763 * go-lang.c (go_language_data): Remove la_case_sensitivity
764 initializer.
765 * language.c (enum case_mode): Moved here from language.h.
766 (case_mode): Make static.
767 (show_case_command): Update for case_sensitivity being a method.
768 (set_case_command): Likewise.
769 (set_range_case): Likewise.
770 (unknown_language_data): Remove la_case_sensitivity initializer.
771 (auto_language_data): Likewise.
772 * language.h (case_mode): Delete, move enum declaration to
773 language.c.
774 (language_data): Delete la_case_sensitivity field.
775 (language_defn::case_sensitivity): New member function.
776 * m2-lang.c (m2_language_data): Remove la_case_sensitivity
777 initializer.
778 * objc-lang.c (objc_language_data): Likewise.
779 * opencl-lang.c (opencl_language_data): Likewise.
780 * p-lang.c (pascal_language_data): Likewise.
781 * rust-lang.c (rust_language_data): Likewise.
782
783 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
784
785 * ada-lang.c (ada_language_data): Remove la_range_check
786 initializer.
787 * c-lang.c (c_language_data): Likewise.
788 (cplus_language_data): Likewise.
789 (asm_language_data): Likewise.
790 (minimal_language_data): Likewise.
791 * d-lang.c (d_language_data): Likewise.
792 * f-lang.c (f_language_data): Likewise.
793 (f_language::range_checking_on_by_default): New member function.
794 * go-lang.c (go_language_data): Remove la_range_check initializer.
795 * language.c (enum range_mode): Moved here from language.h.
796 (range_mode): Made static.
797 (show_range_command): Update to use
798 range_checking_on_by_default.
799 (set_range_command): Likewise.
800 (set_range_case): Likewise.
801 (unknown_language_data): Remove la_range_check initializer.
802 (auto_language_data): Likewise.
803 * language.h (range_mode): Delete. Enum definition moved to
804 language.c.
805 (language_data): Remove la_range_check field.
806 (language_defn::range_checking_on_by_default): New member
807 function.
808 * m2-lang.c (m2_language_data): Remove la_range_check initializer.
809 (m2_language::range_checking_on_by_default): New member function.
810 * objc-lang.c (objc_language_data): Remove la_range_check
811 initializer.
812 * opencl-lang.c (opencl_language_data): Likewise.
813 * p-lang.c (pascal_language_data): Likewise.
814 (pascal_language::range_checking_on_by_default): New member
815 function.
816 * rust-lang.c (rust_language_data): Remove la_range_check
817 initializer.
818 (rust_language::range_checking_on_by_default): New member
819 function.
820
821 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
822
823 * dwarf2/read.c (dwarf2_physname): Remove special case for
824 language_go.
825 * go-lang.c (go_language::store_sym_names_in_linkage_form_p): New
826 member function.
827
828 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
829
830 * ada-lang.c (ada_language_data): Remove
831 la_store_sym_names_in_linkage_form_p initializer.
832 (ada_language::store_sym_names_in_linkage_form_p): New member
833 function.
834 * c-lang.c (c_language_data): Remove
835 la_store_sym_names_in_linkage_form_p initializer.
836 (c_language::store_sym_names_in_linkage_form_p): New member
837 function.
838 (cplus_language_data): Remove la_store_sym_names_in_linkage_form_p
839 initializer.
840 (asm_language_data): Likewise.
841 (asm_language::store_sym_names_in_linkage_form_p): New member
842 function.
843 (minimal_language_data): Remove
844 la_store_sym_names_in_linkage_form_p initializer.
845 (minimal_language::store_sym_names_in_linkage_form_p): New member
846 function.
847 * d-lang.c (d_language_data): Remove
848 la_store_sym_names_in_linkage_form_p initializer.
849 * dwarf2/read.c (dwarf2_physname): Update call to
850 store_sym_names_in_linkage_form_p.
851 * f-lang.c (f_language_data): Remove
852 la_store_sym_names_in_linkage_form_p initializer.
853 * go-lang.c (go_language_data): Remove
854 la_store_sym_names_in_linkage_form_p initializer.
855 * language.c (unknown_language_data): Remove
856 la_store_sym_names_in_linkage_form_p initializer.
857 (unknown_language::store_sym_names_in_linkage_form_p): New member
858 function.
859 (auto_language_data): Remove la_store_sym_names_in_linkage_form_p
860 initializer.
861 (auto_language::store_sym_names_in_linkage_form_p): New member
862 function.
863 * language.h (language_data): Remove
864 la_store_sym_names_in_linkage_form_p member variable.
865 (language_defn::store_sym_names_in_linkage_form_p): New member
866 function.
867 * m2-lang.c (m2_language_data): Remove
868 la_store_sym_names_in_linkage_form_p initializer.
869 * objc-lang.c (objc_language_data): Likewise.
870 * opencl-lang.c (opencl_language_data): Likewise.
871 * p-lang.c (pascal_language_data): Likewise.
872 * rust-lang.c (rust_language_data): Likewise.
873
874 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
875
876 * ada-lang.c (ada_language_data): Remove string_lower_bound
877 initializer.
878 * c-lang.c (c_language_data): Likewise.
879 (cplus_language_data): Likewise.
880 (asm_language_data): Likewise.
881 (minimal_language_data): Likewise.
882 * d-lang.c (d_language_data): Likewise.
883 * f-lang.c (f_language_data): Likewise.
884 * go-lang.c (go_language_data): Likewise.
885 * language.c (unknown_language_data): Likewise.
886 (auto_language_data): Likewise.
887 * language.h (language_data): Remove string_lower_bound field.
888 (language_defn::string_lower_bound): New member function.
889 * m2-lang.c (m2_language_data): Remove string_lower_bound
890 initializer.
891 (m2_language::string_lower_bound): New member function.
892 * objc-lang.c (objc_language_data): Remove string_lower_bound
893 initializer.
894 * opencl-lang.c (opencl_language_data): Likewise.
895 * p-lang.c (pascal_language_data): Likewise.
896 * rust-lang.c (rust_language_data): Likewise.
897 * valops.c (value_cstring): Update call to string_lower_bound.
898 (value_string): Likewise.
899 * value.c (allocate_repeated_value): Likewise.
900
901 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
902
903 * valops.c (value_repeat): Fix incorrect argument name in comment.
904
905 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
906
907 * ada-lang.c (ada_language_data): Remove c_style_arrays
908 initializer.
909 (ada_language::c_style_arrays_p): New member fuction.
910 * c-lang.c (c_language_data): Remove c_style_arrays
911 initializer.
912 (cplus_language_data): Likewise.
913 (asm_language_data): Likewise.
914 (minimal_language_data): Likewise.
915 * d-lang.c (d_language_data): Likewise.
916 * eval.c (ptrmath_type_p): Update call to c_style_arrays_p.
917 * f-lang.c (f_language_data): Remove c_style_arrays initializer.
918 (f_language::c_style_arrays_p): New member function.
919 * go-lang.c (go_language_data): Remove c_style_arrays initializer.
920 * infcall.c (value_arg_coerce): Update call to c_style_arrays_p.
921 * language.c (unknown_language_data): Remove c_style_arrays
922 initializer.
923 (auto_language_data): Likewise.
924 * language.h (language_data): Remove c_style_arrays field.
925 (language_defn::c_style_arrays_p): New member function.
926 * m2-lang.c (m2_language_data): Remove c_style_arrays initializer.
927 (m2_language::c_style_arrays_p): New member function.
928 * objc-lang.c (objc_language_data): Remove c_style_arrays
929 initializer.
930 * opencl-lang.c (opencl_language_data): Likewise.
931 * p-lang.c (pascal_language_data): Likewise.
932 * rust-lang.c (rust_language_data): Likewise.
933 * valarith.c (value_subscript): Update call to c_style_arrays_p,
934 and update local variable to a bool.
935 * valops.c (value_cast): Update call to c_style_arrays_p.
936 (value_array): Likewise.
937 * value.c (coerce_array): Likewise.
938
939 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
940
941 * ada-lang.c (ada_language_data): Remove la_language initializer.
942 * c-lang.c (c_language_data): Likewise.
943 (cplus_language_data): Likewise.
944 (asm_language_data): Likewise.
945 (minimal_language_data): Likewise.
946 * d-lang.c (d_language_data): Likewise.
947 * f-lang.c (f_language_data): Likewise.
948 * go-lang.c (go_language_data): Likewise.
949 * language.c (unknown_language_data): Likewise.
950 (auto_language_data): Likewise.
951 * language.h (language_data): Remove la_language field.
952 (language_defn::language_defn): Initialise la_language field.
953 (language_defn::la_language): New member variable.
954 * m2-lang.c (m2_language_data): Remove la_language field.
955 * objc-lang.c (objc_language_data): Likewise.
956 * opencl-lang.c (opencl_language_data): Likewise.
957 * p-lang.c (pascal_language_data): Likewise.
958 * rust-lang.c (rust_language_data): Likewise.
959
960 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
961
962 * ada-lang.c (ada_extensions): Delete, moved into
963 ada_language::filename_extensions.
964 (ada_language_data): Remove la_filename_extensions initializer.
965 (ada_language::filename_extensions): New member function.
966 * c-lang.c (c_extensions): Delete, moved into
967 c_language::filename_extensions.
968 (c_language_data): Remove la_filename_extensions initializer.
969 (c_language::filename_extensions): New member function.
970 (cplus_extensions): Delete, moved into
971 cplus_language::filename_extensions.
972 (cplus_language_data): Remove la_filename_extensions initializer.
973 (cplus_language::filename_extensions): New member function.
974 (asm_extensions): Delete, moved into
975 asm_language::filename_extensions.
976 (asm_language_data): Remove la_filename_extensions initializer.
977 (asm_language::filename_extensions): New member function.
978 (minimal_language_data): Remove la_filename_extensions
979 initializer.
980 * d-lang.c (d_extensions): Delete, moved into
981 d_language::filename_extensions.
982 (d_language_data): Remove la_filename_extensions initializer.
983 (d_language::filename_extensions): New member function.
984 * f-lang.c (f_extensions): Delete, moved into
985 f_language::filename_extensions.
986 (f_language_data): Remove la_filename_extensions initializer.
987 (f_language::filename_extensions): New member function.
988 * go-lang.c (go_language_data): Remove la_filename_extensions
989 initializer.
990 * language.c (add_set_language_command): Update now that
991 filename_extensions returns a vector.
992 (unknown_language_data): Remove la_filename_extensions
993 initializer.
994 (auto_language_data): Likewise.
995 * language.h (language_data): Remove la_filename_extensions field.
996 (language_defn::filename_extensions): New member function.
997 * m2-lang.c (m2_language_data): Remove la_filename_extensions
998 initializer.
999 * objc-lang.c (objc_extensions): Delete, moved into
1000 objc_language::filename_extensions.
1001 (objc_language_data): Remove la_filename_extensions initializer.
1002 (objc_language::filename_extensions): New member function.
1003 * opencl-lang.c (opencl_language_data): Remove
1004 la_filename_extensions initializer.
1005 * p-lang.c (pascal_extensions): Delete, moved into
1006 pascal_language::filename_extensions.
1007 (pascal_language_data): Remove la_filename_extensions initializer.
1008 (pascal_language::filename_extensions): New member function.
1009 * rust-lang.c (rust_extensions): Delete, moved into
1010 rust_language::filename_extensions.
1011 (rust_language_data): Remove la_filename_extensions initializer.
1012 (rust_language::filename_extensions): New member function.
1013 * symfile.c (add_filename_language): Add new assert.
1014
1015 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
1016
1017 * ada-lang.c (ada_language_data): Remove la_name and
1018 la_natural_name initializers.
1019 (ada_language::name): New member function.
1020 (ada_language::natural_name): New member function.
1021 * c-lang.c (c_language_data): Remove la_name and
1022 la_natural_name initializers.
1023 (c_language::name): New member function.
1024 (c_language::natural_name): New member function.
1025 (cplus_language_data): Remove la_name and
1026 la_natural_name initializers.
1027 (cplus_language::name): New member function.
1028 (cplus_language::natural_name): New member function.
1029 (asm_language_data): Remove la_name and
1030 la_natural_name initializers.
1031 (asm_language::name): New member function.
1032 (asm_language::natural_name): New member function.
1033 (minimal_language_data): Remove la_name and
1034 la_natural_name initializers.
1035 (minimal_language::name): New member function.
1036 (minimal_language::natural_name): New member function.
1037 * compile/compile.c (compile_to_object): Update call to
1038 lanugage_defn::name.
1039 * d-lang.c (d_language_data): Remove la_name and
1040 la_natural_name initializers.
1041 (d_language::name): New member function.
1042 (d_language::natural_name): New member function.
1043 * expprint.c (print_subexp_standard): Update call to
1044 language_defn::name.
1045 (dump_raw_expression): Likewise
1046 (dump_prefix_expression): Likewise.
1047 * f-lang.c (f_language_data): Remove la_name and
1048 la_natural_name initializers.
1049 (f_language::name): New member function.
1050 (f_language::natural_name): New member function.
1051 * go-lang.c (go_language_data): Remove la_name and
1052 la_natural_name initializers.
1053 (go_language::name): New member function.
1054 (go_language::natural_name): New member function.
1055 * language.c (show_language_command): Update call to
1056 language_defn::name.
1057 (set_language_command): Likewise.
1058 (language_enum): Likewise.
1059 (language_str): Likewise.
1060 (add_set_language_command): Likewise, use
1061 language_defn::natural_name in the doc string.
1062 (unknown_language_data): Remove la_name and
1063 la_natural_name initializers.
1064 (unknown_language::name): New member function.
1065 (unknown_language::natural_name): New member function.
1066 (auto_language_data): Remove la_name and
1067 la_natural_name initializers.
1068 (auto_language::name): New member function.
1069 (auto_language::natural_name): New member function.
1070 (language_lookup_primitive_type_as_symbol): Update call to
1071 language_defn::name.
1072 * language.h (language_data): Remove la_name and la_natural_name
1073 member variables.
1074 (language_defn::name): New member function.
1075 (language_defn::natural_name): New member function.
1076 * m2-lang.c (m2_language_data): Remove la_name and
1077 la_natural_name initializers.
1078 (m2_language::name): New member function.
1079 (m2_language::natural_name): New member function.
1080 * mi/mi-cmd-var.c (mi_cmd_var_info_expression): Update call to
1081 language_defn::natural_name.
1082 * objc-lang.c (objc_language_data): Remove la_name and
1083 la_natural_name initializers.
1084 (objc_language::name): New member function.
1085 (objc_language::natural_name): New member function.
1086 * opencl-lang.c (opencl_language_data): Remove la_name and
1087 la_natural_name initializers.
1088 (opencl_language::name): New member function.
1089 (opencl_language::natural_name): New member function.
1090 * p-lang.c (pascal_language_data): Remove la_name and
1091 la_natural_name initializers.
1092 (pascal_language::name): New member function.
1093 (pascal_language::natural_name): New member function.
1094 * rust-lang.c (rust_language_data): Remove la_name and
1095 la_natural_name initializers.
1096 (rust_language::name): New member function.
1097 (rust_language::natural_name): New member function.
1098 * symtab.c (lookup_language_this): Update call to
1099 language_defn::name.
1100
1101 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
1102
1103 * ada-lang.c (ada_language_data): Remove la_name_of_this
1104 initializer.
1105 * ax-gdb.c (gen_expr): Update call to name_of_this.
1106 * c-exp.y (classify_name): Likewise.
1107 * c-lang.c (c_language_data): Remove la_name_of_this initializer.
1108 (cplus_language_data): Likewise.
1109 (cplus_language::name_of_this): New member function.
1110 (asm_language_data): Remove la_name_of_this initializer.
1111 (minimal_language_data): Likewise.
1112 * d-lang.c (d_language_data): Likewise.
1113 (d_language::name_of_this): New member function.
1114 * expprint.c (print_subexp_standard): Update call to name_of_this.
1115 * f-lang.c (f_language_data): Remove la_name_of_this initializer.
1116 * go-lang.c (go_language_data): Likewise.
1117 * language.c (unknown_language_data): Likewise.
1118 (unknown_language::name_of_this): New member function.
1119 (auto_language_data): Remove la_name_of_this initializer.
1120 (auto_language::name_of_this): New member function.
1121 * language.h (language_data): Delete la_name_of_this member
1122 variable.
1123 (language_defn::name_of_this): New member function.
1124 * m2-lang.c (m2_language_data): Remove la_name_of_this
1125 initializer.
1126 * objc-lang.c (objc_language_data): Likewise.
1127 (objc_language::name_of_this): New member function.
1128 * opencl-lang.c (opencl_language_data): Remove la_name_of_this
1129 initializer.
1130 * p-lang.c (pascal_language_data): Likewise.
1131 (pascal_language::name_of_this): New member function.
1132 * rust-lang.c (rust_language_data): Remove la_name_of_this
1133 initializer.
1134 * symtab.c (lookup_language_this): Update call to name_of_this.
1135 (lookup_symbol_aux): Likewise.
1136 * valops.c (value_of_this): Likewise.
1137
1138 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
1139
1140 * ada-lang.c (ada_language_data): Remove
1141 la_struct_too_deep_ellipsis initializer.
1142 (ada_language::struct_too_deep_ellipsis): New member function.
1143 * c-lang.c (c_language_data): Remove la_struct_too_deep_ellipsis
1144 initializer.
1145 (cplus_language_data): Likewise.
1146 (asm_language_data): Likewise.
1147 (minimal_language_data): Likewise.
1148 * cp-valprint.c (cp_print_value): Update call to
1149 struct_too_deep_ellipsis.
1150 * d-lang.c (d_language_data): Remove la_struct_too_deep_ellipsis
1151 initializer.
1152 * f-lang.c (f_language_data): Likewise.
1153 (f_language::struct_too_deep_ellipsis): New member function.
1154 * go-lang.c (go_language_data): Remove la_struct_too_deep_ellipsis
1155 initializer.
1156 * language.c (unknown_language_data): Likewise.
1157 (auto_language_data): Likewise.
1158 * language.h (language_data): Delete la_struct_too_deep_ellipsis
1159 member variable.
1160 (language_defn::struct_too_deep_ellipsis): New member function.
1161 * m2-lang.c (m2_language_data): Remove la_struct_too_deep_ellipsis
1162 initializer.Q
1163 * objc-lang.c (objc_language_data): Likewise.
1164 * opencl-lang.c (opencl_language_data): Likewise.
1165 * p-lang.c (pascal_language_data): Likewise.
1166 * rust-lang.c (rust_language_data): Likewise.
1167 * valprint.c (val_print_check_max_depth): Update call to
1168 struct_too_deep_ellipsis.
1169
1170 2020-09-16 Felix Willgerodt <felix.willgerodt@intel.com>
1171
1172 * MAINTAINERS (Write After Approval): Add myself.
1173
1174 2020-09-15 Tom Tromey <tom@tromey.com>
1175
1176 * f-valprint.c (f_value_print_inner) <case TYPE_CODE_INT>:
1177 Remove.
1178
1179 2020-09-15 Tom Tromey <tom@tromey.com>
1180
1181 * rust-lang.c (rust_value_print_inner): Remove TYPE_CODE_MEMBERPTR
1182 and TYPE_CODE_METHODPTR cases.
1183 * c-valprint.c (c_value_print_memberptr): Move to valprint.c.
1184 (c_value_print_inner): Update.
1185 * valprint.c (generic_value_print_memberptr): New function, from
1186 c_value_print_memberptr.
1187 (generic_value_print): Use it. Call cplus_print_method_ptr.
1188
1189 2020-09-15 Tom Tromey <tromey@adacore.com>
1190
1191 * python/python-internal.h (PyInt_FromLong): Remove define.
1192 * python/py-value.c (convert_value_from_python): Use
1193 gdb_py_object_from_longest.
1194 * python/py-type.c (typy_get_code): Use
1195 gdb_py_object_from_longest.
1196 * python/py-symtab.c (salpy_get_line): Use
1197 gdb_py_object_from_longest.
1198 * python/py-symbol.c (sympy_get_addr_class, sympy_line): Use
1199 gdb_py_object_from_longest.
1200 * python/py-record.c (recpy_gap_reason_code): Use
1201 gdb_py_object_from_longest.
1202 * python/py-record-btrace.c (recpy_bt_insn_size)
1203 (recpy_bt_func_level, btpy_list_count): Use
1204 gdb_py_object_from_longest.
1205 * python/py-infthread.c (gdbpy_create_ptid_object): Use
1206 gdb_py_object_from_longest. Fix error handling.
1207 * python/py-framefilter.c (bootstrap_python_frame_filters): Use
1208 gdb_py_object_from_longest.
1209 * python/py-frame.c (frapy_type, frapy_unwind_stop_reason): Use
1210 gdb_py_object_from_longest.
1211 * python/py-breakpoint.c (bppy_get_type, bppy_get_number)
1212 (bppy_get_thread, bppy_get_task, bppy_get_hit_count)
1213 (bppy_get_ignore_count): Use gdb_py_object_from_longest.
1214
1215 2020-09-15 Tom Tromey <tromey@adacore.com>
1216
1217 * python/python.c (gdbpy_parameter_value): Use
1218 gdb_py_object_from_ulongest.
1219
1220 2020-09-15 Tom Tromey <tromey@adacore.com>
1221
1222 * python/py-infevents.c (create_register_changed_event_object):
1223 Use gdb_py_object_from_longest.
1224 * python/py-exitedevent.c (create_exited_event_object): Use
1225 gdb_py_object_from_longest.
1226
1227 2020-09-15 Tom Tromey <tromey@adacore.com>
1228
1229 * python/python.c (gdbpy_parameter_value): Use
1230 gdb_py_object_from_longest.
1231 * python/py-type.c (convert_field, typy_range): Use
1232 gdb_py_object_from_longest.
1233 * python/py-tui.c (gdbpy_tui_width, gdbpy_tui_height): Use
1234 gdb_py_object_from_longest.
1235 * python/py-lazy-string.c (stpy_get_length): Use
1236 gdb_py_object_from_longest.
1237 * python/py-infthread.c (thpy_get_num, thpy_get_global_num): Use
1238 gdb_py_object_from_longest.
1239 * python/py-infevents.c (create_memory_changed_event_object): Use
1240 gdb_py_object_from_longest.
1241 * python/py-inferior.c (infpy_get_num): Use
1242 gdb_py_object_from_longest.
1243 (infpy_get_pid): Likewise.
1244
1245 2020-09-15 Tom Tromey <tromey@adacore.com>
1246
1247 * python/python-internal.h (gdb_py_long_from_ulongest): Remove
1248 defines.
1249 * python/py-value.c (valpy_long): Use
1250 gdb_py_object_from_ulongest.
1251 * python/py-symtab.c (salpy_get_pc): Use
1252 gdb_py_object_from_ulongest.
1253 (salpy_get_last): Likewise.
1254 * python/py-record-btrace.c (recpy_bt_insn_pc): Use
1255 gdb_py_object_from_ulongest.
1256 * python/py-lazy-string.c (stpy_get_address): Use
1257 gdb_py_object_from_ulongest.
1258 * python/py-frame.c (frapy_pc): Use gdb_py_object_from_ulongest.
1259 * python/py-arch.c (archpy_disassemble): Use
1260 gdb_py_object_from_ulongest and gdb_py_object_from_longest. Fix
1261 error handling.
1262
1263 2020-09-15 Tom Tromey <tromey@adacore.com>
1264
1265 * python/python-internal.h (gdb_py_long_from_longest): Remove
1266 defines.
1267 * python/py-value.c (valpy_long): Use gdb_py_object_from_longest.
1268 * python/py-type.c (convert_field, typy_get_sizeof): Use
1269 gdb_py_object_from_longest.
1270 * python/py-record-btrace.c (btpy_list_index): Use
1271 gdb_py_object_from_longest.
1272
1273 2020-09-15 Tom Tromey <tromey@adacore.com>
1274
1275 * python/python-internal.h (PyInt_FromSsize_t): Remove define.
1276 * python/py-record.c (recpy_element_number): Use
1277 gdb_py_object_from_longest.
1278 (recpy_gap_number): Likewise.
1279
1280 2020-09-15 Tom Tromey <tromey@adacore.com>
1281
1282 * top.c (ui::ui): Update.
1283 (highest_ui_num): Remove.
1284 * top.h (struct ui) <num>: Remove.
1285
1286 2020-09-15 Tom Tromey <tromey@adacore.com>
1287
1288 * unittests/memory-map-selftests.c (valid_mem_map): Now array.
1289 * ui-style.c (ansi_regex_text): Now array.
1290 * rust-exp.y (number_regex_text): Now array.
1291 * linespec.c (linespec_quote_characters): Now array.
1292 * jit.c (jit_break_name, jit_descriptor_name, reader_init_fn_sym):
1293 Now arrays.
1294
1295 2020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
1296
1297 * debuginfod-support.c (debuginfod_client_deleter): New.
1298 (debuginfod_client_up): New.
1299 (debuginfod_init): Return debuginfod_client_up.
1300 (debuginfod_source_query): Adjust.
1301 (debuginfod_debuginfo_query): Adjust.
1302
1303 2020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
1304
1305 * debuginfod-support.c (debuginfod_source_query): Use
1306 make_unique_xstrdup.
1307
1308 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
1309
1310 * gdbtypes.h (TYPE_INSTANCE_FLAGS): Remove, replace all uses
1311 with `type::instance_flags`.
1312
1313 2020-09-14 Michael Mullin <masmullin@gmail.com>
1314
1315 * xml-tdesc.c [!defined(HAVE_LIBEXPAT)] (tdesc_parse_xml):
1316 Remove baton parameter.
1317
1318 2020-09-14 Pedro Alves <pedro@palves.net>
1319
1320 * Makefile.in (SELFTESTS_SRCS): Add
1321 unittests/enum-flags-selftests.c.
1322 * btrace.c (ftrace_update_caller, ftrace_fixup_calle): Use
1323 btrace_function_flags instead of enum btrace_function_flag.
1324 * compile/compile-c-types.c (convert_qualified): Use
1325 enum_flags::raw.
1326 * compile/compile-cplus-symbols.c (convert_one_symbol)
1327 (convert_symbol_bmsym):
1328 * compile/compile-cplus-types.c (compile_cplus_convert_method)
1329 (compile_cplus_convert_struct_or_union_methods)
1330 (compile_cplus_instance::convert_qualified_base):
1331 * go-exp.y (parse_string_or_char): Add cast to int.
1332 * unittests/enum-flags-selftests.c: New file.
1333 * record-btrace.c (btrace_thread_flag_to_str): Change parameter's
1334 type to btrace_thread_flags from btrace_thread_flag.
1335 (record_btrace_cancel_resume, record_btrace_step_thread): Change
1336 local's type to btrace_thread_flags from btrace_thread_flag. Add
1337 cast in DEBUG call.
1338
1339 2020-09-14 Pedro Alves <pedro@palves.net>
1340
1341 * c-typeprint.c (c_type_print_modifier): Adjust to rename.
1342 * gdbtypes.c (address_space_name_to_int): Rename to ...
1343 (address_space_name_to_type_instance_flags): ... this.
1344 (address_space_int_to_name): Rename to ...
1345 (address_space_type_instance_flags_to_name): ... this.
1346 * gdbtypes.h (address_space_name_to_int): Rename to ...
1347 (address_space_name_to_type_instance_flags): ... this.
1348 (address_space_int_to_name): Rename to ...
1349 (address_space_type_instance_flags_to_name): ... this.
1350 * type-stack.c (type_stack::insert): Adjust to rename.
1351 * type-stack.h (type_stack::insert): Likewise.
1352
1353 2020-09-14 Pedro Alves <pedro@palves.net>
1354 Andrew Burgess <andrew.burgess@embecosm.com>
1355
1356 * avr-tdep.c (avr_address_class_type_flags): Return
1357 type_instance_flags.
1358 (avr_address_class_type_flags_to_name): Take a
1359 type_instance_flags.
1360 (avr_address_class_name_to_type_flags): Return bool and take a
1361 type_instance_flags.
1362 * d-lang.c (build_d_types): Use type::set_instance_flags.
1363 * ft32-tdep.c (ft32_address_class_type_flags): Return
1364 type_instance_flags.
1365 (ft32_address_class_type_flags_to_name): Take a
1366 type_instance_flags.
1367 (ft32_address_class_name_to_type_flags): Return bool and take a
1368 type_instance_flags.
1369 (ft32_gdbarch_init): Use type::set_instance_flags.
1370 * eval.c (fake_method::fake_method): Use type::set_instance_flags.
1371 * gdbarch.h, gdbarch.c: Regenerate.
1372 * gdbarch.sh (address_class_type_flags): Use type_instance_flags.
1373 (address_class_name_to_type_flags): Use type_instance_flags and
1374 bool.
1375 * gdbtypes.c (address_space_name_to_int)
1376 (address_space_int_to_name, make_qualified_type): Use
1377 type_instance_flags.
1378 (make_qualified_type): Use type_instance_flags and
1379 type::set_instance_flags.
1380 (make_type_with_address_space, make_cv_type, make_vector_type)
1381 (check_typedef): Use type_instance_flags.
1382 (recursive_dump_type): Cast type_instance_flags to unsigned for
1383 printing.
1384 (copy_type_recursive): Use type::set_instance_flags.
1385 (gdbtypes_post_init): Use type::set_instance_flags.
1386 * gdbtypes.h (struct type) <instance_flags>: Rename to ...
1387 <m_instance_flags>: ... this.
1388 <instance_flags, set_instance_flags>: New methods.
1389 (TYPE_INSTANCE_FLAGS): Use the instance_flags method.
1390 (SET_TYPE_INSTANCE_FLAGS): New.
1391 (address_space_name_to_int, address_space_int_to_name)
1392 (make_type_with_address_space): Pass flags using
1393 type_instance_flags instead of int.
1394 * stabsread.c (cleanup_undefined_types_noname): Use
1395 type::set_instance_flags.
1396 * s390-tdep.c (s390_address_class_type_flags): Return
1397 type_instance_flags.
1398 (s390_address_class_type_flags_to_name): Take a
1399 type_instance_flags.
1400 (s390_address_class_name_to_type_flags): Return bool and take a
1401 type_instance_flags.
1402 * type-stack.c (type_stack::follow_types): Use
1403 type_instance_flags.
1404 * dwarf2/read.c (read_tag_pointer_type): Use type_instance_flags.
1405
1406 2020-09-14 Tom Tromey <tromey@adacore.com>
1407
1408 * x86-tdep.h (x86_in_indirect_branch_thunk): Update.
1409 * x86-tdep.c (x86_is_thunk_register_name)
1410 (x86_in_indirect_branch_thunk): Update.
1411 * sparc64-tdep.c (sparc64_fpu_register_names)
1412 (sparc64_cp0_register_names, sparc64_register_names)
1413 (sparc64_pseudo_register_names): Now const.
1414 * sparc-tdep.h (struct gdbarch_tdep) <fpu_register_names,
1415 cp0_registers_num>: Now const.
1416 * sparc-tdep.c (sparc_core_register_names)
1417 (sparc32_fpu_register_names, sparc32_cp0_register_names)
1418 (sparc32_pseudo_register_names): Now const.
1419 (validate_tdesc_registers): Update.
1420 * rust-lang.c (rust_extensions): Now const.
1421 * p-lang.c (p_extensions): Now const.
1422 * objc-lang.c (objc_extensions): Now const.
1423 * nto-tdep.c (nto_thread_state_str): Now const.
1424 * moxie-tdep.c (moxie_register_names): Now const.
1425 * mips-tdep.h (struct gdbarch_tdep) <mips_processor_reg_names>:
1426 Now const.
1427 * mips-tdep.c (mips_generic_reg_names, mips_tx39_reg_names)
1428 (mips_linux_reg_names): Now const.
1429 (mips_gdbarch_init): Update.
1430 * microblaze-tdep.c (microblaze_register_names): Now const.
1431 * m68k-tdep.c (m68k_register_names): Now const.
1432 * m32r-tdep.c (m32r_register_names): Now const.
1433 * ia64-tdep.c (ia64_register_names): Now const.
1434 * i386-tdep.h (struct gdbarch_tdep) <register_names,
1435 ymmh_register_names, ymm16h_regnum, mpx_register_names,
1436 k_register_names, zmmh_register_names, xmm_avx512_register_names,
1437 ymm_avx512_register_names, pkeys_register_names>: Now const.
1438 * i386-tdep.c (i386_register_names, i386_zmm_names)
1439 (i386_zmmh_names, i386_k_names, i386_ymm_names, i386_ymmh_names)
1440 (i386_mpx_names, i386_pkeys_names, i386_bnd_names)
1441 (i386_mmx_names, i386_byte_names, i386_word_names): Now const.
1442 * f-lang.c (f_extensions): Now const.
1443 * d-lang.c (d_extensions): Now const.
1444 * csky-tdep.c (csky_register_names): Now const.
1445 * charset.c (default_charset_names, charset_enum): Now const.
1446 (_initialize_charset): Update.
1447 * c-lang.c (c_extensions, cplus_extensions, asm_extensions): Now
1448 const.
1449 * bsd-uthread.c (bsd_uthread_solib_names): Now const.
1450 (bsd_uthread_solib_loaded): Update.
1451 (bsd_uthread_state): Now const.
1452 * amd64-tdep.c (amd64_register_names, amd64_ymm_names)
1453 (amd64_ymm_avx512_names, amd64_ymmh_names)
1454 (amd64_ymmh_avx512_names, amd64_mpx_names, amd64_k_names)
1455 (amd64_zmmh_names, amd64_zmm_names, amd64_xmm_avx512_names)
1456 (amd64_pkeys_names, amd64_byte_names, amd64_word_names)
1457 (amd64_dword_names): Now const.
1458 * agent.c (can_use_agent_enum): Now const.
1459 * ada-tasks.c (task_states, long_task_states): Now const.
1460 * ada-lang.c (known_runtime_file_name_patterns)
1461 (known_auxiliary_function_name_patterns, attribute_names)
1462 (standard_exc, ada_extensions): Now const.
1463
1464 2020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
1465
1466 * bcache.h (struct bcache) <bcache>: Remove constructor.
1467 <m_hash_function, m_compare_function>: Remove.
1468 <~bcache>: Make virtual.
1469 <compare>: Remove static method, introduce virtual method.
1470 <default_hash>: Remove.
1471 <hash>: New virtual method.
1472 * bcache.c (bcache::expand_hash_table): Update.
1473 (bcache::insert): Update.
1474 (bcache::hash): New.
1475 (bcache::compare): Update comment and parameter names.
1476 * gdbtypes.c (types_deeply_equal): Update.
1477 * psymtab.h (struct psymbol_bcache): New struct.
1478 (class psymtab_storage) <psymtab_storage>: Make default.
1479 <psymbol_cache>: Change type to psymbol_bcache.
1480 * psymtab.c (psymtab_storage::psymtab_storage): Remove.
1481 (psymbol_hash): Change to...
1482 (psymbol_bcache::hash): ... this.
1483 (psymbol_compare): Change to...
1484 (psymbol_bcache::compare): ... this.
1485
1486 2020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
1487
1488 * linux-nat.c (linux_nat_wait_1): Don't use inferior_ptid when
1489 checking for initial lwp.
1490
1491 2020-09-14 Tom Tromey <tromey@adacore.com>
1492
1493 * m68k-tdep.c (m68k_extract_return_value): Use
1494 pointer_result_regnum.
1495 (m68k_store_return_value): Likewise.
1496 (m68k_reg_struct_return_p): Handle vectors and arrays.
1497 (m68k_return_value): Handle arrays.
1498 (m68k_svr4_return_value): Fix single-element aggregate handling.
1499 Handle long double. Adjust for embedded ABI.
1500 (m68k_svr4_init_abi): Set pointer_result_regnum.
1501 (m68k_embedded_init_abi): New function.
1502 (m68k_gdbarch_init): Handle Tag_GNU_M68K_ABI_FP.
1503 (m68k_osabi_sniffer): New function.
1504 (_initialize_m68k_tdep): Register osabi sniffer.
1505 * m68k-tdep.h (struct gdbarch_tdep) <pointer_result_regnum>: New
1506 member.
1507
1508 2020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
1509
1510 * xml-support.c (xml_fetch_content_from_file): Replace xfree
1511 with gdb::unique_xmalloc_ptr<char>.
1512
1513 2020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
1514
1515 * xml-support.h (xml_fetch_another): Change type to be a
1516 function_view.
1517 (xml_process_xincludes): Remove baton parameter.
1518 (xml_fetch_content_from_file): Change baton parameter to
1519 dirname.
1520 * xml-support.c (struct xinclude_parsing_data)
1521 <xinclude_parsing_data>: Remove baton parameter.
1522 <fetcher_baton>: Remove.
1523 (xinclude_start_include): Adjust.
1524 (xml_process_xincludes): Adjust.
1525 (xml_fetch_content_from_file): Replace baton parameter with
1526 dirname.
1527 * xml-syscall.c (syscall_parse_xml): Remove baton parameter.
1528 (xml_init_syscalls_info): Use a lambda.
1529 * xml-tdesc.c (tdesc_parse_xml): Remove baton parameter.
1530 (file_read_description_xml): Use a lambda.
1531 (fetch_available_features_from_target): Change baton parameter
1532 to target_ops.
1533 (target_read_description_xml): Use a lambda.
1534 (target_fetch_description_xml): Use a lambda.
1535 (string_read_description_xml): Update.
1536
1537 2020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
1538
1539 * gdbtypes.h (TYPE_ENDIANITY_NOT_DEFAULT): Remove, replace all
1540 uses with type::endianity_is_not_default.
1541
1542 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
1543
1544 * gdbtypes.h (struct type) <endianity_is_not_default,
1545 set_endianity_is_not_default>: New methods.
1546 (TYPE_ENDIANITY_NOT_DEFAULT): Use
1547 type::endianity_is_not_default, change all write call sites to
1548 use type::set_endianity_is_not_default.
1549
1550 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
1551
1552 * gdbtypes.h (TYPE_FIXED_INSTANCE): Remove, replace all
1553 uses with type::is_fixed_instance.
1554
1555 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
1556
1557 * gdbtypes.h (struct type) <is_fixed_instance,
1558 set_is_fixed_instance>: New methods.
1559 (TYPE_FIXED_INSTANCE): Use type::is_fixed_instance, change all
1560 write call sites to use type::set_is_fixed_instance.
1561
1562 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
1563
1564 * gdbtypes.h (TYPE_GNU_IFUNC): Remove, replace all
1565 uses with type::is_gnu_ifunc.
1566
1567 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
1568
1569 * gdbtypes.h (struct type) <is_gnu_ifunc, set_is_gnu_ifunc>: New methods.
1570 (TYPE_GNU_IFUNC): Use type::is_gnu_ifunc, change all write call sites to
1571 use type::set_is_gnu_ifunc.
1572
1573 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
1574
1575 * gdbtypes.h (TYPE_STUB_SUPPORTED): Remove, replace all
1576 uses with type::stub_is_supported.
1577
1578 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
1579
1580 * gdbtypes.h (struct type) <stub_is_supported, set_stub_is_supported>: New methods.
1581 (TYPE_STUB_SUPPORTED): Use type::stub_is_supported, change all write call sites to
1582 use type::set_stub_is_supported.
1583
1584 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
1585
1586 * gdbtypes.h (TYPE_VECTOR): Remove, replace all
1587 uses with type::is_vector.
1588
1589 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
1590
1591 * gdbtypes.h (struct type) <is_vector, set_is_vector>: New methods.
1592 (TYPE_VECTOR): Use type::is_vector, change all write call sites to
1593 use type::set_is_vector.
1594
1595 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
1596
1597 * gdbtypes.h (TYPE_VARARGS): Remove, replace all
1598 uses with type::has_varargs.
1599
1600 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
1601
1602 * gdbtypes.h (struct type) <has_varargs, set_has_varargs>: New methods.
1603 (TYPE_VARARGS): Use type::has_varargs, change all write call sites to
1604 use type::set_has_varargs.
1605
1606 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
1607
1608 * gdbtypes.h (TYPE_PROTOTYPED): Remove, replace all
1609 uses with type::is_prototyped.
1610
1611 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
1612
1613 * gdbtypes.h (struct type) <is_prototyped, set_is_prototyped>:
1614 New methods.
1615 (TYPE_PROTOTYPED): Use type::is_prototyped, change all write
1616 call sites to use type::set_is_prototyped.
1617
1618 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
1619
1620 * gdbtypes.h (TYPE_TARGET_STUB): Remove, replace all
1621 uses with type::target_is_stub.
1622
1623 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
1624
1625 * gdbtypes.h (struct type) <target_is_stub, set_target_is_stub>:
1626 New methods.
1627 (TYPE_TARGET_STUB): Use type::is_stub, change all write call
1628 sites to use type::set_target_is_stub.
1629
1630 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
1631
1632 * gdbtypes.h (TYPE_STUB): Remove, replace all
1633 uses with type::is_stub.
1634
1635 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
1636
1637 * gdbtypes.h (struct type) <is_stub, set_is_stub>: New methods.
1638 (TYPE_STUB): Use type::is_stub, change all write call sites to
1639 use type::set_is_stub.
1640
1641 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
1642
1643 * gdbtypes.h (TYPE_NOSIGN): Remove, replace all uses with
1644 type::has_no_signedness.
1645
1646 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
1647
1648 * gdbtypes.h (struct type) <has_no_signedness,
1649 set_has_no_signedness>: New methods.
1650 (TYPE_NOSIGN): Use type::has_no_signedness, change all write
1651 call sites to use type::set_has_no_signedness.
1652
1653 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
1654
1655 * gdbtypes.h (TYPE_UNSIGNED): Remove, replace all uses with
1656 type::is_unsigned.
1657
1658 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
1659
1660 * gdbtypes.h (struct type) <is_unsigned, set_is_unsigned>: New
1661 methods.
1662 (TYPE_UNSIGNED): Use type::is_unsigned. Change all write call
1663 sites to use type::set_is_unsigned.
1664
1665 2020-09-14 Fredrik Hederstierna <fredrik.hederstierna@verisure.com>
1666 Adam Renquinha <arenquinha@cimeq.qc.ca>
1667
1668 * arm-tdep.c (arm_m_exception_cache): Try use correct stack
1669 pointer and stack frame offset when unwinding.
1670
1671 2020-09-13 Pedro Alves <pedro@palves.net>
1672
1673 * NEWS: Document "-break-insert --qualified".
1674 * mi/mi-cmd-break.c (mi_cmd_break_insert_1): Handle "--qualified".
1675
1676 2020-09-13 Pedro Alves <pedro@palves.net>
1677
1678 * linespec.c (classify_mtype, compare_msyms): Delete.
1679 (search_minsyms_for_name): Remove classification logic. Instead
1680 filter out trampoline symbols if we also found an external
1681 function of the same name.
1682
1683 2020-09-13 Joel Brobecker <brobecker@adacore.com>
1684
1685 * NEWS: Create a new section for the next release branch.
1686 Rename the section of the current branch, now that it has
1687 been cut.
1688
1689 2020-09-13 Joel Brobecker <brobecker@adacore.com>
1690
1691 GDB 10 branch created (8087c3fa8b5d695e3e29e69d70d0b35ec902ac59):
1692 * version.in: Bump version to 11.0.50.DATE-git.
1693
1694 2020-09-12 Joel Brobecker <brobecker@adacore.com>
1695
1696 * infrun.c (namespace selftests): Only define #if GDB_SELF_TEST.
1697
1698 2020-09-11 Moritz Riesterer <moritz.riesterer@intel.com>
1699 Felix Willgerodt <Felix.Willgerodt@intel.com>
1700
1701 * gdbarch.sh: Added bfloat16 type.
1702 * gdbarch.c: Regenerated.
1703 * gdbarch.h: Regenerated.
1704 * gdbtypes.c (floatformats_bfloat16): New struct.
1705 (gdbtypes_post_init): Add builtin_bfloat16.
1706 * gdbtypes.h (struct builtin_type) <builtin_bfloat16>: New member.
1707 (floatformats_bfloat16): New struct.
1708 * i386-tdep.c (i386_zmm_type): Add field "v32_bfloat16"
1709 (i386_ymm_type): Add field "v16_bfloat16"
1710 (i386_gdbarch_init): Add set_gdbarch_bfloat16_format.
1711 * target-descriptions.c (make_gdb_type): Add case TDESC_TYPE_BFLOAT16.
1712 * gdbsupport/tdesc.cc (tdesc_predefined_types): New member bfloat16.
1713 * gdbsupport/tdesc.h (tdesc_type_kind): New member TDESC_TYPE_BFLOAT16.
1714 * features/i386/64bit-avx512.xml: Add bfloat16 type.
1715 * features/i386/64bit-avx512.c: Regenerated.
1716 * features/i386/64bit-sse.xml: Add bfloat16 type.
1717 * features/i386/64bit-sse.c: Regenerated.
1718
1719 2020-09-11 Felix Willgerodt <felix.willgerodt@intel.com>
1720
1721 * i386-tdep.c (i386_zmm_type): Fix field names.
1722 (i386_ymm_type): Fix field names.
1723
1724 2020-09-11 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1725
1726 * breakpoint.c: Fix typo in the help message of the
1727 "set breakpoint condition-evaluation" command.
1728
1729 2020-09-10 Kamil Rytarowski <n54@gmx.com>
1730
1731 * nbsd-nat.c: Include "nat/netbsd-nat.h".
1732 * (nbsd_nat_target::pid_to_exec_file)
1733 (nbsd_nat_target::thread_alive, nbsd_nat_target::thread_name)
1734 (nbsd_nat_target::post_startup_inferior)
1735 (nbsd_nat_target::post_attach, nbsd_nat_target::xfer_partial)
1736 (nbsd_add_threads): Switch local code to common gdb/nat functions.
1737 * (nbsd_pid_to_cmdline): Call sysctl from the global namespace.
1738 * (nbsd_thread_lister): Remove.
1739
1740 2020-09-10 Kamil Rytarowski <n54@gmx.com>
1741
1742 * fork-inferior.c (startup_inferior): Avoid double free.
1743
1744 2020-09-10 Kamil Rytarowski <n54@gmx.com>
1745
1746 * netbsd-nat.h (netbsd_nat::qxfer_siginfo): Add.
1747 * netbsd-nat.c (netbsd_nat::qxfer_siginfo): Likewise.
1748
1749 2020-09-10 Kamil Rytarowski <n54@gmx.com>
1750
1751 * netbsd-nat.h (netbsd_nat::enable_proc_events): Add.
1752 * netbsd-nat.c: Include <sys/ptrace.h>.
1753 * (netbsd_nat::enable_proc_events): Add.
1754
1755 2020-09-10 Kamil Rytarowski <n54@gmx.com>
1756
1757 * netbsd-nat.h: Include "gdbsupport/function-view.h".
1758 * (netbsd_nat::thread_alive, netbsd_nat::thread_name)
1759 (netbsd_nat::for_each_thread): Add.
1760 * netbsd-nat.c: Include "gdbsupport/common-defs.h" and
1761 "gdbsupport/common-debug.h".
1762 * (netbsd_nat::netbsd_thread_lister)
1763 (netbsd_nat::thread_alive, netbsd_nat::thread_name)
1764 (netbsd_nat::for_each_thread): Add.
1765
1766 2020-09-10 Kamil Rytarowski <n54@gmx.com>
1767
1768 * netbsd-nat.h: Include <unistd.h>.
1769 * (netbsd_nat::pid_to_exec_file): Add.
1770 * netbsd-nat.c: Include <sys/types.h> and <sys/sysctl.h>.
1771 * (netbsd_nat::pid_to_exec_file) Add.
1772
1773 2020-09-10 Kamil Rytarowski <n54@gmx.com>
1774
1775 * configure.nat (NATDEPFILES): Add nat/netbsd-nat.o when needed.
1776
1777 2020-09-10 Kamil Rytarowski <n54@gmx.com>
1778
1779 * netbsd-nat.h: New file.
1780 * netbsd-nat.c: Likewise.
1781
1782 2020-09-09 Tom Tromey <tromey@adacore.com>
1783
1784 * ada-lang.c (remove_extra_symbols): Do not increment when
1785 removing an element
1786
1787 2020-09-08 Tom Tromey <tromey@adacore.com>
1788
1789 * gdb_bfd.c (gdb_bfd_open): Call bfd_fopen when fstat fails.
1790
1791 2020-09-08 Tom Tromey <tromey@adacore.com>
1792
1793 PR win32/25302:
1794 * gdb_bfd.c (gdb_bfd_data): Add "st" parameter.
1795 (gdb_bfd_init_data): New function.
1796 (gdb_bfd_open, gdb_bfd_ref): Use gdb_bfd_init_data.
1797
1798 2020-09-07 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1799
1800 * infrun.c (fetch_inferior_event): Use
1801 `switch_to_target_no_thread` to switch the target.
1802
1803 2020-09-06 Tom Tromey <tom@tromey.com>
1804
1805 * symfile.h (dwarf2_free_objfile): Don't declare.
1806
1807 2020-09-03 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
1808
1809 * gdb/i386-tdep.c (i386_floatformat_for_type): Added conditions
1810 to match 16 byte real/complex type generated by Flang compiler.
1811
1812 2020-09-03 Tom de Vries <tdevries@suse.de>
1813
1814 PR breakpoint/26546
1815 * dwarf2/read.c (new_symbol): Tag label symbol without DW_AT_low_pc as
1816 LOC_OPTIMIZED_OUT instead of LOC_LABEL.
1817
1818 2020-09-02 Simon Marchi <simon.marchi@polymtl.ca>
1819
1820 * maint.c (index_digits): New function.
1821 (struct maint_print_section_data): Remove.
1822 (print_bfd_section_info): Remove print_data parameter, add arg
1823 and index_digits.
1824 (print_objfile_section_info): Likewise.
1825 (print_bfd_section_info_maybe_relocated): Likewise (plus
1826 objfile).
1827 (maintenance_info_sections): Adjust calls.
1828
1829 2020-09-02 Tom Tromey <tromey@adacore.com>
1830
1831 * ada-varobj.c (ada_varobj_get_ptr_number_of_children): Return 0
1832 for null pointers.
1833 (ada_varobj_adjust_for_child_access): Special-case null pointers.
1834
1835 2020-09-01 Simon Marchi <simon.marchi@polymtl.ca>
1836
1837 * bcache.h (struct bcache) <insert>: Change type of `added` to
1838 pointer to bool.
1839 * bcache.c (bcache::insert): Likewise.
1840 * gdbtypes.c (check_types_worklist): Adjust.
1841 * psymtab.c (add_psymbol_to_bcache): Adjust.
1842
1843 2020-08-31 Kevin Buettner <kevinb@redhat.com>
1844
1845 * corelow.c (unordered_set): Include.
1846 (class core_target): Add field 'm_core_unavailable_mappings'.
1847 (core_target::build_file_mappings): Print only one warning
1848 per inaccessible file. Add unavailable/broken mappings
1849 to m_core_unavailable_mappings.
1850 (core_target::xfer_partial): Call...
1851 (core_target::xfer_memory_via_mappings): New method.
1852
1853 2020-08-31 Simon Marchi <simon.marchi@polymtl.ca>
1854
1855 * dwarf2/read.c (struct field_info) <non_public_fields>: Change
1856 type to bool.
1857
1858 2020-08-31 Simon Marchi <simon.marchi@polymtl.ca>
1859
1860 * dwarf2/read.c (struct field_info): Fix indentation.
1861
1862 2020-08-31 Simon Marchi <simon.marchi@efficios.com>
1863
1864 * frame-unwind.h (frame_prev_register_ftype): Fix adjective
1865 ordering in comment.
1866 * frame.c (frame_id_eq): Fix indentation.
1867
1868 2020-08-31 Scott Linder <scott@scottlinder.com>
1869 Simon Marchi <simon.marchi@efficios.com>
1870
1871 * inline-frame.c (inline_frame_this_id): Remove assert that prevents
1872 inline frame ids in outer frame.
1873
1874 2020-08-31 Simon Marchi <simon.marchi@efficios.com>
1875
1876 * frame.h (enum frame_id_stack_status) <FID_STACK_OUTER>: New.
1877 * frame.c (fprint_frame_id): Handle FID_STACK_OUTER.
1878 (outer_frame_id): Use FID_STACK_OUTER instead of
1879 FID_STACK_INVALID.
1880 (frame_id_p): Don't check for outer_frame_id.
1881
1882 2020-08-31 Simon Marchi <simon.marchi@efficios.com>
1883
1884 * frame-unwind.c (frame_unwind_got_optimized): Don't set
1885 regnum/frame in value. Call allocate_value_lazy.
1886 * frame.c (frame_unwind_register_value): Use
1887 val_print_not_saved.
1888
1889 2020-08-31 Simon Marchi <simon.marchi@efficios.com>
1890
1891 * gdbtypes.h (NULL_TYPE): Remove, change all uses to nullptr.
1892
1893 2020-08-29 Pedro Alves <pedro@palves.net>
1894
1895 * progspace.c (print_program_space): Use all_inferiors. Switch to
1896 the inferior before calling target_pid_to_str.
1897
1898 2020-08-28 Tom Tromey <tom@tromey.com>
1899
1900 * xcoffread.c (xcoff_end_psymtab): Update comment.
1901 * dbxread.c (dbx_end_psymtab): Update comment.
1902
1903 2020-08-28 Tom de Vries <tdevries@suse.de>
1904
1905 PR breakpoint/26544
1906 * breakpoint.c (parse_breakpoint_sals): Remove const from struct
1907 event_location.
1908 (create_breakpoint): Same.
1909 (base_breakpoint_decode_location): Same.
1910 (bkpt_create_sals_from_location): Same.
1911 (bkpt_decode_location): Same.
1912 (bkpt_probe_create_sals_from_location): Same.
1913 (bkpt_probe_decode_location): Same.
1914 (tracepoint_create_sals_from_location): Same.
1915 (tracepoint_decode_location): Same.
1916 (tracepoint_probe_decode_location): Same.
1917 (strace_marker_create_sals_from_location): Same.
1918 (strace_marker_decode_location): Same.
1919 (create_sals_from_location_default): Same.
1920 (decode_location_default): Same.
1921 * breakpoint.h (struct breakpoint_ops): Same.
1922 (create_breakpoint): Same.
1923 * linespec.h (decode_line_full): Same.
1924 * linespec.c (decode_line_full): Same. Throw error if
1925 result.size () == 0.
1926
1927 2020-08-27 Pedro Alves <pedro@palves.net>
1928
1929 PR gdb/26524
1930 * breakpoint.c (until_break_fsm) <location_breakpoint,
1931 caller_breakpoint>: Delete fields.
1932 <breakpoints>: New field.
1933 <until_break_fsm>: Adjust to save a breakpoint vector instead of
1934 two individual breakpoints.
1935 (until_break_fsm::should_stop): Loop over breakpoints in the
1936 breakpoint vector.
1937 (until_break_fsm::clean_up): Adjust to clear the breakpoints
1938 vector.
1939 (until_break_command): Handle location expanding into multiple
1940 sals.
1941
1942 2020-08-27 Pedro Alves <pedro@palves.net>
1943
1944 PR gdb/26523
1945 * inline-frame.c (stopped_by_user_bp_inline_frame): Also consider
1946 bp_until breakpoints user-specified locations. Update intro
1947 comment.
1948
1949 2020-08-27 Simon Marchi <simon.marchi@polymtl.ca>
1950
1951 * gdb_bfd.h (gdb_bfd_section_iterator, gdb_bfd_section_range,
1952 gdb_bfd_sections): New.
1953 * maint.c (print_bfd_section_info): Change param type to
1954 maint_print_section_data.
1955 (print_objfile_section_info): Likewise.
1956 (print_bfd_section_info_maybe_relocated): Likewise.
1957 (maintenance_info_sections): Use gdb_bfd_sections.
1958
1959 2020-08-25 Shahab Vahedi <shahab@synopsys.com>
1960
1961 * MAINTAINERS: Add ARC target and maintainer.
1962
1963 2020-08-25 Anton Kolesov <anton.kolesov@synopsys.com>
1964
1965 * configure.tgt: ARC support for GNU/Linux.
1966 * Makefile.in (ALL_TARGET_OBJS): Likewise.
1967 * arc-linux-tdep.c: New file.
1968 * arc-tdep.h (ARC_STATUS32_L_MASK, ARC_STATUS32_DE_MASK): Declare.
1969 * arc-tdep.c (arc_write_pc): Use it.
1970
1971 2020-08-25 Shahab Vahedi <shahab@synopsys.com>
1972
1973 * arc-tdep.c (arc_check_for_hardware_loop): New.
1974 * arc-tdep.h (gdbarch_tdep): New field has_hw_loops.
1975
1976 2020-08-25 Shahab Vahedi <shahab@synopsys.com>
1977
1978 * arc-tdep.h: Include "gdbarch.h".
1979
1980 2020-08-25 Shahab Vahedi <shahab@synopsys.com>
1981
1982 * arch/arc.h
1983 (arc_gdbarch_features): New class to stir the selection of target XML.
1984 (arc_create_target_description): Use FEATURES to choose XML target.
1985 (arc_lookup_target_description): Use arc_create_target_description
1986 to create _new_ target descriptions or return the already created
1987 ones if the FEATURES is the same.
1988 * arch/arc.c: Implementation of prototypes described above.
1989 * gdb/arc-tdep.h (arc_regnum enum): Add more registers.
1990 (arc_gdbarch_features_init): Initialize the FEATURES struct.
1991 * arc-tdep.c (*_feature_name): Make feature names consistent.
1992 (arc_register_feature): A new struct to hold information about
1993 registers of a particular target/feature.
1994 (arc_check_tdesc_feature): Check if XML provides registers in
1995 compliance with ARC_REGISTER_FEATURE structs.
1996 (arc_update_acc_reg_names): Add aliases for r58 and r59.
1997 (determine_*_reg_feature_set): Which feature name to look for.
1998 (arc_gdbarch_features_init): Given MACH and ABFD, initialize FEATURES.
1999 (mach_type_to_arc_isa): Convert from a set of binutils machine types
2000 to expected ISA enums to be used in arc_gdbarch_features structs.
2001 * features/Makefile (FEATURE_XMLFILES): Add new files.
2002 * gdb/features/arc/v1-aux.c: New file.
2003 * gdb/features/arc/v1-aux.xml: Likewise.
2004 * gdb/features/arc/v1-core.c: Likewise.
2005 * gdb/features/arc/v1-core.xml: Likewise.
2006 * gdb/features/arc/v2-aux.c: Likewise.
2007 * gdb/features/arc/v2-aux.xml: Likewise.
2008 * gdb/features/arc/v2-core.c: Likewise.
2009 * gdb/features/arc/v2-core.xml: Likewise.
2010 * NEWS (Changes since GDB 9): Announce obsolence of old feature names.
2011
2012 2020-08-25 Gaius Mulley <gaiusmod2@gmail.com>
2013 Andrew Burgess <andrew.burgess@embecosm.com>
2014
2015 PR m2/26372
2016 * m2-exp.y (exp): Improve comment for non_empty_arglist case, add
2017 an assert. Remove single element array indexing pattern as the
2018 MULTI_SUBSCRIPT support will handle this case too.
2019
2020 2020-08-24 Simon Marchi <simon.marchi@polymtl.ca>
2021
2022 * value.h (valprint_check_validity): Move declaration from
2023 here...
2024 * valprint.h (valprint_check_validity): ... to here.
2025
2026 2020-08-24 Simon Marchi <simon.marchi@efficios.com>
2027
2028 * debug.h: New file.
2029 * debug.c (debug_prefixed_vprintf): New function.
2030 * infrun.c (infrun_debug_printf_1): Use debug_prefixed_vprintf.
2031 * linux-nat.c (linux_nat_debug_printf_1): Likewise.
2032
2033 2020-08-24 Simon Marchi <simon.marchi@efficios.com>
2034
2035 * infrun.h (infrun_debug_printf_1): New function declaration.
2036 (infrun_debug_printf): New macro.
2037 * infrun.c (infrun_debug_printf_1): Use infrun_debug_printf
2038 throughout.
2039 (infrun_debug_printf): New function.
2040 * breakpoint.c (should_be_inserted): Use infrun_debug_printf.
2041 (handle_jit_event): Likewise.
2042
2043 2020-08-21 Mark Wielaard <mark@klomp.org>
2044
2045 * ada-lex.l: Extend register warnings diagnostics comment for g++.
2046
2047 2020-08-22 Simon Marchi <simon.marchi@efficios.com>
2048
2049 * frame.c (enum class frame_id_status): New.
2050 (struct frame_info) <this_id::p>: Change type to frame_id_status.
2051 (fprintf_frame): Update.
2052 (compute_frame_id): Set frame id status to "computing" on entry.
2053 Set it back to "not_computed" on failure and to "computed" on
2054 success.
2055 (get_frame_id): Assert the frame id is not being computed.
2056 (create_sentinel_frame): Use frame_id_status::COMPUTED.
2057 (create_new_frame): Likewise.
2058 (frame_cleanup_after_sniffer): Update assert.
2059
2060 2020-08-20 Simon Marchi <simon.marchi@polymtl.ca>
2061
2062 * regcache.c (pid_ptid_regcache_map): New type.
2063 (target_ptid_regcache_map): Remove.
2064 (target_pid_ptid_regcache_map): New type.
2065 (regcaches): Change type to target_pid_ptid_regcache_map.
2066 (get_thread_arch_aspace_regcache): Update.
2067 (regcache_thread_ptid_changed): Update, handle pid-like ptid
2068 case.
2069 (regcaches_size): Update.
2070 (regcache_count): Update.
2071 (registers_changed_ptid_target_pid_test): New.
2072 (_initialize_regcache): Register new test.
2073
2074 2020-08-20 Simon Marchi <simon.marchi@polymtl.ca>
2075
2076 * regcache.c (regcache_count): New.
2077 (struct regcache_test_data): New.
2078 (regcache_test_data_up): New.
2079 (populate_regcaches_for_test): New.
2080 (regcaches_test): Remove.
2081 (get_thread_arch_aspace_regcache_test): New.
2082 (registers_changed_ptid_all_test): New.
2083 (registers_changed_ptid_target_test): New.
2084 (registers_changed_ptid_target_ptid_test): New.
2085 (regcache_thread_ptid_changed): Remove regcache_count lambda.
2086 (_initialize_regcache): Register new tests.
2087
2088 2020-08-20 Simon Marchi <simon.marchi@polymtl.ca>
2089
2090 * regcache.c (test_get_thread_arch_aspace_regcache): Rename to...
2091 (get_thread_arch_aspace_regcache_and_check): ... this. Remove
2092 gdbarch and aspace parameter. Use current inferior's aspace.
2093 Validate regcache's arch value.
2094 (regcaches_test): Update.
2095
2096 2020-08-20 Simon Marchi <simon.marchi@polymtl.ca>
2097
2098 * regcache.c (regcaches_test): Call registers_changed.
2099
2100 2020-08-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2101
2102 * infrun.c (process_event_stop_test): Fix typo "breapoint".
2103
2104 2020-08-19 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
2105
2106 * amd64-tdep.c (amd64_skip_prologue): Using symbol table
2107 to find the end of prologue for flang compiled binaries.
2108 * arm-tdep.c (arm_skip_prologue): Likewise.
2109 * i386-tdep.c (i386_skip_prologue): Likewise.
2110 * producer.c (producer_is_llvm): New function.
2111 (producer_parsing_tests): Added new tests for clang/flang.
2112 * producer.h (producer_is_llvm): New declaration.
2113
2114 2020-08-18 Simon Marchi <simon.marchi@efficios.com>
2115
2116 * linux-nat.c (linux_nat_debug_printf): New function.
2117 (linux_nat_debug_printf_1): New macro. Use throughout the file.
2118
2119 2020-08-18 Aaron Merey <amerey@redhat.com>
2120
2121 * Makefile.in (DEBUGINFOD_CFLAGS, DEBUGINFOD_LIBS): New variables.
2122 (INTERNAL_CFLAGS_BASE): Add DEBUGINFOD_CFLAGS.
2123 (CLIBS): Add DEBUGINFOD_LIBS.
2124
2125 2020-08-17 Sergei Trofimovich <siarheit@google.com>
2126
2127 * ia64-linux-nat.c: Include "gdbarch.h" to declare used
2128 'gdbarch_num_regs'.
2129
2130 2020-08-17 Tom Tromey <tromey@adacore.com>
2131
2132 * ada-varobj.c (ada_varobj_decode_var): Handle case where
2133 ada_get_decoded_value returns NULL.
2134
2135 2020-08-17 Tom Tromey <tromey@adacore.com>
2136
2137 * python/py-inferior.c (infpy_search_memory): Use
2138 gdb_py_object_from_ulongest.
2139 * python/py-infevents.c (create_inferior_call_event_object)
2140 (create_memory_changed_event_object): Use
2141 gdb_py_object_from_ulongest.
2142 * python/py-linetable.c (ltpy_entry_get_pc): Use
2143 gdb_py_object_from_ulongest.
2144
2145 2020-08-17 Simon Marchi <simon.marchi@polymtl.ca>
2146
2147 * loc.c (class symbol_needs_eval_context): Fix indentation.
2148
2149 2020-08-17 Simon Marchi <simon.marchi@polymtl.ca>
2150
2151 * dwarf2/loc.c (dwarf2_loc_desc_get_symbol_read_needs): Use
2152 bool.
2153
2154 2020-08-17 Tom de Vries <tdevries@suse.de>
2155
2156 PR gdb/26393
2157 * gdbtypes.c (dump_dynamic_prop): New function.
2158 (recursive_dump_type): Use dump_dynamic_prop for TYPE_CODE_RANGE.
2159
2160 2020-08-15 Tom de Vries <tdevries@suse.de>
2161
2162 PR backtrace/26390
2163 * stack.c (print_frame_args): Temporarily set the selected
2164 frame to FRAME while printing the frame's arguments.
2165
2166 2020-08-14 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
2167
2168 PR breakpoints/26385
2169 * ppc-linux-nat.c (ppc_linux_nat_target::low_prepare_to_resume):
2170 Always clear watchpoint with PTRACE_SET_DEBUGREG.
2171
2172 2020-08-14 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
2173
2174 * ppc-linux-nat.c (ppc_linux_dreg_interface::detect)
2175 (ppc_linux_nat_target::low_prepare_to_resume): Use ptrace () < 0
2176 and >= to check return value instead of == -1 and != -1.
2177
2178 2020-08-14 Simon Marchi <simon.marchi@polymtl.ca>
2179
2180 * utils.h (class gdb_argv) <as_array_view>: New method.
2181 * utils.c (gdb_argv_as_array_view_test): New.
2182 (_initialize_utils): Register selftest.
2183 * maint.c (maintenance_selftest): Use the new method.
2184
2185 2020-08-13 Kamil Rytarowski <n54@gmx.com>
2186
2187 * target.h (supports_dumpcore, dumpcore): New
2188 function declarations.
2189 * target.c (supports_dumpcore, dumpcore): New
2190 functions.
2191 * target-delegates.c: Rebuild.
2192 * gcore.c (gcore_command): Use target_supports_dumpcore ()
2193 and target_dumpcore ().
2194
2195 2020-08-13 Aaron Merey <amerey@redhat.com>
2196
2197 * debuginfod-support.c: Replace global variables with user_data.
2198
2199 2020-08-13 Simon Marchi <simon.marchi@polymtl.ca>
2200
2201 * maint.c (maintenance_selftest): Split args and pass array_view
2202 to run_tests.
2203
2204 2020-08-12 Luis Machado <luis.machado@linaro.org>
2205
2206 * value.c (check_type_length_before_alloc): Use ULONGEST to store a
2207 type's length.
2208 Use %s and pulongest to print the length.
2209
2210 2020-08-12 Pedro Alves <palves@redhat.com>
2211
2212 * NEWS: Move "Multi-target debugging support" item to the
2213 "Changes since GDB 9" section.
2214
2215 2020-08-12 Pedro Alves <palves@redhat.com>
2216
2217 PR gdb/26336
2218 * progspace.c (program_space::remove_objfile): Invalidate the
2219 frame cache.
2220
2221 2020-08-11 Tom de Vries <tdevries@suse.de>
2222
2223 * MAINTAINERS: Mark ms1 as deleted.
2224
2225 2020-08-10 Luis Machado <luis.machado@linaro.org>
2226
2227 PR gdb/26310
2228
2229 * aarch64-tdep.c (aarch64_analyze_prologue): Track use of SP/FP and
2230 act accordingly.
2231 (aarch64_analyze_prologue_test): Add more unit tests to exercise
2232 movz/str/stur/stp skipping behavior.
2233
2234 2020-08-10 Luis Machado <luis.machado@linaro.org>
2235
2236 * nat/aarch64-sve-linux-sigcontext.h (SVE_PT_REGS_OFFSET): Use
2237 struct user_sve_header instead of struct sve_context.
2238
2239 2020-08-09 Simon Marchi <simon.marchi@polymtl.ca>
2240
2241 * read.h (dwarf2_fetch_die_loc_sect_off,
2242 dwarf2_fetch_die_loc_cu_off): Replace function pointer +
2243 `void *` parameter with function_view.
2244 * read.c (dwarf2_fetch_die_loc_sect_off,
2245 dwarf2_fetch_die_loc_cu_off): Likewise.
2246 * loc.c (get_frame_pc_for_per_cu_dwarf_call): Remove.
2247 (per_cu_dwarf_call): Adjust.
2248 (get_frame_address_in_block_wrapper): Remove.
2249 (indirect_synthetic_pointer): Adjust.
2250 (get_ax_pc): Remove.
2251 (dwarf2_compile_expr_to_ax): Adjust.
2252
2253 2020-08-08 Tom de Vries <tdevries@suse.de>
2254
2255 PR build/26344
2256 * arch/riscv.c (riscv_lookup_target_description): Use an explicit
2257 constructor.
2258 * regcache.c (get_thread_arch_aspace_regcache): Same.
2259
2260 2020-08-07 Tom Tromey <tromey@adacore.com>
2261
2262 * ravenscar-thread.c
2263 (ravenscar_thread_target::set_base_thread_from_ravenscar_task):
2264 New method.
2265 (ravenscar_thread_target::wait): Check
2266 runtime_initialized.
2267 (ravenscar_thread_target::prepare_to_store)
2268 (ravenscar_thread_target::stopped_by_sw_breakpoint)
2269 (ravenscar_thread_target::stopped_by_hw_breakpoint)
2270 (ravenscar_thread_target::stopped_by_watchpoint)
2271 (ravenscar_thread_target::stopped_data_address)
2272 (ravenscar_thread_target::core_of_thread): Use
2273 scoped_restore_current_thread and
2274 set_base_thread_from_ravenscar_task.
2275
2276 2020-08-07 Tom Tromey <tromey@adacore.com>
2277
2278 * ravenscar-thread.c (update_thread_list): Set inferior_ptid.
2279
2280 2020-08-07 Tom Tromey <tromey@adacore.com>
2281
2282 * ravenscar-thread.c (ravenscar_thread_target::wait): Call
2283 update_inferior_ptid before update_thread_list.
2284 (temporarily_change_regcache_ptid): New class.
2285 (ravenscar_thread_target::fetch_registers)
2286 (ravenscar_thread_target::store_registers)
2287 (ravenscar_thread_target::prepare_to_store): Use base thread when
2288 forwarding operation.
2289
2290 2020-08-07 Tom Tromey <tromey@adacore.com>
2291
2292 * ravenscar-thread.c (ravenscar_thread_target::resume): Handle
2293 "is_pid" case.
2294
2295 2020-08-07 Tom Tromey <tromey@adacore.com>
2296
2297 * ravenscar-thread.c (xfer_partial, enable_btrace, add_thread):
2298 New methods.
2299 (ravenscar_thread_target::get_thread_base_cpu): Check m_cpu_map
2300 first.
2301 (ravenscar_thread_target::add_thread): Rename from
2302 ravenscar_add_thread.
2303 (ravenscar_thread_target::update_thread_list): Use a lambda.
2304 (ravenscar_thread_target::xfer_partial): New method.
2305
2306 2020-08-07 Tom Tromey <tromey@adacore.com>
2307
2308 * ada-lang.h (ada_task_list_iterator_ftype): Now a
2309 gdb::function_view.
2310 (iterate_over_live_ada_tasks): Change type of argument.
2311 * ada-tasks.c (iterate_over_live_ada_tasks): Change type
2312 of argument.
2313
2314 2020-08-07 Tom Tromey <tromey@adacore.com>
2315
2316 * ravenscar-thread.c (ravenscar_thread_target) <extra_thread_info>:
2317 Remove.
2318 (ravenscar_thread_target::extra_thread_info): Remove.
2319 (ravenscar_thread_target::pid_to_str): Mention Ravenscar in result;
2320 defer to target beneath for non-Ravenscar threads.
2321
2322 2020-08-07 Tom Tromey <tromey@adacore.com>
2323
2324 * ravenscar-thread.c (ravenscar_thread_target) <get_base_cpu,
2325 get_base_thread_from_ravenscar_task>: Now methods.
2326 <m_cpu_map>: New member.
2327 (ravenscar_thread_target::get_thread_base_cpu): Rename from
2328 ravenscar_get_thread_base_cpu. Check m_cpu_map.
2329 (ravenscar_thread_target::task_is_currently_active): Update.
2330 (ravenscar_thread_target::get_base_thread_from_ravenscar_task):
2331 Now a method.
2332 (ravenscar_thread_target::add_active_thread): Put initial thread
2333 into the m_cpu_map.
2334
2335 2020-08-07 Tom Tromey <tromey@adacore.com>
2336
2337 * ravenscar-thread.c (ravenscar_thread_target::wait): Return
2338 event_ptid.
2339
2340 2020-08-07 Tom Tromey <tromey@adacore.com>
2341
2342 * ravenscar-thread.c (ravenscar_thread_target::wait): Check
2343 runtime_initialized.
2344
2345 2020-08-07 Tom Tromey <tromey@adacore.com>
2346
2347 * ravenscar-thread.c (ravenscar_thread_target): Don't call
2348 add_active_thread.
2349 (ravenscar_thread_target::add_active_thread): Now public.
2350 (ravenscar_inferior_created): Call add_active_thread after pushing
2351 the target.
2352
2353 2020-08-07 Simon Marchi <simon.marchi@polymtl.ca>
2354
2355 * regcache.c (ptid_regcache_map): New type.
2356 (target_ptid_regcache_map): New type.
2357 (regcaches): Change type to target_ptid_regcache_map.
2358 (get_thread_arch_aspace_regcache): Update to regcaches' new
2359 type.
2360 (regcache_thread_ptid_changed): Likewise.
2361 (registers_changed_ptid): Likewise.
2362 (regcaches_size): Likewise.
2363 (regcaches_test): Update.
2364 (regcache_thread_ptid_changed): Update.
2365 * regcache.h (regcache_up): New type.
2366 * gdbsupport/ptid.h (hash_ptid): New struct.
2367
2368 2020-08-07 Simon Marchi <simon.marchi@efficios.com>
2369
2370 * observable.h (thread_ptid_changed): Add parameter
2371 `process_stratum_target *`.
2372 * infrun.c (infrun_thread_ptid_changed): Add parameter
2373 `process_stratum_target *` and use it.
2374 (selftests): New namespace.
2375 (infrun_thread_ptid_changed): New function.
2376 (_initialize_infrun): Register selftest.
2377 * regcache.c (regcache_thread_ptid_changed): Add parameter
2378 `process_stratum_target *` and use it.
2379 (regcache_thread_ptid_changed): New function.
2380 (_initialize_regcache): Register selftest.
2381 * thread.c (thread_change_ptid): Pass target to
2382 thread_ptid_changed observable.
2383
2384 2020-08-06 Caroline Tice <cmtice@google.com>
2385
2386 * dwarf2/read.c (struct dwo_file): Update comment on 'sections' field.
2387 (struct dwp_sections): Update field comments. Add loclists and
2388 rnglists fields.
2389 (struct virtual_v2_dwo_sections): Rename struct to
2390 'virtual_v2_or_v5_dwo_sections'; update comments at top of struct; add
2391 size & offset fields for loclists and rnglists.
2392 (struct dwp_hash_table): Add a 'v5' struct field to the union section.
2393 (create_debug_type_hash_table): Add 'DW_UT_split_type' to the check for
2394 skipping dummy type units.
2395 (create_dwp_hash_table): Update the large comment above the function to
2396 discuss Version 5 DWP files as well, with references. Update all the
2397 version checks in the function to check for version 5 as well. Add new
2398 section at the end to create dwp hash table for version 5.
2399 (create_dwp_v2_section): Rename function to
2400 'create_dwp_v2_or_v5_section'. Update function comment appropriately.
2401 Add V5 to error message text.
2402 (create_dwo_unit_in_dwp_v2): Change calls to create_dwp_v2_section
2403 into calls to create_dwp_v2_or_v5_section.
2404 (create_dwo_unit_in_dwp_v5): New function.
2405 (lookup_dwo_unit_in_dwp): Update conditional statement to explicitly
2406 check for version2; add else clause to handle version 5.
2407 (open_and_init_dwo_file): Add code to check dwarf version & only call
2408 create_debug_types_hash_table (with sections.types) if version is not 5;
2409 else call create_debug_type_hash_table, with sections.info.
2410 (dwarf2_locate_v2_dwp_sections): Update function comment to mention
2411 version 5.
2412 (dwarf2_locate_v5_dwp_sections): New function.
2413 (open_and_init_dwp_file): Add else-if clause for version 5 to call
2414 bfd_map_over_sections with dwarf2_locate_v5_dwp_sections.
2415
2416 2020-08-06 Simon Marchi <simon.marchi@efficios.com>
2417
2418 * regcache.h (class regcache): Remove friend
2419 registers_changed_ptid.
2420 <regcache_thread_ptid_changed>: Remove.
2421 <regcaches>: Remove.
2422 * regcache.c (regcache::regcaches): Rename to...
2423 (regcaches): ... this. Make static.
2424 (get_thread_arch_aspace_regcache): Update.
2425 (regcache::regcache_thread_ptid_changed): Rename to...
2426 (regcache_thread_ptid_changed): ... this. Update.
2427 (class regcache_access): Remove.
2428 (regcaches_test): Update.
2429 (_initialize_regcache): Update.
2430 * sparc64-tdep.c, dwarf2/index-write.c, record-btrace.c: Include
2431 <forward_list>.
2432
2433 2020-08-06 Simon Marchi <simon.marchi@efficios.com>
2434
2435 * regcache.h (class regcache) <current_regcache>: Rename to...
2436 <regcaches>: ... this. Move doc here.
2437 * regcache.c (regcache::current_regcache) Rename to...
2438 (regcache::regcaches): ... this. Move doc to header.
2439 (get_thread_arch_aspace_regcache): Update.
2440 (regcache::regcache_thread_ptid_changed): Update.
2441 (registers_changed_ptid): Update.
2442 (class regcache_access) <current_regcache_size>: Rename to...
2443 <regcaches_size>: ... this.
2444 (current_regcache_test): Rename to...
2445 (regcaches_test): ... this.
2446 (_initialize_regcache): Update.
2447
2448 2020-08-06 Victor Collod <vcollod@nvidia.com>
2449
2450 * amd64-tdep.c (amd64_analyze_prologue): Fix incorrect comment.
2451
2452 2020-08-05 Kevin Buettner <kevinb@redhat.com>
2453
2454 * corelow.c (core_target::build_file_mappings): Don't output
2455 null pathname in warning.
2456
2457 2020-08-05 Simon Marchi <simon.marchi@polymtl.ca>
2458
2459 * gdb.dwarf2/clztest.exp, gdb.dwarf2/dw2-common-block.exp,
2460 gdb.dwarf2/dw2-dup-frame.exp, gdb.dwarf2/dw2-reg-undefined.exp,
2461 gdb.dwarf2/dw2-single-line-discriminators.exp,
2462 dw2-undefined-ret-addr.exp: Pass nopie to compilation options.
2463
2464 2020-08-05 Tom Tromey <tromey@adacore.com>
2465
2466 PR rust/26197:
2467 * dwarf2/read.c (alloc_rust_variant): Handle univariant case.
2468 (quirk_rust_enum): Call alloc_rust_variant for univariant case.
2469 Fix off-by-one and type size errors in ordinary case.
2470
2471 2020-08-05 Tom de Vries <tdevries@suse.de>
2472
2473 * gdbtypes.c (type_not_allocated, type_not_associated): Use
2474 "prop->const_val () == 0" instead of "prop->const_val () != 0".
2475
2476 2020-08-04 Simon Marchi <simon.marchi@efficios.com>
2477
2478 * frame.h (frame_id_p): Return bool.
2479 (frame_id_artificial_p): Return bool.
2480 (frame_id_eq): Return bool.
2481 (has_stack_frames): Return bool.
2482 (get_selected_frame): Fix typo in comment.
2483 (get_frame_pc_if_available): Return bool.
2484 (get_frame_address_in_block_if_available): Return bool.
2485 (get_frame_func_if_available): Return bool.
2486 (read_frame_register_unsigned): Return bool.
2487 (get_frame_register_bytes): Return bool.
2488 (safe_frame_unwind_memory): Return bool.
2489 (deprecated_frame_register_read): Return bool.
2490 (frame_unwinder_is): Return bool.
2491 * frame.c (struct frame_info) <prev_arch::p>: Change type to
2492 bool.
2493 <this_id::p>: Likewise.
2494 <prev_p>: Likewise.
2495 (frame_stash_add): Return bool.
2496 (get_frame_id): Use bool.
2497 (frame_id_build_special) Use bool.
2498 (frame_id_build_unavailable_stack): Use bool.
2499 (frame_id_build): Use bool.
2500 (frame_id_p): Return bool, use true/false instead of 1/0.
2501 (frame_id_artificial_p): Likewise.
2502 (frame_id_eq): Likewise.
2503 (frame_id_inner): Likewise.
2504 (get_frame_func_if_available): Likewise.
2505 (read_frame_register_unsigned): Likewise.
2506 (deprecated_frame_register_read): Likewise.
2507 (get_frame_register_bytes): Likewise.
2508 (has_stack_frames): Likewise.
2509 (inside_main_func): Likewise.
2510 (inside_entry_func): Likewise.
2511 (get_frame_pc_if_available): Likewise.
2512 (get_frame_address_in_block_if_available): Likewise.
2513 (frame_unwinder_is): Likewise.
2514 (safe_frame_unwind_memory): Likewise.
2515 (frame_unwind_arch): Likewise.
2516
2517 2020-08-04 Simon Marchi <simon.marchi@efficios.com>
2518
2519 * frame.c (frame_info) <prev_func> <p>: Rename to status, change
2520 type to cached_copy_status.
2521 (fprintf_frame): Adjust.
2522 (get_frame_func_if_available): Adjust.
2523 (frame_cleanup_after_sniffer): Adjust.
2524
2525 2020-08-04 Mark Wielaard <mark@klomp.org>
2526
2527 * MAINTAINERS (Write After Approval): Update email address.
2528
2529 2020-08-04 Simon Marchi <simon.marchi@polymtl.ca>
2530
2531 * gdbtypes.h (TYPE_DYN_PROP_ADDR): Remove, replace uses with
2532 dynamic_prop::const_val.
2533
2534 2020-08-04 Simon Marchi <simon.marchi@polymtl.ca>
2535
2536 * gdbtypes.h (TYPE_DYN_PROP_KIND): Remove, replace uses with
2537 dynamic_prop::kind.
2538
2539 2020-08-04 Simon Marchi <simon.marchi@polymtl.ca>
2540
2541 * gdbtypes.h (TYPE_DYN_PROP_BATON): Remove.
2542
2543 2020-08-04 Jose E. Marchesi <jose.marchesi@oracle.com>
2544
2545 * configure.tgt: Set gdb_sim for bpf-*-* targets.
2546
2547 2020-08-04 Weimin Pan <weimin.pan@oracle.com>
2548 Jose E. Marchesi <jose.marchesi@oracle.com>
2549
2550 * configure.tgt: Add entry for bpf-*-*.
2551 * Makefile.in (ALL_TARGET_OBS): Add bpf-tdep.o
2552 (ALLDEPFILES): Add bpf-tdep.c.
2553 * bpf-tdep.c: New file.
2554 * MAINTAINERS: Add bpf target and maintainer.
2555 * NEWS: Mention the support for the new target.
2556
2557 2020-08-04 Tom de Vries <tdevries@suse.de>
2558
2559 PR symtab/23270
2560 * dwarf2/read.c (find_partial_die): Change internal error into Dwarf
2561 Error.
2562
2563 2020-08-03 John Baldwin <jhb@FreeBSD.org>
2564
2565 * syscalls/freebsd.xml: Regenerate.
2566
2567 2020-08-03 John Baldwin <jhb@FreeBSD.org>
2568
2569 * syscalls/update-freebsd.sh: Fix usage and year range.
2570
2571 2020-08-03 Tom de Vries <tdevries@suse.de>
2572
2573 PR symtab/26333
2574 * dwarf2/read.c (dwarf_decode_lines_1): Ignore
2575 DW_LNE_lo_user/DW_LNE_hi_user range.
2576
2577 2020-07-30 Simon Marchi <simon.marchi@polymtl.ca>
2578
2579 PR ada/26318
2580 * ada-lang.c (ada_modulus): Return 0 if property is not of const
2581 kind.
2582
2583 2020-07-30 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2584
2585 * breakpoint.c (set_breakpoint_condition): Do minor refactoring.
2586
2587 2020-07-30 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2588
2589 * breakpoint.c (set_breakpoint_condition): Update the condition
2590 expressions after checking that the input condition string parses
2591 successfully and does not contain junk at the end.
2592
2593 2020-07-30 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2594
2595 * breakpoint.c (set_breakpoint_condition): Update the
2596 condition string after parsing the new condition successfully.
2597
2598 2020-07-30 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
2599
2600 * proc-api.c (_STRUCTURED_PROC): Don't define.
2601 * proc-events.c: Likewise.
2602 * proc-flags.c: Likewise.
2603 * proc-why.c: Likewise.
2604 * procfs.c: Likewise.
2605
2606 * Makefile.in (INTERNAL_CPPFLAGS): Add LARGEFILE_CPPFLAGS.
2607 * configure, config.in: Regenerate.
2608
2609 2020-07-30 Tom de Vries <tdevries@suse.de>
2610
2611 PR build/26320
2612 * ui-style.h (struct ui_file_style::color): Wrap m_value and
2613 m_red/m_green/m_blue in a union.
2614
2615 2020-07-29 Tom de Vries <tdevries@suse.de>
2616
2617 PR tdep/26280
2618 * s390-tdep.c (s390_displaced_step_fixup): Fix Wmaybe-uninitialized.
2619
2620 2020-07-28 Tom Tromey <tromey@adacore.com>
2621
2622 PR symtab/26270:
2623 * symtab.h (find_pc_partial_function_sym): Declare.
2624 * cli/cli-cmds.c (disassemble_command): Use
2625 find_pc_partial_function_sym. Check asm_demangle.
2626 * blockframe.c (cache_pc_function_sym): New global.
2627 (cache_pc_function_name): Remove.
2628 (clear_pc_function_cache): Update.
2629 (find_pc_partial_function_sym): New function, from
2630 find_pc_partial_function.
2631 (find_pc_partial_function): Rewrite using
2632 find_pc_partial_function_sym.
2633
2634 2020-07-28 Tom Tromey <tromey@adacore.com>
2635
2636 * cli/cli-cmds.c (_initialize_cli_cmds): Rearrange "disassemble"
2637 help. Add usage.
2638
2639 2020-07-28 Tom Tromey <tromey@adacore.com>
2640
2641 * dwarf2/expr.c (dwarf_expr_context::execute_stack_op)
2642 <DW_OP_GNU_variable_value>: Cast to address type.
2643
2644 2020-07-28 Kamil Rytarowski <n54@gmx.com>
2645
2646 * nbsd-nat.h (nbsd_nat_target::xfer_partial): New declaration.
2647 * nbsd-nat.c (nbsd_nat_target::xfer_partial): New function.
2648 * nbsd-tdep.c (nbsd_gdbarch_data_handle, struct nbsd_gdbarch_data)
2649 (init_nbsd_gdbarch_data, get_nbsd_gdbarch_data)
2650 (nbsd_get_siginfo_type): New.
2651 (nbsd_init_abi): Install gdbarch "get_siginfo_type" method.
2652 (_initialize_nbsd_tdep): New.
2653
2654 2020-07-28 H.J. Lu <hongjiu.lu@intel.com>
2655
2656 PR binutils/26301
2657 * configure: Regenerated.
2658
2659 2020-07-28 H.J. Lu <hongjiu.lu@intel.com>
2660
2661 PR binutils/26301
2662 * configure: Regenerated.
2663
2664 2020-07-28 Andrew Burgess <andrew.burgess@embecosm.com>
2665
2666 * python/py-frame.c: Remove 'user-regs.h' include.
2667 (frapy_read_register): Rewrite to make use of
2668 gdbpy_parse_register_id.
2669 * python/py-registers.c (gdbpy_parse_register_id): New function,
2670 moved here from python/py-unwind.c. Updated the return type, and
2671 also accepts register descriptor objects.
2672 * python/py-unwind.c: Remove 'user-regs.h' include.
2673 (pyuw_parse_register_id): Moved to python/py-registers.c.
2674 (unwind_infopy_add_saved_register): Update to use
2675 gdbpy_parse_register_id.
2676 (pending_framepy_read_register): Likewise.
2677 * python/python-internal.h (gdbpy_parse_register_id): Declare.
2678
2679 2020-07-28 Andrew Burgess <andrew.burgess@embecosm.com>
2680
2681 * python/py-registers.c: Add 'user-regs.h' include.
2682 (register_descriptor_iter_find): New function.
2683 (register_descriptor_iterator_object_methods): New static global
2684 methods array.
2685 (register_descriptor_iterator_object_type): Add pointer to methods
2686 array.
2687
2688 2020-07-27 John Baldwin <jhb@FreeBSD.org>
2689
2690 * fbsd-nat.h: Include <osreldate.h>. Define USE_SIGTRAP_SIGINFO
2691 for all architectures on FreeBSD 11.3 and later.
2692
2693 2020-07-27 Tom Tromey <tromey@adacore.com>
2694
2695 * gcore.h (load_corefile): Don't declare.
2696
2697 2020-07-27 Tom de Vries <tdevries@suse.de>
2698
2699 * configure.ac: Fix sys/sockets.h -> sys/socket.h typo.
2700 * config.in: Regenerate.
2701 * configure: Regenerate.
2702
2703 2020-07-26 Eli Zaretskii <eliz@gnu.org>
2704
2705 * configure.ac (AC_CHECK_HEADERS): Check for sys/socket.h and
2706 ws2tcpip.h. When checking whether socklen_t type is defined, use
2707 ws2tcpip.h if it is available and sys/socket.h isn't.
2708 * configure: Regenerate.
2709 * config.in: Regenerate.
2710
2711 2020-07-25 Andrew Burgess <andrew.burgess@embecosm.com>
2712
2713 PR fortran/23051
2714 PR fortran/26139
2715 * valops.c (value_ind): Pass address to
2716 readjust_indirect_value_type.
2717 * value.c (readjust_indirect_value_type): Make parameter
2718 non-const, and add extra address parameter. Resolve original type
2719 before using it.
2720 * value.h (readjust_indirect_value_type): Update function
2721 signature and comment.
2722
2723 2020-07-25 Tom de Vries <tdevries@suse.de>
2724
2725 PR symtab/26243
2726 * dwarf2/read.c (lnp_state_machine::record_line): Ignore zero line
2727 entries.
2728
2729 2020-07-24 Aaron Merey <amerey@redhat.com>
2730
2731 * Makefile.in: Replace LIBDEBUGINFOD with DEBUGINFOD_LIBS.
2732 * configure: Rebuild.
2733
2734 2020-07-23 Kevin Buettner <kevinb@redhat.com>
2735
2736 PR corefiles/26294
2737 * corelow.c (_initialize_corelow): Add period to help text
2738 for "maintenance print core-file-backed-mappings".
2739
2740 2020-07-23 Pedro Alves <pedro@palves.net>
2741
2742 * frame-unwind.c (frame_unwind_try_unwinder): On exception, don't
2743 touch THIS_CACHE/THIS_FRAME if the frame cache was cleared
2744 meanwhile.
2745 * frame.c (frame_cache_generation, get_frame_cache_generation):
2746 New.
2747 (reinit_frame_cache): Increment FRAME_CACHE_GENERATION.
2748 (get_prev_frame_if_no_cycle): On exception, don't touch
2749 PREV_FRAME/THIS_FRAME if the frame cache was cleared meanwhile.
2750 * frame.h (get_frame_cache_generation): Declare.
2751
2752 2020-07-23 Tom de Vries <tdevries@suse.de>
2753
2754 PR tui/26282
2755 * tui/tui-winsource.h (struct tui_source_windows::tui_source_windows):
2756 New default constructor.
2757
2758 2020-07-23 Andrew Burgess <andrew.burgess@embecosm.com>
2759
2760 * disasm.c (do_mixed_source_and_assembly_deprecated): Don't
2761 exclude non-statement entries.
2762
2763 2020-07-22 Kevin Buettner <kevinb@redhat.com>
2764
2765 * NEWS (New commands): Mention new command
2766 "maintenance print core-file-backed-mappings".
2767
2768 2020-07-22 Kevin Buettner <kevinb@redhat.com>
2769
2770 * corelow.c (gdbcmd.h): Include.
2771 (core_target::info_proc_mappings): New method.
2772 (get_current_core_target): New function.
2773 (maintenance_print_core_file_backed_mappings): New function.
2774 (_initialize_corelow): Add core-file-backed-mappings to
2775 "maint print" commands.
2776
2777 2020-07-22 Kevin Buettner <kevinb@redhat.com>
2778
2779 * linux-tdep.c (dump_note_entry_p): New function.
2780 (linux_dump_mapping_p_ftype): New typedef.
2781 (linux_find_memory_regions_full): Add new parameter,
2782 should_dump_mapping_p.
2783 (linux_find_memory_regions): Adjust call to
2784 linux_find_memory_regions_full.
2785 (linux_make_mappings_core_file_notes): Use dump_note_entry_p in
2786 call to linux_find_memory_regions_full.
2787
2788 2020-07-22 Kevin Buettner <kevinb@redhat.com>
2789
2790 * corelow.c (solist.h, unordered_map): Include.
2791 (class core_target): Add field m_core_file_mappings and
2792 method build_file_mappings.
2793 (core_target::core_target): Call build_file_mappings.
2794 (core_target::~core_target): Free memory associated with
2795 m_core_file_mappings.
2796 (core_target::build_file_mappings): New method.
2797 (core_target::xfer_partial): Use m_core_file_mappings
2798 for memory transfers.
2799 * linux-tdep.c (linux_read_core_file_mappings): New
2800 function.
2801 (linux_core_info_proc_mappings): Rewrite to use
2802 linux_read_core_file_mappings.
2803 (linux_init_abi): Register linux_read_core_file_mappings.
2804
2805 2020-07-22 Kevin Buettner <kevinb@redhat.com>
2806
2807 * arch-utils.c (default_read_core_file_mappings): New function.
2808 * arch-utils.c (default_read_core_file_mappings): Declare.
2809 * gdbarch.sh (read_core_file_mappings): New gdbarch method.
2810 * gdbarch.h, gdbarch.c: Regenerate.
2811
2812 2020-07-22 Kevin Buettner <kevinb@redhat.com>
2813
2814 PR corefiles/25631
2815 * corelow.c (core_target:xfer_partial): Revise
2816 TARGET_OBJECT_MEMORY case to consider non-SEC_HAS_CONTENTS
2817 case after first checking the stratum beneath the core
2818 target.
2819 (has_all_memory): Return true.
2820 * target.c (raw_memory_xfer_partial): Revise comment
2821 regarding use of has_all_memory.
2822
2823 2020-07-22 Kevin Buettner <kevinb@redhat.com>
2824
2825 * exec.h (section_table_xfer_memory): Revise declaration,
2826 replacing section name parameter with an optional callback
2827 predicate.
2828 * exec.c (section_table_xfer_memory): Likewise.
2829 * bfd-target.c, exec.c, target.c, corelow.c: Adjust all callers
2830 of section_table_xfer_memory.
2831
2832 2020-07-22 Tom Tromey <tromey@adacore.com>
2833
2834 * mi/mi-cmd-stack.c (list_args_or_locals): Use
2835 lookup_symbol_search_name.
2836
2837 2020-07-22 Andrew Burgess <andrew.burgess@embecosm.com>
2838
2839 * python/py-registers.c (gdbpy_register_object_data_init): Remove
2840 redundant local variable.
2841 (gdbpy_get_register_descriptor): Extract descriptor vector as a
2842 reference, not pointer, update code accordingly.
2843
2844 2020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
2845 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2846
2847 * objfiles.h (struct objfile) <skip_jit_symbol_lookup>: New field.
2848 * jit.c (jit_breakpoint_re_set_internal): Use the
2849 `skip_jit_symbol_lookup` field.
2850
2851 2020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
2852 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2853
2854 * jit.c (jit_read_descriptor): Define the descriptor address once,
2855 use twice.
2856 (jit_breakpoint_deleted): Move the declaration of the loop variable
2857 `iter` into the loop header.
2858 (jit_breakpoint_re_set_internal): Move the declaration of the local
2859 variable `objf_data` to the first point of definition.
2860 (jit_event_handler): Move the declaration of local variables
2861 `code_entry`, `entry_addr`, and `objf` to their first point of use.
2862 Rename `objf` to `jited`.
2863
2864 2020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
2865
2866 * jit.h (struct jiter_objfile_data) <jiter_objfile_data, objfile>:
2867 Remove.
2868 * jit.c (get_jiter_objfile_data): Update.
2869
2870 2020-07-22 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2871 Simon Marchi <simon.marchi@polymtl.ca>
2872
2873 * jit.c (struct jit_program_space_data): Remove.
2874 (jit_program_space_key): Remove.
2875 (jiter_objfile_data::~jiter_objfile_data): Remove program space
2876 stuff.
2877 (get_jit_program_space_data): Remove.
2878 (jit_breakpoint_deleted): Iterate on all of the program space's
2879 objfiles.
2880 (jit_inferior_init): Likewise.
2881 (jit_breakpoint_re_set_internal): Likewise. Also change return
2882 type to void.
2883 (jit_breakpoint_re_set): Pass current_program_space to
2884 jit_breakpoint_re_set_internal.
2885
2886 2020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
2887
2888 * jit.h (struct jiter_objfile_data) <cached_code_address,
2889 jit_breakpoint>: Move to here from ...
2890 * jit.c (jit_program_space_data): ... here.
2891 (jiter_objfile_data::~jiter_objfile_data): Update.
2892 (jit_breakpoint_deleted): Update.
2893 (jit_breakpoint_re_set_internal): Update.
2894
2895 2020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
2896
2897 * jit.c (jiter_objfile_data::~jiter_objfile_data): Remove some
2898 checks.
2899 (jit_read_descriptor): Remove NULL check.
2900 (jit_event_handler): Add an assertion.
2901
2902 2020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
2903
2904 * jit.h (struct jit_objfile_data): Split into...
2905 (struct jiter_objfile_data): ... this ...
2906 (struct jited_objfile_data): ... and this.
2907 * objfiles.h (struct objfile) <jit_data>: Remove.
2908 <jiter_data, jited_data>: New fields.
2909 * jit.c (jit_objfile_data::~jit_objfile_data): Rename to ...
2910 (jiter_objfile_data::~jiter_objfile_data): ... this.
2911 (get_jit_objfile_data): Rename to ...
2912 (get_jiter_objfile_data): ... this.
2913 (add_objfile_entry): Update.
2914 (jit_read_descriptor): Use get_jiter_objfile_data.
2915 (jit_find_objf_with_entry_addr): Use objfile's jited_data field.
2916 (jit_breakpoint_re_set_internal): Use get_jiter_objfile_data.
2917 (jit_inferior_exit_hook): Use objfile's jited_data field.
2918
2919 2020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
2920
2921 * jit.h: Forward-declare `struct minimal_symbol`.
2922 (struct jit_objfile_data): Migrate to here from jit.c; also add a
2923 constructor, destructor, and an objfile* field.
2924 * jit.c (jit_objfile_data): Remove.
2925 (struct jit_objfile_data): Migrate from here to jit.h.
2926 (jit_objfile_data::~jit_objfile_data): New destructor
2927 implementation with code moved from free_objfile_data.
2928 (free_objfile_data): Delete.
2929 (get_jit_objfile_data): Update to use the jit_data field of objfile.
2930 (jit_find_objf_with_entry_addr): Ditto.
2931 (jit_inferior_exit_hook): Ditto.
2932 (_initialize_jit): Remove the call to
2933 register_objfile_data_with_cleanup.
2934 * objfiles.h (struct objfile) <jit_data>: New field.
2935
2936 2020-07-22 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2937
2938 * jit.h: Forward-declare `struct objfile`.
2939 (jit_event_handler): Add a second parameter, the JITer objfile.
2940 * jit.c (jit_read_descriptor): Change the signature to take the
2941 JITer objfile as an argument instead of the jit_program_space_data.
2942 (jit_inferior_init): Update the call to jit_read_descriptor.
2943 (jit_event_handler): Use the new JITer objfile argument when calling
2944 jit_read_descriptor.
2945 * breakpoint.c (handle_jit_event): Update the call to
2946 jit_event_handler to pass the JITer objfile.
2947
2948 2020-07-21 John Baldwin <jhb@FreeBSD.org>
2949
2950 * gdbarch.c: Regenerate.
2951 * gdbarch.h: Regenerate.
2952 * gdbarch.sh (handle_segmentation_fault): Remove method.
2953 * infrun.c (handle_segmentation_fault): Remove.
2954 (print_signal_received_reason): Remove call to
2955 handle_segmentation_fault.
2956
2957 2020-07-21 John Baldwin <jhb@FreeBSD.org>
2958
2959 * sparc64-linux-tdep.c (sparc64_linux_handle_segmentation_fault):
2960 Rename to sparc64_linux_report_signal_info and add siggnal
2961 argument.
2962 (sparc64_linux_init_abi): Use sparc64_linux_report_signal_info
2963 instead of sparc64_linux_handle_segmentation_fault.
2964
2965 2020-07-21 John Baldwin <jhb@FreeBSD.org>
2966
2967 * amd64-linux-tdep.c (amd64_linux_init_abi_common): Use
2968 i386_linux_report_signal_info instead of
2969 i386_linux_handle_segmentation_fault.
2970 * i386-linux-tdep.c (i386_linux_handle_segmentation_fault): Rename
2971 to i386_linux_report_signal_info and add siggnal argument.
2972 (i386_linux_init_abi): Use i386_linux_report_signal_info instead
2973 of i386_linux_handle_segmentation_fault.
2974 * i386-linux-tdep.h (i386_linux_handle_segmentation_fault): Rename
2975 to i386_linux_report_signal_info and add siggnal argument.
2976
2977 2020-07-21 John Baldwin <jhb@FreeBSD.org>
2978
2979 * corelow.c (core_target_open): Invoke gdbarch report_signal_info
2980 hook if present.
2981
2982 2020-07-21 John Baldwin <jhb@FreeBSD.org>
2983
2984 * gdbarch.c: Regenerate.
2985 * gdbarch.h: Regenerate.
2986 * gdbarch.sh (report_signal_info): New method.
2987 * infrun.c (print_signal_received_reason): Invoke gdbarch
2988 report_signal_info hook if present.
2989
2990 2020-07-21 Andrew Burgess <andrew.burgess@embecosm.com>
2991
2992 * python/py-registers.c : Add 'unordered_map' include.
2993 (gdbpy_new_reggroup): Renamed to...
2994 (gdbpy_get_reggroup): ...this. Update to only create register
2995 group descriptors when needed.
2996 (gdbpy_reggroup_iter_next): Update.
2997
2998 2020-07-21 Andrew Burgess <andrew.burgess@embecosm.com>
2999
3000 * python/py-registers.c (gdbpy_register_object_data): New static
3001 global.
3002 (gdbpy_register_object_data_init): New function.
3003 (gdbpy_new_register_descriptor): Renamed to...
3004 (gdbpy_get_register_descriptor): ...this, and update to reuse
3005 existing register descriptors where possible.
3006 (gdbpy_register_descriptor_iter_next): Update.
3007 (gdbpy_initialize_registers): Register new gdbarch data.
3008
3009 2020-07-21 Simon Marchi <simon.marchi@efficios.com>
3010
3011 * linux-nat.c (stopped_pids): Make static.
3012
3013 2020-07-21 Simon Marchi <simon.marchi@polymtl.ca>
3014
3015 PR ada/26235
3016 * gdbtypes.c (ada_discrete_type_low_bound,
3017 ada_discrete_type_high_bound): Handle undefined bounds.
3018
3019 2020-07-21 Kamil Rytarowski <n54@gmx.com>
3020
3021 * nbsd-nat.h (nbsd_nat_target::supports_multi_process): New
3022 declaration.
3023 * nbsd-nat.c (nbsd_nat_target::supports_multi_process): New
3024 function.
3025
3026 2020-07-20 John Baldwin <jhb@FreeBSD.org>
3027
3028 * fbsd-tdep.c (fbsd_skip_solib_resolver): New function.
3029 (fbsd_init_abi): Install gdbarch "skip_solib_resolver" method.
3030 * fbsd-tdep.h (fbsd_skip_solib_resolver): New prototype.
3031 * mips-fbsd-tdep.c (mips_fbsd_skip_solib_resolver): New function.
3032 (mips_fbsd_init_abi): Install gdbarch "skip_solib_resolver"
3033 method.
3034
3035 2020-07-20 Ludovic Courtès <ludo@gnu.org>
3036
3037 * guile/scm-math.c (vlscm_integer_fits_p): Use 'uintmax_t'
3038 and 'intmax_t' instead of 'scm_t_uintmax' and 'scm_t_intmax',
3039 which are deprecated in Guile 3.0.
3040 * configure.ac (try_guile_versions): Add "guile-3.0".
3041 * configure (try_guile_versions): Regenerate.
3042 * NEWS: Update entry.
3043
3044 2020-07-20 Ludovic Courtès <ludo@gnu.org>
3045 Doug Evans <dje@google.com>
3046
3047 PR gdb/21104
3048 * guile/scm-ports.c (USING_GUILE_BEFORE_2_2): New macro.
3049 (ioscm_memory_port)[read_buf_size, write_buf_size]: Wrap in #if
3050 USING_GUILE_BEFORE_2_2.
3051 (stdio_port_desc, memory_port_desc) [!USING_GUILE_BEFORE_2_2]:
3052 Change type to 'scm_t_port_type *'.
3053 (natural_buffer_size) [!USING_GUILE_BEFORE_2_2]: New variable.
3054 (ioscm_open_port) [USING_GUILE_BEFORE_2_2]: Add 'stream'
3055 parameter and honor it. Update callers.
3056 (ioscm_open_port) [!USING_GUILE_BEFORE_2_2]: New function.
3057 (ioscm_read_from_port, ioscm_write) [!USING_GUILE_BEFORE_2_2]: New
3058 functions.
3059 (ioscm_fill_input, ioscm_input_waiting, ioscm_flush): Wrap in #if
3060 USING_GUILE_BEFORE_2_2.
3061 (ioscm_init_gdb_stdio_port) [!USING_GUILE_BEFORE_2_2]: Use
3062 'ioscm_read_from_port'. Call 'scm_set_port_read_wait_fd'.
3063 (ioscm_init_stdio_buffers) [!USING_GUILE_BEFORE_2_2]: New function.
3064 (gdbscm_stdio_port_p) [!USING_GUILE_BEFORE_2_2]: Use 'SCM_PORTP'
3065 and 'SCM_PORT_TYPE'.
3066 (gdbscm_memory_port_end_input, gdbscm_memory_port_seek)
3067 (ioscm_reinit_memory_port): Wrap in #if USING_GUILE_BEFORE_2_2.
3068 (gdbscm_memory_port_read, gdbscm_memory_port_write)
3069 (gdbscm_memory_port_seek, gdbscm_memory_port_close)
3070 [!USING_GUILE_BEFORE_2_2]: New functions.
3071 (gdbscm_memory_port_print): Remove use of 'SCM_PTOB_NAME'.
3072 (ioscm_init_memory_port_type) [!USING_GUILE_BEFORE_2_2]: Use
3073 'gdbscm_memory_port_read'.
3074 Wrap 'scm_set_port_end_input', 'scm_set_port_flush', and
3075 'scm_set_port_free' calls in #if USING_GUILE_BEFORE_2_2.
3076 (gdbscm_get_natural_buffer_sizes) [!USING_GUILE_BEFORE_2_2]: New
3077 function.
3078 (ioscm_init_memory_port): Remove.
3079 (ioscm_init_memory_port_stream): New function
3080 (ioscm_init_memory_port_buffers) [USING_GUILE_BEFORE_2_2]: New
3081 function.
3082 (gdbscm_memory_port_read_buffer_size) [!USING_GUILE_BEFORE_2_2]:
3083 Return scm_from_uint (0).
3084 (gdbscm_set_memory_port_read_buffer_size_x)
3085 [!USING_GUILE_BEFORE_2_2]: Call 'scm_setvbuf'.
3086 (gdbscm_memory_port_write_buffer_size) [!USING_GUILE_BEFORE_2_2]:
3087 Return scm_from_uint (0).
3088 (gdbscm_set_memory_port_write_buffer_size_x)
3089 [!USING_GUILE_BEFORE_2_2]: Call 'scm_setvbuf'.
3090 * configure.ac (try_guile_versions): Add "guile-2.2".
3091 * configure: Regenerate.
3092 * NEWS: Add entry.
3093
3094 2020-07-18 Tom Tromey <tom@tromey.com>
3095
3096 * linux-nat.c (linux_multi_process): Remove.
3097 (linux_nat_target::supports_multi_process): Return true.
3098
3099 2020-07-17 Andrew Burgess <andrew.burgess@embecosm.com>
3100
3101 * arch/riscv.c (riscv_tdesc_cache): Change map type.
3102 (riscv_lookup_target_description): Return pointer out of
3103 unique_ptr.
3104 * target-descriptions.c (allocate_target_description): Add
3105 comment.
3106 (target_desc_deleter::operator()): Likewise.
3107 * target-descriptions.h (struct target_desc_deleter): Moved to
3108 gdbsupport/tdesc.h.
3109 (target_desc_up): Likewise.
3110
3111 2020-07-17 Tom Tromey <tromey@adacore.com>
3112
3113 * linux-nat.c (linux_nat_target::supports_non_stop)
3114 (linux_nat_target::always_non_stop_p): Use "true".
3115 (linux_nat_target::supports_disable_randomization): Use "true" and
3116 "false".
3117
3118 2020-07-16 Caroline Tice <cmtice@google.com>
3119
3120 * dwarf2/read.c (RNGLIST_HEADER_SIZE32) New constant definition.
3121 (RNGLIST_HEADER_SIZE64): New constant definition.
3122 (struct dwop_section_names): Add rnglists_dwo.
3123 (dwop_section_names): Add .debug_rnglists.dwo, .zdebug_rnglists.dwo.
3124 (struct loclist_header): Rename to 'loclists_rnglists_header'.
3125 (struct dwo_sections): Add rnglists field.
3126 (read_attribut_reprocess): Add tag parameter.
3127 (dwarf2_ranges_read): Add tag parameter & remove forward function decl.
3128 (cu_debug_rnglists_section): New function (decl & definition).
3129 (dwarf2_locate_dwo_sections): Add code to read rnglists_dwo section.
3130 (dwarf2_rnglists_process): Add a dwarf_tag parameter, for the kind of
3131 die whose range is being checked; get rnglist section from
3132 cu_debug_rnglists_section, to get from either objfile or dwo file as
3133 appropriate. Add cases for DW_RLE_base_addressx,
3134 DW_RLE_startx_length, DW_RLE_startx_endx. Also, update to only add
3135 the base address to DW_RLE_offset_pairs (not to all ranges), moving
3136 test inside if-condition and updating complaint message.
3137 (dwarf2_ranges_process): Add dwarf tag parameter and pass it to
3138 dwarf2_rnglists_process.
3139 (dwarf2_ranges_read): Add dwarf tag parameter and pass it to
3140 dwarf2_ranges_process.
3141 (dwarf2_get_pc_bounds): Check for DW_FORM_rnglistx when setting
3142 need_ranges_base and update comment appropriately. Also pass die tag
3143 to dwarf2_ranges_read.
3144 (dwarf2_record_block_ranges): Check for DW_FORM_rnglistx when setting
3145 need_ranges_base and update comment appropriately. Also pass die tag
3146 to dwarf2_ranges_process.
3147 (read_full_die_1): Add code to read DW_AT_rnglists_base and assign to
3148 cu->ranges_base. Also pass die tag to read_attribute_reprocess.
3149 (partial_die_info::read): Check for DW_FORM_rnglistx when setting
3150 need_ranges_base and update comment appropriately. Also pass die tag
3151 to read_attribute_reprocess and dwarf2_ranges_read.
3152 (read_loclist_header): Rename function to read_loclists_rnglists_header,
3153 and update function comment appropriately.
3154 (read_loclist_index): Call read_loclists_rnglists_header instead of
3155 read_loclist_header.
3156 (read_rnglist_index): New function.
3157 (read_attribute_reprocess): Add tag parameter. Add code for
3158 DW_FORM_rnglistx, passing tag to read_rnglist_index.
3159 (read_attribute_value): Mark DW_FORM_rnglistx with need_reprocess.
3160
3161 2020-07-15 Andrew Burgess <andrew.burgess@embecosm.com>
3162
3163 * f-typeprint.c (f_type_print_base): Allow for dynamic types not
3164 being resolved.
3165
3166 2020-07-14 Andrew Burgess <andrew.burgess@embecosm.com>
3167
3168 * arch-utils.c (show_architecture): Update formatting of messages.
3169
3170 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
3171
3172 * gdbtypes.h (struct type) <bounds>: Handle array and string
3173 types.
3174 * ada-lang.c (assign_aggregate): Use type::bounds on
3175 array/string type.
3176 * c-typeprint.c (c_type_print_varspec_suffix): Likewise.
3177 * c-varobj.c (c_number_of_children): Likewise.
3178 (c_describe_child): Likewise.
3179 * eval.c (evaluate_subexp_for_sizeof): Likewise.
3180 * f-typeprint.c (f_type_print_varspec_suffix): Likewise.
3181 (f_type_print_base): Likewise.
3182 * f-valprint.c (f77_array_offset_tbl): Likewise.
3183 (f77_get_upperbound): Likewise.
3184 (f77_print_array_1): Likewise.
3185 * guile/scm-type.c (gdbscm_type_range): Likewise.
3186 * m2-typeprint.c (m2_array): Likewise.
3187 (m2_is_long_set_of_type): Likewise.
3188 * m2-valprint.c (get_long_set_bounds): Likewise.
3189 * p-typeprint.c (pascal_type_print_varspec_prefix): Likewise.
3190 * python/py-type.c (typy_range): Likewise.
3191 * rust-lang.c (rust_internal_print_type): Likewise.
3192 * type-stack.c (type_stack::follow_types): Likewise.
3193 * valarith.c (value_subscripted_rvalue): Likewise.
3194 * valops.c (value_cast): Likewise.
3195
3196 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
3197
3198 * gdbtypes.c (TYPE_ARRAY_BIT_STRIDE): Remove. Update all
3199 callers to use the equivalent accessor methods.
3200
3201 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
3202
3203 * gdbtypes.h (struct range_bounds) <bit_stride>: New method.
3204 (struct type) <bit_stride>: New method.
3205 (TYPE_BIT_STRIDE): Remove.
3206 * gdbtypes.c (update_static_array_size): Use type::bit_stride.
3207
3208 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
3209
3210 * gdbtypes.h (TYPE_ARRAY_LOWER_BOUND_VALUE,
3211 TYPE_ARRAY_UPPER_BOUND_VALUE): Remove. Update all
3212 callers to use the equivalent accessor methods instead.
3213
3214 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
3215
3216 * gdbtypes.h (TYPE_ARRAY_UPPER_BOUND_IS_UNDEFINED,
3217 TYPE_ARRAY_LOWER_BOUND_IS_UNDEFINED): Remove. Update all
3218 callers to use the equivalent accessor methods instead.
3219
3220 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
3221
3222 * gdbtypes.h (TYPE_LOW_BOUND_KIND,
3223 TYPE_HIGH_BOUND_KIND): Remove. Update all callers
3224 to use dynamic_prop::kind.
3225
3226 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
3227
3228 * gdbtypes.h (TYPE_LOW_BOUND_UNDEFINED,
3229 TYPE_HIGH_BOUND_UNDEFINED): Remove. Update all callers
3230 to get the bound property's kind and check against
3231 PROP_UNDEFINED.
3232
3233 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
3234
3235 * gdbtypes.h (TYPE_LOW_BOUND, TYPE_HIGH_BOUND): Remove. Update
3236 all callers to use type::range_bounds followed by
3237 dynamic_prop::{low,high}.
3238
3239 2020-07-12 Simon Marchi <simon.marchi@polymtl.ca>
3240
3241 * gdbtypes.h (struct dynamic_prop) <kind, set_undefined,
3242 const_val, set_const_val, baton, set_locexpr, set_loclist,
3243 set_addr_offset, variant_parts, set_variant_parts,
3244 original_type, set_original_type>: New methods.
3245 <kind>: Rename to...
3246 <m_kind>: ... this. Update all users to use the new methods
3247 instead.
3248 <data>: Rename to...
3249 <m_data>: ... this. Update all users to use the new methods
3250 instead.
3251
3252 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
3253
3254 * gdbtypes.c (get_discrete_bounds): Return failure if
3255 the range type's bounds are not both defined and constant
3256 values.
3257 (get_array_bounds): Update comment. Remove undefined bound check.
3258
3259 2020-07-12 Simon Marchi <simon.marchi@polymtl.ca>
3260
3261 * gdbtypes.h (TYPE_RANGE_DATA): Remove. Update callers to use
3262 the type::bounds method directly.
3263
3264 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
3265
3266 * gdbtypes.h (struct type) <bounds, set_bounds>: New methods.
3267 (TYPE_RANGE_DATA): Use type::bounds. Change all uses that
3268 are used to set the range type's bounds to use set_bounds.
3269
3270 2020-07-11 Philippe Waroquiers <philippe.waroquiers@skynet.be>
3271
3272 * exec.c (_initialize_exec): Update exec-file-mismatch help.
3273
3274 2020-07-10 Pedro Alves <pedro@palves.net>
3275
3276 * gdbthread.h (inferior_ref): Define.
3277 (scoped_restore_current_thread) <m_thread>: Now a thread_info_ref.
3278 (scoped_restore_current_thread) <m_inf>: Now an inferior_ref.
3279 * thread.c
3280 (scoped_restore_current_thread::restore):
3281 Adjust to gdb::ref_ptr.
3282 (scoped_restore_current_thread::~scoped_restore_current_thread):
3283 Remove manual decref handling.
3284 (scoped_restore_current_thread::scoped_restore_current_thread):
3285 Adjust to use
3286 inferior_ref::new_reference/thread_info_ref::new_reference.
3287 Incref the thread before calling get_frame_id instead of after.
3288 Let TARGET_CLOSE_ERROR propagate.
3289
3290 2020-07-10 Pedro Alves <pedro@palves.net>
3291
3292 * frame-tailcall.c (dwarf2_tailcall_sniffer_first): Only swallow
3293 NO_ENTRY_VALUE_ERROR / MEMORY_ERROR / OPTIMIZED_OUT_ERROR /
3294 NOT_AVAILABLE_ERROR.
3295 * value.c (value_optimized_out): Only swallow MEMORY_ERROR /
3296 OPTIMIZED_OUT_ERROR / NOT_AVAILABLE_ERROR.
3297
3298 2020-07-10 Simon Marchi <simon.marchi@polymtl.ca>
3299 Pedro Alves <pedro@palves.net>
3300
3301 PR gdb/26199
3302 * infrun.c (threads_are_resumed_pending_p): Delete.
3303 (do_target_wait): Remove threads_are_executing and
3304 threads_are_resumed_pending_p checks from the inferior_matches
3305 lambda. Update comments.
3306
3307 2020-07-10 Pedro Alves <pedro@palves.net>
3308
3309 PR gdb/26199
3310 * infrun.c (handle_no_resumed): Transfer terminal to inferior with
3311 executing threads.
3312
3313 2020-07-10 Pedro Alves <pedro@palves.net>
3314
3315 PR gdb/26199
3316 * infrun.c (handle_no_resumed): Handle multiple targets.
3317
3318 2020-07-10 Pedro Alves <pedro@palves.net>
3319
3320 PR gdb/26199
3321 * infrun.c (prepare_to_wait): Check target_can_async_p instead of
3322 target_is_async_p.
3323
3324 2020-07-10 Pedro Alves <pedro@palves.net>
3325
3326 PR gdb/26199
3327 * target.c (target_pass_ctrlc): Look at the inferior's non-exited
3328 threads, not all threads.
3329
3330 2020-07-10 Pedro Alves <pedro@palves.net>
3331
3332 PR gdb/26199
3333 * remote.c (remote_target::open_1): Pass remote target pointer as
3334 data to create_async_event_handler.
3335 (remote_async_inferior_event_handler): Mark async event handler
3336 before returning if the remote target still has either pending
3337 events or unacknowledged notifications.
3338
3339 2020-07-10 John Baldwin <jhb@FreeBSD.org>
3340
3341 * fbsd-nat.h (fbsd_nat_target::supports_multi_process): New
3342 declaration.
3343 * fbsd-nat.c (fbsd_nat_target::supports_multi_process): New
3344 function.
3345
3346 2020-07-09 John Baldwin <jhb@FreeBSD.org>
3347
3348 * inf-ptrace.c (inf_ptrace_target::wait): Don't compare against
3349 inferior_ptid.
3350
3351 2020-07-09 John Baldwin <jhb@FreeBSD.org>
3352
3353 * fbsd-tdep.c (fbsd_print_auxv_entry): Handle AT_FREEBSD_ARGC,
3354 AT_FREEBSD_ARGV, AT_FREEBSD_ENVC, AT_FREEBSD_ENVV,
3355 AT_FREEBSD_PS_STRINGS.
3356
3357 2020-07-08 Hannes Domani <ssbssa@yahoo.de>
3358
3359 * auto-load.c (auto_load_objfile_script_1): Convert drive part
3360 of debugfile path on Windows.
3361
3362 2020-07-08 John Baldwin <jhb@FreeBSD.org>
3363
3364 * fbsd-nat.c (fbsd_nat_target::find_memory_regions): Rename 'obfd'
3365 argument to 'data'.
3366
3367 2020-07-08 Tom Tromey <tromey@adacore.com>
3368
3369 * ada-lang.c (ada_exception_message_1): Use read_memory.
3370
3371 2020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
3372
3373 PR python/22748
3374 * dwarf2/frame-tailcall.c (dwarf2_tailcall_sniffer_first): Remove
3375 special handling for inline frames.
3376 * findvar.c (value_of_register_lazy): Skip inline frames when
3377 creating lazy register values.
3378 * frame.c (frame_id_computed_p): Delete definition.
3379 * frame.h (frame_id_computed_p): Delete declaration.
3380
3381 2020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
3382
3383 * NEWS: Mention additions to Python API.
3384 * python/py-arch.c (archpy_register_groups): New function.
3385 (arch_object_methods): Add 'register_groups' method.
3386 * python/py-registers.c (reggroup_iterator_object): New struct.
3387 (reggroup_object): New struct.
3388 (gdbpy_new_reggroup): New function.
3389 (gdbpy_reggroup_to_string): New function.
3390 (gdbpy_reggroup_name): New function.
3391 (gdbpy_reggroup_iter): New function.
3392 (gdbpy_reggroup_iter_next): New function.
3393 (gdbpy_new_reggroup_iterator): New function
3394 (gdbpy_initialize_registers): Register new types.
3395 (reggroup_iterator_object_type): Define new Python type.
3396 (gdbpy_reggroup_getset): New static global.
3397 (reggroup_object_type): Define new Python type.
3398 * python/python-internal.h
3399
3400 2020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
3401
3402 * Makefile.in (SUBDIR_PYTHON_SRCS): Add py-registers.c
3403 * python/py-arch.c (archpy_registers): New function.
3404 (arch_object_methods): Add 'registers' method.
3405 * python/py-registers.c: New file.
3406 * python/python-internal.h
3407 (gdbpy_new_register_descriptor_iterator): Declare.
3408 (gdbpy_initialize_registers): Declare.
3409 * python/python.c (do_start_initialization): Call
3410 gdbpy_initialize_registers.
3411 * NEWS: Mention additions to the Python API.
3412
3413 2020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
3414
3415 * NEWS: Mention new Python API method.
3416 * python/py-unwind.c (pending_framepy_architecture): New function.
3417 (pending_frame_object_methods): Add architecture method.
3418
3419 2020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
3420
3421 * gdbarch.c: Regenerate.
3422 * gdbarch.h: Regenerate.
3423 * gdbarch.sh (deprecated_set_gdbarch_data): Delete.
3424 (gdbarch_data): Use internal_error for the case where
3425 deprecated_set_gdbarch_data was originally needed.
3426 * ia64-libunwind-tdep.c (libunwind_descr_init): Update parameters,
3427 and use passed in obstack.
3428 (libunwind_frame_set_descr): Should no longer get back NULL from
3429 gdbarch_data.
3430 (_initialize_libunwind_frame): Register as a pre-init gdbarch data
3431 type.
3432 * user-regs.c (user_regs_init): Update parameters, and use passed
3433 in obstack.
3434 (user_reg_add): Should no longer get back NULL from gdbarch_data.
3435 (_initialize_user_regs): Register as a pre-init gdbarch data type.
3436
3437 2020-07-06 Tom de Vries <tdevries@suse.de>
3438
3439 * buildsym.c (buildsym_compunit::end_symtab_with_blockvector): Handle
3440 End-Of-Sequence in lte_is_less_than.
3441 * symtab.c (find_pc_sect_line): Revert change from commit 3d92a3e313
3442 "gdb: Don't reorder line table entries too much when sorting".
3443
3444 2020-07-06 Tom de Vries <tdevries@suse.de>
3445
3446 PR tui/26205
3447 * tui/tui-win.c (tui_partial_win_by_name): Don't test for NULL name.
3448
3449 2020-07-05 Tom de Vries <tdevries@suse.de>
3450
3451 PR build/26187
3452 * inferior.h (struct infcall_suspend_state_deleter): If available, use
3453 std::uncaught_exceptions instead of deprecated
3454 std::uncaught_exception.
3455
3456 2020-07-02 Simon Marchi <simon.marchi@polymtl.ca>
3457
3458 * macroexp.h (macro_stringify): Return
3459 gdb::unique_xmalloc_ptr<char>.
3460 * macroexp.c (macro_stringify): Likewise.
3461 * macrotab.c (fixup_definition): Update.
3462
3463 2020-07-02 Simon Marchi <simon.marchi@polymtl.ca>
3464
3465 * c-exp.y (scan_macro_expansion): Don't free `expansion`.
3466 (lex_one_token): Update.
3467 * macroexp.c (struct macro_buffer) <release>: Return
3468 gdb::unique_xmalloc_ptr<char>.
3469 (macro_stringify): Update.
3470 (macro_expand): Update.
3471 (macro_expand_next): Return gdb::unique_xmalloc_ptr<char>.
3472 * macroexp.h (macro_expand_next): Likewise.
3473
3474 2020-07-02 Simon Marchi <simon.marchi@efficios.com>
3475
3476 * macroexp.h (macro_lookup_ftype): Remove.
3477 (macro_expand, macro_expand_once, macro_expand_next): Remove
3478 lookup function parameters, add scope parameter.
3479 * macroexp.c (scan, substitute_args, expand, maybe_expand,
3480 macro_expand, macro_expand_once, macro_expand_next): Likewise.
3481 * macroscope.h (standard_macro_lookup): Change parameter type
3482 to macro_scope.
3483 * macroscope.c (standard_macro_lookup): Likewise.
3484 * c-exp.y (lex_one_token): Update.
3485 * macrocmd.c (macro_expand_command): Likewise.
3486 (macro_expand_once_command): Likewise.
3487
3488 2020-07-02 Simon Marchi <simon.marchi@polymtl.ca>
3489
3490 * inf-loop.c (inferior_event_handler): Remove client_data param.
3491 * inf-loop.h (inferior_event_handler): Likewise.
3492 * infcmd.c (step_1): Adjust.
3493 * infrun.c (proceed): Adjust.
3494 (fetch_inferior_event): Remove client_data param.
3495 (infrun_async_inferior_event_handler): Adjust.
3496 * infrun.h (fetch_inferior_event): Remove `void *` param.
3497 * linux-nat.c (handle_target_event): Adjust.
3498 * record-btrace.c (record_btrace_handle_async_inferior_event):
3499 Adjust.
3500 * record-full.c (record_full_async_inferior_event_handler):
3501 Adjust.
3502 * remote.c (remote_async_inferior_event_handler): Adjust.
3503
3504 2020-07-01 Tom Tromey <tom@tromey.com>
3505
3506 * tui/tui-data.h (struct tui_win_info) <name>: Now pure virtual.
3507 * tui/tui-stack.h (struct tui_locator_window) <name>: New method.
3508
3509 2020-07-01 Tom Tromey <tom@tromey.com>
3510
3511 * tui/tui-wingeneral.c (tui_win_info::refresh_window): Move from
3512 tui_gen_win_info.
3513 (tui_win_info::make_window): Merge with
3514 tui_gen_win_info::make_window.
3515 (tui_win_info::make_visible): Move from tui_gen_win_info.
3516 * tui/tui-win.c (tui_win_info::max_width): Move from
3517 tui_gen_win_info.
3518 * tui/tui-layout.h (class tui_layout_window) <m_window>: Change
3519 type.
3520 <window_factory>: Likewise.
3521 * tui/tui-layout.c (tui_win_info::resize): Move from
3522 tui_gen_win_info.
3523 (make_standard_window): Change return type.
3524 (get_locator_window, tui_get_window_by_name): Likewise.
3525 (tui_layout_window::apply): Remove a cast.
3526 * tui/tui-data.h (MIN_WIN_HEIGHT): Move earlier.
3527 (struct tui_win_info): Merge with tui_gen_win_info.
3528 (struct tui_gen_win_info): Remove.
3529
3530 2020-07-01 Tom Tromey <tom@tromey.com>
3531
3532 * tui/tui-stack.h (struct tui_locator_window): Derive from
3533 tui_win_info.
3534 <do_scroll_horizontal, do_scroll_vertical>: New methods.
3535 <can_box>: New method.
3536
3537 2020-07-01 Tom Tromey <tom@tromey.com>
3538
3539 * tui/tui-stack.h (struct tui_locator_window): Remove body.
3540
3541 2020-07-01 Tom Tromey <tom@tromey.com>
3542
3543 * tui/tui-regs.c (tui_data_window::display_registers_from)
3544 (tui_data_window::display_registers_from)
3545 (tui_data_window::first_data_item_displayed)
3546 (tui_data_window::delete_data_content_windows): Update.
3547 (tui_data_window::refresh_window, tui_data_window::no_refresh):
3548 Remove.
3549 (tui_data_window::check_register_values): Update.
3550 (tui_data_item_window::rerender): Add parameters. Update.
3551 (tui_data_item_window::refresh_window): Remove.
3552 * tui/tui-data.h (struct tui_gen_win_info) <no_refresh>: No longer
3553 virtual.
3554 * tui/tui-regs.h (struct tui_data_item_window): Don't derive from
3555 tui_gen_win_info.
3556 <refresh_window, max_height, min_height>: Remove.
3557 <rerender>: Add parameters.
3558 <x, y, visible>: New members.
3559 (struct tui_data_window) <refresh_window, no_refresh>: Remove.
3560 <m_item_width>: New member.
3561
3562 2020-07-01 Tom Tromey <tom@tromey.com>
3563
3564 * tui/tui-regs.c (tui_data_window::show_register_group)
3565 (tui_data_window::check_register_values): Update.
3566 * tui/tui-regs.h (struct tui_data_item_window) <regno>: Rename
3567 from item_no.
3568
3569 2020-07-01 Tom Tromey <tom@tromey.com>
3570
3571 * tui/tui-regs.c (tui_data_window::show_register_group): Remove
3572 useless "if".
3573
3574 2020-07-01 Tom Tromey <tom@tromey.com>
3575
3576 * tui/tui-regs.c (tui_data_window::show_register_group): Update.
3577 * tui/tui-regs.h (struct tui_data_item_window) <name>: Remove.
3578
3579 2020-07-01 Tom Tromey <tom@tromey.com>
3580
3581 * tui/tui-stack.c (SINGLE_KEY): Move from tui-data.h
3582 * tui/tui-winsource.h (enum tui_line_or_address_kind)
3583 (struct tui_line_or_address): Move from tui-data.h.
3584 * tui/tui-win.c (DEFAULT_TAB_LEN): Move from tui-data.h.
3585 * tui/tui-data.h (DEFAULT_TAB_LEN): Move to tui-win.c.
3586 (tui_cmd_window, tui_source_window_base, tui_source_window)
3587 (tui_disasm_window): Don't declare.
3588 (enum tui_line_or_address_kind, struct tui_line_or_address): Move
3589 to tui-winsource.h.
3590 (SINGLE_KEY): Move to tui-stack.c.
3591
3592 2020-07-01 Tom Tromey <tom@tromey.com>
3593
3594 * tui/tui-regs.h (struct tui_data_item_window) <content>: Now a
3595 std::string.
3596 * tui/tui-regs.c (class tab_expansion_file): New.
3597 (tab_expansion_file::write): New method.
3598 (tui_register_format): Change return type. Use
3599 tab_expansion_file.
3600 (tui_get_register, tui_data_window::display_registers_from)
3601 (tui_data_item_window::rerender): Update.
3602 * tui/tui-io.h (tui_expand_tabs): Don't declare.
3603 * tui/tui-io.c (tui_expand_tabs): Remove.
3604
3605 2020-07-01 Tom Tromey <tom@tromey.com>
3606
3607 * tui/tui-regs.c (tui_reggroup_completer): Use complete_on_enum.
3608
3609 2020-07-01 Fangrui Song <maskray@google.com>
3610
3611 * dwarf2/read.c (lnp_state_machine::check_line_address): Test -1.
3612
3613 2020-07-01 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
3614
3615 * dwarf2/read.c (set_die_type): Removed conditions to restrict
3616 forms for DW_AT_associated and DW_AT_allocated attributes,
3617 which is already checked in function attr_to_dynamic_prop.
3618
3619 2020-06-30 Tom Tromey <tromey@adacore.com>
3620
3621 * dwarf2/read.c (quirk_rust_enum): Correctly call
3622 alloc_rust_variant for default-less enum.
3623
3624 2020-06-30 Tom Tromey <tromey@adacore.com>
3625
3626 PR build/26183:
3627 * ada-lang.c (ada_lookup_name_info::ada_lookup_name_info): Use
3628 gdb::to_string.
3629
3630 2020-06-29 Simon Marchi <simon.marchi@efficios.com>
3631
3632 * gdbarch.sh (displaced_step_copy_insn): Update doc.
3633 * gdbarch.h: Re-generate.
3634
3635 2020-06-28 Tom Tromey <tom@tromey.com>
3636
3637 * command.h (cmd_types): Remove.
3638 (cmd_type): Don't declare.
3639 * cli/cli-decode.h (enum cmd_types): Uncomment. No longer a
3640 typedef.
3641 * cli/cli-cmds.c (setting_cmd): Use cmd->type directly.
3642 * cli/cli-decode.c (cmd_type): Remove.
3643
3644 2020-06-27 Pedro Alves <palves@redhat.com>
3645
3646 * fork-child.c (prefork_hook): Adjust.
3647 * infcmd.c (set_inferior_io_terminal, get_inferior_io_terminal):
3648 Delete.
3649 (set_inferior_tty_command, show_inferior_tty_command): Adjust.
3650 * inferior.c (inferior::set_tty, inferior::tty): New methods.
3651 * inferior.h (set_inferior_io_terminal, get_inferior_io_terminal):
3652 Remove declarations.
3653 (struct inferior) <set_tty, tty>: New methods.
3654 (struct inferior) <terminal>: Rename to ...
3655 (struct inferior) <m_terminal>: ... this and make private.
3656 * main.c (captured_main_1): Adjust.
3657 * mi/mi-cmd-env.c (mi_cmd_inferior_tty_set): Adjust.
3658 (mi_cmd_inferior_tty_show): Adjust.
3659 * nto-procfs.c (nto_procfs_target::create_inferior): Adjust.
3660 * windows-nat.c (windows_nat_target::create_inferior): Adjust.
3661
3662 2020-06-26 Nick Alcock <nick.alcock@oracle.com>
3663
3664 * configure.ac: Add --enable-libctf: handle --disable-static
3665 properly.
3666 * acinclude.m4: sinclude ../config/enable.m4.
3667 * Makefile.in (aclocal_m4_deps): Adjust accordingly.
3668 (LIBCTF): Substitute in.
3669 (CTF_DEPS): New, likewise.
3670 (CLIBS): libctf needs symbols from libbfd: move earlier.
3671 (CDEPS): Use CTF_DEPS, not LIBCTF, now LIBCTF can include rpath
3672 flags.
3673 * ctfread.c: Surround in ENABLE_LIBCTF.
3674 (elfctf_build_psymtabs) [!ENABLE_LIBCTF]: New stub.
3675 * configure: Regenerate.
3676 * config.in: Likewise.
3677
3678 2020-06-25 Simon Marchi <simon.marchi@efficios.com>
3679
3680 * infcmd.c (set_inferior_io_terminal): Use make_unique_xstrdup.
3681
3682 2020-06-25 Simon Marchi <simon.marchi@efficios.com>
3683
3684 * inferior.h (struct inferior) <terminal>: Change type to
3685 gdb::unique_xmalloc_ptr<char>.
3686 * inferior.c (inferior::~inferior): Don't free inf->terminal.
3687 * infcmd.c (set_inferior_io_terminal): Don't free terminal
3688 field, adjust to unique pointer.
3689 (get_inferior_io_terminal): Adjust to unique pointer.
3690
3691 2020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
3692
3693 * riscv-tdep.c (riscv_print_registers_info): Loop over all
3694 registers, not just the known core set of registers.
3695
3696 2020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
3697
3698 * riscv-tdep.c (riscv_register_name): Return NULL for duplicate
3699 fflags, frm, and fcsr registers.
3700 (riscv_register_reggroup_p): Remove unknown CSRs from save and
3701 restore groups.
3702 (riscv_tdesc_unknown_reg): New function.
3703 (riscv_gdbarch_init): Pass riscv_tdesc_unknown_reg to
3704 tdesc_use_registers.
3705 * riscv-tdep.h (struct gdbarch_tdep): Add
3706 unknown_csrs_first_regnum, unknown_csrs_count,
3707 duplicate_fflags_regnum, duplicate_frm_regnum, and
3708 duplicate_fcsr_regnum fields.
3709
3710 2020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
3711
3712 * target-descriptions.c (tdesc_use_registers): Add new parameter a
3713 callback, use the callback (when not null) to help number unknown
3714 registers.
3715 * target-descriptions.h (tdesc_unknown_register_ftype): New typedef.
3716 (tdesc_use_registers): Add extra parameter to declaration.
3717
3718 2020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
3719
3720 * riscv-tdep.c (value_of_riscv_user_reg): Moved to here from later
3721 in the file.
3722 (class riscv_pending_register_alias): Likewise.
3723 (riscv_register_feature::register_info): Change 'required_p' field
3724 to 'required', and change its type. Add 'check' member function.
3725 (riscv_register_feature::register_info::check): Define new member
3726 function.
3727 (riscv_xreg_feature): Change initialisation of 'required' field.
3728 (riscv_freg_feature): Likewise.
3729 (riscv_virtual_feature): Likewise.
3730 (riscv_csr_feature): Likewise.
3731 (riscv_check_tdesc_feature): Take extra parameter, the csr
3732 tdesc_feature, rewrite the function to use the new
3733 riscv_register_feature::register_info::check function.
3734 (riscv_gdbarch_init): Pass the csr tdesc_feature where needed.
3735
3736 2020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
3737
3738 * features/Makefile: Remove all references to the deleted files
3739 below.
3740 * features/riscv/32bit-csr.c: Deleted.
3741 * features/riscv/32bit-csr.xml: Deleted.
3742 * features/riscv/64bit-csr.c: Deleted.
3743 * features/riscv/64bit-csr.xml: Deleted.
3744 * features/riscv/rebuild-csr-xml.sh: Deleted.
3745
3746 2020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
3747
3748 * riscv-tdep.c (struct riscv_register_feature::register_info): Fix
3749 whitespace error for declaration of names member variable.
3750 (struct riscv_register_feature): Add new prefer_first_name member
3751 variable, and fix whitespace error in declaration of registers.
3752 (riscv_xreg_feature): Initialize prefer_first_name field.
3753 (riscv_freg_feature): Likewise.
3754 (riscv_virtual_feature): Likewise.
3755 (riscv_csr_feature): Likewise.
3756 (riscv_register_name): Expand on comments. Remove register name
3757 modifications for CSR and virtual registers.
3758
3759 2020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
3760
3761 * riscv-tdep.c (struct riscv_register_feature): Fix whitespace
3762 errors.
3763
3764 2020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
3765
3766 * riscv-tdep.c (riscv_create_csr_aliases): Handle csr aliases from
3767 riscv-opc.h.
3768 (class riscv_pending_register_alias): New class.
3769 (riscv_check_tdesc_feature): Take vector of pending aliases and
3770 populate it as appropriate.
3771 (riscv_setup_register_aliases): Delete.
3772 (riscv_gdbarch_init): Create vector of pending aliases and pass it
3773 to riscv_check_tdesc_feature in all cases. Use the vector to
3774 create the register aliases.
3775
3776 2020-06-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
3777
3778 * sol2-tdep.c (sol2_static_transform_name): Remove.
3779 (sol2_init_abi): Don't register it.
3780 * gdbarch.sh (static_transform_name): Remove.
3781 * gdbarch.c, gdbarch.h: Regenerate.
3782
3783 * dbxread.c (read_dbx_symtab) <'S'>: Remove call to
3784 gdbarch_static_transform_name.
3785 * mdebugread.c (parse_partial_symbols) <'S'>: Likewise.
3786 * stabsread.c (define_symbol) <'X'>: Remove.
3787 (define_symbol) <'S'>: Remove gdbarch_static_transform_name
3788 handling.
3789 <'V'>: Likewise.
3790 * xcoffread.c (scan_xcoff_symtab): Remove gdbarch.
3791 <'S'>: Remove call to gdbarch_static_transform_name.
3792
3793 2020-06-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
3794
3795 * procfs.c (procfs_pre_trace): New function.
3796 (procfs_target::create_inferior): Pass it to fork_inferior.
3797
3798 2020-06-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
3799
3800 * configure.tgt <sparc-*-linux*> (gdb_target_obs): Remove
3801 sparc-sol2-tdep.o, sol2-tdep.o, sparc64-sol2-tdep.o.
3802 <sparc64-*-linux*> (gdb_target_obs): Remove sparc64-sol2-tdep.o,
3803 sol2-tdep.o, sparc-sol2-tdep.o.
3804 * sparc-sol2-tdep.c (sparc32_sol2_init_abi): Make static.
3805 * sparc-tdep.h (sparc32_sol2_init_abi): Remove.
3806 * sparc64-sol2-tdep.c (sparc64_sol2_init_abi): Make static.
3807 * sparc64-tdep.h (sparc64_sol2_init_abi): Remove.
3808
3809 2020-06-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
3810
3811 * amd64-sol2-tdep.c (amd64_sol2_sigtramp_p): Remove.
3812 (amd64_sol2_init_abi): Use sol2_sigtramp_p.
3813 Call sol2_init_abi.
3814 Remove calls to set_gdbarch_skip_solib_resolver,
3815 set_gdbarch_core_pid_to_str.
3816 * i386-sol2-tdep.c (i386_sol2_sigtramp_p): Remove.
3817 (i386_sol2_static_transform_name): Remove.
3818 (i386_sol2_init_abi): Call sol2_init_abi.
3819 Remove calls to set_gdbarch_sofun_address_maybe_missing,
3820 set_gdbarch_static_transform_name,
3821 set_gdbarch_skip_solib_resolver, set_gdbarch_core_pid_to_str.
3822 Use sol2_sigtramp_p.
3823 * sol2-tdep.c (sol2_pc_in_sigtramp): New function.
3824 (sol2_sigtramp_p): New function.
3825 (sol2_static_transform_name): New function.
3826 (sol2_skip_solib_resolver, sol2_core_pid_to_str): Make static.
3827 (sol2_init_abi): New function.
3828 * sol2-tdep.h (sol2_sigtramp_p, sol2_init_abi): Declare.
3829 (sol2_skip_solib_resolver, sol2_core_pid_to_str): Remove.
3830 * sparc-sol2-tdep.c (sparc_sol2_pc_in_sigtramp): Remove.
3831 (sparc32_sol2_sigtramp_frame_sniffer): Just call sol2_sigtramp_p.
3832 (sparc_sol2_static_transform_name): Remove.
3833 (sparc32_sol2_init_abi): Call sol2_init_abi.
3834 Remove calls to set_gdbarch_sofun_address_maybe_missing,
3835 set_gdbarch_static_transform_name,
3836 set_gdbarch_skip_solib_resolver,
3837 set_gdbarch_core_pid_to_str.
3838 * sparc-tdep.h (sparc_sol2_pc_in_sigtramp)
3839 (sparc_sol2_static_transform_name): Remove
3840 * sparc64-sol2-tdep.c (sparc64_sol2_sigtramp_frame_sniffer): Just
3841 call sol2_sigtramp_p.
3842 (sparc64_sol2_init_abi): Call sol2_init_abi.
3843 Remove calls to set_gdbarch_sofun_address_maybe_missing,
3844 set_gdbarch_static_transform_name,
3845 set_gdbarch_skip_solib_resolver, set_gdbarch_core_pid_to_str.
3846
3847 2020-06-24 Philippe Waroquiers <philippe.waroquiers@skynet.be>
3848
3849 * symfile-add-flags.h: New flag SYMFILE_ALWAYS_CONFIRM.
3850 * exec.c (validate_exec_file): If from_tty, set both
3851 SYMFILE_VERBOSE (== from_tty) and SYMFILE_ALWAYS_CONFIRM.
3852 * symfile.c (symbol_file_add_with_addrs): if always_confirm
3853 and from_tty, unconditionally ask a confirmation.
3854
3855 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
3856
3857 * target-descriptions.c (tdesc_architecture_name): Protect against
3858 NULL pointer dereference.
3859 (maint_print_xml_tdesc_cmd): New function.
3860 (_initialize_target_descriptions): Register new 'maint print
3861 xml-tdesc' command and give it the filename completer.
3862 * NEWS: Mention new 'maint print xml-tdesc' command.
3863
3864 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
3865
3866 * target-descriptions.c (class tdesc_compatible_info): New class.
3867 (struct target_desc): Change type of compatible vector.
3868 (tdesc_compatible_p): Update for change in type of
3869 target_desc::compatible.
3870 (tdesc_compatible_info_list): New function.
3871 (tdesc_compatible_info_arch_name): New function.
3872 (tdesc_add_compatible): Update for change in type of
3873 target_desc::compatible.
3874 (print_c_tdesc::visit_pre): Likewise.
3875
3876 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
3877
3878 * target-descriptions.c (print_c_tdesc::print_c_tdesc): Change
3879 whitespace to underscore.
3880 (maint_print_c_tdesc_cmd): Use fake filename for target
3881 descriptions that came from the target.
3882 (_initialize_target_descriptions): Add filename command completion
3883 for 'maint print c-tdesc'.
3884
3885 2020-06-23 Simon Marchi <simon.marchi@efficios.com>
3886
3887 * dwarf2/loc.c (decode_debug_loclists_addresses): Add empty
3888 lines.
3889
3890 2020-06-23 Simon Marchi <simon.marchi@efficios.com>
3891
3892 * dwarf2/loc.c (decode_debug_loc_dwo_addresses): Add empty
3893 lines.
3894 (dwarf2_find_location_expression): Likewise.
3895 (call_site_parameter_matches): Likewise.
3896 (dwarf2_compile_expr_to_ax): Likewise.
3897 (disassemble_dwarf_expression): Likewise.
3898 (loclist_describe_location): Likewise.
3899
3900 2020-06-23 Pedro Alves <palves@redhat.com>
3901
3902 * gdbarch-selftests.c: Don't include inferior.h, gdbthread.h or
3903 progspace-and-thread.h. Include scoped-mock-context.h instead.
3904 (register_to_value_test): Use scoped_mock_context.
3905 * regcache.c: Include "scoped-mock-context.h".
3906 (cooked_read_test): Don't error out if a target is already pushed.
3907 Use scoped_mock_context. Adjust.
3908 * scoped-mock-context.h: New file.
3909
3910 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
3911
3912 * ada-lang.c (ada_language_data): Delete la_is_string_type_p
3913 initializer.
3914 (ada_language::is_string_type_p): New member function.
3915 * c-lang.c (c_language_data): Delete la_is_string_type_p
3916 initializer.
3917 (cplus_language_data): Likewise.
3918 (asm_language_data): Likewise.
3919 (minimal_language_data): Likewise.
3920 * d-lang.c (d_language_data): Likewise.
3921 * f-lang.c (f_is_string_type_p): Delete function, implementation
3922 moved to f_language::is_string_type_p.
3923 (f_language_data): Delete la_is_string_type_p initializer.
3924 (f_language::is_string_type_p): New member function,
3925 implementation from f_is_string_type_p.
3926 * go-lang.c (go_is_string_type_p): Delete function, implementation
3927 moved to go_language::is_string_type_p.
3928 (go_language_data): Delete la_is_string_type_p initializer.
3929 (go_language::is_string_type_p): New member function,
3930 implementation from go_is_string_type_p.
3931 * language.c (language_defn::is_string_type_p): Define new member
3932 function.
3933 (default_is_string_type_p): Make static, add comment copied from
3934 header file.
3935 (unknown_language_data): Delete la_is_string_type_p initializer.
3936 (unknown_language::is_string_type_p): New member function.
3937 (auto_language_data): Delete la_is_string_type_p initializer.
3938 (auto_language::is_string_type_p): New member function.
3939 * language.h (language_data): Delete la_is_string_type_p field.
3940 (language_defn::is_string_type_p): Declare new function.
3941 (default_is_string_type_p): Delete desclaration, move comment to
3942 definition.
3943 * m2-lang.c (m2_is_string_type_p): Delete function, implementation
3944 moved to m2_language::is_string_type_p.
3945 (m2_language_data): Delete la_is_string_type_p initializer.
3946 (m2_language::is_string_type_p): New member function,
3947 implementation from m2_is_string_type_p.
3948 * objc-lang.c (objc_language_data): Delete la_is_string_type_p
3949 initializer.
3950 * opencl-lang.c (opencl_language_data): Likewise.
3951 * p-lang.c (pascal_is_string_type_p): Delete function,
3952 implementation moved to pascal_language::is_string_type_p.
3953 (pascal_language_data): Delete la_is_string_type_p initializer.
3954 (pascal_language::is_string_type_p): New member function,
3955 implementation from pascal_is_string_type_p.
3956 * rust-lang.c (rust_is_string_type_p): Delete function,
3957 implementation moved to rust_language::is_string_type_p.
3958 (rust_language_data): Delete la_is_string_type_p initializer.
3959 (rust_language::is_string_type_p): New member function,
3960 implementation from rust_is_string_type_p.
3961 * valprint.c (val_print_scalar_or_string_type_p): Update call to
3962 is_string_type_p.
3963
3964 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
3965
3966 * ada-lang.c (ada_language_data): Delete la_print_typedef
3967 initializer.
3968 (ada_language::print_typedef): New member function.
3969 * c-lang.c (c_language_data): Delete la_print_typedef initializer.
3970 (cplus_language_data): Likewise.
3971 (asm_language_data): Likewise.
3972 (minimal_language_data): Likewise.
3973 * d-lang.c (d_language_data): Likewise.
3974 * f-lang.c (f_language_data): Likewise.
3975 (f_language::print_typedef): New member function.
3976 * go-lang.c (go_language_data): Delete la_print_typedef
3977 initializer.
3978 * language.c (language_defn::print_typedef): Define member
3979 function.
3980 (unknown_language_data): Delete la_print_typedef initializer.
3981 (unknown_language::print_typedef): New member function.
3982 (auto_language_data): Delete la_print_typedef initializer.
3983 (auto_language::print_typedef): New member function.
3984 * language.h (language_data): Delete la_print_typedef field.
3985 (language_defn::print_typedef): Declare new member function.
3986 (LA_PRINT_TYPEDEF): Update call to print_typedef.
3987 (default_print_typedef): Delete declaration.
3988 * m2-lang.c (m2_language_data): Delete la_print_typedef
3989 initializer.
3990 (m2_language::print_typedef): New member function.
3991 * objc-lang.c (objc_language_data): Delete la_print_typedef
3992 initializer.
3993 * opencl-lang.c (opencl_language_data): Likewise.
3994 * p-lang.c (pascal_language_data): Likewise.
3995 (pascal_language::print_typedef): New member function.
3996 * rust-lang.c (rust_print_typedef): Delete function,
3997 implementation moved to rust_language::print_typedef.
3998 (rust_language): Delete la_print_typedef initializer.
3999 (rust_language::print_typedef): New member function,
4000 implementation from rust_print_typedef.
4001 * typeprint.c (default_print_typedef): Delete.
4002
4003 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
4004
4005 * ada-lang.c (ada_language_data): Delete la_printstr initializer.
4006 (ada_language::printstr): New member function.
4007 * c-lang.c (c_language_data): Delete la_printstr initializer.
4008 (cplus_language_data): Likewise.
4009 (asm_language_data): Likewise.
4010 (minimal_language_data): Likewise.
4011 * d-lang.c (d_language_data): Likewise.
4012 * f-lang.c (f_printstr): Rename to f_language::printstr.
4013 (f_language_data): Delete la_printstr initializer.
4014 (f_language::printstr): New member function, implementation from
4015 f_printstr.
4016 * go-lang.c (go_language_data): Delete la_printstr initializer.
4017 * language.c (language_defn::printstr): Define new member
4018 function.
4019 (unk_lang_printstr): Delete.
4020 (unknown_language_data): Delete la_printstr initializer.
4021 (unknown_language::printstr): New member function.
4022 (auto_language_data): Delete la_printstr initializer.
4023 (auto_language::printstr): New member function.
4024 * language.h (language_data): Delete la_printstr field.
4025 (language_defn::printstr): Declare new member function.
4026 (LA_PRINT_STRING): Update call to printstr.
4027 * m2-lang.c (m2_printstr): Rename to m2_language::printstr.
4028 (m2_language_data): Delete la_printstr initializer.
4029 (m2_language::printstr): New member function, implementation from
4030 m2_printstr.
4031 * objc-lang.c (objc_language_data): Delete la_printstr
4032 initializer.
4033 * opencl-lang.c (opencl_language_data): Likewise.
4034 * p-lang.c (pascal_printstr): Rename to pascal_language::printstr.
4035 (pascal_language_data): Delete la_printstr initializer.
4036 (pascal_language::printstr): New member function, implementation
4037 from pascal_printstr.
4038 * p-lang.h (pascal_printstr): Delete declaration.
4039 * rust-lang.c (rust_printstr): Update header comment.
4040 (rust_language_data): Delete la_printstr initializer.
4041 (rust_language::printstr): New member function.
4042
4043 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
4044
4045 * ada-lang.c (ada_language_data): Delete la_printchar initializer.
4046 (ada_language::printchar): New member function.
4047 * c-lang.c (c_language_data): Delete la_printchar initializer.
4048 (cplus_language_data): Likewise.
4049 (asm_language_data): Likewise.
4050 (minimal_language_data): Likewise.
4051 * d-lang.c (d_language_data): Likewise.
4052 * f-lang.c (f_printchar): Rename to f_language::printchar.
4053 (f_language_data): Delete la_printchar initializer.
4054 (f_language::printchar): New member function, implementation from
4055 f_printchar.
4056 * go-lang.c (go_language_data): Delete la_printchar initializer.
4057 * language.c (unk_lang_printchar): Delete.
4058 (language_defn::printchar): Define new member function.
4059 (unknown_language_data): Delete la_printchar initializer.
4060 (unknown_language::printchar): New member function.
4061 (auto_language_data): Delete la_printchar initializer.
4062 (auto_language::printchar): New member function.
4063 * language.h (language_data): Delete la_printchar field.
4064 (language_defn::printchar): Declare new member function.
4065 (LA_PRINT_CHAR): Update call to printchar.
4066 * m2-lang.c (m2_language_data): Delete la_printchar initializer.
4067 (m2_language::printchar): New member function.
4068 * objc-lang.c (objc_language_data): Delete la_printchar
4069 initializer.
4070 * opencl-lang.c (opencl_language_data): Likewise.
4071 * p-lang.c (pascal_language_data): Delete la_printchar
4072 initializer.
4073 (pascal_language::printchar): New member function.
4074 * rust-lang.c (rust_printchar): Rename to
4075 rust_language::printchar.
4076 (rust_language_data): Delete la_printchar initializer.
4077 (rust_language::printchar): New member function, implementation
4078 from rust_printchar.
4079
4080 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
4081
4082 * ada-lang.c (emit_char): Renamed to ada_language::emitchar.
4083 (ada_language_data): Delete la_emitchar initializer.
4084 (ada_language::emitchar): New member function, implementation from
4085 emit_char.
4086 * c-lang.c (c_language_data): Delete la_emitchar initializer.
4087 (cplus_language_data): Likewise.
4088 (asm_language_data): Likewise.
4089 (minimal_language_data): Likewise.
4090 * d-lang.c (d_language_data): Likewise.
4091 * f-lang.c (f_emit_char): Rename to f_language::emitchar.
4092 (f_language_data): Delete la_emitchar initializer.
4093 (f_language::emitchar): New member function, implementation from
4094 f_emit_char.
4095 * go-lang.c (go_language_data): Delete la_emitchar initializer.
4096 * language.c (unk_lang_emit_char): Delete.
4097 (language_defn::emitchar): New member function definition.
4098 (unknown_language_data): Delete la_emitchar initializer.
4099 (unknown_language::emitchar): New member function.
4100 (auto_language_data): Delete la_emitchar initializer.
4101 (auto_language::emitchar): New member function.
4102 * language.h (language_data): Delete la_emitchar field.
4103 (language_defn::emitchar): New member field declaration.
4104 (LA_EMIT_CHAR): Update call to emitchar.
4105 * m2-lang.c (m2_emit_char): Rename to m2_language::emitchar.
4106 (m2_language_data): Delete la_emitchar initializer.
4107 (m2_language::emitchar): New member function, implementation from
4108 m2_emit_char.
4109 * objc-lang.c (objc_language_data): Delete la_emitchar
4110 initializer.
4111 * opencl-lang.c (opencl_language_data): Likewise.
4112 * p-lang.c (pascal_emit_char): Rename to pascal_language::emitchar.
4113 (pascal_language_data): Delete la_emitchar initializer.
4114 (pascal_language::emitchar): New member function, implementation
4115 from pascal_emit_char.
4116 * rust-lang.c (rust_emitchar): Rename to rust_language::emitchar.
4117 (rust_language_data): Delete la_emitchar initializer.
4118 (rust_language::emitchar): New member function, implementation
4119 from rust_emitchar.
4120
4121 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
4122
4123 * ada-lang.c (resolve): Rename to ada_language::post_parser.
4124 (ada_language_data): Delete la_post_parser initializer.
4125 (ada_language::post_parser): New member function.
4126 * c-lang.c (c_language_data): Delete la_post_parser initializer.
4127 (cplus_language_data): Likewise.
4128 (asm_language_data): Likewise.
4129 (minimal_language_data): Likewise.
4130 * d-lang.c (d_language_data): Likewise.
4131 * f-lang.c (f_language_data): Likewise.
4132 * go-lang.c (go_language_data): Likewise.
4133 * language.c (unknown_language_data): Likewise.
4134 (auto_language_data): Likewise.
4135 * language.h (language_data): Delete la_post_parser field.
4136 (language_defn::post_parser): New member function.
4137 * m2-lang.c (m2_language_data): Delete la_post_parser initializer.
4138 * objc-lang.c (objc_language_data): Likewise.
4139 * opencl-lang.c (opencl_language_data): Likewise.
4140 * p-lang.c (pascal_language_data): Likewise.
4141 * parse.c (parse_exp_in_context): Update call to post_parser.
4142 (null_post_parser): Delete definition.
4143 * parser-defs.h (null_post_parser): Delete declaration.
4144 * rust-lang.c (rust_language_data): Delete la_post_parser
4145 initializer.
4146
4147 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
4148
4149 * ada-lang.c (parse): Rename to ada_language::parser.
4150 (ada_language_data): Delete la_parser initializer.
4151 (ada_language::parser): New member function, implementation from
4152 parse.
4153 * c-lang.c (c_language_data): Delete la_parser initializer.
4154 (cplus_language_data): Likewise.
4155 (asm_language_data): Likewise.
4156 (minimal_language_data): Likewise.
4157 * d-lang.c (d_language_data): Likewise.
4158 (d_language::parser): New member function.
4159 * f-lang.c (f_language_data): Delete la_parser initializer.
4160 (f_language::parser): New member function.
4161 * go-lang.c (go_language_data): Delete la_parser initializer.
4162 (go_language::parser): New member function.
4163 * language.c (unk_lang_parser): Delete.
4164 (language_defn::parser): Define new member function.
4165 (unknown_language_data): Delete la_parser initializer.
4166 (unknown_language::parser): New member function.
4167 (auto_language_data): Delete la_parser initializer.
4168 (auto_language::parser): New member function.
4169 * language.h (language_data): Delete la_parser field.
4170 (language_defn::parser): Declare new member function.
4171 * m2-lang.c (m2_language_data): Delete la_parser initializer.
4172 (m2_language::parser): New member function.
4173 * objc-lang.c (objc_language_data): Delete la_parser initializer.
4174 * opencl-lang.c (opencl_language_data): Likewise.
4175 * p-lang.c (pascal_language_data): Likewise.
4176 (pascal_language::parser): New member function.
4177 * parse.c (parse_exp_in_context): Update call to parser.
4178 * rust-lang.c (rust_language_data): Delete la_parser initializer.
4179 (rust_language::parser): New member function.
4180
4181 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
4182
4183 * top.c (print_gdb_configuration): Print --with-python-libdir
4184 configuration value.
4185
4186 2020-06-22 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4187
4188 * NEWS: Mention change to the alias command.
4189
4190 2020-06-22 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4191
4192 * cli/cli-cmds.c (lookup_cmd_for_default_args)
4193 (alias_command_completer)
4194 (make_alias_options_def_group): New functions.
4195 (alias_opts, alias_option_defs): New struct and array.
4196 (alias_usage_error): Update usage.
4197 (alias_command): Handles optional DEFAULT-ARGS... arguments.
4198 Use option framework.
4199 (_initialize_cli_cmds): Update alias command help.
4200 Update aliases command help.
4201 (show_user):
4202 Add NULL for new default_args lookup_cmd argument.
4203 (valid_command_p): Rename to validate_aliased_command.
4204 Add NULL for new default_args lookup_cmd argument. Verify that the
4205 aliased_command has no default args.
4206 * cli/cli-decode.c (help_cmd): Show aliases definitions.
4207 (lookup_cmd_1, lookup_cmd): New argument default_args.
4208 (add_alias_cmd):
4209 Add NULL for new default_args lookup_cmd argument.
4210 (print_help_for_command): Show default args under the layout
4211 alias some_alias = some_aliased_cmd some_alias_default_arg.
4212 * cli/cli-decode.h (struct cmd_list_element): New member default_args.
4213 xfree default_args in destructor.
4214 * cli/cli-script.c (process_next_line, do_define_command):
4215 Add NULL for new default_args lookup_cmd argument.
4216 * command.h: Declare new default_args argument in lookup_cmd
4217 and lookup_cmd_1.
4218 * completer.c (complete_line_internal_1):
4219 Add NULL for new default_args lookup_cmd or lookup_cmd_1 argument.
4220 * guile/scm-cmd.c (gdbscm_parse_command_name): Likewise.
4221 * guile/scm-param.c (add_setshow_generic, pascm_parameter_defined_p):
4222 Likewise.
4223 * infcmd.c (_initialize_infcmd): Likewise.
4224 * python/py-auto-load.c (gdbpy_initialize_auto_load): Likewise.
4225 * python/py-cmd.c (gdbpy_parse_command_name): Likewise.
4226 * python/py-param.c (add_setshow_generic): Likewise.
4227 * remote.c (_initialize_remote): Likewise.
4228 * top.c (execute_command): Prepend default_args if command has some.
4229 (set_verbose):
4230 Add NULL for new default_args lookup_cmd or lookup_cmd_1 argument.
4231 * tracepoint.c (validate_actionline, encode_actions_1):
4232 Add NULL for new default_args lookup_cmd or lookup_cmd_1 argument.
4233
4234 2020-06-22 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4235
4236 * jit.c (jit_read_descriptor): Use bool as the return type.
4237 (jit_breakpoint_re_set_internal): Use bool as the return type.
4238 Invert the return value logic; return true if the jit breakpoint
4239 has been successfully initialized.
4240 (jit_inferior_init): Update the call to
4241 jit_breakpoint_re_set_internal.
4242
4243 2020-06-22 Pedro Alves <palves@redhat.com>
4244
4245 PR gdb/25939
4246 * procfs.c (procfs_target::wait): Don't reference inferior_ptid.
4247 Use the current inferior instead. Don't return
4248 TARGET_WAITKIND_SPURIOUS/inferior_ptid -- instead continue and
4249 wait again.
4250 * sol-thread.c (sol_thread_target::wait): Don't reference
4251 inferior_ptid.
4252 (ps_lgetregs, ps_lsetregs, ps_lgetfpregs, ps_lsetfpregs)
4253 (sol_update_thread_list_callback): Use the current inferior's pid
4254 instead of inferior_ptid.
4255
4256 2020-06-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
4257
4258 * procfs.c: Cleanup many comments.
4259
4260 (READ_WATCHFLAG, WRITE_WATCHFLAG, EXEC_WATCHFLAG)
4261 (AFTER_WATCHFLAG): Replace by value.
4262
4263 (MAIN_PROC_NAME_FORMAT): Inline ...
4264 (create_procinfo): ... here.
4265
4266 (procfs_debug_inferior): Remove SYS_exec handling.
4267 (syscall_is_exec): Likewise.
4268 (procfs_set_exec_trap): Likewise.
4269
4270 (syscall_is_lwp_exit): Inline in callers.
4271 (syscall_is_exit): Likewise.
4272 (syscall_is_exec): Likewise.
4273 (syscall_is_lwp_create): Likewise.
4274
4275 (invalidate_cache): Remove #if 0 code.
4276
4277 (make_signal_thread_runnable): Remove.
4278 (procfs_target::resume): Remove #if 0 code.
4279
4280 2020-06-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
4281
4282 PR gdb/25939
4283 * procfs.c (procfs_target::procfs_init_inferior): Move push_target
4284 call ...
4285 (procfs_target::create_inferior): ... here.
4286
4287 2020-06-21 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4288
4289 * exec.c (validate_exec_file): Ensure the build-id is up to
4290 date by calling reopen_exec_file (that checks file timestamp
4291 to decide to re-read the file).
4292
4293 2020-06-18 Pedro Alves <palves@redhat.com>
4294
4295 PR gdb/25412
4296 * gdbthread.h (delete_thread, delete_thread_silent)
4297 (find_thread_ptid): Update comments.
4298 * thread.c (current_thread_): New global.
4299 (is_current_thread): Move higher, and reimplement.
4300 (inferior_thread): Reimplement.
4301 (set_thread_exited): Use bool. Add assertions.
4302 (add_thread_silent): Simplify thread-reuse handling by always
4303 calling delete_thread.
4304 (delete_thread): Remove intro comment.
4305 (find_thread_ptid): Skip exited threads.
4306 (switch_to_thread_no_regs): Write to current_thread_.
4307 (switch_to_no_thread): Check CURRENT_THREAD_ instead of
4308 INFERIOR_PTID. Clear current_thread_.
4309
4310 2020-06-18 Pedro Alves <palves@redhat.com>
4311
4312 * aix-thread.c (pd_update): Use switch_to_thread.
4313
4314 2020-06-18 Pedro Alves <palves@redhat.com>
4315
4316 * ravenscar-thread.c (ravenscar_thread_target): Update.
4317 (ravenscar_thread_target::update_inferior_ptid): Rename to ...
4318 (ravenscar_thread_target::add_active_thread): ... this. Don't
4319 set m_base_ptid here. Update to avoid referencing inferior_ptid.
4320 (ravenscar_thread_target::wait): Don't write to inferior_ptid.
4321
4322 2020-06-18 Pedro Alves <palves@redhat.com>
4323
4324 * nat/windows-nat.c (current_windows_thread): Remove.
4325 * nat/windows-nat.h (current_windows_thread): Remove.
4326 * windows-nat.c (windows_nat_target::stopped_by_sw_breakpoint):
4327 Adjust.
4328 (display_selectors): Adjust to fetch the current
4329 windows_thread_info based on inferior_ptid.
4330 (fake_create_process): No longer write to current_windows_thread.
4331 (windows_nat_target::get_windows_debug_event):
4332 Don't set inferior_ptid or current_windows_thread.
4333 (windows_nat_target::wait): Adjust to not rely on
4334 current_windows_thread.
4335 (do_initial_windows_stuff): Now a method of windows_nat_target.
4336 Switch to the last_ptid thread.
4337 (windows_nat_target::attach): Adjust.
4338 (windows_nat_target::detach): Use switch_to_no_thread instead of
4339 writing to inferior_ptid directly.
4340 (windows_nat_target::create_inferior): Adjust.
4341
4342 2020-06-18 Pedro Alves <palves@redhat.com>
4343
4344 * windows-nat.c (do_initial_windows_stuff): No longer set inferior_ptid.
4345
4346 2020-06-18 Pedro Alves <palves@redhat.com>
4347
4348 * go32-nat.c (go32_nat_target::create_inferior): Switch to thread
4349 after creating it, instead of writing to inferior_ptid. Don't
4350 write to inferior_ptid.
4351
4352 2020-06-18 Pedro Alves <palves@redhat.com>
4353
4354 * fork-child.c (postfork_hook): Don't write to inferior_ptid.
4355
4356 2020-06-18 Pedro Alves <palves@redhat.com>
4357
4358 * bsd-kvm.c (bsd_kvm_target_open): Switch to thread after adding
4359 it, instead of writing to inferior_ptid.
4360
4361 2020-06-18 Pedro Alves <palves@redhat.com>
4362
4363 * btrace.c (btrace_fetch): Use switch_to_thread instead of writing
4364 to inferior_ptid.
4365
4366 2020-06-18 Pedro Alves <palves@redhat.com>
4367
4368 * bsd-kvm.c (bsd_kvm_target::close): Use switch_to_no_thread
4369 instead of writing to inferior_ptid directly.
4370
4371 2020-06-18 Pedro Alves <palves@redhat.com>
4372
4373 * corelow.c (core_target::close): Use switch_to_no_thread instead
4374 of writing to inferior_ptid directly.
4375 (add_to_thread_list, core_target_open): Use switch_to_thread
4376 instead of writing to inferior_ptid directly.
4377
4378 2020-06-18 Pedro Alves <palves@redhat.com>
4379
4380 * darwin-nat.c (darwin_nat_target::decode_message): Don't write to
4381 inferior_ptid.
4382 (darwin_nat_target::stop_inferior, darwin_nat_target::kill): Avoid
4383 inferior_ptid.
4384 (darwin_attach_pid): Use switch_to_no_thread instead of writing to
4385 inferior_ptid directly.
4386 (darwin_nat_target::init_thread_list): Switch to thread, instead
4387 of writing to inferior_ptid.
4388 (darwin_nat_target::attach): Don't write to inferior_ptid.
4389 (darwin_nat_target::get_ada_task_ptid): Avoid inferior_ptid.
4390
4391 2020-06-18 Pedro Alves <palves@redhat.com>
4392
4393 * gnu-nat.c (gnu_nat_target::create_inferior): Switch to the added
4394 thread.
4395 (gnu_nat_target::attach): Don't write to inferior_ptid directly.
4396 Instead use switch_to_thread.
4397 (gnu_nat_target::detach): Use switch_to_no_thread
4398 instead of writing to inferior_ptid directly. Used passed-in
4399 inferior instead of looking up the inferior by pid.
4400
4401 2020-06-18 Pedro Alves <palves@redhat.com>
4402
4403 * go32-nat.c (go32_nat_target::create_inferior): Don't write to
4404 inferior_ptid.
4405
4406 2020-06-18 Pedro Alves <palves@redhat.com>
4407
4408 * nto-procfs.c (nto_procfs_target::update_thread_list): Avoid
4409 inferior_ptid.
4410 (nto_procfs_target::attach): Avoid inferior_ptid. Switch to
4411 thread.
4412 (nto_procfs_target::detach): Avoid referencing
4413 inferior_ptid. Use switch_to_no_thread instead of writing to
4414 inferior_ptid directly.
4415 (nto_procfs_target::mourn_inferior): Use switch_to_no_thread
4416 instead of writing to inferior_ptid directly.
4417 (nto_procfs_target::create_inferior): Avoid inferior_ptid. Switch
4418 to thread.
4419
4420 2020-06-18 Pedro Alves <palves@redhat.com>
4421
4422 * remote-sim.c (gdbsim_target::create_inferior): Switch to thread
4423 after creating it, instead of writing to inferior_ptid.
4424 (gdbsim_target_open): Use switch_to_no_thread instead of writing
4425 to inferior_ptid directly.
4426 (gdbsim_target::wait): Don't write to inferior_ptid.
4427
4428 2020-06-18 Pedro Alves <palves@redhat.com>
4429
4430 * remote.c (remote_target::remote_notice_new_inferior): Use
4431 switch_to_thread instead of writing to inferior_ptid directly.
4432 (remote_target::add_current_inferior_and_thread): Use
4433 switch_to_no_thread instead of writing to inferior_ptid directly.
4434 (extended_remote_target::attach): Use switch_to_inferior_no_thread
4435 and switch_to_thread instead of using set_current_inferior or
4436 writing to inferior_ptid directly.
4437
4438 2020-06-18 Pedro Alves <palves@redhat.com>
4439
4440 * tracectf.c (ctf_target_open): Switch to added thread instead of
4441 writing to inferior_ptid directly.
4442 (ctf_target::close): Use switch_to_no_thread instead of writing to
4443 inferior_ptid directly.
4444
4445 2020-06-18 Pedro Alves <palves@redhat.com>
4446
4447 * tracefile-tfile.c (tfile_target_open): Don't write to
4448 inferior_ptid directly, instead switch to added thread.
4449 (tfile_target::close): Use switch_to_no_thread instead of writing
4450 to inferior_ptid directly.
4451
4452 2020-06-18 Pedro Alves <palves@redhat.com>
4453
4454 * procfs.c (procfs_target::attach): Don't write to inferior_ptid.
4455 (procfs_target::detach): Use switch_to_no_thread
4456 instead of writing to inferior_ptid directly.
4457 (do_attach): Change return type to void. Switch to the added
4458 thread.
4459 (procfs_target::create_inferior): Switch to the added thread.
4460 (procfs_do_thread_registers): Don't write to inferior_ptid.
4461
4462 2020-06-18 Pedro Alves <palves@redhat.com>
4463
4464 * infrun.c (generic_mourn_inferior): Use switch_to_thread instead
4465 of writing to inferior_ptid.
4466 (scoped_restore_exited_inferior): Delete.
4467 (handle_vfork_child_exec_or_exit): Simplify using
4468 scoped_restore_current_pspace_and_thread. Use switch_to_thread
4469 instead of writing to inferior_ptid.
4470 (THREAD_STOPPED_BY): Delete.
4471 (thread_stopped_by_watchpoint, thread_stopped_by_sw_breakpoint)
4472 (thread_stopped_by_hw_breakpoint): Delete.
4473 (save_waitstatus): Use
4474 scoped_restore_current_thread+switch_to_thread, and call
4475 target_stopped_by_watchpoint instead of
4476 thread_stopped_by_watchpoint, target_stopped_by_sw_breakpoint
4477 instead of thread_stopped_by_sw_breakpoint, and
4478 target_stopped_by_hw_breakpoint instead of
4479 thread_stopped_by_hw_breakpoint.
4480 (handle_inferior_event)
4481 <TARGET_WAITKIND_EXITED/TARGET_WAITKIND_SIGNALLED>: Don't write to
4482 inferior_ptid directly, nor
4483 set_current_inferior/set_current_program_space. Use
4484 switch_to_thread / switch_to_inferior_no_thread instead.
4485
4486 2020-06-18 Pedro Alves <palves@redhat.com>
4487
4488 * target.c (generic_mourn_inferior): Use switch_to_no_thread
4489 instead of writing to inferior_ptid.
4490
4491 2020-06-18 Pedro Alves <palves@redhat.com>
4492
4493 * inf-ptrace.c (inf_ptrace_target::create_inferior): Switch to the
4494 added thread.
4495 (inf_ptrace_target::attach): Don't write to inferior_ptid. Switch
4496 to the added thread.
4497 (inf_ptrace_target::detach_success): Use switch_to_no_thread
4498 instead of writing to inferior_ptid.
4499
4500 2020-06-18 Pedro Alves <palves@redhat.com>
4501
4502 * gdbarch-selftests.c: Include "progspace-and-thread.h".
4503 (register_to_value_test): Mock a program_space too. Heap-allocate
4504 the address space. Don't write to inferior_ptid. Use
4505 switch_to_thread instead.
4506
4507 2020-06-18 Pedro Alves <palves@redhat.com>
4508
4509 * linux-tdep.c (find_signalled_thread(thread_info *,void *)):
4510 Delete.
4511 (find_signalled_thread()): New, factored out from
4512 linux_make_corefile_notes and adjusted to handle exited threads.
4513 (linux_make_corefile_notes): Adjust to use the new
4514 find_signalled_thread.
4515
4516 2020-06-18 Pedro Alves <palves@redhat.com>
4517
4518 * linux-tdep.c (btrace_fetch): Save/restore current thread instead
4519 of saving/restoring inferior_ptid.
4520
4521 2020-06-17 Tom Tromey <tom@tromey.com>
4522
4523 * tui/tui-win.h (tui_scroll_forward, tui_scroll_backward)
4524 (tui_scroll_left, tui_scroll_right, struct tui_win_info): Don't
4525 declare.
4526 * tui/tui-data.h (MIN_CMD_WIN_HEIGHT): Remove.
4527
4528 2020-06-15 Simon Marchi <simon.marchi@efficios.com>
4529
4530 * dwarf2/read.c (dwarf2_initialize_objfile): Check for presence
4531 of partial symtabs.
4532
4533 2020-06-17 Simon Marchi <simon.marchi@efficios.com>
4534
4535 * regformats/reg-arm.dat: Remove.
4536 * regformats/reg-bfin.dat: Remove.
4537 * regformats/reg-cris.dat: Remove.
4538 * regformats/reg-crisv32.dat: Remove.
4539 * regformats/reg-m32r.dat: Remove.
4540 * regformats/reg-tilegx.dat: Remove.
4541 * regformats/reg-tilegx32.dat: Remove.
4542
4543 2020-06-17 Simon Marchi <simon.marchi@efficios.com>
4544
4545 * features/Makefile (WHICH): Remove arm files.
4546 * regformats/arm/arm-with-iwmmxt.dat: Remove.
4547 * regformats/arm/arm-with-neon.dat: Remove.
4548 * regformats/arm/arm-with-vfpv2.dat: Remove.
4549 * regformats/arm/arm-with-vfpv3.dat: Remove.
4550
4551 2020-06-17 Simon Marchi <simon.marchi@efficios.com>
4552
4553 * features/Makefile (XMLTOC): Remove rx.xml.
4554
4555 2020-06-17 Pedro Alves <palves@redhat.com>
4556
4557 * gdbthread.h (thread_control_state) <trap_expected> Update
4558 comments.
4559
4560 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
4561
4562 * ada-lang.c (ada_lookup_symbol_nonlocal): Rename to
4563 ada_language::lookup_symbol_nonlocal.
4564 (ada_language_data): Delete la_lookup_symbol_nonlocal initializer.
4565 (ada_language::lookup_symbol_nonlocal): New member function,
4566 implementation from ada_lookup_symbol_nonlocal.
4567 * c-lang.c (c_language_data): Delete la_lookup_symbol_nonlocal
4568 initializer.
4569 (cplus_language_data): Delete la_lookup_symbol_nonlocal
4570 initializer.
4571 (cplus_language::lookup_symbol_nonlocal): New member function.
4572 (asm_language_data): Delete la_lookup_symbol_nonlocal initializer.
4573 (minimal_language_data) Likewise.
4574 * cp-namespace.c (cp_lookup_nested_symbol): Update comment.
4575 * d-lang.c (d_language_data): Delete la_lookup_symbol_nonlocal
4576 initializer.
4577 (d_language::lookup_symbol_nonlocal): New member function.
4578 * f-lang.c (f_language_data): Delete la_lookup_symbol_nonlocal
4579 initializer.
4580 (f_language::lookup_symbol_nonlocal): New member function.
4581 * go-lang.c (go_language_data): Delete la_lookup_symbol_nonlocal
4582 initializer.
4583 * language.c (unknown_language_data): Likewise.
4584 (auto_language_data): Likewise.
4585 * language.h (language_data): Delete la_lookup_symbol_nonlocal
4586 field.
4587 (language_defn::lookup_symbol_nonlocal): New member function.
4588 * m2-lang.c (m2_language_data): Delete la_lookup_symbol_nonlocal
4589 initializer.
4590 * objc-lang.c (objc_language_data): Likewise.
4591 * opencl-lang.c (opencl_language_data): Likewise.
4592 * p-lang.c (pascal_language_data): Likewise.
4593 * rust-lang.c (rust_lookup_symbol_nonlocal): Rename to
4594 rust_language::lookup_symbol_nonlocal.
4595 (rust_language_data): Delete la_lookup_symbol_nonlocal
4596 initializer.
4597 (rust_language::lookup_symbol_nonlocal): New member function,
4598 implementation from rust_lookup_symbol_nonlocal.
4599 * symtab.c (lookup_symbol_aux): Update call to
4600 lookup_symbol_nonlocal.
4601 (basic_lookup_symbol_nonlocal): Rename to...
4602 (language_defn::lookup_symbol_nonlocal): ...this, and update
4603 header comment. Remove language_defn parameter, and replace with
4604 uses of `this'.
4605 * symtab.h (basic_lookup_symbol_nonlocal): Delete declaration.
4606
4607 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
4608
4609 * ada-lang.c (ada_language_data): Delete la_value_print_inner
4610 initializer.
4611 (ada_language::value_print_inner): New member function.
4612 * c-lang.c (c_language_data): Delete la_value_print_inner
4613 initializer.
4614 (cplus_language_data): Likewise.
4615 (asm_language_data): Likewise.
4616 (minimal_language_data): Likewise.
4617 * d-lang.c (d_language_data): Likewise.
4618 (d_language::value_print_inner): New member function.
4619 * f-lang.c (f_language_data): Delete la_value_print_inner
4620 initializer.
4621 (f_language::value_print_inner): New member function.
4622 * f-lang.h (f_value_print_innner): Rename to...
4623 (f_value_print_inner): ...this (note spelling of 'inner').
4624 * f-valprint.c (f_value_print_innner): Rename to...
4625 (f_value_print_inner): ...this (note spelling of 'inner').
4626 * go-lang.c (go_language_data): Delete la_value_print_inner
4627 initializer.
4628 (go_language::value_print_inner): New member function.
4629 * language.c (language_defn::value_print_inner): Define new member
4630 function.
4631 (unk_lang_value_print_inner): Delete.
4632 (unknown_language_data): Delete la_value_print_inner initializer.
4633 (unknown_language::value_print_inner): New member function.
4634 (auto_language_data): Delete la_value_print_inner initializer.
4635 (auto_language::value_print_inner): New member function.
4636 * language.h (language_data): Delete la_value_print_inner field.
4637 (language_defn::value_print_inner): Delcare new member function.
4638 * m2-lang.c (m2_language_data): Delete la_value_print_inner
4639 initializer.
4640 (m2_language::value_print_inner): New member function.
4641 * objc-lang.c (objc_language_data): Delete la_value_print_inner
4642 initializer.
4643 * opencl-lang.c (opencl_language_data): Likewise.
4644 * p-lang.c (pascal_language_data): Likewise.
4645 (pascal_language::value_print_inner): New member function.
4646 * rust-lang.c (rust_language_data): Delete la_value_print_inner
4647 initializer.
4648 (rust_language::value_print_inner): New member function.
4649 * valprint.c (do_val_print): Update call to value_print_inner.
4650
4651 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
4652
4653 * ada-lang.c (ada_language_data): Delete la_value_print
4654 initializer.
4655 (ada_language::value_print): New member function.
4656 * c-lang.c (c_language_data): Delete la_value_print initializer.
4657 (cplus_language_data): Likewise.
4658 (asm_language_data): Likewise.
4659 (minimal_language_data): Likewise.
4660 * d-lang.c (d_language_data): Likewise.
4661 * f-lang.c (f_language_data): Likewise.
4662 * go-lang.c (go_language_data): Likewise.
4663 * language.c (unk_lang_value_print): Delete.
4664 (language_defn::value_print): Define new member function.
4665 (unknown_language_data): Delete la_value_print initializer.
4666 (unknown_language::value_print): New member function.
4667 (auto_language_data): Delete la_value_print initializer.
4668 (auto_language::value_print): New member function.
4669 * language.h (language_data): Delete la_value_print field.
4670 (language_defn::value_print): Declare new member function.
4671 (LA_VALUE_PRINT): Update call to value_print.
4672 * m2-lang.c (m2_language_data): Delete la_value_print initializer.
4673 * objc-lang.c (objc_language_data): Likewise.
4674 * opencl-lang.c (opencl_language_data): Likewise.
4675 * p-lang.c (pascal_language_data): Likewise.
4676 (pascal_language::value_print): New member function.
4677 * rust-lang.c (rust_language_data): Delete la_value_print
4678 initializer.
4679
4680 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
4681
4682 * ada-lang.c (ada_watch_location_expression): Rename to
4683 ada_language::watch_location_expression.
4684 (ada_language_data): Delete la_watch_location_expression
4685 initializer.
4686 (ada_language::watch_location_expression): New member function,
4687 implementation from ada_watch_location_expression.
4688 * breakpoint.c (watch_command_1): Update call to
4689 watch_location_expression.
4690 * c-lang.c (c_watch_location_expression): Rename to
4691 language_defn::watch_location_expression.
4692 (c_language_data): Delete la_watch_location_expression
4693 initializer.
4694 (cplus_language_data): Likewise.
4695 (asm_language_data): Likewise.
4696 (minimal_language_data): Likewise.
4697 * c-lang.h (c_watch_location_expression): Delete declaration.
4698 * d-lang.c (d_language_data): Delete la_watch_location_expression
4699 initializer.
4700 * f-lang.c (f_language_data): Likewise.
4701 * go-lang.c (go_language_data): Likewise.
4702 * language.c (language_defn::watch_location_expression): Member
4703 function implementation from c_watch_location_expression.
4704 (unknown_language_data): Delete la_watch_location_expression
4705 initializer.
4706 (auto_language_data): Likewise.
4707 * language.h (language_data): Delete la_watch_location_expression
4708 field.
4709 (language_defn::watch_location_expression): Declare new member
4710 function.
4711 * m2-lang.c (m2_language_data): Delete
4712 la_watch_location_expression initializer.
4713 * objc-lang.c (objc_language_data): Likewise.
4714 * opencl-lang.c (opencl_language_data): Likewise.
4715 * p-lang.c (pascal_language_data): Likewise.
4716 * rust-lang.c (rust_watch_location_expression): Rename to
4717 rust_language::watch_location_expression.
4718 (rust_language_data): Delete la_watch_location_expression
4719 initializer.
4720 (rust_language::watch_location_expression): New member function,
4721 implementation from rust_watch_location_expression.
4722
4723 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
4724
4725 * ada-lang.c (ada_collect_symbol_completion_matches): Rename to
4726 ada_language::collect_symbol_completion_matches.
4727 (ada_language_data): Delete la_collect_symbol_completion_matches
4728 initializer.
4729 (ada_language::collect_symbol_completion_matches): New member
4730 function, implementation from
4731 ada_collect_symbol_completion_matches.
4732 * c-lang.c (c_language_data): Delete
4733 la_collect_symbol_completion_matches initializer.
4734 (cplus_language_data): Likewise.
4735 (asm_language_data): Likewise.
4736 (minimal_language_data): Likewise.
4737 * d-lang.c (d_language_data): Likewise.
4738 * f-lang.c (f_collect_symbol_completion_matches): Rename to
4739 f_language::collect_symbol_completion_matches.
4740 (f_language_data): Delete la_collect_symbol_completion_matches
4741 initializer.
4742 (f_language::collect_symbol_completion_matches) New member
4743 function, implementation from f_collect_symbol_completion_matches.
4744 * go-lang.c (go_language_data): Delete
4745 la_collect_symbol_completion_matches initializer.
4746 * language.c (unknown_language_data): Likewise.
4747 (auto_language_data): Likewise.
4748 * language.h (language_data): Delete
4749 la_collect_symbol_completion_matches field.
4750 (language_defn::collect_symbol_completion_matches): New member
4751 function.
4752 * m2-lang.c (m2_language_data): Delete
4753 la_collect_symbol_completion_matches initializer.
4754 * objc-lang.c (objc_language_data): Likewise.
4755 * opencl-lang.c (opencl_language_data): Likewise.
4756 * p-lang.c (pascal_language_data): Likewise.
4757 * rust-lang.c (rust_language_data): Likewise.
4758 * symtab.c (default_collect_symbol_completion_matches): Delete.
4759 (collect_symbol_completion_matches): Update call to
4760 collect_symbol_completion_matches.
4761 (collect_symbol_completion_matches_type): Likewise.
4762 * symtab.h (default_collect_symbol_completion_matches): Delete
4763 declaration.
4764
4765 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
4766
4767 * ada-lang.c (ada_get_gdb_completer_word_break_characters): Delete.
4768 (ada_language_data): Delete la_word_break_characters initializer.
4769 (ada_language::word_break_characters): New member function.
4770 * c-lang.c (c_language_data): Delete la_word_break_characters
4771 initializer.
4772 (cplus_language_data): Likewise.
4773 (asm_language_data): Likewise.
4774 (minimal_language_data): Likewise.
4775 * completer.c: Update global comment.
4776 (advance_to_expression_complete_word_point): Update call to
4777 word_break_characters.
4778 (complete_files_symbols): Likewise.
4779 (complete_line_internal_1): Likewise.
4780 (default_completer_handle_brkchars): Likewise.
4781 (skip_quoted_chars): Likewise.
4782 * d-lang.c (d_language_data): Delete la_word_break_characters
4783 initializer.
4784 * f-lang.c (f_word_break_characters): Delete.
4785 (f_language_data): Delete la_word_break_characters initializer.
4786 (f_language::word_break_characters): New member function.
4787 * go-lang.c (go_language_data): Delete la_word_break_characters
4788 initializer.
4789 * language.c (unknown_language_data): Likewise.
4790 (auto_language_data): Likewise.
4791 * language.h (default_word_break_characters): Move declaration to
4792 earlier in the file.
4793 (language_data): Delete la_word_break_characters field.
4794 (language_defn::word_break_characters): New member function.
4795 * m2-lang.c (m2_language_data): Delete la_word_break_characters
4796 initializer.
4797 * objc-lang.c (objc_language_data): Likewise.
4798 * opencl-lang.c (opencl_language_data): Likewise.
4799 * p-lang.c (pascal_language_data): Likewise.
4800 * rust-lang.c (rust_language_data): Likewise.
4801
4802 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
4803
4804 * ada-lang.c (ada_get_symbol_name_matcher): Update header comment.
4805 (ada_language_data): Delete la_get_symbol_name_matcher
4806 initializer.
4807 (language_defn::get_symbol_name_matcher_inner): New member
4808 function.
4809 * c-lang.c (c_language_data): Delete la_get_symbol_name_matcher
4810 initializer.
4811 (cplus_language_data): Likewise.
4812 (cplus_language::get_symbol_name_matcher_inner): New member
4813 function.
4814 (asm_language_data): Delete la_get_symbol_name_matcher initializer.
4815 (minimal_language_data): Likewise.
4816 * cp-support.h (cp_get_symbol_name_matcher): Update header comment.
4817 * d-lang.c (d_language_data): Delete la_get_symbol_name_matcher
4818 initializer.
4819 * dictionary.c (iter_match_first_hashed): Update call to
4820 get_symbol_name_matcher.
4821 (iter_match_next_hashed): Likewise.
4822 (iter_match_next_linear): Likewise.
4823 * dwarf2/read.c (dw2_expand_symtabs_matching_symbol): Likewise.
4824 * f-lang.c (f_language_data): Delete la_get_symbol_name_matcher
4825 initializer.
4826 (f_language::get_symbol_name_matcher_inner): New member function.
4827 * go-lang.c (go_language_data): Delete la_get_symbol_name_matcher
4828 initializer.
4829 * language.c (default_symbol_name_matcher): Update header comment,
4830 make static.
4831 (language_defn::get_symbol_name_matcher): New definition.
4832 (language_defn::get_symbol_name_matcher_inner): Likewise.
4833 (get_symbol_name_matcher): Delete.
4834 (unknown_language_data): Delete la_get_symbol_name_matcher
4835 initializer.
4836 (auto_language_data): Likewise.
4837 * language.h (language_data): Delete la_get_symbol_name_matcher
4838 field.
4839 (language_defn::get_symbol_name_matcher): New member function.
4840 (language_defn::get_symbol_name_matcher_inner): Likewise.
4841 (default_symbol_name_matcher): Delete declaration.
4842 * linespec.c (find_methods): Update call to
4843 get_symbol_name_matcher.
4844 * m2-lang.c (m2_language_data): Delete la_get_symbol_name_matcher
4845 initializer.
4846 * minsyms.c (lookup_minimal_symbol): Update call to
4847 get_symbol_name_matcher.
4848 (iterate_over_minimal_symbols): Likewise.
4849 * objc-lang.c (objc_language_data): Delete
4850 la_get_symbol_name_matcher initializer.
4851 * opencl-lang.c (opencl_language_data): Likewise.
4852 * p-lang.c (pascal_language_data): Likewise.
4853 * psymtab.c (psymbol_name_matches): Update call to
4854 get_symbol_name_matcher.
4855 * rust-lang.c (rust_language_data): Delete
4856 la_get_symbol_name_matcher initializer.
4857 * symtab.c (symbol_matches_search_name): Update call to
4858 get_symbol_name_matcher.
4859 (compare_symbol_name): Likewise.
4860
4861 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
4862
4863 * ada-lang.c (ada_language_data): Delete la_compute_program
4864 initializer.
4865 * c-lang.c (c_language_data): Likewise.
4866 (c_language::compute_program): New member function.
4867 (cplus_language_data): Delete la_compute_program initializer.
4868 (cplus_language::compute_program): New member function.
4869 (asm_language_data): Delete la_compute_program initializer.
4870 (minimal_language_data): Likewise.
4871 * c-lang.h (c_compute_program): Update comment.
4872 (cplus_compute_program): Likewise.
4873 * compile/compile-c-support.c (c_compute_program): Likewise.
4874 (cplus_compute_program): Likewise.
4875 * compile/compile.c (compile_to_object): Update call to
4876 la_compute_program.
4877 * d-lang.c (d_language_data): Delete la_compute_program
4878 initializer.
4879 * f-lang.c (f_language_data): Likewise.
4880 * go-lang.c (go_language_data): Likewise.
4881 * language.c (unknown_language_data): Likewise.
4882 (auto_language_data): Likewise.
4883 * language.h (language_data): Delete la_compute_program field.
4884 (language_defn::compute_program): New member function.
4885 * m2-lang.c (m2_language_data): Delete la_compute_program
4886 initializer.
4887 * objc-lang.c (objc_language_data): Likewise.
4888 * opencl-lang.c (opencl_language_data): Likewise.
4889 * p-lang.c (pascal_language_data): Likewise.
4890 * rust-lang.c (rust_language_data): Likewise.
4891
4892 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
4893
4894 * ada-lang.c (ada_language_data) Delete
4895 la_class_name_from_physname initializer.
4896 * c-lang.c (c_language_data): Likewise.
4897 (cplus_language_data): Likewise.
4898 (cplus_language::class_name_from_physname): New member function.
4899 (asm_language_data): Delete la_class_name_from_physname
4900 initializer.
4901 (minimal_language_data): Likewise.
4902 * d-lang.c (d_language_data): Likewise.
4903 * dwarf2/read.c (guess_partial_die_structure_name): Update to call
4904 method on language_defn class.
4905 (guess_full_die_structure_name): Likewise.
4906 * f-lang.c (f_language_data): Delete la_class_name_from_physname
4907 initializer.
4908 * go-lang.c (go_language_data): Likewise.
4909 * language.c (language_class_name_from_physname): Delete.
4910 (unk_lang_class_name): Delete.
4911 (unknown_language_data): Delete la_class_name_from_physname
4912 initializer.
4913 (auto_language_data): Likewise.
4914 * language.h (language_data): Delete la_class_name_from_physname
4915 field.
4916 (language_defn::class_name_from_physname): New function.
4917 (language_class_name_from_physname): Delete declaration.
4918 * m2-lang.c (m2_language_data): Delete la_class_name_from_physname
4919 initializer.
4920 * objc-lang.c (objc_language_data): Likewise.
4921 * opencl-lang.c (opencl_language_data): Likewise.
4922 * p-lang.c (pascal_language_data): Likewise.
4923 * rust-lang.c (rust_language_data): Likewise.
4924
4925 2020-06-16 Tom Tromey <tom@tromey.com>
4926
4927 * tui/tui-data.h (STATUS_NAME): New macro.
4928 * tui/tui-layout.c (tui_remove_some_windows)
4929 (initialize_known_windows, tui_register_window)
4930 (tui_layout_split::remove_windows, initialize_layouts)
4931 (tui_new_layout_command): Don't use hard-coded window names.
4932
4933 2020-06-16 Tom Tromey <tom@tromey.com>
4934
4935 PR tui/25348:
4936 * tui/tui.c (tui_ensure_readline_initialized): Rename from
4937 tui_initialize_readline. Only run once. Call rl_initialize.
4938 * tui/tui.h (tui_ensure_readline_initialized): Rename from
4939 tui_initialize_readline.
4940 * tui/tui-io.c (tui_setup_io): Call
4941 tui_ensure_readline_initialized.
4942 * tui/tui-interp.c (tui_interp::init): Update.
4943
4944 2020-06-16 Tom Tromey <tom@tromey.com>
4945
4946 * tui/tui-layout.c (tui_layout_split::remove_windows): Fix logic.
4947 Also preserve the status window.
4948
4949 2020-06-16 Tom Tromey <tom@tromey.com>
4950
4951 * python/py-tui.c (tui_py_window::~tui_py_window): Handle case
4952 where m_window==nullptr.
4953
4954 2020-06-15 Tom Tromey <tromey@adacore.com>
4955
4956 * windows-nat.c (windows_nat::handle_output_debug_string):
4957 Update.
4958 (windows_nat::handle_ms_vc_exception): Update.
4959 * target.h (target_read_string): Change API.
4960 * target.c (target_read_string): Change API.
4961 * solib-svr4.c (open_symbol_file_object, svr4_read_so_list):
4962 Update.
4963 * solib-frv.c (frv_current_sos): Update.
4964 * solib-dsbt.c (dsbt_current_sos): Update.
4965 * solib-darwin.c (darwin_current_sos): Update.
4966 * linux-thread-db.c (inferior_has_bug): Update.
4967 * expprint.c (print_subexp_standard): Update.
4968 * ada-lang.c (ada_main_name, ada_tag_name_from_tsd)
4969 (ada_exception_message_1): Update.
4970
4971 2020-06-15 Tom Tromey <tromey@adacore.com>
4972
4973 * linux-tdep.c (dump_mapping_p): Use target_read_memory.
4974
4975 2020-06-15 Tom Tromey <tromey@adacore.com>
4976
4977 * valprint.c (read_string): Update comment.
4978 * target.c (MIN): Remove.
4979 (target_read_string): Rewrite.
4980
4981 2020-06-15 Tom Tromey <tromey@adacore.com>
4982
4983 * corefile.c (read_memory_string): Remove.
4984 * ada-valprint.c (ada_value_print_ptr): Update.
4985 * ada-lang.h (ada_tag_name): Change return type.
4986 * ada-lang.c (type_from_tag): Update.
4987 (ada_tag_name_from_tsd): Change return type. Use
4988 target_read_string.
4989 (ada_tag_name): Likewise.
4990 * gdbcore.h (read_memory_string): Don't declare.
4991
4992 2020-06-14 Hannes Domani <ssbssa@yahoo.de>
4993
4994 * symtab.c (rbreak_command): Ignore Windows drive colon.
4995
4996 2020-06-12 Simon Marchi <simon.marchi@efficios.com>
4997
4998 * NEWS: Mention removed GDBserver host support.
4999
5000 2020-06-12 Nelson Chu <nelson.chu@sifive.com>
5001
5002 * features/riscv/rebuild-csr-xml.sh: Updated.
5003
5004 2020-06-11 Tom Tromey <tom@tromey.com>
5005
5006 PR gdb/18318:
5007 * c-exp.y (lex_one_token): Handle 'p' like 'e'.
5008
5009 2020-06-09 Jonny Grant <jg@jguk.org>
5010 2020-06-09 Simon Marchi <simon.marchi@polymtl.ca>
5011
5012 * main.c (captured_main_1): Don't print new line after help.
5013 (print_gdb_help): add mailing list and IRC channel information
5014 to --help. Add new lines between items in the footer. Remove
5015 quotes around bug url.
5016
5017 2020-06-11 Keith Seitz <keiths@redhat.com>
5018
5019 PR gdb/21356
5020 * gdbtypes.c (resolve_dynamic_union, resolve_dynamic_struct):
5021 Resolve typedefs for type length calculations.
5022
5023 2020-06-10 Tom de Vries <tdevries@suse.de>
5024
5025 PR ada/24713
5026 * dwarf2/index-write.c (struct mapped_symtab): Add m_string_obstack.
5027 (write_psymbols): Enable .gdb_index for ada.
5028 * dwarf2/read.c: Remove comment stating .gdb_index is unsupported for
5029 ada.
5030
5031 2020-06-10 Tom de Vries <tdevries@suse.de>
5032
5033 * dwarf2/read.c (dw2_symtab_iter_init_common): Factor out of ...
5034 (dw2_symtab_iter_init): ... here. Add variant with "offset_type
5035 namei" instead of "const char *name" argument.
5036 (dw2_map_matching_symbols): Use "offset_type namei" variant of
5037 dw2_symtab_iter_init.
5038
5039 2020-06-08 Simon Marchi <simon.marchi@efficios.com>
5040
5041 * gdbtypes.h (TYPE_FIELD_TYPE): Remove. Change all call sites
5042 to use type::field and field::type instead.
5043
5044 2020-06-08 Simon Marchi <simon.marchi@efficios.com>
5045
5046 * gdbtypes.h (FIELD_TYPE): Remove. Change all call sites
5047 to use field::type instead.
5048
5049 2020-06-08 Simon Marchi <simon.marchi@efficios.com>
5050
5051 * gdbtypes.h (struct field) <type, set_type>: New methods.
5052 Rename `type` field to...
5053 <m_type>: ... this. Change references throughout to use type or
5054 set_type methods.
5055 (FIELD_TYPE): Use field::type. Change call sites that modify
5056 the field's type to use field::set_type instead.
5057
5058 2020-06-08 Simon Marchi <simon.marchi@efficios.com>
5059
5060 * gdbtypes.h (TYPE_INDEX_TYPE): Remove. Change all call sites
5061 to use type::index_type instead.
5062
5063 2020-06-08 Simon Marchi <simon.marchi@efficios.com>
5064
5065 * gdbtypes.h (struct type) <index_type, set_index_type>: New
5066 methods.
5067 (TYPE_INDEX_TYPE): Use type::index_type.
5068 * gdbtypes.c (create_array_type_with_stride): Likewise.
5069
5070 2020-06-07 Tom Tromey <tom@tromey.com>
5071
5072 * valprint.c (generic_val_print_float): Remove "embedded_offset"
5073 parameter.
5074 (generic_value_print): Update.
5075
5076 2020-06-05 Andrew Burgess <andrew.burgess@embecosm.com>
5077
5078 Revert commit 982a38f60b0.
5079 * python/py-tui.c (gdbpy_tui_set_title): Restore use of get.
5080
5081 2020-06-05 Andrew Burgess <andrew.burgess@embecosm.com>
5082
5083 * python/py-tui.c (gdbpy_tui_set_title): Use release, not get, to
5084 avoid use after free.
5085
5086 2020-06-05 Tom de Vries <tdevries@suse.de>
5087
5088 * NEWS: Fix typos.
5089
5090 2020-06-04 Simon Marchi <simon.marchi@efficios.com>
5091
5092 * dwarf2/read.c (dwarf2_read_gdb_index): Save partial_symtabs in
5093 the per_bfd object.
5094 (dwarf2_read_debug_names): Likewise.
5095 (dwarf2_initialize_objfile): Use partial_symtabs from per_bfd
5096 object when re-using a per_bfd object with an index.
5097
5098 2020-06-03 Tom de Vries <tdevries@suse.de>
5099
5100 PR symtab/26046
5101 * dwarf2/read.c (scan_partial_symbols): Recurse into DW_TAG_subprogram
5102 children for C++.
5103 (load_partial_dies): Don't skip DW_TAG_inlined_subroutine child of
5104 DW_TAG_subprogram.
5105
5106 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
5107
5108 * ada-lang.c (ada_language_data): Delete skip_trampoline
5109 initializer.
5110 * c-lang.c (c_language_data): Likewise.
5111 (cplus_language_data): Likewise.
5112 (cplus_language::skip_trampoline): New member function.
5113 (asm_language_data): Delete skip_trampoline initializer.
5114 (minimal_language_data): Likewise.
5115 * d-lang.c (d_language_data): Likewise.
5116 * f-lang.c (f_language_data): Likewise.
5117 * go-lang.c (go_language_data): Likewise.
5118 * language.c (unk_lang_trampoline): Delete function.
5119 (skip_language_trampoline): Update.
5120 (unknown_language_data): Delete skip_trampoline initializer.
5121 (auto_language_data): Likewise.
5122 * language.h (language_data): Delete skip_trampoline field.
5123 (language_defn::skip_trampoline): New function.
5124 * m2-lang.c (m2_language_data): Delete skip_trampoline
5125 initializer.
5126 * objc-lang.c (objc_skip_trampoline): Delete function, move
5127 implementation to objc_language::skip_trampoline.
5128 (objc_language_data): Delete skip_trampoline initializer.
5129 (objc_language::skip_trampoline): New member function with
5130 implementation from objc_skip_trampoline.
5131 * opencl-lang.c (opencl_language_data): Delete skip_trampoline
5132 initializer.
5133 * p-lang.c (pascal_language_data): Likewise.
5134 * rust-lang.c (rust_language_data): Likewise.
5135
5136 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
5137
5138 * ada-lang.c (ada_language_data): Delete la_demangle initializer.
5139 (ada_language::demangle): New member function.
5140 * c-lang.c (c_language_data): Delete la_demangle initializer.
5141 (cplus_language_data): Delete la_demangle initializer.
5142 (cplus_language::demangle): New member function.
5143 (asm_language_data): Delete la_demangle initializer.
5144 (minimal_language_data): Delete la_demangle initializer.
5145 * d-lang.c (d_language_data): Delete la_demangle initializer.
5146 (d_language::demangle): New member function.
5147 * f-lang.c (f_language_data): Delete la_demangle initializer.
5148 (f_language::demangle): New member function.
5149 * go-lang.c (go_language_data): Delete la_demangle initializer.
5150 (go_language::demangle): New member function.
5151 * language.c (language_demangle): Update.
5152 (unk_lang_demangle): Delete.
5153 (unknown_language_data): Delete la_demangle initializer.
5154 (unknown_language::demangle): New member function.
5155 (auto_language_data): Delete la_demangle initializer.
5156 (auto_language::demangle): New member function.
5157 * language.h (language_data): Delete la_demangle field.
5158 (language_defn::demangle): New function.
5159 * m2-lang.c (m2_language_data): Delete la_demangle initializer.
5160 * objc-lang.c (objc_language_data): Delete la_demangle
5161 initializer.
5162 (objc_language::demangle): New member function.
5163 * opencl-lang.c (opencl_language_data): Delete la_demangle
5164 initializer.
5165 * p-lang.c (pascal_language_data): Likewise.
5166 * rust-lang.c (rust_language_data): Likewise.
5167 (rust_language::demangle): New member function.
5168
5169 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
5170
5171 * ada-lang.c (ada_language_data): Delete la_print_type
5172 initializer.
5173 (ada_language::print_type): New member function.
5174 * c-lang.c (c_language_data): Delete la_print_type initializer.
5175 (c_language::print_type): New member function.
5176 (cplus_language_data): Delete la_print_type initializer.
5177 (cplus_language::print_type): New member function.
5178 (asm_language_data): Delete la_print_type initializer.
5179 (asm_language::print_type): New member function.
5180 (minimal_language_data): Delete la_print_type initializer.
5181 (minimal_language::print_type): New member function.
5182 * d-lang.c (d_language_data): Delete la_print_type initializer.
5183 (d_language::print_type): New member function.
5184 * f-lang.c (f_language_data): Delete la_print_type initializer.
5185 (f_language::print_type): New member function.
5186 * go-lang.c (go_language_data): Delete la_print_type initializer.
5187 (go_language::print_type): New member function.
5188 * language.c (unk_lang_print_type): Delete.
5189 (unknown_language_data): Delete la_print_type initializer.
5190 (unknown_language::print_type): New member function.
5191 (auto_language_data): Delete la_print_type initializer.
5192 (auto_language::print_type): New member function.
5193 * language.h (language_data): Delete la_print_type field.
5194 (language_defn::print_type): New function.
5195 (LA_PRINT_TYPE): Update.
5196 * m2-lang.c (m2_language_data): Delete la_print_type initializer.
5197 (m2_language::print_type): New member function.
5198 * objc-lang.c (objc_language_data): Delete la_print_type
5199 initializer.
5200 (objc_language::print_type): New member function.
5201 * opencl-lang.c (opencl_print_type): Delete, implementation moved
5202 to opencl_language::print_type.
5203 (opencl_language_data): Delete la_print_type initializer.
5204 (opencl_language::print_type): New member function, implementation
5205 from opencl_print_type.
5206 * p-lang.c (pascal_language_data): Delete la_print_type
5207 initializer.
5208 (pascal_language::print_type): New member function.
5209 * rust-lang.c (rust_print_type): Delete, implementation moved to
5210 rust_language::print_type.
5211 (rust_language_data): Delete la_print_type initializer.
5212 (rust_language::print_type): New member function, implementation
5213 from rust_print_type.
5214
5215 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
5216
5217 * ada-lang.c (ada_sniff_from_mangled_name): Delete function,
5218 implementation moves to...
5219 (ada_language::sniff_from_mangled_name): ...here. Update return
5220 type.
5221 (ada_language_data): Delete la_sniff_from_mangled_name
5222 initializer.
5223 * c-lang.c (c_language_data): Likewise.
5224 (cplus_language_data): Likewise.
5225 (cplus_language::sniff_from_mangled_name): New member function,
5226 implementation taken from gdb_sniff_from_mangled_name.
5227 (asm_language_data): Delete la_sniff_from_mangled_name
5228 initializer.
5229 (minimal_language_data): Likewise.
5230 * cp-support.c (gdb_sniff_from_mangled_name): Delete,
5231 implementation moves to cplus_language::sniff_from_mangled_name.
5232 * cp-support.h (gdb_sniff_from_mangled_name): Delete declaration.
5233 * d-lang.c (d_sniff_from_mangled_name): Delete, implementation
5234 moves to...
5235 (d_language::sniff_from_mangled_name): ...here.
5236 (d_language_data): Delete la_sniff_from_mangled_name initializer.
5237 * f-lang.c (f_language_data): Likewise.
5238 * go-lang.c (go_sniff_from_mangled_name): Delete, implementation
5239 moves to...
5240 (go_language::sniff_from_mangled_name): ...here.
5241 (go_language_data): Delete la_sniff_from_mangled_name initializer.
5242 * language.c (language_sniff_from_mangled_name): Delete.
5243 (unknown_language_data): Delete la_sniff_from_mangled_name
5244 initializer.
5245 (auto_language_data): Likewise.
5246 * language.h (language_data): Delete la_sniff_from_mangled_name
5247 field.
5248 (language_defn::sniff_from_mangled_name): New function.
5249 (language_sniff_from_mangled_name): Delete declaration.
5250 * m2-lang.c (m2_language_data): Delete la_sniff_from_mangled_name
5251 field.
5252 * objc-lang.c (objc_sniff_from_mangled_name): Delete,
5253 implementation moves to...
5254 (objc_language::sniff_from_mangled_name): ...here.
5255 (objc_language_data): Delete la_sniff_from_mangled_name initializer.
5256 * opencl-lang.c (opencl_language_data): Likewise.
5257 * p-lang.c (pascal_language_data): Likewise.
5258 * rust-lang.c (rust_sniff_from_mangled_name): Delete,
5259 implementation moves to...
5260 (rust_language::sniff_from_mangled_name): ...here.
5261 (rust_language_data): Delete la_sniff_from_mangled_name
5262 initializer.
5263 * symtab.c (symbol_find_demangled_name): Call
5264 sniff_from_mangled_name member function.
5265
5266 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
5267
5268 * ada-lang.c (ada_language_data): Delete la_search_name_hash
5269 initializer.
5270 * c-lang.c (c_language_data): Likewise.
5271 (cplus_language_data): Likewise.
5272 (cplus_language::search_name_hash): New member function.
5273 (asm_language_data): Delete la_search_name_hash initializer.
5274 (minimal_language_data): Likewise.
5275 * d-lang.c (d_language_data): Likewise.
5276 * dictionary.c (default_search_name_hash): Rename to...
5277 (language_defn::search_name_hash): ...this.
5278 * f-lang.c (f_language_data): Likewise.
5279 (f_language::search_name_hash): New member function.
5280 * go-lang.c (go_language_data): Delete la_search_name_hash
5281 initializer.
5282 * language.c (unknown_language_data): Likewise.
5283 (auto_language_data): Likewise.
5284 * language.h (struct language_data): Delete la_search_name_hash
5285 field.
5286 (language_defn::search_name_hash): Declare new member function.
5287 (default_search_name_hash): Delete declaration.
5288 * m2-lang.c (m2_language_data): Delete la_search_name_hash
5289 initializer.
5290 * objc-lang.c (objc_language_data): Likewise.
5291 * opencl-lang.c (opencl_language_data): Likewise.
5292 * p-lang.c (pascal_language_data): Likewise.
5293 * rust-lang.c (rust_language_data): Likewise.
5294 * symtab.c (search_name_hash): Update call.
5295
5296 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
5297
5298 * ada-lang.c (ada_language_data): Delete la_get_compile_instance
5299 initializer.
5300 * c-lang.c (class compile_instance): Declare.
5301 (c_language_data): Delete la_get_compile_instance initializer.
5302 (c_language::get_compile_instance): New member function.
5303 (cplus_language_data): Delete la_get_compile_instance initializer.
5304 (cplus_language::get_compile_instance): New member function.
5305 (asm_language_data): Delete la_get_compile_instance initializer.
5306 (minimal_language_data): Likewise.
5307 * c-lang.h (c_get_compile_context): Update comment.
5308 (cplus_get_compile_context): Update comment.
5309 * compile/compile.c (compile_to_object): Update calls, don't rely
5310 on function pointer being NULL.
5311 * d-lang.c (d_language_data): Delete la_get_compile_instance
5312 initializer.
5313 * f-lang.c (f_language_data): Likewise.
5314 * go-lang.c (go_language_data): Likewise.
5315 * language.c (unknown_language_data): Likewise.
5316 (auto_language_data): Likewise.
5317 * language.h (language_data): Delete la_get_compile_instance field.
5318 (language_defn::get_compile_instance): New member function.
5319 * m2-lang.c (m2_language_data): Delete la_get_compile_instance
5320 initializer.
5321 * objc-lang.c (objc_language_data): Likewise.
5322 * opencl-lang.c (opencl_language_data): Likewise.
5323 * p-lang.c (pascal_language_data): Likewise.
5324 * rust-lang.c (rust_language_data): Likewise.
5325
5326 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
5327
5328 * ada-lang.c (ada_add_all_symbols): Update comment.
5329 (ada_iterate_over_symbols): Delete, move implementation to...
5330 (ada_language::iterate_over_symbols): ...here, a new member
5331 function, rewrite to use range based for loop.
5332 (ada_language_data): Delete la_iterate_over_symbols initializer.
5333 * c-lang.c (c_language_data): Likewise.
5334 (cplus_language_data): Likewise.
5335 (asm_language_data): Likewise.
5336 (minimal_language_data): Likewise.
5337 * d-lang.c (d_language_data): Likewise.
5338 * f-lang.c (f_language_data): Likewise.
5339 * go-lang.c (go_language_data): Likewise.
5340 * language.c (unknown_language_data): Likewise.
5341 (auto_language_data): Likewise.
5342 * language.h (language_data): Delete la_iterate_over_symbols field.
5343 (language_defn::iterate_over_symbols): New member function.
5344 (LA_ITERATE_OVER_SYMBOLS): Update.
5345 * linespec.c (iterate_over_all_matching_symtabs): Update.
5346 * m2-lang.c (m2_language_data): Delete la_iterate_over_symbols
5347 initializer.
5348 * objc-lang.c (objc_language_data): Likewise.
5349 * opencl-lang.c (opencl_language_data): Likewise.
5350 * p-lang.c (pascal_language_data): Likewise.
5351 * rust-lang.c (rust_language_data): Likewise.
5352
5353 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
5354
5355 * ada-lang.c (ada_language_data): Delete
5356 la_lookup_transparent_type initializer.
5357 * c-lang.c (c_language_data): Likewise.
5358 (cplus_language_data): Likewise.
5359 (cplus_language::lookup_transparent_type): New member function.
5360 (asm_language_data): Delete la_lookup_transparent_type
5361 initializer.
5362 (minimal_language_data): Likewise.
5363 * d-lang.c (d_language_data): Likewise.
5364 * f-lang.c (f_language_data): Likewise.
5365 * go-lang.c (go_language_data): Likewise.
5366 * language.c (unknown_language_data): Likewise.
5367 (auto_language_data): Likewise.
5368 * language.h (struct language_data): Delete
5369 la_lookup_transparent_type field.
5370 (language_defn::lookup_transparent_type): New member function.
5371 * m2-lang.c (m2_language_data): Delete la_lookup_transparent_type
5372 initializer.
5373 * objc-lang.c (objc_language_data): Likewise.
5374 * opencl-lang.c (opencl_language_data): Likewise.
5375 * p-lang.c (pascal_language_data): Likewise.
5376 * rust-lang.c (rust_language_data): Likewise.
5377 * symtab.c (symbol_matches_domain): Update call.
5378
5379 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
5380
5381 * ada-lang.c (ada_language_arch_info): Delete function, move
5382 implementation to...
5383 (ada_language::language_arch_info): ...here, a new member
5384 function.
5385 (ada_language_data): Delete la_language_arch_info.
5386 * c-lang.c (c_language_data): Likewise.
5387 (c_language::language_arch_info): New member function.
5388 (cplus_language_arch_info): Delete function, move
5389 implementation to...
5390 (cplus_language::language_arch_info): ...here, a new member
5391 function.
5392 (cplus_language_data): Delete la_language_arch_info.
5393 (asm_language_data): Likewise.
5394 (asm_language::language_arch_info): New member function.
5395 (minimal_language_data): Delete la_language_arch_info.
5396 (minimal_language::language_arch_info): New member function.
5397 * d-lang.c (d_language_arch_info): Delete function, move
5398 implementation to...
5399 (d_language::language_arch_info): ...here, a new member
5400 function.
5401 (d_language_data): Delete la_language_arch_info.
5402 * f-lang.c (f_language_arch_info): Delete function, move
5403 implementation to...
5404 (f_language::language_arch_info): ...here, a new member
5405 function.
5406 (f_language_data): Delete la_language_arch_info.
5407 * go-lang.c (go_language_arch_info): Delete function, move
5408 implementation to...
5409 (go_language::language_arch_info): ...here, a new member
5410 function.
5411 (go_language_data): Delete la_language_arch_info.
5412 * language.c (unknown_language_data): Likewise.
5413 (unknown_language::language_arch_info): New member function.
5414 (auto_language_data): Delete la_language_arch_info.
5415 (auto_language::language_arch_info): New member function.
5416 (language_gdbarch_post_init): Update call to
5417 la_language_arch_info.
5418 * language.h (language_data): Delete la_language_arch_info
5419 function pointer.
5420 (language_defn::language_arch_info): New function.
5421 * m2-lang.c (m2_language_arch_info): Delete function, move
5422 implementation to...
5423 (m2_language::language_arch_info): ...here, a new member
5424 function.
5425 (m2_language_data): Delete la_language_arch_info.
5426 * objc-lang.c (objc_language_arch_info): Delete function, move
5427 implementation to...
5428 (objc_language::language_arch_info): ...here, a new member
5429 function.
5430 (objc_language_data): Delete la_language_arch_info.
5431 * opencl-lang.c (opencl_language_arch_info): Delete function, move
5432 implementation to...
5433 (opencl_language::language_arch_info): ...here, a new member
5434 function.
5435 (opencl_language_data): Delete la_language_arch_info.
5436 * p-lang.c (pascal_language_arch_info): Delete function, move
5437 implementation to...
5438 (pascal_language::language_arch_info): ...here, a new member
5439 function.
5440 (pascal_language_data): Delete la_language_arch_info.
5441 * rust-lang.c (rust_language_arch_info): Delete function, move
5442 implementation to...
5443 (rust_language::language_arch_info): ...here, a new member
5444 function.
5445 (rust_language_data): Delete la_language_arch_info.
5446
5447 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
5448
5449 * ada-lang.c (ada_language_data): Delete la_pass_by_reference
5450 initializer.
5451 * c-lang.c (c_language_data): Likewise.
5452 (cplus_language_data): Likewise.
5453 (cplus_language::pass_by_reference_info): New method.
5454 (asm_language_data): Delete la_pass_by_reference initializer.
5455 (minimal_language_data): Likewise.
5456 * cp-abi.c (cp_pass_by_reference): Remove use of
5457 default_pass_by_reference.
5458 * d-lang.c (d_language_data): Likewise.
5459 * f-lang.c (f_language_data): Likewise.
5460 * gnu-v3-abi.c (gnuv3_pass_by_reference): Remove use of
5461 default_pass_by_reference.
5462 * go-lang.c (go_language_data): Likewise.
5463 * language.c (language_pass_by_reference): Update.
5464 (default_pass_by_reference): Delete.
5465 (unknown_language_data): Delete la_pass_by_reference
5466 initializer.
5467 (auto_language_data): Likewise.
5468 * language.h (struct language_data): Delete la_pass_by_reference
5469 field.
5470 (language_defn::pass_by_reference_info): New member function.
5471 (default_pass_by_reference): Delete declaration.
5472 * m2-lang.c (m2_language_data): Delete la_pass_by_reference
5473 initializer.
5474 * objc-lang.c (objc_language_data): Likewise.
5475 * opencl-lang.c (opencl_language_data): Likewise.
5476 * p-lang.c (pascal_language_data): Likewise.
5477 * rust-lang.c (rust_language_data): Likewise.
5478
5479 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
5480
5481 * ada-lang.c (ada_read_var_value): Delete function, move
5482 implementation to...
5483 (ada_language::read_var_value): ...here.
5484 (ada_language_data): Delete la_read_var_value initializer.
5485 * c-lang.c (c_language_data): Likewise.
5486 (cplus_language_data): Likewise.
5487 (minimal_language_data): Likewise.
5488 * d-lang.c (d_language_data): Likewise.
5489 * f-lang.c (f_language_data): Likewise.
5490 * findvar.c (default_read_var_value): Rename to...
5491 (language_defn::read_var_value): ...this.
5492 * findvar.c (read_var_value): Update header comment, and change to
5493 call member function instead of function pointer.
5494 * go-lang.c (go_language_data): Likewise.
5495 * language.c (unknown_language_data): Delete la_read_var_value
5496 initializer.
5497 (auto_language_data): Likewise.
5498 * language.h (struct language_data): Delete la_read_var_value
5499 field.
5500 (language_defn::read_var_value): New member function.
5501 (default_read_var_value): Delete declaration.
5502 * m2-lang.c (m2_language_data): Delete la_read_var_value
5503 initializer.
5504 * objc-lang.c (objc_language_data): Likewise.
5505 * opencl-lang.c (opencl_language_data): Likewise.
5506 * p-lang.c (pascal_language_data): Likewise.
5507 * rust-lang.c (rust_language_data): Likewise.
5508 * value.h (default_read_var_value): Delete declaration.
5509
5510 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
5511
5512 * ada-lang.c (ada_print_array_index): Delete function, move
5513 implementation to...
5514 (ada_language::print_array_index): ...here.
5515 (ada_language_data): Delete la_print_array_index initializer.
5516 * c-lang.c (c_language_data): Likewise.
5517 (cplus_language_data): Likewise.
5518 (minimal_language_data): Likewise.
5519 * d-lang.c (d_language_data): Likewise.
5520 * f-lang.c (f_language_data): Likewise.
5521 * go-lang.c (go_language_data): Likewise.
5522 * language.c (default_print_array_index): Delete function, move
5523 implementation to...
5524 (language_defn::print_array_index): ...here.
5525 (unknown_language_data): Delete la_print_array_index initializer.
5526 (auto_language_data): Likewise.
5527 * language.h (struct language_data): Delete la_print_array_index
5528 field.
5529 (language_defn::print_array_index): New member function.
5530 (LA_PRINT_ARRAY_INDEX): Update.
5531 (default_print_array_index): Delete declaration.
5532 * m2-lang.c (m2_language_data): Delete la_print_array_index
5533 initializer.
5534 * objc-lang.c (objc_language_data): Likewise.
5535 * opencl-lang.c (opencl_language_data): Likewise.
5536 * p-lang.c (pascal_language_data): Likewise.
5537 * rust-lang.c (rust_language_data): Likewise.
5538
5539 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
5540
5541 * gdb/ada-lang.c (ada_language_defn): Convert to...
5542 (ada_language_data): ...this.
5543 (class ada_language): New class.
5544 (ada_language_defn): New static global.
5545 * gdb/c-lang.c (c_language_defn): Convert to...
5546 (c_language_data): ...this.
5547 (class c_language): New class.
5548 (c_language_defn): New static global.
5549 (cplus_language_defn): Convert to...
5550 (cplus_language_data): ...this.
5551 (class cplus_language): New class.
5552 (cplus_language_defn): New static global.
5553 (asm_language_defn): Convert to...
5554 (asm_language_data): ...this.
5555 (class asm_language): New class.
5556 (asm_language_defn): New static global.
5557 (minimal_language_defn): Convert to...
5558 (minimal_language_data): ...this.
5559 (class minimal_language): New class.
5560 (minimal_language_defn): New static global.
5561 * gdb/d-lang.c (d_language_defn): Convert to...
5562 (d_language_data): ...this.
5563 (class d_language): New class.
5564 (d_language_defn): New static global.
5565 * gdb/f-lang.c (f_language_defn): Convert to...
5566 (f_language_data): ...this.
5567 (class f_language): New class.
5568 (f_language_defn): New static global.
5569 * gdb/go-lang.c (go_language_defn): Convert to...
5570 (go_language_data): ...this.
5571 (class go_language): New class.
5572 (go_language_defn): New static global.
5573 * gdb/language.c (unknown_language_defn): Remove declaration.
5574 (current_language): Initialize to nullptr, real initialization is
5575 moved to _initialize_language.
5576 (languages): Delete global.
5577 (language_defn::languages): Define.
5578 (set_language_command): Use language_defn::languages.
5579 (set_language): Likewise.
5580 (range_error): Likewise.
5581 (language_enum): Likewise.
5582 (language_def): Likewise.
5583 (add_set_language_command): Use language_def::languages for the
5584 language list, and language_def to lookup language pointers.
5585 (skip_language_trampoline): Use language_defn::languages.
5586 (unknown_language_defn): Convert to...
5587 (unknown_language_data): ...this.
5588 (class unknown_language): New class.
5589 (unknown_language_defn): New static global.
5590 (auto_language_defn): Convert to...
5591 (auto_language_data): ...this.
5592 (class auto_language): New class.
5593 (auto_language_defn): New static global.
5594 (language_gdbarch_post_init): Use language_defn::languages.
5595 (_initialize_language): Initialize current_language.
5596 * gdb/language.h (struct language_defn): Rename to...
5597 (struct language_data): ...this.
5598 (struct language_defn): New.
5599 (auto_language_defn): Delete.
5600 (unknown_language_defn): Delete.
5601 (minimal_language_defn): Delete.
5602 (ada_language_defn): Delete.
5603 (asm_language_defn): Delete.
5604 (c_language_defn): Delete.
5605 (cplus_language_defn): Delete.
5606 (d_language_defn): Delete.
5607 (f_language_defn): Delete.
5608 (go_language_defn): Delete.
5609 (m2_language_defn): Delete.
5610 (objc_language_defn): Delete.
5611 (opencl_language_defn): Delete.
5612 (pascal_language_defn): Delete.
5613 (rust_language_defn): Delete.
5614 * gdb/m2-lang.c (m2_language_defn): Convert to...
5615 (m2_language_data): ...this.
5616 (class m2_language): New class.
5617 (m2_language_defn): New static global.
5618 * gdb/objc-lang.c (objc_language_defn): Convert to...
5619 (objc_language_data): ...this.
5620 (class objc_language): New class.
5621 (objc_language_defn): New static global.
5622 * gdb/opencl-lang.c (opencl_language_defn): Convert to...
5623 (opencl_language_data): ...this.
5624 (class opencl_language): New class.
5625 (opencl_language_defn): New static global.
5626 * gdb/p-lang.c (pascal_language_defn): Convert to...
5627 (pascal_language_data): ...this.
5628 (class pascal_language): New class.
5629 (pascal_language_defn): New static global.
5630 * gdb/rust-exp.y (rust_lex_tests): Use language_def to find
5631 language pointer, update comment format.
5632 * gdb/rust-lang.c (rust_language_defn): Convert to...
5633 (rust_language_data): ...this.
5634 (class rust_language): New class.
5635 (rust_language_defn): New static global.
5636
5637 2020-06-01 Andrew Burgess <andrew.burgess@embecosm.com>
5638
5639 * dwarf2/read.c (class lnp_state_machine) <m_last_address>: New
5640 member variable.
5641 <m_stmt_at_address>: New member variable.
5642 (lnp_state_machine::record_line): Don't record some lines, update
5643 tracking of is_stmt at the same address.
5644 (lnp_state_machine::lnp_state_machine): Initialise new member
5645 variables.
5646
5647 2020-06-01 Samuel Thibault <samuel.thibault@ens-lyon.org>
5648
5649 * config/i386/i386gnu.mn [%_S.o %_U.o] (COMPILE.post): Add
5650 "-include gnu-nat-mig.h".
5651 * gnu-nat-mig.h: New file.
5652 * gnu-nat.c: Include "gnu-nat-mig.h".
5653 (exc_server, msg_reply_server, notify_server,
5654 process_reply_server): Remove declarations.
5655
5656 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
5657
5658 * gnu-nat.h (inf_validate_procs, inf_suspend, inf_set_traced,
5659 steal_exc_port, proc_get_state, inf_clear_wait, inf_cleanup,
5660 inf_startup, inf_update_suspends, inf_set_pid, inf_steal_exc_ports,
5661 inf_validate_procinfo, inf_validate_task_sc, inf_restore_exc_ports,
5662 inf_set_threads_resume_sc, inf_set_threads_resume_sc_for_signal_thread,
5663 inf_resume, inf_set_step_thread, inf_detach, inf_attach, inf_signal,
5664 inf_continue, make_proc, proc_abort, _proc_free, proc_update_sc,
5665 proc_get_exception_port, proc_set_exception_port, _proc_get_exc_port,
5666 proc_steal_exc_port, proc_restore_exc_port, proc_trace): Move functions
5667 to gnu_nat_target class.
5668 * gnu-nat.c: Likewise.
5669 (inf_update_procs, S_proc_wait_reply, set_task_pause_cmd,
5670 set_task_exc_port_cmd, set_signals_cmd, set_thread_pause_cmd,
5671 set_thread_exc_port_cmd): Call inf_validate_procs through gnu_target
5672 object.
5673 (gnu_nat_target::create_inferior, gnu_nat_target::detach): Pass `this'
5674 instead of `gnu_target'.
5675
5676 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
5677
5678 * i386-gnu-tdep.c: Include "gdbcore.h"
5679 (gnu_sigtramp_code, i386_gnu_sc_reg_offset): New arrays.
5680 (GNU_SIGTRAMP_LEN, GNU_SIGTRAMP_TAIL,
5681 I386_GNU_SIGCONTEXT_THREAD_STATE_OFFSET): New macros
5682 (i386_gnu_sigtramp_start, i386_gnu_sigtramp_p,
5683 i386_gnu_sigcontext_addr): New functions
5684 (i386gnu_init_abi): Register i386_gnu_sigtramp_p,
5685 i386_gnu_sigcontext_addr, and i386_gnu_sc_reg_offset in the gdbarch
5686 tdep.
5687
5688 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
5689
5690 * gnu-nat.c (gnu_nat_target::create_inferior): Move push_target call
5691 before fork_inferior call. Avoid calling it if target_is_pushed returns
5692 true.
5693
5694 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
5695
5696 * gnu-nat.h (gnu_target): New variable declaration.
5697 * i386-gnu-nat.c (_initialize_i386gnu_nat): Initialize
5698 gnu_target.
5699 * gnu-nat.c (gnu_target): New variable.
5700 (inf_validate_procs): Pass gnu_target to thread_change_ptid,
5701 add_thread_silent, and add_thread calls.
5702 (gnu_nat_target::create_inferior): Pass gnu_target to
5703 add_thread_silent, thread_change_ptid call.
5704 (gnu_nat_target::detach): Pass gnu_target to detach_inferior
5705 call.
5706
5707 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
5708
5709 * gnu-nat.c (gnu_xfer_auxv): Remove unused `res' variable.
5710 (gnu_nat_target::find_memory_regions): Remove unused
5711 `old_address' variable.
5712
5713 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
5714
5715 * gnu-nat.c: Include "gdbarch.h".
5716
5717 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
5718
5719 * reply_mig_hack.awk (Error return): Cast function through
5720 void *, to bypass compiler function call check.
5721
5722 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
5723
5724 * config/i386/i386gnu.mn (%_reply_S.c): Add dependency on
5725 $(srcdir)/reply_mig_hack.awk.
5726
5727 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
5728
5729 * gnu-nat.h (gnu_debug_flag): Set type to bool.
5730
5731 2020-05-30 Jonny Grant <jg@jguk.org>
5732
5733 * configure.ac (ACX_BUGURL): change bug URL to https.
5734
5735 2020-05-30 Pedro Alves <palves@redhat.com>
5736
5737 * cp-support.c (replace_typedefs_template): New.
5738 (replace_typedefs_qualified_name): Handle
5739 DEMANGLE_COMPONENT_TEMPLATE.
5740
5741 2020-05-29 Simon Marchi <simon.marchi@efficios.com>
5742
5743 * dwarf2/comp-unit.c, dwarf2/comp-unit.h, dwarf2/index-cache.c,
5744 dwarf2/index-cache.h, dwarf2/index-write.c,
5745 dwarf2/index-write.h, dwarf2/line-header.c,
5746 dwarf2/line-header.h, dwarf2/macro.c, dwarf2/macro.h,
5747 dwarf2/read.c, dwarf2/read.h: Rename struct dwarf2_per_objfile
5748 variables and fields from `dwarf2_per_objfile` to just
5749 `per_objfile` throughout.
5750
5751 2020-05-28 Simon Marchi <simon.marchi@polymtl.ca>
5752
5753 * dwarf2/loc.c (class dwarf_evaluate_loc_desc)
5754 <push_dwarf_reg_entry_value>: Add comment.
5755
5756 2020-05-28 Kevin Buettner <kevinb@redhat.com>
5757 Keith Seitz <keiths@redhat.com>
5758
5759 * python/python.c (do_start_initialization): Call PyEval_SaveThread
5760 instead of PyEval_ReleaseLock.
5761 (class gdbpy_gil): Move to earlier in file.
5762 (finalize_python): Set gdb_python_initialized.
5763 (gdbpy_check_quit_flag): Acquire GIL via gdbpy_gil. Return early
5764 when not initialized.
5765
5766 2020-05-28 Simon Marchi <simon.marchi@efficios.com>
5767
5768 * dwarf2/loc.c (class dwarf_evaluate_loc_desc)
5769 <push_dwarf_reg_entry_value>: Remove assert. Override
5770 per_objfile with caller_per_objfile.
5771
5772 2020-05-28 Tom de Vries <tdevries@suse.de>
5773
5774 * dwarf2/read.c (dw2_symtab_iter_next, dw2_expand_marked_cus): Limit
5775 PR gold/15646 workaround to symbol kind "type".
5776
5777 2020-05-27 Tom Tromey <tromey@adacore.com>
5778
5779 * dwarf2/read.c (load_partial_dies): Use add_partial_symbol.
5780
5781 2020-05-27 Tom Tromey <tromey@adacore.com>
5782
5783 * dwarf2/abbrev.h (struct abbrev_table) <lookup_abbrev>: Inline.
5784 Use htab_find_with_hash.
5785 <add_abbrev>: Remove "abbrev_number" parameter.
5786 * dwarf2/abbrev.c (abbrev_table::add_abbrev): Remove
5787 "abbrev_number" parameter. Use htab_find_slot_with_hash.
5788 (hash_abbrev): Add comment.
5789 (abbrev_table::lookup_abbrev): Move to header file.
5790 (abbrev_table::read): Update.
5791
5792 2020-05-27 Tom Tromey <tromey@adacore.com>
5793
5794 * dwarf2/read.c (struct partial_die_info) <name>: Declare new
5795 method.
5796 <canonical_name>: New member.
5797 <raw_name>: Rename from "name".
5798 (partial_die_info): Initialize canonical_name.
5799 (scan_partial_symbols): Check raw_name.
5800 (partial_die_parent_scope, partial_die_full_name)
5801 (add_partial_symbol, add_partial_subprogram)
5802 (add_partial_enumeration, load_partial_dies): Use "name" method.
5803 (partial_die_info::name): New method.
5804 (partial_die_info::read, guess_partial_die_structure_name)
5805 (partial_die_info::fixup): Update.
5806
5807 2020-05-27 Tom Tromey <tromey@adacore.com>
5808
5809 * dwarf2/attribute.h (struct attribute) <form_is_ref>: Inline.
5810 <get_ref_die_offset>: Inline.
5811 <get_ref_die_offset_complaint>: New method.
5812 * dwarf2/attribute.c (attribute::form_is_ref): Move to header.
5813 (attribute::get_ref_die_offset_complaint): Rename from
5814 get_ref_die_offset. Just issue complaint.
5815
5816 2020-05-27 Hannes Domani <ssbssa@yahoo.de>
5817
5818 * cli/cli-cmds.c (shell_escape): Move exit_status_set_internal_vars.
5819
5820 2020-05-27 Hannes Domani <ssbssa@yahoo.de>
5821
5822 * exec.c (exec_file_attach): Use errno value of first openp failure.
5823
5824 2020-05-27 Hannes Domani <ssbssa@yahoo.de>
5825
5826 * nat/windows-nat.c (windows_thread_info::~windows_thread_info):
5827 Don't close thread handle.
5828
5829 2020-05-27 Tom Tromey <tom@tromey.com>
5830 Simon Marchi <simon.marchi@efficios.com>
5831
5832 * objfiles.h (struct objfile) <partial_symtabs>: Now a
5833 shared_ptr.
5834 * dwarf2/read.h (struct dwarf2_per_objfile) <partial_symtabs>: New
5835 member.
5836 * dwarf2/read.c (dwarf2_per_bfd_bfd_data_key,
5837 dwarf2_per_bfd_objfile_data_key>: New globals.
5838 (dwarf2_has_info): Use shared dwarf2_per_bfd if possible.
5839 (dwarf2_get_section_info): Use get_dwarf2_per_objfile.
5840 (dwarf2_initialize_objfile): Consider cases where per_bfd can be
5841 shared.
5842 (dwarf2_build_psymtabs): Set objfile::partial_symtabs and
5843 short-circuit when sharing.
5844 (dwarf2_build_psymtabs): Set dwarf2_per_objfile::partial_symtabs.
5845 (dwarf2_psymtab::expand_psymtab): Use free_cached_comp_units.
5846
5847 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
5848
5849 * dwarf2/read.h (struct dwarf2_per_bfd) <line_header_hash>: Move
5850 to...
5851 (struct dwarf2_per_objfile) <line_header_hash>: ... here.
5852 * dwarf2/read.c (handle_DW_AT_stmt_list): Update.
5853
5854 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
5855
5856 * dwarf2/read.c (struct mapped_index_base) <symbol_name_at,
5857 build_name_components, find_name_components_bounds>:
5858 Add per_objfile parameter.
5859 (struct mapped_index) <symbol_name_at>: Likewise.
5860 (struct mapped_debug_names): Remove constructor.
5861 <dwarf2_per_objfile>: Remove field.
5862 <namei_to_name, symbol_name_at>: Add per_objfile parameter.
5863 (mapped_index_base::find_name_components_bounds,
5864 mapped_index_base::build_name_components,
5865 dw2_expand_symtabs_matching_symbol): Likewise.
5866 (class mock_mapped_index) <symbol_name_at>: Likewise.
5867 (check_match): Likewise.
5868 (check_find_bounds_finds): Likewise.
5869 (test_mapped_index_find_name_component_bounds): Update.
5870 (CHECK_MATCH): Update.
5871 (dw2_expand_symtabs_matching): Update.
5872 (class dw2_debug_names_iterator) <dw2_debug_names_iterator>: Add
5873 per_objfile parameter.
5874 <find_vec_in_debug_names>: Likewise.
5875 <m_per_objfile>: New field.
5876 (mapped_debug_names::namei_to_name): Add dwarf2_per_objfile
5877 parameter.
5878 (dw2_debug_names_iterator::find_vec_in_debug_names): Likewise.
5879 (dw2_debug_names_iterator::next): Update.
5880 (dw2_debug_names_lookup_symbol): Update.
5881 (dw2_debug_names_expand_symtabs_for_function): Update.
5882 (dw2_debug_names_map_matching_symbols): Update.
5883 (dw2_debug_names_expand_symtabs_matching): Update.
5884 (dwarf2_read_debug_names): Update.
5885
5886 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
5887
5888 * dwarf2/read.h (struct dwarf2_cu): Forward-declare.
5889 (struct dwarf2_per_bfd) <free_cached_comp_units>: Remove,
5890 move to dwarf2_per_objfile.
5891 <read_in_chain>: Remove.
5892 (struct dwarf2_per_objfile) <get_cu, set_cu, remove_cu,
5893 remove_all_cus, age_comp_units>: New methods.
5894 <m_dwarf2_cus>: New member.
5895 (struct dwarf2_per_cu_data) <cu>: Remove.
5896 * dwarf2/read.c (struct dwarf2_cu) <read_in_chain>: Remove.
5897 (age_cached_comp_units, free_one_cached_comp_unit): Remove,
5898 moved to methods of dwarf2_per_objfile.
5899 (dwarf2_clear_marks): Remove.
5900 (dwarf2_queue_item::~dwarf2_queue_item): Update.
5901 (dwarf2_per_bfd::~dwarf2_per_bfd): Don't free dwarf2_cus.
5902 (dwarf2_per_bfd::free_cached_comp_units): Remove.
5903 (dwarf2_per_objfile::remove_all_cus): New.
5904 (class free_cached_comp_units) <~free_cached_comp_units>:
5905 Update.
5906 (load_cu): Update.
5907 (dw2_do_instantiate_symtab): Adjust.
5908 (fill_in_sig_entry_from_dwo_entry): Adjust.
5909 (cutu_reader::init_tu_and_read_dwo_dies): Update.
5910 (cutu_reader::cutu_reader): Likewise.
5911 (cutu_reader::keep): Use dwarf2_per_objfile::set_cu.
5912 (cutu_reader::cutu_reader): Use dwarf2_per_objfile::get_cu.
5913 (process_psymtab_comp_unit): Use dwarf2_per_objfile::remove_cu
5914 and dwarf2_per_objfile::age_comp_units.
5915 (load_partial_comp_unit): Update.
5916 (maybe_queue_comp_unit): Use dwarf2_per_objfile::get_cu.
5917 (process_queue): Likewise.
5918 (find_partial_die): Use dwarf2_per_objfile::get_cu instead of cu
5919 backlink.
5920 (dwarf2_read_addr_index): Likewise.
5921 (follow_die_offset): Likewise.
5922 (dwarf2_fetch_die_loc_sect_off): Likewise.
5923 (dwarf2_fetch_constant_bytes): Likewise.
5924 (dwarf2_fetch_die_type_sect_off): Likewise.
5925 (follow_die_sig_1): Likewise.
5926 (load_full_type_unit): Likewise.
5927 (read_signatured_type): Likewise.
5928 (dwarf2_cu::dwarf2_cu): Don't set cu field.
5929 (dwarf2_cu::~dwarf2_cu): Remove.
5930 (dwarf2_per_objfile::get_cu): New.
5931 (dwarf2_per_objfile::set_cu): New.
5932 (age_cached_comp_units): Rename to...
5933 (dwarf2_per_objfile::age_comp_units): ... this. Adjust
5934 to std::unordered_map.
5935 (free_one_cached_comp_unit): Rename to...
5936 (dwarf2_per_objfile::remove_cu): ... this. Adjust
5937 to std::unordered_map.
5938 (dwarf2_per_objfile::~dwarf2_per_objfile): New.
5939 (dwarf2_mark_helper): Use dwarf2_per_objfile::get_cu, expect
5940 a dwarf2_per_objfile in data.
5941 (dwarf2_mark): Pass dwarf2_per_objfile in data to htab_traverse.
5942 (dwarf2_clear_marks): Remove.
5943
5944 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
5945
5946 * dwarf2/read.c (class cutu_reader) <cutu_reader>: Replace
5947 `int use_existing_cu` parameter with `dwarf2_cu *existing_cu`.
5948 (init_tu_and_read_dwo_dies): Likewise.
5949 (cutu_reader::init_tu_and_read_dwo_dies): Likewise.
5950 (cutu_reader::cutu_reader): Likewise.
5951 (load_partial_comp_unit): Likewise.
5952 (process_psymtab_comp_unit): Update.
5953 (build_type_psymtabs_1): Update.
5954 (process_skeletonless_type_unit): Update.
5955 (load_full_comp_unit): Update.
5956 (find_partial_die): Update.
5957 (dwarf2_read_addr_index): Update.
5958 (read_signatured_type): Update.
5959
5960 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
5961
5962 * dwarf2/read.h (struct dwarf2_per_cu_data) <m_header,
5963 m_header_read_in>: New fields.
5964 <get_header>: New method.
5965 * dwarf2/read.c (per_cu_header_read_in): Remove.
5966 (dwarf2_per_cu_data::get_header): New.
5967 (dwarf2_per_cu_data::addr_size): Update.
5968 (dwarf2_per_cu_data::offset_size): Update.
5969 (dwarf2_per_cu_data::ref_addr_size): Update.
5970
5971 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
5972
5973 * dwarf2/read.c (load_cu): Return dwarf2_cu.
5974 (dw2_do_instantiate_symtab): Update.
5975 (queue_and_load_all_dwo_tus): Change parameter from
5976 dwarf2_per_cu_data to dwarf2_cu.
5977 (dwarf2_fetch_die_loc_sect_off): Update.
5978 (dwarf2_fetch_constant_bytes): Update.
5979 (dwarf2_fetch_die_type_sect_off): Update.
5980
5981 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
5982
5983 * dwarf2/read.c (process_full_comp_unit,
5984 process_full_type_unit): Remove per_cu, per_objfile paramters.
5985 Add dwarf2_cu parameter.
5986 (process_queue): Update.
5987
5988 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
5989
5990 * dwarf2/read.c (create_cu_from_index_list): Replace
5991 dwarf2_per_objfile parameter with dwarf2_per_bfd.
5992 (create_cus_from_index_list): Likewise.
5993 (create_cus_from_index): Likewise.
5994 (create_signatured_type_table_from_index): Likewise.
5995 (create_cus_from_debug_names_list): Likewise.
5996 (create_cus_from_debug_names): Likewise.
5997 (dwarf2_read_gdb_index): Update.
5998 (dwarf2_read_debug_names): Update.
5999
6000 2020-05-27 Tom Tromey <tom@tromey.com>
6001 Simon Marchi <simon.marchi@efficios.com>
6002
6003 * dwarf2/read.h (struct dwarf2_per_objfile)
6004 <get_type_for_signatured_type, set_type_for_signatured_type>:
6005 New methods.
6006 <m_type_map>: New member.
6007 (struct signatured_type) <type>: Remove.
6008 * dwarf2/read.c
6009 (dwarf2_per_objfile::get_type_for_signatured_type,
6010 dwarf2_per_objfile::set_type_for_signatured_type): New.
6011 (get_signatured_type): Use new methods.
6012
6013 2020-05-27 Tom Tromey <tom@tromey.com>
6014 Simon Marchi <simon.marchi@efficios.com>
6015
6016 * dwarf2/read.h (struct type_unit_group_unshareable): New.
6017 (struct dwarf2_per_objfile) <type_units>: New member.
6018 <get_type_unit_group_unshareable>: New method.
6019 * dwarf2/read.c (struct type_unit_group) <compunit_symtab,
6020 num_symtabs, symtabs>: Remove; move to
6021 type_unit_group_unshareable.
6022 (dwarf2_per_objfile::get_type_unit_group_unshareable): New.
6023 (process_full_type_unit, dwarf2_cu::setup_type_unit_groups)
6024 (dwarf2_cu::setup_type_unit_groups): Use type_unit_group_unshareable.
6025
6026 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
6027
6028 * dwarf2/read.h (struct dwarf2_per_cu_data):
6029 <dwarf2_per_objfile>: Remove.
6030 * dwarf2/read.c (create_cu_from_index_list): Don't assign
6031 dwarf2_per_objfile.
6032 (create_signatured_type_table_from_index): Likewise.
6033 (create_signatured_type_table_from_debug_names): Likewise.
6034 (create_debug_type_hash_table): Likewise.
6035 (fill_in_sig_entry_from_dwo_entry): Likewise.
6036 (create_type_unit_group): Likewise.
6037 (read_comp_units_from_section): Likewise.
6038 (create_cus_hash_table): Likewise.
6039
6040 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
6041
6042 * dwarf2/read.c (process_psymtab_comp_unit): Remove reference to
6043 dwarf2_per_cu_data::dwarf2_per_objfile.
6044 (compute_compunit_symtab_includes): Likewise.
6045 (dwarf2_cu::start_symtab): Likewise.
6046
6047 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
6048
6049 * dwarf2/read.h (dwarf2_get_die_type): Add dwarf2_per_objfile
6050 parameter.
6051 * dwarf2/read.c (get_die_type_at_offset): Likewise.
6052 (read_namespace_alias): Update.
6053 (lookup_die_type): Update.
6054 (dwarf2_get_die_type): Add dwarf2_per_objfile parameter.
6055 * dwarf2/loc.c (class dwarf_evaluate_loc_desc) <get_base_type>:
6056 Update.
6057 (disassemble_dwarf_expression): Update.
6058
6059 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
6060
6061 * dwarf2/read.h (struct dwarf2_queue_item): Add
6062 dwarf2_per_objfile parameter, assign new parameter.
6063 <per_objfile>: New field.
6064 * dwarf2/read.c (free_one_cached_comp_unit): Add
6065 dwarf2_per_objfile parameter.
6066 (queue_comp_unit): Likewise.
6067 (dw2_do_instantiate_symtab): Update.
6068 (process_psymtab_comp_unit): Update.
6069 (maybe_queue_comp_unit): Add dwarf2_per_objfile parameter.
6070 (process_imported_unit_die): Update.
6071 (queue_and_load_dwo_tu): Update.
6072 (follow_die_offset): Update.
6073 (follow_die_sig_1): Update.
6074
6075 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
6076
6077 * dwarf2/read.h (struct dwarf2_per_cu_data) <objfile>: Remove.
6078 * dwarf2/read.c (dwarf2_compute_name): Pass per_objfile down.
6079 (read_call_site_scope): Assign per_objfile.
6080 (dwarf2_per_cu_data::objfile): Remove.
6081 * gdbtypes.h (struct call_site) <per_objfile>: New member.
6082 * dwarf2/loc.h (dwarf2_evaluate_loc_desc): Add
6083 dwarf2_per_objfile parameter.
6084 * dwarf2/loc.c (dwarf2_evaluate_loc_desc_full): Add
6085 dwarf2_per_objfile parameter.
6086 (dwarf_expr_reg_to_entry_parameter): Add output
6087 dwarf2_per_objfile parameter.
6088 (locexpr_get_frame_base): Update.
6089 (class dwarf_evaluate_loc_desc) <get_tls_address>: Update.
6090 <push_dwarf_reg_entry_value>: Update.
6091 <call_site_to_target_addr>: Update.
6092 (dwarf_entry_parameter_to_value): Add dwarf2_per_objfile
6093 parameter.
6094 (value_of_dwarf_reg_entry): Update.
6095 (rw_pieced_value): Update.
6096 (indirect_synthetic_pointer): Update.
6097 (dwarf2_evaluate_property): Update.
6098 (dwarf2_loc_desc_get_symbol_read_needs): Add dwarf2_per_objfile
6099 parameter.
6100 (locexpr_read_variable): Update.
6101 (locexpr_get_symbol_read_needs): Update.
6102 (loclist_read_variable): Update.
6103
6104 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
6105
6106 * dwarf2/read.h (dwarf2_fetch_die_loc_sect_off,
6107 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
6108 dwarf2_fetch_die_type_sect_off): Add dwarf2_per_objfile
6109 parameter.
6110 * dwarf2/read.c (dwarf2_fetch_die_loc_sect_off,
6111 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
6112 dwarf2_fetch_die_type_sect_off): Add dwarf2_per_objfile
6113 parameter.
6114 * dwarf2/loc.c (indirect_synthetic_pointer, per_cu_dwarf_call,
6115 sect_variable_value): Add dwarf2_per_objfile parameter.
6116 (class dwarf_evaluate_loc_desc) <dwarf_call,
6117 dwarf_variable_value>: Update.
6118 (fetch_const_value_from_synthetic_pointer): Add
6119 dwarf2_per_objfile parameter.
6120 (fetch_const_value_from_synthetic_pointer): Update.
6121 (coerced_pieced_ref): Update.
6122 (class symbol_needs_eval_context) <dwarf_call,
6123 dwarf_variable_value>: Update.
6124 (dwarf2_compile_expr_to_ax): Update.
6125
6126 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
6127
6128 * dwarf2/loc.c (allocate_piece_closure): Add dwarf2_per_objfile
6129 parameter.
6130 (dwarf2_evaluate_loc_desc_full): Update.
6131
6132 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
6133
6134 * dwarf2/read.h (dwarf2_read_addr_index): Add dwarf2_per_objfile
6135 parameter.
6136 * dwarf2/read.c (dwarf2_read_addr_index): Likewise.
6137 * dwarf2/loc.c (decode_debug_loclists_addresses): Add
6138 dwarf2_per_objfile parameter.
6139 (decode_debug_loc_dwo_addresses): Likewise.
6140 (dwarf2_find_location_expression): Update.
6141 (class dwarf_evaluate_loc_desc) <get_addr_index>: Update.
6142 (locexpr_describe_location_piece): Add dwarf2_per_objfile
6143 parameter.
6144 (disassemble_dwarf_expression): Add dwarf2_per_objfile
6145 parameter.
6146 (locexpr_describe_location_1): Likewise.
6147 (locexpr_describe_location): Update.
6148
6149 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
6150
6151 * dwarf2/read.h (struct dwarf2_per_cu_data) <text_offset>:
6152 Remove.
6153 * dwarf2/read.c (dwarf2_per_cu_data::text_offset): Remove.
6154 * dwarf2/loc.c (dwarf2_find_location_expression): Update.
6155 (dwarf2_compile_property_to_c): Update.
6156 (dwarf2_compile_expr_to_ax): Add dwarf2_per_objfile parameter,
6157 use text offset from objfile.
6158 (locexpr_tracepoint_var_ref): Update.
6159 (locexpr_generate_c_location): Update.
6160 (loclist_describe_location): Update.
6161 (loclist_tracepoint_var_ref): Update.
6162 * dwarf2/compile.h (compile_dwarf_bounds_to_c): Add
6163 dwarf2_per_objfile parameter.
6164 * dwarf2/loc2c.c (do_compile_dwarf_expr_to_c): Likewise,
6165 use text offset from objfile.
6166 (compile_dwarf_expr_to_c): Add dwarf2_per_objfile parameter.
6167
6168 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
6169
6170 * dwarf2/expr.h (struct dwarf_expr_context)
6171 <dwarf_expr_context>: Add dwarf2_per_objfile parameter.
6172 <offset>: Remove.
6173 <per_objfile>: New member.
6174 * dwarf2/expr.c (dwarf_expr_context::dwarf_expr_context): Add
6175 dwarf2_per_objfile parameter. Don't set offset, set
6176 per_objfile.
6177 (dwarf_expr_context::execute_stack_op): Use offset from objfile.
6178 * dwarf2/frame.c (dwarf2_frame_find_fde): Return (by parameter)
6179 a dwarf2_per_objfile object instead of an offset.
6180 (class dwarf_expr_executor) <dwarf_expr_executor>: Add
6181 constructor.
6182 (execute_stack_op): Add dwarf2_per_objfile parameter, pass it
6183 to dwarf2_expr_executor constructor. Don't set offset.
6184 (dwarf2_fetch_cfa_info): Update.
6185 (struct dwarf2_frame_cache) <text_offset>: Remove.
6186 <per_objfile>: New field.
6187 (dwarf2_frame_cache): Update.
6188 (dwarf2_frame_prev_register): Update.
6189 * dwarf2/loc.c (class dwarf_evaluate_loc_desc)
6190 <dwarf_evaluate_loc_desc>: Add constructor.
6191 (dwarf2_evaluate_loc_desc_full): Update.
6192 (dwarf2_locexpr_baton_eval): Update.
6193 (class symbol_needs_eval_context) <symbol_needs_eval_context>:
6194 Add constructor.
6195 (dwarf2_loc_desc_get_symbol_read_needs): Update.
6196
6197 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
6198
6199 * dwarf2/read.h (struct dwarf2_per_cu_data) <addr_type,
6200 addr_sized_int_type>: Move to dwarf2_cu.
6201 <int_type>: Move to dwarf2_per_objfile.
6202 (struct dwarf2_per_objfile) <int_type>: Move here.
6203 * dwarf2/read.c (struct dwarf2_cu) <addr_type,
6204 addr_sized_int_type>: Move here.
6205 (read_func_scope): Update.
6206 (read_array_type): Update.
6207 (read_tag_string_type): Update.
6208 (attr_to_dynamic_prop): Update.
6209 (dwarf2_per_cu_data::int_type): Rename to...
6210 (dwarf2_per_objfile::int_type): ... this.
6211 (dwarf2_per_cu_data::addr_sized_int_type): Rename to...
6212 (dwarf2_cu::addr_sized_int_type): ... this.
6213 (read_subrange_type): Update.
6214 (dwarf2_per_cu_data::addr_type): Rename to...
6215 (dwarf2_cu::addr_type): ... this.
6216 (set_die_type): Update.
6217
6218 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
6219
6220 * dwarf2/read.c (queue_and_load_all_dwo_tus): Access per_objfile
6221 data through per_cu->cu.
6222
6223 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
6224
6225 * dwarf2/read.c (lookup_dwo_comp_unit): Change
6226 dwarf2_per_cu_data parameter fo dwarf2_cu.
6227 (lookup_dwo_type_unit): Likewise.
6228 (read_cutu_die_from_dwo): Likewise.
6229 (lookup_dwo_unit): Likewise.
6230 (open_and_init_dwo_file): Likewise.
6231 (lookup_dwo_cutu): Likewise.
6232 (lookup_dwo_comp_unit): Likewise.
6233 (lookup_dwo_type_unit): Likewise.
6234 (cutu_reader::init_tu_and_read_dwo_dies): Update.
6235 (cutu_reader::cutu_reader): Update.
6236
6237 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
6238
6239 * dwarf2/read.c (process_full_comp_unit): Add dwarf2_per_objfile
6240 parameter.
6241 (process_full_type_unit): Likewise.
6242 (process_queue): Update.
6243
6244 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
6245
6246 * dwarf2/read.c (recursively_compute_inclusions): Add
6247 dwarf2_per_objfile parameter.
6248 (compute_compunit_symtab_includes): Likewise.
6249 (process_cu_includes): Update.
6250
6251 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
6252
6253 * dwarf2/read.c (create_partial_symtab): Add dwarf2_per_objfile
6254 parameter.
6255 (create_type_unit_group): Update.
6256 (process_psymtab_comp_unit_reader): Update.
6257 (build_type_psymtabs_reader): Update.
6258
6259 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
6260
6261 * dwarf2/read.c (cutu_reader::keep): Access dwarf2_per_objfile
6262 object through m_this_cu->cu.
6263
6264 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
6265
6266 * dwarf2/read.c (queue_and_load_dwo_tu): Expect a dwarf2_cu as
6267 the info parameter.
6268 (queue_and_load_all_dwo_tus): Pass per_cu->cu.
6269
6270 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
6271
6272 * dwarf2/read.c (class cutu_reader) <cutu_reader>: Add
6273 per_objfile parameter.
6274 (load_full_type_unit): Add per_objfile parameter.
6275 (read_signatured_type): Likewise.
6276 (load_full_comp_unit): Likewise.
6277 (load_cu): Likewise.
6278 (dw2_do_instantiate_symtab): Likewise.
6279 (dw2_get_file_names): Likewise.
6280 (dw2_map_symtabs_matching_filename): Update.
6281 (dw_expand_symtabs_matching_file_matcher): Update.
6282 (dw2_map_symbol_filenames): Update.
6283 (process_psymtab_comp_unit): Add per_objfile parameter.
6284 (build_type_psymtabs_1): Update.
6285 (process_skeletonless_type_unit): Update.
6286 (dwarf2_build_psymtabs_hard): Update.
6287 (load_partial_comp_unit): Add per_objfile parameter.
6288 (scan_partial_symbols): Update.
6289 (load_full_comp_unit): Add per_objfile parameter.
6290 (process_imported_unit_die): Update.
6291 (create_cus_hash_table): Update.
6292 (find_partial_die): Update.
6293 (dwarf2_read_addr_index): Update.
6294 (follow_die_offset): Update.
6295 (dwarf2_fetch_die_loc_sect_off): Update.
6296 (dwarf2_fetch_constant_bytes): Update.
6297 (dwarf2_fetch_die_type_sect_off): Update.
6298 (follow_die_sig_1): Update.
6299 (load_full_type_unit): Add per_objfile parameter.
6300 (read_signatured_type): Likewise.
6301
6302 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
6303
6304 * dwarf2/read.c (lookup_dwo_unit): Use bfd_get_filename instead
6305 of objfile_name.
6306
6307 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
6308
6309 * dwarf2/read.h (struct dwarf2_per_bfd) <obfd>: New member.
6310 (dwarf2_get_dwz_file): Replace parameter with dwarf2_per_bfd.
6311 * dwarf2/read.c (dwarf2_per_bfd::dwarf2_per_bfd): Assign obfd
6312 field.
6313 (dwarf2_get_dwz_file): Replace parameter with dwarf2_per_bfd.
6314 (create_cus_from_index): Update.
6315 (dwarf2_read_gdb_index): Update.
6316 (create_cus_from_debug_names): Update.
6317 (dwarf2_read_debug_names): Update.
6318 (get_abbrev_section_for_cu): Update.
6319 (create_all_comp_units): Update.
6320 (read_attribute_value): Update.
6321 (get_debug_line_section): Update.
6322 * dwarf2/index-cache.c (index_cache::store): Update.
6323 * dwarf2/index-write.c (save_gdb_index_command): Update.
6324 * dwarf2/macro.c (dwarf_decode_macro_bytes): Update.
6325
6326 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
6327
6328 * dwarf2/read.h (struct dwarf2_per_cu_data) <per_bfd>: New
6329 member.
6330 * dwarf2/read.c (dwarf2_per_bfd::allocate_per_cu): Initialize
6331 dwarf2_per_cu_data::per_bfd.
6332 (dwarf2_per_bfd::allocate_signatured_type): Likewise.
6333 (create_type_unit_group): Likewise.
6334 (queue_comp_unit): Remove reference to
6335 per_cu->dwarf2_per_objfile.
6336 (maybe_queue_comp_unit): Likewise.
6337 (fill_in_sig_entry_from_dwo_entry): Assign new field.
6338 (create_cus_hash_table): Assign new field.
6339
6340 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
6341
6342 * dwarf2/read.c: Replace
6343 dwarf2_cu->per_cu->dwarf2_per_objfile references with
6344 dwarf2_cu->per_objfile throughout.
6345
6346 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
6347
6348 * dwarf2/read.c (dw2_do_instantiate_symtab): Add per_objfile
6349 parameter, don't use per_cu->dwarf2_per_objfile.
6350 (dw2_instantiate_symtab): Likewise.
6351 (dw2_find_last_source_symtab): Update.
6352 (dw2_map_expand_apply): Update.
6353 (dw2_lookup_symbol): Update.
6354 (dw2_expand_symtabs_for_function): Update.
6355 (dw2_expand_all_symtabs): Update.
6356 (dw2_expand_symtabs_with_fullname): Update.
6357 (dw2_expand_symtabs_matching_one): Add per_objfile parameter,
6358 don't use per_cu->dwarf2_per_objfile.
6359 (dw2_expand_marked_cus): Update.
6360 (dw2_find_pc_sect_compunit_symtab): Update.
6361 (dw2_debug_names_lookup_symbol): Update.
6362 (dw2_debug_names_expand_symtabs_for_function): Update.
6363 (dw2_debug_names_map_matching_symbols): Update.
6364 (dwarf2_psymtab::expand_psymtab): Update.
6365
6366 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
6367
6368 * dwarf2/read.c (struct dwarf2_cu) <dwarf2_cu>: Add parameter.
6369 <per_objfile>: New member.
6370 (class cutu_reader) <init_tu_and_read_dwo_dies>: Add parameter.
6371 (cutu_reader::init_tu_and_read_dwo_dies): Add parameter, update
6372 call to dwarf2_cu.
6373 (cutu_reader::cutu_reader): Update.
6374 (dwarf2_cu::dwarf2_cu): Add parameter, initialize per_objfile.
6375
6376 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
6377
6378 * dwarf2/read.h (struct dwarf2_per_bfd) <die_type_hash>: Move to
6379 struct dwarf2_per_objfile.
6380 (struct dwarf2_per_objfile) <die_type_hash>: Move from struct
6381 dwarf2_per_bfd.
6382 * dwarf2/read.c (set_die_type): Update.
6383 (get_die_type_at_offset): Update.
6384
6385 2020-05-27 Tom Tromey <tom@tromey.com>
6386 Simon Marchi <simon.marchi@efficios.com>
6387
6388 * dwarf2/read.h (struct dwarf2_per_bfd) <num_psymtabs>: New
6389 method.
6390 (struct dwarf2_per_objfile) <resize_symtabs, symtab_set_p,
6391 get_symtab, set_symtab>: New methods.
6392 <m_symtabs>: New field.
6393 (struct dwarf2_psymtab): Derive from partial_symtab.
6394 <readin_p, get_compunit_symtab>: Declare methods.
6395 * dwarf2/read.c (dwarf2_per_objfile::symtab_set_p,
6396 dwarf2_per_objfile::get_symtab, dwarf2_per_objfile::set_symtab):
6397 New methods.
6398 (struct dwarf2_per_cu_quick_data) <compunit_symtab>: Remove.
6399 (dw2_do_instantiate_symtab, dw2_instantiate_symtab)
6400 (dw2_map_expand_apply, dw2_map_symtabs_matching_filename)
6401 (dw2_symtab_iter_next, dw2_print_stats)
6402 (dw2_expand_symtabs_with_fullname)
6403 (dw2_expand_symtabs_matching_one)
6404 (dw_expand_symtabs_matching_file_matcher)
6405 (dw2_find_pc_sect_compunit_symtab, dw2_map_symbol_filenames)
6406 (dw2_debug_names_iterator::next)
6407 (dw2_debug_names_map_matching_symbols)
6408 (fill_in_sig_entry_from_dwo_entry, dwarf2_psymtab::read_symtab)
6409 (process_queue, dwarf2_psymtab::expand_psymtab): Update.
6410 (dwarf2_psymtab::readin_p, dwarf2_psymtab::get_compunit_symtab):
6411 New methods.
6412 (get_compunit_symtab, process_full_comp_unit)
6413 (process_full_type_unit): Update.
6414 (dwarf2_build_psymtabs, dwarf2_initialize_objfile, add_type_unit): Call
6415
6416 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
6417
6418 * dwarf2/read.h (dwarf2_per_objfile): Rename to dwarf2_per_bfd,
6419 then introduce a new dwarf2_per_objfile type.
6420 <read_line_string>: Move to the new dwarf2_per_objfile type.
6421 <objfile>: Likewise.
6422 (dwarf2_per_bfd): Rename dwarf2_per_objfile to this.
6423 * dwarf2/read.c: Replace references to dwarf2_per_objfile with
6424 dwarf2_per_objfile->per_bfd.
6425 (dwarf2_per_objfile::dwarf2_per_objfile): Rename to...
6426 (dwarf2_per_bfd::dwarf2_per_bfd): ... this.
6427 (dwarf2_per_objfile::free_cached_comp_units): Rename to...
6428 (dwarf2_per_bfd::free_cached_comp_units): ... this.
6429 (dwarf2_has_info): Allocate dwarf2_per_bfd.
6430 (dwarf2_per_objfile::locate_sections): Rename to...
6431 (dwarf2_per_bfd::locate_sections): ... this.
6432 (dwarf2_per_objfile::get_cutu): Rename to...
6433 (dwarf2_per_bfd::get_cutu): ... this.
6434 (dwarf2_per_objfile::get_cu): Rename to...
6435 (dwarf2_per_bfd::get_cu): ... this.
6436 (dwarf2_per_objfile::get_tu): Rename to...
6437 (dwarf2_per_bfd::get_tu): ... this.
6438 (dwarf2_per_objfile::allocate_per_cu): Rename to...
6439 (dwarf2_per_bfd::allocate_per_cu): ... this.
6440 (dwarf2_per_objfile::allocate_signatured_type): Rename to...
6441 (dwarf2_per_bfd::allocate_signatured_type): ... this.
6442 (get_gdb_index_contents_ftype): Change parameter from
6443 dwarf2_per_objfile to dwarf2_per_bfd.
6444 * dwarf2/macro.c, dwarf2/index-write.c: Replace references to
6445 dwarf2_per_objfile with dwarf2_per_objfile->per_bfd.
6446
6447 2020-05-27 Tom Tromey <tom@tromey.com>
6448 Simon Marchi <simon.marchi@efficios.com>
6449
6450 * dwarf2/loc.c (struct piece_closure) <per_objfile>: New member.
6451 (allocate_piece_closure): Set "per_objfile" member.
6452 (dwarf2_find_location_expression, dwarf2_locexpr_baton_eval)
6453 (locexpr_describe_location, loclist_describe_location): Use new
6454 member.
6455 * dwarf2/read.c (read_call_site_scope)
6456 (mark_common_block_symbol_computed, attr_to_dynamic_prop)
6457 (dwarf2_const_value_attr, dwarf2_fetch_die_loc_sect_off)
6458 (fill_in_loclist_baton, dwarf2_symbol_mark_computed,
6459 handle_data_member_location): Set per_objfile member.
6460 * dwarf2/loc.h (struct dwarf2_locexpr_baton) <per_objfile>: New
6461 member.
6462 (struct dwarf2_loclist_baton) <per_objfile>: New member.
6463
6464 2020-05-27 Tom Tromey <tom@tromey.com>
6465
6466 * dwarf2/read.h (struct dwarf2_per_objfile) <allocate_per_cu,
6467 allocate_signatured_type>: Declare new methods.
6468 <m_num_psymtabs>: New member.
6469 (struct dwarf2_per_cu_data) <index>: New member.
6470 * dwarf2/read.c (dwarf2_per_objfile::allocate_per_cu)
6471 (dwarf2_per_objfile::allocate_signatured_type): New methods.
6472 (create_cu_from_index_list): Use allocate_per_cu.
6473 (create_signatured_type_table_from_index)
6474 (create_signatured_type_table_from_debug_names)
6475 (create_debug_type_hash_table, add_type_unit)
6476 (read_comp_units_from_section): Use allocate_signatured_type.
6477
6478 2020-05-27 Tom Tromey <tom@tromey.com>
6479
6480 * psymtab.c (partial_map_expand_apply)
6481 (psym_find_pc_sect_compunit_symtab, psym_lookup_symbol)
6482 (psym_lookup_global_symbol_language)
6483 (psymtab_to_symtab, psym_find_last_source_symtab, dump_psymtab)
6484 (psym_print_stats, psym_expand_symtabs_for_function)
6485 (psym_map_symbol_filenames, psym_map_matching_symbols)
6486 (psym_expand_symtabs_matching)
6487 (partial_symtab::read_dependencies, maintenance_info_psymtabs)
6488 (maintenance_check_psymtabs): Update.
6489 * psympriv.h (struct partial_symtab) <readin_p,
6490 get_compunit_symtab>: Add objfile parameter.
6491 (struct standard_psymtab) <readin_p, get_compunit_symtab>:
6492 Likewise.
6493 * dwarf2/read.c (struct dwarf2_include_psymtab) <readin_p,
6494 get_compunit_symtab>: Likewise.
6495 (dwarf2_psymtab::expand_psymtab): Pass objfile argument.
6496
6497 2020-05-27 Tom Tromey <tom@tromey.com>
6498
6499 * dwarf2/read.h (struct dwarf2_per_objfile) <obstack>: New
6500 member.
6501 * dwarf2/read.c (delete_file_name_entry): Fix comment.
6502 (create_cu_from_index_list)
6503 (create_signatured_type_table_from_index)
6504 (create_signatured_type_table_from_debug_names)
6505 (dw2_get_file_names_reader, dwarf2_initialize_objfile)
6506 (dwarf2_create_include_psymtab)
6507 (create_debug_type_hash_table, add_type_unit)
6508 (create_type_unit_group, read_comp_units_from_section)
6509 (dwarf2_compute_name, create_cus_hash_table)
6510 (create_dwp_hash_table, create_dwo_unit_in_dwp_v1)
6511 (create_dwo_unit_in_dwp_v2, open_and_init_dwp_file): Use new
6512 obstack.
6513 (dw2_get_real_path): Likewise. Change argument to
6514 dwarf2_per_objfile.
6515
6516 2020-05-27 Luis Machado <luis.machado@linaro.org>
6517
6518 PR tdep/26000
6519 * arm-tdep.c (thumb_analyze_prologue): Fix instruction matching
6520 for ldrd (immediate).
6521
6522 2020-05-26 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6523
6524 * command.h: Add comment giving the name of class_tui.
6525 * cli/cli-cmds.c (_initialize_cli_cmds): If TUI defined,
6526 create the fake command for the help for class_tui.
6527
6528 2020-05-26 Tom Tromey <tromey@adacore.com>
6529
6530 * ada-lang.c (ada_print_array_index): Change type. Call val_atr.
6531 (ada_value_ptr_subscript): Don't call pos_atr on the lower bound.
6532 (val_atr): New function.
6533 (value_val_atr): Use it.
6534 * ada-valprint.c (print_optional_low_bound): Change low bound
6535 handling for enums.
6536 (val_print_packed_array_elements): Don't call discrete_position.
6537 * gdbtypes.c (get_discrete_bounds) <TYPE_CODE_RANGE>: Call
6538 discrete_position for enum types.
6539 * language.c (default_print_array_index): Change type.
6540 * language.h (struct language_defn) <la_print_array_index>: Add
6541 index_type parameter, change type of index_value.
6542 (LA_PRINT_ARRAY_INDEX): Add index_type parameter.
6543 (default_print_array_index): Update.
6544 * valprint.c (maybe_print_array_index): Don't call
6545 value_from_longest. Update.
6546 (value_print_array_elements): Don't call discrete_position.
6547
6548 2020-05-26 Tom Tromey <tromey@adacore.com>
6549
6550 * ada-lang.c (value_val_atr): Handle TYPE_CODE_RANGE.
6551 * gdbtypes.c (discrete_position): Handle TYPE_CODE_RANGE.
6552
6553 2020-05-25 Cristiano De Alti <cristiano_dealti@hotmail.com>
6554
6555 PR gdb/13519
6556 * avr-tdep.c (avr_integer_to_address): Return data or code
6557 address accordingly to the second 'type' argument of the
6558 function.
6559
6560 2020-05-25 Michael Weghorn <m.weghorn@posteo.de>
6561
6562 * infcmd.c, inferior.h: (construct_inferior_arguments):
6563 Moved function from here to gdbsupport/common-inferior.{h,cc}
6564
6565 2020-05-23 Tom Tromey <tom@tromey.com>
6566
6567 Revert commit eca1f90c:
6568 * NEWS: Remove entry for completion styling.
6569 * completer.c (_rl_completion_prefix_display_length): Move
6570 declaration later.
6571 (gdb_fnprint): Revert.
6572 (gdb_display_match_list_1): Likewise.
6573 * cli/cli-style.c (completion_prefix_style)
6574 (completion_difference_style, completion_suffix_style): Remove.
6575 (_initialize_cli_style): Revert.
6576 * cli/cli-style.h (completion_prefix_style)
6577 (completion_difference_style, completion_suffix_style): Don't
6578 declare.
6579
6580 2020-05-24 Pedro Alves <palves@redhat.com>
6581
6582 * symtab.c (completion_list_add_name): Return boolean indication
6583 of whether the symbol matched.
6584 (completion_list_add_symbol): Don't try to remove C++ aliases if
6585 the symbol didn't match in the first place.
6586 * symtab.h (completion_list_add_name): Return bool.
6587
6588 2020-05-23 Simon Marchi <simon.marchi@polymtl.ca>
6589
6590 * gdbtypes.h (TYPE_FIELD): Remove. Replace all uses with
6591 type::field.
6592
6593 2020-05-23 Joel Brobecker <brobecker@adacore.com>
6594
6595 GDB 9.2 released.
6596
6597 2020-05-23 Tom Tromey <tom@tromey.com>
6598
6599 * NEWS: Add entry for completion styling.
6600 * completer.c (_rl_completion_prefix_display_length): Move
6601 declaration earlier.
6602 (gdb_fnprint): Use completion_style.
6603 (gdb_display_match_list_1): Likewise.
6604 * cli/cli-style.c (completion_prefix_style)
6605 (completion_difference_style, completion_suffix_style): New
6606 globals.
6607 (_initialize_cli_style): Register new globals.
6608 * cli/cli-style.h (completion_prefix_style)
6609 (completion_difference_style, completion_suffix_style): Declare.
6610
6611 2020-05-23 Pedro Alves <palves@redhat.com>
6612
6613 * utils.c: Include "gdbsupport/gdb-safe-ctype.h".
6614 (parse_escape): Use ISDIGIT instead of isdigit.
6615 (puts_debug): Use gdb_isprint instead of isprint.
6616 (fprintf_symbol_filtered): Use ISALNUM instead of isalnum.
6617 (cp_skip_operator_token, skip_ws, strncmp_iw_with_mode): Use
6618 ISSPACE instead of isspace.
6619 (strncmp_iw_with_mode): Use TOLOWER instead of tolower and ISSPACE
6620 instead of isspace.
6621 (strcmp_iw_ordered): Use ISSPACE instead of isspace.
6622 (string_to_core_addr): Use TOLOWER instead of tolower, ISXDIGIT
6623 instead of isxdigit and ISDIGIT instead of isdigit.
6624
6625 2020-05-22 Simon Marchi <simon.marchi@efficios.com>
6626
6627 * gdbtypes.h (struct type) <field>: New method.
6628 (TYPE_FIELDS): Remove, replace all uses with either type::fields
6629 or type::field.
6630
6631 2020-05-22 Simon Marchi <simon.marchi@efficios.com>
6632
6633 * gdbtypes.h (struct type) <fields, set_fields>: New methods.
6634 (TYPE_FIELDS): Use type::fields. Change all call sites that
6635 modify the propery to use type::set_fields instead.
6636
6637 2020-05-22 Simon Marchi <simon.marchi@efficios.com>
6638
6639 * gdbtypes.h (TYPE_NFIELDS): Remove. Change all cal sites to use
6640 type::num_fields instead.
6641
6642 2020-05-22 Simon Marchi <simon.marchi@efficios.com>
6643
6644 * gdbtypes.h (struct type) <num_fields, set_num_fields>: New
6645 methods.
6646 (TYPE_NFIELDS): Use type::num_fields. Change all call sites
6647 that modify the number of fields to use type::set_num_fields
6648 instead.
6649
6650 2020-05-22 Tom Tromey <tromey@adacore.com>
6651
6652 * compile/compile-object-load.h (munmap_list_free): Don't
6653 declare.
6654
6655 2020-05-22 Andrew Burgess <andrew.burgess@embecosm.com>
6656
6657 * annotate.c (annotate_source_line): Update return type, add call
6658 to update current symtab and line.
6659 * annotate.h (annotate_source_line): Update return type, and
6660 extend header comment.
6661 * source.c (info_line_command): Check annotation_level before
6662 calling annotate_source_line.
6663 * stack.c (print_frame_info): If calling annotate_source_line
6664 returns true, then don't print any other source line information.
6665
6666 2020-05-21 Simon Marchi <simon.marchi@efficios.com>
6667
6668 * lm32-tdep.c (lm32_register_reggroup_p): Fix condition.
6669
6670 2020-05-21 Simon Marchi <simon.marchi@efficios.com>
6671
6672 * coffread.c (patch_type): Remove NULL check before xfree.
6673 * corefile.c (set_gnutarget): Likewise.
6674 * cp-abi.c (set_cp_abi_as_auto_default): Likewise.
6675 * exec.c (build_section_table): Likewise.
6676 * remote.c (remote_target::pass_signals): Likewise.
6677 * utils.c (n_spaces): Likewise.
6678 * cli/cli-script.c (document_command): Likewise.
6679 * i386-windows-tdep.c (core_process_module_section): Likewise.
6680 * linux-fork.c (struct fork_info) <~fork_info>: Likewise.
6681
6682 2020-05-20 Simon Marchi <simon.marchi@efficios.com>
6683
6684 * symfile.c (reread_symbols): Clear objfile's section_offsets
6685 vector and section indices, re-compute them by calling
6686 sym_offsets.
6687
6688 2020-05-20 Tom Tromey <tromey@adacore.com>
6689
6690 * ada-lang.c (bound_name, MAX_ADA_DIMENS): Remove.
6691 (desc_one_bound, desc_index_type): Compute field name.
6692
6693 2020-05-20 Tom de Vries <tdevries@suse.de>
6694
6695 PR symtab/25833
6696 * dwarf2/read.c (dw2_map_matching_symbols): Handle .gdb_index.
6697
6698 2020-05-20 Alan Modra <amodra@gmail.com>
6699
6700 PR 25993
6701 * solib-darwin.c (darwin_bfd_open): Don't strdup pathname for
6702 bfd_set_filename.
6703 * solib-aix.c (solib_aix_bfd_open): Use std::string for name
6704 passed to bfd_set_filename.
6705 * symfile-mem.c (add_vsyscall_page): Likewise for string
6706 passed to symbol_file_add_from_memory.
6707 (symbol_file_add_from_memory): Make name param a const char* and
6708 don't strdup.
6709
6710 2020-05-20 Alan Modra <amodra@gmail.com>
6711
6712 * coff-pe-read.c (read_pe_exported_syms): Use bfd_get_filename
6713 rather than accessing bfd->filename directly.
6714 * dtrace-probe.c (dtrace_static_probe_ops::get_probes): Likewise,
6715 and use bfd_section_name.
6716 * dwarf2/frame.c (decode_frame_entry): Likewise.
6717 * exec.c (exec_set_section_address): Likewise.
6718 * solib-aix.c (solib_aix_bfd_open): Likewise.
6719 * stap-probe.c (get_stap_base_address): Likewise.
6720 * symfile.c (reread_symbols): Likewise.
6721
6722 2020-05-19 Tom Tromey <tromey@adacore.com>
6723
6724 * sparc64-tdep.c (adi_tag_fd): Update call to target_fileio_open.
6725
6726 2020-05-19 Simon Marchi <simon.marchi@efficios.com>
6727
6728 * dwarf2/read.c (quirk_rust_enum): Allocate enough fields.
6729
6730 2020-05-19 Pedro Alves <palves@redhat.com>
6731
6732 * NEWS (set exec-file-mismatch): Adjust entry.
6733 * exec.c: Include "build-id.h".
6734 (validate_exec_file): Try to match build IDs instead of filenames.
6735 * gdb_bfd.c (struct gdb_bfd_open_closure): New.
6736 (gdb_bfd_iovec_fileio_open): Adjust to use gdb_bfd_open_closure
6737 and pass down 'warn_if_slow'.
6738 (gdb_bfd_open): Add 'warn_if_slow' parameter. Use
6739 gdb_bfd_open_closure to pass it down.
6740 * gdb_bfd.h (gdb_bfd_open): Add 'warn_if_slow' parameter.
6741
6742 2020-05-19 Pedro Alves <palves@redhat.com>
6743
6744 * gdb_bfd.c (gdb_bfd_iovec_fileio_open): Adjust.
6745 * target.c (target_fileio_open_1): Rename to target_fileio_open
6746 and make extern. Use bool.
6747 (target_fileio_open, target_fileio_open_warn_if_slow): Delete.
6748 (target_fileio_read_alloc_1): Adjust.
6749 * target.h (target_fileio_open): Add 'warn_if_slow' parameter.
6750 (target_fileio_open_warn_if_slow): Delete declaration.
6751
6752 2020-05-19 Pedro Alves <palves@redhat.com>
6753
6754 * gdb_bfd.h: (gdb_bfd_open): Default to 'fd' parameter to -1.
6755 Adjust all callers.
6756
6757 2020-05-19 Yoshinori Sato <ysato@users.sourceforge.jp>
6758
6759 * h8300-tdep.c (h8300_is_argument_spill): Change how we check
6760 whether disp is negative.
6761
6762 2020-05-19 Simon Marchi <simon.marchi@efficios.com>
6763
6764 * symfile.h (struct symfile_segment_data)
6765 <~symfile_segment_data>: Remove.
6766 <segment_info>: Change to std::vector.
6767 * symfile.c (default_symfile_segments): Update.
6768 * elfread.c (elf_symfile_segments): Update.
6769
6770 2020-05-19 Simon Marchi <simon.marchi@efficios.com>
6771
6772 * symfile.h (struct symfile_segment_data) <struct segment>: New.
6773 <segments>: New.
6774 <segment_bases, segment_sizes>: Remove.
6775 * symfile.c (default_symfile_segments): Update.
6776 * elfread.c (elf_symfile_segments): Update.
6777 * remote.c (remote_target::get_offsets): Update.
6778 * solib-target.c (solib_target_relocate_section_addresses):
6779 Update.
6780
6781 2020-05-19 Simon Marchi <simon.marchi@efficios.com>
6782
6783 * symfile.h (struct symfile_segment_data): Initialize fields.
6784 <~symfile_segment_data>: Add.
6785 (symfile_segment_data_up): New.
6786 (struct sym_fns) <sym_segments>: Return a
6787 symfile_segment_data_up.
6788 (default_symfile_segments): Return a symfile_segment_data_up.
6789 (free_symfile_segment_data): Remove.
6790 (get_symfile_segment_data): Return a symfile_segment_data_up.
6791 * symfile.c (default_symfile_segments): Likewise.
6792 (get_symfile_segment_data): Likewise.
6793 (free_symfile_segment_data): Remove.
6794 (symfile_find_segment_sections): Update.
6795 * elfread.c (elf_symfile_segments): Return a
6796 symfile_segment_data_up.
6797 * remote.c (remote_target::get_offsets): Update.
6798 * solib-target.c (solib_target_relocate_section_addresses):
6799 Update.
6800 * symfile-debug.c (debug_sym_segments): Return a
6801 symfile_segment_data_up.
6802
6803 2020-05-18 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
6804
6805 PR build/25981
6806 * i386-sol2-nat.c [PR_MODEL_NATIVE != PR_MODEL_LP64] (regmap):
6807 Hardcode register numbers.
6808
6809 PR build/25981
6810 * procfs.c [(__i386__ || __x86_64__) && sun] (proc_get_LDT_entry,
6811 procfs_find_LDT_entry): Remove.
6812 * procfs.h [(__i386__ || __x86_64__) && sun] (struct ssd,
6813 procfs_find_LDT_entry): Remove.
6814 * sol-thread.c [(__i386__ || __x86_64__) && sun] (ps_lgetLDT):
6815 Remove.
6816
6817 2020-05-17 Pedro Alves <palves@redhat.com>
6818 Andrew Burgess <andrew.burgess@embecosm.com>
6819 Keno Fischer <keno@juliacomputing.com>
6820
6821 PR gdb/25741
6822 * breakpoint.c (build_target_condition_list): Update comments.
6823 (build_target_command_list): Update comments and skip matching
6824 locations.
6825 (insert_bp_location): Move "set breakpoint auto-hw on" handling to
6826 a separate function. Simplify "set breakpoint auto-hw off"
6827 handling.
6828 (insert_breakpoints): Update comment.
6829 (tracepoint_locations_match): New parameter. For breakpoints,
6830 compare location types too, if the caller wants to.
6831 (handle_automatic_hardware_breakpoints): New functions.
6832 (bp_location_is_less_than): Also sort by location type and
6833 hardware breakpoint length.
6834 (update_global_location_list): Handle "set breakpoint auto-hw on"
6835 here.
6836 (update_breakpoint_locations): Ask breakpoint_locations_match to
6837 ignore location types.
6838
6839 2020-05-16 Simon Marchi <simon.marchi@efficios.com>
6840
6841 * gdbtypes.h (TYPE_NAME): Remove. Change all cal sites to use
6842 type::name instead.
6843
6844 2020-05-16 Simon Marchi <simon.marchi@efficios.com>
6845
6846 * gdbtypes.h (struct type) <name, set_name>: New methods.
6847 (TYPE_CODE): Use type::name. Change all call sites used to set
6848 the name to use type::set_name instead.
6849
6850 2020-05-16 Tom Tromey <tom@tromey.com>
6851
6852 * top.c (quit_force): Update.
6853 * infrun.c (handle_no_resumed): Update.
6854 * top.h (all_uis): New function.
6855 (ALL_UIS): Remove.
6856
6857 2020-05-16 Simon Marchi <simon.marchi@efficios.com>
6858
6859 * mips-linux-tdep.c (mips_linux_in_dynsym_stub): Fix condition.
6860
6861 2020-05-16 Pedro Alves <palves@redhat.com>
6862
6863 * ia64-linux-nat.c
6864 (ia64_linux_nat_target) <enable_watchpoints_in_psr(ptid_t)>:
6865 Declare method.
6866 (enable_watchpoints_in_psr): Now a method of ia64_linux_nat_target.
6867
6868 2020-05-15 Simon Marchi <simon.marchi@efficios.com>
6869
6870 * sparc64-tdep.c (adi_stat_t): Remove typedef (leaving struct).
6871 (sparc64_adi_info): Likewise.
6872
6873 2020-05-15 Tom Tromey <tom@tromey.com>
6874
6875 * symtab.c (lookup_language_this, lookup_symbol_aux): Use
6876 block_objfile.
6877 (lookup_objfile_from_block): Remove.
6878 (lookup_symbol_in_block, lookup_symbol_in_static_block)
6879 (lookup_global_symbol): Use block_objfile.
6880 * symtab.h (lookup_objfile_from_block): Don't declare.
6881 * printcmd.c (clear_dangling_display_expressions): Use
6882 block_objfile.
6883 * parse.c (operator_check_standard): Use block_objfile.
6884
6885 2020-05-15 Tom Tromey <tom@tromey.com>
6886
6887 * language.c (language_alloc_type_symbol): Set
6888 SYMBOL_SECTION.
6889 * symtab.c (initialize_objfile_symbol): Remove.
6890 (allocate_symbol): Remove.
6891 (allocate_template_symbol): Remove.
6892 * dwarf2/read.c (fixup_go_packaging): Use "new".
6893 (new_symbol): Use "new".
6894 (read_variable): Don't call initialize_objfile_symbol. Use
6895 "new".
6896 (read_func_scope): Use "new".
6897 * xcoffread.c (process_xcoff_symbol): Don't call
6898 initialize_objfile_symbol.
6899 (SYMBOL_DUP): Remove.
6900 * coffread.c (process_coff_symbol, coff_read_enum_type): Use
6901 "new".
6902 * symtab.h (allocate_symbol, initialize_objfile_symbol)
6903 (allocate_template_symbol): Don't declare.
6904 (struct symbol): Add copy constructor. Change defaults.
6905 * jit.c (finalize_symtab): Use "new".
6906 * ctfread.c (ctf_add_enum_member_cb, new_symbol, ctf_add_var_cb):
6907 Use "new".
6908 * stabsread.c (patch_block_stabs, define_symbol, read_enum_type)
6909 (common_block_end): Use "new".
6910 * mdebugread.c (parse_symbol): Use "new".
6911 (new_symbol): Likewise.
6912
6913 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6914
6915 * NEWS: Mention changes to help and apropos.
6916
6917 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6918
6919 * command.h (enum command_class): Improve comments, document
6920 that class_alias is for user-defined aliases, give the class
6921 name for each class, remove unused class_xdb.
6922 * cli/cli-decode.c (add_com_alias): Document THECLASS intended usage.
6923 * breakpoint.c (_initialize_breakpoint): Replace class_alias
6924 by a precise class.
6925 * infcmd.c (_initialize_infcmd): Likewise.
6926 * reverse.c (_initialize_reverse): Likewise.
6927 * stack.c (_initialize_stack): Likewise.
6928 * symfile.c (_initialize_symfile): Likewise.
6929 * tracepoint.c (_initialize_tracepoint): Likewise.
6930
6931 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6932
6933 * cli/cli-decode.c (apropos_cmd): Produce output for aliases
6934 when their aliased command is traversed.
6935 (help_cmd): Add fput_command_names_styled call to
6936 output command name and aliases when command has an alias.
6937
6938 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6939
6940 * cli/cli-decode.h (help_cmd_list): Remove declaration.
6941 * cli/cli-decode.c (help_cmd_list): Declare as static,
6942 remove prefix argument, use bool for recurse arg, rework to show the aliases of
6943 a command together with the command.
6944 (fput_command_name_styled, fput_command_names_styled): New functions.
6945 (print_help_for_command): Remove prefix arg, use bool for recurse arg, use
6946 fput_command_name_styled.
6947 (help_list, help_all): Update callers to remove prefix arg and use bool recurse.
6948 * cli/cli-cmds.c (_initialize_cli_cmds): Update alias_command doc.
6949
6950 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6951
6952 * cli/cli-setshow.h (cmd_show_list): Remove prefix argument.
6953 * cli/cli-decode.c (do_show_prefix_cmd): Likewise.
6954 * command.h (cmd_show_list): Likewise.
6955 * dwarf2/index-cache.c (show_index_cache_command): Likewise.
6956 * cli/cli-setshow.c (cmd_show_list): Use the prefix to produce the output. Skip aliases.
6957
6958 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6959
6960 * unittests/command-def-selftests.c (traverse_command_structure):
6961 Verify all commands of a list have the same prefix command and
6962 that only the top cmdlist commands have a null prefix.
6963
6964 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6965
6966 * cli/cli-decode.c (lookup_cmd_for_prefix): Return the aliased command
6967 as prefix, not one of its aliases.
6968 (set_cmd_prefix): Remove.
6969 (do_add_cmd): Centralize the setting of the prefix of a command, when
6970 command is defined after its full chain of prefix commands.
6971 (add_alias_cmd): Remove call to set_cmd_prefix, as do_add_cmd does it.
6972 (add_setshow_cmd_full): Likewise.
6973 (update_prefix_field_of_prefixed_commands): New function.
6974 (add_prefix_cmd): Replace non working call to set_cmd_prefix by
6975 update_prefix_field_of_prefixed_commands.
6976 * gdb/remote-fileio.c (initialize_remote_fileio): Use the real
6977 addresses of remote_set_cmdlist and remote_show_cmdlist given
6978 as argument, not the address of an argument.
6979 * gdb/remote-fileio.h (initialize_remote_fileio): Likewise.
6980 * gdb/remote.c (_initialize_remote): Likewise.
6981
6982 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6983
6984 * cli/cli-cmds.c (alias_command): Check for an existing alias
6985 using lookup_cmd_composition, as valid_command_p is too strict
6986 and forbids aliases that are the prefix of an existing alias
6987 or command.
6988 * cli/cli-decode.c (lookup_cmd_composition): Ensure a prefix
6989 command is properly recognised as a valid command.
6990
6991 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6992
6993 * unittests/help-doc-selftests.c: Rename to
6994 unittests/command-def-selftests.c
6995 * unittests/command-def-selftests.c (help_doc_tests): Update some
6996 comments.
6997 (command_structure_tests, traverse_command_structure): New namespace
6998 and function.
6999 (command_structure_invariants_tests): New function.
7000 (_initialize_command_def_selftests) Renamed from
7001 _initialize_help_doc_selftests, register command_structure_invariants
7002 selftest.
7003
7004 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
7005
7006 * cli/cli-cmds.c (_initialize_cli_cmds): Define 'info set' as
7007 an alias of 'show'.
7008
7009 2020-05-15 Joel Brobecker <brobecker@adacore.com>
7010
7011 * ada-lang.h: (ada_is_gnat_encoded_fixed_point_type): Renames
7012 ada_is_fixed_point_type. Update all callers.
7013 (gnat_encoded_fixed_point_delta): Renames ada_delta. Update
7014 all callers.
7015 * ada-lang.c (gnat_encoded_fixed_type_info): Renames fixed_type_info.
7016 Update all callers.
7017 * ada-typeprint.c (print_gnat_encoded_fixed_point_type): Renames
7018 print_fixed_point_type. Update all callers.
7019 * ada-valprint.c (ada_value_print_num): Replace call to
7020 ada_is_fixed_point_type by ada_is_gnat_encoded_fixed_point_type.
7021
7022 2020-05-14 Kevin Buettner <kevinb@redhat.com>
7023
7024 * nat/linux-btrace.c (btrace_this_cpu): Add check for AMD
7025 processors.
7026 (cpu_supports_bts): Add CV_AMD case.
7027
7028 2020-05-14 Laurent Morichetti <Laurent.Morichetti@amd.com>
7029 Simon Marchi <simon.marchi@efficios.com>
7030
7031 * infrun.c (stop_all_threads): Collect multiple wait events at
7032 each pass.
7033
7034 2020-05-14 Simon Marchi <simon.marchi@efficios.com>
7035
7036 * gdbtypes.h (TYPE_CODE): Remove. Change all call sites to use
7037 type::code instead.
7038
7039 2020-05-14 Simon Marchi <simon.marchi@efficios.com>
7040
7041 * gdbtypes.h (struct type) <code, set_code>: New methods.
7042 (TYPE_CODE): Use type::code. Change all call sites used to set
7043 the code to use type::set_code instead.
7044
7045 2020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
7046 Tom de Vries <tdevries@suse.de>
7047 Pedro Alves <palves@redhat.com>
7048
7049 PR threads/25478
7050 * infrun.c (stop_all_threads): Do NOT ignore
7051 TARGET_WAITKIND_NO_RESUMED, TARGET_WAITKIND_THREAD_EXITED,
7052 TARGET_WAITKIND_EXITED, TARGET_WAITKIND_SIGNALLED wait statuses
7053 received.
7054 (handle_no_resumed): Remove code handling a live inferior with no
7055 threads.
7056 * remote.c (has_single_non_exited_thread): New.
7057 (remote_target::update_thread_list): Do not delete a thread if is
7058 the last thread of the process.
7059 * thread.c (thread_select): Call delete_exited_threads instead of
7060 prune_threads.
7061
7062 2020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
7063
7064 * infrun.c (stop_all_threads): Enable/disable thread events of all
7065 targets. Move a debug message denoting the end of the function
7066 into the SCOPED_EXIT block.
7067
7068 2020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
7069
7070 * process-stratum-target.h: Include <set>.
7071 (all_non_exited_process_targets, switch_to_target_no_thread): New
7072 function declarations.
7073 * process-stratum-target.c (all_non_exited_process_targets)
7074 (switch_to_target_no_thread): New function implementations.
7075
7076 2020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
7077
7078 * infrun.c (handle_inferior_event): Extract out a piece of code
7079 into...
7080 (mark_non_executing_threads): ...this new function.
7081
7082 2020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
7083
7084 * infrun.c (resume_1): Move a 'regcache_read_pc' call down to first
7085 use.
7086
7087 2020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
7088
7089 * regcache.c (regcache_read_pc_protected): New function
7090 implementation that returns 0 if the PC cannot read via
7091 'regcache_read_pc'.
7092 * infrun.c (proceed): Call 'regcache_read_pc_protected'
7093 instead of 'regcache_read_pc'.
7094 (keep_going_pass_signal): Ditto.
7095
7096 2020-05-13 Tom Tromey <tromey@adacore.com>
7097
7098 * ada-lang.c (align_value): Remove.
7099 (ada_template_to_fixed_record_type_1): Use align_up.
7100
7101 2020-05-13 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
7102
7103 * async-event.c: Update the copyright year.
7104 * async-event.h: Update the copyright year.
7105
7106 2020-05-12 Simon Marchi <simon.marchi@efficios.com>
7107
7108 * objfiles.h (is_addr_in_objfile,
7109 shared_objfile_contains_address_p): Return bool.
7110 * objfile.c (is_addr_in_objfile,
7111 shared_objfile_contains_address_p): Return bool.
7112
7113 2020-05-11 Tom Tromey <tromey@adacore.com>
7114
7115 * cli/cli-cmds.c (info_command): Restore.
7116 (_initialize_cli_cmds): Use add_prefix_command for "info".
7117 * gdb-gdb.gdb.in: Restore breakpoint on info_command.
7118
7119 2020-05-11 Tom Tromey <tromey@adacore.com>
7120
7121 * ada-lang.c (ada_value_primitive_field): Now public.
7122 * ada-lang.h (ada_value_primitive_field): Declare.
7123 * ada-valprint.c (print_field_values): Use
7124 ada_value_primitive_field for wrapper fields.
7125
7126 2020-05-11 Tom de Vries <tdevries@suse.de>
7127
7128 * dwarf2/index-write.c (debug_names::psymbol_tag): Handle
7129 MODULE_DOMAIN.
7130
7131 2020-05-11 Tom de Vries <tdevries@suse.de>
7132
7133 PR symtab/25941
7134 * dwarf2/read.c (create_cus_from_debug_names_list): Initialize CUs
7135 with length 0, if not gdb-produced.
7136 (cutu_reader::cutu_reader): Set CU length to actual length if 0.
7137
7138 2020-05-09 Tom de Vries <tdevries@suse.de>
7139
7140 PR gdb/25955
7141 * break-catch-throw.c (check_status_exception_catchpoint): Fix name
7142 calculation.
7143
7144 2020-05-09 Tom Tromey <tom@tromey.com>
7145
7146 * top.c (server_command): Now bool.
7147 * top.h (server_command): Now bool.
7148
7149 2020-05-08 Tom Tromey <tromey@adacore.com>
7150
7151 * dwarf2/read.c (read_lexical_block_scope): Don't process a DIE
7152 already being processed.
7153
7154 2020-05-08 Tom Tromey <tom@tromey.com>
7155
7156 * printcmd.c (struct display) <next>: Remove.
7157 <display>: New constructor.
7158 <exp_string>: Now a std::string.
7159 <enabled_p>: Now a bool.
7160 (display_number): Move definition earlier.
7161 (displays): Rename from display_chain. Now a std::vector.
7162 (ALL_DISPLAYS, ALL_DISPLAYS_SAFE): Remove.
7163 (display_command): Update.
7164 (do_one_display, disable_display)
7165 (enable_disable_display_command, do_enable_disable_display):
7166 Update.
7167 (free_display): Remove.
7168 (clear_displays): Rewrite.
7169 (delete_display): Update.
7170 (map_display_numbers): Use function_view. Remove "data"
7171 parameter. Update.
7172 (do_delete_display): Remove.
7173 (undisplay_command): Update.
7174 (do_one_display, do_displays, disable_display)
7175 (info_display_command): Update.
7176 (do_enable_disable_display): Remove.
7177 (enable_disable_display_command)
7178 (clear_dangling_display_expressions): Update.
7179
7180 2020-05-08 Tom Tromey <tom@tromey.com>
7181
7182 * symtab.c (set_symbol_cache_size)
7183 (maintenance_print_symbol_cache, maintenance_flush_symbol_cache)
7184 (maintenance_print_symbol_cache_statistics): Update.
7185 * symmisc.c (print_symbol_bcache_statistics)
7186 (print_objfile_statistics, maintenance_print_objfiles)
7187 (maintenance_info_symtabs, maintenance_check_symtabs)
7188 (maintenance_expand_symtabs, maintenance_info_line_tables):
7189 Update.
7190 * symfile-debug.c (set_debug_symfile): Update.
7191 * source.c (forget_cached_source_info): Update.
7192 * python/python.c (gdbpy_progspaces): Update.
7193 * psymtab.c (maintenance_info_psymtabs): Update.
7194 * probe.c (parse_probes): Update.
7195 * linespec.c (iterate_over_all_matching_symtabs)
7196 (collect_symtabs_from_filename, search_minsyms_for_name): Update.
7197 * guile/scm-progspace.c (gdbscm_progspaces): Update.
7198 * exec.c (exec_target::close): Update.
7199 * ada-tasks.c (ada_tasks_new_objfile_observer): Update.
7200 * breakpoint.c (print_one_breakpoint_location)
7201 (create_longjmp_master_breakpoint)
7202 (create_std_terminate_master_breakpoint): Update.
7203 * progspace.c (program_spaces): Now a std::vector.
7204 (maybe_new_address_space): Update.
7205 (add_program_space): Remove.
7206 (program_space::program_space): Update.
7207 (remove_program_space): Update.
7208 (number_of_program_spaces): Remove.
7209 (print_program_space, update_address_spaces): Update.
7210 * progspace.h (program_spaces): Change type.
7211 (ALL_PSPACES): Remove.
7212 (number_of_program_spaces): Don't declare.
7213 (struct program_space) <next>: Remove.
7214
7215 2020-05-08 Tom Tromey <tom@tromey.com>
7216
7217 * mi/mi-cmd-file.c (mi_cmd_file_list_shared_libraries): Update.
7218 * solib-svr4.c (svr4_fetch_objfile_link_map): Update.
7219 (enable_break): Update.
7220 * solib-frv.c (frv_fdpic_find_global_pointer): Update.
7221 (frv_fdpic_find_canonical_descriptor): Update.
7222 (frv_fetch_objfile_link_map): Update.
7223 * progspace.c (program_space::free_all_objfiles): Update.
7224 (program_space::solibs): New method.
7225 * progspace.h (struct program_space) <solibs>: New method.
7226 * solist.h (master_so_list): Don't declare.
7227 (ALL_SO_LIBS): Remove.
7228 * solib.h (so_list_head): Remove.
7229 (update_solib_list): Update comment.
7230 * solib.c (master_so_list): Remove.
7231 (solib_used, update_solib_list, solib_add)
7232 (info_sharedlibrary_command, clear_solib)
7233 (reload_shared_libraries_1, remove_user_added_objfile): Update.
7234
7235 2020-05-08 Tom Tromey <tom@tromey.com>
7236
7237 * extension.c (extension_languages): Now a std::array.
7238 (ALL_EXTENSION_LANGUAGES): Remove.
7239 (get_ext_lang_defn, get_ext_lang_of_file)
7240 (eval_ext_lang_from_control_command): Update.
7241 (finish_ext_lang_initialization)
7242 (auto_load_ext_lang_scripts_for_objfile)
7243 (ext_lang_type_printers::ext_lang_type_printers)
7244 (apply_ext_lang_type_printers)
7245 (ext_lang_type_printers::~ext_lang_type_printers)
7246 (apply_ext_lang_val_pretty_printer, apply_ext_lang_frame_filter)
7247 (preserve_ext_lang_values, get_breakpoint_cond_ext_lang)
7248 (breakpoint_ext_lang_cond_says_stop, check_quit_flag)
7249 (get_matching_xmethod_workers, ext_lang_colorize)
7250 (ext_lang_before_prompt): Update.
7251 (ALL_ENABLED_EXTENSION_LANGUAGES): Remove.
7252
7253 2020-05-08 Tom Tromey <tom@tromey.com>
7254
7255 * symtab.h (class demangle_result_storage) <set_malloc_ptr>: New
7256 overload.
7257 <swap_string, m_string>: Remove.
7258 * symtab.c (demangle_for_lookup, completion_list_add_symbol):
7259 Update.
7260 * stabsread.c (define_symbol, read_type): Update.
7261 * linespec.c (find_linespec_symbols): Update.
7262 * gnu-v3-abi.c (gnuv3_get_typeid): Update.
7263 * dwarf2/read.c (dwarf2_canonicalize_name): Update.
7264 * dbxread.c (read_dbx_symtab): Update.
7265 * cp-support.h (cp_canonicalize_string_full)
7266 (cp_canonicalize_string, cp_canonicalize_string_no_typedefs):
7267 Return unique_xmalloc_ptr.
7268 * cp-support.c (inspect_type): Update.
7269 (cp_canonicalize_string_full): Return unique_xmalloc_ptr.
7270 (cp_canonicalize_string_no_typedefs, cp_canonicalize_string):
7271 Likewise.
7272 * c-typeprint.c (print_name_maybe_canonical): Update.
7273 * break-catch-throw.c (check_status_exception_catchpoint):
7274 Update.
7275
7276 2020-05-08 Tom de Vries <tdevries@suse.de>
7277
7278 * infrun.c (follow_fork): Copy current_line and current_symtab to
7279 child thread.
7280
7281 2020-05-07 Simon Marchi <simon.marchi@efficios.com>
7282
7283 * async-event.c (struct async_signal_handler, struct
7284 async_event_handler): Reformat, remove typedef.
7285
7286 2020-05-07 Simon Marchi <simon.marchi@efficios.com>
7287
7288 * gdbtypes.h (TYPE_DYN_PROP_LIST): Remove. Update all users
7289 access thistype->main_type->dyn_prop_list directly.
7290
7291 2020-05-07 Simon Marchi <simon.marchi@efficios.com>
7292
7293 * gdbtypes.h (struct type) <remove_dyn_prop>: New method.
7294 (remove_dyn_prop): Remove. Update all users to use
7295 type::remove_dyn_prop.
7296 * gdbtypes.c (remove_dyn_prop): Rename to...
7297 (type::remove_dyn_prop): ... this.
7298
7299 2020-05-07 Simon Marchi via Gdb-patches <gdb-patches@sourceware.org>
7300
7301 * gdbtypes.h (struct type) <add_dyn_prop>: New method.
7302 (add_dyn_prop): Remove. Update all users to use
7303 type::add_dyn_prop.
7304 * gdbtypes.c (add_dyn_prop): Rename to...
7305 (type::add_dyn_prop): ... this.
7306
7307 2020-05-07 Simon Marchi <simon.marchi@efficios.com>
7308
7309 * gdbtypes.h (struct type) <get_dyn_prop>: New method.
7310 (get_dyn_prop): Remove. Update all users to use
7311 type::dyn_prop.
7312 * gdbtypes.c (get_dyn_prop): Rename to...
7313 (type::dyn_prop): ... this.
7314
7315 2020-05-06 Simon Marchi <simon.marchi@efficios.com>
7316
7317 * gdbtypes.h (struct main_type) <flag_static>: Remove.
7318
7319 2020-05-06 Simon Marchi <simon.marchi@efficios.com>
7320
7321 * amd64-tdep.c (amd64_analyze_prologue): Check for `endbr64`
7322 instruction, skip it if it's there.
7323
7324 2020-05-05 Simon Marchi <simon.marchi@efficios.com>
7325
7326 * gdbtypes.h (struct main_type) <flag_incomplete>: Remove.
7327
7328 2020-05-04 Simon Marchi <simon.marchi@efficios.com>
7329
7330 * gdbtypes.h (TYPE_INCOMPLETE): Remove.
7331 * gdbtypes.c (recursive_dump_type): Remove use of
7332 TYPE_INCOMPLETE.
7333
7334 2020-05-03 Tom Tromey <tom@tromey.com>
7335
7336 * breakpoint.c (catch_command, tcatch_command): Remove.
7337 (_initialize_breakpoint): Use add_basic_prefix_cmd,
7338 add_show_prefix_cmd.
7339 (set_breakpoint_cmd, show_breakpoint_cmd): Remove
7340 * utils.c (set_internal_problem_cmd, show_internal_problem_cmd):
7341 Remove.
7342 (add_internal_problem_command): Use add_basic_prefix_cmd,
7343 add_show_prefix_cmd.
7344 * mips-tdep.c (set_mipsfpu_command): Remove.
7345 (_initialize_mips_tdep): Use add_basic_prefix_cmd.
7346 * dwarf2/index-cache.c (set_index_cache_command): Remove.
7347 (_initialize_index_cache): Use add_basic_prefix_cmd.
7348 * memattr.c (dummy_cmd): Remove.
7349 (_initialize_mem): Use add_basic_prefix_cmd, add_show_prefix_cmd.
7350 * tui/tui-win.c (set_tui_cmd, show_tui_cmd): Remove.
7351 (_initialize_tui_win): Use add_basic_prefix_cmd,
7352 add_show_prefix_cmd.
7353 * cli/cli-logging.c (set_logging_command): Remove.
7354 (_initialize_cli_logging): Use add_basic_prefix_cmd,
7355 add_show_prefix_cmd.
7356 (show_logging_command): Remove.
7357 * target.c (target_command): Remove.
7358 (add_target): Use add_basic_prefix_cmd.
7359
7360 2020-05-02 Hannes Domani <ssbssa@yahoo.de>
7361
7362 * gdbtypes.h (enum dynamic_prop_node_kind): Fix typo.
7363
7364 2020-05-01 Philippe Waroquiers <philippe.waroquiers@skynet.be>
7365
7366 * gdb-gdb.gdb-in: Remove breakpoint on disappeared function
7367 info_command.
7368
7369 2020-04-30 Kamil Rytarowski <n54@gmx.com>
7370
7371 * nbsd-nat.c (nbsd_enable_proc_events)
7372 (nbsd_nat_target::post_startup_inferior): Add.
7373 (nbsd_nat_target::post_attach): Call `nbsd_enable_proc_events'.
7374 (nbsd_nat_target::update_thread_list): Rewrite.
7375 (nbsd_nat_target::wait): Handle "PTRACE_LWP_EXIT" and
7376 "PTRACE_LWP_CREATE".
7377 * nbsd-nat.h (nbsd_nat_target::post_startup_inferior): Add.
7378
7379 2020-04-30 Philippe Waroquiers <philippe.waroquiers@skynet.be>
7380
7381 * stack.c (_initialize_stack): Remove duplicated creation
7382 of "frame" command and "f" alias.
7383
7384 2020-04-30 Hannes Domani <ssbssa@yahoo.de>
7385
7386 PR gdb/18706
7387 * gdbtypes.c (check_typedef): Calculate size of array of
7388 stubbed type.
7389
7390 2020-04-30 Hannes Domani <ssbssa@yahoo.de>
7391
7392 PR gdb/15559
7393 * i386-tdep.c (i386_push_dummy_call): Call
7394 i386_thiscall_push_dummy_call.
7395 (i386_thiscall_push_dummy_call): New function.
7396 * i386-tdep.h (i386_thiscall_push_dummy_call): Declare.
7397 * i386-windows-tdep.c (i386_windows_push_dummy_call): New function.
7398 (i386_windows_init_abi): Call set_gdbarch_push_dummy_call.
7399
7400 2020-04-29 Simon Marchi <simon.marchi@efficios.com>
7401
7402 * gdbarch.sh (do_read): Add shellcheck disable directive for
7403 warning SC2162.
7404
7405 2020-04-29 Simon Marchi <simon.marchi@efficios.com>
7406
7407 * gdbarch.sh: Use ${foo:-} where shellcheck would report a
7408 "referenced but not assigned" warning.
7409
7410 2020-04-29 Simon Marchi <simon.marchi@efficios.com>
7411
7412 * gdbarch.sh: Remove code that sets fallbackdefault.
7413
7414 2020-04-29 Simon Marchi <simon.marchi@efficios.com>
7415
7416 * gdbarch.sh: Use shell operators && and || instead of
7417 -a and -o.
7418
7419 2020-04-29 Simon Marchi <simon.marchi@efficios.com>
7420
7421 * gdbarch.sh: Use $(...) instead of `...`.
7422
7423 2020-04-29 Simon Marchi <simon.marchi@efficios.com>
7424
7425 * gdbarch.sh: Use double quotes around variables.
7426
7427 2020-04-29 Simon Marchi <simon.marchi@efficios.com>
7428
7429 * gdbarch.sh: Use %s with printf, instead of variables in the
7430 format string.
7431
7432 2020-04-29 Tom Tromey <tromey@adacore.com>
7433
7434 PR ada/25875:
7435 * dwarf2/read.c (update_enumeration_type_from_children): Compute
7436 type fields here.
7437 (read_enumeration_type): Call
7438 update_enumeration_type_from_children later. Update comments.
7439 (process_enumeration_scope): Don't create type fields.
7440
7441 2020-04-29 Kamil Rytarowski <n54@gmx.com>
7442
7443 * nbsd-tdep.c: Include "xml-syscall.h".
7444 (nbsd_init_abi): Call `set_xml_syscall_file_name'.
7445
7446 2020-04-29 Kamil Rytarowski <n54@gmx.com>
7447
7448 * nbsd-nat.c: Include "sys/wait.h".
7449 (nbsd_resume, nbsd_nat_target::resume, nbsd_wait)
7450 (nbsd_nat_target::wait, nbsd_nat_target::insert_exec_catchpoint)
7451 (nbsd_nat_target::remove_exec_catchpoint)
7452 (nbsd_nat_target::set_syscall_catchpoint): Add.
7453 * nbsd-nat.h (nbsd_nat_target::resume, nbsd_nat_target::wait)
7454 (nbsd_nat_target::insert_exec_catchpoint)
7455 (nbsd_nat_target::remove_exec_catchpoint)
7456 (nbsd_nat_target::set_syscall_catchpoint): Add.
7457 * nbsd-tdep.c (nbsd_get_syscall_number): Add.
7458 (nbsd_init_abi): Call `set_gdbarch_get_syscall_number' and pass
7459 `nbsd_get_syscall_number'.
7460
7461 2020-04-29 Tom Tromey <tom@tromey.com>
7462
7463 * stack.c (print_block_frame_labels): Remove.
7464
7465 2020-04-29 Hannes Domani <ssbssa@yahoo.de>
7466
7467 PR gdb/17320
7468 * ada-valprint.c (val_print_packed_array_elements): Move array
7469 end bracket to new line.
7470 (ada_val_print_string): Remove extra spaces before first array
7471 element.
7472 * c-valprint.c (c_value_print_array): Likewise.
7473 * m2-valprint.c (m2_print_array_contents): Likewise.
7474 (m2_value_print_inner): Likewise.
7475 * p-valprint.c (pascal_value_print_inner): Likewise.
7476 * valprint.c (generic_val_print_array): Likewise.
7477 (value_print_array_elements): Move first array element and array
7478 end bracket to new line.
7479
7480 2020-04-29 Tom de Vries <tdevries@suse.de>
7481
7482 PR symtab/25889
7483 * linespec.c (find_method): Fix ix calculation.
7484
7485 2020-04-28 Kamil Rytarowski <n54@gmx.com>
7486
7487 * syscalls/update-netbsd.sh: New file.
7488 * syscalls/netbsd.xml: Regenerate.
7489 * data-directory/Makefile.in: Register `netbsd.xml' in
7490 `SYSCALLS_FILES'.
7491
7492 2020-04-28 Simon Marchi <simon.marchi@efficios.com>
7493
7494 * syscalls/update-freebsd.sh: Add double quotes.
7495
7496 2020-04-28 Tom Tromey <tom@tromey.com>
7497
7498 * NEWS: Update.
7499 * python/py-cmd.c (gdbpy_initialize_commands): Add COMMAND_TUI.
7500 (cmdpy_init): Allow class_tui.
7501
7502 2020-04-28 Mark Williams <mark@myosotissp.com>
7503
7504 PR gdb/24480
7505 * dwarf2read.c: Add missing assingments to list_in_scope when
7506 start_symtab was already called.
7507
7508 2020-04-28 Simon Marchi <simon.marchi@efficios.com>
7509
7510 PR gdb/25881
7511 * dwarf2/read.c (offset_map_type): Use
7512 gdb:hash_enum<sect_offset> as hash function.
7513
7514 2020-04-28 Tom de Vries <tdevries@suse.de>
7515
7516 * dwarf2/read.c (process_structure_scope): Add symbol for struct decl
7517 with DW_AT_signature.
7518
7519 2020-04-27 Simon Marchi <simon.marchi@efficios.com>
7520
7521 * configure.ac: Remove check for fs_base/gs_base in
7522 user_regs_struct.
7523 * configure: Re-generate.
7524 * config.in: Re-generate.
7525 * amd64-nat.c (amd64_native_gregset_reg_offset): Adjust.
7526 * amd64-linux-nat.c (amd64_linux_nat_target::fetch_registers,
7527 amd64_linux_nat_target::store_registers, ps_get_thread_area, ): Adjust.
7528
7529 2020-04-27 Luis Machado <luis.machado@linaro.org>
7530
7531 * dwarf2/frame-tailcall.c (dwarf2_tailcall_sniffer_first): Handle
7532 problematic inline frame unwinding situation.
7533 * frame.c (frame_id_computed_p): New function.
7534 * frame.h (frame_id_computed_p): New prototype.
7535
7536 2020-04-26 Tom Tromey <tom@tromey.com>
7537
7538 * command.h (enum command_class) <class_pseudo>: Remove.
7539
7540 2020-04-26 Philippe Waroquiers <philippe.waroquiers@skynet.be>
7541
7542 * cli/cli-decode.c (lookup_cmd_composition): Fix comments
7543 and whitespace.
7544
7545 2020-04-25 Kamil Rytarowski <n54@gmx.com>
7546
7547 * inf-ptrace.c (inf_ptrace_target::wait): Remove
7548 `PT_GET_PROCESS_STATE' block.
7549
7550 2020-04-24 Tom Tromey <tom@tromey.com>
7551
7552 * symtab.h (symbol_get_demangled_name): Don't declare.
7553 * symtab.c (symbol_get_demangled_name): Remove.
7554 (general_symbol_info::natural_name)
7555 (general_symbol_info::demangled_name): Update.
7556
7557 2020-04-24 Tom Tromey <tom@tromey.com>
7558
7559 PR rust/25025:
7560 * dwarf2/read.c (dwarf2_physname): Do not demangle for Rust.
7561
7562 2020-04-24 Tom Tromey <tom@tromey.com>
7563
7564 PR symtab/12707:
7565 * dwarf2/read.c (add_partial_symbol): Use the linkage name if it
7566 exists.
7567 (new_symbol): Likewise.
7568 * compile/compile-object-load.c (get_out_value_type): Use
7569 symbol_matches_search_name.
7570
7571 2020-04-24 Tom Tromey <tom@tromey.com>
7572
7573 * dwarf2/read.c (add_partial_symbol): Do not call
7574 compute_and_set_names.
7575
7576 2020-04-24 Tom Tromey <tom@tromey.com>
7577
7578 * dwarf2/read.c (add_partial_symbol): Use new add_psymbol_to_list
7579 overload.
7580
7581 2020-04-24 Tom Tromey <tom@tromey.com>
7582
7583 * psymtab.c (add_psymbol_to_bcache): Simplify calling convention.
7584 (add_psymbol_to_list): New overload. Make old overload call new
7585 one.
7586 * psympriv.h (add_psymbol_to_list): New overload.
7587
7588 2020-04-24 Tom Tromey <tom@tromey.com>
7589
7590 * dwarf2/read.c (partial_die_info::read) <case
7591 DW_AT_linkage_name>: Use value_as_string.
7592 (dwarf2_string_attr): Use value_as_string.
7593 * dwarf2/attribute.h (struct attribute) <value_as_string>: Declare
7594 method.
7595 * dwarf2/attribute.c (attribute::value_as_string): New method.
7596
7597 2020-04-24 Tom Tromey <tom@tromey.com>
7598
7599 * symtab.c (general_symbol_info::natural_name)
7600 (general_symbol_info::demangled_name): Check for language_rust.
7601
7602 2020-04-24 Tom Tromey <tom@tromey.com>
7603
7604 * dwarf2/read.c (dw2_linkage_name): Move Rust "{" hack here...
7605 (dwarf2_physname): ... from here.
7606 (partial_die_info::read): Add Rust "{" hack.
7607
7608 2020-04-24 Tom Tromey <tom@tromey.com>
7609
7610 * symtab.h (struct general_symbol_info) <set_demangled_name>: New
7611 method.
7612 (symbol_set_demangled_name): Don't declare.
7613 * symtab.c (general_symbol_info::set_demangled_name): Rename from
7614 symbol_set_demangled_name.
7615 (general_symbol_info::set_language)
7616 (general_symbol_info::compute_and_set_names): Update.
7617 * minsyms.c (minimal_symbol_reader::install): Update.
7618 * dwarf2/read.c (new_symbol): Update.
7619
7620 2020-04-24 Tom Tromey <tromey@adacore.com>
7621
7622 PR python/23662:
7623 * python/py-type.c (convert_field): Handle
7624 FIELD_LOC_KIND_DWARF_BLOCK.
7625 (typy_get_sizeof): Handle TYPE_HAS_DYNAMIC_LENGTH.
7626 (typy_get_dynamic): Nw function.
7627 (type_object_getset): Add "dynamic".
7628 * NEWS: Add entry.
7629
7630 2020-04-24 Tom Tromey <tromey@adacore.com>
7631
7632 * ada-typeprint.c (print_choices, print_variant_part)
7633 (print_record_field_types_dynamic): New functions.
7634 (print_record_field_types): Use print_record_field_types_dynamic.
7635
7636 2020-04-24 Tom Tromey <tromey@adacore.com>
7637
7638 * dwarf2/read.c (handle_data_member_location): New overload.
7639 (dwarf2_add_field): Use it.
7640 (decode_locdesc): Add "computed" parameter. Update comment.
7641 * gdbtypes.c (is_dynamic_type_internal): Also look for
7642 FIELD_LOC_KIND_DWARF_BLOCK.
7643 (resolve_dynamic_struct): Handle FIELD_LOC_KIND_DWARF_BLOCK.
7644 * gdbtypes.c (is_dynamic_type_internal): Add special case for C++
7645 virtual base classes.
7646 * gnu-v3-abi.c (gnuv3_baseclass_offset): Handle
7647 FIELD_LOC_KIND_DWARF_BLOCK.
7648
7649 2020-04-24 Tom Tromey <tromey@adacore.com>
7650
7651 * dwarf2/read.c (read_structure_type): Handle dynamic length.
7652 * gdbtypes.c (is_dynamic_type_internal): Check
7653 TYPE_HAS_DYNAMIC_LENGTH.
7654 (resolve_dynamic_type_internal): Use TYPE_DYNAMIC_LENGTH.
7655 * gdbtypes.h (TYPE_HAS_DYNAMIC_LENGTH, TYPE_DYNAMIC_LENGTH):
7656 New macros.
7657 (enum dynamic_prop_node_kind) <DYN_PROP_BYTE_SIZE>: New
7658 constant.
7659
7660 2020-04-24 Tom Tromey <tromey@adacore.com>
7661
7662 * dwarf2/read.c (struct variant_field): Rewrite.
7663 (struct variant_part_builder): New.
7664 (struct nextfield): Remove "variant" field. Add "offset".
7665 (struct field_info): Add "current_variant_part" and
7666 "variant_parts".
7667 (alloc_discriminant_info): Remove.
7668 (alloc_rust_variant): New function.
7669 (quirk_rust_enum): Update.
7670 (dwarf2_add_field): Set "offset" member. Don't handle
7671 DW_TAG_variant_part.
7672 (offset_map_type): New typedef.
7673 (convert_variant_range, create_one_variant)
7674 (create_one_variant_part, create_variant_parts)
7675 (add_variant_property): New functions.
7676 (dwarf2_attach_fields_to_type): Call add_variant_property.
7677 (read_structure_type): Don't handle DW_TAG_variant_part.
7678 (handle_variant_part, handle_variant): New functions.
7679 (handle_struct_member_die): Use them.
7680 (process_structure_scope): Don't handle variant parts.
7681 * gdbtypes.h (TYPE_FLAG_DISCRIMINATED_UNION): Remove.
7682 (struct discriminant_info): Remove.
7683 (enum dynamic_prop_node_kind) <DYN_PROP_DISCRIMINATED>: Remove.
7684 (struct main_type) <flag_discriminated_union>: Remove.
7685 * rust-lang.c (rust_enum_p, rust_empty_enum_p): Rewrite.
7686 (rust_enum_variant): Return int. Remove "contents". Rewrite.
7687 (rust_print_enum, rust_print_struct_def, rust_evaluate_subexp):
7688 Update.
7689 * valops.c (value_union_variant): Remove.
7690 * value.h (value_union_variant): Don't declare.
7691
7692 2020-04-24 Tom Tromey <tromey@adacore.com>
7693
7694 * ada-lang.c (ada_discrete_type_high_bound, ada_discrete_type_low)
7695 (ada_value_primitive_packed_val): Update.
7696 * ada-valprint.c (ada_value_print_1): Update.
7697 * dwarf2/loc.c (evaluate_for_locexpr_baton): New struct.
7698 (dwarf2_locexpr_baton_eval): Take a property_addr_info rather than
7699 just an address. Use evaluate_for_locexpr_baton.
7700 (dwarf2_evaluate_property): Update.
7701 * dwarf2/loc.h (struct property_addr_info) <valaddr>: Now an
7702 array_view.
7703 * findvar.c (default_read_var_value): Update.
7704 * gdbtypes.c (compute_variant_fields_inner)
7705 (resolve_dynamic_type_internal): Update.
7706 (resolve_dynamic_type): Change type of valaddr parameter.
7707 * gdbtypes.h (resolve_dynamic_type): Update.
7708 * valarith.c (value_subscripted_rvalue): Update.
7709 * value.c (value_from_contents_and_address): Update.
7710
7711 2020-04-24 Tom Tromey <tromey@adacore.com>
7712
7713 * dwarf2/loc.c (dwarf2_locexpr_baton_eval): Add
7714 "push_initial_value" parameter.
7715 (dwarf2_evaluate_property): Likewise.
7716 * dwarf2/loc.h (dwarf2_evaluate_property): Update.
7717
7718 2020-04-24 Tom Tromey <tromey@adacore.com>
7719
7720 * gdbtypes.c (is_dynamic_type_internal): Check for variant parts.
7721 (variant::matches, compute_variant_fields_recurse)
7722 (compute_variant_fields_inner, compute_variant_fields): New
7723 functions.
7724 (resolve_dynamic_struct): Check for DYN_PROP_VARIANT_PARTS.
7725 Use resolved_type after type is made.
7726 (operator==): Add new cases.
7727 * gdbtypes.h (TYPE_HAS_VARIANT_PARTS): New macro.
7728 (struct discriminant_range, struct variant, struct variant_part):
7729 New.
7730 (union dynamic_prop_data) <variant_parts, original_type>: New
7731 members.
7732 (enum dynamic_prop_node_kind) <DYN_PROP_VARIANT_PARTS>: New constant.
7733 (enum dynamic_prop_kind) <PROP_TYPE, PROP_VARIANT_PARTS>: New
7734 constants.
7735 * value.c (unpack_bits_as_long): Now public.
7736 * value.h (unpack_bits_as_long): Declare.
7737
7738 2020-04-24 Tom Tromey <tromey@adacore.com>
7739
7740 * rs6000-tdep.c (struct ppc_variant): Rename from "variant".
7741 (variants, find_variant_by_arch, rs6000_gdbarch_init): Update.
7742
7743 2020-04-24 Hannes Domani <ssbssa@yahoo.de>
7744
7745 * windows-tdep.c (exception_values): Add WOW64 exception numbers.
7746
7747 2020-04-24 Kamil Rytarowski <n54@gmx.com>
7748
7749 * inf-ptrace.h (follow_fork, insert_fork_catchpoint)
7750 (remove_fork_catchpoint, post_startup_inferior)
7751 (post_attach): Move...
7752 * obsd-nat.h (follow_fork, insert_fork_catchpoint)
7753 (remove_fork_catchpoint, post_startup_inferior)
7754 (post_attach): ...here.
7755 * inf-ptrace.c (follow_fork, insert_fork_catchpoint)
7756 (remove_fork_catchpoint, post_startup_inferior)
7757 (post_attach): Move...
7758 * obsd-nat.c (follow_fork, insert_fork_catchpoint)
7759 (remove_fork_catchpoint, post_startup_inferior)
7760 (post_attach): ...here.
7761
7762 2020-04-24 Tom Tromey <tromey@adacore.com>
7763
7764 * nat/windows-nat.h (struct windows_thread_info)
7765 <pc_adjusted>: New member.
7766 * windows-nat.c (windows_fetch_one_register): Check
7767 pc_adjusted.
7768 (windows_nat_target::get_windows_debug_event)
7769 (windows_nat_target::wait): Set pc_adjusted.
7770
7771 2020-04-24 Tom de Vries <tdevries@suse.de>
7772
7773 * contrib/cc-with-tweaks.sh: Remove <exec>.gdb-index file handling.
7774 Run gdb-add-index inside temp dir.
7775
7776 2020-04-23 Tom Tromey <tromey@adacore.com>
7777
7778 * windows-tdep.c (is_linked_with_cygwin_dll): Always update "iter"
7779 in loop.
7780
7781 2020-04-23 Luis Machado <luis.machado@linaro.org>
7782
7783 * dwarf2/frame-tailcall.c (dwarf2_tailcall_sniffer_first): Use
7784 get_frame_register instead of gdbarch_unwind_pc.
7785
7786 2020-04-23 Tom de Vries <tdevries@suse.de>
7787
7788 * symtab.c (lookup_global_symbol): Prefer def over decl.
7789
7790 2020-04-23 Tom de Vries <tdevries@suse.de>
7791
7792 PR symtab/25807
7793 * block.c (best_symbol, better_symbol): Promote to external.
7794 * block.h (best_symbol, better_symbol): Declare.
7795 * symtab.c (lookup_symbol_in_objfile_symtabs): Prefer def over
7796 decl.
7797
7798 2020-04-23 Tom Tromey <tromey@adacore.com>
7799
7800 PR ada/25837:
7801 * dwarf2/read.c (dw2_expand_symtabs_matching_symbol): Store a
7802 "const char *", not a "const std::string &".
7803 <name_and_matcher::operator==>: Update.
7804 * unittests/lookup_name_info-selftests.c: Change type of
7805 "result".
7806
7807 2020-04-23 Tom Tromey <tom@tromey.com>
7808
7809 * inferior.h (iterate_over_inferiors): Don't declare.
7810 * inferior.c (iterate_over_inferiors): Remove.
7811 * darwin-nat.c (find_inferior_task_it, find_inferior_pid_it):
7812 Remove.
7813 (darwin_find_inferior_by_task, darwin_find_inferior_by_pid): Don't
7814 use iterate_over_inferiors.
7815 (darwin_resume_inferior_it)
7816 (struct resume_inferior_threads_param)
7817 (darwin_resume_inferior_threads_it): Remove.
7818 (darwin_nat_target::resume): Don't use iterate_over_inferiors.
7819
7820 2020-04-23 Tom de Vries <tdevries@suse.de>
7821
7822 * blockframe.c (find_pc_partial_function): Use
7823 find_pc_sect_compunit_symtab rather than
7824 objfile->sf->qf->find_pc_sect_compunit_symtab.
7825
7826 2020-04-22 Tom de Vries <tdevries@suse.de>
7827
7828 PR symtab/25764
7829 * dwarf2/read.c (scan_partial_symbols): Allow external variable decls
7830 in psymtabs.
7831
7832 2020-04-22 Tom de Vries <tdevries@suse.de>
7833
7834 PR symtab/25801
7835 * psymtab.c (psym_map_symtabs_matching_filename): Don't skip shared
7836 symtabs.
7837
7838 2020-04-22 Tom de Vries <tdevries@suse.de>
7839
7840 PR symtab/25700
7841 * dwarf2/read.c (dwarf2_build_psymtabs_hard): Don't create psymtab for
7842 CU if already created.
7843
7844 2020-04-21 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
7845
7846 * infrun.c (displaced_step_fixup): Switch to the event_thread
7847 before calling displaced_step_restore, not after.
7848
7849 2020-04-21 Markus Metzger <markus.t.metzger@intel.com>
7850
7851 * record-btrace.c (record_btrace_enable_warn): Ignore thread if
7852 its inferior is not recorded by us.
7853 (record_btrace_target_open): Replace call to
7854 all_non_exited_threads () with call to current_inferior
7855 ()->non_exited_threads ().
7856 (record_btrace_target::stop_recording): Likewise.
7857 (record_btrace_target::close): Likewise.
7858 (record_btrace_target::wait): Likewise.
7859 (record_btrace_target::record_stop_replaying): Likewise.
7860
7861 2020-04-21 Markus Metzger <markus.t.metzger@intel.com>
7862
7863 * btrace.c (btrace_enable): Throw an error on double enables and
7864 when enabling recording fails.
7865 (btrace_disable): Throw an error if the thread is not recorded.
7866
7867 2020-04-21 Markus Metzger <markus.t.metzger@intel.com>
7868
7869 * record-btrace.c (record_btrace_target::fetch_registers): Forward
7870 request if we do not have a thread_info.
7871
7872 2020-04-21 Tom de Vries <tdevries@suse.de>
7873
7874 PR gdb/25471
7875 * thread.c
7876 (scoped_restore_current_thread::scoped_restore_current_thread): Catch
7877 exception in get_frame_id.
7878
7879 2020-04-20 Tom Tromey <tromey@adacore.com>
7880
7881 * python/python.c (struct gdbpy_event): Mark move constructor as
7882 noexcept.
7883 * python/py-tui.c (class gdbpy_tui_window_maker): Mark move
7884 constructor as noexcept.
7885 * completer.h (struct completion_result): Mark move constructor as
7886 noexcept.
7887 * completer.c (completion_result::completion_result): Use
7888 initialization style. Don't call reset_match_list.
7889
7890 2020-04-20 Mihails Strasuns <mihails.strasuns@intel.com>
7891
7892 * MAINTAINERS (Write After Approval): Add myself.
7893
7894 2020-04-18 Tom Tromey <tom@tromey.com>
7895
7896 * windows-tdep.c (init_w32_command_list)
7897 (w32_prefix_command_valid): Restore.
7898 (_initialize_windows_tdep): Call init_w32_command_list.
7899
7900 2020-04-18 Tom Tromey <tom@tromey.com>
7901
7902 * xcoffread.c (enter_line_range, scan_xcoff_symtab): Update.
7903 * value.c (value_fn_field): Update.
7904 * valops.c (find_function_in_inferior)
7905 (value_allocate_space_in_inferior): Update.
7906 * tui/tui-winsource.c (tui_update_source_windows_with_line):
7907 Update.
7908 * tui/tui-source.c (tui_source_window::set_contents): Update.
7909 * symtab.c (lookup_global_or_static_symbol)
7910 (find_function_start_sal_1, skip_prologue_sal)
7911 (print_msymbol_info, find_gnu_ifunc, symbol_arch): Update.
7912 * symmisc.c (dump_msymbols, dump_symtab_1)
7913 (maintenance_print_one_line_table): Update.
7914 * symfile.c (init_entry_point_info, section_is_mapped)
7915 (list_overlays_command, simple_read_overlay_table)
7916 (simple_overlay_update_1): Update.
7917 * stap-probe.c (handle_stap_probe): Update.
7918 * stabsread.c (dbx_init_float_type, define_symbol)
7919 (read_one_struct_field, read_enum_type, read_range_type): Update.
7920 * source.c (info_line_command): Update.
7921 * python/python.c (gdbpy_source_objfile_script)
7922 (gdbpy_execute_objfile_script): Update.
7923 * python/py-type.c (save_objfile_types): Update.
7924 * python/py-objfile.c (py_free_objfile): Update.
7925 * python/py-inferior.c (python_new_objfile): Update.
7926 * psymtab.c (psym_find_pc_sect_compunit_symtab, dump_psymtab)
7927 (dump_psymtab_addrmap_1, maintenance_info_psymtabs)
7928 (maintenance_check_psymtabs): Update.
7929 * printcmd.c (info_address_command): Update.
7930 * objfiles.h (struct objfile) <arch>: New method, from
7931 get_objfile_arch.
7932 (get_objfile_arch): Don't declare.
7933 * objfiles.c (get_objfile_arch): Remove.
7934 (filter_overlapping_sections): Update.
7935 * minsyms.c (msymbol_is_function): Update.
7936 * mi/mi-symbol-cmds.c (mi_cmd_symbol_list_lines)
7937 (output_nondebug_symbol): Update.
7938 * mdebugread.c (parse_symbol, basic_type, parse_partial_symbols)
7939 (mdebug_expand_psymtab): Update.
7940 * machoread.c (macho_add_oso_symfile): Update.
7941 * linux-tdep.c (linux_infcall_mmap, linux_infcall_munmap):
7942 Update.
7943 * linux-fork.c (checkpoint_command): Update.
7944 * linespec.c (convert_linespec_to_sals): Update.
7945 * jit.c (finalize_symtab): Update.
7946 * infrun.c (insert_exception_resume_from_probe): Update.
7947 * ia64-tdep.c (ia64_find_unwind_table): Update.
7948 * hppa-tdep.c (internalize_unwinds): Update.
7949 * gdbtypes.c (get_type_arch, init_float_type, objfile_type):
7950 Update.
7951 * gcore.c (call_target_sbrk): Update.
7952 * elfread.c (record_minimal_symbol, elf_symtab_read)
7953 (elf_rel_plt_read, elf_gnu_ifunc_record_cache)
7954 (elf_gnu_ifunc_resolve_by_got): Update.
7955 * dwarf2/read.c (create_addrmap_from_index)
7956 (create_addrmap_from_aranges, dw2_find_pc_sect_compunit_symtab)
7957 (read_debug_names_from_section)
7958 (process_psymtab_comp_unit_reader, add_partial_symbol)
7959 (add_partial_subprogram, process_full_comp_unit)
7960 (read_file_scope, read_func_scope, read_lexical_block_scope)
7961 (read_call_site_scope, dwarf2_ranges_read)
7962 (dwarf2_record_block_ranges, dwarf2_add_field)
7963 (mark_common_block_symbol_computed, read_tag_pointer_type)
7964 (read_tag_string_type, dwarf2_init_float_type)
7965 (dwarf2_init_complex_target_type, read_base_type)
7966 (partial_die_info::read, partial_die_info::read)
7967 (read_attribute_value, dwarf_decode_lines_1, new_symbol)
7968 (dwarf2_fetch_die_loc_sect_off): Update.
7969 * dwarf2/loc.c (dwarf2_find_location_expression)
7970 (class dwarf_evaluate_loc_desc, rw_pieced_value)
7971 (dwarf2_evaluate_loc_desc_full, dwarf2_locexpr_baton_eval)
7972 (dwarf2_loc_desc_get_symbol_read_needs)
7973 (locexpr_describe_location_piece, locexpr_describe_location_1)
7974 (loclist_describe_location): Update.
7975 * dwarf2/index-write.c (write_debug_names): Update.
7976 * dwarf2/frame.c (dwarf2_build_frame_info): Update.
7977 * dtrace-probe.c (dtrace_process_dof): Update.
7978 * dbxread.c (read_dbx_symtab, dbx_end_psymtab)
7979 (process_one_symbol): Update.
7980 * ctfread.c (ctf_init_float_type, read_base_type): Update.
7981 * coffread.c (coff_symtab_read, enter_linenos, decode_base_type)
7982 (coff_read_enum_type): Update.
7983 * cli/cli-cmds.c (edit_command, list_command): Update.
7984 * buildsym.c (buildsym_compunit::finish_block_internal): Update.
7985 * breakpoint.c (create_overlay_event_breakpoint)
7986 (create_longjmp_master_breakpoint)
7987 (create_std_terminate_master_breakpoint)
7988 (create_exception_master_breakpoint, get_sal_arch): Update.
7989 * block.c (block_gdbarch): Update.
7990 * annotate.c (annotate_source_line): Update.
7991
7992 2020-04-17 Tom Tromey <tromey@adacore.com>
7993
7994 * auto-load.c (show_auto_load_cmd): Remove.
7995 (auto_load_show_cmdlist_get): Use add_show_prefix_cmd.
7996 * arc-tdep.c (_initialize_arc_tdep): Use add_show_prefix_cmd.
7997 (maintenance_print_arc_command): Remove.
7998 * tui/tui-win.c (tui_command): Remove.
7999 (tui_get_cmd_list): Use add_basic_prefix_cmd.
8000 * tui/tui-layout.c (tui_layout_command): Remove.
8001 (_initialize_tui_layout): Use add_basic_prefix_cmd.
8002 * python/python.c (user_set_python, user_show_python): Remove.
8003 (_initialize_python): Use add_basic_prefix_cmd,
8004 add_show_prefix_cmd.
8005 * guile/guile.c (set_guile_command, show_guile_command): Remove.
8006 (install_gdb_commands): Use add_basic_prefix_cmd,
8007 add_show_prefix_cmd.
8008 (info_guile_command): Remove.
8009 * dwarf2/read.c (set_dwarf_cmd, show_dwarf_cmd): Remove.
8010 (_initialize_dwarf2_read): Use add_basic_prefix_cmd,
8011 add_show_prefix_cmd.
8012 * cli/cli-style.h (class cli_style_option) <add_setshow_commands>:
8013 Remove do_set and do_show parameters.
8014 * cli/cli-style.c (set_style, show_style): Remove.
8015 (_initialize_cli_style): Use add_basic_prefix_cmd,
8016 add_show_prefix_cmd.
8017 (cli_style_option::add_setshow_commands): Remove do_set and
8018 do_show parameters.
8019 (cli_style_option::add_setshow_commands): Use
8020 add_basic_prefix_cmd, add_show_prefix_cmd.
8021 (STYLE_ADD_SETSHOW_COMMANDS): Remove macro.
8022 (set_style_name): Remove.
8023 * cli/cli-dump.c (dump_command, append_command): Remove.
8024 (srec_dump_command, ihex_dump_command, verilog_dump_command)
8025 (tekhex_dump_command, binary_dump_command)
8026 (binary_append_command): Remove.
8027 (_initialize_cli_dump): Use add_basic_prefix_cmd.
8028 * windows-tdep.c (w32_prefix_command_valid): Remove global.
8029 (init_w32_command_list): Remove; move into ...
8030 (_initialize_windows_tdep): ... here. Use add_basic_prefix_cmd.
8031 * valprint.c (set_print, show_print, set_print_raw)
8032 (show_print_raw): Remove.
8033 (_initialize_valprint): Use add_basic_prefix_cmd,
8034 add_show_prefix_cmd.
8035 * typeprint.c (set_print_type, show_print_type): Remove.
8036 (_initialize_typeprint): Use add_basic_prefix_cmd,
8037 add_show_prefix_cmd.
8038 * record.c (set_record_command, show_record_command): Remove.
8039 (_initialize_record): Use add_basic_prefix_cmd,
8040 add_show_prefix_cmd.
8041 * cli/cli-cmds.c (_initialize_cli_cmds): Use add_basic_prefix_cmd,
8042 add_show_prefix_cmd.
8043 (info_command, show_command, set_debug, show_debug): Remove.
8044 * top.h (set_history, show_history): Don't declare.
8045 * top.c (set_history, show_history): Remove.
8046 * target-descriptions.c (set_tdesc_cmd, show_tdesc_cmd)
8047 (unset_tdesc_cmd): Remove.
8048 (_initialize_target_descriptions): Use add_basic_prefix_cmd,
8049 add_show_prefix_cmd.
8050 * symtab.c (info_module_command): Remove.
8051 (_initialize_symtab): Use add_basic_prefix_cmd.
8052 * symfile.c (overlay_command): Remove.
8053 (_initialize_symfile): Use add_basic_prefix_cmd.
8054 * sparc64-tdep.c (info_adi_command): Remove.
8055 (_initialize_sparc64_adi_tdep): Use add_basic_prefix_cmd.
8056 * sh-tdep.c (show_sh_command, set_sh_command): Remove.
8057 (_initialize_sh_tdep): Use add_basic_prefix_cmd,
8058 add_show_prefix_cmd.
8059 * serial.c (serial_set_cmd, serial_show_cmd): Remove.
8060 (_initialize_serial): Use add_basic_prefix_cmd,
8061 add_show_prefix_cmd.
8062 * ser-tcp.c (set_tcp_cmd, show_tcp_cmd): Remove.
8063 (_initialize_ser_tcp): Use add_basic_prefix_cmd,
8064 add_show_prefix_cmd.
8065 * rs6000-tdep.c (set_powerpc_command, show_powerpc_command)
8066 (_initialize_rs6000_tdep): Use add_basic_prefix_cmd,
8067 add_show_prefix_cmd.
8068 * riscv-tdep.c (show_riscv_command, set_riscv_command)
8069 (show_debug_riscv_command, set_debug_riscv_command): Remove.
8070 (_initialize_riscv_tdep): Use add_basic_prefix_cmd,
8071 add_show_prefix_cmd.
8072 * remote.c (remote_command, set_remote_cmd): Remove.
8073 (_initialize_remote): Use add_basic_prefix_cmd.
8074 * record-full.c (set_record_full_command)
8075 (show_record_full_command): Remove.
8076 (_initialize_record_full): Use add_basic_prefix_cmd,
8077 add_show_prefix_cmd.
8078 * record-btrace.c (cmd_set_record_btrace)
8079 (cmd_show_record_btrace, cmd_set_record_btrace_bts)
8080 (cmd_show_record_btrace_bts, cmd_set_record_btrace_pt)
8081 (cmd_show_record_btrace_pt): Remove.
8082 (_initialize_record_btrace): Use add_basic_prefix_cmd,
8083 add_show_prefix_cmd.
8084 * ravenscar-thread.c (set_ravenscar_command)
8085 (show_ravenscar_command): Remove.
8086 (_initialize_ravenscar): Use add_basic_prefix_cmd,
8087 add_show_prefix_cmd.
8088 * mips-tdep.c (show_mips_command, set_mips_command)
8089 (_initialize_mips_tdep): Use add_basic_prefix_cmd,
8090 add_show_prefix_cmd.
8091 * maint.c (maintenance_command, maintenance_info_command)
8092 (maintenance_check_command, maintenance_print_command)
8093 (maintenance_set_cmd, maintenance_show_cmd): Remove.
8094 (_initialize_maint_cmds): Use add_basic_prefix_cmd,
8095 add_show_prefix_cmd.
8096 (show_per_command_cmd): Remove.
8097 * maint-test-settings.c (maintenance_set_test_settings_cmd):
8098 Remove.
8099 (maintenance_show_test_settings_cmd): Remove.
8100 (_initialize_maint_test_settings): Use add_basic_prefix_cmd,
8101 add_show_prefix_cmd.
8102 * maint-test-options.c (maintenance_test_options_command):
8103 Remove.
8104 (_initialize_maint_test_options): Use add_basic_prefix_cmd.
8105 * macrocmd.c (macro_command): Remove
8106 (_initialize_macrocmd): Use add_basic_prefix_cmd.
8107 * language.c (set_check, show_check): Remove.
8108 (_initialize_language): Use add_basic_prefix_cmd,
8109 add_show_prefix_cmd.
8110 * infcmd.c (unset_command): Remove.
8111 (_initialize_infcmd): Use add_basic_prefix_cmd.
8112 * i386-tdep.c (set_mpx_cmd, show_mpx_cmd): Remove.
8113 (_initialize_i386_tdep): Use add_basic_prefix_cmd,
8114 add_show_prefix_cmd.
8115 * go32-nat.c (go32_info_dos_command): Remove.
8116 (_initialize_go32_nat): Use add_basic_prefix_cmd.
8117 * cli/cli-decode.c (do_prefix_cmd, add_basic_prefix_cmd)
8118 (do_show_prefix_cmd, add_show_prefix_cmd): New functions.
8119 * frame.c (set_backtrace_cmd, show_backtrace_cmd): Remove.
8120 (_initialize_frame): Use add_basic_prefix_cmd,
8121 add_show_prefix_cmd.
8122 * dcache.c (set_dcache_command, show_dcache_command): Remove.
8123 (_initialize_dcache): Use add_basic_prefix_cmd,
8124 add_show_prefix_cmd.
8125 * cp-support.c (maint_cplus_command): Remove.
8126 (_initialize_cp_support): Use add_basic_prefix_cmd.
8127 * btrace.c (maint_btrace_cmd, maint_btrace_set_cmd)
8128 (maint_btrace_show_cmd, maint_btrace_pt_set_cmd)
8129 (maint_btrace_pt_show_cmd, _initialize_btrace): Use
8130 add_basic_prefix_cmd, add_show_prefix_cmd.
8131 * breakpoint.c (save_command): Remove.
8132 (_initialize_breakpoint): Use add_basic_prefix_cmd.
8133 * arm-tdep.c (set_arm_command, show_arm_command): Remove.
8134 (_initialize_arm_tdep): Use add_basic_prefix_cmd,
8135 add_show_prefix_cmd.
8136 * ada-lang.c (maint_set_ada_cmd, maint_show_ada_cmd)
8137 (set_ada_command, show_ada_command): Remove.
8138 (_initialize_ada_language): Use add_basic_prefix_cmd,
8139 add_show_prefix_cmd.
8140 * command.h (add_basic_prefix_cmd, add_show_prefix_cmd): Declare.
8141
8142 2020-04-16 Kamil Rytarowski <n54@gmx.com>
8143
8144 * nbsd-nat.c (inf_ptrace_target::auxv_parse): Remove.
8145 * nbsd-nat.h (inf_ptrace_target::auxv_parse): Likewise.
8146
8147 2020-04-16 Simon Marchi <simon.marchi@polymtl.ca>
8148
8149 * windows-tdep.c (is_linked_with_cygwin_dll): Add filename to
8150 warning messages.
8151
8152 2020-04-16 Simon Marchi <simon.marchi@polymtl.ca>
8153
8154 * windows-tdep.c (is_linked_with_cygwin_dll): Consider case where
8155 import table is not at beginning of .idata section.
8156
8157 2020-04-16 Pedro Alves <palves@redhat.com>
8158
8159 * inferior.c (delete_inferior): Use delete operator directly
8160 instead of delete_program_space.
8161 * progspace.c (add_program_space): New, factored out from
8162 program_space::program_space.
8163 (remove_program_space): New, factored out from
8164 delete_program_space.
8165 (program_space::program_space): Remove intro comment. Rewrite.
8166 (program_space::~program_space): Remove intro comment. Call
8167 remove_program_space.
8168 (delete_program_space): Delete.
8169 * progspace.h (program_space::program_space): Make explicit. Move
8170 intro comment here, adjusted.
8171 (program_space::~program_space): Move intro comment here,
8172 adjusted.
8173 (delete_program_space): Remove.
8174
8175 2020-04-16 Tom Tromey <tromey@adacore.com>
8176
8177 * windows-nat.c (windows_nat::handle_access_violation): New
8178 function.
8179 * nat/windows-nat.h (handle_access_violation): Declare.
8180 * nat/windows-nat.c (handle_exception): Move Cygwin code to
8181 windows-nat.c. Call handle_access_violation.
8182
8183 2020-04-16 Tom de Vries <tdevries@suse.de>
8184
8185 PR symtab/25791
8186 * dwarf2/index-write.c (write_gdbindex): Generate CU table entries for
8187 CUs without psymtab.
8188
8189 2020-04-16 Kevin Buettner <kevinb@redhat.com>
8190
8191 * python/python.c (do_start_initialization): Don't call
8192 PyEval_InitThreads for Python 3.9 and beyond.
8193
8194 2020-04-15 Kamil Rytarowski <n54@gmx.com>
8195
8196 * obsd-nat.c (obsd_nat_target::update_thread_list): Pass "this" to
8197 thread functions.
8198 (obsd_nat_target::wait): Likewise.
8199
8200 2020-04-15 Tom Tromey <tromey@adacore.com>
8201
8202 * windows-nat.c (DEBUG_EXEC, DEBUG_EVENTS, DEBUG_MEM)
8203 (DEBUG_EXCEPT): Use debug_printf.
8204
8205 2020-04-15 Andrew Burgess <andrew.burgess@embecosm.com>
8206
8207 * completer.c (class completion_tracker::completion_hash_entry)
8208 <hash_name>: New member function.
8209 (completion_tracker::discard_completions): New callback to hash a
8210 completion_hash_entry, pass this to htab_create_alloc.
8211
8212 2016-01-20 Jon Turney <jon.turney@dronecode.org.uk>
8213
8214 * windows-nat.c (windows_make_so): Warn rather than stopping with
8215 an error if realpath() fails.
8216
8217 2020-04-14 Kamil Rytarowski <n54@gmx.com>
8218
8219 * nbsd-nat.c (nbsd_pid_to_kinfo_proc2): New.
8220 (nbsd_nat_target::info_proc): Add do_status.
8221
8222 2020-04-14 Simon Marchi <simon.marchi@polymtl.ca>
8223 Tom de Vries <tdevries@suse.de>
8224
8225 PR symtab/25718
8226 * psympriv.h (struct partial_symtab::read_symtab)
8227 (struct partial_symtab::expand_psymtab)
8228 (struct partial_symtab::read_dependencies): Update comments.
8229 * dwarf2/read.c (struct dwarf2_include_psymtab::read_symtab): Call
8230 read_symtab for includer.
8231 (struct dwarf2_include_psymtab::expand_psymtab): Assert false.
8232 (struct dwarf2_include_psymtab::readin_p): Call readin_p () for includer.
8233 (struct dwarf2_include_psymtab::m_readin): Remove.
8234 (struct dwarf2_include_psymtab::includer): New member function.
8235 (dwarf2_psymtab::expand_psymtab): Assert !readin.
8236
8237 2020-04-14 Tom de Vries <tdevries@suse.de>
8238
8239 PR symtab/25720
8240 * symmisc.c (maintenance_expand_symtabs): Call expand_symtabs_matching
8241 with NULL symbol_matcher and lookup_name.
8242 * psymtab.c (psym_expand_symtabs_matching): Handle NULL symbol_matcher
8243 and lookup_name.
8244 * dwarf2/read.c (dw2_expand_symtabs_matching)
8245 (dw2_debug_names_expand_symtabs_matching): Same.
8246 * symfile.h (struct quick_symbol_functions::expand_symtabs_matching):
8247 Make lookup_name a pointer. Update comment.
8248 * symtab.c (global_symbol_searcher::expand_symtabs): Handle
8249 lookup_name being a pointer.
8250 * symfile.c (expand_symtabs_matching): Same.
8251 * symfile-debug.c (debug_qf_expand_symtabs_matching): Same.
8252 * linespec.c (iterate_over_all_matching_symtabs): Same.
8253
8254 2020-04-13 Tom Tromey <tom@tromey.com>
8255
8256 * run-on-main-thread.c: Update include.
8257 * unittests/main-thread-selftests.c: Update include.
8258 * tui/tui-win.c: Update include.
8259 * tui/tui-io.c: Update include.
8260 * tui/tui-interp.c: Update include.
8261 * tui/tui-hooks.c: Update include.
8262 * top.h: Update include.
8263 * top.c: Update include.
8264 * ser-base.c: Update include.
8265 * remote.c: Update include.
8266 * remote-notif.c: Update include.
8267 * remote-fileio.c: Update include.
8268 * record-full.c: Update include.
8269 * record-btrace.c: Update include.
8270 * python/python.c: Update include.
8271 * posix-hdep.c: Update include.
8272 * mingw-hdep.c: Update include.
8273 * mi/mi-main.c: Update include.
8274 * mi/mi-interp.c: Update include.
8275 * main.c: Update include.
8276 * linux-nat.c: Update include.
8277 * interps.c: Update include.
8278 * infrun.c: Update include.
8279 * inf-loop.c: Update include.
8280 * event-top.c: Update include.
8281 * event-loop.c: Move to ../gdbsupport/.
8282 * event-loop.h: Move to ../gdbsupport/.
8283 * async-event.h: Update include.
8284 * Makefile.in (COMMON_SFILES, HFILES_NO_SRCDIR): Update.
8285
8286 2020-04-13 Tom Tromey <tom@tromey.com>
8287
8288 * tui/tui-win.c: Include async-event.h.
8289 * remote.c: Include async-event.h.
8290 * remote-notif.c: Include async-event.h.
8291 * record-full.c: Include async-event.h.
8292 * record-btrace.c: Include async-event.h.
8293 * infrun.c: Include async-event.h.
8294 * event-top.c: Include async-event.h.
8295 * event-loop.h: Move some declarations to async-event.h.
8296 * event-loop.c: Don't include ser-event.h or top.h. Move some
8297 code to async-event.c.
8298 * async-event.h: New file.
8299 * async-event.c: New file.
8300 * Makefile.in (COMMON_SFILES): Add async-event.c.
8301 (HFILES_NO_SRCDIR): Add async-event.h.
8302
8303 2020-04-13 Tom Tromey <tom@tromey.com>
8304
8305 * utils.c (flush_streams): New function.
8306 * event-loop.c (gdb_wait_for_event): Call flush_streams.
8307
8308 2020-04-13 Tom Tromey <tom@tromey.com>
8309
8310 * event-loop.c (handle_file_event): Use warning, not
8311 printf_unfiltered.
8312
8313 2020-04-13 Tom Tromey <tom@tromey.com>
8314
8315 * event-loop.c: Include <chrono>.
8316
8317 2020-04-13 Tom Tromey <tom@tromey.com>
8318
8319 * gdb_select.h: Move to ../gdbsupport/.
8320 * event-loop.c: Update include path.
8321 * top.c: Update include path.
8322 * ser-base.c: Update include path.
8323 * ui-file.c: Update include path.
8324 * ser-tcp.c: Update include path.
8325 * guile/scm-ports.c: Update include path.
8326 * posix-hdep.c: Update include path.
8327 * ser-unix.c: Update include path.
8328 * gdb_usleep.c: Update include path.
8329 * mingw-hdep.c: Update include path.
8330 * inflow.c: Update include path.
8331 * infrun.c: Update include path.
8332 * event-top.c: Update include path.
8333
8334 2020-04-13 Tom Tromey <tom@tromey.com>
8335
8336 * configure: Rebuild.
8337 * configure.ac: Remove checks that are now in GDB_AC_COMMON.
8338
8339 2020-04-13 Tom Tromey <tom@tromey.com>
8340
8341 * event-loop.h (start_event_loop): Don't declare.
8342 * event-loop.c (start_event_loop): Move...
8343 * main.c (start_event_loop): ...here. Now static.
8344
8345 2020-04-13 Sergio Durigan Junior <sergiodj@sergiodj.net>
8346
8347 * MAINTAINERS: Update my email address.
8348
8349 2020-04-12 Kamil Rytarowski <n54@gmx.com>
8350
8351 * nbsd-nat.c (nbsd_nat_target::info_proc): Add IP_MINIMAL and
8352 IP_ALL.
8353
8354 2020-04-12 Kamil Rytarowski <n54@gmx.com>
8355
8356 * nbsd-nat.c (nbsd_pid_to_cmdline): Add.
8357 (nbsd_nat_target::info_proc): Add do_cmdline.
8358
8359 2020-04-12 Kamil Rytarowski <n54@gmx.com>
8360
8361 * nbsd-nat.c (nbsd_pid_to_cwd): Add.
8362 (nbsd_nat_target::info_proc): Add do_cwd.
8363
8364 2020-04-12 Kamil Rytarowski <n54@gmx.com>
8365
8366 * nbsd-nat.c (nbsd_nat_target::info_proc): Add do_exe.
8367
8368 2020-04-11 Kamil Rytarowski <n54@gmx.com>
8369
8370 * nbsd-nat.c; Include "nbsd-tdep.h" and "gdbarch.h".
8371 * nbsd-nat.c (nbsd_nat_target::find_memory_regions)
8372 (nbsd_nat_target::info_proc): New functions.
8373 * nbsd-nat.c (kinfo_get_vmmap): New function.
8374 * nbsd-nat.c (nbsd_nat_target::info_proc) Use
8375 nbsd_info_proc_mappings_header and nbsd_info_proc_mappings_entry.
8376 * nbsd-tdep.c (nbsd_info_proc_mappings_header)
8377 (nbsd_info_proc_mappings_entry, nbsd_vm_map_entry_flags): New
8378 functions.
8379 * nbsd-tdep.c (KINFO_VME_PROT_READ, KINFO_VME_PROT_WRITE)
8380 (KINFO_VME_PROT_EXEC, KINFO_VME_FLAG_COW)
8381 (KINFO_VME_FLAG_NEEDS_COPY, KINFO_VME_FLAG_NOCOREDUMP)
8382 (KINFO_VME_FLAG_PAGEABLE, KINFO_VME_FLAG_GROWS_UP)
8383 (KINFO_VME_FLAG_GROWS_DOWN): New.
8384
8385 2020-04-10 Artur Shepilko <nomadbyte@gmail.com>
8386
8387 * utils.c (copy_bitwise): Use unsigned 0 constant as operand of
8388 bit shift.
8389
8390 2020-04-10 Tom Tromey <tromey@adacore.com>
8391
8392 * symfile.c (symbol_file_add_separate): Preserve OBJF_MAINLINE.
8393
8394 2020-04-10 Tom Tromey <tromey@adacore.com>
8395
8396 * symtab.c (get_symbol_address, get_msymbol_address): Skip
8397 separate debug files.
8398
8399 2020-04-10 Hannes Domani <ssbssa@yahoo.de>
8400
8401 * nat/windows-nat.c (STATUS_WX86_BREAKPOINT, STATUS_WX86_SINGLE_STEP):
8402 Move to...
8403 * nat/windows-nat.h (STATUS_WX86_BREAKPOINT, STATUS_WX86_SINGLE_STEP):
8404 ... here.
8405 * windows-nat.c (windows_nat_target::get_windows_debug_event):
8406 Check for STATUS_WX86_BREAKPOINT.
8407 (windows_nat_target::wait): Same.
8408
8409 2020-04-10 Tom de Vries <tdevries@suse.de>
8410
8411 PR cli/25808
8412 * python/lib/gdb/__init__.py: Initialize lexer with stripnl=False.
8413
8414 2020-04-09 Simon Marchi <simon.marchi@polymtl.ca>
8415
8416 * MAINTAINERS (Global Maintainers): Add Tom de Vries.
8417 (Write After Approval): Remove Tom de Vries.
8418
8419 2020-04-09 Bernd Edlinger <bernd.edlinger@hotmail.de>
8420
8421 revert partially:
8422 2020-04-01 Bernd Edlinger <bernd.edlinger@hotmail.de>
8423
8424 * buildsym.c (record_line): Fix undefined behavior and preserve
8425 lines at eof.
8426
8427 2020-04-09 Kamil Rytarowski <n54@gmx.com>
8428
8429 * auxv.h (svr4_auxv_parse): New.
8430 * auxv.c (default_auxv_parse): Split into default_auxv_parse
8431 and generic_auxv_parse.
8432 (svr4_auxv_parse): Add.
8433 * obsd-tdep.c: Include "auxv.h".
8434 (obsd_auxv_parse): Remove.
8435 (obsd_init_abi): Remove comment.
8436 (obsd_init_abi): Change set_gdbarch_auxv_parse passed argument
8437 from `obsd_auxv_parse' to `svr4_auxv_parse'.
8438 * nbsd-tdep.c: Include "auxv.h".
8439 (nbsd_init_abi): Call set_gdbarch_auxv_parse.
8440
8441 2020-04-08 Tom Tromey <tromey@adacore.com>
8442
8443 * nat/windows-nat.h (last_wait_event): Don't declare.
8444 (wait_for_debug_event): Update comment.
8445 * nat/windows-nat.c (last_wait_event): Now static.
8446
8447 2020-04-08 Tom Tromey <tromey@adacore.com>
8448
8449 * windows-nat.c (wait_for_debug_event): Move to
8450 nat/windows-nat.c.
8451 * nat/windows-nat.h (wait_for_debug_event): Declare.
8452 * nat/windows-nat.c (wait_for_debug_event): Move from
8453 windows-nat.c. No longer static.
8454
8455 2020-04-08 Tom Tromey <tromey@adacore.com>
8456
8457 * windows-nat.c (get_windows_debug_event): Use
8458 fetch_pending_stop.
8459 * nat/windows-nat.h (fetch_pending_stop): Declare.
8460 * nat/windows-nat.c (fetch_pending_stop): New function.
8461
8462 2020-04-08 Tom Tromey <tromey@adacore.com>
8463
8464 * windows-nat.c (windows_continue): Use matching_pending_stop and
8465 continue_last_debug_event.
8466 * nat/windows-nat.h (matching_pending_stop)
8467 (continue_last_debug_event): Declare.
8468 * nat/windows-nat.c (DEBUG_EVENTS): New define.
8469 (matching_pending_stop, continue_last_debug_event): New
8470 functions.
8471
8472 2020-04-08 Tom Tromey <tromey@adacore.com>
8473
8474 * windows-nat.c (MS_VC_EXCEPTION): Move to nat/windows-nat.c.
8475 (handle_exception_result): Move to nat/windows-nat.h.
8476 (DEBUG_EXCEPTION_SIMPLE): Remove.
8477 (windows_nat::handle_ms_vc_exception): New function.
8478 (handle_exception): Move to nat/windows-nat.c.
8479 (get_windows_debug_event): Update.
8480 (STATUS_WX86_BREAKPOINT, STATUS_WX86_SINGLE_STEP): Move to
8481 nat/windows-nat.c.
8482 * nat/windows-nat.h (handle_ms_vc_exception): Declare.
8483 (handle_exception_result): Move from windows-nat.c.
8484 (handle_exception): Declare.
8485 * nat/windows-nat.c (MS_VC_EXCEPTION, handle_exception)
8486 (STATUS_WX86_SINGLE_STEP, STATUS_WX86_BREAKPOINT): Move from
8487 windows-nat.c.
8488
8489 2020-04-08 Tom Tromey <tromey@adacore.com>
8490
8491 * windows-nat.c (exception_count, event_count): Remove.
8492 (handle_exception, get_windows_debug_event)
8493 (do_initial_windows_stuff): Update.
8494
8495 2020-04-08 Tom Tromey <tromey@adacore.com>
8496
8497 * windows-nat.c (windows_nat::handle_load_dll)
8498 (windows_nat::handle_unload_dll): Rename. No longer static.
8499 * nat/windows-nat.h (handle_load_dll, handle_unload_dll):
8500 Declare.
8501
8502 2020-04-08 Tom Tromey <tromey@adacore.com>
8503
8504 * complaints.h (stop_whining): Declare at top-level.
8505 (complaint): Don't declare stop_whining.
8506
8507 2020-04-08 Tom Tromey <tromey@adacore.com>
8508
8509 * windows-nat.c (windows_nat::handle_output_debug_string):
8510 Rename. No longer static.
8511 * nat/windows-nat.h (handle_output_debug_string): Declare.
8512
8513 2020-04-08 Tom Tromey <tromey@adacore.com>
8514
8515 * windows-nat.c (current_process_handle, current_process_id)
8516 (main_thread_id, last_sig, current_event, last_wait_event)
8517 (current_windows_thread, desired_stop_thread_id, pending_stops)
8518 (struct pending_stop, siginfo_er): Move to nat/windows-nat.c.
8519 (display_selectors, fake_create_process)
8520 (get_windows_debug_event): Update.
8521 * nat/windows-nat.h (current_process_handle, current_process_id)
8522 (main_thread_id, last_sig, current_event, last_wait_event)
8523 (current_windows_thread, desired_stop_thread_id, pending_stops)
8524 (struct pending_stop, siginfo_er): Move from windows-nat.c.
8525 * nat/windows-nat.c (current_process_handle, current_process_id)
8526 (main_thread_id, last_sig, current_event, last_wait_event)
8527 (current_windows_thread, desired_stop_thread_id, pending_stops)
8528 (siginfo_er): New globals. Move from windows-nat.c.
8529
8530 2020-04-08 Tom Tromey <tromey@adacore.com>
8531
8532 * windows-nat.c (get_image_name): Move to nat/windows-nat.c.
8533 (handle_load_dll): Update.
8534 * nat/windows-nat.c (get_image_name): Move from windows-nat.c.
8535
8536 2020-04-08 Tom Tromey <tromey@adacore.com>
8537
8538 * windows-nat.c (enum thread_disposition_type): Move to
8539 nat/windows-nat.h.
8540 (windows_nat::thread_rec): Rename from thread_rec. No longer
8541 static.
8542 (windows_add_thread, windows_nat_target::fetch_registers)
8543 (windows_nat_target::store_registers, handle_exception)
8544 (windows_nat_target::resume, get_windows_debug_event)
8545 (windows_nat_target::get_tib_address)
8546 (windows_nat_target::thread_name)
8547 (windows_nat_target::thread_alive): Update.
8548 * nat/windows-nat.h (enum thread_disposition_type): Move from
8549 windows-nat.c.
8550 (thread_rec): Declare.
8551
8552 2020-04-08 Tom Tromey <tromey@adacore.com>
8553
8554 * windows-nat.c: Add "using namespace".
8555 * nat/windows-nat.h: Wrap contents in windows_nat namespace.
8556 * nat/windows-nat.c: Wrap contents in windows_nat namespace.
8557
8558 2020-04-08 Tom Tromey <tromey@adacore.com>
8559
8560 * nat/windows-nat.h (struct windows_thread_info): Declare
8561 destructor.
8562 * nat/windows-nat.c (~windows_thread_info): New.
8563
8564 2020-04-08 Tom Tromey <tromey@adacore.com>
8565
8566 PR gdb/22992
8567 * windows-nat.c (current_event): Update comment.
8568 (last_wait_event, desired_stop_thread_id): New globals.
8569 (struct pending_stop): New.
8570 (pending_stops): New global.
8571 (windows_nat_target) <stopped_by_sw_breakpoint>
8572 <supports_stopped_by_sw_breakpoint>: New methods.
8573 (windows_fetch_one_register): Add assertions. Adjust PC.
8574 (windows_continue): Handle pending stops. Suspend other threads
8575 when stepping. Use last_wait_event
8576 (wait_for_debug_event): New function.
8577 (get_windows_debug_event): Use wait_for_debug_event. Handle
8578 pending stops. Queue spurious stops.
8579 (windows_nat_target::wait): Set stopped_at_software_breakpoint.
8580 (windows_nat_target::kill): Use wait_for_debug_event.
8581 * nat/windows-nat.h (struct windows_thread_info)
8582 <stopped_at_software_breakpoint>: New field.
8583 * nat/windows-nat.c (windows_thread_info::resume): Clear
8584 stopped_at_software_breakpoint.
8585
8586 2020-04-08 Tom Tromey <tromey@adacore.com>
8587
8588 * windows-nat.c (enum thread_disposition_type): New.
8589 (thread_rec): Replace "get_context" parameter with "disposition";
8590 change type.
8591 (windows_add_thread, windows_nat_target::fetch_registers)
8592 (windows_nat_target::store_registers, handle_exception)
8593 (windows_nat_target::resume, get_windows_debug_event)
8594 (windows_nat_target::get_tib_address)
8595 (windows_nat_target::thread_name)
8596 (windows_nat_target::thread_alive): Update.
8597
8598 2020-04-08 Tom Tromey <tromey@adacore.com>
8599
8600 * windows-nat.c (thread_rec): Use windows_thread_info::suspend.
8601 (windows_continue): Use windows_continue::resume.
8602 * nat/windows-nat.h (struct windows_thread_info) <suspend,
8603 resume>: Declare new methods.
8604 * nat/windows-nat.c: New file.
8605 * configure.nat (NATDEPFILES): Add nat/windows-nat.o when needed.
8606
8607 2020-04-08 Tom Tromey <tromey@adacore.com>
8608
8609 * windows-nat.c (windows_add_thread, windows_delete_thread)
8610 (windows_nat_target::fetch_registers)
8611 (windows_nat_target::store_registers, fake_create_process)
8612 (windows_nat_target::resume, windows_nat_target::resume)
8613 (get_windows_debug_event, windows_nat_target::wait)
8614 (windows_nat_target::pid_to_str)
8615 (windows_nat_target::get_tib_address)
8616 (windows_nat_target::get_ada_task_ptid)
8617 (windows_nat_target::thread_name)
8618 (windows_nat_target::thread_alive): Use lwp, not tid.
8619
8620 2020-04-08 Tom Tromey <tromey@adacore.com>
8621
8622 * windows-nat.c (handle_exception)
8623 (windows_nat_target::thread_name): Update.
8624 * nat/windows-nat.h (windows_thread_info): Remove destructor.
8625 <name>: Now unique_xmalloc_ptr.
8626
8627 2020-04-08 Tom Tromey <tromey@adacore.com>
8628
8629 * windows-nat.c (thread_rec)
8630 (windows_nat_target::fetch_registers): Update.
8631 * nat/windows-nat.h (struct windows_thread_info) <suspended>:
8632 Update comment.
8633 <debug_registers_changed, reload_context>: Now bool.
8634
8635 2020-04-08 Tom Tromey <tromey@adacore.com>
8636
8637 * windows-nat.c (windows_add_thread): Use new.
8638 (windows_init_thread_list, windows_delete_thread): Use delete.
8639 (get_windows_debug_event): Update.
8640 * nat/windows-nat.h (struct windows_thread_info): Add constructor,
8641 destructor, and initializers.
8642
8643 2020-04-08 Tom Tromey <tromey@adacore.com>
8644
8645 * windows-nat.c (struct windows_thread_info): Remove.
8646 * nat/windows-nat.h: New file.
8647
8648 2020-04-08 Tom Tromey <tromey@adacore.com>
8649
8650 * windows-nat.c (struct windows_thread_info) <tid>: Rename from "id".
8651 (thread_rec, windows_add_thread, windows_delete_thread)
8652 (windows_continue): Update.
8653
8654 2020-04-08 Tom Tromey <tromey@adacore.com>
8655
8656 * windows-nat.c (struct windows_thread_info): Remove typedef.
8657 (thread_head): Remove.
8658 (thread_list): New global.
8659 (thread_rec, windows_add_thread, windows_init_thread_list)
8660 (windows_delete_thread, windows_continue): Update.
8661
8662 2020-04-08 Simon Marchi <simon.marchi@polymtl.ca>
8663
8664 * windows-tdep.h (windows_init_abi): Add comment.
8665 (cygwin_init_abi): New declaration.
8666 * windows-tdep.c: Split signal enumeration in two, one for
8667 Windows and one for Cygwin.
8668 (windows_gdb_signal_to_target): Only deal with signal of the
8669 Windows OS ABI.
8670 (cygwin_gdb_signal_to_target): New function.
8671 (windows_init_abi): Rename to windows_init_abi_common, don't set
8672 gdb_signal_to_target gdbarch method. Add new new function with
8673 this name.
8674 (cygwin_init_abi): New function.
8675 * amd64-windows-tdep.c (amd64_windows_init_abi_common): Add
8676 comment. Don't call windows_init_abi.
8677 (amd64_windows_init_abi): Add comment, call windows_init_abi.
8678 (amd64_cygwin_init_abi): Add comment, call cygwin_init_abi.
8679 * i386-windows-tdep.c (i386_windows_init_abi): Rename to
8680 i386_windows_init_abi_common, don't call windows_init_abi. Add
8681 a new function of this name.
8682 (i386_cygwin_init_abi): New function.
8683 (_initialize_i386_windows_tdep): Bind i386_cygwin_init_abi to
8684 OS ABI Cygwin.
8685
8686 2020-04-08 Simon Marchi <simon.marchi@polymtl.ca>
8687
8688 * dwarf2/read.c (read_gdb_index_from_buffer): Remove objfile
8689 parameter.c.
8690 (dwarf2_read_gdb_index): Update.
8691
8692 2020-04-07 Kamil Rytarowski <n54@gmx.com>
8693
8694 * nbsd-tdep.c: Include "objfiles.h".
8695 (nbsd_skip_solib_resolver): New.
8696 (nbsd_init_abi): Call set_gdbarch_skip_solib_resolver().
8697
8698 2020-04-07 Nitika Achra <Nitika.Achra@amd.com>
8699
8700 * dwarf2/loc.c (loclist_describe_location): Call the function decode_debug_loclists_
8701 addresses if DWARF version is 5 or more because DW_LLE_start* or DW_LLE_offset_pair
8702 with DW_LLE_base_addressx are being emitted in DWARFv5.
8703 Add the newly added kind DW_LOC_OFFSET_PAIR also.
8704 The length of location description is an unsigned ULEB integer in DWARFv5 instead of
8705 unsigned integer.
8706
8707 2020-04-07 Nitika Achra <Nitika.Achra@amd.com>
8708
8709 * dwarf2/loc.c (enum debug_loc_kind): Add a new kind DEBUG_LOC_OFFSET_PAIR.
8710 (dwarf2_find_location_expression): Call the function decode_debug_loclists_
8711 addresses if DWARF version is 5 or more. DW_LLE_start* or DW_LLE_offset_pair
8712 with DW_LLE_base_addressx are being emitted in DWARFv5 instead of DW_LLE_GNU*.
8713 Add applicable base address if the entry is DW_LLE_offset_pair from DWO.
8714 (decode_debug_loclists_addresses): Return DEBUG_LOC_OFFSET_PAIR instead of
8715 DEBUG_LOC_START_END in case of DW_LLE_offset_pair.
8716
8717
8718 2020-04-07 Nitika Achra <Nitika.Achra@amd.com>
8719
8720 * dwarf2/read.c (cu_debug_loc_section): Added the declaration for the function.
8721 (read_loclist_index): New function definition.
8722 (lookup_loclist_base): New function definition.
8723 (read_loclist_header): New function definition.
8724 (dwarf2_cu): Add loclist_base and loclist_header field.
8725 (dwarf2_locate_dwo_sections): Handle .debug_loclists.dwo section.
8726 (read_full_die_1): Read the value of DW_AT_loclists_base.
8727 (read_attribute_reprocess): Handle DW_FORM_loclistx.
8728 (read_attribute_value): Handle DW_FORM_loclistx.
8729 (skip_one_die): Handle DW_FORM_loclistx.
8730 (loclist_header): New structure declaration.
8731 * dwarf2/attribute.c (form_is_section_offset): Handle DW_FORM_loclistx.
8732
8733 2020-04-07 Simon Marchi <simon.marchi@polymtl.ca>
8734
8735 * dwarf2/read.h (struct dwarf2_psymtab): Remove two-parameters
8736 constructor. Remove `addr` parameter from other constructor and
8737 add `per_cu` parameter.
8738 * dwarf2/read.c (create_partial_symtab): Update.
8739
8740 2020-04-07 Tom de Vries <tdevries@suse.de>
8741
8742 PR symtab/25796
8743 * dwarf2/read.c (can_have_DW_AT_const_value_p): New function.
8744 (partial_die_info::fixup): Inherit has_const_value.
8745
8746 2020-04-07 Tom de Vries <tdevries@suse.de>
8747
8748 * psymtab.c (maintenance_check_psymtabs): Skip static LOC_BLOCK
8749 symbols without address.
8750
8751 2020-04-06 Kamil Rytarowski <n54@gmx.com>
8752
8753 * nbsd-nat.h (struct thread_info): Add forward declaration.
8754 (nbsd_nat_target::thread_alive): Add.
8755 (nbsd_nat_target::thread_name): Likewise.
8756 (nbsd_nat_target::update_thread_list): Likewise.
8757 (update_thread_list::post_attach): Likewise.
8758 (post_attach::pid_to_str): Likewise.
8759 * nbsd-nat.c: Include "gdbthread.h" and "inferior.h".
8760 (nbsd_thread_lister): Add.
8761 (nbsd_nat_target::thread_alive): Likewise.
8762 (nbsd_nat_target::thread_name): Likewise.
8763 (nbsd_add_threads): Likewise.
8764 (update_thread_list::post_attach): Likewise.
8765 (nbsd_nat_target::update_thread_list): Likewise.
8766 (post_attach::pid_to_str): Likewise.
8767
8768 2020-04-06 Tom Tromey <tromey@adacore.com>
8769
8770 * ada-valprint.c (print_variant_part): Extract the variant field.
8771 (print_field_values): Use the field as the outer value when
8772 recursing.
8773
8774 2020-04-06 Tom Tromey <tromey@adacore.com>
8775
8776 * sh-nbsd-tdep.c: Include nbsd-tdep.h.
8777 * ppc-nbsd-tdep.c: Include nbsd-tdep.h.
8778 * mips-nbsd-tdep.c (mipsnbsd_init_abi): Add missing ";".
8779 * arm-nbsd-tdep.c: Include nbsd-tdep.h.
8780 * hppa-nbsd-tdep.c: Include nbsd-tdep.h.
8781
8782 2020-04-06 Tom Tromey <tromey@adacore.com>
8783
8784 * dwarf2/read.c (read_base_type) <DW_ATE_complex_float>: Handle
8785 TYPE_CODE_ERROR.
8786
8787 2020-04-06 Kamil Rytarowski <n54@gmx.com>
8788
8789 * nbsd-tdep.c: Include "gdbarch.h".
8790 Define enum with NetBSD signal numbers.
8791 (nbsd_gdb_signal_from_target, nbsd_gdb_signal_to_target): New.
8792 * alpha-nbsd-tdep.c (alphanbsd_init_abi): Call nbsd_init_abi().
8793 * amd64-nbsd-tdep.c (amd64nbsd_init_abi): Likewise.
8794 * arm-nbsd-tdep.c (arm_netbsd_elf_init_abi): Likewise.
8795 * hppa-nbsd-tdep.c (hppanbsd_init_abi): Likewise.
8796 * i386-nbsd-tdep.c (i386nbsd_init_abi): Likewise.
8797 * mips-nbsd-tdep.c (nbsd_init_abi): Likewise.
8798 * ppc-nbsd-tdep.c (ppcnbsd_init_abi): Likewise.
8799 * sh-nbsd-tdep.c (shnbsd_init_abi): Likewise.
8800 * sparc-nbsd-tdep.c (sparc32nbsd_init_abi): Likewise.
8801 * sparc64-nbsd-tdep.c (sparc64nbsd_init_abi): Likewise.
8802 * vax-nbsd-tdep.c (vaxnbsd_elf_init_abi): Likewise.
8803
8804 2020-04-03 Hannes Domani <ssbssa@yahoo.de>
8805
8806 PR gdb/25325
8807 * dwarf2/read.c (read_enumeration_type): Fix typed enum attributes.
8808
8809 2020-04-03 Tom Tromey <tromey@adacore.com>
8810
8811 * dwarf2/loc.c (disassemble_dwarf_expression) <DW_OP_const_type>:
8812 Read constant block.
8813
8814 2020-04-02 Simon Marchi <simon.marchi@polymtl.ca>
8815
8816 * gdb_bfd.h: Include gdbsupport/byte-vector.h.
8817 (gdb_bfd_get_full_section_contents): New declaration.
8818 * gdb_bfd.c (gdb_bfd_get_full_section_contents): New function.
8819 * windows-tdep.c (is_linked_with_cygwin_dll): Use
8820 gdb_bfd_get_full_section_contents.
8821
8822 2020-04-02 Simon Marchi <simon.marchi@polymtl.ca>
8823
8824 * exec.c (build_section_table): Replace internal_error with
8825 gdb_assert.
8826 (section_table_xfer_memory_partial): Likewise.
8827 * mdebugread.c (parse_partial_symbols): Likewise.
8828 * psymtab.c (lookup_partial_symbol): Likewise.
8829 * utils.c (wrap_here): Likewise.
8830
8831 2020-04-02 Tom Tromey <tromey@adacore.com>
8832
8833 * f-lang.c (build_fortran_types): Use arch_type to initialize
8834 builtin_complex_s32 in the TYPE_CODE_ERROR case.
8835
8836 2020-04-02 Tom Tromey <tromey@adacore.com>
8837
8838 * dwarf2/read.c (partial_die_info::read): Do not create a vector
8839 of attributes.
8840
8841 2020-04-02 Andrew Burgess <andrew.burgess@embecosm.com>
8842 Bernd Edlinger <bernd.edlinger@hotmail.de>
8843 Tom Tromey <tromey@adacore.com>
8844
8845 * buildsym.c (buildsym_compunit::record_line): Remove
8846 deduplication code.
8847
8848 2020-04-02 Tom de Vries <tdevries@suse.de>
8849
8850 PR ada/24671
8851 * dwarf2/read.c (dw2_map_matching_symbols): Handle -readnow.
8852
8853 2020-04-02 Tom de Vries <tdevries@suse.de>
8854
8855 * dwarf2/read.c (dwarf2_gdb_index_functions,
8856 dwarf2_debug_names_functions): Init lookup_global_symbol_language with
8857 NULL.
8858 * psymtab.c (psym_lookup_global_symbol_language): New function.
8859 (psym_functions): Init psym_lookup_global_symbol_language with
8860 psym_lookup_global_symbol_language.
8861 * symfile-debug.c (debug_sym_quick_functions): Init
8862 lookup_global_symbol_language with NULL.
8863 * symfile.c (set_initial_language): Remove fixme comment.
8864 * symfile.h (struct quick_symbol_functions): Add
8865 lookup_global_symbol_language.
8866 * symtab.c (find_quick_global_symbol_language): New function.
8867 (find_main_name): Use find_quick_global_symbol_language.
8868
8869 2020-04-01 Simon Marchi <simon.marchi@polymtl.ca>
8870
8871 * windows-tdep.c (is_linked_with_cygwin_dll): Fix style.
8872
8873 2020-04-01 Bernd Edlinger <bernd.edlinger@hotmail.de>
8874
8875 * buildsym.c (record_line): Fix undefined behavior and preserve
8876 lines at eof.
8877
8878 2020-04-01 Bernd Edlinger <bernd.edlinger@hotmail.de>
8879
8880 * buildsym.c (record_line): Fix the resizing condition.
8881
8882 2020-04-01 Tom Tromey <tom@tromey.com>
8883
8884 * value.h (value_literal_complex): Add comment.
8885 * valops.c (value_literal_complex): Refer to value.h.
8886
8887 2020-04-01 Tom Tromey <tom@tromey.com>
8888
8889 * c-exp.y (FLOAT_KEYWORD, COMPLEX): New tokens.
8890 (scalar_type): New rule, from typebase.
8891 (typebase): Use scalar_type. Recognize complex types.
8892 (field_name): Handle FLOAT_KEYWORD.
8893 (ident_tokens): Add _Complex and __complex__.
8894
8895 2020-04-01 Tom Tromey <tom@tromey.com>
8896
8897 PR exp/25299:
8898 * valarith.c (promotion_type, complex_binop): New functions.
8899 (scalar_binop): Handle complex numbers. Use promotion_type.
8900 (value_pos, value_neg, value_complement): Handle complex numbers.
8901
8902 2020-04-01 Tom Tromey <tom@tromey.com>
8903
8904 * c-exp.y (COMPLEX_INT, COMPLEX_FLOAT): New tokens.
8905 (exp) <COMPLEX_INT, COMPLEX_FLOAT>: New rules.
8906 (parse_number): Handle complex numbers.
8907
8908 2020-04-01 Tom Tromey <tom@tromey.com>
8909
8910 * c-valprint.c (c_decorations): Change complex suffix to "i".
8911
8912 2020-04-01 Tom Tromey <tom@tromey.com>
8913
8914 * valprint.c (generic_value_print_complex): Use accessors.
8915 * value.h (value_real_part, value_imaginary_part): Declare.
8916 * valops.c (value_real_part, value_imaginary_part): New
8917 functions.
8918 * value.c (creal_internal_fn, cimag_internal_fn): Use accessors.
8919
8920 2020-04-01 Tom Tromey <tom@tromey.com>
8921
8922 * stabsread.c (rs6000_builtin_type, read_sun_floating_type)
8923 (read_range_type): Update.
8924 * mdebugread.c (basic_type): Update.
8925 * go-lang.c (build_go_types): Use init_complex_type.
8926 * gdbtypes.h (struct main_type) <complex_type>: New member.
8927 (init_complex_type): Update.
8928 (arch_complex_type): Don't declare.
8929 * gdbtypes.c (init_complex_type): Remove "objfile" parameter.
8930 Make name if none given. Use alloc_type_copy. Look for cached
8931 complex type.
8932 (arch_complex_type): Remove.
8933 (gdbtypes_post_init): Use init_complex_type.
8934 * f-lang.c (build_fortran_types): Use init_complex_type.
8935 * dwarf2/read.c (read_base_type): Update.
8936 * d-lang.c (build_d_types): Use init_complex_type.
8937 * ctfread.c (read_base_type): Update.
8938
8939 2020-04-01 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
8940
8941 * infrun.c (stop_all_threads): Update assertion, plus when
8942 stopping threads, take into account that we might be trying
8943 to stop an all-stop target.
8944 (stop_waiting): Call 'stop_all_threads' if there exists a
8945 non-stop target.
8946
8947 2020-04-01 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
8948
8949 * target.h (exists_non_stop_target): New function declaration.
8950 * target.c (exists_non_stop_target): New function.
8951
8952 2020-04-01 Hannes Domani <ssbssa@yahoo.de>
8953
8954 PR gdb/24789
8955 * eval.c (is_integral_or_integral_reference): New function.
8956 (evaluate_subexp_standard): Allow integer references in
8957 pointer arithmetic.
8958
8959 2020-04-01 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
8960
8961 * remote.c (remote_target::remote_parse_stop_reply): Remove the
8962 check for no ptid in the stop reply when the target is non-stop.
8963
8964 2020-04-01 Tom Tromey <tromey@adacore.com>
8965
8966 * symtab.h (class lookup_name_info) <lookup_name_info>: Change
8967 "name" parameter to rvalue reference. Initialize m_name_holder.
8968 <lookup_name_info>: New overloads.
8969 <name>: Return gdb::string_view.
8970 <c_str>: New method.
8971 <make_ignore_params>: Update.
8972 <search_name_hash>: Update.
8973 <language_lookup_name>: Return const char *.
8974 <m_name>: Change type.
8975 * symtab.c (demangle_for_lookup_info::demangle_for_lookup_info)
8976 (demangle_for_lookup_info::demangle_for_lookup_info): Update.
8977 (lookup_name_info::match_any): Update.
8978 * psymtab.c (match_partial_symbol, lookup_partial_symbol):
8979 Update.
8980 * minsyms.c (linkage_name_str): Update.
8981 * language.c (default_symbol_name_matcher): Update.
8982 * dwarf2/read.c (mapped_index_base::find_name_components_bounds):
8983 Update.
8984 * ada-lang.c (ada_fold_name): Change parameter to string_view.
8985 (ada_lookup_name_info::ada_lookup_name_info): Update.
8986 (literal_symbol_name_matcher): Update.
8987
8988 2020-04-01 Tom Tromey <tromey@adacore.com>
8989
8990 * psymtab.c (psymtab_search_name): Remove function.
8991 (psym_lookup_symbol): Create search name and lookup name here.
8992 (lookup_partial_symbol): Remove "name" parameter; add
8993 lookup_name.
8994 (psym_expand_symtabs_for_function): Update.
8995
8996 2020-03-31 Joel Jones <joelkevinjones@gmail.com>
8997
8998 PR tui/25597:
8999 * python/py-tui.c: Include gdb_curses.h inside of #ifdef TUI.
9000
9001 2020-03-31 Tom Tromey <tromey@adacore.com>
9002
9003 * dwarf2/abbrev.c (abbrev_table::read): Conditionally call
9004 memcpy.
9005
9006 2020-03-30 Nelson Chu <nelson.chu@sifive.com>
9007
9008 * features/riscv/32bit-csr.xml: Regenerated.
9009 * features/riscv/64bit-csr.xml: Regenerated.
9010
9011 2020-03-30 Tom Tromey <tromey@adacore.com>
9012
9013 * ada-valprint.c (print_variant_part): Update.
9014 * ada-lang.h (ada_which_variant_applies): Update.
9015 * ada-lang.c (ada_which_variant_applies): Remove outer_type and
9016 outer_valaddr parameters; replace with "outer" value parameter.
9017 (to_fixed_variant_branch_type): Update.
9018
9019 2020-03-30 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
9020
9021 * ppc-linux-nat.c: Include <algorithm>, <unordered_map>, and
9022 <list>. Remove inclusion of observable.h.
9023 (PPC_DEBUG_CURRENT_VERSION): Move up define.
9024 (struct arch_lwp_info): New struct.
9025 (class ppc_linux_dreg_interface): New class.
9026 (struct ppc_linux_process_info): New struct.
9027 (struct ppc_linux_nat_target) <low_delete_thread, low_new_fork>
9028 <low_new_clone, low_forget_process, low_prepare_to_resume>
9029 <copy_thread_dreg_state, mark_thread_stale>
9030 <mark_debug_registers_changed, register_hw_breakpoint>
9031 <clear_hw_breakpoint, register_wp, clear_wp>
9032 <can_use_watchpoint_cond_accel, calculate_dvc, check_condition>
9033 <num_memory_accesses, get_trigger_type>
9034 <create_watchpoint_request, hwdebug_point_cmp>
9035 <init_arch_lwp_info, get_arch_lwp_info>
9036 <low_stopped_by_watchpoint, low_stopped_data_address>: Declare as
9037 methods.
9038 <struct ptid_hash>: New inner struct.
9039 <m_dreg_interface, m_process_info, m_installed_hw_bps>: Declare
9040 members.
9041 (saved_dabr_value, hwdebug_info, max_slots_number)
9042 (struct hw_break_tuple, struct thread_points, ppc_threads)
9043 (have_ptrace_hwdebug_interface)
9044 (hwdebug_find_thread_points_by_tid)
9045 (hwdebug_insert_point, hwdebug_remove_point): Remove.
9046 (ppc_linux_nat_target::can_use_hw_breakpoint): Use
9047 m_dreg_interface, remove call to PTRACE_SET_DEBUGREG.
9048 (ppc_linux_nat_target::region_ok_for_hw_watchpoint): Add comment,
9049 use m_dreg_interface.
9050 (hwdebug_point_cmp): Change to...
9051 (ppc_linux_nat_target::hwdebug_point_cmp): ...this method. Use
9052 reference arguments instead of pointers.
9053 (ppc_linux_nat_target::ranged_break_num_registers): Use
9054 m_dreg_interface.
9055 (ppc_linux_nat_target::insert_hw_breakpoint): Add comment, use
9056 m_dreg_interface. Call register_hw_breakpoint.
9057 (ppc_linux_nat_target::remove_hw_breakpoint): Add comment, use
9058 m_dreg_interface. Call clear_hw_breakpoint.
9059 (get_trigger_type): Change to...
9060 (ppc_linux_nat_target::get_trigger_type): ...this method. Add
9061 comment.
9062 (ppc_linux_nat_target::insert_mask_watchpoint): Update comment,
9063 use m_dreg_interface. Call register_hw_breakpoint.
9064 (ppc_linux_nat_target::remove_mask_watchpoint): Update comment,
9065 use m_dreg_interface. Call clear_hw_breakpoint.
9066 (can_use_watchpoint_cond_accel): Change to...
9067 (ppc_linux_nat_target::can_use_watchpoint_cond_accel): ...this
9068 method. Update comment, use m_dreg_interface and
9069 m_process_info.
9070 (calculate_dvc): Change to...
9071 (ppc_linux_nat_target::calculate_dvc): ...this method. Use
9072 m_dreg_interface.
9073 (num_memory_accesses): Change to...
9074 (ppc_linux_nat_target::num_memory_accesses): ...this method.
9075 (check_condition): Change to...
9076 (ppc_linux_nat_target::check_condition): ...this method.
9077 (ppc_linux_nat_target::can_accel_watchpoint_condition): Update
9078 comment, use m_dreg_interface.
9079 (create_watchpoint_request): Change to...
9080 (ppc_linux_nat_target::create_watchpoint_request): ...this
9081 method. Use m_dreg_interface.
9082 (ppc_linux_nat_target::insert_watchpoint): Add comment, use
9083 m_dreg_interface. Call register_hw_breakpoint or register_wp.
9084 (ppc_linux_nat_target::remove_watchpoint): Add comment, use
9085 m_dreg_interface. Call clear_hw_breakpoint or clear_wp.
9086 (ppc_linux_nat_target::low_forget_process)
9087 (ppc_linux_nat_target::low_new_fork)
9088 (ppc_linux_nat_target::low_new_clone)
9089 (ppc_linux_nat_target::low_delete_thread)
9090 (ppc_linux_nat_target::low_prepare_to_resume): New methods.
9091 (ppc_linux_nat_target::low_new_thread): Remove previous logic,
9092 only call mark_thread_stale.
9093 (ppc_linux_thread_exit): Remove.
9094 (ppc_linux_nat_target::stopped_data_address): Change to...
9095 (ppc_linux_nat_target::low_stopped_data_address): This. Add
9096 comment, use m_dreg_interface and m_thread_hw_breakpoints.
9097 (ppc_linux_nat_target::stopped_by_watchpoint): Change to...
9098 (ppc_linux_nat_target::stopped_by_watchpoint): This. Add
9099 comment. Call low_stopped_data_address.
9100 (ppc_linux_nat_target::watchpoint_addr_within_range): Use
9101 m_dreg_interface.
9102 (ppc_linux_nat_target::masked_watch_num_registers): Use
9103 m_dreg_interface.
9104 (ppc_linux_nat_target::copy_thread_dreg_state)
9105 (ppc_linux_nat_target::mark_thread_stale)
9106 (ppc_linux_nat_target::mark_debug_registers_changed)
9107 (ppc_linux_nat_target::register_hw_breakpoint)
9108 (ppc_linux_nat_target::clear_hw_breakpoint)
9109 (ppc_linux_nat_target::register_wp)
9110 (ppc_linux_nat_target::clear_wp)
9111 (ppc_linux_nat_target::init_arch_lwp_info)
9112 (ppc_linux_nat_target::get_arch_lwp_info): New methods.
9113 (_initialize_ppc_linux_nat): Remove observer callback.
9114
9115 2020-03-30 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
9116
9117 * ppc-linux-nat.c (ppc_linux_nat_target::store_registers)
9118 (ppc_linux_nat_target::auxv_parse)
9119 (ppc_linux_nat_target::read_description)
9120 (supply_gregset, fill_gregset, supply_fpregset, fill_fpregset):
9121 Move up.
9122
9123 2020-03-30 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
9124
9125 * linux-nat.h (low_new_clone): New method.
9126 * linux-nat.c (linux_handle_extended_wait): Call low_new_clone.
9127
9128 2020-03-29 Simon Marchi <simon.marchi@polymtl.ca>
9129
9130 * dbxread.c (dbx_psymtab_to_symtab_1): Rename to...
9131 (dbx_expand_psymtab): ... this.
9132 (start_psymtab): Update.
9133 * mdebugread.c (psymtab_to_symtab_1): Rename to...
9134 (mdebug_expand_psymtab): ... this.
9135 (parse_partial_symbols): Update.
9136 (new_psymtab): Update.
9137 * xcoffread.c (xcoff_psymtab_to_symtab_1): Rename to...
9138 (xcoff_expand_psymtab): ... this.
9139 (xcoff_start_psymtab): Update.
9140
9141 2020-03-29 Simon Marchi <simon.marchi@polymtl.ca>
9142
9143 * psympriv.h (partial_symtab) <read_dependencies>: Rename to...
9144 <expand_dependencies>: ... this.
9145 * psymtab.c (partial_symtab::read_dependencies): Rename to...
9146 (partial_symtab::expand_dependencies): ... this.
9147 * dwarf2/read.c (dwarf2_include_psymtab) <expand_psymtab>:
9148 Update.
9149 (dwarf2_psymtab::expand_psymtab): Update.
9150 * dbxread.c (dbx_psymtab_to_symtab_1): Update.
9151 * mdebugread.c (psymtab_to_symtab_1): Update.
9152 * xcoffread.c (xcoff_psymtab_to_symtab_1): Update.
9153
9154 2020-03-29 Simon Marchi <simon.marchi@polymtl.ca>
9155
9156 * psympriv.h (discard_psymtab): Remove.
9157 * dbxread.c (dbx_end_psymtab): Update.
9158 * xcoffread.c (xcoff_end_psymtab): Update.
9159
9160 2020-03-28 Tom Tromey <tom@tromey.com>
9161
9162 * dwarf2/attribute.h (struct attribute) <form_is_constant>: Update
9163 comment.
9164
9165 2020-03-28 Tom Tromey <tom@tromey.com>
9166
9167 * dwarf2/read.c (read_attribute_reprocess): Fix formatting.
9168
9169 2020-03-27 Hannes Domani <ssbssa@yahoo.de>
9170
9171 * windows-nat.c (windows_add_all_dlls): Fix system dll paths.
9172
9173 2020-03-26 John Baldwin <jhb@FreeBSD.org>
9174
9175 * fbsd-tdep.c (fbsd_print_auxv_entry): Handle AT_FREEBSD_BSDFLAGS.
9176
9177 2020-03-26 Tom Tromey <tom@tromey.com>
9178
9179 * dwarf2/read.c (handle_data_member_location, dwarf2_add_field)
9180 (mark_common_block_symbol_computed, read_tag_string_type)
9181 (attr_to_dynamic_prop, read_subrange_type): Update.
9182 (dwarf2_get_ref_die_offset, dwarf2_get_attr_constant_value): Move
9183 to be methods on struct attribute.
9184 (skip_one_die, process_imported_unit_die, read_namespace_alias)
9185 (read_call_site_scope, partial_die_info::read)
9186 (partial_die_info::read, lookup_die_type, follow_die_ref):
9187 Update.
9188 * dwarf2/attribute.c (attribute::get_ref_die_offset): New method,
9189 from dwarf2_get_ref_die_offset.
9190 (attribute::constant_value): New method, from
9191 dwarf2_get_attr_constant_value.
9192 * dwarf2/attribute.h (struct attribute) <get_ref_die_offset>:
9193 Declare method.
9194 <constant_value>: New method.
9195
9196 2020-03-26 Tom Tromey <tom@tromey.com>
9197
9198 * dwarf2/read.c (dwarf_unit_type_name, dwarf_tag_name)
9199 (dwarf_attr_name, dwarf_form_name, dwarf_bool_name)
9200 (dwarf_type_encoding_name): Move to stringify.c.
9201 * Makefile.in (COMMON_SFILES): Add dwarf2/stringify.c.
9202 * dwarf2/stringify.c: New file.
9203 * dwarf2/stringify.h: New file.
9204
9205 2020-03-26 Tom Tromey <tom@tromey.com>
9206
9207 * dwarf2/die.h (struct die_info) <addr_base, ranges_base>:
9208 Rewrite.
9209
9210 2020-03-26 Tom Tromey <tom@tromey.com>
9211
9212 * dwarf2/die.h (struct die_info) <addr_base, ranges_base>: New
9213 methods.
9214 * dwarf2/read.c (lookup_addr_base): Move to die.h.
9215 (lookup_ranges_base): Likewise.
9216 (read_cutu_die_from_dwo, read_full_die_1): Update.
9217
9218 2020-03-26 Tom Tromey <tom@tromey.com>
9219
9220 * dwarf2/read.c (read_import_statement, read_file_scope)
9221 (read_type_unit_scope, inherit_abstract_dies, read_func_scope)
9222 (read_lexical_block_scope, read_call_site_scope)
9223 (dwarf2_get_subprogram_pc_bounds, get_scope_pc_bounds)
9224 (handle_struct_member_die, process_structure_scope)
9225 (update_enumeration_type_from_children)
9226 (process_enumeration_scope, read_array_type, read_common_block)
9227 (read_namespace, read_module, read_subroutine_type): Update.
9228 (sibling_die): Remove.
9229
9230 2020-03-26 Tom Tromey <tom@tromey.com>
9231
9232 * dwarf2/read.c (lookup_addr_base, lookup_ranges_base)
9233 (build_type_psymtabs_reader, read_structure_type)
9234 (read_enumeration_type, read_full_die_1): Update.
9235 (dwarf2_attr_no_follow): Move to die.h.
9236 * dwarf2/die.h (struct die_info) <attr>: New method.
9237
9238 2020-03-26 Tom Tromey <tom@tromey.com>
9239
9240 * dwarf2/read.c (struct dwarf2_cu) <base_known>: Remove.
9241 <base_address>: Now an optional.
9242 (dwarf2_find_base_address, dwarf2_rnglists_process)
9243 (dwarf2_ranges_process, fill_in_loclist_baton)
9244 (dwarf2_symbol_mark_computed): Update.
9245
9246 2020-03-26 Tom Tromey <tom@tromey.com>
9247
9248 * dwarf2/read.c (struct die_info): Move to die.h.
9249 * dwarf2/die.h: New file.
9250
9251 2020-03-26 Tom Tromey <tom@tromey.com>
9252
9253 * dwarf2/line-header.h (dwarf_decode_line_header): Declare.
9254 * dwarf2/read.c
9255 (dwarf2_statement_list_fits_in_line_number_section_complaint):
9256 Move to line-header.c.
9257 (read_checked_initial_length_and_offset, read_formatted_entries):
9258 Likewise.
9259 (dwarf_decode_line_header): Split into two.
9260 * dwarf2/line-header.c
9261 (dwarf2_statement_list_fits_in_line_number_section_complaint):
9262 Move from read.c.
9263 (read_checked_initial_length_and_offset, read_formatted_entries):
9264 Likewise.
9265 (dwarf_decode_line_header): New function, split from read.c.
9266
9267 2020-03-26 Tom Tromey <tom@tromey.com>
9268
9269 * dwarf2/read.h (struct dwarf2_per_objfile) <read_line_string>:
9270 Declare method.
9271 * dwarf2/read.c (read_attribute_value): Update.
9272 (dwarf2_per_objfile::read_line_string): Rename from
9273 read_indirect_line_string.
9274 (read_formatted_entries): Update.
9275
9276 2020-03-26 Tom Tromey <tom@tromey.com>
9277
9278 * dwarf2/macro.c (dwarf_decode_macro_bytes): Use objfile local
9279 variable.
9280
9281 2020-03-26 Tom Tromey <tom@tromey.com>
9282
9283 * dwarf2/macro.h (dwarf_decode_macros): Make section parameter
9284 const.
9285 * dwarf2/macro.c (skip_form_bytes, skip_unknown_opcode)
9286 (dwarf_decode_macro_bytes, dwarf_decode_macros): Make section
9287 parameter const.
9288
9289 2020-03-26 Tom Tromey <tom@tromey.com>
9290
9291 * dwarf2/read.c (dwarf_decode_macros): Make "lh" const.
9292 * dwarf2/macro.h (dwarf_decode_macros): Constify "lh" parameter.
9293 * dwarf2/macro.c (macro_start_file): Constify "lh" parameter.
9294 (dwarf_decode_macro_bytes, dwarf_decode_macros): Likewise.
9295
9296 2020-03-26 Tom Tromey <tom@tromey.com>
9297
9298 * dwarf2/line-header.h (struct line_header) <is_valid_file_index,
9299 file_names_size, file_full_name, file_file_name>: Use const.
9300 <file_name_at, file_names>: Add const overload.
9301 * dwarf2/line-header.c (line_header::file_file_name)
9302 (line_header::file_full_name): Update.
9303
9304 2020-03-26 Tom Tromey <tom@tromey.com>
9305
9306 * dwarf2/read.c (dwarf2_macro_malformed_definition_complaint)
9307 (macro_start_file, consume_improper_spaces)
9308 (parse_macro_definition, skip_form_bytes, skip_unknown_opcode)
9309 (dwarf_parse_macro_header, dwarf_decode_macro_bytes)
9310 (dwarf_decode_macros): Move to macro.c.
9311 * dwarf2/macro.c: New file.
9312 * dwarf2/macro.h: New file.
9313 * Makefile.in (COMMON_SFILES): Add dwarf2/macro.c.
9314
9315 2020-03-26 Tom Tromey <tom@tromey.com>
9316
9317 * dwarf2/section.h (struct dwarf2_section_info) <read_string>: New
9318 method.
9319 * dwarf2/section.c: New method. From
9320 read_indirect_string_at_offset_from.
9321 * dwarf2/read.c (mapped_debug_names::namei_to_name): Update.
9322 (read_indirect_string_at_offset_from): Move to section.c.
9323 (read_indirect_string_at_offset): Rewrite.
9324 (read_indirect_line_string_at_offset): Remove.
9325 (read_indirect_string, read_indirect_line_string)
9326 (dwarf_decode_macro_bytes): Update.
9327
9328 2020-03-26 Tom Tromey <tom@tromey.com>
9329
9330 * dwarf2/section.h (struct dwarf2_section_info)
9331 <overload_complaint>: Declare.
9332 (dwarf2_section_buffer_overflow_complaint): Don't declare.
9333 * dwarf2/section.c (dwarf2_section_info::overflow_complaint):
9334 Rename from dwarf2_section_buffer_overflow_complaint.
9335 * dwarf2/read.c (skip_one_die, partial_die_info::read)
9336 (skip_form_bytes, dwarf_decode_macro_bytes): Update.
9337
9338 2020-03-26 Tom Tromey <tom@tromey.com>
9339
9340 * dwarf2/section.h (dwarf2_section_buffer_overflow_complaint):
9341 Declare.
9342 * dwarf2/section.c (dwarf2_section_buffer_overflow_complaint):
9343 Move from read.c.
9344 * dwarf2/read.c (dwarf2_section_buffer_overflow_complaint): Move
9345 to section.c.
9346
9347 2020-03-26 Tom Tromey <tom@tromey.com>
9348
9349 * dwarf2/read.c (dwarf_decode_macros): Split into two overloads.
9350
9351 2020-03-26 Tom Tromey <tom@tromey.com>
9352
9353 * dwarf2/read.c (macro_start_file): Change "cu" parameter to
9354 "builder".
9355 (dwarf_decode_macro_bytes): Likewise. Add dwarf2_per_objfile
9356 parameter.
9357 (dwarf_decode_macros): Update.
9358
9359 2020-03-26 Tom Tromey <tom@tromey.com>
9360
9361 * dwarf2/read.c (read_attribute_value): Update.
9362 (read_indirect_string_from_dwz): Move to dwz.c; change into
9363 method.
9364 (dwarf_decode_macro_bytes): Update.
9365 * dwarf2/dwz.h (struct dwz_file) <read_string>: Declare method.
9366 * dwarf2/dwz.c: New file.
9367 * Makefile.in (COMMON_SFILES): Add dwz.c.
9368
9369 2020-03-26 Tom Tromey <tom@tromey.com>
9370
9371 * dwarf2/read.h (struct dwz_file): Move to dwz.h.
9372 * dwarf2/read.c: Add include.
9373 * dwarf2/index-write.c: Add include.
9374 * dwarf2/index-cache.c: Add include.
9375 * dwarf2/dwz.h: New file.
9376
9377 2020-03-25 Tom Tromey <tom@tromey.com>
9378
9379 * compile/compile-object-load.c (get_out_value_type): Mention
9380 correct symbol name in error message.
9381
9382 2020-03-25 Hannes Domani <ssbssa@yahoo.de>
9383
9384 * windows-nat.c (windows_add_all_dlls): Fix system dll paths.
9385
9386 2020-03-25 Tom de Vries <tdevries@suse.de>
9387
9388 * symtab.h (is_main_symtab_of_compunit_symtab): New function.
9389 * symmisc.c (dump_symtab_1): Print user and includes fields.
9390 (maintenance_info_symtabs): Same.
9391
9392 2020-03-25 Andrew Burgess <andrew.burgess@embecosm.com>
9393
9394 PR gdb/25534
9395 * riscv-tdep.c (riscv_arg_info::c_offset): Update comment.
9396 (riscv_regcache_cooked_write): New function.
9397 (riscv_push_dummy_call): Use new function.
9398 (riscv_return_value): Likewise.
9399
9400 2020-03-24 Simon Marchi <simon.marchi@polymtl.ca>
9401
9402 * fbsd-nat.c (fbsd_nat_target::follow_fork): Change bool to int.
9403 * fbsd-nat.h (class fbsd_nat_target) <follow_fork>: Likewise.
9404 * inf-ptrace.c (inf_ptrace_target::follow_fork): Likewise.
9405 * inf-ptrace.h (struct inf_ptrace_target) <follow_fork>: Likewise.
9406 * infrun.c (follow_fork): Likewise.
9407 (follow_fork_inferior): Likewise.
9408 * linux-nat.c (linux_nat_target::follow_fork): Likewise.
9409 * linux-nat.h (class linux_nat_target): Likewise.
9410 * remote.c (class remote_target) <follow_fork>: Likewise.
9411 (remote_target::follow_fork): Likewise.
9412 * target-delegates.c: Re-generate.
9413 * target.c (default_follow_fork): Likewise.
9414 (target_follow_fork): Likewise.
9415 * target.h (struct target_ops) <follow_fork>: Likewise.
9416 (target_follow_fork): Likewise.
9417
9418 2020-03-24 Tom de Vries <tdevries@suse.de>
9419
9420 * psymtab.c (maintenance_info_psymtabs): Print user field.
9421
9422 2020-03-20 Tom Tromey <tromey@adacore.com>
9423
9424 * dwarf2/loc.h (dwarf2_evaluate_property): Make "addr_stack"
9425 const.
9426 * dwarf2/loc.c (dwarf2_evaluate_property): Make "addr_stack"
9427 const.
9428
9429 2020-03-20 Simon Marchi <simon.marchi@efficios.com>
9430
9431 * ptrace.m4: Don't check for ptrace declaration.
9432 * config.in: Re-generate.
9433 * configure: Re-generate.
9434 * nat/gdb_ptrace.h: Don't declare ptrace if HAVE_DECL_PTRACE is
9435 not defined.
9436
9437 2020-03-20 Kamil Rytarowski <n54@gmx.com>
9438
9439 * amd64-bsd-nat.c (gdb_ptrace): Change return type from `int' to
9440 `PTRACE_TYPE_RET'.
9441 * i386-bsd-nat.c (gdb_ptrace): Likewise.
9442 * sparc-nat.c (gdb_ptrace): Likewise.
9443 * x86-bsd-nat.c (gdb_ptrace): Likewise.
9444
9445 2020-03-20 Tom Tromey <tromey@adacore.com>
9446
9447 * c-exp.y (lex_one_token): Fix assert.
9448
9449 2020-03-20 Tom Tromey <tromey@adacore.com>
9450
9451 * ada-tasks.c (read_atcb): Use smaller length in strncpy call.
9452 * linux-tdep.c (linux_fill_prpsinfo): Use smaller length in
9453 strncpy call.
9454
9455 2020-03-20 Tom Tromey <tromey@adacore.com>
9456
9457 * symmisc.c (maintenance_print_one_line_table): Use ui_out.
9458
9459 2020-03-20 Tom Tromey <tromey@adacore.com>
9460
9461 * ada-valprint.c (print_variant_part): Remove parameters; switch
9462 to value-based API.
9463 (print_field_values): Likewise.
9464 (ada_val_print_struct_union): Likewise.
9465 (ada_value_print_1): Update.
9466
9467 2020-03-20 Kamil Rytarowski <n54@gmx.com>
9468
9469 * ppc-nbsd-nat.c (ppc_nbsd_nat_target): Inherit from
9470 nbsd_nat_target instead of inf_ptrace_target.
9471 * ppc-nbsd-nat.c: Include "nbsd-nat.h", as we are now using
9472 nbsd_nat_target.
9473
9474 2020-03-20 Kamil Rytarowski <n54@gmx.com>
9475
9476 * hppa-nbsd-nat.c (fetch_registers): New variable lwp and pass
9477 it to the ptrace call.
9478 * (store_registers): Likewise.
9479
9480 2020-03-20 Kamil Rytarowski <n54@gmx.com>
9481
9482 * ppc-nbsd-nat.c (fetch_registers): New variable lwp and pass
9483 it to the ptrace call.
9484 * (store_registers): Likewise.
9485
9486 2020-03-19 Luis Machado <luis.machado@linaro.org>
9487
9488 * nat/aarch64-sve-linux-ptrace.c (aarch64_sve_set_vq): If vg is not
9489 valid, fetch vg value from ptrace.
9490
9491 2020-03-19 Kamil Rytarowski <n54@gmx.com>
9492 * inf-ptrace.h: Disable get_ptrace_pid on NetBSD.
9493 * inf-ptrace.c: Likewise.
9494 * (gdb_ptrace): Add.
9495 * (inf_ptrace_target::resume): Update.
9496 * (inf_ptrace_target::xfer_partial): Likewise.
9497 * (inf_ptrace_peek_poke): Change argument `pid' to `ptid'.
9498 * (inf_ptrace_peek_poke): Update.
9499
9500 2020-03-19 Kamil Rytarowski <n54@gmx.com>
9501
9502 * x86-bsd-nat.c (gdb_ptrace): New.
9503 * (x86bsd_dr_set): Add new argument `ptid'.
9504 * (x86bsd_dr_get, x86bsd_dr_set, x86bsd_dr_set_control,
9505 x86bsd_dr_set_addr): Update.
9506
9507 2020-03-19 Andrew Burgess <andrew.burgess@embecosm.com>
9508
9509 * remote.c (remote_target::process_stop_reply): Handle events for
9510 all threads differently.
9511
9512 2020-03-19 Andrew Burgess <andrew.burgess@embecosm.com>
9513
9514 * completer.c (completion_tracker::remove_completion): Define new
9515 function.
9516 * completer.h (completion_tracker::remove_completion): Declare new
9517 function.
9518 * symtab.c (completion_list_add_symbol): Remove aliasing msymbols
9519 when adding a C++ function symbol.
9520
9521 2020-03-19 Andrew Burgess <andrew.burgess@embecosm.com>
9522
9523 * completer.c (completion_tracker::completion_hash_entry): Define
9524 new class.
9525 (advance_to_filename_complete_word_point): Call
9526 recompute_lowest_common_denominator.
9527 (completion_tracker::completion_tracker): Call discard_completions
9528 to setup the hash table.
9529 (completion_tracker::discard_completions): Allow for being called
9530 from the constructor, pass new equal function, and element deleter
9531 when constructing the hash table. Initialise new class member
9532 variables.
9533 (completion_tracker::maybe_add_completion): Remove use of
9534 m_entries_vec, and store more information into m_entries_hash.
9535 (completion_tracker::recompute_lcd_visitor): New function, most
9536 content taken from...
9537 (completion_tracker::recompute_lowest_common_denominator):
9538 ...here, this now just visits each item in the hash calling the
9539 above visitor.
9540 (completion_tracker::build_completion_result): Remove use of
9541 m_entries_vec, call recompute_lowest_common_denominator.
9542 * completer.h (completion_tracker::have_completions): Remove use
9543 of m_entries_vec.
9544 (completion_tracker::completion_hash_entry): Declare new class.
9545 (completion_tracker::recompute_lowest_common_denominator): Change
9546 function signature.
9547 (completion_tracker::recompute_lcd_visitor): Declare new function.
9548 (completion_tracker::m_entries_vec): Delete.
9549 (completion_tracker::m_entries_hash): Initialize to NULL.
9550 (completion_tracker::m_lowest_common_denominator_valid): New
9551 member variable.
9552 (completion_tracker::m_lowest_common_denominator_max_length): New
9553 member variable.
9554
9555 2020-03-17 Kamil Rytarowski <n54@gmx.com>
9556
9557 * regformats/regdef.h: Put reg in gdb namespace.
9558
9559 2020-03-17 Kamil Rytarowski <n54@gmx.com>
9560
9561 * i386-bsd-nat.c (gdb_ptrace): New.
9562 * (i386bsd_fetch_inferior_registers,
9563 i386bsd_store_inferior_registers) Switch from pid_t to ptid_t.
9564 * (i386bsd_fetch_inferior_registers,
9565 i386bsd_store_inferior_registers) Use gdb_ptrace.
9566
9567 2020-03-17 Kamil Rytarowski <n54@gmx.com>
9568
9569 * amd64-bsd-nat.c (gdb_ptrace): New.
9570 * (amd64bsd_fetch_inferior_registers,
9571 amd64bsd_store_inferior_registers) Switch from pid_t to ptid_t.
9572 * (amd64bsd_fetch_inferior_registers,
9573 amd64bsd_store_inferior_registers) Use gdb_ptrace.
9574
9575 2020-03-17 Kamil Rytarowski <n54@gmx.com>
9576
9577 * user-regs.c (user_reg::read): Rename to...
9578 (user_reg::xread): ...this.
9579 * (append_user_reg): Rename argument `read' to `xread'.
9580 * (user_reg_add_builtin): Likewise.
9581 * (user_reg_add): Likewise.
9582 * (value_of_user_reg): Likewise.
9583
9584 2020-03-17 Kamil Rytarowski <n54@gmx.com>
9585
9586 * sparc-nat.c (gdb_ptrace): New.
9587 * sparc-nat.c (sparc_fetch_inferior_registers)
9588 (sparc_store_inferior_registers) Remove obsolete comment.
9589 * sparc-nat.c (sparc_fetch_inferior_registers)
9590 (sparc_store_inferior_registers) Switch from pid_t to ptid_t.
9591 * sparc-nat.c (sparc_fetch_inferior_registers)
9592 (sparc_store_inferior_registers) Use gdb_ptrace.
9593
9594 2020-03-17 Kamil Rytarowski <n54@gmx.com>
9595
9596 * sh-nbsd-nat.c (fetch_registers): New variable lwp and pass
9597 it to the ptrace call.
9598 * sh-nbsd-nat.c (store_registers): Likewise.
9599
9600 2020-03-17 Kamil Rytarowski <n54@gmx.com>
9601
9602 * sh-nbsd-nat.c (sh_nbsd_nat_target): Inherit from
9603 nbsd_nat_target instead of inf_ptrace_target.
9604 * sh-nbsd-nat.c: Include "nbsd-nat.h", as we are now using
9605 nbsd_nat_target.
9606
9607 2020-03-17 Kamil Rytarowski <n54@gmx.com>
9608
9609 * amd64-bsd-nat.c: Include amd64-bsd-nat.h".
9610
9611 2020-03-17 Kamil Rytarowski <n54@gmx.com>
9612
9613 * nbsd-nat.c: Include <sys/types.h>, <sys/ptrace.h> and
9614 <sys/sysctl.h>.
9615 * nbsd-nat.c (nbsd_nat_target::pid_to_exec_file): Rewrite.
9616
9617 2020-03-17 Tom de Vries <tdevries@suse.de>
9618
9619 PR gdb/23710
9620 * dwarf2/read.h (struct dwarf2_per_cu_data): Add unit_type and lang
9621 fields.
9622 * dwarf2/read.c (process_psymtab_comp_unit): Initialize unit_type and lang
9623 fields.
9624 (process_imported_unit_die): Skip import of c++ CUs.
9625
9626 2020-03-16 Tom Tromey <tom@tromey.com>
9627
9628 * p-valprint.c (pascal_object_print_value): Initialize
9629 base_value.
9630
9631 2020-03-16 Anton Kolesov <anton.kolesov@synopsys.com>
9632 Shahab Vahedi <shahab@synopsys.com>
9633
9634 * Makefile.in: Add arch/arc.o
9635 * configure.tgt: Likewise.
9636 * arc-tdep.c (arc_tdesc_init): Use arc_read_description.
9637 (_initialize_arc_tdep): Don't initialize old target descriptions.
9638 (arc_read_description): New function to cache target descriptions.
9639 * arc-tdep.h (arc_read_description): Add proto type.
9640 * arch/arc.c: New file.
9641 * arch/arc.h: Likewise.
9642 * features/Makefile: Replace old target descriptions with new.
9643 * features/arc-arcompact.c: Remove.
9644 * features/arc-arcompact.xml: Likewise.
9645 * features/arc-v2.c: Likewise
9646 * features/arc-v2.xml: Likewise
9647 * features/arc/aux-arcompact.xml: New file.
9648 * features/arc/aux-v2.xml: Likewise.
9649 * features/arc/core-arcompact.xml: Likewise.
9650 * features/arc/core-v2.xml: Likewise.
9651 * features/arc/aux-arcompact.c: Generate.
9652 * features/arc/aux-v2.c: Likewise.
9653 * features/arc/core-arcompact.c: Likewise.
9654 * features/arc/core-v2.c: Likewise.
9655 * target-descriptions (maint_print_c_tdesc_cmd): Support ARC features.
9656
9657 2020-03-16 Tom Tromey <tromey@adacore.com>
9658
9659 PR gdb/25663:
9660 * dwarf2/read.c (dwarf2_name): Strip leading namespaces after
9661 putting value into bcache.
9662
9663 2020-03-16 Simon Marchi <simon.marchi@efficios.com>
9664
9665 PR gdb/21500
9666 * amd64-windows-tdep.c (amd64_windows_init_abi): Rename
9667 to...
9668 (amd64_windows_init_abi_common): ... this. Don't set size of
9669 long type.
9670 (amd64_windows_init_abi): New function.
9671 (amd64_cygwin_init_abi): New function.
9672 (_initialize_amd64_windows_tdep): Use amd64_cygwin_init_abi for
9673 the Cygwin OS ABI.
9674 * i386-windows-tdep.c (_initialize_i386_windows_tdep): Clarify
9675 comment.
9676
9677 2020-03-16 Simon Marchi <simon.marchi@efficios.com>
9678
9679 * windows-tdep.h (is_linked_with_cygwin_dll): New declaration.
9680 * windows-tdep.c (CYGWIN_DLL_NAME): New.
9681 (pe_import_directory_entry): New struct type.
9682 (is_linked_with_cygwin_dll): New function.
9683 * amd64-windows-tdep.c (amd64_windows_osabi_sniffer): Select
9684 GDB_OSABI_CYGWIN if the BFD is linked with the Cygwin DLL.
9685 * i386-windows-tdep.c (i386_windows_osabi_sniffer): Likewise.
9686
9687 2020-03-16 Simon Marchi <simon.marchi@efficios.com>
9688
9689 * i386-windows-tdep.c: Mass-rename "cygwin" to "windows", except
9690 i386_cygwin_core_osabi_sniffer.
9691
9692 2020-03-16 Simon Marchi <simon.marchi@efficios.com>
9693
9694 * i386-cygwin-tdep.c: Rename to...
9695 * i386-windows-tdep.c: ... this.
9696 * Makefile.in (ALL_TARGET_OBS): Rename i386-cygwin-tdep.c to
9697 i386-windows-tdep.c.
9698 * configure.tgt: Likewise.
9699
9700 2020-03-16 Simon Marchi <simon.marchi@efficios.com>
9701
9702 * osabi.h (enum gdb_osabi): Add GDB_OSABI_WINDOWS.
9703 * osabi.c (gdb_osabi_names): Add "Windows".
9704 * i386-cygwin-tdep.c (i386_cygwin_osabi_sniffer): Return
9705 GDB_OSABI_WINDOWS when the binary's target is "pei-i386".
9706 (i386_cygwin_core_osabi_sniffer): New function, extracted from
9707 i386_cygwin_osabi_sniffer.
9708 (_initialize_i386_cygwin_tdep): Register OS ABI
9709 GDB_OSABI_WINDOWS for i386.
9710 * amd64-windows-tdep.c (amd64_windows_osabi_sniffer): Return
9711 GDB_OSABI_WINDOWS when the binary's target is "pei-x86-64".
9712 (_initialize_amd64_windows_tdep): Register OS ABI GDB_OSABI_WINDOWS
9713 for x86-64.
9714 * configure.tgt: Use GDB_OSABI_WINDOWS as the default OS ABI
9715 when the target matches '*-*-mingw*'.
9716
9717 2020-03-16 Simon Marchi <simon.marchi@efficios.com>
9718
9719 * defs.h (enum gdb_osabi): Move to...
9720 * osabi.h (enum gdb_osabi): ... here.
9721 * gdbarch.sh: Include osabi.h in gdbarch.h.
9722 * gdbarch.h: Re-generate.
9723
9724 2020-03-16 Simon Marchi <simon.marchi@efficios.com>
9725
9726 * amd64-windows-tdep.c (amd64_windows_osabi_sniffer): New
9727 function.
9728 (_initialize_amd64_windows_tdep): Register osabi sniffer.
9729
9730 2020-03-14 Tom Tromey <tom@tromey.com>
9731
9732 * c-typeprint.c (cp_type_print_method_args): Print "__restrict__"
9733 for C++.
9734 (c_type_print_modifier): Likewise. Add "language" parameter.
9735 (c_type_print_varspec_prefix, c_type_print_base_struct_union)
9736 (c_type_print_base_1): Update.
9737 * type-stack.h (enum type_pieces) <tp_atomic, tp_restrict>: New
9738 constants.
9739 * type-stack.c (type_stack::insert): Handle tp_atomic and
9740 tp_restrict.
9741 (type_stack::follow_type_instance_flags): Likewise.
9742 (type_stack::follow_types): Likewise. Merge type-following code.
9743 * c-exp.y (RESTRICT, ATOMIC): New tokens.
9744 (space_identifier, cv_with_space_id)
9745 (const_or_volatile_or_space_identifier_noopt)
9746 (const_or_volatile_or_space_identifier): Remove.
9747 (single_qualifier, qualifier_seq_noopt, qualifier_seq): New
9748 rules.
9749 (ptr_operator, typebase): Update.
9750 (enum token_flag) <FLAG_C>: New constant.
9751 (ident_tokens): Add "restrict", "__restrict__", "__restrict", and
9752 "_Atomic".
9753 (lex_one_token): Handle FLAG_C.
9754
9755 2020-03-14 Kamil Rytarowski <n54@gmx.com>
9756
9757 * m68k-bsd-nat.c (fetch_registers): New variable lwp and pass
9758 it to the ptrace call.
9759 * m68k-bsd-nat.c (store_registers): Likewise.
9760
9761 2020-03-14 Kamil Rytarowski <n54@gmx.com>
9762
9763 * m68k-bsd-nat.c (m68kbsd_supply_gregset): Change type of regs to
9764 gdb_byte *.
9765 * m68k-bsd-nat.c (m68kbsd_supply_fpregset): Likewise.
9766 * m68k-bsd-nat.c (m68kbsd_collect_gregset): Likewise.
9767 * m68k-bsd-nat.c (m68kbsd_supply_pcb): Cast &tmp to gdb_byte *.
9768
9769 2020-03-14 Kamil Rytarowski <n54@gmx.com>
9770
9771 * m68k-bsd-nat.c (m68k_bsd_nat_target): Inherit from
9772 nbsd_nat_target instead of inf_ptrace_target.
9773 * m68k-bsd-nat.c: Include "nbsd-nat.h", as we are now using
9774 nbsd_nat_target.
9775
9776 2020-03-14 Kamil Rytarowski <n54@gmx.com>
9777
9778 * m68k-bsd-nat.c: Define _KERNTYPES to get the declaration of
9779 register_t.
9780
9781 2020-03-14 Kamil Rytarowski <n54@gmx.com>
9782
9783 * alpha-bsd-nat.c (fetch_registers): New variable lwp and pass
9784 it to the ptrace call.
9785 * alpha-bsd-nat.c (store_registers): Likewise.
9786
9787 2020-03-14 Kamil Rytarowski <n54@gmx.com>
9788
9789 * alpha-bsd-nat.c: Remove <sys/procfs.h> and "gregset.h" from
9790 includes.
9791 * alpha-bsd-nat.c (gregset_t, fpregset_t): Remove.
9792 * alpha-bsd-nat.c (supply_gregset, fill_gregset, supply_fpregset,
9793 fill_fpregset): Likewise.
9794
9795 2020-03-14 Kamil Rytarowski <n54@gmx.com>
9796
9797 * alpha-bsd-nat.c (alpha_netbsd_nat_target): Inherit from
9798 nbsd_nat_target instead of inf_ptrace_target.
9799 * alpha-bsd-nat.c: Include "nbsd-nat.h", as we are now using
9800 nbsd_nat_target.
9801
9802 2020-03-14 Kamil Rytarowski <n54@gmx.com>
9803
9804 * alpha-bsd-nat.c: Define _KERNTYPES to get the declaration of
9805 register_t.
9806
9807 2020-03-14 Kamil Rytarowski <n54@gmx.com>
9808
9809 * arm-nbsd-nat.c (fetch_register): New variable lwp and pass
9810 it to the ptrace call.
9811 * arm-nbsd-nat.c (fetch_fp_register): Likewise.
9812 * arm-nbsd-nat.c (fetch_fp_regs): Likewise.
9813 * arm-nbsd-nat.c (store_register): Likewise.
9814 * arm-nbsd-nat.c (store_regs): Likewise.
9815 * arm-nbsd-nat.c (store_fp_register): Likewise.
9816 * arm-nbsd-nat.c (store_fp_regs): Likewise.
9817
9818 2020-03-14 Kamil Rytarowski <n54@gmx.com>
9819
9820 * arm-nbsd-nat.c (arm_netbsd_nat_target): Inherit from
9821 nbsd_nat_target instead of inf_ptrace_target.
9822 * arm-nbsd-nat.c: Include "nbsd-nat.h", as we are now using
9823 nbsd_nat_target.
9824
9825 2020-03-14 Kamil Rytarowski <n54@gmx.com>
9826
9827 * x86-bsd-nat.c (x86bsd_dr_get): New variable lwp and pass
9828 it to the ptrace call.
9829 * x86-bsd-nat.c (x86bsd_dr_set): Likewise.
9830
9831 2020-03-14 Kamil Rytarowski <n54@gmx.com>
9832
9833 * vax-bsd-nat.c (vaxbsd_supply_gregset): New variable lwp and pass
9834 it to the ptrace call.
9835 * vax-bsd-nat.c (vaxbsd_collect_gregset): Likewise.
9836
9837 2020-03-14 Kamil Rytarowski <n54@gmx.com>
9838
9839 * vax-bsd-nat.c (vaxbsd_supply_gregset): Cast gregs to const
9840 gdb_byte *.
9841 * vax-bsd-nat.c (vaxbsd_collect_gregset): Cast gregs to void *.
9842
9843 2020-03-14 Kamil Rytarowski <n54@gmx.com>
9844
9845 * vax-bsd-nat.c (vax_bsd_nat_target): Inherit from nbsd_nat_target
9846 instead of inf_ptrace_target.
9847 * vax-bsd-nat.c: Include "nbsd-nat.h", as we are now using
9848 nbsd_nat_target.
9849
9850 2020-03-14 Kamil Rytarowski <n54@gmx.com>
9851
9852 * mips-nbsd-nat.c: Define _KERNTYPES to get the declaration of
9853 register_t.
9854
9855 2020-03-14 Kamil Rytarowski <n54@gmx.com>
9856
9857 * ppc-nbsd-nat.c: Define _KERNTYPES to get the declaration of
9858 register_t.
9859
9860 2020-03-14 Kamil Rytarowski <n54@gmx.com>
9861
9862 * vax-bsd-nat.c: Define _KERNTYPES to get the declaration of
9863 register_t.
9864
9865 2020-03-13 Tom Tromey <tom@tromey.com>
9866
9867 * value.h (val_print): Don't declare.
9868 * valprint.h (val_print_array_elements)
9869 (val_print_scalar_formatted, generic_val_print): Don't declare.
9870 * valprint.c (generic_val_print_array): Take a struct value.
9871 (generic_val_print_ptr, generic_val_print_memberptr)
9872 (generic_val_print_bool, generic_val_print_int)
9873 (generic_val_print_char, generic_val_print_complex)
9874 (generic_val_print): Remove.
9875 (generic_value_print): Update.
9876 (do_val_print): Remove unused parameters. Don't call
9877 la_val_print.
9878 (val_print): Remove.
9879 (common_val_print): Update. Don't call value_check_printable.
9880 (val_print_scalar_formatted, val_print_array_elements): Remove.
9881 * rust-lang.c (rust_val_print): Remove.
9882 (rust_language_defn): Update.
9883 * p-valprint.c (pascal_val_print): Remove.
9884 (pascal_value_print_inner): Update.
9885 (pascal_object_print_val_fields, pascal_object_print_val):
9886 Remove.
9887 (pascal_object_print_static_field): Update.
9888 * p-lang.h (pascal_val_print): Don't declare.
9889 * p-lang.c (pascal_language_defn): Update.
9890 * opencl-lang.c (opencl_language_defn): Update.
9891 * objc-lang.c (objc_language_defn): Update.
9892 * m2-valprint.c (m2_print_unbounded_array, m2_val_print): Remove.
9893 * m2-lang.h (m2_val_print): Don't declare.
9894 * m2-lang.c (m2_language_defn): Update.
9895 * language.h (struct language_defn) <la_val_print>: Remove.
9896 * language.c (unk_lang_value_print_inner): Rename. Change
9897 argument types.
9898 (unknown_language_defn, auto_language_defn): Update.
9899 * go-valprint.c (go_val_print): Remove.
9900 * go-lang.h (go_val_print): Don't declare.
9901 * go-lang.c (go_language_defn): Update.
9902 * f-valprint.c (f_val_print): Remove.
9903 * f-lang.h (f_value_print): Don't declare.
9904 * f-lang.c (f_language_defn): Update.
9905 * d-valprint.c (d_val_print): Remove.
9906 * d-lang.h (d_value_print): Don't declare.
9907 * d-lang.c (d_language_defn): Update.
9908 * cp-valprint.c (cp_print_value_fields)
9909 (cp_print_value_fields_rtti, cp_print_value): Remove.
9910 (cp_print_static_field): Update.
9911 * c-valprint.c (c_val_print_array, c_val_print_ptr)
9912 (c_val_print_struct, c_val_print_union, c_val_print_int)
9913 (c_val_print_memberptr, c_val_print): Remove.
9914 * c-lang.h (c_val_print_array, cp_print_value_fields)
9915 (cp_print_value_fields_rtti): Don't declare.
9916 * c-lang.c (c_language_defn, cplus_language_defn)
9917 (asm_language_defn, minimal_language_defn): Update.
9918 * ada-valprint.c (ada_val_print_ptr, ada_val_print_num): Remove.
9919 (ada_val_print_enum): Take a struct value.
9920 (ada_val_print_flt, ada_val_print_array, ada_val_print_1)
9921 (ada_val_print): Remove.
9922 (ada_value_print_1): Update.
9923 (printable_val_type): Remove.
9924 * ada-lang.h (ada_val_print): Don't declare.
9925 * ada-lang.c (ada_language_defn): Update.
9926
9927 2020-03-13 Tom Tromey <tom@tromey.com>
9928
9929 * valprint.c (do_val_print): Update.
9930 * python/python-internal.h (gdbpy_apply_val_pretty_printer): Take
9931 a struct value.
9932 (value_to_value_object_no_release): Declare.
9933 * python/py-value.c (value_to_value_object_no_release): New
9934 function.
9935 * python/py-prettyprint.c (gdbpy_apply_val_pretty_printer): Take a
9936 struct value.
9937 * guile/scm-value.c (vlscm_scm_from_value_no_release): New
9938 function.
9939 * guile/scm-pretty-print.c (gdbscm_apply_val_pretty_printer): Take
9940 a struct value.
9941 * guile/guile-internal.h (vlscm_scm_from_value_no_release):
9942 Declare.
9943 (gdbscm_apply_val_pretty_printer): Take a struct value.
9944 * extension.h (apply_ext_lang_val_pretty_printer): Take a struct
9945 value.
9946 * extension.c (apply_ext_lang_val_pretty_printer): Take a struct
9947 value.
9948 * extension-priv.h (struct extension_language_ops)
9949 <apply_val_pretty_printer>: Take a struct value.
9950 * cp-valprint.c (cp_print_value): Create a struct value.
9951 (cp_print_value): Update.
9952
9953 2020-03-13 Tom Tromey <tom@tromey.com>
9954
9955 * ada-valprint.c (print_field_values): Call common_val_print.
9956
9957 2020-03-13 Tom Tromey <tom@tromey.com>
9958
9959 * ada-valprint.c (val_print_packed_array_elements): Remove
9960 bitoffset and val parameters. Call common_val_print.
9961 (ada_val_print_string): Remove offset, address, and original_value
9962 parameters.
9963 (ada_val_print_array): Update.
9964 (ada_value_print_array): New function.
9965 (ada_value_print_1): Call it.
9966
9967 2020-03-13 Tom Tromey <tom@tromey.com>
9968
9969 * ada-valprint.c (ada_value_print): Use common_val_print.
9970
9971 2020-03-13 Tom Tromey <tom@tromey.com>
9972
9973 * ada-valprint.c (ada_val_print_ref): Use common_val_print.
9974
9975 2020-03-13 Tom Tromey <tom@tromey.com>
9976
9977 * ada-valprint.c (ada_value_print_num): New function.
9978 (ada_value_print_1): Use it.
9979
9980 2020-03-13 Tom Tromey <tom@tromey.com>
9981
9982 * ada-valprint.c (ada_value_print_1) <TYPE_CODE_FLT>: Rewrite.
9983
9984 2020-03-13 Tom Tromey <tom@tromey.com>
9985
9986 * ada-valprint.c (ada_value_print_ptr): New function.
9987 (ada_value_print_1): Use it.
9988
9989 2020-03-13 Tom Tromey <tom@tromey.com>
9990
9991 * ada-valprint.c (ada_val_print_gnat_array): Take a struct value;
9992 call common_val_print.
9993 (ada_val_print_1): Update.
9994 (ada_value_print_1): New function.
9995 (ada_value_print_inner): Rewrite.
9996
9997 2020-03-13 Tom Tromey <tom@tromey.com>
9998
9999 * cp-valprint.c (cp_print_value_fields): Update.
10000 (cp_print_value): New function.
10001
10002 2020-03-13 Tom Tromey <tom@tromey.com>
10003
10004 * m2-valprint.c (m2_value_print_inner): Use
10005 cp_print_value_fields.
10006 * cp-valprint.c (cp_print_value_fields): New function.
10007 * c-valprint.c (c_value_print_struct): New function.
10008 (c_value_print_inner): Use c_value_print_struct.
10009 * c-lang.h (cp_print_value_fields): Declare.
10010
10011 2020-03-13 Tom Tromey <tom@tromey.com>
10012
10013 * c-valprint.c (c_value_print_array): New function.
10014 (c_value_print_inner): Use it.
10015
10016 2020-03-13 Tom Tromey <tom@tromey.com>
10017
10018 * c-valprint.c (c_value_print_memberptr): New function.
10019 (c_value_print_inner): Use it.
10020
10021 2020-03-13 Tom Tromey <tom@tromey.com>
10022
10023 * c-valprint.c (c_value_print_int): New function.
10024 (c_value_print_inner): Use it.
10025
10026 2020-03-13 Tom Tromey <tom@tromey.com>
10027
10028 * c-valprint.c (c_value_print_ptr): New function.
10029 (c_value_print_inner): Use it.
10030
10031 2020-03-13 Tom Tromey <tom@tromey.com>
10032
10033 * c-valprint.c (c_value_print_inner): Rewrite.
10034
10035 2020-03-13 Tom Tromey <tom@tromey.com>
10036
10037 * valprint.c (generic_value_print_complex): New function.
10038 (generic_value_print): Use it.
10039
10040 2020-03-13 Tom Tromey <tom@tromey.com>
10041
10042 * valprint.c (generic_val_print_float): Don't call
10043 val_print_scalar_formatted.
10044 (generic_val_print, generic_value_print): Update.
10045
10046 2020-03-13 Tom Tromey <tom@tromey.com>
10047
10048 * valprint.c (generic_value_print_char): New function
10049 (generic_value_print): Use it.
10050
10051 2020-03-13 Tom Tromey <tom@tromey.com>
10052
10053 * valprint.c (generic_value_print_int): New function.
10054 (generic_value_print): Use it.
10055
10056 2020-03-13 Tom Tromey <tom@tromey.com>
10057
10058 * valprint.c (generic_value_print_bool): New function.
10059 (generic_value_print): Use it.
10060
10061 2020-03-13 Tom Tromey <tom@tromey.com>
10062
10063 * valprint.c (generic_val_print_func): Simplify.
10064 (generic_val_print, generic_value_print): Update.
10065
10066 2020-03-13 Tom Tromey <tom@tromey.com>
10067
10068 * valprint.c (generic_val_print_flags): Remove.
10069 (generic_val_print, generic_value_print): Update.
10070 (val_print_type_code_flags): Add original_value parameter.
10071
10072 2020-03-13 Tom Tromey <tom@tromey.com>
10073
10074 * valprint.c (generic_val_print): Update.
10075 (generic_value_print): Update.
10076 * valprint.c (generic_val_print_enum): Don't call
10077 val_print_scalar_formatted.
10078
10079 2020-03-13 Tom Tromey <tom@tromey.com>
10080
10081 * valprint.c (generic_value_print): Call generic_value_print_ptr.
10082 * valprint.c (generic_value_print_ptr): New function.
10083
10084 2020-03-13 Tom Tromey <tom@tromey.com>
10085
10086 * valprint.c (generic_value_print): Rewrite.
10087
10088 2020-03-13 Tom Tromey <tom@tromey.com>
10089
10090 * p-valprint.c (pascal_object_print_value_fields)
10091 (pascal_object_print_value): New functions.
10092
10093 2020-03-13 Tom Tromey <tom@tromey.com>
10094
10095 * p-valprint.c (pascal_value_print_inner): Rewrite.
10096
10097 2020-03-13 Tom Tromey <tom@tromey.com>
10098
10099 * f-valprint.c (f_value_print_innner): Rewrite.
10100
10101 2020-03-13 Tom Tromey <tom@tromey.com>
10102
10103 * m2-valprint.c (m2_print_unbounded_array): New overload.
10104 (m2_print_unbounded_array): Update.
10105 (m2_print_array_contents): Take a struct value.
10106 (m2_value_print_inner): Rewrite.
10107
10108 2020-03-13 Tom Tromey <tom@tromey.com>
10109
10110 * d-valprint.c (dynamic_array_type): Call d_value_print_inner.
10111 (d_value_print_inner): New function.
10112 * d-lang.h (d_value_print_inner): Declare.
10113 * d-lang.c (d_language_defn): Use d_value_print_inner.
10114
10115 2020-03-13 Tom Tromey <tom@tromey.com>
10116
10117 * go-valprint.c (go_value_print_inner): New function.
10118 * go-lang.h (go_value_print_inner): Declare.
10119 * go-lang.c (go_language_defn): Use go_value_print_inner.
10120
10121 2020-03-13 Tom Tromey <tom@tromey.com>
10122
10123 * rust-lang.c (val_print_struct, rust_print_enum): Use the value
10124 API.
10125 (rust_val_print): Rewrite.
10126 (rust_value_print_inner): New function, from rust_val_print.
10127 (rust_language_defn): Use rust_value_print_inner.
10128
10129 2020-03-13 Tom Tromey <tom@tromey.com>
10130
10131 * ada-valprint.c (ada_value_print_inner): New function.
10132 * ada-lang.h (ada_value_print_inner): Declare.
10133 * ada-lang.c (ada_language_defn): Use ada_value_print_inner.
10134
10135 2020-03-13 Tom Tromey <tom@tromey.com>
10136
10137 * f-valprint.c (f_value_print_innner): New function.
10138 * f-lang.h (f_value_print_innner): Declare.
10139 * f-lang.c (f_language_defn): Use f_value_print_innner.
10140
10141 2020-03-13 Tom Tromey <tom@tromey.com>
10142
10143 * p-valprint.c (pascal_value_print_inner): New function.
10144 * p-lang.h (pascal_value_print_inner): Declare.
10145 * p-lang.c (pascal_language_defn): Use pascal_value_print_inner.
10146
10147 2020-03-13 Tom Tromey <tom@tromey.com>
10148
10149 * m2-valprint.c (m2_value_print_inner): New function.
10150 * m2-lang.h (m2_value_print_inner): Declare.
10151 * m2-lang.c (m2_language_defn): Use m2_value_print_inner.
10152
10153 2020-03-13 Tom Tromey <tom@tromey.com>
10154
10155 * opencl-lang.c (opencl_language_defn): Use c_value_print_inner.
10156 * objc-lang.c (objc_language_defn): Use c_value_print_inner.
10157 * c-valprint.c (c_value_print_inner): New function.
10158 * c-lang.h (c_value_print_inner): Declare.
10159 * c-lang.c (c_language_defn, cplus_language_defn)
10160 (asm_language_defn, minimal_language_defn): Use
10161 c_value_print_inner.
10162
10163 2020-03-13 Tom Tromey <tom@tromey.com>
10164
10165 * p-valprint.c (pascal_object_print_value_fields): Now static.
10166 * p-lang.h (pascal_object_print_value_fields): Don't declare.
10167
10168 2020-03-13 Tom Tromey <tom@tromey.com>
10169
10170 * c-valprint.c (c_val_print_array): Simplify.
10171
10172 2020-03-13 Tom Tromey <tom@tromey.com>
10173
10174 * valprint.c (value_print_array_elements): New function.
10175 * valprint.h (value_print_array_elements): Declare.
10176
10177 2020-03-13 Tom Tromey <tom@tromey.com>
10178
10179 * printcmd.c (print_formatted): Use value_print_scalar_formatted.
10180 * mips-tdep.c (mips_print_register): Use
10181 value_print_scalar_formatted.
10182
10183 2020-03-13 Tom Tromey <tom@tromey.com>
10184
10185 * valprint.h (value_print_scalar_formatted): Declare.
10186 * valprint.c (value_print_scalar_formatted): New function.
10187
10188 2020-03-13 Tom Tromey <tom@tromey.com>
10189
10190 * valprint.h (generic_value_print): Declare.
10191 * valprint.c (generic_value_print): New function.
10192
10193 2020-03-13 Tom Tromey <tom@tromey.com>
10194
10195 * valprint.c (do_val_print): Call la_value_print_inner, if
10196 available.
10197 * rust-lang.c (rust_language_defn): Update.
10198 * p-lang.c (pascal_language_defn): Update.
10199 * opencl-lang.c (opencl_language_defn): Update.
10200 * objc-lang.c (objc_language_defn): Update.
10201 * m2-lang.c (m2_language_defn): Update.
10202 * language.h (struct language_defn) <la_value_print_inner>: New
10203 member.
10204 * language.c (unknown_language_defn, auto_language_defn): Update.
10205 * go-lang.c (go_language_defn): Update.
10206 * f-lang.c (f_language_defn): Update.
10207 * d-lang.c (d_language_defn): Update.
10208 * c-lang.c (c_language_defn, cplus_language_defn)
10209 (asm_language_defn, minimal_language_defn): Update.
10210 * ada-lang.c (ada_language_defn): Update.
10211
10212 2020-03-13 Tom Tromey <tom@tromey.com>
10213
10214 * c-valprint.c (c_value_print): Use common_val_print.
10215
10216 2020-03-13 Tom Tromey <tom@tromey.com>
10217
10218 * cp-valprint.c (cp_print_static_field): Use common_val_print.
10219
10220 2020-03-13 Tom Tromey <tom@tromey.com>
10221
10222 * f-valprint.c (f77_print_array_1, f_val_print): Use
10223 common_val_print.
10224
10225 2020-03-13 Tom Tromey <tom@tromey.com>
10226
10227 * riscv-tdep.c (riscv_print_one_register_info): Use
10228 common_val_print.
10229
10230 2020-03-13 Tom Tromey <tom@tromey.com>
10231
10232 * mi/mi-main.c (output_register): Use common_val_print.
10233
10234 2020-03-13 Tom Tromey <tom@tromey.com>
10235
10236 * infcmd.c (default_print_one_register_info): Use
10237 common_val_print.
10238
10239 2020-03-13 Tom Tromey <tom@tromey.com>
10240
10241 * valprint.h (common_val_print_checked): Declare.
10242 * valprint.c (common_val_print_checked): New function.
10243 * stack.c (print_frame_arg): Use common_val_print_checked.
10244
10245 2020-03-13 Tom Tromey <tom@tromey.com>
10246
10247 * valprint.c (do_val_print): New function, from val_print.
10248 (val_print): Use do_val_print.
10249 (common_val_print): Use do_val_print.
10250
10251 2020-03-13 Tom Tromey <tom@tromey.com>
10252
10253 * valprint.c (value_print): Use scoped_value_mark.
10254
10255 2020-03-13 Tom de Vries <tdevries@suse.de>
10256
10257 PR symtab/25646
10258 * psymtab.c (partial_symtab::partial_symtab): Don't set
10259 globals_offset and statics_offset. Push element onto
10260 current_global_psymbols and current_static_psymbols stacks.
10261 (concat): New function.
10262 (end_psymtab_common): Set globals_offset and statics_offset. Pop
10263 element from current_global_psymbols and current_static_psymbols
10264 stacks. Concat popped elements to global_psymbols and
10265 static_symbols.
10266 (add_psymbol_to_list): Use current_global_psymbols and
10267 current_static_psymbols stacks.
10268 * psymtab.h (class psymtab_storage): Add current_global_psymbols and
10269 current_static_psymbols fields.
10270
10271 2020-03-12 Christian Biesinger <cbiesinger@google.com>
10272
10273 * corelow.c (sniff_core_bfd): Remove.
10274 (class core_target) <m_core_vec>: Remove.
10275 (core_target::core_target): Update.
10276 (core_file_fns): Remove.
10277 (deprecated_add_core_fns): Remove.
10278 (default_core_sniffer): Remove.
10279 (sniff_core_bfd): Remove.
10280 (default_check_format): Remove.
10281 (gdb_check_format): Remove.
10282 (core_target_open): Update.
10283 (core_target::get_core_register_section): Update.
10284 (get_core_registers_cb): Update.
10285 (core_target::fetch_registers): Update.
10286 * gdbcore.h (struct core_fns): Remove.
10287 (deprecated_add_core_fns): Remove.
10288 (default_core_sniffer): Remove.
10289 (default_check_format): Remove.
10290
10291 2020-03-12 Tom Tromey <tom@tromey.com>
10292
10293 * arm-tdep.c (struct arm_mapping_symbol) <value>: Now a
10294 CORE_ADDR.
10295 (struct arm_exidx_entry) <addr>: Now a CORE_ADDR.
10296
10297 2020-03-12 Tom Tromey <tom@tromey.com>
10298
10299 * remote.c (remote_target::download_tracepoint)
10300 (remote_target::enable_tracepoint)
10301 (remote_target::disable_tracepoint): Use phex, not sprintf_vma.
10302 * breakpoint.c (print_recreate_masked_watchpoint): Use phex, not
10303 sprintf_vma.
10304
10305 2020-03-12 Tom Tromey <tom@tromey.com>
10306
10307 * symfile-mem.c: Update CORE_ADDR size assert.
10308
10309 2020-03-12 Simon Marchi <simon.marchi@efficios.com>
10310
10311 * selftest.m4: Move to gdbsupport/.
10312 * acinclude.m4: Update path to selftest.m4.
10313
10314 2020-03-12 Simon Marchi <simon.marchi@efficios.com>
10315
10316 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Rename to...
10317 (SELFTESTS_SRCS): ... this. Add disasm-selftests.c,
10318 gdbarch-selfselftests.c and selftest-arch.c.
10319 (SUBDIR_UNITTESTS_OBS): Rename to...
10320 (SELFTESTS_OBS): ... this.
10321 (COMMON_SFILES): Remove disasm-selftests.c and
10322 gdbarch-selftests.c.
10323 * configure.ac: Don't add selftest-arch.{c,o} to
10324 CONFIG_{SRCS,OBS}.
10325 * disasm-selftests.c, gdbarch-selftests.c: Remove GDB_SELF_TEST
10326 preprocessor conditions.
10327
10328 2020-03-12 Simon Marchi <simon.marchi@efficios.com>
10329
10330 * configure.ac: Don't source bfd/development.sh.
10331 * selftest.m4: Modify comment.
10332 * configure: Re-generate.
10333
10334 2020-03-12 Simon Marchi <simon.marchi@efficios.com>
10335
10336 * selftest.m4 (GDB_AC_SELFTEST): Error out if $development is
10337 not "true" or "false".
10338 * configure: Re-generate.
10339
10340 2020-03-12 Christian Biesinger <cbiesinger@google.com>
10341
10342 * Makefile.in (HFILES_NO_SRCDIR): Add new arm-nbsd-tdep.h file.
10343 * arm-nbsd-nat.c (arm_supply_gregset): Moved to arm-nbsd-tdep and
10344 renamed to arm_nbsd_supply_gregset.
10345 (fetch_register): Update to call arm_nbsd_supply_gregset.
10346 (fetch_regs): Remove in favor of fetch_register with a -1 regno.
10347 (arm_netbsd_nat_target::fetch_registers): Update.
10348 (fetch_elfcore_registers): Removed.
10349 (_initialize_arm_netbsd_nat): Removed call to deprecated_add_core_fns.
10350 * arm-nbsd-tdep.c (struct arm_nbsd_reg): New struct.
10351 (arm_nbsd_supply_gregset): Moved from arm-nbsd-nat.c and updated to
10352 not require NetBSD system headers.
10353 (arm_nbsd_regset): New struct.
10354 (arm_nbsd_iterate_over_regset_sections): New function.
10355 (arm_netbsd_init_abi_common): Updated to call
10356 set_gdbarch_iterate_over_regset_sections.
10357 * arm-nbsd-tdep.h: New file.
10358
10359 2020-03-11 Kevin Buettner <kevinb@redhat.com>
10360
10361 * symtab.c (find_pc_sect_line): Add check which prevents infinite
10362 recursion.
10363
10364 2020-03-11 Simon Marchi <simon.marchi@efficios.com>
10365
10366 * configure: Re-generate.
10367
10368 2020-03-11 Tom Tromey <tromey@adacore.com>
10369
10370 * ada-typeprint.c (print_choices): Fix comment.
10371
10372 2020-03-11 Andrew Burgess <andrew.burgess@embecosm.com>
10373
10374 * buildsyms.c (buildsym_compunit::record_line): Avoid accessing
10375 previous item in the list, when the list has no items.
10376
10377 2020-03-11 Tom de Vries <tdevries@suse.de>
10378
10379 * dwarf2/loc.c (dwarf2_evaluate_property): Handle NULL frame in
10380 PROP_LOCLIST handling code.
10381
10382 2020-03-10 Andrew Burgess <andrew.burgess@embecosm.com>
10383
10384 * buildsym-legacy.c (record_line): Pass extra parameter to
10385 record_line.
10386 * buildsym.c (buildsym_compunit::record_line): Take an extra
10387 parameter, reduce duplication in the line table, and record the
10388 is_stmt flag in the line table.
10389 * buildsym.h (buildsym_compunit::record_line): Add extra
10390 parameter.
10391 * disasm.c (do_mixed_source_and_assembly_deprecated): Ignore
10392 non-statement lines.
10393 * dwarf2/read.c (dwarf_record_line_1): Add extra parameter, pass
10394 this to the symtab builder.
10395 (dwarf_finish_line): Pass extra parameter to dwarf_record_line_1.
10396 (lnp_state_machine::record_line): Pass a suitable is_stmt flag
10397 through to dwarf_record_line_1.
10398 * infrun.c (process_event_stop_test): When stepping, don't stop at
10399 a non-statement instruction, and only refresh the step info when
10400 we land in the middle of a line's range. Also add an extra
10401 comment.
10402 * jit.c (jit_symtab_line_mapping_add_impl): Initialise is_stmt
10403 field.
10404 * record-btrace.c (btrace_find_line_range): Only record lines
10405 marked as is-statement.
10406 * stack.c (frame_show_address): Show the frame address if we are
10407 in a non-statement sal.
10408 * symmisc.c (dump_symtab_1): Print the is_stmt flag.
10409 (maintenance_print_one_line_table): Print a header for the is_stmt
10410 column, and include is_stmt information in the output.
10411 * symtab.c (find_pc_sect_line): Find lines marked as statements in
10412 preference to non-statements.
10413 (find_pcs_for_symtab_line): Prefer is-statement entries.
10414 (find_line_common): Likewise.
10415 * symtab.h (struct linetable_entry): Add is_stmt field.
10416 (struct symtab_and_line): Likewise.
10417 * xcoffread.c (arrange_linetable): Initialise is_stmt field when
10418 arranging the line table.
10419
10420 2020-03-07 Tom de Vries <tdevries@suse.de>
10421
10422 * dwarf2/read.c (read_typedef): Treat anonymous typedef as forwarder
10423 DIE.
10424
10425 2020-03-07 Tom Tromey <tom@tromey.com>
10426
10427 * valops.c (value_literal_complex): Remove obsolete comment.
10428 * gdbtypes.h (enum type_code) <TYPE_CODE_FLT>: Remove obsolete
10429 comment.
10430
10431 2020-03-06 Simon Marchi <simon.marchi@polymtl.ca>
10432
10433 * infrun.h: Forward-declare thread_info.
10434 (set_step_info): Add thread_info parameter, add doc.
10435 * infrun.c (set_step_info): Add thread_info parameter, move doc
10436 to header.
10437 * infrun.c (process_event_stop_test): Pass thread to
10438 set_step_info call.
10439 * infcmd.c (set_step_frame): Add thread_info pointer, pass it to
10440 set_step_info.
10441 (prepare_one_step): Add thread_info parameter, pass it to
10442 set_step_frame and prepare_one_step (recursive) call.
10443 (step_1): Pass thread to prepare_one_step call.
10444 (step_command_fsm::should_stop): Pass thread to
10445 prepare_one_step.
10446 (until_next_fsm): Pass thread to set_step_frame call.
10447 (finish_command): Pass thread to set_step_info call.
10448
10449 2020-03-06 Hannes Domani <ssbssa@yahoo.de>
10450
10451 * windows-tdep.c (windows_solib_create_inferior_hook):
10452 Check if inferior is running.
10453
10454 2020-03-06 Tom de Vries <tdevries@suse.de>
10455
10456 * NEWS: Fix "the the".
10457 * ctfread.c: Same.
10458
10459 2020-03-06 Tom de Vries <tdevries@suse.de>
10460
10461 * psymtab.c (psymtab_to_symtab): Don't print "done.".
10462
10463 2020-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
10464
10465 * .dir-locals.el: Add a comment referencing the other copies of
10466 this file.
10467
10468 2020-03-05 John Baldwin <jhb@FreeBSD.org>
10469
10470 * fbsd-tdep.c (fbsd_make_corefile_notes): Use std::string for
10471 psargs.
10472
10473 2020-03-05 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
10474
10475 * .gitattributes: New file.
10476
10477 2020-03-04 Tom Tromey <tom@tromey.com>
10478
10479 * symmisc.c (print_symbol_bcache_statistics)
10480 (print_objfile_statistics): Update.
10481 * symfile.c (allocate_symtab): Use intern.
10482 * psymtab.c (partial_symtab::partial_symtab): Use intern.
10483 * objfiles.h (struct objfile_per_bfd_storage) <filename_cache,
10484 macro_cache>: Remove.
10485 <string_cache>: New member.
10486 (struct objfile) <intern>: New methods.
10487 * elfread.c (elf_symtab_read): Use intern.
10488 * dwarf2/read.c (fixup_go_packaging): Intern package name.
10489 (dwarf2_compute_name, dwarf2_physname)
10490 (create_dwo_unit_in_dwp_v1, create_dwo_unit_in_dwp_v2): Intern
10491 names.
10492 (guess_partial_die_structure_name): Update.
10493 (partial_die_info::fixup): Intern name.
10494 (dwarf2_canonicalize_name): Change parameter to objfile. Intern
10495 name.
10496 (dwarf2_name): Intern name. Update.
10497 * buildsym.c (buildsym_compunit::get_macro_table): Use
10498 string_cache.
10499
10500 2020-03-04 Tom Tromey <tom@tromey.com>
10501
10502 * jit.c (bfd_open_from_target_memory): Make "target" const.
10503 * corefile.c (gnutarget): Now const.
10504 * gdbcore.h (gnutarget): Now const.
10505
10506 2020-03-04 Hannes Domani <ssbssa@yahoo.de>
10507
10508 * NEWS: Mention support for WOW64 processes.
10509 * amd64-windows-nat.c (amd64_mappings): Rename and remove static.
10510 (amd64_windows_segment_register_p): Remove static.
10511 (_initialize_amd64_windows_nat): Update.
10512 * configure.nat <windows> (NATDEPFILES): Add i386-windows-nat.o.
10513 * i386-windows-nat.c (context_offset): Update.
10514 (i386_mappings): Rename and remove static.
10515 (i386_windows_segment_register_p): Remove static.
10516 (_initialize_i386_windows_nat): Update.
10517 * windows-nat.c (STATUS_WX86_BREAKPOINT): New macro.
10518 (STATUS_WX86_SINGLE_STEP): New macro.
10519 (EnumProcessModulesEx): New macro.
10520 (Wow64SuspendThread): New macro.
10521 (Wow64GetThreadContext): New macro.
10522 (Wow64SetThreadContext): New macro.
10523 (Wow64GetThreadSelectorEntry): New macro.
10524 (windows_set_context_register_offsets): Add static.
10525 (windows_set_segment_register_p): Likewise.
10526 (windows_add_thread): Adapt for WOW64 processes.
10527 (windows_fetch_one_register): Likewise.
10528 (windows_nat_target::fetch_registers): Likewise.
10529 (windows_store_one_register): Likewise.
10530 (display_selector): Likewise.
10531 (display_selectors): Likewise.
10532 (handle_exception): Likewise.
10533 (windows_continue): Likewise.
10534 (windows_nat_target::resume): Likewise.
10535 (windows_add_all_dlls): Likewise.
10536 (do_initial_windows_stuff): Likewise.
10537 (windows_nat_target::attach): Likewise.
10538 (windows_get_exec_module_filename): Likewise.
10539 (windows_nat_target::create_inferior): Likewise.
10540 (windows_xfer_siginfo): Likewise.
10541 (_initialize_loadable): Initialize Wow64SuspendThread,
10542 Wow64GetThreadContext, Wow64SetThreadContext,
10543 Wow64GetThreadSelectorEntry and EnumProcessModulesEx.
10544 * windows-nat.h (windows_set_context_register_offsets):
10545 Remove declaration.
10546 (windows_set_segment_register_p): Likewise.
10547 (i386_windows_segment_register_p): Add declaration.
10548 (amd64_windows_segment_register_p): Likewise.
10549
10550 2020-03-04 Luis Machado <luis.machado@linaro.org>
10551
10552 Revert aa66aac47b4dd38f9524ddb5546c08cc09930d37 due to regressions
10553 in "info registers" for AArch64/ARM.
10554
10555 The change caused "info registers" to not print GPR's.
10556
10557 gdb/ChangeLog:
10558
10559 2020-02-01 Shahab Vahedi <shahab@synopsys.com>
10560
10561 * target-descriptions.c (tdesc_register_in_reggroup_p): Return 0
10562 when reg->group is empty and reggroup is not.
10563
10564 2020-03-03 Tom Tromey <tromey@adacore.com>
10565
10566 * dwarf2/frame.c (struct dwarf2_frame_cache)
10567 <checked_tailcall_bottom, entry_cfa_sp_offset,
10568 entry_cfa_sp_offset_p>: Remove members.
10569 (dwarf2_frame_cache): Call dwarf2_tailcall_sniffer_first.
10570 (dwarf2_frame_prev_register): Don't call
10571 dwarf2_tailcall_sniffer_first.
10572 (dwarf2_append_unwinders): Don't append tailcall unwinder.
10573 * frame-unwind.c (add_unwinder): New fuction.
10574 (frame_unwind_init): Use it. Add tailcall unwinder.
10575
10576 2020-03-03 Andrew Burgess <andrew.burgess@embecosm.com>
10577 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
10578
10579 * f-valprint.c (f_val_print): Handle TYPE_CODE_BOOL, any non-zero
10580 value should be printed as true.
10581
10582 2020-03-03 Hannes Domani <ssbssa@yahoo.de>
10583
10584 * windows-tdep.c (windows_solib_create_inferior_hook): New function.
10585 (windows_init_abi): Set and use windows_so_ops.
10586
10587 2020-03-03 Sergio Durigan Junior <sergiodj@redhat.com>
10588
10589 * printcmd.c (print_c_string): Check also for TYPE_CODE_PTR
10590 when verifying if dealing with a convenience variable.
10591
10592 2020-03-03 Luis Machado <luis.machado@linaro.org>
10593
10594 * auxv.c (default_print_auxv_entry): Add new AUXV entries.
10595
10596 2020-03-02 Simon Marchi <simon.marchi@polymtl.ca>
10597
10598 * infrun.c (gdbarch_supports_displaced_stepping): New.
10599 (use_displaced_stepping): Break up conditions in smaller pieces.
10600 Use gdbarch_supports_displaced_stepping.
10601 (displaced_step_prepare_throw): Use
10602 gdbarch_supports_displaced_stepping.
10603
10604 2020-03-02 Andrew Burgess <andrew.burgess@embecosm.com>
10605
10606 * NEWS: Mention new behaviour of the history filename.
10607 * top.c (write_history_p): Add comment.
10608 (show_write_history_p): Add header comment, give a different
10609 message when history writing is on, but the history filename is
10610 empty.
10611 (history_filename): Add comment.
10612 (history_filename_empty): New function.
10613 (show_history_filename): Add header comment, give a different
10614 message when the filename is empty.
10615 (init_history): Compare history_filename against nullptr, and only
10616 read history if the filename is not empty.
10617 (set_history_filename): Add header comment, and only make
10618 non-empty filenames absolute.
10619 (init_main): Make the filename argument to 'set history filename'
10620 optional.
10621
10622 2020-03-02 Christian Biesinger <cbiesinger@google.com>
10623
10624 * arm-nbsd-nat.c (arm_supply_fparegset): Rename to...
10625 (arm_supply_vfpregset): ...this, and update to use VFP registers.
10626 (fetch_fp_register): Update.
10627 (fetch_fp_regs): Update.
10628 (store_fp_register): Update.
10629 (store_fp_regs): Update.
10630 (arm_netbsd_nat_target::read_description): New function.
10631 (fetch_elfcore_registers): Update.
10632
10633 2020-03-02 Andrew Burgess <andrew.burgess@embecosm.com>
10634
10635 * remote.c (remote_target::remote_parse_stop_reply): Don't use the
10636 general_thread if the stop reply is missing a thread-id.
10637 (remote_target::process_stop_reply): Use the first non-exited
10638 thread if the target didn't pass a thread-id.
10639 * infrun.c (do_target_wait): Move call to
10640 switch_to_inferior_no_thread to ....
10641 (do_target_wait_1): ... here.
10642
10643 2020-02-29 Jon Turney <jon.turney@dronecode.org.uk>
10644
10645 * debuginfod-support.c: Include defs.h first.
10646
10647 2020-02-28 Tom de Vries <tdevries@suse.de>
10648
10649 * symfile.c (set_initial_language): Use default language for lookup.
10650
10651 2020-02-28 Simon Marchi <simon.marchi@efficios.com>
10652
10653 * dwarf2/read.c (cutu_reader::init_tu_and_read_dwo_dies): Remove
10654 reader variable, pass `this` to read_cutu_die_from_dwo.
10655
10656 2020-02-27 Aaron Merey <amerey@redhat.com>
10657
10658 * source.c (open_source_file): Check for nullptr when computing
10659 srcpath.
10660
10661 2020-02-27 Tom Tromey <tromey@adacore.com>
10662
10663 * dwarf2/read.c (struct field_info) <nfields>: Now a method, not a
10664 member.
10665 (dwarf2_add_field): Don't update nfields.
10666 (dwarf2_attach_fields_to_type, process_structure_scope): Update.
10667
10668 2020-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
10669
10670 * gdbtypes.c (create_array_type_with_stride): Use std::abs not
10671 abs.
10672
10673 2020-02-26 Tom Tromey <tom@tromey.com>
10674
10675 * dwarf2/read.c (struct dwarf2_include_psymtab): New.
10676 (dwarf2_create_include_psymtab): Use dwarf2_include_psymtab.
10677 (dwarf2_psymtab::expand_psymtab, dwarf2_psymtab::readin_p)
10678 (dwarf2_psymtab::get_compunit_symtab): Remove null checks for
10679 per_cu_data.
10680
10681 2020-02-26 Tom Tromey <tom@tromey.com>
10682
10683 * dwarf2/index-write.c (psym_index_map): Change type.
10684 (add_address_entry_worker, write_one_signatured_type)
10685 (recursively_count_psymbols, recursively_write_psymbols)
10686 (class debug_names, psyms_seen_size, write_gdbindex)
10687 (write_debug_names): Use partial_symtab, not dwarf2_psymtab.
10688
10689 2020-02-26 Aaron Merey <amerey@redhat.com>
10690
10691 * Makefile.in: Handle optional debuginfod support.
10692 * NEWS: Update.
10693 * README: Add --with-debuginfod summary.
10694 * config.in: Regenerate.
10695 * configure: Regenerate.
10696 * configure.ac: Handle optional debuginfod support.
10697 * debuginfod-support.c: debuginfod helper functions.
10698 * debuginfod-support.h: Ditto.
10699 * doc/gdb.texinfo: Add --with-debuginfod to configure options
10700 summary.
10701 * dwarf2/read.c (dwarf2_get_dwz_file): Query debuginfod servers
10702 when a dwz file cannot be found.
10703 * elfread.c (elf_symfile_read): Query debuginfod servers when a
10704 debuginfo file cannot be found.
10705 * source.c (open_source_file): Query debuginfod servers when a
10706 source file cannot be found.
10707 * top.c (print_gdb_configuration): Include
10708 --{with,without}-debuginfod in the output.
10709
10710 2020-02-26 Jérémie Galarneau <jeremie.galarneau@efficios.com>
10711
10712 * thread.c (thr_try_catch_cmd): Print thread name.
10713
10714 2020-02-26 Simon Marchi <simon.marchi@efficios.com>
10715
10716 * dwarf2/loc.h (dwarf2_fetch_die_loc_sect_off,
10717 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
10718 dwarf2_fetch_die_type_sect_off): Move to...
10719 * dwarf2/read.h (dwarf2_fetch_die_loc_sect_off,
10720 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
10721 dwarf2_fetch_die_type_sect_off): ... here.
10722 * dwarf2/read.c (dwarf2_fetch_die_loc_sect_off,
10723 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
10724 dwarf2_fetch_die_type_sect_off): Move doc to header file.
10725
10726 2020-02-26 Tom de Vries <tdevries@suse.de>
10727
10728 PR gdb/25603
10729 * symfile.c (set_initial_language): Exit-early if
10730 language_mode == language_mode_manual.
10731
10732 2020-02-25 Simon Marchi <simon.marchi@polymtl.ca>
10733
10734 * dwarf2/loc.h (dwarf2_read_addr_index): Move...
10735 * dwarf2/read.h (dwarf2_read_addr_index): ... here.
10736 * dwarf2/read.c (dwarf2_read_addr_index): Move doc to header.
10737
10738 2020-02-25 Andrew Burgess <andrew.burgess@embecosm.com>
10739
10740 * gdbtypes.c (create_array_type_with_stride): Handle negative
10741 array strides.
10742 * valarith.c (value_subscripted_rvalue): Likewise.
10743
10744 2020-02-25 Luis Machado <luis.machado@linaro.org>
10745
10746 * aarch64-tdep.c (aarch64_vnv_type): Fix comment typo.
10747
10748 2020-02-25 Simon Marchi <simon.marchi@polymtl.ca>
10749
10750 * loc.h (dwarf2_get_die_type): Move to...
10751 * read.h (dwarf2_get_die_type): ... here.
10752 * read.c (dwarf2_get_die_type): Move doc to header.
10753
10754 2020-02-25 Joel Brobecker <brobecker@adacore.com>
10755
10756 * copypright.py (EXCLUDE_LIST): Add 'gnulib/config.in' and
10757 'gnulib/Makefile.in' to the list.
10758
10759 2020-02-24 Tom Tromey <tom@tromey.com>
10760
10761 * dwarf2/read.h (struct type_unit_unshareable) <num_symtabs>:
10762 Remove.
10763 * dwarf2/read.c (dwarf2_cu::setup_type_unit_groups): Use
10764 XOBNEWVEC.
10765
10766 2020-02-24 Tom Tromey <tom@tromey.com>
10767
10768 * dwarf2/read.h (struct dwarf2_per_cu_data) <type_unit_group_p>:
10769 New method.
10770 * dwarf2/read.c (IS_TYPE_UNIT_GROUP): Remove.
10771 (dw2_do_instantiate_symtab, dw2_get_file_names)
10772 (build_type_psymtab_dependencies, load_full_type_unit): Update.
10773
10774 2020-02-24 Tom Tromey <tom@tromey.com>
10775
10776 * dwarf2read.c (dwarf2_build_psymtabs_hard): Use
10777 make_scoped_restore.
10778 (dwarf2_psymtab::read_symtab): Don't clear
10779 reading_partial_symbols.
10780
10781 2020-02-24 Tom de Vries <tdevries@suse.de>
10782
10783 PR gdb/25592
10784 * stack.c (iterate_over_block_locals): Handle LOC_CONST.
10785
10786 2020-02-24 Tom de Vries <tdevries@suse.de>
10787
10788 * tui/tui-layout.c (_initialize_tui_layout): Fix help messages for
10789 commands layout next/prev/regs.
10790
10791 2020-02-22 Tom Tromey <tom@tromey.com>
10792
10793 * dwarf2/loc.h (dwarf2_compile_expr_to_ax): Don't declare.
10794 * dwarf2/loc.c (dwarf2_compile_expr_to_ax): Now static.
10795
10796 2020-02-22 Tom Tromey <tom@tromey.com>
10797
10798 * tui/tui-data.h (TUI_DISASM_WIN): Cast to tui_disasm_window.
10799
10800 2020-02-22 Tom Tromey <tom@tromey.com>
10801
10802 * tui/tui-win.c (_initialize_tui_win): Add usage text.
10803 * tui/tui-stack.c (_initialize_tui_stack): Add usage text.
10804 * tui/tui-regs.c (_initialize_tui_regs): Add usage text.
10805 * tui/tui.c (_initialize_tui): Add usage text.
10806
10807 2020-02-22 Tom Tromey <tom@tromey.com>
10808
10809 * tui/tui-win.c (tui_set_focus_command)
10810 (tui_set_win_height_command): Use error_no_arg.
10811 (_initialize_tui_win): Update help text.
10812 (FOCUS_USAGE, WIN_HEIGHT_USAGE): Don't define.
10813
10814 2020-02-22 Tom Tromey <tom@tromey.com>
10815
10816 * tui/tui-layout.c (extract_display_start_addr): Rewrite.
10817 * tui/tui-disasm.h (struct tui_disasm_window)
10818 <display_start_addr>: Declare.
10819 * tui/tui-source.h (struct tui_source_window)
10820 <display_start_addr>: Declare.
10821 * tui/tui-winsource.h (struct tui_source_window_base)
10822 <show_source_line, display_start_addr>: New methods.
10823 <m_horizontal_offset, m_start_line_or_addr, m_gdbarch, m_content>:
10824 Rename and move to protected section.
10825 * tui/tui-winsource.c (tui_source_window_base::update_source_window)
10826 (tui_source_window_base::do_erase_source_content): Update.
10827 (tui_source_window_base::show_source_line): Now a method.
10828 (tui_source_window_base::show_source_content)
10829 (tui_source_window_base::tui_source_window_base)
10830 (tui_source_window_base::rerender)
10831 (tui_source_window_base::refill)
10832 (tui_source_window_base::do_scroll_horizontal)
10833 (tui_source_window_base::set_is_exec_point_at)
10834 (tui_source_window_base::update_breakpoint_info)
10835 (tui_source_window_base::update_exec_info): Update.
10836 * tui/tui-source.c (tui_source_window::set_contents)
10837 (tui_source_window::showing_source_p)
10838 (tui_source_window::do_scroll_vertical)
10839 (tui_source_window::location_matches_p)
10840 (tui_source_window::line_is_displayed): Update.
10841 (tui_source_window::display_start_addr): New method.
10842 * tui/tui-disasm.c (tui_disasm_window::set_contents)
10843 (tui_disasm_window::do_scroll_vertical)
10844 (tui_disasm_window::location_matches_p): Update.
10845 (tui_disasm_window::display_start_addr): New method.
10846
10847 2020-02-22 Tom Tromey <tom@tromey.com>
10848
10849 * NEWS: Add entry for gdb.register_window_type.
10850 * tui/tui-layout.h (window_factory): New typedef.
10851 (tui_register_window): Declare.
10852 * tui/tui-layout.c (saved_tui_windows): New global.
10853 (tui_apply_current_layout): Use it.
10854 (tui_register_window): New function.
10855 * python/python.c (do_start_initialization): Call
10856 gdbpy_initialize_tui.
10857 (python_GdbMethods): Add "register_window_type" function.
10858 * python/python-internal.h (gdbpy_register_tui_window)
10859 (gdbpy_initialize_tui): Declare.
10860 * python/py-tui.c: New file.
10861 * Makefile.in (SUBDIR_PYTHON_SRCS): Add py-tui.c.
10862
10863 2020-02-22 Tom Tromey <tom@tromey.com>
10864
10865 * tui/tui-io.c (do_tui_putc): Don't omit annotations.
10866
10867 2020-02-22 Tom Tromey <tom@tromey.com>
10868
10869 * tui/tui-win.c (tui_set_win_focus_to): Move to tui-data.c.
10870 * tui/tui-data.h (tui_set_win_with_focus): Don't declare.
10871 * tui/tui-data.c (tui_set_win_with_focus): Remove.
10872 (tui_set_win_focus_to): Move from tui-win.c.
10873
10874 2020-02-22 Tom Tromey <tom@tromey.com>
10875
10876 * tui/tui-layout.c (make_standard_window, get_locator_window): New
10877 functions.
10878 (known_window_types): New global.
10879 (tui_get_window_by_name): Reimplement.
10880 (initialize_known_windows): New function.
10881 (validate_window_name): Rewrite.
10882 (_initialize_tui_layout): Call initialize_known_windows.
10883
10884 2020-02-22 Tom Tromey <tom@tromey.com>
10885
10886 * tui/tui.h (enum tui_win_type) <LOCATOR_WIN, DATA_ITEM_WIN>:
10887 Remove constants.
10888 * tui/tui-winsource.h (struct tui_source_window_base)
10889 <tui_source_window_base>: Remove parameter.
10890 * tui/tui-winsource.c
10891 (tui_source_window_base::tui_source_window_base): Remove
10892 parameter.
10893 (tui_source_window_base::refill): Update.
10894 * tui/tui-stack.h (struct tui_locator_window)
10895 <tui_locator_window>: Update.
10896 * tui/tui-source.h (struct tui_source_window) <tui_source_window>:
10897 Default the constructor.
10898 * tui/tui-regs.h (struct tui_data_item_window)
10899 <tui_data_item_window>: Default the constructor.
10900 (struct tui_data_window) <tui_data_window>: Likewise.
10901 * tui/tui-disasm.h (struct tui_disasm_window) <tui_disasm_window>:
10902 Default the constructor.
10903 * tui/tui-data.h (struct tui_gen_win_info) <tui_gen_win_info>:
10904 Default the constructor.
10905 <type>: Remove.
10906 (struct tui_win_info) <tui_win_info>: Default the constructor.
10907 * tui/tui-data.c (tui_win_info::tui_win_info): Remove.
10908 * tui/tui-command.h (struct tui_cmd_window) <tui_cmd_window>:
10909 Default the constructor.
10910
10911 2020-02-22 Tom Tromey <tom@tromey.com>
10912
10913 * tui/tui-wingeneral.h (tui_make_all_invisible): Don't declare.
10914 * tui/tui-wingeneral.c (tui_make_all_invisible): Remove.
10915 * tui/tui-win.c (tui_resize_all): Don't call
10916 tui_delete_invisible_windows.
10917 * tui/tui-layout.c (tui_apply_current_layout): Delete windows when
10918 done.
10919 (tui_set_layout): Update.
10920 (tui_add_win_to_layout): Don't call tui_delete_invisible_windows.
10921 * tui/tui-data.h (tui_delete_invisible_windows): Don't declare.
10922 * tui/tui-data.c (tui_delete_invisible_windows): Remove.
10923
10924 2020-02-22 Tom Tromey <tom@tromey.com>
10925
10926 * tui/tui-win.c (tui_partial_win_by_name): Handle ambiguity
10927 correctly.
10928
10929 2020-02-22 Tom Tromey <tom@tromey.com>
10930
10931 * tui/tui-data.c (tui_next_win, tui_prev_win): Reimplement.
10932
10933 2020-02-22 Tom Tromey <tom@tromey.com>
10934
10935 * tui/tui-winsource.h (struct tui_source_window_iterator)
10936 <inner_iterator>: New etytypedef.
10937 <tui_source_window_iterator>: Take "end" parameter.
10938 <tui_source_window_iterator>: Take iterator.
10939 <operator*, advance>: Update.
10940 <m_iter>: Change type.
10941 <m_end>: New field.
10942 (struct tui_source_windows) <begin, end>: Update.
10943 * tui/tui-layout.c (tui_windows): New global.
10944 (tui_apply_current_layout): Clear tui_windows.
10945 (tui_layout_window::apply): Update tui_windows.
10946 * tui/tui-data.h (tui_windows): Declare.
10947 (all_tui_windows): Now inline function.
10948 (class tui_window_iterator, struct all_tui_windows): Remove.
10949
10950 2020-02-22 Tom Tromey <tom@tromey.com>
10951
10952 PR tui/17850:
10953 * tui/tui-win.c (tui_gen_win_info::max_width): New method.
10954 * tui/tui-layout.h (class tui_layout_base) <get_sizes>: Add
10955 "height" argument.
10956 (class tui_layout_window) <get_sizes>: Likewise.
10957 (class tui_layout_split) <tui_layout_split>: Add "vertical"
10958 argument.
10959 <get_sizes>: Add "height" argument.
10960 <m_vertical>: New field.
10961 * tui/tui-layout.c (tui_layout_split::clone): Update.
10962 (tui_layout_split::get_sizes): Add "height" argument.
10963 (tui_layout_split::adjust_size, tui_layout_split::apply): Update.
10964 (tui_new_layout_command): Parse "-horizontal".
10965 (_initialize_tui_layout): Update help string.
10966 (tui_layout_split::specification): Add "-horizontal" when needed.
10967 * tui/tui-layout.c (tui_layout_window::get_sizes): Add "height"
10968 argument.
10969 * tui/tui-data.h (struct tui_gen_win_info) <max_width, min_width>:
10970 New methods.
10971
10972 2020-02-22 Tom Tromey <tom@tromey.com>
10973
10974 * tui/tui-layout.h (enum tui_adjust_result): New.
10975 (class tui_layout_base) <adjust_size>: Return tui_adjust_result.
10976 (class tui_layout_window) <adjust_size>: Return
10977 tui_adjust_result. Rewrite.
10978 (class tui_layout_split) <adjust_size>: Return tui_adjust_result.
10979 * tui/tui-layout.c (tui_layout_split::adjust_size): Update.
10980
10981 2020-02-22 Tom Tromey <tom@tromey.com>
10982
10983 * tui/tui-layout.h (class tui_layout_split) <add_split>: Change
10984 parameter and return types.
10985 (class tui_layout_base) <specification>: Add "depth".
10986 (class tui_layout_window) <specification>: Add "depth".
10987 (class tui_layout_split) <specification>: Add "depth".
10988 * tui/tui-layout.c (tui_layout_split::add_split): Change parameter
10989 and return types.
10990 (tui_new_layout_command): Parse sub-layouts.
10991 (_initialize_tui_layout): Update help string.
10992 (tui_layout_window::specification): Add "depth".
10993 (add_layout_command): Update.
10994
10995 2020-02-22 Tom Tromey <tom@tromey.com>
10996
10997 * NEWS: Add "tui new-layout" item.
10998 * tui/tui-layout.c (add_layout_command): Return cmd_list_element.
10999 Add new-layout command to help text.
11000 (validate_window_name): New function.
11001 (tui_new_layout_command): New function.
11002 (_initialize_tui_layout): Register "new-layout".
11003 (tui_layout_window::specification): New method.
11004 (tui_layout_window::specification): New method.
11005 * tui/tui-layout.h (class tui_layout_base) <specification>: New
11006 method.
11007 (class tui_layout_window) <specification>: New method.
11008 (class tui_layout_split) <specification>: New method.
11009
11010 2020-02-22 Tom Tromey <tom@tromey.com>
11011
11012 * tui/tui.c (tui_enable): Call tui_set_initial_layout.
11013 * tui/tui-win.c (window_name_completer): Update comment.
11014 * tui/tui-layout.h (class tui_layout_base) <replace_window>:
11015 Declare method.
11016 (class tui_layout_window) <replace_window>: Likewise.
11017 (class tui_layout_split) <replace_window>: Likewise.
11018 (tui_set_layout): Don't declare.
11019 (tui_set_initial_layout): Declare function.
11020 * tui/tui-layout.c (layouts, applied_skeleton, src_regs_layout)
11021 (asm_regs_layout): New globals.
11022 (tui_current_layout, show_layout): Remove.
11023 (tui_set_layout, tui_add_win_to_layout): Rewrite.
11024 (find_layout, tui_apply_layout): New function.
11025 (layout_completer): Remove.
11026 (tui_next_layout): Reimplement.
11027 (tui_next_layout_command): New function.
11028 (tui_set_initial_layout, tui_prev_layout_command): New functions.
11029 (tui_regs_layout): Reimplement.
11030 (tui_regs_layout_command): New function.
11031 (extract_display_start_addr): Rewrite.
11032 (next_layout, prev_layout): Remove.
11033 (tui_layout_window::replace_window): New method.
11034 (tui_layout_split::replace_window): New method.
11035 (destroy_layout): New function.
11036 (layout_list): New global.
11037 (add_layout_command): New function.
11038 (initialize_layouts): Update.
11039 (tui_layout_command): New function.
11040 (_initialize_tui_layout): Install "layout" commands.
11041 * tui/tui-data.h (enum tui_layout_type): Remove.
11042 (tui_current_layout): Don't declare.
11043
11044 2020-02-22 Tom Tromey <tom@tromey.com>
11045
11046 * tui/tui-regs.c (tui_reg_layout): Remove.
11047 (tui_reg_command): Use tui_regs_layout.
11048 * tui/tui-layout.h (tui_reg_command): Declare.
11049 * tui/tui-layout.c (tui_reg_command): New function.
11050
11051 2020-02-22 Tom Tromey <tom@tromey.com>
11052
11053 * tui/tui.c (tui_rl_delete_other_windows): Call
11054 tui_remove_some_windows.
11055 * tui/tui-layout.h (class tui_layout_base) <remove_windows>:
11056 Declare method.
11057 (class tui_layout_window) <remove_windows>: New method.
11058 (class tui_layout_split) <remove_windows>: Declare.
11059 (tui_remove_some_windows): Declare.
11060 * tui/tui-layout.c (tui_remove_some_windows): New function.
11061 (tui_layout_split::remove_windows): New method.
11062
11063 2020-02-22 Tom Tromey <tom@tromey.com>
11064
11065 * tui/tui.c (tui_rl_change_windows): Call tui_next_layout.
11066 * tui/tui-layout.h (tui_next_layout): Declare.
11067 * tui/tui-layout.c (tui_next_layout): New function.
11068
11069 2020-02-22 Tom Tromey <tom@tromey.com>
11070
11071 * tui/tui-regs.c (tui_data_window::display_registers_from): Use
11072 correct coordinates.
11073
11074 2020-02-22 Tom Tromey <tom@tromey.com>
11075
11076 * tui/tui-layout.h (tui_add_win_to_layout): Add comment.
11077 * tui/tui-layout.c (tui_add_win_to_layout): Add assert. Remove
11078 DATA_WIN case.
11079
11080 2020-02-22 Tom Tromey <tom@tromey.com>
11081
11082 * tui/tui-disasm.c (tui_get_low_disassembly_address): Use
11083 TUI_DISASM_WIN, not tui_win_list.
11084
11085 2020-02-22 Tom Tromey <tom@tromey.com>
11086
11087 * valprint.c (generic_val_print_enum_1)
11088 (val_print_type_code_flags): Style member names.
11089 * rust-lang.c (val_print_struct, rust_print_enum)
11090 (rust_print_struct_def, rust_internal_print_type): Style member
11091 names.
11092 * p-valprint.c (pascal_object_print_value_fields): Style member
11093 names. Only call fprintf_symbol_filtered for static members.
11094 * m2-typeprint.c (m2_record_fields, m2_enum): Style member names.
11095 * f-valprint.c (f_val_print): Style member names.
11096 * f-typeprint.c (f_type_print_base): Style member names.
11097 * cp-valprint.c (cp_print_value_fields): Style member names. Only
11098 call fprintf_symbol_filtered for static members.
11099 (cp_print_class_member): Style member names.
11100 * c-typeprint.c (c_print_type_1, c_type_print_base_1): Style
11101 member names.
11102 * ada-valprint.c (ada_print_scalar): Style enum names.
11103 (ada_val_print_enum): Likewise.
11104 * ada-typeprint.c (print_enum_type): Style enum names.
11105
11106 2020-02-21 Tom Tromey <tom@tromey.com>
11107
11108 * psympriv.h (struct partial_symtab): Update comment.
11109
11110 2020-02-21 Tom Tromey <tromey@adacore.com>
11111
11112 * mips-tdep.h (mips_pc_is_mips16, mips_pc_is_micromips): Parameter
11113 type is CORE_ADDR.
11114
11115 2020-02-21 Tom de Vries <tdevries@suse.de>
11116
11117 PR gdb/25534
11118 * psymtab.c (partial_symtab::read_dependencies): Don't read dependency
11119 if dependencies[i]->user != NULL.
11120
11121 2020-02-21 Ali Tamur <tamur@google.com>
11122
11123 * dwarf2/read.c (dwarf2_name): Add null check.
11124
11125 2020-02-20 Tom Tromey <tom@tromey.com>
11126
11127 * dwarf2/read.c (dwarf2_find_containing_comp_unit): Use ">", not
11128 ">=", in binary search.
11129 (dwarf2_find_containing_comp_unit): New overload.
11130 (run_test): New self-test.
11131 (_initialize_dwarf2_read): Register new test.
11132
11133 2020-02-20 Nelson Chu <nelson.chu@sifive.com>
11134
11135 * riscv-tdep.c: Updated since the DECLARE_CSR is changed.
11136 * riscv-tdep.h: Likewise.
11137 * features/riscv/rebuild-csr-xml.sh: Generate the 64bit-csr.xml without
11138 rv32-only CSR.
11139 * features/riscv/64bit-csr.xml: Regenerated.
11140
11141 2020-02-20 Sergio Durigan Junior <sergiodj@redhat.com>
11142 Tom Tromey <tom@tromey.com>
11143
11144 * utils.c (fputs_maybe_filtered): Call 'stream->puts' instead
11145 of 'fputc_unfiltered'.
11146 (putchar_unfiltered): Call 'fputc_unfiltered'.
11147 (fputc_unfiltered): Call 'fputs_unfiltered'.
11148
11149 2020-02-20 Andrew Burgess <andrew.burgess@embecosm.com>
11150
11151 * config.in: Regenerate.
11152 * configure: Regenerate.
11153 * configure.ac: Add --with-python-libdir option.
11154 * main.c: Use WITH_PYTHON_LIBDIR.
11155
11156 2020-02-19 Tom Tromey <tom@tromey.com>
11157
11158 * symtab.c (general_symbol_info::compute_and_set_names): Use
11159 obstack_strndup. Simplify call to symbol_set_demangled_name.
11160
11161 2020-02-19 Simon Marchi <simon.marchi@efficios.com>
11162
11163 * dwarf2/read.c (allocate_signatured_type_table,
11164 allocate_dwo_unit_table, allocate_type_unit_groups_table,
11165 allocate_dwo_file_hash_table, allocate_dwp_loaded_cutus_table):
11166 Remove objfile parameter, update all callers.
11167
11168 2020-02-19 Doug Evans <dje@google.com>
11169
11170 PR rust/25535
11171 * rust-lang.c (rust_print_enum): Apply embedded_offset to
11172 rust_enum_variant calculation.
11173
11174 2020-02-19 Tom Tromey <tromey@adacore.com>
11175
11176 * mips-tdep.h (mips_pc_is_mips): Parameter type is CORE_ADDR.
11177
11178 2020-02-19 Tom Tromey <tromey@adacore.com>
11179
11180 * ada-lang.c (cache_symbol): Use obstack_strdup.
11181
11182 2020-02-19 Andrew Burgess <andrew.burgess@embecosm.com>
11183
11184 * configure: Regenerate.
11185
11186 2020-02-19 Tom Tromey <tromey@adacore.com>
11187
11188 * python/python.c (do_start_initialization): Use XNEWVEC. Remove
11189 NULL check.
11190
11191 2020-02-19 Maciej W. Rozycki <macro@wdc.com>
11192
11193 * NEWS: Mention RISC-V GNU/Linux GDBserver support.
11194
11195 2020-02-19 Andrew Burgess <andrew.burgess@embecosm.com>
11196
11197 * arch/riscv.c (struct riscv_gdbarch_features_hasher): Only define
11198 if GDBSERVER is not defined.
11199 (riscv_tdesc_cache): Likewise, also store const target_desc.
11200 (STATIC_IN_GDB): Define.
11201 (riscv_create_target_description): Update declaration with
11202 STATIC_IN_GDB.
11203 (riscv_lookup_target_description): New function, only define if
11204 GDBSERVER is not defined.
11205 * arch/riscv.h (riscv_create_target_description): Declare only
11206 when GDBSERVER is defined.
11207 (riscv_lookup_target_description): New declaration when GDBSERVER
11208 is not defined.
11209 * nat/riscv-linux-tdesc.c (riscv_linux_read_description): Rename to...
11210 (riscv_linux_read_features): ...this, and return
11211 riscv_gdbarch_features instead of target_desc.
11212 * nat/riscv-linux-tdesc.h: Include 'arch/riscv.h'.
11213 (riscv_linux_read_description): Rename to...
11214 (riscv_linux_read_features): ...this.
11215 * riscv-linux-nat.c (riscv_linux_nat_target::read_description):
11216 Update to use riscv_gdbarch_features and
11217 riscv_lookup_target_description.
11218 * riscv-tdep.c (riscv_find_default_target_description): Use
11219 riscv_lookup_target_description instead of
11220 riscv_create_target_description.
11221
11222 2020-02-18 Simon Marchi <simon.marchi@efficios.com>
11223
11224 * valprint.c (generic_val_print_enum_1): When printing a flag
11225 enum with value 0 and there is no enumerator with value 0, print
11226 just "0" instead of "(unknown: 0x0)".
11227
11228 2020-02-18 Simon Marchi <simon.marchi@efficios.com>
11229
11230 * valprint.c (generic_val_print_enum_1): Print unknown part of
11231 flag enum in hex.
11232
11233 2020-02-18 Simon Marchi <simon.marchi@efficios.com>
11234
11235 * dwarf2/read.c (update_enumeration_type_from_children): Allow
11236 flag enums to contain duplicate enumerators.
11237 * valprint.c (generic_val_print_enum_1): Update comment.
11238
11239 2020-02-18 Simon Marchi <simon.marchi@efficios.com>
11240
11241 * dwarf2/read.c: Include "count-one-bits.h".
11242 (update_enumeration_type_from_children): If an enumerator has
11243 multiple bits set, don't treat the enumeration as a "flag enum".
11244 * valprint.c (generic_val_print_enum_1): Assert that enumerators
11245 of flag enums have 0 or 1 bit set.
11246
11247 2020-02-18 Bernd Edlinger <bernd.edlinger@hotmail.de>
11248
11249 * aarch64-tdep.c (aarch64_displaced_step_copy_insn): Use an explicit
11250 conversion.
11251 * amd64-tdep.c (amd64_displaced_step_copy_insn): Likewise.
11252 * arm-linux-tdep.c (arm_linux_displaced_step_copy_insn): Likewise.
11253 * i386-tdep.c (i386_displaced_step_copy_insn): Likewise.
11254 * rs6000-tdep.c (ppc_displaced_step_copy_insn): Likewise.
11255 * s390-tdep.c (s390_displaced_step_copy_insn): Likewise.
11256
11257 2020-02-18 Simon Marchi <simon.marchi@efficios.com>
11258
11259 * MAINTAINERS: Change palmer@sifive.com to palmer@dabbelt.com.
11260
11261 2020-02-14 Simon Marchi <simon.marchi@efficios.com>
11262
11263 * aarch64-tdep.c (aarch64_displaced_step_copy_insn): Use
11264 displaced_step_closure_up.
11265 * aarch64-tdep.h (aarch64_displaced_step_copy_insn): Likewise.
11266 (struct displaced_step_closure_up):
11267 * amd64-tdep.c (amd64_displaced_step_copy_insn): Likewise.
11268 * amd64-tdep.h (amd64_displaced_step_copy_insn): Likewise.
11269 * arm-linux-tdep.c (arm_linux_displaced_step_copy_insn):
11270 Likewise.
11271 * gdbarch.sh (displaced_step_copy_insn): Likewise.
11272 * gdbarch.c, gdbarch.h: Re-generate.
11273 * i386-linux-tdep.c (i386_linux_displaced_step_copy_insn): Use
11274 displaced_step_closure_up.
11275 * i386-tdep.c (i386_displaced_step_copy_insn): Likewise.
11276 * i386-tdep.h (i386_displaced_step_copy_insn): Likewise.
11277 * infrun.h (displaced_step_closure_up): New type alias.
11278 (struct displaced_step_inferior_state) <step_closure>: Change
11279 type to displaced_step_closure_up.
11280 * rs6000-tdep.c (ppc_displaced_step_copy_insn): Use
11281 displaced_step_closure_up.
11282 * s390-tdep.c (s390_displaced_step_copy_insn): Likewise.
11283
11284 2020-02-14 Tom Tromey <tom@tromey.com>
11285
11286 * minidebug.c (gnu_debug_key): New global.
11287 (find_separate_debug_file_in_section): Use it.
11288
11289 2020-02-14 Simon Marchi <simon.marchi@efficios.com>
11290
11291 * gdbarch.sh (displaced_step_copy_insn): Change return type to an
11292 std::unique_ptr.
11293 * gdbarch.c: Re-generate.
11294 * gdbarch.h: Re-generate.
11295 * infrun.c (displaced_step_prepare_throw): Adjust to std::unique_ptr
11296 change.
11297 * aarch64-tdep.c (aarch64_displaced_step_copy_insn): Change return
11298 type to std::unique_ptr.
11299 * aarch64-tdep.h (aarch64_displaced_step_copy_insn): Likewise.
11300 * amd64-tdep.c (amd64_displaced_step_copy_insn): Likewise.
11301 * amd64-tdep.h (amd64_displaced_step_copy_insn): Likewise.
11302 * arm-linux-tdep.c (arm_linux_displaced_step_copy_insn): Likewise.
11303 * i386-linux-tdep.c (i386_linux_displaced_step_copy_insn): Likewise.
11304 * i386-tdep.c (i386_displaced_step_copy_insn): Likewise.
11305 * i386-tdep.h (i386_displaced_step_copy_insn): Likewise.
11306 * rs6000-tdep.c (ppc_displaced_step_copy_insn): Likewise.
11307 * s390-tdep.c (s390_displaced_step_copy_insn): Likewise.
11308
11309 2020-02-14 Simon Marchi <simon.marchi@efficios.com>
11310
11311 * infrun.c (get_displaced_step_closure_by_addr): Adjust to
11312 std::unique_ptr.
11313 (displaced_step_clear): Rename to...
11314 (displaced_step_reset): ... this. Just call displaced->reset ().
11315 (displaced_step_clear_cleanup): Rename to...
11316 (displaced_step_reset_cleanup): ... this.
11317 (displaced_step_prepare_throw): Adjust to std::unique_ptr.
11318 (displaced_step_fixup): Likewise.
11319 (resume_1): Likewise.
11320 (handle_inferior_event): Restore child's memory before calling
11321 displaced_step_fixup on the parent.
11322 * infrun.h (displaced_step_inferior_state) <reset>: Adjust
11323 to std::unique_ptr.
11324 <step_closure>: Change type to std::unique_ptr.
11325
11326 2020-02-14 Simon Marchi <simon.marchi@efficios.com>
11327
11328 * arm-tdep.c: Include count-one-bits.h.
11329 (cleanup_block_store_pc): Use count_one_bits.
11330 (cleanup_block_load_pc): Use count_one_bits.
11331 (arm_copy_block_xfer): Use count_one_bits.
11332 (thumb2_copy_block_xfer): Use count_one_bits.
11333 (thumb_copy_pop_pc_16bit): Use count_one_bits.
11334 * arch/arm-get-next-pcs.c: Include count-one-bits.h.
11335 (thumb_get_next_pcs_raw): Use count_one_bits.
11336 (arm_get_next_pcs_raw): Use count_one_bits_l.
11337 * arch/arm.c (bitcount): Remove.
11338 * arch/arm.h (bitcount): Remove.
11339
11340 2020-02-14 Tom Tromey <tromey@adacore.com>
11341
11342 * dwarf2/frame-tailcall.c (dwarf2_tailcall_sniffer_first):
11343 Update.
11344 * dwarf2/loc.h (call_site_find_chain): Return unique_xmalloc_ptr.
11345 * dwarf2/loc.c (call_site_find_chain_1): Return
11346 unique_xmalloc_ptr.
11347 (call_site_find_chain): Likewise.
11348
11349 2020-02-14 Richard Biener <rguenther@suse.de>
11350
11351 * dwarf2/read.c (lnp_state_machine::handle_special_opcode): Apply CSE
11352 on expression with division operators.
11353
11354 2020-02-13 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
11355
11356 * MAINTAINERS (Write After Approval): Adding myself.
11357
11358 2020-02-12 Tom Tromey <tom@tromey.com>
11359
11360 * event-loop.c (event_data, gdb_event, event_handler_func):
11361 Remove.
11362
11363 2020-02-12 Tom Tromey <tom@tromey.com>
11364
11365 * dwarf2/frame.c (dwarf2_frame_bfd_data): New global.
11366 (dwarf2_frame_objfile_data): Add comment.
11367 (find_comp_unit, set_comp_unit): New functions.
11368 (dwarf2_frame_find_fde): Use find_comp_unit.
11369 (dwarf2_build_frame_info): Use set_comp_unit.
11370
11371 2020-02-12 Tom Tromey <tom@tromey.com>
11372
11373 * dwarf2/frame.c (struct comp_unit) <objfile>: Remove.
11374 (comp_unit): Don't initialize objfile.
11375 (execute_cfa_program): Add text_offset parameter.
11376 (execute_cfa_program_test, dwarf2_fetch_cfa_info)
11377 (dwarf2_frame_cache): Update.
11378 (dwarf2_build_frame_info): Don't set "objfile" member.
11379
11380 2020-02-12 Tom Tromey <tom@tromey.com>
11381
11382 * dwarf2/frame.c (decode_frame_entry_1): Add gdbarch parameter.
11383 (decode_frame_entry): Likewise.
11384 (dwarf2_build_frame_info): Update.
11385
11386 2020-02-12 Tom Tromey <tom@tromey.com>
11387
11388 * dwarf2/frame.c (struct comp_unit) <obstack>: New member.
11389 (decode_frame_entry_1): Use the comp_unit obstack.
11390
11391 2020-02-12 Tom Tromey <tom@tromey.com>
11392
11393 * dwarf2/frame.c (struct comp_unit): Add initializers and
11394 constructor.
11395 (dwarf2_frame_objfile_data): Store a comp_unit.
11396 (dwarf2_frame_find_fde): Update.
11397 (dwarf2_build_frame_info): Use "new".
11398
11399 2020-02-12 Tom Tromey <tom@tromey.com>
11400
11401 * dwarf2/frame.c (struct dwarf2_fde_table): Remove.
11402 (dwarf2_fde_table): Typedef for std::vector.
11403 (dwarf2_frame_objfile_data): Remove the deleter. Now static.
11404 (dwarf2_frame_find_fde, add_fde, decode_frame_entry_1)
11405 (decode_frame_entry): Update.
11406 (dwarf2_build_frame_info): Use "new".
11407
11408 2020-02-12 Christian Biesinger <cbiesinger@google.com>
11409
11410 * arm-tdep.c (arm_gdbarch_init): Update.
11411 * arm-tdep.h (struct gdbarch_tdep) <have_fpa_registers,
11412 have_wmmx_registers, have_vfp_pseudos, have_neon_pseudos,
11413 have_neon, is_m>: Change to bool.
11414
11415 2020-02-12 Christian Biesinger <cbiesinger@google.com>
11416
11417 * arm-tdep.c (arm_dump_tdep): Print more fields of tdep.
11418
11419 2020-02-12 Tom Tromey <tom@tromey.com>
11420
11421 * dwarf2/loc.c (struct dwarf_expr_baton): Remove.
11422
11423 2020-02-12 Hannes Domani <ssbssa@yahoo.de>
11424
11425 * windows-tdep.c (struct windows_gdbarch_data): Add tib_ptr_type.
11426 (windows_get_tlb_type): Use windows_gdbarch_data->tib_ptr_type.
11427
11428 2020-02-11 Tom Tromey <tom@tromey.com>
11429
11430 * psymtab.h: Update comment.
11431
11432 2020-02-11 Tom Tromey <tom@tromey.com>
11433
11434 * gdb_obstack.h (struct auto_obstack): Use
11435 DISABLE_COPY_AND_ASSIGN.
11436
11437 2020-02-11 Tom Tromey <tom@tromey.com>
11438
11439 * dwarf2/frame.h (struct objfile): Don't forward declare.
11440
11441 2020-02-11 Christian Biesinger <cbiesinger@google.com>
11442
11443 * cris-tdep.c (cris_supply_gregset): Change signature to match
11444 what struct regset expects.
11445 (cris_regset): New struct.
11446 (fetch_core_registers): Remove.
11447 (cris_iterate_over_regset_sections): New function.
11448 (_initialize_cris_tdep): Don't call deprecated_add_core_fns.
11449 (cris_gdbarch_init): Call set_gdbarch_iterate_over_regset_sections.
11450
11451 2020-02-11 Christian Biesinger <cbiesinger@google.com>
11452
11453 * arch/arm.h (enum gdb_regnum): Add comment for the FP0..7
11454 registers.
11455
11456 2020-02-11 Christian Biesinger <cbiesinger@google.com>
11457
11458 * arm-tdep.c (arm_dump_tdep): Add \n in fprintf.
11459
11460 2020-02-11 Simon Marchi <simon.marchi@efficios.com>
11461
11462 * configure: Re-generate.
11463
11464 2020-02-11 Simon Marchi <simon.marchi@efficios.com>
11465
11466 * configure: Re-generate.
11467
11468 2020-02-11 Simon Marchi <simon.marchi@efficios.com>
11469
11470 * acinclude: Update warning.m4 path.
11471 * warning.m4: Move to gdbsupport.
11472
11473 2020-02-11 Tom Tromey <tromey@adacore.com>
11474
11475 * remote.c (remote_console_output): Update.
11476 * printcmd.c (printf_command): Update.
11477 * event-loop.c (gdb_wait_for_event): Update.
11478 * linux-nat.c (sigchld_handler): Update.
11479 * remote-sim.c (gdb_os_write_stdout): Update.
11480 (gdb_os_flush_stdout): Update.
11481 (gdb_os_flush_stderr): Update.
11482 (gdb_os_write_stderr): Update.
11483 * exceptions.c (print_exception): Update.
11484 * remote-fileio.c (remote_fileio_func_read): Update.
11485 (remote_fileio_func_write): Update.
11486 * tui/tui.c (tui_enable): Update.
11487 * tui/tui-interp.c (tui_interp::init): Update.
11488 * utils.c (init_page_info): Update.
11489 (putchar_unfiltered, fputc_unfiltered): Update.
11490 (gdb_flush): Update.
11491 (emit_style_escape): Update.
11492 (flush_wrap_buffer, fputs_maybe_filtered): Update.
11493 * ui-file.c (ui_file_isatty, ui_file_read, ui_file_write)
11494 (ui_file_write_async_safe, ui_file_flush, ui_file_puts): Remove.
11495 (stderr_file::write): Update.
11496 (stderr_file::puts): Update.
11497 * ui-file.h (ui_file_isatty, ui_file_write)
11498 (ui_file_write_async_safe, ui_file_read, ui_file_flush)
11499 (ui_file_puts): Don't declare.
11500
11501 2020-02-10 Tom de Vries <tdevries@suse.de>
11502
11503 * dwarf2/read.c (process_psymtab_comp_unit_reader): Cast concat NULL
11504 sentinel to char *.
11505
11506 2020-02-09 Tom de Vries <tdevries@suse.de>
11507
11508 * dwarf2read.c (process_psymtab_comp_unit_reader): Append CU offset to
11509 filename if it matches "<artificial>".
11510
11511 2020-02-09 Hannes Domani <ssbssa@yahoo.de>
11512
11513 * windows-tdep.c (struct enum_value_name): New struct.
11514 (create_enum): New function.
11515 (windows_get_siginfo_type): Create and use enum types.
11516
11517 2020-02-09 Hannes Domani <ssbssa@yahoo.de>
11518
11519 * NEWS: Mention $_siginfo support for Windows.
11520 * windows-nat.c (handle_exception): Set siginfo_er.
11521 (windows_nat_target::mourn_inferior): Reset siginfo_er.
11522 (windows_xfer_siginfo): New function.
11523 (windows_nat_target::xfer_partial): Call windows_xfer_siginfo.
11524 * windows-tdep.c (struct windows_gdbarch_data): New struct.
11525 (init_windows_gdbarch_data): New function.
11526 (get_windows_gdbarch_data): New function.
11527 (windows_get_siginfo_type): New function.
11528 (windows_init_abi): Register windows_get_siginfo_type.
11529 (_initialize_windows_tdep): Register init_windows_gdbarch_data.
11530
11531 2020-02-08 Tom Tromey <tom@tromey.com>
11532
11533 * dwarf2/read.c (class cutu_reader) <cutu_reader,
11534 init_tu_and_read_dwo_dies>: Remove "keep" parameter.
11535 <keep>: Declare method.
11536 <m_keep>: Remove member.
11537 <~cutu_reader>: Remove.
11538 (cutu_reader::init_tu_and_read_dwo_dies): Update.
11539 (cutu_reader::cutu_reader): Update.
11540 (cutu_reader::keep): Rename from ~cutu_reader.
11541 (process_psymtab_comp_unit, build_type_psymtabs_1)
11542 (process_skeletonless_type_unit, load_partial_comp_unit)
11543 (load_full_comp_unit, dwarf2_read_addr_index)
11544 (read_signatured_type): Update.
11545
11546 2020-02-08 Tom Tromey <tom@tromey.com>
11547
11548 * dwarf2/read.c (process_psymtab_comp_unit_reader): Remove
11549 "want_partial_unit" parameter.
11550 (process_psymtab_comp_unit): Change want_partial_unit to bool.
11551 Inline check for DW_TAG_partial_unit.
11552 (dwarf2_build_psymtabs_hard, scan_partial_symbols): Update.
11553
11554 2020-02-08 Tom Tromey <tom@tromey.com>
11555
11556 * dwarf2/read.c (read_n_bytes, read_direct_string): Move to
11557 read.c.
11558 * dwarf2/leb.h (read_n_bytes, read_direct_string): Move from
11559 read.c.
11560
11561 2020-02-08 Tom Tromey <tom@tromey.com>
11562
11563 * dwarf2/read.c (read_address): Move to comp-unit.c.
11564 (dwarf2_rnglists_process, dwarf2_ranges_process)
11565 (read_attribute_value, dwarf_decode_lines_1)
11566 (var_decode_location, decode_locdesc): Update.
11567 * dwarf2/comp-unit.c (comp_unit_head::read_address): Move from
11568 read.c. Remove "cu" parameter.
11569 * dwarf2/comp-unit.h (struct comp_unit_head) <read_address>: New
11570 method.
11571
11572 2020-02-08 Tom Tromey <tom@tromey.com>
11573
11574 * dwarf2/read.c (read_attribute_value, read_indirect_string)
11575 (read_indirect_line_string): Update.
11576 * dwarf2/comp-unit.c (read_offset): Remove.
11577 (read_comp_unit_head): Update.
11578 * dwarf2/comp-unit.h (struct comp_unit_head) <read_offset>: New
11579 method.
11580 (read_offset): Don't declare.
11581
11582 2020-02-08 Tom Tromey <tom@tromey.com>
11583
11584 * Makefile.in (COMMON_SFILES): Add dwarf2/comp-unit.c.
11585 * dwarf2/read.c (struct comp_unit_head): Move to
11586 dwarf2/comp-unit.h.
11587 (enum class rcuh_kind): Move to comp-unit.h.
11588 (get_cu_length, offset_in_cu_p): Now methods on comp_unit_head.
11589 (read_comp_unit_head, error_check_comp_unit_head)
11590 (read_and_check_comp_unit_head): Move to comp-unit.c.
11591 (read_offset, dwarf_unit_type_name): Likewise.
11592 (create_debug_type_hash_table, read_cutu_die_from_dwo)
11593 (cutu_reader::cutu_reader, read_call_site_scope)
11594 (find_partial_die, follow_die_offset): Update.
11595 * dwarf2/comp-unit.h: New file, from dwarf2read.c.
11596
11597 2020-02-08 Tom Tromey <tom@tromey.com>
11598
11599 * dwarf2/read.c (read_offset_1): Move to leb.c.
11600 (read_abbrev_offset, read_offset, dwarf_decode_line_header)
11601 (dwarf_decode_macro_bytes): Update.
11602 * dwarf2/leb.c (read_offset): Rename; move from read.c.
11603 * dwarf2/leb.h (read_offset): Declare.
11604
11605 2020-02-08 Tom Tromey <tom@tromey.com>
11606
11607 * dwarf2/read.c (dwarf2_section_size): Remove.
11608 (error_check_comp_unit_head, dwarf2_symbol_mark_computed):
11609 Update.
11610 * dwarf2/section.h (struct dwarf2_section_info) <get_size>: New method.
11611
11612 2020-02-08 Tom Tromey <tom@tromey.com>
11613
11614 * dwarf2/read.c (read_initial_length): Move to leb.c.
11615 * dwarf2/leb.h (read_initial_length): Declare.
11616 * dwarf2/leb.c (read_initial_length): Move from read.c. Add
11617 handle_nonstd parameter.
11618 * dwarf2/frame.c (read_initial_length): Remove.
11619 (decode_frame_entry_1): Update.
11620
11621 2020-02-08 Tom Tromey <tom@tromey.com>
11622
11623 * dwarf2/loc.c (dwarf2_find_location_expression)
11624 (dwarf_evaluate_loc_desc::get_tls_address)
11625 (dwarf_evaluate_loc_desc::push_dwarf_reg_entry_value)
11626 (rw_pieced_value, dwarf2_evaluate_loc_desc_full)
11627 (dwarf2_locexpr_baton_eval, dwarf2_evaluate_property)
11628 (dwarf2_compile_property_to_c)
11629 (dwarf2_loc_desc_get_symbol_read_needs)
11630 (dwarf2_compile_expr_to_ax, locexpr_describe_location)
11631 (locexpr_tracepoint_var_ref, locexpr_generate_c_location)
11632 (loclist_describe_location, loclist_tracepoint_var_ref)
11633 (loclist_generate_c_location): Update.
11634 * compile/compile-loc2c.c (do_compile_dwarf_expr_to_c): Update.
11635 * dwarf2/loc.h (dwarf2_per_cu_objfile, dwarf2_per_cu_addr_size)
11636 (dwarf2_per_cu_ref_addr_size, dwarf2_per_cu_offset_size)
11637 (dwarf2_per_cu_text_offset, dwarf2_version): Don't declare.
11638 * dwarf2/read.c (dwarf2_per_cu_data::objfile)
11639 (dwarf2_per_cu_data::addr_size)
11640 (dwarf2_per_cu_data::ref_addr_size)
11641 (dwarf2_per_cu_data::text_offset)
11642 (dwarf2_per_cu_data::addr_type): Now methods.
11643 (per_cu_header_read_in): Make per_cu "const".
11644 (dwarf2_version): Remove.
11645 (dwarf2_per_cu_data::int_type): Now a method.
11646 (dwarf2_per_cu_data::_addr_sized_int_type): Likewise.
11647 (set_die_type, read_array_type, read_subrange_index_type)
11648 (read_tag_string_type, read_subrange_type): Update.
11649 * dwarf2/read.h (struct dwarf2_per_cu_data) <addr_size,
11650 offset_size, ref_addr_size, text_offset, addr_type, version,
11651 objfile, int_type, addr_sized_int_type>: Declare methods.
11652
11653 2020-02-08 Tom Tromey <tom@tromey.com>
11654
11655 * dwarf2/read.h (struct dwarf2_per_cu_data) <imported_symtabs>:
11656 Move earlier.
11657
11658 2020-02-08 Tom Tromey <tom@tromey.com>
11659
11660 * dwarf2/read.h (dwarf_line_debug): Declare.
11661 * Makefile.in (COMMON_SFILES): Add dwarf2/line-header.c.
11662 * dwarf2/read.c: Move line_header code to new files.
11663 (dwarf_line_debug): No longer static.
11664 * dwarf2/line-header.c: New file.
11665 * dwarf2/line-header.h: New file.
11666
11667 2020-02-08 Tom Tromey <tom@tromey.com>
11668
11669 * dwarf2/read.c (struct line_header) <file_full_name,
11670 file_file_name>: Return unique_xmalloc_ptr.
11671 (line_header::file_file_name): Update.
11672 (line_header::file_full_name): Update.
11673 (dw2_get_file_names_reader): Update.
11674 (macro_start_file): Update.
11675
11676 2020-02-08 Tom Tromey <tom@tromey.com>
11677
11678 * dwarf2/read.c (struct line_header) <file_full_name,
11679 file_file_name>: Declare methods.
11680 (dw2_get_file_names_reader): Update.
11681 (file_file_name): Now a method.
11682 (file_full_name): Likewise.
11683 (macro_start_file): Update.
11684
11685 2020-02-08 Tom Tromey <tom@tromey.com>
11686
11687 * dwarf2/read.c (dwarf_always_disassemble)
11688 (show_dwarf_always_disassemble): Move to loc.c.
11689 (_initialize_dwarf2_read): Move "always-disassemble" registration
11690 to loc.c.
11691 * dwarf2/read.h (dwarf_always_disassemble): Don't declare.
11692 * dwarf2/loc.c (dwarf_always_disassemble): Move from read.c. Now
11693 static.
11694 (show_dwarf_always_disassemble): Move from read.c.
11695 (_initialize_dwarf2loc): Move always-disassemble from read.c.
11696
11697 2020-02-08 Tom Tromey <tom@tromey.com>
11698
11699 * dwarf2/read.c (~dwarf2_per_objfile): Update.
11700 (create_quick_file_names_table): Return htab_up.
11701 (dw2_get_file_names_reader, dw2_forget_cached_source_info):
11702 Update.
11703 * dwarf2/read.h (struct dwarf2_per_objfile)
11704 <quick_file_names_table>: Now htab_up.
11705
11706 2020-02-08 Tom Tromey <tom@tromey.com>
11707
11708 * dwarf2/abbrev.c (abbrev_table::read): Simplify.
11709
11710 2020-02-08 Tom Tromey <tom@tromey.com>
11711
11712 * dwarf2/abbrev.c (abbrev_table): Move constructor from header.
11713 Rewrite.
11714 (abbrev_table::add_abbrev, abbrev_table::lookup_abbrev): Rewrite.
11715 * dwarf2/abbrev.h (struct abbrev_info) <next>: Remove.
11716 (abbrev_table::abbrev_table): No longer inline.
11717 (ABBREV_HASH_SIZE): Remove.
11718 (abbrev_table::m_abbrevs): Now an htab_up.
11719
11720 2020-02-08 Tom Tromey <tom@tromey.com>
11721
11722 * dwarf2/read.c (read_cutu_die_from_dwo): Update.
11723 (cutu_reader): Update.
11724 (build_type_psymtabs_1): Update.
11725 * dwarf2/abbrev.c (abbrev_table::read): Rename.
11726 (abbrev_table::alloc_abbrev): Update.
11727 * dwarf2/abbrev.h (abbrev_table_up): Move earlier.
11728 (abbrev_table::read): New static method, renamed from
11729 abbrev_table_read_table.
11730 (abbrev_table::alloc_abbrev)
11731 (abbrev_table::add_abbrev): Now private.
11732 (abbrev_table::abbrev_table): Now private.
11733 (abbrev_table::m_abbrev_obstack): Now private. Rename.
11734
11735 2020-02-08 Tom Tromey <tom@tromey.com>
11736
11737 * dwarf2/read.c (set_die_type, get_die_type_at_offset): Update.
11738 * dwarf2/read.h (struct dwarf2_per_objfile) <die_type_hash>: Now
11739 htab_up.
11740
11741 2020-02-08 Tom Tromey <tom@tromey.com>
11742
11743 * dwarf2/read.c (struct dwp_file) <loaded_cus, loaded_tus>: Now
11744 htab_up.
11745 (lookup_dwo_unit_in_dwp): Update.
11746 (allocate_dwp_loaded_cutus_table): Return htab_up. Don't allocate
11747 on obstack.
11748
11749 2020-02-08 Tom Tromey <tom@tromey.com>
11750
11751 * dwarf2/read.c (allocate_dwo_file_hash_table): Don't allocate on
11752 obstack.
11753
11754 2020-02-08 Tom Tromey <tom@tromey.com>
11755
11756 * dwarf2/read.c (~dwarf2_per_objfile): Don't delete
11757 line_header_hash.
11758 (handle_DW_AT_stmt_list): Update. Don't allocate on obstack.
11759 * dwarf2/read.h (struct dwarf2_per_objfile) <line_header_hash>:
11760 Change type to htab_up.
11761
11762 2020-02-08 Tom Tromey <tom@tromey.com>
11763
11764 * dwarf2/read.c (allocate_type_unit_groups_table): Return
11765 htab_up. Don't allocate on obstack.
11766 (get_type_unit_group, dwarf2_build_psymtabs_hard): Update.
11767 * dwarf2/read.h (struct dwarf2_per_objfile) <type_unit_groups>:
11768 Change type to htab_up.
11769
11770 2020-02-08 Tom Tromey <tom@tromey.com>
11771
11772 * dwarf2/read.h (struct dwarf2_per_objfile) <signatured_types>:
11773 Change type to htab_up.
11774 * dwarf2/read.c (create_signatured_type_table_from_index)
11775 (create_signatured_type_table_from_debug_names)
11776 (create_all_type_units, add_type_unit)
11777 (lookup_dwo_signatured_type, lookup_signatured_type)
11778 (process_skeletonless_type_unit): Update.
11779 (create_debug_type_hash_table, create_debug_types_hash_table):
11780 Change type of types_htab.
11781 (allocate_signatured_type_table, allocate_dwo_unit_table): Return
11782 htab_up. Don't allocate on obstack.
11783 (create_cus_hash_table): Change type of cus_htab parameter.
11784 (struct dwo_file) <cus, tus>: Now htab_up.
11785 (lookup_dwo_signatured_type, lookup_dwo_cutu)
11786 (process_dwo_file_for_skeletonless_type_units, lookup_dwo_cutu)
11787 (queue_and_load_all_dwo_tus): Update.
11788 * dwarf2/index-write.c (write_gdbindex): Update.
11789 (write_debug_names): Update.
11790
11791 2020-02-08 Tom Tromey <tom@tromey.com>
11792
11793 * dwarf2/read.h (struct dwarf2_queue_item): Move from
11794 dwarf2/read.c. Remove "next" member. Add constructor ntad
11795 destructor.
11796 (struct dwarf2_per_objfile) <queue>: New member.
11797 * dwarf2/read.c (struct dwarf2_queue_item): Move to
11798 dwarf2/read.h.
11799 (dwarf2_queue, dwarf2_queue_tail): Remove.
11800 (class dwarf2_queue_guard): Add parameter to constructor. Use
11801 DISABLE_COPY_AND_ASSIGN.
11802 <m_per_objfile>: New member.
11803 <~dwarf2_queue_guard>: Rewrite.
11804 (dw2_do_instantiate_symtab, queue_comp_unit, process_queue):
11805 Update.
11806 (~dwarf2_queue_item): New.
11807
11808 2020-02-08 Tom Tromey <tom@tromey.com>
11809
11810 * dwarf2/read.c (struct die_info) <has_children>: New member.
11811 (dw2_get_file_names_reader): Remove has_children.
11812 (dw2_get_file_names): Update.
11813 (read_cutu_die_from_dwo): Remove has_children.
11814 (cutu_reader::init_tu_and_read_dwo_dies)
11815 (cutu_reader::cutu_reader): Update.
11816 (process_psymtab_comp_unit_reader, build_type_psymtabs_reader):
11817 Remove has_children.
11818 (build_type_psymtabs_1, process_skeletonless_type_unit)
11819 (load_partial_comp_unit, load_full_comp_unit): Update.
11820 (create_dwo_cu_reader): Remove has_children.
11821 (create_cus_hash_table, read_die_and_children): Update.
11822 (read_full_die_1,read_full_die): Remove has_children.
11823 (read_signatured_type): Update.
11824 (class cutu_reader) <has_children>: Remove.
11825
11826 2020-02-08 Tom Tromey <tom@tromey.com>
11827
11828 * dwarf2/expr.c: Rename from dwarf2expr.c.
11829 * dwarf2/expr.h: Rename from dwarf2expr.h.
11830 * dwarf2/frame-tailcall.c: Rename from dwarf2-frame-tailcall.c.
11831 * dwarf2/frame-tailcall.h: Rename from dwarf2-frame-tailcall.h.
11832 * dwarf2/frame.c: Rename from dwarf2-frame.c.
11833 * dwarf2/frame.h: Rename from dwarf2-frame.h.
11834 * dwarf2/index-cache.c: Rename from dwarf-index-cache.c.
11835 * dwarf2/index-cache.h: Rename from dwarf-index-cache.h.
11836 * dwarf2/index-common.c: Rename from dwarf-index-common.c.
11837 * dwarf2/index-common.h: Rename from dwarf-index-common.h.
11838 * dwarf2/index-write.c: Rename from dwarf-index-write.c.
11839 * dwarf2/index-write.h: Rename from dwarf-index-write.h.
11840 * dwarf2/loc.c: Rename from dwarf2loc.c.
11841 * dwarf2/loc.h: Rename from dwarf2loc.h.
11842 * dwarf2/read.c: Rename from dwarf2read.c.
11843 * dwarf2/read.h: Rename from dwarf2read.h.
11844 * dwarf2/abbrev.c, aarch64-tdep.c, alpha-tdep.c,
11845 amd64-darwin-tdep.c, arc-tdep.c, arm-tdep.c, bfin-tdep.c,
11846 compile/compile-c-symbols.c, compile/compile-cplus-symbols.c,
11847 compile/compile-loc2c.c, cris-tdep.c, csky-tdep.c, findvar.c,
11848 gdbtypes.c, guile/scm-type.c, h8300-tdep.c, hppa-bsd-tdep.c,
11849 hppa-linux-tdep.c, i386-darwin-tdep.c, i386-linux-tdep.c,
11850 i386-tdep.c, iq2000-tdep.c, m32c-tdep.c, m68hc11-tdep.c,
11851 m68k-tdep.c, microblaze-tdep.c, mips-tdep.c, mn10300-tdep.c,
11852 msp430-tdep.c, nds32-tdep.c, nios2-tdep.c, or1k-tdep.c,
11853 riscv-tdep.c, rl78-tdep.c, rs6000-tdep.c, rx-tdep.c, s12z-tdep.c,
11854 s390-tdep.c, score-tdep.c, sh-tdep.c, sparc-linux-tdep.c,
11855 sparc-tdep.c, sparc64-linux-tdep.c, sparc64-tdep.c, tic6x-tdep.c,
11856 tilegx-tdep.c, v850-tdep.c, xstormy16-tdep.c, xtensa-tdep.c:
11857 Update.
11858 * Makefile.in (COMMON_SFILES): Update.
11859 (HFILES_NO_SRCDIR): Update.
11860
11861 2020-02-08 Tom Tromey <tom@tromey.com>
11862
11863 * dwarf2read.c (struct die_reader_specs) <comp_dir>: Remove.
11864 (init_cu_die_reader, read_cutu_die_from_dwo): Update.
11865
11866 2020-02-08 Tom Tromey <tom@tromey.com>
11867
11868 * dwarf2read.h (struct die_info): Don't declare.
11869
11870 2020-02-08 Tom Tromey <tom@tromey.com>
11871
11872 * dwarf2read.h (die_info_ptr): Remove typedef.
11873
11874 2020-02-08 Tom Tromey <tom@tromey.com>
11875
11876 * dwarf2read.c (read_call_site_scope)
11877 (handle_data_member_location, dwarf2_add_member_fn)
11878 (mark_common_block_symbol_computed, read_common_block)
11879 (attr_to_dynamic_prop, partial_die_info::read)
11880 (var_decode_location, dwarf2_fetch_die_loc_sect_off)
11881 (dwarf2_symbol_mark_computed, set_die_type): Update.
11882 * dwarf2/attribute.h (struct attribute) <form_is_block>: Declare
11883 method.
11884 (attr_form_is_block): Don't declare.
11885 * dwarf2/attribute.c (attribute::form_is_block): Now a method.
11886
11887 2020-02-08 Tom Tromey <tom@tromey.com>
11888
11889 * dwarf2read.c (dwarf2_find_base_address, )
11890 (read_call_site_scope, rust_containing_type)
11891 (dwarf2_get_pc_bounds, dwarf2_record_block_ranges)
11892 (handle_data_member_location, dwarf2_add_member_fn)
11893 (get_alignment, read_structure_type, process_structure_scope)
11894 (mark_common_block_symbol_computed, read_common_block)
11895 (read_tag_string_type, attr_to_dynamic_prop, read_subrange_type)
11896 (partial_die_info::read, read_attribute_value, new_symbol)
11897 (lookup_die_type, dwarf2_get_ref_die_offset)
11898 (dwarf2_get_attr_constant_value, follow_die_ref_or_sig)
11899 (dwarf2_fetch_die_loc_sect_off, get_DW_AT_signature_type)
11900 (dwarf2_symbol_mark_computed): Update.
11901 * dwarf2/attribute.h (struct attribute) <value_as_address,
11902 form_is_section_offset, form_is_constant, form_is_ref>: Declare
11903 methods.
11904 (value_as_address, attr_form_is_section_offset)
11905 (attr_form_is_constant, attr_form_is_ref): Don't declare.
11906 * dwarf2/attribute.c (attribute::value_as_address)
11907 (attribute::form_is_section_offset, attribute::form_is_constant)
11908 (attribute::form_is_ref): Now methods.
11909
11910 2020-02-08 Tom Tromey <tom@tromey.com>
11911
11912 * dwarf2read.c (struct attribute, DW_STRING)
11913 (DW_STRING_IS_CANONICAL, DW_UNSND, DW_BLOCK, DW_SND, DW_ADDR)
11914 (DW_SIGNATURE, struct dwarf_block, attr_value_as_address)
11915 (attr_form_is_block, attr_form_is_section_offset)
11916 (attr_form_is_constant, attr_form_is_ref): Move.
11917 * dwarf2/attribute.h: New file.
11918 * dwarf2/attribute.c: New file, from dwarf2read.c.
11919 * Makefile.in (COMMON_SFILES): Add dwarf2/attribute.c.
11920
11921 2020-02-08 Tom Tromey <tom@tromey.com>
11922
11923 * dwarf2read.c (abbrev_table_up, struct abbrev_info)
11924 (struct attr_abbrev, ABBREV_HASH_SIZE, struct abbrev_table):
11925 Move.
11926 (read_cutu_die_from_dwo, build_type_psymtabs_1): Update.
11927 (abbrev_table::alloc_abbrev, abbrev_table::add_abbrev)
11928 (abbrev_table::lookup_abbrev, abbrev_table_read_table): Move to
11929 abbrev.c.
11930 * dwarf2/abbrev.h: New file.
11931 * dwarf2/abbrev.c: New file, from dwarf2read.c.
11932 * Makefile.in (COMMON_SFILES): Add dwarf2/abbrev.c.
11933
11934 2020-02-08 Tom Tromey <tom@tromey.com>
11935
11936 * dwarf2read.c (dwarf2_section_buffer_overflow_complaint)
11937 (dwarf2_section_size, dwarf2_get_section_info)
11938 (create_signatured_type_table_from_debug_names)
11939 (create_addrmap_from_aranges, read_debug_names_from_section)
11940 (get_gdb_index_contents_from_section, read_comp_unit_head)
11941 (error_check_comp_unit_head, read_abbrev_offset)
11942 (create_debug_type_hash_table, init_cu_die_reader)
11943 (read_cutu_die_from_dwo, dwarf2_build_psymtabs_hard)
11944 (read_comp_units_from_section, create_cus_hash_table)
11945 (create_dwp_hash_table, create_dwo_unit_in_dwp_v1)
11946 (create_dwp_v2_section, dwarf2_rnglists_process)
11947 (dwarf2_ranges_process, read_die_and_siblings, read_full_die)
11948 (abbrev_table_read_table, read_indirect_string_at_offset_from)
11949 (read_indirect_string_from_dwz, read_addr_index_1)
11950 (read_str_index, dwarf_decode_line_header, skip_form_bytes)
11951 (dwarf_decode_macro_bytes, dwarf_decode_macros)
11952 (fill_in_loclist_baton): Update.
11953 * dwarf2/section.h (struct dwarf2_section_info) <get_name,
11954 get_containing_section, get_bfd_owner, get_bfd_section,
11955 get_file_name, get_id, get_flags, empty, read>: Declare methods.
11956 (dwarf2_read_section, get_section_name, get_section_file_name)
11957 (get_containing_section, get_section_bfd_owner)
11958 (get_section_bfd_section, get_section_name, get_section_file_name)
11959 (get_section_id, get_section_flags, dwarf2_section_empty_p): Don't
11960 declare.
11961 * dwarf2/section.c (dwarf2_section_info::get_containing_section)
11962 (dwarf2_section_info::get_bfd_owner)
11963 (dwarf2_section_info::get_bfd_section)
11964 (dwarf2_section_info::get_name)
11965 (dwarf2_section_info::get_file_name, dwarf2_section_info::get_id)
11966 (dwarf2_section_info::get_flags, dwarf2_section_info::empty)
11967 (dwarf2_section_info::read): Now methods.
11968 * dwarf-index-write.c (class debug_names): Update.
11969
11970 2020-02-08 Tom Tromey <tom@tromey.com>
11971
11972 * dwarf2read.h (struct dwarf2_section_info, dwarf2_read_section):
11973 Move to dwarf2/section.h.
11974 * dwarf2read.c (get_containing_section, get_section_bfd_owner)
11975 (get_section_bfd_section, get_section_name)
11976 (get_section_file_name, get_section_id, get_section_flags)
11977 (dwarf2_section_empty_p, dwarf2_read_section): Moe to
11978 dwarf2/section.c.
11979 * dwarf2/section.h: New file.
11980 * dwarf2/section.c: New file, from dwarf2read.c.
11981 * Makefile.in (COMMON_SFILES): Add dwarf2/section.c.
11982
11983 2020-02-08 Tom Tromey <tom@tromey.com>
11984
11985 * dwarf2read.h (read_unsigned_leb128): Don't declare.
11986 * dwarf2read.c (read_1_byte, read_1_signed_byte, read_2_bytes)
11987 (read_2_signed_bytes, read_3_bytes, read_4_bytes)
11988 (read_4_signed_bytes, read_8_bytes): Move to dwarf2/leb.h.
11989 (read_unsigned_leb128, read_signed_leb128): Move to dwarf2/leb.c.
11990 * dwarf2/leb.h: New file, from dwarf2read.c.
11991 * dwarf2/leb.c: New file, from dwarf2read.c.
11992 * dwarf2-frame.c (read_1_byte, read_4_bytes, read_8_bytes):
11993 Remove.
11994 * Makefile.in (CONFIG_SRC_SUBDIR): Add dwarf2.
11995 (COMMON_SFILES): Add dwarf2/leb.c.
11996
11997 2020-02-08 Joel Brobecker <brobecker@adacore.com>
11998
11999 GDB 9.1 released.
12000
12001 2020-02-05 Iain Buclaw <ibuclaw@gdcproject.org>
12002
12003 PR gdb/25190:
12004 * gdb/remote-sim.c (gdb_os_write_stderr): Update.
12005 * gdb/remote.c (remote_console_output): Update.
12006 * gdb/ui-file.c (fputs_unfiltered): Rename to...
12007 (ui_file_puts): ...this.
12008 * gdb/ui-file.h (ui_file_puts): Add declaration.
12009 * gdb/utils.c (emit_style_escape): Update.
12010 (flush_wrap_buffer): Update.
12011 (fputs_maybe_filtered): Update.
12012 (fputs_unfiltered): Add function.
12013
12014 2020-02-05 Iain Buclaw <ibuclaw@gdcproject.org>
12015
12016 * gdb/event-loop.c (gdb_wait_for_event): Update.
12017 * gdb/printcmd.c (printf_command): Update.
12018 * gdb/remote-fileio.c (remote_fileio_func_write): Update.
12019 * gdb/remote-sim.c (gdb_os_flush_stdout): Update.
12020 (gdb_os_flush_stderr): Update.
12021 * gdb/remote.c (remote_console_output): Update.
12022 * gdb/ui-file.c (gdb_flush): Rename to...
12023 (ui_file_flush): ...this.
12024 (stderr_file::write): Update.
12025 (stderr_file::puts): Update.
12026 * gdb/ui-file.h (gdb_flush): Rename to...
12027 (ui_file_flush): ...this.
12028 * gdb/utils.c (gdb_flush): Add function.
12029 * gdb/utils.h (gdb_flush): Add declaration.
12030
12031 2020-02-07 Tom Tromey <tromey@adacore.com>
12032
12033 PR breakpoints/24915:
12034 * source.c (find_and_open_source): Do not check basenames_may_differ.
12035
12036 2020-02-07 Tom Tromey <tom@tromey.com>
12037
12038 * README: Update gdbserver documentation.
12039 * gdbserver: Move to top level.
12040 * configure.tgt (build_gdbserver): Remove.
12041 * configure.ac: Remove --enable-gdbserver.
12042 * configure: Rebuild.
12043 * Makefile.in (distclean): Don't mention gdbserver.
12044
12045 2020-02-06 Shahab Vahedi <shahab@synopsys.com>
12046
12047 * source-cache.c (source_cache::ensure): Surround
12048 get_plain_source_lines with a try/catch.
12049 (source_cache::get_line_charpos): Get rid of try/catch
12050 and only check for the return value of "ensure".
12051 * tui/tui-source.c (tui_source_window::set_contents):
12052 Simplify "nlines" calculation.
12053
12054 2020-02-06 Shahab Vahedi <shahab@synopsys.com>
12055
12056 * MAINTAINERS (Write After Approval): Add myself.
12057
12058 2020-02-05 Christian Biesinger <cbiesinger@google.com>
12059
12060 * sparc-nat.h (struct sparc_target) <xfer_partial>: Fix base class
12061 function call.
12062
12063 2020-02-05 Christian Biesinger <cbiesinger@google.com>
12064
12065 * ppc-nbsd-tdep.h: Fix macro name in #endif comment.
12066
12067 2020-02-05 Maciej W. Rozycki <macro@wdc.com>
12068
12069 * nat/riscv-linux-tdesc.h: New file.
12070 * nat/riscv-linux-tdesc.c: New file, taking code from...
12071 * riscv-linux-nat.c (riscv_linux_nat_target::read_description):
12072 ... here.
12073 * configure.nat <linux> <riscv*>: Add nat/riscv-linux-tdesc.o to
12074 NATDEPFILES.
12075
12076 2020-02-04 Andrew Burgess <andrew.burgess@embecosm.com>
12077
12078 * remote-sim.c (sim_inferior_data::sim_inferior_data): Assert that
12079 we don't set the fake simulator ptid to the null_ptid.
12080
12081 2020-02-03 Simon Marchi <simon.marchi@efficios.com>
12082
12083 * fork-child.c (gdb_startup_inferior): Use bool instead of int.
12084 * gdbthread.h (class thread_info) <resumed>: Likewise.
12085 * infrun.c (resume_1): Likewise.
12086 (proceed): Likewise.
12087 (infrun_thread_stop_requested): Likewise.
12088 (stop_all_threads): Likewise.
12089 (handle_inferior_event): Likewise.
12090 (restart_threads): Likewise.
12091 (finish_step_over): Likewise.
12092 (keep_going_stepped_thread): Likewise.
12093 * linux-nat.c (attach_proc_task_lwp_callback): Likewise.
12094 (linux_handle_extended_wait): Likewise.
12095 * record-btrace.c (get_thread_current_frame_id): Likewise.
12096 * record-full.c (record_full_wait_1): Likewise.
12097 * remote.c (remote_target::process_initial_stop_replies): Likewise.
12098 * target.c (target_resume): Likewise.
12099 * thread.c (set_running_thread): Likewise.
12100
12101 2020-02-03 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
12102
12103 * f-valprint.c (f77_print_array_1): Changed datatype of index
12104 variable to LONGEST from int to enable it to contain bound
12105 values correctly.
12106
12107 2020-02-03 Maciej W. Rozycki <macro@wdc.com>
12108
12109 * riscv-linux-nat.c [!NFPREG] (NFPREG): New macro.
12110 (supply_fpregset_regnum, fill_fpregset): Handle regset buffer
12111 offsets according to FLEN determined.
12112 (riscv_linux_nat_target::read_description): Determine FLEN
12113 dynamically.
12114 (riscv_linux_nat_target::fetch_registers): Size regset buffer
12115 according to FLEN determined.
12116 (riscv_linux_nat_target::store_registers): Likewise.
12117
12118 2020-02-01 Shahab Vahedi <shahab@synopsys.com>
12119
12120 * target-descriptions.c (tdesc_register_in_reggroup_p): Return 0
12121 when reg->group is empty and reggroup is not.
12122
12123 2020-01-31 Tom Tromey <tromey@adacore.com>
12124
12125 * ravenscar-thread.c (ravenscar_thread_target::mourn_inferior):
12126 Call beneath target's mourn_inferior after unpushing.
12127
12128 2020-01-31 Andrew Burgess <andrew.burgess@embecosm.com>
12129
12130 PR tui/9765
12131 * tui/tui-disasm.c (tui_find_disassembly_address): If we don't
12132 have enough lines to fill the screen, still return the lowest
12133 address we found.
12134
12135 2020-01-31 Andrew Burgess <andrew.burgess@embecosm.com>
12136
12137 * tui/tui-win.c (_initialize_tui_win): Update help text for '+',
12138 '-', '<', and '>' commands.
12139
12140 2020-01-29 Pedro Alves <palves@redhat.com>
12141 Sergio Durigan Junior <sergiodj@redhat.com>
12142
12143 * infcmd.c (construct_inferior_arguments): Assert that
12144 'argc' is greater than 0.
12145
12146 2020-01-29 Luis Machado <luis.machado@linaro.org>
12147
12148 * aarch64-tdep.c (BRK_INSN_MASK): Define to 0xffe0001f.
12149 (BRK_INSN_MASK): Define to 0xd4200000.
12150 (aarch64_program_breakpoint_here_p): New function.
12151 (aarch64_gdbarch_init): Set gdbarch_program_breakpoint_here_p hook.
12152 * arch-utils.c (default_program_breakpoint_here_p): Moved from
12153 breakpoint.c.
12154 * arch-utils.h (default_program_breakpoint_here_p): Moved from
12155 breakpoint.h
12156 * breakpoint.c (bp_loc_is_permanent): Changed return type to bool and
12157 call gdbarch_program_breakpoint_here_p.
12158 (program_breakpoint_here): Moved to arch-utils.c, renamed to
12159 default_program_breakpoint_here_p, changed return type to bool and
12160 simplified.
12161 * breakpoint.h (program_breakpoint_here): Moved prototype to
12162 arch-utils.h, renamed to default_program_breakpoint_here_p and changed
12163 return type to bool.
12164 * gdbarch.c: Regenerate.
12165 * gdbarch.h: Regenerate.
12166 * gdbarch.sh (program_breakpoint_here_p): New method.
12167 * infrun.c (handle_signal_stop): Call
12168 gdbarch_program_breakpoint_here_p.
12169
12170 2020-01-26 Tom Tromey <tom@tromey.com>
12171
12172 * ctfread.c (struct ctf_fp_info): Reindent.
12173 (_initialize_ctfread): Remove.
12174
12175 2020-01-26 Tom Tromey <tom@tromey.com>
12176
12177 * psymtab.c (partial_map_expand_apply)
12178 (psym_find_pc_sect_compunit_symtab, psym_lookup_symbol)
12179 (psymtab_to_symtab, psym_find_last_source_symtab, dump_psymtab)
12180 (psym_print_stats, psym_expand_symtabs_for_function)
12181 (psym_map_symbol_filenames, psym_map_matching_symbols)
12182 (psym_expand_symtabs_matching)
12183 (partial_symtab::read_dependencies, maintenance_info_psymtabs)
12184 (maintenance_check_psymtabs): Use new methods.
12185 * psympriv.h (struct partial_symtab) <readin_p,
12186 get_compunit_symtab>: New methods.
12187 <readin, compunit_symtab>: Remove members.
12188 (struct standard_psymtab): New.
12189 (struct legacy_psymtab): Derive from standard_psymtab.
12190 * dwarf2read.h (struct dwarf2_psymtab): Derive from
12191 standard_psymtab.
12192 * ctfread.c (struct ctf_psymtab): Derive from standard_psymtab.
12193
12194 2020-01-26 Tom Tromey <tom@tromey.com>
12195
12196 * xcoffread.c (xcoff_psymtab_to_symtab_1): Call
12197 read_dependencies. Add assert.
12198 * psymtab.c (partial_symtab::read_dependencies): New method.
12199 * psympriv.h (struct partial_symtab) <read_dependencies>: New
12200 method.
12201 * mdebugread.c (psymtab_to_symtab_1): Call read_dependencies.
12202 * dwarf2read.c (dwarf2_psymtab::expand_psymtab): Call
12203 read_dependencies.
12204 * dbxread.c (dbx_psymtab_to_symtab_1): Call read_dependencies.
12205 Add assert.
12206
12207 2020-01-26 Tom Tromey <tom@tromey.com>
12208
12209 * xcoffread.c (xcoff_psymtab_to_symtab_1): Change argument order.
12210 Call expand_psymtab.
12211 (xcoff_read_symtab): Call expand_psymtab.
12212 (xcoff_start_psymtab, xcoff_end_psymtab): Set
12213 legacy_expand_psymtab.
12214 * psympriv.h (struct partial_symtab) <expand_psymtab>: New
12215 method.
12216 (struct legacy_psymtab) <expand_psymtab>: Implement.
12217 <legacy_expand_psymtab>: New member.
12218 * mdebugread.c (mdebug_read_symtab): Call expand_psymtab.
12219 (parse_partial_symbols): Set legacy_expand_psymtab.
12220 (psymtab_to_symtab_1): Change argument order. Call
12221 expand_psymtab.
12222 (new_psymtab): Set legacy_expand_psymtab.
12223 * dwarf2read.h (struct dwarf2_psymtab) <expand_psymtab>: Declare.
12224 * dwarf2read.c (dwarf2_psymtab::read_symtab): Call
12225 expand_psymtab.
12226 (dwarf2_psymtab::expand_psymtab): Rename from
12227 psymtab_to_symtab_1. Call expand_psymtab.
12228 * dbxread.c (start_psymtab): Set legacy_expand_psymtab.
12229 (dbx_end_psymtab): Likewise.
12230 (dbx_psymtab_to_symtab_1): Change argument order. Call
12231 expand_psymtab.
12232 (dbx_read_symtab): Call expand_psymtab.
12233 * ctfread.c (struct ctf_psymtab) <expand_psymtab>: Declare.
12234 (ctf_psymtab::expand_psymtab): Rename from psymtab_to_symtab.
12235 (ctf_psymtab::read_symtab): Call expand_psymtab.
12236
12237 2020-01-26 Tom Tromey <tom@tromey.com>
12238
12239 * xcoffread.c (xcoff_read_symtab): Remove prints. Add assert.
12240 * psymtab.c (psymtab_to_symtab): Print verbose "Reading"
12241 messages.
12242 * mdebugread.c (mdebug_read_symtab): Remove prints.
12243 * dwarf2read.c (dwarf2_psymtab::read_symtab): Remove prints. Add
12244 assert.
12245 * dbxread.c (dbx_read_symtab): Remove prints. Add assert.
12246
12247 2020-01-26 Tom Tromey <tom@tromey.com>
12248
12249 * xcoffread.c (this_symtab_psymtab, read_xcoff_symtab)
12250 (xcoff_psymtab_to_symtab_1, xcoff_read_symtab)
12251 (xcoff_start_psymtab, xcoff_end_psymtab, scan_xcoff_symtab): Use
12252 legacy_symtab.
12253 * stabsread.h (dbx_end_psymtab): Use legacy_symtab.
12254 * psymtab.c (psymtab_to_symtab): Call method.
12255 (dump_psymtab): Update.
12256 * psympriv.h (struct partial_symtab): Add virtual destructor.
12257 <read_symtab>: New method.
12258 (struct legacy_symtab): New.
12259 * mdebugread.c (mdebug_read_symtab): Use legacy_psymtab.
12260 (struct pst_map) <pst>: Now a legacy_psymtab.
12261 (parse_procedure, parse_partial_symbols, psymtab_to_symtab_1)
12262 (new_psymtab): Use legacy_psymtab.
12263 * dwarf2read.h (struct dwarf2_psymtab): New.
12264 (struct dwarf2_per_cu_data) <psymtab>: Use it.
12265 * dwarf2read.c (dwarf2_create_include_psymtab)
12266 (dwarf2_build_include_psymtabs, create_type_unit_group)
12267 (create_partial_symtab, process_psymtab_comp_unit_reader)
12268 (build_type_psymtabs_reader, build_type_psymtab_dependencies)
12269 (set_partial_user): Use dwarf2_psymtab.
12270 (dwarf2_psymtab::read_symtab): Rename from dwarf2_read_symtab.
12271 (psymtab_to_symtab_1, process_full_comp_unit)
12272 (process_full_type_unit, dwarf2_ranges_read)
12273 (dwarf2_get_pc_bounds, psymtab_include_file_name)
12274 (dwarf_decode_lines): Use dwarf2_psymtab.
12275 * dwarf-index-write.c (psym_index_map): Use dwarf2_psymtab.
12276 (add_address_entry_worker, write_one_signatured_type)
12277 (recursively_count_psymbols, recursively_write_psymbols)
12278 (write_one_signatured_type, psyms_seen_size, write_gdbindex)
12279 (write_debug_names): Likewise.
12280 * dbxread.c (struct header_file_location): Take a legacy_psymtab.
12281 <pst>: Now a legacy_psymtab.
12282 (find_corresponding_bincl_psymtab): Return a legacy_psymtab.
12283 (read_dbx_symtab, start_psymtab, dbx_end_psymtab)
12284 (dbx_psymtab_to_symtab_1, read_ofile_symtab): Use legacy_psymtab.
12285 * ctfread.c (struct ctf_psymtab): New.
12286 (ctf_start_symtab, ctf_end_symtab, psymtab_to_symtab): Take a
12287 ctf_psymtab.
12288 (ctf_psymtab::read_symtab): Rename from ctf_read_symtab.
12289 (create_partial_symtab): Return a ctf_psymtab.
12290 (scan_partial_symbols): Update.
12291
12292 2020-01-26 Tom Tromey <tom@tromey.com>
12293
12294 * xcoffread.c (xcoff_start_psymtab): Use new.
12295 * psymtab.c (partial_symtab::partial_symtab): New constructor,
12296 renamed from start_psymtab_common.
12297 * psympriv.h (struct partial_symtab): Add new constructor.
12298 (start_psymtab_common): Don't declare.
12299 * mdebugread.c (parse_partial_symbols): Use new.
12300 * dwarf2read.c (create_partial_symtab): Use new.
12301 * dbxread.c (start_psymtab): Use new.
12302 * ctfread.c (create_partial_symtab): Use new.
12303
12304 2020-01-26 Tom Tromey <tom@tromey.com>
12305
12306 * xcoffread.c (xcoff_end_psymtab): Use new.
12307 * psymtab.c (start_psymtab_common): Use new.
12308 (partial_symtab::partial_symtab): Rename from allocate_psymtab.
12309 Update.
12310 * psympriv.h (struct partial_symtab): Add parameters to
12311 constructor. Don't inline.
12312 (allocate_psymtab): Don't declare.
12313 * mdebugread.c (new_psymtab): Use new.
12314 * dwarf2read.c (dwarf2_create_include_psymtab): Use new.
12315 * dbxread.c (dbx_end_psymtab): Use new.
12316
12317 2020-01-26 Tom Tromey <tom@tromey.com>
12318
12319 * psymtab.h (class psymtab_storage) <install_psymtab>: Rename from
12320 allocate_psymtab. Update documentation.
12321 * psymtab.c (psymtab_storage::install_psymtab): Rename from
12322 allocate_psymtab. Do not use new.
12323 (allocate_psymtab): Use new. Update.
12324
12325 2020-01-26 Tom Tromey <tom@tromey.com>
12326
12327 * xcoffread.c (xcoff_psymtab_to_symtab_1): Update.
12328 * psymtab.c (psym_print_stats): Update.
12329 * psympriv.h (struct partial_symtab) <readin,
12330 psymtabs_addrmap_supported, anonymous>: Now bool.
12331 * mdebugread.c (psymtab_to_symtab_1): Update.
12332 * dwarf2read.c (create_type_unit_group, create_partial_symtab)
12333 (build_type_psymtabs_reader, psymtab_to_symtab_1)
12334 (process_full_comp_unit, process_full_type_unit): Update.
12335 * dbxread.c (dbx_psymtab_to_symtab_1): Update.
12336 * ctfread.c (psymtab_to_symtab): Update.
12337
12338 2020-01-26 Tom Tromey <tom@tromey.com>
12339
12340 * mdebugread.c (parse_partial_symbols): Use discard_psymtab.
12341 * psymtab.h (class psymtab_storage) <free_psymtabs>: Remove.
12342 * psymtab.c (psymtab_storage): Delete psymtabs.
12343 (psymtab_storage::allocate_psymtab): Use new.
12344 (psymtab_storage::discard_psymtab): Use delete.
12345 * psympriv.h (struct partial_symtab): Add constructor and
12346 initializers.
12347
12348 2020-01-26 Tom Tromey <tom@tromey.com>
12349
12350 * machoread.c: Do not include psympriv.h.
12351
12352 2020-01-25 Philippe Waroquiers <philippe.waroquiers@skynet.be>
12353
12354 * NEWS: Mention the new option and the set/show commands.
12355
12356 2020-01-25 Philippe Waroquiers <philippe.waroquiers@skynet.be>
12357
12358 * exec.c (exec_file_mismatch_names, exec_file_mismatch_mode)
12359 (show_exec_file_mismatch_command, set_exec_file_mismatch_command)
12360 (validate_exec_file): New variables, enums, functions.
12361 (exec_file_locate_attach, print_section_info): Style the filenames.
12362 (_initialize_exec): Install show_exec_file_mismatch_command and
12363 set_exec_file_mismatch_command.
12364 * gdbcore.h (validate_exec_file): Declare.
12365 * infcmd.c (attach_command): Call validate_exec_file.
12366 * remote.c ( remote_target::remote_add_inferior): Likewise.
12367
12368 2020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
12369
12370 * frame.c (find_frame_sal): Move call to get_next_frame into more
12371 inner scope.
12372 * inline-frame.c (inilne_state) <inline_state>: Update argument
12373 types.
12374 (inilne_state) <skipped_symbol>: Rename to...
12375 (inilne_state) <skipped_symbols>: ...this, and change to a vector.
12376 (skip_inline_frames): Build vector of skipped symbols and use this
12377 to reate the inline_state.
12378 (inline_skipped_symbol): Add a comment and some assertions, fetch
12379 skipped symbol from the list.
12380
12381 2020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
12382
12383 * buildsym.c (lte_is_less_than): Delete.
12384 (buildsym_compunit::end_symtab_with_blockvector): Create local
12385 lambda function to sort line table entries, and use
12386 std::stable_sort instead of std::sort.
12387 * symtab.c (find_pc_sect_line): Skip backward over end of sequence
12388 markers when looking for a previous line.
12389
12390 2020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
12391
12392 * dwarf2read.c (lnp_state_machine::record_line): Include
12393 end_sequence parameter in debug print out. Record the line if we
12394 are at an end_sequence marker even if it's not the start of a
12395 statement.
12396 * symmisc.c (maintenance_print_one_line_table): Print end of
12397 sequence markers with 'END' not '0'.
12398
12399 2020-01-24 Pedro Alves <palves@redhat.com>
12400
12401 PR gdb/25410
12402 * thread.c (scoped_restore_current_thread::restore): Use
12403 switch_to_inferior_no_thread.
12404 * exec.c: Include "progspace-and-thread.h".
12405 (add_target_sections, remove_target_sections):
12406 scoped_restore_current_pspace_and_thread instead of
12407 scoped_restore_current_thread.
12408 * infrun.c (handle_vfork_child_exec_or_exit): Assign the pspace
12409 and aspace to the inferior before calling clone_program_space.
12410 Remove stale comment.
12411
12412 2020-01-24 Christian Biesinger <cbiesinger@google.com>
12413
12414 * arm-nbsd-nat.c (arm_nbsd_nat_target::fetch_registers): Rename to...
12415 (arm_netbsd_nat_target::fetch_registers): ...this.
12416 (arm_nbsd_nat_target::store_registers): Rename to...
12417 (arm_netbsd_nat_target::store_registers): ...this.
12418
12419 2020-01-24 Christian Biesinger <cbiesinger@google.com>
12420
12421 * arm-nbsd-nat.c: Define _KERNTYPES to get the declaration of
12422 register_t.
12423
12424 2020-01-24 Christian Biesinger <cbiesinger@google.com>
12425
12426 * aarch64-fbsd-tdep.c (aarch64_fbsd_iterate_over_regset_sections):
12427 Update comment.
12428 * aarch64-linux-tdep.c (aarch64_linux_iterate_over_regset_sections):
12429 Likewise.
12430 * arm-fbsd-tdep.c (arm_fbsd_iterate_over_regset_sections): Likewise.
12431 * gdbcore.h (deprecated_add_core_fns): Update comment to point to
12432 the correct replacement (iterate_over_regset_sections).
12433 * riscv-fbsd-tdep.c (riscv_fbsd_iterate_over_regset_sections):
12434 Update comment.
12435
12436 2020-01-24 Graham Markall <graham.markall@embecosm.com>
12437
12438 PR gdb/23718
12439 * gdb/python/python.c (execute_gdb_command): Call
12440 async_enable_stdin in catch block.
12441
12442 2020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
12443
12444 * event-loop.c (start_event_loop): Wrap async_enable_stdin with
12445 SWITCH_THRU_ALL_UIS.
12446
12447 2020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
12448
12449 PR tui/9765
12450 * minsyms.c (lookup_minimal_symbol_by_pc_section): Update header
12451 comment, add extra parameter, and update to store previous symbol
12452 when appropriate.
12453 * minsyms.h (lookup_minimal_symbol_by_pc_section): Update comment,
12454 add extra parameter.
12455 * tui/tui-disasm.c (tui_disassemble): Update header comment,
12456 remove unneeded parameter, add try/catch around gdb_print_insn,
12457 rewrite to add items to asm_lines vector.
12458 (tui_find_backward_disassembly_start_address): New function.
12459 (tui_find_disassembly_address): Updated throughout.
12460 (tui_disasm_window::set_contents): Update for changes to
12461 tui_disassemble.
12462 (tui_disasm_window::do_scroll_vertical): No need to adjust the
12463 number of lines to scroll.
12464
12465 2020-01-23 Simon Marchi <simon.marchi@polymtl.ca>
12466
12467 * objfiles.h (ALL_OBJFILE_OSECTIONS): Move up.
12468 (SECT_OFF_DATA): Likewise.
12469 (SECT_OFF_RODATA): Likewise.
12470 (SECT_OFF_TEXT): Likewise.
12471 (SECT_OFF_BSS): Likewise.
12472 (struct objfile) <text_section_offset, data_section_offset>: New
12473 methods.
12474 * amd64-windows-tdep.c (amd64_windows_find_unwind_info): Use
12475 objfile::text_section_offset.
12476 * coff-pe-read.c (add_pe_forwarded_sym): Likewise.
12477 * coffread.c (coff_symtab_read): Likewise.
12478 (enter_linenos): Likewise.
12479 (process_coff_symbol): Likewise.
12480 * ctfread.c (get_objfile_text_range): Likewise.
12481 * dtrace-probe.c (dtrace_probe::get_relocated_address):
12482 Use objfile::data_section_offset.
12483 * dwarf2-frame.c (execute_cfa_program): Use
12484 objfile::text_section_offset.
12485 (dwarf2_frame_find_fde): Likewise.
12486 * dwarf2read.c (create_addrmap_from_index): Likewise.
12487 (create_addrmap_from_aranges): Likewise.
12488 (dw2_find_pc_sect_compunit_symtab): Likewise.
12489 (process_psymtab_comp_unit_reader): Likewise.
12490 (add_partial_symbol): Likewise.
12491 (add_partial_subprogram): Likewise.
12492 (process_full_comp_unit): Likewise.
12493 (read_file_scope): Likewise.
12494 (read_func_scope): Likewise.
12495 (read_lexical_block_scope): Likewise.
12496 (read_call_site_scope): Likewise.
12497 (dwarf2_rnglists_process): Likewise.
12498 (dwarf2_ranges_process): Likewise.
12499 (dwarf2_ranges_read): Likewise.
12500 (dwarf_decode_lines_1): Likewise.
12501 (new_symbol): Likewise.
12502 (dwarf2_fetch_die_loc_sect_off): Likewise.
12503 (dwarf2_per_cu_text_offset): Likewise.
12504 * hppa-bsd-tdep.c (hppabsd_find_global_pointer): Likewise.
12505 * hppa-tdep.c (read_unwind_info): Likewise.
12506 * ia64-tdep.c (ia64_find_unwind_table): Likewise.
12507 * psympriv.h (struct partial_symtab): Likewise.
12508 * psymtab.c (find_pc_sect_psymtab): Likewise.
12509 * solib-svr4.c (enable_break): Likewise.
12510 * stap-probe.c (relocate_address): Use
12511 objfile::data_section_offset.
12512 * xcoffread.c (enter_line_range): Use
12513 objfile::text_section_offset.
12514 (read_xcoff_symtab): Likewise.
12515
12516 2020-01-23 Simon Marchi <simon.marchi@efficios.com>
12517
12518 * darwin-nat.c (darwin_nat_target::wait_1): Move `inf`
12519 declaration to narrower scopes.
12520
12521 2020-01-23 Simon Marchi <simon.marchi@efficios.com>
12522
12523 * darwin-nat.h (struct darwin_exception_msg, enum
12524 darwin_msg_state, struct darwin_thread_info, darwin_thread_t):
12525 Move up.
12526 (class darwin_nat_target) <wait_1, check_new_threads,
12527 decode_exception_message, decode_message, stop_inferior,
12528 init_thread_list, ptrace_him, cancel_breakpoint>: Declare.
12529 * darwin-nat.c (darwin_check_new_threads): Rename to...
12530 (darwin_nat_target::check_new_threads): ... this.
12531 (darwin_suspend_inferior_it): Remove.
12532 (darwin_decode_exception_message): Rename to...
12533 (darwin_nat_target::decode_exception_message): ... this.
12534 (darwin_nat_target::resume): Pass target to find_inferior_ptid.
12535 (darwin_decode_message): Rename to...
12536 (darwin_nat_target::decode_message): ... this.
12537 (cancel_breakpoint): Rename to...
12538 (darwin_nat_target::cancel_breakpoint): ... this.
12539 (darwin_wait): Rename to...
12540 (darwin_nat_target::wait_1): ... this. Use range-based for loop
12541 instead of iterate_over_inferiors.
12542 (darwin_nat_target::wait): Call wait_1 instead of darwin_wait.
12543 (darwin_stop_inferior): Rename to...
12544 (darwin_nat_target::stop_inferior): ... this.
12545 (darwin_nat_target::kill): Call wait_1 instead of darwin_wait.
12546 (darwin_init_thread_list): Rename to...
12547 (darwin_nat_target::init_thread_list): ... this.
12548 (darwin_ptrace_him): Rename to...
12549 (darwin_nat_target::ptrace_him): ... this.
12550 (darwin_nat_target::create_inferior): Pass lambda function to
12551 fork_inferior.
12552 (darwin_nat_target::detach): Call stop_inferior instead of
12553 darwin_stop_inferior.
12554 * fork-inferior.h (fork_inferior): Change init_trace_fun
12555 parameter to gdb::function_view.
12556 * fork-inferior.c (fork_inferior): Likewise.
12557
12558 2020-01-23 Hannes Domani <ssbssa@yahoo.de>
12559
12560 * i386-cygwin-tdep.c (core_process_module_section): Update.
12561 * windows-nat.c (struct lm_info_windows): Add text_offset.
12562 (windows_xfer_shared_libraries): Update.
12563 * windows-tdep.c (windows_xfer_shared_library):
12564 Add text_offset_cached argument.
12565 * windows-tdep.h (windows_xfer_shared_library): Update.
12566
12567 2020-01-21 Simon Marchi <simon.marchi@efficios.com>
12568
12569 * gdbarch.sh: Add declaration for _initialize_gdbarch.
12570
12571 2020-01-21 Simon Marchi <simon.marchi@efficios.com>
12572
12573 * remote-sim.c (check_for_duplicate_sim_descriptor): Remove.
12574 (get_sim_inferior_data): Remove use of iterate_over_inferiors,
12575 replace with range-based for.
12576 (gdbsim_interrupt_inferior): Remove.
12577 (gdbsim_target::interrupt): Replace iterate_over_inferiors use
12578 with a range-based for. Inline code from
12579 gdbsim_interrupt_inferior.
12580
12581 2020-01-21 Simon Marchi <simon.marchi@efficios.com>
12582
12583 * infrun.c (proceed): Fix indentation.
12584
12585 2020-01-21 Tom Tromey <tromey@adacore.com>
12586
12587 * source-cache.c (source_cache::ensure): Call ext_lang_colorize.
12588 * python/python.c (python_extension_ops): Update.
12589 (gdbpy_colorize): New function.
12590 * python/lib/gdb/__init__.py (colorize): New function.
12591 * extension.h (ext_lang_colorize): Declare.
12592 * extension.c (ext_lang_colorize): New function.
12593 * extension-priv.h (struct extension_language_ops) <colorize>: New
12594 member.
12595 * cli/cli-style.c (_initialize_cli_style): Update help text.
12596
12597 2020-01-21 Luis Machado <luis.machado@linaro.org>
12598
12599 * aarch64-tdep.c (struct aarch64_displaced_step_closure)
12600 <cond>: Change type to bool.
12601 (aarch64_displaced_step_b_cond): Update cond to use bool type.
12602 (aarch64_displaced_step_cb): Likewise.
12603 (aarch64_displaced_step_tb): Likewise.
12604
12605 2020-01-21 Luis Machado <luis.machado@linaro.org>
12606
12607 * aarch64-tdep.c (aarch64_displaced_step_fixup): Add more debugging
12608 output.
12609
12610 2020-01-21 Luis Machado <luis.machado@linaro.org>
12611
12612 * aarch64-tdep.c (struct aarch64_displaced_step_closure )
12613 <pc_adjust>: Adjust the documentation.
12614 (aarch64_displaced_step_fixup): Check if PC really moved before
12615 adjusting it.
12616
12617 2020-01-19 Tom Tromey <tom@tromey.com>
12618
12619 * disasm.c (~gdb_disassembler): New destructor.
12620 (gdb_buffered_insn_length): Call disassemble_free_target.
12621 * disasm.h (class gdb_disassembler): Declare destructor. Use
12622 DISABLE_COPY_AND_ASSIGN.
12623
12624 2020-01-19 Tom Tromey <tom@tromey.com>
12625
12626 * dwarf2read.c (abbrev_table_up): Move typedef earlier.
12627 (die_reader_func_ftype): Remove.
12628 (cutu_reader): New class.
12629 (dw2_get_file_names_reader): Remove "data" parameter.
12630 (dw2_get_file_names): Use cutu_reader.
12631 (create_debug_type_hash_table): Update.
12632 (read_cutu_die_from_dwo): Update comment.
12633 (lookup_dwo_unit): Add dwo_name parameter.
12634 (cutu_reader::init_tu_and_read_dwo_dies): Now a method. Remove
12635 die_reader_func_ftype and data parameters.
12636 (cutu_reader::cutu_reader): Rename from init_cutu_and_read_dies.
12637 Remove die_reader_func_ftype and data parameters.
12638 (~cutu_reader): New; from init_cutu_and_read_dies.
12639 (cutu_reader::cutu_reader): Rename from
12640 init_cutu_and_read_dies_no_follow. Remove die_reader_func_ftype
12641 and data parameters.
12642 (init_cutu_and_read_dies_simple): Remove.
12643 (struct process_psymtab_comp_unit_data): Remove.
12644 (process_psymtab_comp_unit_reader): Remove data parameter; add
12645 want_partial_unit and pretend_language parameters.
12646 (process_psymtab_comp_unit): Use cutu_reader.
12647 (build_type_psymtabs_reader): Remove data parameter.
12648 (build_type_psymtabs_1): Use cutu_reader.
12649 (process_skeletonless_type_unit): Likewise.
12650 (load_partial_comp_unit_reader): Remove.
12651 (load_partial_comp_unit): Use cutu_reader.
12652 (load_full_comp_unit_reader): Remove.
12653 (load_full_comp_unit): Use cutu_reader.
12654 (struct create_dwo_cu_data): Remove.
12655 (create_dwo_cu_reader): Remove datap parameter; add dwo_file and
12656 dwo_unit parameters.
12657 (create_cus_hash_table): Use cutu_reader.
12658 (struct dwarf2_read_addr_index_data): Remove.
12659 (dwarf2_read_addr_index_reader): Remove.
12660 (dwarf2_read_addr_index): Use cutu_reader.
12661 (read_signatured_type_reader): Remove.
12662 (read_signatured_type): Use cutu_reader.
12663
12664 2020-01-19 Tom Tromey <tom@tromey.com>
12665
12666 * tui/tui.c (tui_show_assembly): Use tui_suppress_output.
12667 * tui/tui-wingeneral.h (class tui_suppress_output): New.
12668 (tui_wrefresh): Declare.
12669 * tui/tui-wingeneral.c (suppress_output): New global.
12670 (tui_suppress_output, ~tui_suppress_output): New constructor and
12671 destructor.
12672 (tui_wrefresh): New function.
12673 (tui_gen_win_info::refresh_window): Use tui_wrefresh.
12674 (tui_gen_win_info::make_window): Call wnoutrefresh when needed.
12675 * tui/tui-regs.h (struct tui_data_window) <no_refresh>: Declare
12676 method.
12677 * tui/tui-regs.c (tui_data_window::erase_data_content): Call
12678 tui_wrefresh.
12679 (tui_data_window::no_refresh): New method.
12680 (tui_data_item_window::refresh_window): Call tui_wrefresh.
12681 (tui_reg_command): Use tui_suppress_output
12682 * tui/tui-layout.c (tui_set_layout): Use tui_suppress_output.
12683 * tui/tui-data.h (struct tui_gen_win_info) <no_refresh>: New
12684 method.
12685 * tui/tui-command.c (tui_refresh_cmd_win): Call tui_wrefresh.
12686
12687 2020-01-19 Tom Tromey <tom@tromey.com>
12688
12689 * tui/tui-winsource.c (tui_update_source_windows_with_line):
12690 Handle case where symtab is null.
12691
12692 2020-01-19 Simon Marchi <simon.marchi@polymtl.ca>
12693
12694 * linux-fork.c (one_fork_p): Simplify.
12695
12696 2020-01-17 Simon Marchi <simon.marchi@efficios.com>
12697
12698 * top.c (struct qt_args): Remove.
12699 (kill_or_detach): Change return type to void, replace `void *`
12700 parameter with a proper one.
12701 (print_inferior_quit_action): Likewise.
12702 (quit_confirm): Use range-based for loop to iterate over inferiors.
12703 (quit_force): Likewise.
12704
12705 2020-01-17 Simon Marchi <simon.marchi@efficios.com>
12706
12707 * mi/mi-main.c (run_one_inferior): Change return type to void, replace
12708 `void *` parameter with proper parameters.
12709 (mi_cmd_exec_run): Use range-based loop to iterate over inferiors.
12710 (print_one_inferior): Change return type to void, replace `void *`
12711 parameter with proper parameters.
12712 (mi_cmd_list_thread_groups): Use range-based loop to iterate over
12713 inferiors.
12714 (get_other_inferior): Remove.
12715 (mi_cmd_remove_inferior): Use range-based loop to iterate over
12716 inferiors.
12717
12718 2020-01-17 Simon Marchi <simon.marchi@efficios.com>
12719
12720 * mi/mi-interp.c (report_initial_inferior): Remove.
12721 (mi_interp::init): Use range-based for to iterate over inferiors.
12722
12723 2020-01-17 Simon Marchi <simon.marchi@efficios.com>
12724
12725 * python/py-inferior.c (build_inferior_list): Remove.
12726 (gdbpy_ref): Use range-based for loop to iterate over inferiors.
12727
12728 2020-01-16 Christian Biesinger <cbiesinger@google.com>
12729
12730 * btrace.c (btrace_compute_ftrace_1): Fix spelling error (Unkown).
12731 (btrace_stitch_trace): Likewise.
12732 * charset.c (intermediate_encoding): Likewise (vaild).
12733 * nat/linux-btrace.c (linux_read_pt): Likewise (Unkown).
12734 * python/py-record-btrace.c (struct PyMethodDef): Likewise (occurences).
12735 * record-btrace.c (record_btrace_print_conf): Likewise (unkown).
12736
12737 2020-01-16 Hannes Domani <ssbssa@yahoo.de>
12738
12739 * windows-tdep.c (windows_get_tlb_type):
12740 Add rtl_user_process_parameters type.
12741
12742 2020-01-16 Pedro Alves <palves@redhat.com>
12743 Norbert Lange <nolange79@gmail.com>
12744
12745 PR build/24805
12746 * gdbsupport/gdb_proc_service.h (PS_EXPORT): New.
12747 (ps_get_thread_area, ps_getpid, ps_lcontinue, ps_lgetfpregs)
12748 (ps_lgetregs, ps_lsetfpregs, ps_lsetregs, ps_lstop, ps_pcontinue)
12749 (ps_pdread, ps_pdwrite, ps_pglobal_lookup, ps_pstop, ps_ptread)
12750 (ps_ptwrite, ps_lgetxregs, ps_lgetxregsize, ps_lsetxregs)
12751 (ps_plog): Redeclare exported functions with default visibility.
12752
12753 2020-01-16 Nitika Achra <Nitika.Achra@amd.com>
12754
12755 * dwarf2loc.c (decode_debug_loclists_addresses): Handle
12756 DW_LLE_base_addressx, DW_LLE_startx_length, DW_LLE_start_length.
12757
12758 2020-01-15 Simon Marchi <simon.marchi@efficios.com>
12759
12760 * infcmd.c (post_create_inferior): Use get_thread_regcache
12761 instead of get_current_regcache.
12762
12763 2020-01-14 Tom Tromey <tom@tromey.com>
12764
12765 PR symtab/12535:
12766 * python/python.c (gdbpy_decode_line): Treat empty string the same
12767 as no argument.
12768
12769 2020-01-14 Tom Tromey <tom@tromey.com>
12770
12771 * Makefile.in (CLIBS): Remove second use of $(LIBIBERTY).
12772
12773 2020-01-14 Tom Tromey <tom@tromey.com>
12774
12775 * nat/linux-btrace.c: Don't include <config.h>.
12776 * nat/linux-ptrace.c: Don't include <config.h>.
12777 * nat/x86-linux-dregs.c: Don't include <config.h>.
12778
12779 2020-01-14 Tom Tromey <tom@tromey.com>
12780
12781 * configure: Rebuild.
12782 * configure.ac: Move many checks to ../gdbsupport/common.m4.
12783
12784 2020-01-14 Tom Tromey <tom@tromey.com>
12785
12786 * nat/x86-linux-dregs.c: Include configh.h.
12787 * nat/linux-ptrace.c: Include configh.h.
12788 * nat/linux-btrace.c: Include configh.h.
12789 * defs.h: Include config.h, bfd.h.
12790 * configure.ac: Don't source common.host.
12791 (CONFIG_OBS, CONFIG_SRCS): Remove gdbsupport files.
12792 * configure: Rebuild.
12793 * acinclude.m4: Update path.
12794 * Makefile.in (SUPPORT, LIBSUPPORT, INCSUPPORT): New variables.
12795 (CONFIG_SRC_SUBDIR): Remove gdbsupport.
12796 (INTERNAL_CFLAGS_BASE): Add INCSUPPORT.
12797 (CLIBS): Add LIBSUPPORT.
12798 (CDEPS): Likewise.
12799 (COMMON_SFILES): Remove gdbsupport files.
12800 (HFILES_NO_SRCDIR): Likewise.
12801 (stamp-version): Update path to create-version.sh.
12802 (ALLDEPFILES): Remove gdbsupport files.
12803
12804 2020-01-14 Tom Tromey <tom@tromey.com>
12805
12806 * gdbsupport/common.m4 (GDB_AC_COMMON): Define WIN32APILIBS and
12807 USE_WIN32API when needed.
12808 * configure.ac (USE_WIN32API): Don't define.
12809 (WIN32LIBS): Use WIN32APILIBS.
12810 * configure: Rebuild.
12811
12812 2020-01-14 Tom Tromey <tom@tromey.com>
12813
12814 * configure: Rebuild.
12815 * gdbsupport/common.m4 (GDB_AC_COMMON): Fix indentation.
12816
12817 2020-01-14 Bernd Edlinger <bernd.edlinger@hotmail.de>
12818
12819 * skip.c (skip_function_command): Make skip w/o arguments use the
12820 name of the inlined function if pc is inside any inlined function.
12821
12822 2020-01-14 Luis Machado <luis.machado@linaro.org>
12823
12824 * inf-ptrace.c (inf_ptrace_target::resume): Update comments.
12825 * infrun.c (resume_1): Likewise.
12826 (handle_inferior_event): Remove stale comment.
12827 * linux-nat.c (linux_nat_target::resume): Update comments.
12828 (save_stop_reason): Likewise.
12829 (linux_nat_filter_event): Likewise.
12830 * linux-nat.h (struct lwp_info) <stop_pc>, <stop_reason>: Likewise.
12831
12832 2020-01-13 Andrew Burgess <andrew.burgess@embecosm.com>
12833
12834 * elfread.c (record_minimal_symbol): Set section index to 0 for
12835 non-allocatable sections.
12836
12837
12838 2020-01-13 Ali Tamur <tamur@google.com>
12839
12840 * dwarf2read.c (dwarf2_debug_sections): Add debug_str_offsets sections.
12841 (dwarf2_cu): Add str_offsets_base field. Change the type of addr_base
12842 to gdb::optional. Update comments.
12843 (dwo_file): Update comments.
12844 (read_attribute): Update API to take an additional out parameter,
12845 need_reprocess. This is used to mark attributes that need other
12846 attributes (e.g. str_offsets_base) for correct computation which may not
12847 have been read yet.
12848 (read_attribute_reprocess): New function declaration.
12849 (read_addr_index): Likewise.
12850 (read_dwo_str_index): Likewise.
12851 (read_stub_str_index): Likewise.
12852 (dwarf2_per_objfile::locate_sections): Handle debug_str_offsets section.
12853 (lookup_addr_base): New function definition.
12854 (lookup_ranges_base): Likewise.
12855 (read_cutu_die_from_dwo): Use the new functions: lookup_addr_base,
12856 lookup_ranges_base.
12857 (init_cutu_and_read_dies): Update comments.
12858 (init_cutu_and_read_dies_no_follow): Change API to take parent compile
12859 unit. This is used to inherit parent's str_offsets_base and addr_base.
12860 Update comments.
12861 (init_cutu_and_read_dies_simple): Reflect API changes.
12862 (skip_one_die): Reflect API changes. Handle DW_FORM_rnglistx.
12863 (create_cus_hash_table): Change API to take parent compile unit.
12864 Reflect API changes.
12865 (open_and_init_dwo_file): Reflect API changes.
12866 (dwarf2_get_pc_bounds): Update comments.
12867 (dwarf2_record_block_ranges): Likewise.
12868 (read_full_die_1): Change implementation to reprocess attributes that
12869 need str_offsets_base and addr_base.
12870 (partial_die_info::read): Likewise.
12871 (read_attribute_reprocess): New function definition.
12872 (read_attribute_value): Change API to take an additional out parameter,
12873 need_reprocess. Handle DW_FORM_rnglistx. No longer trigger an error
12874 when a non-dwo compile unit has index based attributes.
12875 (read_attribute): Reflect API changes.
12876 (read_addr_index_1): Reflect API changes. Update comments.
12877 (dwarf2_read_addr_index_data): Reflect API changes.
12878 (dwarf2_read_addr_index): Likewise.
12879 (read_str_index): Change API and implementation. This becomes a helper
12880 to be used by the new string index related methods. Update error
12881 message and comments.
12882 (read_dwo_str_index): New function definition.
12883 (read_stub_str_index): Likewise.
12884 * dwarf2read.h (dwarf2_per_objfile): Add str_offsets field.
12885 * symfile.h (dwarf2_debug_sections): Likewise.
12886 * xcoffread.c (dwarf2_debug_sections): Likewise.
12887
12888 2020-01-13 Simon Marchi <simon.marchi@efficios.com>
12889
12890 * gdbcore.h (struct core_fns) <core_read_registers>: Change
12891 core_reg_sect type to gdb_byte *.
12892 * arm-nbsd-nat.c (fetch_elfcore_registers): Likewise.
12893 * cris-tdep.c (fetch_core_registers): Likewise.
12894 * corelow.c (core_target::get_core_register_section): Change
12895 type of `contents` to gdb::byte_vector.
12896
12897 2020-01-13 Andrew Burgess <andrew.burgess@embecosm.com>
12898
12899 * tui/tui-wingeneral.c (box_win): Position the title in the center
12900 of the border.
12901
12902 2020-01-13 Simon Marchi <simon.marchi@polymtl.ca>
12903
12904 * corelow.c (core_target::get_core_register_section): Use
12905 std::vector instead of alloca.
12906
12907 2020-01-13 Simon Marchi <simon.marchi@efficios.com>
12908
12909 * warning.m4: Add -Wmissing-declarations to build_warnings.
12910 * configure: Re-generate.
12911
12912 2020-01-13 Simon Marchi <simon.marchi@efficios.com>
12913
12914 * python/python.c (init__gdb_module): Add declaration.
12915
12916 2020-01-13 Simon Marchi <simon.marchi@efficios.com>
12917
12918 * aarch64-fbsd-nat.c (_initialize_aarch64_fbsd_nat): Add declaration.
12919 * aarch64-fbsd-tdep.c (_initialize_aarch64_fbsd_tdep): Add declaration.
12920 * aarch64-linux-nat.c (_initialize_aarch64_linux_nat): Add declaration.
12921 * aarch64-linux-tdep.c (_initialize_aarch64_linux_tdep): Add declaration.
12922 * aarch64-newlib-tdep.c (_initialize_aarch64_newlib_tdep): Add declaration.
12923 * aarch64-tdep.c (_initialize_aarch64_tdep): Add declaration.
12924 * ada-exp.y (_initialize_ada_exp): Add declaration.
12925 * ada-lang.c (_initialize_ada_language): Add declaration.
12926 * ada-tasks.c (_initialize_tasks): Add declaration.
12927 * agent.c (_initialize_agent): Add declaration.
12928 * aix-thread.c (_initialize_aix_thread): Add declaration.
12929 * alpha-bsd-nat.c (_initialize_alphabsd_nat): Add declaration.
12930 * alpha-linux-nat.c (_initialize_alpha_linux_nat): Add declaration.
12931 * alpha-linux-tdep.c (_initialize_alpha_linux_tdep): Add declaration.
12932 * alpha-nbsd-tdep.c (_initialize_alphanbsd_tdep): Add declaration.
12933 * alpha-obsd-tdep.c (_initialize_alphaobsd_tdep): Add declaration.
12934 * alpha-tdep.c (_initialize_alpha_tdep): Add declaration.
12935 * amd64-darwin-tdep.c (_initialize_amd64_darwin_tdep): Add declaration.
12936 * amd64-dicos-tdep.c (_initialize_amd64_dicos_tdep): Add declaration.
12937 * amd64-fbsd-nat.c (_initialize_amd64fbsd_nat): Add declaration.
12938 * amd64-fbsd-tdep.c (_initialize_amd64fbsd_tdep): Add declaration.
12939 * amd64-linux-nat.c (_initialize_amd64_linux_nat): Add declaration.
12940 * amd64-linux-tdep.c (_initialize_amd64_linux_tdep): Add declaration.
12941 * amd64-nbsd-nat.c (_initialize_amd64nbsd_nat): Add declaration.
12942 * amd64-nbsd-tdep.c (_initialize_amd64nbsd_tdep): Add declaration.
12943 * amd64-obsd-nat.c (_initialize_amd64obsd_nat): Add declaration.
12944 * amd64-obsd-tdep.c (_initialize_amd64obsd_tdep): Add declaration.
12945 * amd64-sol2-tdep.c (_initialize_amd64_sol2_tdep): Add declaration.
12946 * amd64-tdep.c (_initialize_amd64_tdep): Add declaration.
12947 * amd64-windows-nat.c (_initialize_amd64_windows_nat): Add declaration.
12948 * amd64-windows-tdep.c (_initialize_amd64_windows_tdep): Add declaration.
12949 * annotate.c (_initialize_annotate): Add declaration.
12950 * arc-newlib-tdep.c (_initialize_arc_newlib_tdep): Add declaration.
12951 * arc-tdep.c (_initialize_arc_tdep): Add declaration.
12952 * arch-utils.c (_initialize_gdbarch_utils): Add declaration.
12953 * arm-fbsd-nat.c (_initialize_arm_fbsd_nat): Add declaration.
12954 * arm-fbsd-tdep.c (_initialize_arm_fbsd_tdep): Add declaration.
12955 * arm-linux-nat.c (_initialize_arm_linux_nat): Add declaration.
12956 * arm-linux-tdep.c (_initialize_arm_linux_tdep): Add declaration.
12957 * arm-nbsd-nat.c (_initialize_arm_netbsd_nat): Add declaration.
12958 * arm-nbsd-tdep.c (_initialize_arm_netbsd_tdep): Add declaration.
12959 * arm-obsd-tdep.c (_initialize_armobsd_tdep): Add declaration.
12960 * arm-pikeos-tdep.c (_initialize_arm_pikeos_tdep): Add declaration.
12961 * arm-symbian-tdep.c (_initialize_arm_symbian_tdep): Add declaration.
12962 * arm-tdep.c (_initialize_arm_tdep): Add declaration.
12963 * arm-wince-tdep.c (_initialize_arm_wince_tdep): Add declaration.
12964 * auto-load.c (_initialize_auto_load): Add declaration.
12965 * auxv.c (_initialize_auxv): Add declaration.
12966 * avr-tdep.c (_initialize_avr_tdep): Add declaration.
12967 * ax-gdb.c (_initialize_ax_gdb): Add declaration.
12968 * bfin-linux-tdep.c (_initialize_bfin_linux_tdep): Add declaration.
12969 * bfin-tdep.c (_initialize_bfin_tdep): Add declaration.
12970 * break-catch-sig.c (_initialize_break_catch_sig): Add declaration.
12971 * break-catch-syscall.c (_initialize_break_catch_syscall): Add declaration.
12972 * break-catch-throw.c (_initialize_break_catch_throw): Add declaration.
12973 * breakpoint.c (_initialize_breakpoint): Add declaration.
12974 * bsd-uthread.c (_initialize_bsd_uthread): Add declaration.
12975 * btrace.c (_initialize_btrace): Add declaration.
12976 * charset.c (_initialize_charset): Add declaration.
12977 * cli/cli-cmds.c (_initialize_cli_cmds): Add declaration.
12978 * cli/cli-dump.c (_initialize_cli_dump): Add declaration.
12979 * cli/cli-interp.c (_initialize_cli_interp): Add declaration.
12980 * cli/cli-logging.c (_initialize_cli_logging): Add declaration.
12981 * cli/cli-script.c (_initialize_cli_script): Add declaration.
12982 * cli/cli-style.c (_initialize_cli_style): Add declaration.
12983 * coff-pe-read.c (_initialize_coff_pe_read): Add declaration.
12984 * coffread.c (_initialize_coffread): Add declaration.
12985 * compile/compile-cplus-types.c (_initialize_compile_cplus_types): Add declaration.
12986 * compile/compile.c (_initialize_compile): Add declaration.
12987 * complaints.c (_initialize_complaints): Add declaration.
12988 * completer.c (_initialize_completer): Add declaration.
12989 * copying.c (_initialize_copying): Add declaration.
12990 * corefile.c (_initialize_core): Add declaration.
12991 * corelow.c (_initialize_corelow): Add declaration.
12992 * cp-abi.c (_initialize_cp_abi): Add declaration.
12993 * cp-namespace.c (_initialize_cp_namespace): Add declaration.
12994 * cp-support.c (_initialize_cp_support): Add declaration.
12995 * cp-valprint.c (_initialize_cp_valprint): Add declaration.
12996 * cris-linux-tdep.c (_initialize_cris_linux_tdep): Add declaration.
12997 * cris-tdep.c (_initialize_cris_tdep): Add declaration.
12998 * csky-linux-tdep.c (_initialize_csky_linux_tdep): Add declaration.
12999 * csky-tdep.c (_initialize_csky_tdep): Add declaration.
13000 * ctfread.c (_initialize_ctfread): Add declaration.
13001 * d-lang.c (_initialize_d_language): Add declaration.
13002 * darwin-nat-info.c (_initialize_darwin_info_commands): Add declaration.
13003 * darwin-nat.c (_initialize_darwin_nat): Add declaration.
13004 * dbxread.c (_initialize_dbxread): Add declaration.
13005 * dcache.c (_initialize_dcache): Add declaration.
13006 * disasm-selftests.c (_initialize_disasm_selftests): Add declaration.
13007 * disasm.c (_initialize_disasm): Add declaration.
13008 * dtrace-probe.c (_initialize_dtrace_probe): Add declaration.
13009 * dummy-frame.c (_initialize_dummy_frame): Add declaration.
13010 * dwarf-index-cache.c (_initialize_index_cache): Add declaration.
13011 * dwarf-index-write.c (_initialize_dwarf_index_write): Add declaration.
13012 * dwarf2-frame-tailcall.c (_initialize_tailcall_frame): Add declaration.
13013 * dwarf2-frame.c (_initialize_dwarf2_frame): Add declaration.
13014 * dwarf2expr.c (_initialize_dwarf2expr): Add declaration.
13015 * dwarf2loc.c (_initialize_dwarf2loc): Add declaration.
13016 * dwarf2read.c (_initialize_dwarf2_read): Add declaration.
13017 * elfread.c (_initialize_elfread): Add declaration.
13018 * exec.c (_initialize_exec): Add declaration.
13019 * extension.c (_initialize_extension): Add declaration.
13020 * f-lang.c (_initialize_f_language): Add declaration.
13021 * f-valprint.c (_initialize_f_valprint): Add declaration.
13022 * fbsd-nat.c (_initialize_fbsd_nat): Add declaration.
13023 * fbsd-tdep.c (_initialize_fbsd_tdep): Add declaration.
13024 * filesystem.c (_initialize_filesystem): Add declaration.
13025 * findcmd.c (_initialize_mem_search): Add declaration.
13026 * findvar.c (_initialize_findvar): Add declaration.
13027 * fork-child.c (_initialize_fork_child): Add declaration.
13028 * frame-base.c (_initialize_frame_base): Add declaration.
13029 * frame-unwind.c (_initialize_frame_unwind): Add declaration.
13030 * frame.c (_initialize_frame): Add declaration.
13031 * frv-linux-tdep.c (_initialize_frv_linux_tdep): Add declaration.
13032 * frv-tdep.c (_initialize_frv_tdep): Add declaration.
13033 * ft32-tdep.c (_initialize_ft32_tdep): Add declaration.
13034 * gcore.c (_initialize_gcore): Add declaration.
13035 * gdb-demangle.c (_initialize_gdb_demangle): Add declaration.
13036 * gdb_bfd.c (_initialize_gdb_bfd): Add declaration.
13037 * gdbarch-selftests.c (_initialize_gdbarch_selftests): Add declaration.
13038 * gdbarch.c (_initialize_gdbarch): Add declaration.
13039 * gdbtypes.c (_initialize_gdbtypes): Add declaration.
13040 * gnu-nat.c (_initialize_gnu_nat): Add declaration.
13041 * gnu-v2-abi.c (_initialize_gnu_v2_abi): Add declaration.
13042 * gnu-v3-abi.c (_initialize_gnu_v3_abi): Add declaration.
13043 * go-lang.c (_initialize_go_language): Add declaration.
13044 * go32-nat.c (_initialize_go32_nat): Add declaration.
13045 * guile/guile.c (_initialize_guile): Add declaration.
13046 * h8300-tdep.c (_initialize_h8300_tdep): Add declaration.
13047 * hppa-linux-nat.c (_initialize_hppa_linux_nat): Add declaration.
13048 * hppa-linux-tdep.c (_initialize_hppa_linux_tdep): Add declaration.
13049 * hppa-nbsd-nat.c (_initialize_hppanbsd_nat): Add declaration.
13050 * hppa-nbsd-tdep.c (_initialize_hppanbsd_tdep): Add declaration.
13051 * hppa-obsd-nat.c (_initialize_hppaobsd_nat): Add declaration.
13052 * hppa-obsd-tdep.c (_initialize_hppabsd_tdep): Add declaration.
13053 * hppa-tdep.c (_initialize_hppa_tdep): Add declaration.
13054 * i386-bsd-nat.c (_initialize_i386bsd_nat): Add declaration.
13055 * i386-cygwin-tdep.c (_initialize_i386_cygwin_tdep): Add declaration.
13056 * i386-darwin-nat.c (_initialize_i386_darwin_nat): Add declaration.
13057 * i386-darwin-tdep.c (_initialize_i386_darwin_tdep): Add declaration.
13058 * i386-dicos-tdep.c (_initialize_i386_dicos_tdep): Add declaration.
13059 * i386-fbsd-nat.c (_initialize_i386fbsd_nat): Add declaration.
13060 * i386-fbsd-tdep.c (_initialize_i386fbsd_tdep): Add declaration.
13061 * i386-gnu-nat.c (_initialize_i386gnu_nat): Add declaration.
13062 * i386-gnu-tdep.c (_initialize_i386gnu_tdep): Add declaration.
13063 * i386-go32-tdep.c (_initialize_i386_go32_tdep): Add declaration.
13064 * i386-linux-nat.c (_initialize_i386_linux_nat): Add declaration.
13065 * i386-linux-tdep.c (_initialize_i386_linux_tdep): Add declaration.
13066 * i386-nbsd-nat.c (_initialize_i386nbsd_nat): Add declaration.
13067 * i386-nbsd-tdep.c (_initialize_i386nbsd_tdep): Add declaration.
13068 * i386-nto-tdep.c (_initialize_i386nto_tdep): Add declaration.
13069 * i386-obsd-nat.c (_initialize_i386obsd_nat): Add declaration.
13070 * i386-obsd-tdep.c (_initialize_i386obsd_tdep): Add declaration.
13071 * i386-sol2-nat.c (_initialize_amd64_sol2_nat): Add declaration.
13072 * i386-sol2-tdep.c (_initialize_i386_sol2_tdep): Add declaration.
13073 * i386-tdep.c (_initialize_i386_tdep): Add declaration.
13074 * i386-windows-nat.c (_initialize_i386_windows_nat): Add declaration.
13075 * ia64-libunwind-tdep.c (_initialize_libunwind_frame): Add declaration.
13076 * ia64-linux-nat.c (_initialize_ia64_linux_nat): Add declaration.
13077 * ia64-linux-tdep.c (_initialize_ia64_linux_tdep): Add declaration.
13078 * ia64-tdep.c (_initialize_ia64_tdep): Add declaration.
13079 * ia64-vms-tdep.c (_initialize_ia64_vms_tdep): Add declaration.
13080 * infcall.c (_initialize_infcall): Add declaration.
13081 * infcmd.c (_initialize_infcmd): Add declaration.
13082 * inflow.c (_initialize_inflow): Add declaration.
13083 * infrun.c (_initialize_infrun): Add declaration.
13084 * interps.c (_initialize_interpreter): Add declaration.
13085 * iq2000-tdep.c (_initialize_iq2000_tdep): Add declaration.
13086 * jit.c (_initialize_jit): Add declaration.
13087 * language.c (_initialize_language): Add declaration.
13088 * linux-fork.c (_initialize_linux_fork): Add declaration.
13089 * linux-nat.c (_initialize_linux_nat): Add declaration.
13090 * linux-tdep.c (_initialize_linux_tdep): Add declaration.
13091 * linux-thread-db.c (_initialize_thread_db): Add declaration.
13092 * lm32-tdep.c (_initialize_lm32_tdep): Add declaration.
13093 * m2-lang.c (_initialize_m2_language): Add declaration.
13094 * m32c-tdep.c (_initialize_m32c_tdep): Add declaration.
13095 * m32r-linux-nat.c (_initialize_m32r_linux_nat): Add declaration.
13096 * m32r-linux-tdep.c (_initialize_m32r_linux_tdep): Add declaration.
13097 * m32r-tdep.c (_initialize_m32r_tdep): Add declaration.
13098 * m68hc11-tdep.c (_initialize_m68hc11_tdep): Add declaration.
13099 * m68k-bsd-nat.c (_initialize_m68kbsd_nat): Add declaration.
13100 * m68k-bsd-tdep.c (_initialize_m68kbsd_tdep): Add declaration.
13101 * m68k-linux-nat.c (_initialize_m68k_linux_nat): Add declaration.
13102 * m68k-linux-tdep.c (_initialize_m68k_linux_tdep): Add declaration.
13103 * m68k-tdep.c (_initialize_m68k_tdep): Add declaration.
13104 * machoread.c (_initialize_machoread): Add declaration.
13105 * macrocmd.c (_initialize_macrocmd): Add declaration.
13106 * macroscope.c (_initialize_macroscope): Add declaration.
13107 * maint-test-options.c (_initialize_maint_test_options): Add declaration.
13108 * maint-test-settings.c (_initialize_maint_test_settings): Add declaration.
13109 * maint.c (_initialize_maint_cmds): Add declaration.
13110 * mdebugread.c (_initialize_mdebugread): Add declaration.
13111 * memattr.c (_initialize_mem): Add declaration.
13112 * mep-tdep.c (_initialize_mep_tdep): Add declaration.
13113 * mi/mi-cmd-env.c (_initialize_mi_cmd_env): Add declaration.
13114 * mi/mi-cmds.c (_initialize_mi_cmds): Add declaration.
13115 * mi/mi-interp.c (_initialize_mi_interp): Add declaration.
13116 * mi/mi-main.c (_initialize_mi_main): Add declaration.
13117 * microblaze-linux-tdep.c (_initialize_microblaze_linux_tdep): Add declaration.
13118 * microblaze-tdep.c (_initialize_microblaze_tdep): Add declaration.
13119 * mips-fbsd-nat.c (_initialize_mips_fbsd_nat): Add declaration.
13120 * mips-fbsd-tdep.c (_initialize_mips_fbsd_tdep): Add declaration.
13121 * mips-linux-nat.c (_initialize_mips_linux_nat): Add declaration.
13122 * mips-linux-tdep.c (_initialize_mips_linux_tdep): Add declaration.
13123 * mips-nbsd-nat.c (_initialize_mipsnbsd_nat): Add declaration.
13124 * mips-nbsd-tdep.c (_initialize_mipsnbsd_tdep): Add declaration.
13125 * mips-sde-tdep.c (_initialize_mips_sde_tdep): Add declaration.
13126 * mips-tdep.c (_initialize_mips_tdep): Add declaration.
13127 * mips64-obsd-nat.c (_initialize_mips64obsd_nat): Add declaration.
13128 * mips64-obsd-tdep.c (_initialize_mips64obsd_tdep): Add declaration.
13129 * mipsread.c (_initialize_mipsread): Add declaration.
13130 * mn10300-linux-tdep.c (_initialize_mn10300_linux_tdep): Add declaration.
13131 * mn10300-tdep.c (_initialize_mn10300_tdep): Add declaration.
13132 * moxie-tdep.c (_initialize_moxie_tdep): Add declaration.
13133 * msp430-tdep.c (_initialize_msp430_tdep): Add declaration.
13134 * nds32-tdep.c (_initialize_nds32_tdep): Add declaration.
13135 * nios2-linux-tdep.c (_initialize_nios2_linux_tdep): Add declaration.
13136 * nios2-tdep.c (_initialize_nios2_tdep): Add declaration.
13137 * nto-procfs.c (_initialize_procfs): Add declaration.
13138 * objc-lang.c (_initialize_objc_language): Add declaration.
13139 * observable.c (_initialize_observer): Add declaration.
13140 * opencl-lang.c (_initialize_opencl_language): Add declaration.
13141 * or1k-linux-tdep.c (_initialize_or1k_linux_tdep): Add declaration.
13142 * or1k-tdep.c (_initialize_or1k_tdep): Add declaration.
13143 * osabi.c (_initialize_gdb_osabi): Add declaration.
13144 * osdata.c (_initialize_osdata): Add declaration.
13145 * p-valprint.c (_initialize_pascal_valprint): Add declaration.
13146 * parse.c (_initialize_parse): Add declaration.
13147 * ppc-fbsd-nat.c (_initialize_ppcfbsd_nat): Add declaration.
13148 * ppc-fbsd-tdep.c (_initialize_ppcfbsd_tdep): Add declaration.
13149 * ppc-linux-nat.c (_initialize_ppc_linux_nat): Add declaration.
13150 * ppc-linux-tdep.c (_initialize_ppc_linux_tdep): Add declaration.
13151 * ppc-nbsd-nat.c (_initialize_ppcnbsd_nat): Add declaration.
13152 * ppc-nbsd-tdep.c (_initialize_ppcnbsd_tdep): Add declaration.
13153 * ppc-obsd-nat.c (_initialize_ppcobsd_nat): Add declaration.
13154 * ppc-obsd-tdep.c (_initialize_ppcobsd_tdep): Add declaration.
13155 * printcmd.c (_initialize_printcmd): Add declaration.
13156 * probe.c (_initialize_probe): Add declaration.
13157 * proc-api.c (_initialize_proc_api): Add declaration.
13158 * proc-events.c (_initialize_proc_events): Add declaration.
13159 * proc-service.c (_initialize_proc_service): Add declaration.
13160 * procfs.c (_initialize_procfs): Add declaration.
13161 * producer.c (_initialize_producer): Add declaration.
13162 * psymtab.c (_initialize_psymtab): Add declaration.
13163 * python/python.c (_initialize_python): Add declaration.
13164 * ravenscar-thread.c (_initialize_ravenscar): Add declaration.
13165 * record-btrace.c (_initialize_record_btrace): Add declaration.
13166 * record-full.c (_initialize_record_full): Add declaration.
13167 * record.c (_initialize_record): Add declaration.
13168 * regcache-dump.c (_initialize_regcache_dump): Add declaration.
13169 * regcache.c (_initialize_regcache): Add declaration.
13170 * reggroups.c (_initialize_reggroup): Add declaration.
13171 * remote-notif.c (_initialize_notif): Add declaration.
13172 * remote-sim.c (_initialize_remote_sim): Add declaration.
13173 * remote.c (_initialize_remote): Add declaration.
13174 * reverse.c (_initialize_reverse): Add declaration.
13175 * riscv-fbsd-nat.c (_initialize_riscv_fbsd_nat): Add declaration.
13176 * riscv-fbsd-tdep.c (_initialize_riscv_fbsd_tdep): Add declaration.
13177 * riscv-linux-nat.c (_initialize_riscv_linux_nat): Add declaration.
13178 * riscv-linux-tdep.c (_initialize_riscv_linux_tdep): Add declaration.
13179 * riscv-tdep.c (_initialize_riscv_tdep): Add declaration.
13180 * rl78-tdep.c (_initialize_rl78_tdep): Add declaration.
13181 * rs6000-aix-tdep.c (_initialize_rs6000_aix_tdep): Add declaration.
13182 * rs6000-lynx178-tdep.c (_initialize_rs6000_lynx178_tdep):
13183 Add declaration.
13184 * rs6000-nat.c (_initialize_rs6000_nat): Add declaration.
13185 * rs6000-tdep.c (_initialize_rs6000_tdep): Add declaration.
13186 * run-on-main-thread.c (_initialize_run_on_main_thread): Add declaration.
13187 * rust-exp.y (_initialize_rust_exp): Add declaration.
13188 * rx-tdep.c (_initialize_rx_tdep): Add declaration.
13189 * s12z-tdep.c (_initialize_s12z_tdep): Add declaration.
13190 * s390-linux-nat.c (_initialize_s390_nat): Add declaration.
13191 * s390-linux-tdep.c (_initialize_s390_linux_tdep): Add declaration.
13192 * s390-tdep.c (_initialize_s390_tdep): Add declaration.
13193 * score-tdep.c (_initialize_score_tdep): Add declaration.
13194 * ser-go32.c (_initialize_ser_dos): Add declaration.
13195 * ser-mingw.c (_initialize_ser_windows): Add declaration.
13196 * ser-pipe.c (_initialize_ser_pipe): Add declaration.
13197 * ser-tcp.c (_initialize_ser_tcp): Add declaration.
13198 * ser-uds.c (_initialize_ser_socket): Add declaration.
13199 * ser-unix.c (_initialize_ser_hardwire): Add declaration.
13200 * serial.c (_initialize_serial): Add declaration.
13201 * sh-linux-tdep.c (_initialize_sh_linux_tdep): Add declaration.
13202 * sh-nbsd-nat.c (_initialize_shnbsd_nat): Add declaration.
13203 * sh-nbsd-tdep.c (_initialize_shnbsd_tdep): Add declaration.
13204 * sh-tdep.c (_initialize_sh_tdep): Add declaration.
13205 * skip.c (_initialize_step_skip): Add declaration.
13206 * sol-thread.c (_initialize_sol_thread): Add declaration.
13207 * solib-aix.c (_initialize_solib_aix): Add declaration.
13208 * solib-darwin.c (_initialize_darwin_solib): Add declaration.
13209 * solib-dsbt.c (_initialize_dsbt_solib): Add declaration.
13210 * solib-frv.c (_initialize_frv_solib): Add declaration.
13211 * solib-svr4.c (_initialize_svr4_solib): Add declaration.
13212 * solib-target.c (_initialize_solib_target): Add declaration.
13213 * solib.c (_initialize_solib): Add declaration.
13214 * source-cache.c (_initialize_source_cache): Add declaration.
13215 * source.c (_initialize_source): Add declaration.
13216 * sparc-linux-nat.c (_initialize_sparc_linux_nat): Add declaration.
13217 * sparc-linux-tdep.c (_initialize_sparc_linux_tdep): Add declaration.
13218 * sparc-nat.c (_initialize_sparc_nat): Add declaration.
13219 * sparc-nbsd-nat.c (_initialize_sparcnbsd_nat): Add declaration.
13220 * sparc-nbsd-tdep.c (_initialize_sparcnbsd_tdep): Add declaration.
13221 * sparc-obsd-tdep.c (_initialize_sparc32obsd_tdep): Add declaration.
13222 * sparc-sol2-tdep.c (_initialize_sparc_sol2_tdep): Add declaration.
13223 * sparc-tdep.c (_initialize_sparc_tdep): Add declaration.
13224 * sparc64-fbsd-nat.c (_initialize_sparc64fbsd_nat): Add declaration.
13225 * sparc64-fbsd-tdep.c (_initialize_sparc64fbsd_tdep): Add declaration.
13226 * sparc64-linux-nat.c (_initialize_sparc64_linux_nat): Add declaration.
13227 * sparc64-linux-tdep.c (_initialize_sparc64_linux_tdep): Add declaration.
13228 * sparc64-nat.c (_initialize_sparc64_nat): Add declaration.
13229 * sparc64-nbsd-nat.c (_initialize_sparc64nbsd_nat): Add declaration.
13230 * sparc64-nbsd-tdep.c (_initialize_sparc64nbsd_tdep): Add declaration.
13231 * sparc64-obsd-nat.c (_initialize_sparc64obsd_nat): Add declaration.
13232 * sparc64-obsd-tdep.c (_initialize_sparc64obsd_tdep): Add declaration.
13233 * sparc64-sol2-tdep.c (_initialize_sparc64_sol2_tdep): Add declaration.
13234 * sparc64-tdep.c (_initialize_sparc64_adi_tdep): Add declaration.
13235 * stabsread.c (_initialize_stabsread): Add declaration.
13236 * stack.c (_initialize_stack): Add declaration.
13237 * stap-probe.c (_initialize_stap_probe): Add declaration.
13238 * std-regs.c (_initialize_frame_reg): Add declaration.
13239 * symfile-debug.c (_initialize_symfile_debug): Add declaration.
13240 * symfile-mem.c (_initialize_symfile_mem): Add declaration.
13241 * symfile.c (_initialize_symfile): Add declaration.
13242 * symmisc.c (_initialize_symmisc): Add declaration.
13243 * symtab.c (_initialize_symtab): Add declaration.
13244 * target.c (_initialize_target): Add declaration.
13245 * target-connection.c (_initialize_target_connection): Add
13246 declaration.
13247 * target-dcache.c (_initialize_target_dcache): Add declaration.
13248 * target-descriptions.c (_initialize_target_descriptions): Add declaration.
13249 * thread.c (_initialize_thread): Add declaration.
13250 * tic6x-linux-tdep.c (_initialize_tic6x_linux_tdep): Add declaration.
13251 * tic6x-tdep.c (_initialize_tic6x_tdep): Add declaration.
13252 * tilegx-linux-nat.c (_initialize_tile_linux_nat): Add declaration.
13253 * tilegx-linux-tdep.c (_initialize_tilegx_linux_tdep): Add declaration.
13254 * tilegx-tdep.c (_initialize_tilegx_tdep): Add declaration.
13255 * tracectf.c (_initialize_ctf): Add declaration.
13256 * tracefile-tfile.c (_initialize_tracefile_tfile): Add declaration.
13257 * tracefile.c (_initialize_tracefile): Add declaration.
13258 * tracepoint.c (_initialize_tracepoint): Add declaration.
13259 * tui/tui-hooks.c (_initialize_tui_hooks): Add declaration.
13260 * tui/tui-interp.c (_initialize_tui_interp): Add declaration.
13261 * tui/tui-layout.c (_initialize_tui_layout): Add declaration.
13262 * tui/tui-regs.c (_initialize_tui_regs): Add declaration.
13263 * tui/tui-stack.c (_initialize_tui_stack): Add declaration.
13264 * tui/tui-win.c (_initialize_tui_win): Add declaration.
13265 * tui/tui.c (_initialize_tui): Add declaration.
13266 * typeprint.c (_initialize_typeprint): Add declaration.
13267 * ui-style.c (_initialize_ui_style): Add declaration.
13268 * unittests/array-view-selftests.c (_initialize_array_view_selftests): Add declaration.
13269 * unittests/child-path-selftests.c (_initialize_child_path_selftests): Add declaration.
13270 * unittests/cli-utils-selftests.c (_initialize_cli_utils_selftests): Add declaration.
13271 * unittests/common-utils-selftests.c (_initialize_common_utils_selftests): Add declaration.
13272 * unittests/copy_bitwise-selftests.c (_initialize_copy_bitwise_utils_selftests): Add declaration.
13273 * unittests/environ-selftests.c (_initialize_environ_selftests): Add declaration.
13274 * unittests/filtered_iterator-selftests.c
13275 (_initialize_filtered_iterator_selftests): Add declaration.
13276 * unittests/format_pieces-selftests.c (_initialize_format_pieces_selftests): Add declaration.
13277 * unittests/function-view-selftests.c (_initialize_function_view_selftests): Add declaration.
13278 * unittests/help-doc-selftests.c (_initialize_help_doc_selftests): Add declaration.
13279 * unittests/lookup_name_info-selftests.c (_initialize_lookup_name_info_selftests): Add declaration.
13280 * unittests/main-thread-selftests.c
13281 (_initialize_main_thread_selftests): Add declaration.
13282 * unittests/memory-map-selftests.c (_initialize_memory_map_selftests): Add declaration.
13283 * unittests/memrange-selftests.c (_initialize_memrange_selftests): Add declaration.
13284 * unittests/mkdir-recursive-selftests.c (_initialize_mkdir_recursive_selftests): Add declaration.
13285 * unittests/observable-selftests.c (_initialize_observer_selftest): Add declaration.
13286 * unittests/offset-type-selftests.c (_initialize_offset_type_selftests): Add declaration.
13287 * unittests/optional-selftests.c (_initialize_optional_selftests): Add declaration.
13288 * unittests/parse-connection-spec-selftests.c (_initialize_parse_connection_spec_selftests): Add declaration.
13289 * unittests/rsp-low-selftests.c (_initialize_rsp_low_selftests): Add declaration.
13290 * unittests/scoped_fd-selftests.c (_initialize_scoped_fd_selftests): Add declaration.
13291 * unittests/scoped_mmap-selftests.c (_initialize_scoped_mmap_selftests): Add declaration.
13292 * unittests/scoped_restore-selftests.c (_initialize_scoped_restore_selftests): Add declaration.
13293 * unittests/string_view-selftests.c (_initialize_string_view_selftests): Add declaration.
13294 * unittests/style-selftests.c (_initialize_style_selftest): Add declaration.
13295 * unittests/tracepoint-selftests.c (_initialize_tracepoint_selftests): Add declaration.
13296 * unittests/tui-selftests.c (_initialize_tui_selftest): Add
13297 declaration.
13298 * unittests/unpack-selftests.c (_initialize_unpack_selftests): Add declaration.
13299 * unittests/utils-selftests.c (_initialize_utils_selftests): Add declaration.
13300 * unittests/vec-utils-selftests.c (_initialize_vec_utils_selftests): Add declaration.
13301 * unittests/xml-utils-selftests.c (_initialize_xml_utils): Add declaration.
13302 * user-regs.c (_initialize_user_regs): Add declaration.
13303 * utils.c (_initialize_utils): Add declaration.
13304 * v850-tdep.c (_initialize_v850_tdep): Add declaration.
13305 * valops.c (_initialize_valops): Add declaration.
13306 * valprint.c (_initialize_valprint): Add declaration.
13307 * value.c (_initialize_values): Add declaration.
13308 * varobj.c (_initialize_varobj): Add declaration.
13309 * vax-bsd-nat.c (_initialize_vaxbsd_nat): Add declaration.
13310 * vax-nbsd-tdep.c (_initialize_vaxnbsd_tdep): Add declaration.
13311 * vax-tdep.c (_initialize_vax_tdep): Add declaration.
13312 * windows-nat.c (_initialize_windows_nat): Add declaration.
13313 (_initialize_check_for_gdb_ini): Add declaration.
13314 (_initialize_loadable): Add declaration.
13315 * windows-tdep.c (_initialize_windows_tdep): Add declaration.
13316 * x86-bsd-nat.c (_initialize_x86_bsd_nat): Add declaration.
13317 * x86-linux-nat.c (_initialize_x86_linux_nat): Add declaration.
13318 * xcoffread.c (_initialize_xcoffread): Add declaration.
13319 * xml-support.c (_initialize_xml_support): Add declaration.
13320 * xstormy16-tdep.c (_initialize_xstormy16_tdep): Add declaration.
13321 * xtensa-linux-nat.c (_initialize_xtensa_linux_nat): Add declaration.
13322 * xtensa-linux-tdep.c (_initialize_xtensa_linux_tdep): Add declaration.
13323 * xtensa-tdep.c (_initialize_xtensa_tdep): Add declaration.
13324
13325 2020-01-13 Simon Marchi <simon.marchi@polymtl.ca>
13326
13327 * regformats/regdat.sh: Generate declaration for init function.
13328
13329 2020-01-13 Simon Marchi <simon.marchi@polymtl.ca>
13330
13331 * remote-sim.c (next_pid, INITIAL_PID, sim_inferior_data): Move
13332 up.
13333 (gdbsim_target) <get_inferior_data_by_ptid, resume_one_inferior,
13334 close_one_inferior>: New methods.
13335 (get_sim_inferior_data_by_ptid): Move to gdbsim_target,
13336 pass down target to find_inferior_pid.
13337 (gdbsim_target::fetch_registers, gdbsim_target::store_registers):
13338 Pass down target to find_inferior_ptid.
13339 (gdbsim_target::create_inferior): Pass down target to
13340 add_thread_silent.
13341 (gdbsim_close_inferior): Move to gdbsim_close_inferior, pass
13342 target down to find_inferior_ptid and switch_to_thread.
13343 (gdbsim_target::close): Update to call close_one_inferior.
13344 (struct resume_data): Remove.
13345 (gdbsim_resume_inferior): Move to gdbsim_target. Take arguments
13346 directly, rather than through a void pointer.
13347 (gdbsim_target::resume): Update to call resume_one_inferior.
13348
13349 2020-01-12 Simon Marchi <simon.marchi@polymtl.ca>
13350
13351 * gdbsupport/gdb_wait.c: Include gdb_wait.h.
13352
13353 2020-01-12 Pedro Alves <palves@redhat.com>
13354
13355 * bsd-kvm.c (bsd_kvm_target::close): Call exit_inferior_silent
13356 directly for the current inferior instead of
13357 discard_all_inferiors.
13358 (discard_all_inferiors): Delete.
13359
13360 2020-01-11 Tom Tromey <tom@tromey.com>
13361
13362 * tui/tui-wingeneral.c (box_win): Check cli_styling.
13363 * tui/tui-winsource.c (tui_source_window_base::refill): Use
13364 deprecated_safe_get_selected_frame.
13365
13366 2020-01-10 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
13367
13368 * inferior.c (print_inferior): Switch inferior before printing it.
13369
13370 2020-01-10 Aleksandar Paunovic <aleksandar.paunovic@intel.com>
13371 Pedro Alves <palves@redhat.com>
13372
13373 * progspace-and-thread.c (switch_to_program_space_and_thread):
13374 Assert there's an inferior for PSPACE. Use
13375 switch_to_inferior_no_thread to switch the inferior too.
13376 * progspace.c (program_space::~program_space): Call
13377 clear_symtab_users here, with SYMFILE_DEFER_BP_RESET.
13378 (program_space::free_all_objfiles): Don't call clear_symtab_users
13379 here.
13380 * symfile.c (symbol_file_clear): Call clear_symtab_users here.
13381
13382 2020-01-10 Pedro Alves <palves@redhat.com>
13383
13384 * NEWS: Mention multi-target debugging, "info connections", and
13385 "add-inferior -no-connection".
13386
13387 2020-01-10 Pedro Alves <palves@redhat.com>
13388
13389 * infrun.c: Include "target-connection.h".
13390 (check_multi_target_resumption): New.
13391 (proceed): Call it.
13392 * target-connection.c (make_target_connection_string): Make
13393 extern.
13394 * target-connection.h (make_target_connection_string): Declare.
13395
13396 2020-01-10 Pedro Alves <palves@redhat.com>
13397
13398 * Makefile.in (COMMON_SFILES): Add target-connection.c.
13399 * inferior.c (uiout_field_connection): New function.
13400 (print_inferior): Add new "connection-id" column.
13401 (add_inferior_command): Show connection number/string of added
13402 inferior.
13403 * process-stratum-target.h
13404 (process_stratum_target::connection_string): New virtual method.
13405 (process_stratum_target::connection_number): New field.
13406 * remote.c (remote_target::connection_string): New override.
13407 * target-connection.c: New file.
13408 * target-connection.h: New file.
13409 * target.c (decref_target): Remove process_stratum targets from
13410 the connection list.
13411 (target_stack::push): Add process_stratum targets to the
13412 connection list.
13413
13414 2020-01-10 Pedro Alves <palves@redhat.com>
13415
13416 Revert:
13417 2016-04-12 Pedro Alves <palves@redhat.com>
13418 * serial.c (serial_open, serial_fdopen_ops, do_serial_close):
13419 Remove references to name.
13420 * serial.h (struct serial) <name>: Delete.
13421
13422 2020-01-10 Pedro Alves <palves@redhat.com>
13423
13424 * gdbarch-selftests.c (register_to_value_test): Remove "target
13425 already pushed" check.
13426
13427 2020-01-10 Pedro Alves <palves@redhat.com>
13428 John Baldwin <jhb@FreeBSD.org>
13429
13430 * aarch64-linux-nat.c
13431 (aarch64_linux_nat_target::thread_architecture): Adjust.
13432 * ada-tasks.c (print_ada_task_info): Adjust find_thread_ptid call.
13433 (task_command_1): Likewise.
13434 * aix-thread.c (sync_threadlists, aix_thread_target::resume)
13435 (aix_thread_target::wait, aix_thread_target::fetch_registers)
13436 (aix_thread_target::store_registers)
13437 (aix_thread_target::thread_alive): Adjust.
13438 * amd64-fbsd-tdep.c: Include "inferior.h".
13439 (amd64fbsd_get_thread_local_address): Pass down target.
13440 * amd64-linux-nat.c (ps_get_thread_area): Use ps_prochandle
13441 thread's gdbarch instead of target_gdbarch.
13442 * break-catch-sig.c (signal_catchpoint_print_it): Adjust call to
13443 get_last_target_status.
13444 * break-catch-syscall.c (print_it_catch_syscall): Likewise.
13445 * breakpoint.c (breakpoints_should_be_inserted_now): Consider all
13446 inferiors.
13447 (update_inserted_breakpoint_locations): Skip if inferiors with no
13448 execution.
13449 (update_global_location_list): When handling moribund locations,
13450 find representative inferior for location's pspace, and use thread
13451 count of its process_stratum target.
13452 * bsd-kvm.c (bsd_kvm_target_open): Pass target down.
13453 * bsd-uthread.c (bsd_uthread_target::wait): Use
13454 as_process_stratum_target and adjust thread_change_ptid and
13455 add_thread calls.
13456 (bsd_uthread_target::update_thread_list): Use
13457 as_process_stratum_target and adjust find_thread_ptid,
13458 thread_change_ptid and add_thread calls.
13459 * btrace.c (maint_btrace_packet_history_cmd): Adjust
13460 find_thread_ptid call.
13461 * corelow.c (add_to_thread_list): Adjust add_thread call.
13462 (core_target_open): Adjust add_thread_silent and thread_count
13463 calls.
13464 (core_target::pid_to_str): Adjust find_inferior_ptid call.
13465 * ctf.c (ctf_target_open): Adjust add_thread_silent call.
13466 * event-top.c (async_disconnect): Pop targets from all inferiors.
13467 * exec.c (add_target_sections): Push exec target on all inferiors
13468 sharing the program space.
13469 (remove_target_sections): Remove the exec target from all
13470 inferiors sharing the program space.
13471 (exec_on_vfork): New.
13472 * exec.h (exec_on_vfork): Declare.
13473 * fbsd-nat.c (fbsd_add_threads): Add fbsd_nat_target parameter.
13474 Pass it down.
13475 (fbsd_nat_target::update_thread_list): Adjust.
13476 (fbsd_nat_target::resume): Adjust.
13477 (fbsd_handle_debug_trap): Add fbsd_nat_target parameter. Pass it
13478 down.
13479 (fbsd_nat_target::wait, fbsd_nat_target::post_attach): Adjust.
13480 * fbsd-tdep.c (fbsd_corefile_thread): Adjust
13481 get_thread_arch_regcache call.
13482 * fork-child.c (gdb_startup_inferior): Pass target down to
13483 startup_inferior and set_executing.
13484 * gdbthread.h (struct process_stratum_target): Forward declare.
13485 (add_thread, add_thread_silent, add_thread_with_info)
13486 (in_thread_list): Add process_stratum_target parameter.
13487 (find_thread_ptid(inferior*, ptid_t)): New overload.
13488 (find_thread_ptid, thread_change_ptid): Add process_stratum_target
13489 parameter.
13490 (all_threads()): Delete overload.
13491 (all_threads, all_non_exited_threads): Add process_stratum_target
13492 parameter.
13493 (all_threads_safe): Use brace initialization.
13494 (thread_count): Add process_stratum_target parameter.
13495 (set_resumed, set_running, set_stop_requested, set_executing)
13496 (threads_are_executing, finish_thread_state): Add
13497 process_stratum_target parameter.
13498 (switch_to_thread): Use is_current_thread.
13499 * i386-fbsd-tdep.c: Include "inferior.h".
13500 (i386fbsd_get_thread_local_address): Pass down target.
13501 * i386-linux-nat.c (i386_linux_nat_target::low_resume): Adjust.
13502 * inf-child.c (inf_child_target::maybe_unpush_target): Remove
13503 have_inferiors check.
13504 * inf-ptrace.c (inf_ptrace_target::create_inferior)
13505 (inf_ptrace_target::attach): Adjust.
13506 * infcall.c (run_inferior_call): Adjust.
13507 * infcmd.c (run_command_1): Pass target to
13508 scoped_finish_thread_state.
13509 (proceed_thread_callback): Skip inferiors with no execution.
13510 (continue_command): Rename 'all_threads' local to avoid hiding
13511 'all_threads' function. Adjust get_last_target_status call.
13512 (prepare_one_step): Adjust set_running call.
13513 (signal_command): Use user_visible_resume_target. Compare thread
13514 pointers instead of inferior_ptid.
13515 (info_program_command): Adjust to pass down target.
13516 (attach_command): Mark target's 'thread_executing' flag.
13517 (stop_current_target_threads_ns): New, factored out from ...
13518 (interrupt_target_1): ... this. Switch inferior before making
13519 target calls.
13520 * inferior-iter.h
13521 (struct all_inferiors_iterator, struct all_inferiors_range)
13522 (struct all_inferiors_safe_range)
13523 (struct all_non_exited_inferiors_range): Filter on
13524 process_stratum_target too. Remove explicit.
13525 * inferior.c (inferior::inferior): Push dummy target on target
13526 stack.
13527 (find_inferior_pid, find_inferior_ptid, number_of_live_inferiors):
13528 Add process_stratum_target parameter, and pass it down.
13529 (have_live_inferiors): Adjust.
13530 (switch_to_inferior_and_push_target): New.
13531 (add_inferior_command, clone_inferior_command): Handle
13532 "-no-connection" parameter. Use
13533 switch_to_inferior_and_push_target.
13534 (_initialize_inferior): Mention "-no-connection" option in
13535 the help of "add-inferior" and "clone-inferior" commands.
13536 * inferior.h: Include "process-stratum-target.h".
13537 (interrupt_target_1): Use bool.
13538 (struct inferior) <push_target, unpush_target, target_is_pushed,
13539 find_target_beneath, top_target, process_target, target_at,
13540 m_stack>: New.
13541 (discard_all_inferiors): Delete.
13542 (find_inferior_pid, find_inferior_ptid, number_of_live_inferiors)
13543 (all_inferiors, all_non_exited_inferiors): Add
13544 process_stratum_target parameter.
13545 * infrun.c: Include "gdb_select.h" and <unordered_map>.
13546 (target_last_proc_target): New global.
13547 (follow_fork_inferior): Push target on new inferior. Pass target
13548 to add_thread_silent. Call exec_on_vfork. Handle target's
13549 reference count.
13550 (follow_fork): Adjust get_last_target_status call. Also consider
13551 target.
13552 (follow_exec): Push target on new inferior.
13553 (struct execution_control_state) <target>: New field.
13554 (user_visible_resume_target): New.
13555 (do_target_resume): Call target_async.
13556 (resume_1): Set target's threads_executing flag. Consider resume
13557 target.
13558 (commit_resume_all_targets): New.
13559 (proceed): Also consider resume target. Skip threads of inferiors
13560 with no execution. Commit resumtion in all targets.
13561 (start_remote): Pass current inferior to wait_for_inferior.
13562 (infrun_thread_stop_requested): Consider target as well. Pass
13563 thread_info pointer to clear_inline_frame_state instead of ptid.
13564 (infrun_thread_thread_exit): Consider target as well.
13565 (random_pending_event_thread): New inferior parameter. Use it.
13566 (do_target_wait): Rename to ...
13567 (do_target_wait_1): ... this. Add inferior parameter, and pass it
13568 down.
13569 (threads_are_resumed_pending_p, do_target_wait): New.
13570 (prepare_for_detach): Adjust calls.
13571 (wait_for_inferior): New inferior parameter. Handle it. Use
13572 do_target_wait_1 instead of do_target_wait.
13573 (fetch_inferior_event): Adjust. Switch to representative
13574 inferior. Pass target down.
13575 (set_last_target_status): Add process_stratum_target parameter.
13576 Save target in global.
13577 (get_last_target_status): Add process_stratum_target parameter and
13578 handle it.
13579 (nullify_last_target_wait_ptid): Clear 'target_last_proc_target'.
13580 (context_switch): Check inferior_ptid == null_ptid before calling
13581 inferior_thread().
13582 (get_inferior_stop_soon): Pass down target.
13583 (wait_one): Rename to ...
13584 (poll_one_curr_target): ... this.
13585 (struct wait_one_event): New.
13586 (wait_one): New.
13587 (stop_all_threads): Adjust.
13588 (handle_no_resumed, handle_inferior_event): Adjust to consider the
13589 event's target.
13590 (switch_back_to_stepped_thread): Also consider target.
13591 (print_stop_event): Update.
13592 (normal_stop): Update. Also consider the resume target.
13593 * infrun.h (wait_for_inferior): Remove declaration.
13594 (user_visible_resume_target): New declaration.
13595 (get_last_target_status, set_last_target_status): New
13596 process_stratum_target parameter.
13597 * inline-frame.c (clear_inline_frame_state(ptid_t)): Add
13598 process_stratum_target parameter, and use it.
13599 (clear_inline_frame_state (thread_info*)): New.
13600 * inline-frame.c (clear_inline_frame_state(ptid_t)): Add
13601 process_stratum_target parameter.
13602 (clear_inline_frame_state (thread_info*)): Declare.
13603 * linux-fork.c (delete_checkpoint_command): Pass target down to
13604 find_thread_ptid.
13605 (checkpoint_command): Adjust.
13606 * linux-nat.c (linux_nat_target::follow_fork): Switch to thread
13607 instead of just tweaking inferior_ptid.
13608 (linux_nat_switch_fork): Pass target down to thread_change_ptid.
13609 (exit_lwp): Pass target down to find_thread_ptid.
13610 (attach_proc_task_lwp_callback): Pass target down to
13611 add_thread/set_running/set_executing.
13612 (linux_nat_target::attach): Pass target down to
13613 thread_change_ptid.
13614 (get_detach_signal): Pass target down to find_thread_ptid.
13615 Consider last target status's target.
13616 (linux_resume_one_lwp_throw, resume_lwp)
13617 (linux_handle_syscall_trap, linux_handle_extended_wait, wait_lwp)
13618 (stop_wait_callback, save_stop_reason, linux_nat_filter_event)
13619 (linux_nat_wait_1, resume_stopped_resumed_lwps): Pass target down.
13620 (linux_nat_target::async_wait_fd): New.
13621 (linux_nat_stop_lwp, linux_nat_target::thread_address_space): Pass
13622 target down.
13623 * linux-nat.h (linux_nat_target::async_wait_fd): Declare.
13624 * linux-tdep.c (get_thread_arch_regcache): Pass target down.
13625 * linux-thread-db.c (struct thread_db_info::process_target): New
13626 field.
13627 (add_thread_db_info): Save target.
13628 (get_thread_db_info): New process_stratum_target parameter. Also
13629 match target.
13630 (delete_thread_db_info): New process_stratum_target parameter.
13631 Also match target.
13632 (thread_from_lwp): Adjust to pass down target.
13633 (thread_db_notice_clone): Pass down target.
13634 (check_thread_db_callback): Pass down target.
13635 (try_thread_db_load_1): Always push the thread_db target.
13636 (try_thread_db_load, record_thread): Pass target down.
13637 (thread_db_target::detach): Pass target down. Always unpush the
13638 thread_db target.
13639 (thread_db_target::wait, thread_db_target::mourn_inferior): Pass
13640 target down. Always unpush the thread_db target.
13641 (find_new_threads_callback, thread_db_find_new_threads_2)
13642 (thread_db_target::update_thread_list): Pass target down.
13643 (thread_db_target::pid_to_str): Pass current inferior down.
13644 (thread_db_target::get_thread_local_address): Pass target down.
13645 (thread_db_target::resume, maintenance_check_libthread_db): Pass
13646 target down.
13647 * nto-procfs.c (nto_procfs_target::update_thread_list): Adjust.
13648 * procfs.c (procfs_target::procfs_init_inferior): Declare.
13649 (proc_set_current_signal, do_attach, procfs_target::wait): Adjust.
13650 (procfs_init_inferior): Rename to ...
13651 (procfs_target::procfs_init_inferior): ... this and adjust.
13652 (procfs_target::create_inferior, procfs_notice_thread)
13653 (procfs_do_thread_registers): Adjust.
13654 * ppc-fbsd-tdep.c: Include "inferior.h".
13655 (ppcfbsd_get_thread_local_address): Pass down target.
13656 * proc-service.c (ps_xfer_memory): Switch current inferior and
13657 program space as well.
13658 (get_ps_regcache): Pass target down.
13659 * process-stratum-target.c
13660 (process_stratum_target::thread_address_space)
13661 (process_stratum_target::thread_architecture): Pass target down.
13662 * process-stratum-target.h
13663 (process_stratum_target::threads_executing): New field.
13664 (as_process_stratum_target): New.
13665 * ravenscar-thread.c
13666 (ravenscar_thread_target::update_inferior_ptid): Pass target down.
13667 (ravenscar_thread_target::wait, ravenscar_add_thread): Pass target
13668 down.
13669 * record-btrace.c (record_btrace_target::info_record): Adjust.
13670 (record_btrace_target::record_method)
13671 (record_btrace_target::record_is_replaying)
13672 (record_btrace_target::fetch_registers)
13673 (get_thread_current_frame_id, record_btrace_target::resume)
13674 (record_btrace_target::wait, record_btrace_target::stop): Pass
13675 target down.
13676 * record-full.c (record_full_wait_1): Switch to event thread.
13677 Pass target down.
13678 * regcache.c (regcache::regcache)
13679 (get_thread_arch_aspace_regcache, get_thread_arch_regcache): Add
13680 process_stratum_target parameter and handle it.
13681 (current_thread_target): New global.
13682 (get_thread_regcache): Add process_stratum_target parameter and
13683 handle it. Switch inferior before calling target method.
13684 (get_thread_regcache): Pass target down.
13685 (get_thread_regcache_for_ptid): Pass target down.
13686 (registers_changed_ptid): Add process_stratum_target parameter and
13687 handle it.
13688 (registers_changed_thread, registers_changed): Pass target down.
13689 (test_get_thread_arch_aspace_regcache): New.
13690 (current_regcache_test): Define a couple local test_target_ops
13691 instances and use them for testing.
13692 (readwrite_regcache): Pass process_stratum_target parameter.
13693 (cooked_read_test, cooked_write_test): Pass mock_target down.
13694 * regcache.h (get_thread_regcache, get_thread_arch_regcache)
13695 (get_thread_arch_aspace_regcache): Add process_stratum_target
13696 parameter.
13697 (regcache::target): New method.
13698 (regcache::regcache, regcache::get_thread_arch_aspace_regcache)
13699 (regcache::registers_changed_ptid): Add process_stratum_target
13700 parameter.
13701 (regcache::m_target): New field.
13702 (registers_changed_ptid): Add process_stratum_target parameter.
13703 * remote.c (remote_state::supports_vCont_probed): New field.
13704 (remote_target::async_wait_fd): New method.
13705 (remote_unpush_and_throw): Add remote_target parameter.
13706 (get_current_remote_target): Adjust.
13707 (remote_target::remote_add_inferior): Push target.
13708 (remote_target::remote_add_thread)
13709 (remote_target::remote_notice_new_inferior)
13710 (get_remote_thread_info): Pass target down.
13711 (remote_target::update_thread_list): Skip threads of inferiors
13712 bound to other targets. (remote_target::close): Don't discard
13713 inferiors. (remote_target::add_current_inferior_and_thread)
13714 (remote_target::process_initial_stop_replies)
13715 (remote_target::start_remote)
13716 (remote_target::remote_serial_quit_handler): Pass down target.
13717 (remote_target::remote_unpush_target): New remote_target
13718 parameter. Unpush the target from all inferiors.
13719 (remote_target::remote_unpush_and_throw): New remote_target
13720 parameter. Pass it down.
13721 (remote_target::open_1): Check whether the current inferior has
13722 execution instead of checking whether any inferior is live. Pass
13723 target down.
13724 (remote_target::remote_detach_1): Pass down target. Use
13725 remote_unpush_target.
13726 (extended_remote_target::attach): Pass down target.
13727 (remote_target::remote_vcont_probe): Set supports_vCont_probed.
13728 (remote_target::append_resumption): Pass down target.
13729 (remote_target::append_pending_thread_resumptions)
13730 (remote_target::remote_resume_with_hc, remote_target::resume)
13731 (remote_target::commit_resume): Pass down target.
13732 (remote_target::remote_stop_ns): Check supports_vCont_probed.
13733 (remote_target::interrupt_query)
13734 (remote_target::remove_new_fork_children)
13735 (remote_target::check_pending_events_prevent_wildcard_vcont)
13736 (remote_target::remote_parse_stop_reply)
13737 (remote_target::process_stop_reply): Pass down target.
13738 (first_remote_resumed_thread): New remote_target parameter. Pass
13739 it down.
13740 (remote_target::wait_as): Pass down target.
13741 (unpush_and_perror): New remote_target parameter. Pass it down.
13742 (remote_target::readchar, remote_target::remote_serial_write)
13743 (remote_target::getpkt_or_notif_sane_1)
13744 (remote_target::kill_new_fork_children, remote_target::kill): Pass
13745 down target.
13746 (remote_target::mourn_inferior): Pass down target. Use
13747 remote_unpush_target.
13748 (remote_target::core_of_thread)
13749 (remote_target::remote_btrace_maybe_reopen): Pass down target.
13750 (remote_target::pid_to_exec_file)
13751 (remote_target::thread_handle_to_thread_info): Pass down target.
13752 (remote_target::async_wait_fd): New.
13753 * riscv-fbsd-tdep.c: Include "inferior.h".
13754 (riscv_fbsd_get_thread_local_address): Pass down target.
13755 * sol2-tdep.c (sol2_core_pid_to_str): Pass down target.
13756 * sol-thread.c (sol_thread_target::wait, ps_lgetregs, ps_lsetregs)
13757 (ps_lgetfpregs, ps_lsetfpregs, sol_update_thread_list_callback):
13758 Adjust.
13759 * solib-spu.c (spu_skip_standalone_loader): Pass down target.
13760 * solib-svr4.c (enable_break): Pass down target.
13761 * spu-multiarch.c (parse_spufs_run): Pass down target.
13762 * spu-tdep.c (spu2ppu_sniffer): Pass down target.
13763 * target-delegates.c: Regenerate.
13764 * target.c (g_target_stack): Delete.
13765 (current_top_target): Return the current inferior's top target.
13766 (target_has_execution_1): Refer to the passed-in inferior's top
13767 target.
13768 (target_supports_terminal_ours): Check whether the initial
13769 inferior was already created.
13770 (decref_target): New.
13771 (target_stack::push): Incref/decref the target.
13772 (push_target, push_target, unpush_target): Adjust.
13773 (target_stack::unpush): Defref target.
13774 (target_is_pushed): Return bool. Adjust to refer to the current
13775 inferior's target stack.
13776 (dispose_inferior): Delete, and inline parts ...
13777 (target_preopen): ... here. Only dispose of the current inferior.
13778 (target_detach): Hold strong target reference while detaching.
13779 Pass target down.
13780 (target_thread_name): Add assertion.
13781 (target_resume): Pass down target.
13782 (target_ops::beneath, find_target_at): Adjust to refer to the
13783 current inferior's target stack.
13784 (get_dummy_target): New.
13785 (target_pass_ctrlc): Pass the Ctrl-C to the first inferior that
13786 has a thread running.
13787 (initialize_targets): Rename to ...
13788 (_initialize_target): ... this.
13789 * target.h: Include "gdbsupport/refcounted-object.h".
13790 (struct target_ops): Inherit refcounted_object.
13791 (target_ops::shortname, target_ops::longname): Make const.
13792 (target_ops::async_wait_fd): New method.
13793 (decref_target): Declare.
13794 (struct target_ops_ref_policy): New.
13795 (target_ops_ref): New typedef.
13796 (get_dummy_target): Declare function.
13797 (target_is_pushed): Return bool.
13798 * thread-iter.c (all_matching_threads_iterator::m_inf_matches)
13799 (all_matching_threads_iterator::all_matching_threads_iterator):
13800 Handle filter target.
13801 * thread-iter.h (struct all_matching_threads_iterator, struct
13802 all_matching_threads_range, class all_non_exited_threads_range):
13803 Filter by target too. Remove explicit.
13804 * thread.c (threads_executing): Delete.
13805 (inferior_thread): Pass down current inferior.
13806 (clear_thread_inferior_resources): Pass down thread pointer
13807 instead of ptid_t.
13808 (add_thread_silent, add_thread_with_info, add_thread): Add
13809 process_stratum_target parameter. Use it for thread and inferior
13810 searches.
13811 (is_current_thread): New.
13812 (thread_info::deletable): Use it.
13813 (find_thread_ptid, thread_count, in_thread_list)
13814 (thread_change_ptid, set_resumed, set_running): New
13815 process_stratum_target parameter. Pass it down.
13816 (set_executing): New process_stratum_target parameter. Pass it
13817 down. Adjust reference to 'threads_executing'.
13818 (threads_are_executing): New process_stratum_target parameter.
13819 Adjust reference to 'threads_executing'.
13820 (set_stop_requested, finish_thread_state): New
13821 process_stratum_target parameter. Pass it down.
13822 (switch_to_thread): Also match inferior.
13823 (switch_to_thread): New process_stratum_target parameter. Pass it
13824 down.
13825 (update_threads_executing): Reimplement.
13826 * top.c (quit_force): Pop targets from all inferior.
13827 (gdb_init): Don't call initialize_targets.
13828 * windows-nat.c (windows_nat_target) <get_windows_debug_event>:
13829 Declare.
13830 (windows_add_thread, windows_delete_thread): Adjust.
13831 (get_windows_debug_event): Rename to ...
13832 (windows_nat_target::get_windows_debug_event): ... this. Adjust.
13833 * tracefile-tfile.c (tfile_target_open): Pass down target.
13834 * gdbsupport/common-gdbthread.h (struct process_stratum_target):
13835 Forward declare.
13836 (switch_to_thread): Add process_stratum_target parameter.
13837 * mi/mi-interp.c (mi_on_resume_1): Add process_stratum_target
13838 parameter. Use it.
13839 (mi_on_resume): Pass target down.
13840 * nat/fork-inferior.c (startup_inferior): Add
13841 process_stratum_target parameter. Pass it down.
13842 * nat/fork-inferior.h (startup_inferior): Add
13843 process_stratum_target parameter.
13844 * python/py-threadevent.c (py_get_event_thread): Pass target down.
13845
13846 2020-01-10 Pedro Alves <palves@redhat.com>
13847
13848 * remote.c (remote_target::start_remote): Don't set inferior_ptid
13849 directly. Instead find the first thread in the thread list and
13850 use switch_to_thread.
13851
13852 2020-01-10 Pedro Alves <palves@redhat.com>
13853
13854 * remote.c (remote_target::remote_add_inferior): Don't bind a
13855 process to the current inferior if the current inferior is already
13856 bound to a process.
13857
13858 2020-01-10 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
13859 Pedro Alves <palves@redhat.com>
13860
13861 * remote.c (remote_target::remote_parse_stop_reply) <W/X packets>:
13862 If no process is specified, return null_ptid instead of
13863 inferior_ptid.
13864 (remote_target::wait_as): Handle TARGET_WAITKIND_EXITED /
13865 TARGET_WAITKIND_SIGNALLED with no pid.
13866
13867 2020-01-10 Pedro Alves <palves@redhat.com>
13868
13869 * remote.c (first_remote_resumed_thread): New.
13870 (remote_target::wait_as): Use it as default event_ptid instead of
13871 inferior_ptid.
13872
13873 2020-01-10 Pedro Alves <palves@redhat.com>
13874
13875 * infrun.c (handle_no_resumed): Use all_non_exited_inferiors.
13876
13877 2020-01-10 Pedro Alves <palves@redhat.com>
13878
13879 * tracefile-tfile.c (tfile_target::close): Assert that trace_fd is
13880 not -1.
13881
13882 2020-01-10 Pedro Alves <palves@redhat.com>
13883
13884 * break-catch-sig.c (signal_catchpoint_print_it): Don't pass a
13885 ptid to get_last_target_status.
13886 * break-catch-syscall.c (print_it_catch_syscall): Don't pass a
13887 ptid to get_last_target_status.
13888 * infcmd.c (continue_command): Don't pass a target_waitstatus to
13889 get_last_target_status.
13890 (info_program_command): Don't pass a target_waitstatus to
13891 get_last_target_status.
13892 * infrun.c (init_wait_for_inferior): Use
13893 nullify_last_target_wait_ptid.
13894 (get_last_target_status): Handle nullptr arguments.
13895 (nullify_last_target_wait_ptid): Clear target_last_waitstatus.
13896 (print_stop_event): Don't pass a ptid to get_last_target_status.
13897 (normal_stop): Don't pass a ptid to get_last_target_status.
13898 * infrun.h (get_last_target_status, set_last_target_status): Move
13899 comments here and update.
13900 (nullify_last_target_wait_ptid): Declare.
13901 * linux-fork.c (fork_load_infrun_state): Remove local extern
13902 declaration of nullify_last_target_wait_ptid.
13903 * linux-nat.c (get_detach_signal): Don't pass a target_waitstatus
13904 to get_last_target_status.
13905
13906 2020-01-10 Pedro Alves <palves@redhat.com>
13907
13908 * gdbthread.h (scoped_restore_current_thread)
13909 <dont_restore, restore, m_dont_restore>: Declare.
13910 * thread.c (thread_alive): Add assertion. Return bool.
13911 (switch_to_thread_if_alive): New.
13912 (prune_threads): Switch inferior/thread.
13913 (print_thread_info_1): Switch thread before calling target methods.
13914 (scoped_restore_current_thread::restore): New, factored out from
13915 ...
13916 (scoped_restore_current_thread::~scoped_restore_current_thread):
13917 ... this.
13918 (scoped_restore_current_thread::scoped_restore_current_thread):
13919 Add assertion.
13920 (thread_apply_all_command, thread_select): Use
13921 switch_to_thread_if_alive.
13922 * infrun.c (proceed, restart_threads, handle_signal_stop)
13923 (switch_back_to_stepped_thread): Switch current thread before
13924 calling target methods.
13925
13926 2020-01-10 Pedro Alves <palves@redhat.com>
13927
13928 * inferior.c (switch_to_inferior_no_thread): New function,
13929 factored out from ...
13930 (inferior_command): ... here.
13931 * inferior.h (switch_to_inferior_no_thread): Declare.
13932 * mi/mi-main.c (run_one_inferior): Use
13933 switch_to_inferior_no_thread.
13934
13935 2020-01-10 Pedro Alves <palves@redhat.com>
13936
13937 * infcmd.c (kill_command): Remove dead code.
13938
13939 2020-01-10 Pedro Alves <palves@redhat.com>
13940
13941 * remote.c (remote_target::mourn_inferior): No longer check
13942 whether the target is running.
13943
13944 2020-01-10 Pedro Alves <palves@redhat.com>
13945
13946 * corelow.c (core_target::has_execution): Change parameter type to
13947 inferior pointer.
13948 * inferior.c (number_of_live_inferiors): Use
13949 inferior::has_execution instead of target_has_execution_1.
13950 * inferior.h (inferior::has_execution): New.
13951 * linux-thread-db.c (thread_db_target::update_thread_list): Use
13952 inferior::has_execution instead of target_has_execution_1.
13953 * process-stratum-target.c
13954 (process_stratum_target::has_execution): Change parameter type to
13955 inferior pointer. Check the inferior's PID instead of
13956 inferior_ptid.
13957 * process-stratum-target.h
13958 (process_stratum_target::has_execution): Change parameter type to
13959 inferior pointer.
13960 * record-full.c (record_full_core_target::has_execution): Change
13961 parameter type to inferior pointer.
13962 * target.c (target_has_execution_1): Change parameter type to
13963 inferior pointer.
13964 (target_has_execution_current): Adjust.
13965 * target.h (target_ops::has_execution): Change parameter type to
13966 inferior pointer.
13967 (target_has_execution_1): Change parameter type to inferior
13968 pointer. Change return type to bool.
13969 * tracefile.h (tracefile_target::has_execution): Change parameter
13970 type to inferior pointer.
13971
13972 2020-01-10 Pedro Alves <palves@redhat.com>
13973
13974 * exceptions.c (print_flush): Remove current_top_target() check.
13975
13976 2020-01-10 Pedro Alves <palves@redhat.com>
13977
13978 * remote.c (show_remote_exec_file): Show the current inferior's
13979 exec-file instead of the command variable's value.
13980
13981 2020-01-10 Pedro Alves <palves@redhat.com>
13982
13983 * record-full.c (record_full_resume_ptid): New global.
13984 (record_full_target::resume): Set it.
13985 (record_full_wait_1): Use record_full_resume_ptid instead of
13986 inferior_ptid.
13987
13988 2020-01-10 Pedro Alves <palves@redhat.com>
13989
13990 * gdbthread.h (scoped_restore_current_thread)
13991 <dont_restore, restore, m_dont_restore>: Declare.
13992 * thread.c (thread_alive): Add assertion. Return bool.
13993 (switch_to_thread_if_alive): New.
13994 (prune_threads): Switch inferior/thread.
13995 (print_thread_info_1): Switch thread before calling target methods.
13996 (scoped_restore_current_thread::restore): New, factored out from
13997 ...
13998 (scoped_restore_current_thread::~scoped_restore_current_thread):
13999 ... this.
14000 (scoped_restore_current_thread::scoped_restore_current_thread):
14001 Add assertion.
14002 (thread_apply_all_command, thread_select): Use
14003 switch_to_thread_if_alive.
14004
14005 2020-01-10 George Barrett <bob@bob131.so>
14006
14007 * stap-probe.c (stap_modify_semaphore): Don't check for null
14008 semaphores.
14009 (stap_probe::set_semaphore, stap_probe::clear_semaphore): Check
14010 for null semaphores.
14011
14012 2020-01-09 Andrew Burgess <andrew.burgess@embecosm.com>
14013
14014 * tui/tui-source.c (tui_source_window::do_scroll_vertical): Update
14015 all source windows, and maintain horizontal scroll status while
14016 doing so.
14017
14018 2020-01-09 Tom Tromey <tom@tromey.com>
14019
14020 PR tui/18932:
14021 * tui/tui-source.c (tui_source_window::do_scroll_vertical): Call
14022 update_source_window, not print_source_lines.
14023
14024 2020-01-09 Andrew Burgess <andrew.burgess@embecosm.com>
14025
14026 * tui/tui.c (tui_enable): Register tui hooks after calling
14027 tui_display_main.
14028
14029 2020-01-09 Christian Biesinger <cbiesinger@google.com>
14030
14031 * gdbsupport/common-defs.h: Don't define _FORTIFY_SOURCE on MinGW.
14032
14033 2020-01-08 Simon Marchi <simon.marchi@efficios.com>
14034
14035 * thread.c (print_thread_info_1): Fix indentation.
14036
14037 2020-01-09 Christian Biesinger <cbiesinger@google.com>
14038
14039 * symtab.c (general_symbol_info::compute_and_set_names): Move the
14040 unique_xmalloc_ptr outside the if to always free the demangled name.
14041
14042 2020-01-08 Tom Tromey <tromey@adacore.com>
14043
14044 * xcoffread.c (enter_line_range, read_xcoff_symtab)
14045 (process_xcoff_symbol, xcoff_symfile_offsets): Update.
14046 * symtab.h (MSYMBOL_VALUE_ADDRESS): Update.
14047 (struct section_offsets, ANOFFSET, SIZEOF_N_SECTION_OFFSETS):
14048 Remove.
14049 (section_offsets): New typedef.
14050 * symtab.c (fixup_section, get_msymbol_address): Update.
14051 * symmisc.c (dump_msymbols): Update.
14052 * symfile.h (relative_addr_info_to_section_offsets)
14053 (symfile_map_offsets_to_segments): Update.
14054 * symfile.c (build_section_addr_info_from_objfile)
14055 (init_objfile_sect_indices): Update.
14056 (struct place_section_arg): Change type of "offsets".
14057 (place_section): Update.
14058 (relative_addr_info_to_section_offsets): Change type of
14059 "section_offsets". Remove "num_sections" parameter.
14060 (default_symfile_offsets, syms_from_objfile_1)
14061 (set_objfile_default_section_offset): Update.
14062 (reread_symbols): No need to preserve section offsets by hand.
14063 (symfile_map_offsets_to_segments): Change type of "offsets".
14064 * stap-probe.c (relocate_address): Update.
14065 * stabsread.h (process_one_symbol): Update.
14066 * solib-target.c (struct lm_info_target) <offsets>: Change type.
14067 (solib_target_relocate_section_addresses): Update.
14068 * solib-svr4.c (enable_break, svr4_relocate_main_executable):
14069 Update.
14070 * solib-frv.c (frv_relocate_main_executable): Update.
14071 * solib-dsbt.c (dsbt_relocate_main_executable): Update.
14072 * solib-aix.c (solib_aix_get_section_offsets): Change return
14073 type.
14074 (solib_aix_solib_create_inferior_hook): Update.
14075 * remote.c (remote_target::get_offsets): Update.
14076 * psymtab.c (find_pc_sect_psymtab): Update.
14077 * psympriv.h (struct partial_symbol) <address, text_low,
14078 text_high>: Update.
14079 * objfiles.h (obj_section_offset): Update.
14080 (struct objfile) <section_offsets>: Change type.
14081 <num_sections>: Remove.
14082 (objfile_relocate): Update.
14083 * objfiles.c (entry_point_address_query): Update
14084 (relocate_one_symbol): Change type of "section_offsets".
14085 (objfile_relocate1, objfile_relocate1): Change type of
14086 "new_offsets".
14087 (objfile_rebase1): Update.
14088 * mipsread.c (mipscoff_symfile_read): Update.
14089 (read_alphacoff_dynamic_symtab): Remove "section_offsets"
14090 parameter.
14091 * mdebugread.c (parse_symbol): Change type of "section_offsets".
14092 (parse_external, psymtab_to_symtab_1): Update.
14093 * machoread.c (macho_symfile_offsets): Update.
14094 * ia64-tdep.c (ia64_find_unwind_table): Update.
14095 * hppa-tdep.c (read_unwind_info): Update.
14096 * hppa-bsd-tdep.c (hppabsd_find_global_pointer): Update.
14097 * dwarf2read.c (create_addrmap_from_index)
14098 (create_addrmap_from_aranges, dw2_find_pc_sect_compunit_symtab)
14099 (process_psymtab_comp_unit_reader, add_partial_symbol)
14100 (add_partial_subprogram, process_full_comp_unit)
14101 (read_file_scope, read_func_scope, read_lexical_block_scope)
14102 (read_call_site_scope, dwarf2_rnglists_process)
14103 (dwarf2_ranges_process, dwarf2_ranges_read)
14104 (dwarf_decode_lines_1, var_decode_location, new_symbol)
14105 (dwarf2_fetch_die_loc_sect_off, dwarf2_per_cu_text_offset):
14106 Update.
14107 * dwarf2-frame.c (execute_cfa_program, dwarf2_frame_find_fde):
14108 Update.
14109 * dtrace-probe.c (dtrace_probe::get_relocated_address): Update.
14110 * dbxread.c (read_dbx_symtab, read_ofile_symtab): Update.
14111 (process_one_symbol): Change type of "section_offsets".
14112 * ctfread.c (get_objfile_text_range): Update.
14113 * coffread.c (coff_symtab_read, enter_linenos)
14114 (process_coff_symbol): Update.
14115 * coff-pe-read.c (add_pe_forwarded_sym): Update.
14116 * amd64-windows-tdep.c (amd64_windows_find_unwind_info): Update.
14117
14118 2020-01-08 Tom Tromey <tromey@adacore.com>
14119
14120 * dwarf2read.c (parse_macro_definition): Use std::string.
14121 (parse_macro_definition): Likewise.
14122
14123 2020-01-08 Tom Tromey <tromey@adacore.com>
14124
14125 * dwarf2read.c (abbrev_table_read_table): Use std::vector.
14126 (ATTR_ALLOC_CHUNK): Remove.
14127
14128 2020-01-08 Tom Tromey <tromey@adacore.com>
14129
14130 * dwarf2read.c (fixup_go_packaging): Use unique_xmalloc_ptr.
14131
14132 2020-01-08 Tom Tromey <tromey@adacore.com>
14133
14134 * dwarf2read.c (add_partial_symbol): Use unique_xmalloc_ptr.
14135 (dwarf2_compute_name, open_dwo_file): Likewise.
14136 (process_enumeration_scope): Use std::vector.
14137 (guess_partial_die_structure_name): Use unique_xmalloc_ptr.
14138 (partial_die_info::fixup, dwarf2_start_subfile)
14139 (guess_full_die_structure_name, dwarf2_name): Likewise.
14140 (determine_prefix): Update.
14141 (guess_full_die_structure_name): Make return type const.
14142 (partial_die_full_name): Return unique_xmalloc_ptr.
14143 (DW_FIELD_ALLOC_CHUNK): Remove.
14144
14145 2020-01-07 Tom Tromey <tromey@adacore.com>
14146
14147 PR build/24937:
14148 * stap-probe.c (class stap_static_probe_ops): Add constructor.
14149
14150 2020-01-02 Jon Turney <jon.turney@dronecode.org.uk>
14151
14152 * cli/cli-style.c: Set cli_styling to 'true' in the Cygwin build.
14153
14154 2020-01-06 Andrew Burgess <andrew.burgess@embecosm.com>
14155
14156 * stack.c (print_frame_info): Move disassemble_next_line code
14157 inside source_print block.
14158
14159 2020-01-06 Eli Zaretskii <eliz@gnu.org>
14160
14161 * gdbsupport/gdb_wait.c: Include <signal.h> instead of
14162 gdb/signals.h, as we are now using native signal symbols.
14163
14164 2020-01-06 Shahab Vahedi <shahab@synopsys.com>
14165
14166 * tui/tui-disasm.c (tui_disasm_window::addr_is_displayed): Avoid
14167 overflow by an early check of content vs threshold.
14168 * tui/tui-source.c (tui_source_window::line_is_displayed):
14169 Likewise.
14170
14171 2020-01-06 Eli Zaretskii <eliz@gnu.org>
14172
14173 * NEWS: Mention the recent fix of $_exitsignal on MS-Windows.
14174
14175 2020-01-02 Jon Turney <jon.turney@dronecode.org.uk>
14176
14177 * coff-pe-read.c (read_pe_exported_syms): Don't try to read the
14178 export table if no section contains it's RVA.
14179
14180 2020-01-06 Eli Zaretskii <eliz@gnu.org>
14181
14182 * windows-tdep.c: Fix a typo in WINDOWS_SIGABRT.
14183
14184 2020-01-06 Hannes Domani <ssbssa@yahoo.de>
14185
14186 * source.c (print_source_lines_base): Set last_line_listed.
14187
14188 2020-01-06 Shahab Vahedi <shahab@synopsys.com>
14189
14190 * tui/tui-disasm.c: Remove trailing spaces.
14191
14192 2020-01-06 Eli Zaretskii <eliz@gnu.org>
14193 Pedro Alves <palves@redhat.com>
14194
14195 * Makefile.in (COMMON_SFILES): Add gdbsupport/gdb_wait.c.
14196 * windows-tdep.c: New enumeration of WINDOWS_SIG* signals.
14197 (windows_gdb_signal_to_target): New function, uses the above
14198 enumeration to convert GDB internal signal codes to equivalent
14199 Windows codes.
14200 (windows_init_abi): Call set_gdbarch_gdb_signal_to_target.
14201 * windows-nat.c: Include "gdb_wait.h".
14202 (get_windows_debug_event): Extract the fatal exception from the
14203 exit status and convert to the equivalent Posix signal number.
14204 * cli/cli-cmds.c (exit_status_set_internal_vars): Account for the
14205 possibility that WTERMSIG returns GDB_SIGNAL_UNKNOWN.
14206 * gdbsupport/gdb_wait.c: New file, implements
14207 windows_status_to_termsig.
14208 * gdbsupport/gdb_wait.h (WIFEXITED, WIFSIGNALED, WEXITSTATUS)
14209 (WTERMSIG) [__MINGW32__]: Separate definitions for MinGW.
14210
14211 2020-01-05 Andrew Burgess <andrew.burgess@embecosm.com>
14212
14213 * tui/tui-layout.c (tui_add_win_to_layout): Use tui_set_layout not
14214 show_layout.
14215
14216 2020-01-05 Luis Machado <luis.machado@linaro.org>
14217
14218 * aarch64-linux-nat.c
14219 (aarch64_linux_nat_target::thread_architecture): Use bfd_arch_aarch64
14220 and bfd_mach_aarch64.
14221
14222 2020-01-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
14223
14224 * ui-file.c (stdio_file::can_emit_style_escape)
14225 (tee_file::can_emit_style_escape): Ensure style is used also on
14226 gdb_stderr when gdb_stderr is a tty supporting styling, similarly
14227 to gdb_stdout.
14228 * main.c (set_gdb_data_directory): Use file style to output the
14229 warning that the given pathname is not a directory.
14230 * top.c (show_history_filename, gdb_safe_append_history)
14231 (show_gdb_datadir): Use file style.
14232
14233 2020-01-03 Hannes Domani <ssbssa@yahoo.de>
14234
14235 * solib-target.c (struct lm_info_target):
14236 Change offsets to be a unique_xmalloc_ptr.
14237 (solib_target_relocate_section_addresses): Update.
14238
14239 2020-01-03 Hannes Domani <ssbssa@yahoo.de>
14240
14241 * windows-nat.c (windows_clear_solib): Free so_list linked list.
14242
14243 2020-01-03 Bernd Edlinger <bernd.edlinger@hotmail.de>
14244
14245 * MAINTAINERS (Write After Approval): Add myself.
14246
14247 2020-01-02 Luis Machado <luis.machado@linaro.org>
14248
14249 * proc-service.c (get_ps_regcache): Remove reference to obsolete
14250 Cell BE architecture.
14251 * target.h (struct target_ops) <thread_architecture>: Likewise.
14252
14253 2020-01-01 Hannes Domani <ssbssa@yahoo.de>
14254
14255 * Makefile.in: Use INSTALL_PROGRAM_ENV.
14256
14257 2020-01-01 Hannes Domani <ssbssa@yahoo.de>
14258
14259 * MAINTAINERS (Write After Approval): Add myself.
14260
14261 2020-01-01 Joel Brobecker <brobecker@adacore.com>
14262
14263 * gdbarch.sh: Update copyright year range of generated files.
14264
14265 2020-01-01 Joel Brobecker <brobecker@adacore.com>
14266
14267 Update copyright year range in all GDB files.
14268
14269 2020-01-01 Joel Brobecker <brobecker@adacore.com>
14270
14271 * copyright.py: Convert to Python 3.
14272
14273 2020-01-01 Joel Brobecker <brobecker@adacore.com>
14274
14275 * copyright.py: Adapt after move of gnulib directory from gdb
14276 directory to toplevel directory.
14277
14278 2020-01-01 Joel Brobecker <brobecker@adacore.com>
14279
14280 * copyright.py (main): Exit if run from the wrong directory.
14281
14282 2020-01-01 Joel Brobecker <brobecker@adacore.com>
14283
14284 * top.c (print_gdb_version): Change copyright year to 2020.
14285
14286 2020-01-01 Joel Brobecker <brobecker@adacore.com>
14287
14288 * config/djgpp/fnchange.lst: Add entry for gdb/ChangeLog-2019.
14289
14290 For older changes see ChangeLog-2019.
14291 \f
14292 Local Variables:
14293 mode: change-log
14294 left-margin: 8
14295 fill-column: 74
14296 version-control: never
14297 coding: utf-8
14298 End:
This page took 0.348599 seconds and 4 git commands to generate.