Add a missing munmap_list move constructor
[deliverable/binutils-gdb.git] / gdb / ChangeLog
1 2020-09-25 Saagar Jha <saagar@saagarjha.com>
2
3 * compile/compile-object-load.h (struct munmap_list): Add
4 explicitly-defined move constructor.
5
6 2020-09-24 Tom Tromey <tromey@adacore.com>
7
8 PR tui/26638:
9 * tui/tui-stack.h (struct tui_locator_window) <can_focus>: New
10 method.
11 * tui/tui-data.h (struct tui_win_info) <can_focus>: New method.
12 * tui/tui-data.c (tui_next_win): Exclude non-focusable windows.
13 (tui_prev_win): Rewrite.
14
15 2020-09-23 Hannes Domani <ssbssa@yahoo.de>
16
17 * nat/windows-nat.c (handle_exception): Handle 64bit breakpoints
18 in WOW64 processes as SIGINT.
19 * nat/windows-nat.h: Make wow64_process a shared variable.
20 * windows-nat.c: Remove static wow64_process variable.
21
22 2020-09-23 Tom Tromey <tom@tromey.com>
23
24 PR symtab/25470:
25 * value.c (unpack_long, pack_long, pack_unsigned_long): Handle bit
26 offset and bit size.
27 * printcmd.c (print_scalar_formatted): Handle zero-length
28 integer.
29 (print_scalar_formatted): Use bit_size_differs_p.
30 * gdbtypes.h (enum type_specific_kind) <TYPE_SPECIFIC_INT>: New
31 constant.
32 (union type_specific): <int_stuff>: New member.
33 (struct type) <bit_size_differs_p, bit_size, bit_offset>: New
34 methods.
35 * gdbtypes.c (init_integer_type, init_boolean_type): Initialize
36 TYPE_SPECIFIC_FIELD.
37 (recursive_dump_type, copy_type_recursive): Update.
38 * dwarf2/read.c (read_base_type): Handle DW_AT_bit_size and
39 DW_AT_data_bit_offset.
40
41 2020-09-23 Tom Tromey <tom@tromey.com>
42
43 * utils.h (class gdb_argv): Add move operators.
44 <append>: New methods.
45 * compile/compile.c (build_argc_argv): Remove.
46 (compile_args_argc): Remove.
47 (compile_args_argv): Change type.
48 (set_compile_args): Simplify.
49 (append_args): Remove.
50 (filter_args): Remove argcp parameter.
51 (get_args): Return gdb_argv. Simplify.
52 (compile_to_object): Update.
53
54 2020-09-23 Tom Tromey <tom@tromey.com>
55
56 * compile/compile-object-run.c (do_module_cleanup)
57 <~do_module_cleanup> :Remove.
58 (do_module_cleanup): Update.
59 * compile/compile-object-load.h (struct munmap_list): Add move
60 assignment operator.
61 <source_file>: Now a std::string.
62 <munmap_list>: Rename. No longer a pointer.
63 * compile/compile-object-load.c (struct setup_sections_data): Add
64 constructor.
65 <setup_one_section>: Declare.
66 <munmap_list>: Move earlier.
67 <m_bfd>: New member.
68 <m_last_size, m_last_section_first, m_last_prot,
69 m_last_max_alignment>: Rename, add initializers where needed.
70 (setup_sections_data::setup_one_section): Rename from
71 setup_sections. Update.
72 (compile_object_load): Update. Don't use bfd_map_over_sections.
73
74 2020-09-23 Tom Tromey <tom@tromey.com>
75
76 * compile/compile-object-run.c (struct do_module_cleanup): Add
77 parameters to constructor. Update destructor.
78 <source_file, scope, scope_data, out_value_type, out_value_addr,
79 munmap_list_head, objfile_name_string>: Remove.
80 <module>: New member.
81 (do_module_cleanup): Update.
82 (compile_object_run): Update.
83
84 2020-09-23 Tom Tromey <tom@tromey.com>
85
86 * compile/compile.c (eval_compile_command): Update.
87 * compile/compile-object-run.h (compile_object_run): Take a
88 compile_module_up.
89 * compile/compile-object-run.c (compile_object_run): Take a
90 compile_module_up.
91 * compile/compile-object-load.h (struct compile_module): Add
92 constructor, destructor.
93 (compile_module_up): New typedef.
94 (compile_object_load): Return compile_object_up.
95 * compile/compile-object-load.c (compile_object_load): Return
96 compile_module_up.
97
98 2020-09-23 Tom Tromey <tom@tromey.com>
99
100 * compile/compile-object-run.c (struct do_module_cleanup): Add
101 constructor, destructor.
102 <objfile_name_string>: Don't use struct hack.
103 (do_module_cleanup): Use delete.
104 (compile_object_run): Use new.
105
106 2020-09-23 Tom Tromey <tom@tromey.com>
107
108 * compile/compile-cplus-types.c
109 (compile_cplus_convert_struct_or_union): Use std::vector.
110 (compile_cplus_convert_func): Likewise.
111 * compile/compile-c-types.c (convert_func): Use std::vector.
112
113 2020-09-21 Tom Tromey <tromey@adacore.com>
114
115 * sparc-tdep.c (sparc32_skip_prologue): Use
116 skip_prologue_using_sal.
117
118 2020-09-19 Tom Tromey <tom@tromey.com>
119
120 * symfile.c (add_section_size_callback): Remove.
121 (load_one_section): Rename from load_section_callback. Change
122 parameters.
123 (generic_load): Use foreach.
124
125 2020-09-19 Tom Tromey <tom@tromey.com>
126
127 * exec.c (add_to_section_table): Remove.
128 (build_section_table): Use foreach.
129
130 2020-09-19 Tom Tromey <tom@tromey.com>
131
132 * elfread.c (elf_locate_sections): Change parameters.
133 (elf_symfile_read): Use foreach.
134
135 2020-09-19 Tom Tromey <tom@tromey.com>
136
137 * cli/cli-dump.c (struct callback_data): Remove.
138 (restore_one_section): Rename from restore_section_callback.
139 Change parameters.
140 (restore_binary_file): Change parameters.
141 (restore_command): Use foreach.
142
143 2020-09-19 Tom Tromey <tom@tromey.com>
144
145 * gcore.c (make_output_phdrs): Remove 'ignored' parameter.
146 (gcore_copy_callback): Likewise.
147 (gcore_memory_sections): Use foreach.
148
149 2020-09-19 Tom Tromey <tom@tromey.com>
150
151 * osabi.h (generic_elf_osabi_sniff_abi_tag_sections): Update.
152 * osabi.c (generic_elf_osabi_sniff_abi_tag_sections): Change
153 parameters.
154 (generic_elf_osabi_sniffer): Use foreach.
155 * mips-sde-tdep.c (mips_sde_elf_osabi_sniffer): Use foreach.
156 * arm-tdep.c (arm_elf_osabi_sniffer): Use foreach.
157
158 2020-09-19 Tom Tromey <tom@tromey.com>
159
160 * dwarf2/read.c (locate_dwz_sections): Change parameters.
161 (dwarf2_get_dwz_file): Use foreach.
162 (dwarf2_locate_dwo_sections): Change parameters.
163 (open_and_init_dwo_file): Use foreach.
164 (dwarf2_locate_common_dwp_sections): Change parameters.
165 (open_and_init_dwp_file): Use foreach.
166
167 2020-09-19 Tom Tromey <tom@tromey.com>
168
169 * symfile.h: (find_lowest_section): Don't declare.
170 * symfile.c (find_lowest_section): Now static. Change
171 parameters.
172 (struct place_section_arg): Remove.
173 (place_section): Change parameters.
174 (addr_info_make_relative): Use foreach.
175 (symfile_dummy_outputs): Remove.
176 (default_symfile_relocate): Use foreach.
177
178 2020-09-19 Tom Tromey <tom@tromey.com>
179
180 * objfiles.c (add_to_objfile_sections): Rename from
181 add_to_objfile_sections_full.
182 (add_to_objfile_sections): Remove.
183 (build_objfile_section_table): Use foreach.
184
185 2020-09-19 Tom Tromey <tom@tromey.com>
186
187 * stap-probe.c (get_stap_base_address_1): Remove.
188 (get_stap_base_address): Use foreach.
189
190 2020-09-19 Tom Tromey <tom@tromey.com>
191
192 * gdb_bfd.c (free_one_bfd_section): Remove 'abfd' and 'ignore'
193 parameters.
194 (gdb_bfd_close_or_warn): Use foreach.
195
196 2020-09-19 Tom Tromey <tom@tromey.com>
197
198 * corelow.c (add_to_thread_list): Change parameters.
199 (core_target_open): Use foreach.
200
201 2020-09-19 Tom Tromey <tom@tromey.com>
202
203 * gdb_bfd.h (gdb_bfd_sections): New overload. Fix formatting of
204 existing function.
205
206 2020-09-19 Andrew Burgess <andrew.burgess@embecosm.com>
207
208 * f-valprint.c (f77_print_array_1): Adjust printing of whitespace
209 for arrays.
210
211 2020-09-19 Andrew Burgess <andrew.burgess@embecosm.com>
212
213 * eval.c: Remove 'f-lang.h' include.
214 (value_f90_subarray): Moved to f-lang.c.
215 (eval_call): Renamed to...
216 (evaluate_subexp_do_call): ...this, is no longer static, header
217 comment moved into header file.
218 (evaluate_funcall): Update call to eval_call.
219 (skip_undetermined_arglist): Moved to f-lang.c.
220 (fortran_value_subarray): Likewise.
221 (evaluate_subexp_standard): OP_F77_UNDETERMINED_ARGLIST handling
222 moved to evaluate_subexp_f.
223 (calc_f77_array_dims): Moved to f-lang.c
224 * expprint.c (print_subexp_funcall): New function.
225 (print_subexp_standard): OP_F77_UNDETERMINED_ARGLIST handling
226 moved to print_subexp_f, OP_FUNCALL uses new function.
227 (dump_subexp_body_funcall): New function.
228 (dump_subexp_body_standard): OP_F77_UNDETERMINED_ARGLIST handling
229 moved to dump_subexp_f, OP_FUNCALL uses new function.
230 * expression.h (evaluate_subexp_do_call): Declare.
231 * f-lang.c (value_f90_subarray): Moved from eval.c.
232 (skip_undetermined_arglist): Likewise.
233 (calc_f77_array_dims): Likewise.
234 (fortran_value_subarray): Likewise.
235 (evaluate_subexp_f): Add OP_F77_UNDETERMINED_ARGLIST support.
236 (operator_length_f): Likewise.
237 (print_subexp_f): Likewise.
238 (dump_subexp_body_f): Likewise.
239 * fortran-operator.def (OP_F77_UNDETERMINED_ARGLIST): Move
240 declaration of this operation to here.
241 * parse.c (operator_length_standard): OP_F77_UNDETERMINED_ARGLIST
242 support moved to operator_length_f.
243 * parser-defs.h (dump_subexp_body_funcall): Declare.
244 (print_subexp_funcall): Declare.
245 * std-operator.def (OP_F77_UNDETERMINED_ARGLIST): Moved to
246 fortran-operator.def.
247
248 2020-09-19 Andrew Burgess <andrew.burgess@embecosm.com>
249
250 * eval.c (fortran_value_subarray): New function, content is taken
251 from...
252 (evaluate_subexp_standard): ...here, in two places. Now arrays
253 and strings both call the new function.
254 (calc_f77_array_dims): Add header comment, handle strings.
255
256 2020-09-18 Victor Collod <vcollod@nvidia.com>
257
258 PR gdb/26635
259 * i386-tdep.c (i386_skip_endbr): Add a helper function to skip endbr.
260 (i386_analyze_prologue): Call i386_skip_endbr.
261
262 2020-09-18 Tom Tromey <tromey@adacore.com>
263
264 * windows-nat.c (struct windows_nat_target) <wait>: Update.
265 (windows_nat_target::wait): Update.
266 * target/wait.h (enum target_wait_flag): New. Use
267 DEF_ENUM_FLAGS_TYPE.
268 * target/target.h (target_wait): Change type of options.
269 * target.h (target_options_to_string, default_target_wait):
270 Update.
271 (struct target_ops) <wait>: Change type of options.
272 * target.c (target_wait, default_target_wait, do_option): Change
273 type of "options".
274 (target_options_to_string): Likewise.
275 * target-delegates.c: Rebuild.
276 * target-debug.h (target_debug_print_target_wait_flags): Rename
277 from target_debug_print_options.
278 * sol-thread.c (class sol_thread_target) <wait>: Update.
279 (sol_thread_target::wait): Update.
280 * rs6000-nat.c (class rs6000_nat_target) <wait>: Update.
281 (rs6000_nat_target::wait): Update.
282 * remote.c (class remote_target) <wait, wait_ns, wait_as>:
283 Update.
284 (remote_target::wait_ns, remote_target::wait_as): Change type of
285 "options".
286 (remote_target::wait): Update.
287 * remote-sim.c (struct gdbsim_target) <wait>: Update.
288 (gdbsim_target::wait): Update.
289 * record-full.c (class record_full_base_target) <wait>: Update.
290 (record_full_wait_1): Change type of "options".
291 (record_full_base_target::wait): Update.
292 * record-btrace.c (class record_btrace_target) <wait>: Update.
293 (record_btrace_target::wait): Update.
294 * ravenscar-thread.c (struct ravenscar_thread_target) <wait>:
295 Update.
296 (ravenscar_thread_target::wait): Update.
297 * procfs.c (class procfs_target) <wait>: Update.
298 (procfs_target::wait): Update.
299 * obsd-nat.h (class obsd_nat_target) <wait>: Update.
300 * obsd-nat.c (obsd_nat_target::wait): Update.
301 * nto-procfs.c (struct nto_procfs_target) <wait>: Update.
302 (nto_procfs_target::wait): Update.
303 * nbsd-nat.h (struct nbsd_nat_target) <wait>: Update.
304 * nbsd-nat.c (nbsd_wait): Change type of "options".
305 (nbsd_nat_target::wait): Update.
306 * linux-thread-db.c (class thread_db_target) <wait>: Update.
307 (thread_db_target::wait): Update.
308 * linux-nat.h (class linux_nat_target) <wait>: Update.
309 * linux-nat.c (linux_nat_target::wait): Update.
310 (linux_nat_wait_1): Update.
311 * infrun.c (do_target_wait_1, do_target_wait): Change type of
312 "options".
313 * inf-ptrace.h (struct inf_ptrace_target) <wait>: Update.
314 * inf-ptrace.c (inf_ptrace_target::wait): Update.
315 * go32-nat.c (struct go32_nat_target) <wait>: Update.
316 (go32_nat_target::wait): Update.
317 * gnu-nat.h (struct gnu_nat_target) <wait>: Update.
318 * gnu-nat.c (gnu_nat_target::wait): Update.
319 * fbsd-nat.h (class fbsd_nat_target) <wait>: Update.
320 * fbsd-nat.c (fbsd_nat_target::wait): Update.
321 * darwin-nat.h (class darwin_nat_target) <wait>: Update.
322 * darwin-nat.c (darwin_nat_target::wait): Update.
323 * bsd-uthread.c (struct bsd_uthread_target) <wait>: Update.
324 (bsd_uthread_target::wait): Update.
325 * aix-thread.c (class aix_thread_target) <wait>: Update.
326 (aix_thread_target::wait): Update.
327
328 2020-09-18 Andrew Burgess <andrew.burgess@embecosm.com>
329
330 * compile/compile-object-run.c (create_copied_type_recursive): New
331 function.
332 (compile_object_run): Use new function.
333
334 2020-08-21 Jon Turney <jon.turney@dronecode.org.uk>
335
336 * NEWS: Mention x86_64 Cygwin core file support.
337
338 2020-07-01 Jon Turney <jon.turney@dronecode.org.uk>
339
340 * windows-tdep.c (NOTE_INFO_MODULE, NOTE_INFO_MODULE64): Define.
341 (core_process_module_section): Handle NOTE_INFO_MODULE64.
342
343 2020-07-01 Jon Turney <jon.turney@dronecode.org.uk>
344
345 * windows-tdep.h: Add prototypes.
346 * i386-windows-tdep.c(windows_core_xfer_shared_libraries): Move.
347 (i386_windows_core_pid_to_str): Move and rename ...
348 * windows-tdep.c (windows_core_xfer_shared_libraries): ... to here
349 (windows_core_pid_to_str): ... and here.
350 * amd64-windows-tdep.c (amd64_windows_init_abi_common): Register here.
351
352 2020-07-01 Jon Turney <jon.turney@dronecode.org.uk>
353 * amd64-windows-tdep.c(amd64_windows_gregset_reg_offset): Add.
354 (amd64_windows_init_abi_common): ... and register.
355
356 2020-07-01 Jon Turney <jon.turney@dronecode.org.uk>
357
358 * amd64-windows-tdep.c (amd64_cygwin_core_osabi_sniffer): New.
359 (_initialize_amd64_windows_tdep): Register amd64_cygwin_core_osabi_sniffer.
360
361 2020-09-18 Pedro Alves <pedro@palves.net>
362
363 PR gdb/26631
364 * thread.c (thread_find_command): Switch inferior before calling
365 target methods.
366
367 2020-09-17 Tom Tromey <tromey@adacore.com>
368
369 * tic6x-tdep.c (tic6x_gdbarch_init): Update.
370 * target-descriptions.h (struct tdesc_arch_data_deleter): New.
371 (tdesc_arch_data_up): New typedef.
372 (tdesc_use_registers, tdesc_data_alloc): Update.
373 (tdesc_data_cleanup): Don't declare.
374 * target-descriptions.c (tdesc_data_alloc): Return a
375 tdesc_arch_data_up.
376 (tdesc_arch_data_deleter::operator()): Rename from
377 tdesc_data_cleanup. Change argument type.
378 (tdesc_use_registers): Change early_data to an rvalue reference.
379 (tdesc_use_registers): Don't use delete.
380 * sparc-tdep.c (sparc32_gdbarch_init): Update.
381 * s390-tdep.c (s390_gdbarch_init): Update.
382 * rx-tdep.c (rx_gdbarch_init): Update.
383 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
384 * riscv-tdep.c (riscv_gdbarch_init): Update.
385 * or1k-tdep.c (or1k_gdbarch_init): Update.
386 * nios2-tdep.c (nios2_gdbarch_init): Update.
387 * nds32-tdep.c (nds32_gdbarch_init): Update.
388 * mips-tdep.c (mips_gdbarch_init): Update.
389 * microblaze-tdep.c (microblaze_gdbarch_init): Update.
390 * m68k-tdep.c (m68k_gdbarch_init): Update.
391 * i386-tdep.c (i386_gdbarch_init): Update.
392 * arm-tdep.c (arm_gdbarch_init): Update.
393 * arc-tdep.c (arc_tdesc_init): Update.
394 (arc_gdbarch_init): Update.
395 * aarch64-tdep.c (aarch64_gdbarch_init): Update.
396
397 2020-09-17 Hannes Domani <ssbssa@yahoo.de>
398
399 * windows-nat.c (ctrl_c_handler): Use 32bit DbgUiRemoteBreakin
400 for WOW64 processes.
401
402 2020-09-17 Tom Tromey <tom@tromey.com>
403
404 * dwarf2/read.c (compute_compunit_symtab_includes): Use htab_up.
405
406 2020-09-17 Tom Tromey <tom@tromey.com>
407
408 * value.c (preserve_values): Update.
409 * python/py-type.c (save_objfile_types): Update.
410 * guile/scm-type.c (save_objfile_types): Update.
411 * gdbtypes.h (create_copied_types_hash): Return htab_up.
412 * gdbtypes.c (create_copied_types_hash): Return htab_up.
413 * compile/compile-object-run.c (compile_object_run): Update.
414
415 2020-09-17 Tom Tromey <tom@tromey.com>
416
417 * typeprint.h (class typedef_hash_table) <~typedef_hash_table>:
418 Remove.
419 <m_table>: Now htab_up.
420 * typeprint.c (typedef_hash_table::recursively_update)
421 (typedef_hash_table::add_template_parameters)
422 (typedef_hash_table::typedef_hash_table): Update.
423 (typedef_hash_table::~typedef_hash_table): Remove.
424 (typedef_hash_table::typedef_hash_table)
425 (typedef_hash_table::find_global_typedef)
426 (typedef_hash_table::find_typedef): Update.
427
428 2020-09-17 Tom Tromey <tom@tromey.com>
429
430 * target-descriptions.c (tdesc_use_registers): Use htab_up.
431
432 2020-09-17 Tom Tromey <tom@tromey.com>
433
434 * linespec.c (class decode_compound_collector)
435 <~decode_compound_collector>: Remove.
436 <m_unique_syms>: Now htab_up.
437 (decode_compound_collector::operator ()): Update.
438 (class symtab_collector) <~symtab_collector>: Remove.
439 <m_symtab_table>: Now htab_up.
440 (symtab_collector::operator ()): Update.
441
442 2020-09-17 Tom Tromey <tom@tromey.com>
443
444 * filename-seen-cache.c (filename_seen_cache::filename_seen_cache)
445 (filename_seen_cache::clear): Update.
446 (~filename_seen_cache): Remove.
447 (filename_seen_cache::seen): Update.
448 * filename-seen-cache.h (class filename_seen_cache) <m_tab>: Now
449 htab_up.
450 <~filename_seen_cache>: Remove.
451 <traverse>: Update.
452
453 2020-09-17 Tom Tromey <tom@tromey.com>
454
455 * completer.c (completion_tracker::discard_completions)
456 (completion_tracker::~completion_tracker)
457 (completion_tracker::maybe_add_completion)
458 (completion_tracker::remove_completion)
459 (completion_tracker::recompute_lowest_common_denominator)
460 (completion_tracker::build_completion_result): Update.
461 * completer.h (class completion_tracker) <have_completions>:
462 Update.
463 <m_entries_hash>: Now htab_up.
464
465 2020-09-17 Tom Tromey <tom@tromey.com>
466
467 * breakpoint.c (ambiguous_names_p): Use htab_up.
468
469 2020-09-17 Tom Tromey <tom@tromey.com>
470
471 * auto-load.c (struct auto_load_pspace_info)
472 <~auto_load_pspace_info, auto_load_pspace_info>: Remove.
473 <loaded_script_files, loaded_script_texts>: Change type to
474 htab_up.
475 (~auto_load_pspace_info) Remove.
476 (init_loaded_scripts_info, maybe_add_script_file)
477 (maybe_add_script_text, auto_load_info_scripts): Update.
478
479 2020-09-17 Tom Tromey <tromey@adacore.com>
480
481 * c-exp.y (name_obstack): Now static.
482
483 2020-09-17 Chungyi Chi <demonic@csie.io>
484
485 * riscv-tdep.c (riscv-insn::decode): Fix recorded insn type.
486
487 2020-09-16 Simon Marchi <simon.marchi@efficios.com>
488
489 * breakpoint.h (init_catchpoint): Change int parameter to bool.
490 (add_solib_catchpoint): Likewise.
491 * breakpoint.c (struct solib_catchpoint) <is_load>: Change type
492 to bool.
493 (add_solib_catchpoint): Change int parameter/variable to bool.
494 (catch_load_or_unload): Likewise.
495 (init_catchpoint): Likewise.
496 (create_fork_vfork_event_catchpoint): Likewise.
497 (catch_fork_command_1): Likewise.
498 (catch_exec_command_1): Likewise.
499
500 2020-09-16 Simon Marchi <simon.marchi@efficios.com>
501
502 * gdb-gdb.py.in (class StructTypePrettyPrinter) <to_string>:
503 Change instance_flags to m_instance_flags.
504
505 2020-09-16 Tom Tromey <tromey@adacore.com>
506
507 PR gdb/26598:
508 * infrun.c (fill_in_stop_func): Use find_pc_partial_function_sym.
509
510 2020-09-16 John Baldwin <jhb@FreeBSD.org>
511
512 * fbsd-nat.c (fbsd_nat_target::wait): Always check for
513 PL_FLAG_EXEC.
514 (fbsd_nat_target::insert_exec_catchpoint)
515 (fbsd_nat_target::remove_exec_catchpoint): Always define.
516 * fbsd-nat.h (fbsd_nat_target::insert_exec_catchpoint)
517 (fbsd_nat_target::remove_exec_catchpoint): Always declare.
518
519 2020-09-16 John Baldwin <jhb@FreeBSD.org>
520
521 * configure.ac: Remove check for kinfo_getvmmap().
522 * configure, config.in: Regenerate.
523 * fbsd-nat.c (fbsd_read_mapping): Remove
524 (fbsd_nat_target::find_memory_regions): Remove the procfs version.
525 (fbsd_nat_target::info_proc): Assume kinfo_getfile() and
526 kinfo_get_vmmap() are always present.
527
528 2020-09-16 John Baldwin <jhb@FreeBSD.org>
529
530 * fbsd-nat.c: Always include support for
531 TARGET_OBJECT_SIGNAL_INFO.
532
533 2020-09-16 John Baldwin <jhb@FreeBSD.org>
534
535 * fbsd-nat.c (fbsd_nat_target::pid_to_exec_file): Always use
536 sysctl and remove procfs fallback.
537
538 2020-09-16 John Baldwin <jhb@FreeBSD.org>
539
540 * fbsd-nat.c: Assume PT_LWPINFO is always defined.
541 * fbsd-nat.h: Likewise.
542
543 2020-09-16 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
544
545 * breakpoint.c (commands_command_1): Make a copy of the 'arg'
546 argument.
547
548 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
549
550 * ada-lang.c (ada_language_data): Delete.
551 (ada_language): Remove references to ada_language_data.
552 * c-lang.c (c_language_data): Delete.
553 (c_language): Remove references to c_language_data.
554 (cplus_language_data): Delete.
555 (cplus_language): Remove references to cplus_language_data.
556 (asm_language_data): Delete.
557 (asm_language): Remove references to asm_language_data.
558 (minimal_language_data): Delete.
559 (minimal_language): Remove references to minimal_language_data.
560 * d-lang.c (d_language_data): Delete.
561 (d_language): Remove references to d_language_data.
562 * f-lang.c (f_language_data): Delete.
563 (f_language): Remove references to f_language_data.
564 * go-lang.c (go_language_data): Delete.
565 (go_language): Remove references to go_language_data.
566 * language.c (unknown_language_data): Delete.
567 (unknown_language): Remove references to unknown_language_data.
568 (auto_language_data): Delete.
569 (auto_language): Remove references to auto_language_data.
570 * language.h (language_data): Delete struct.
571 (language_defn): No longer inherit from language_data.
572 * m2-lang.c (m2_language_data): Delete.
573 (m2_language): Remove references to m2_language_data.
574 * objc-lang.c (objc_language_data): Delete.
575 (objc_language): Remove references to objc_language_data.
576 * opencl-lang.c (opencl_language_data): Delete.
577 (opencl_language): Remove references to opencl_language_data.
578 * p-lang.c (pascal_language_data): Delete.
579 (pascal_language): Remove references to pascal_language_data.
580 * rust-lang.c (rust_language_data): Delete.
581 (rust_language): Remove references to rust_language_data.
582
583 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
584
585 * ada-lang.c (ada_language_data): Remove la_op_print_tab
586 initializer.
587 (ada_language::opcode_print_table): New member function.
588 * c-lang.c (c_language_data): Remove la_op_print_tab initializer.
589 (c_language::opcode_print_table): New member function.
590 (cplus_language_data): Remove la_op_print_tab initializer.
591 (cplus_language::opcode_print_table): New member function.
592 (asm_language_data): Remove la_op_print_tab initializer.
593 (asm_language::opcode_print_table): New member function.
594 (minimal_language_data): Remove la_op_print_tab initializer.
595 (minimal_language::opcode_print_table): New member function.
596 * d-lang.c (d_language_data): Remove la_op_print_tab initializer.
597 (d_language::opcode_print_table): New member function.
598 * expprint.c (print_subexp_standard): Update call to
599 opcode_print_table.
600 (op_string): Likewise.
601 * f-lang.c (f_language_data): Remove la_op_print_tab initializer.
602 (f_language::opcode_print_table): New member function.
603 * go-lang.c (go_language_data): Remove la_op_print_tab
604 initializer.
605 (go_language::opcode_print_table): New member function.
606 * language.c (unknown_language_data): Remove la_op_print_tab
607 initializer.
608 (unknown_language::opcode_print_table): New member function.
609 (auto_language_data): Remove la_op_print_tab initializer.
610 (auto_language::opcode_print_table): New member function.
611 * language.h (language_data): Remove la_op_print_tab field.
612 (language_defn::opcode_print_table): Declare new member function.
613 * m2-lang.c (m2_language_data): Remove la_op_print_tab
614 initializer.
615 (m2_language::opcode_print_table): New member function.
616 * objc-lang.c (objc_language_data): Remove la_op_print_tab
617 initializer.
618 (objc_language::opcode_print_table): New member function.
619 * opencl-lang.c (opencl_language_data): Remove la_op_print_tab
620 initializer.
621 (opencl_language::opcode_print_table): New member function.
622 * p-lang.c (pascal_language_data): Remove la_op_print_tab
623 initializer.
624 (pascal_language::opcode_print_table): New member function.
625 * rust-lang.c (rust_language_data): Remove la_op_print_tab
626 initializer.
627 (rust_language::opcode_print_table): New member function.
628
629 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
630
631 * ada-lang.c (ada_language_data): Remove la_exp_desc initializer.
632 (ada_language::expression_ops): New member function.
633 * c-lang.c (c_language_data): Remove la_exp_desc initializer.
634 (c_language::expression_ops): New member function.
635 (cplus_language_data): Remove la_exp_desc initializer.
636 (cplus_language::expression_ops): New member function.
637 (asm_language_data): Remove la_exp_desc initializer.
638 (asm_language::expression_ops): New member function.
639 (minimal_language_data): Remove la_exp_desc initializer.
640 (minimal_language::expression_ops): New member function.
641 * d-lang.c (d_language_data): Remove la_exp_desc initializer.
642 (d_language::expression_ops): New member function.
643 * eval.c (evaluate_subexp): Update call to expression_ops.
644 * expprint.c (print_subexp): Likewise.
645 (op_name): Likewise.
646 (dump_subexp_body): Likewise.
647 * f-lang.c (f_language_data): Remove la_exp_desc initializer.
648 (f_language::expression_ops): New member function.
649 * go-lang.c (go_language_data): Remove la_exp_desc initializer.
650 (go_language::expression_ops): New member function.
651 * language.c (language_defn::expression_ops): New function.
652 (unknown_language_data): Remove la_exp_desc initializer.
653 (auto_language_data): Likewise.
654 * language.h (language_data): Remove la_exp_desc field.
655 (language_defn::expression_ops): Declare new member function.
656 * m2-lang.c (m2_language_data): Remove la_exp_desc initializer.
657 (m2_language::expression_ops): New member function.
658 * objc-lang.c (objc_language_data): Remove la_exp_desc
659 initializer.
660 * opencl-lang.c (opencl_language_data): Remove la_exp_desc
661 initializer.
662 (opencl_language::expression_ops): New member function.
663 * p-lang.c (pascal_language_data): Remove la_exp_desc initializer.
664 * parse.c (operator_length): Update call to expression_ops.
665 (exp_iterate): Likewise.
666 * rust-lang.c (rust_language_data): Remove la_exp_desc
667 initializer.
668 (ruse_language::expression_ops): New member function.
669
670 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
671
672 * ada-lang.c (ada_language_data): Remove la_varobj_ops
673 initializer.
674 (ada_language::varobj_ops): New member function.
675 * c-lang.c (c_language_data): Remove la_varobj_ops
676 initializer.
677 (cplus_language_data): Likewise.
678 (cplus_language::varobj_ops): New member function.
679 (asm_language_data): Remove la_varobj_ops initializer.
680 (minimal_language_data): Likewise.
681 * d-lang.c (d_language_data): Likewise.
682 * f-lang.c (f_language_data): Likewise.
683 * go-lang.c (go_language_data): Likewise.
684 * language.c (language_defn::varobj_ops): New function.
685 (unknown_language_data): Remove la_varobj_ops
686 initializer.
687 (auto_language_data): Likewise.
688 * language.h (language_data): Remove la_varobj_ops field.
689 (language_defn::varobj_ops): Declare new member function.
690 * m2-lang.c (m2_language_data): Remove la_varobj_ops initializer.
691 * objc-lang.c (objc_language_data): Likewise.
692 * opencl-lang.c (opencl_language_data): Likewise.
693 * p-lang.c (pascal_language_data): Likewise.
694 * rust-lang.c (rust_language_data): Likewise.
695 * varobj.c (varobj_create): Update call to varobj_ops.
696 * varobj.h (default_varobj_ops): Delete define.
697
698 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
699
700 * ada-lang.c (ada_language_data): Remove la_macro_expansion
701 initializer.
702 * c-lang.c (c_language_data): Likewise.
703 (c_language::macro_expansion): New member function.
704 (cplus_language_data): Likewise.
705 (cplus_language::macro_expansion): New member function.
706 (asm_language_data): Likewise.
707 (asm_language::macro_expansion): New member function.
708 (minimal_language_data): Likewise.
709 (minimal_language::macro_expansion): New member function.
710 * d-lang.c (d_language_data): Remove la_macro_expansion
711 initializer.
712 * f-lang.c (f_language_data): Likewise.
713 * go-lang.c (go_language_data): Likewise.
714 * language.c (unknown_language_data): Likewise.
715 (auto_language_data): Likewise.
716 * language.h (language_data): Remove la_macro_expansion field.
717 (language_defn::macro_expansion): New member function.
718 * m2-lang.c (m2_language_data): Remove la_macro_expansion
719 initializer.
720 * objc-lang.c (objc_language_data): Likewise.
721 (objc_language::macro_expansion): New member function.
722 * opencl-lang.c (opencl_language_data): Likewise.
723 (opencl_language::macro_expansion): New member function.
724 * p-lang.c (pascal_language_data): Remove la_macro_expansion
725 initializer.
726 * rust-lang.c (rust_language_data): Likewise.
727 * symtab.c (default_collect_symbol_completion_matches_break_on):
728 Update call to macro_expansion.
729
730 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
731
732 * ada-lang.c (ada_language_data): Remove la_array_ordering
733 initializer.
734 * c-lang.c (c_language_data): Likewise.
735 (cplus_language_data): Likewise.
736 (asm_language_data): Likewise.
737 (minimal_language_data): Likewise.
738 * d-lang.c (d_language_data): Likewise.
739 * dwarf2/read.c (read_array_order): Update for call to
740 array_ordering.
741 * f-lang.c (f_language_data): Remove la_array_ordering
742 initializer.
743 (f_language::array_ordering): New member function.
744 * go-lang.c (go_language_data): Remove la_array_ordering
745 initializer.
746 * language.c (unknown_language_data): Likewise.
747 (auto_language_data): Likewise.
748 * language.h (language_data): Delete la_array_ordering field.
749 (language_defn::array_ordering): New member function.
750 * m2-lang.c (m2_language_data): Remove la_array_ordering
751 initializer.
752 * objc-lang.c (objc_language_data): Likewise.
753 * opencl-lang.c (opencl_language_data): Likewise.
754 * p-lang.c (pascal_language_data): Likewise.
755 * rust-lang.c (rust_language_data): Likewise.
756
757 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
758
759 * ada-lang.c (ada_language_data): Remove la_case_sensitivity
760 initializer.
761 * c-lang.c (c_language_data): Likewise.
762 (cplus_language_data): Likewise.
763 (asm_language_data): Likewise.
764 (minimal_language_data): Likewise.
765 * d-lang.c (d_language_data): Likewise.
766 * f-lang.c (f_language_data): Likewise.
767 (f_language::case_sensitivity): New member function.
768 * go-lang.c (go_language_data): Remove la_case_sensitivity
769 initializer.
770 * language.c (enum case_mode): Moved here from language.h.
771 (case_mode): Make static.
772 (show_case_command): Update for case_sensitivity being a method.
773 (set_case_command): Likewise.
774 (set_range_case): Likewise.
775 (unknown_language_data): Remove la_case_sensitivity initializer.
776 (auto_language_data): Likewise.
777 * language.h (case_mode): Delete, move enum declaration to
778 language.c.
779 (language_data): Delete la_case_sensitivity field.
780 (language_defn::case_sensitivity): New member function.
781 * m2-lang.c (m2_language_data): Remove la_case_sensitivity
782 initializer.
783 * objc-lang.c (objc_language_data): Likewise.
784 * opencl-lang.c (opencl_language_data): Likewise.
785 * p-lang.c (pascal_language_data): Likewise.
786 * rust-lang.c (rust_language_data): Likewise.
787
788 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
789
790 * ada-lang.c (ada_language_data): Remove la_range_check
791 initializer.
792 * c-lang.c (c_language_data): Likewise.
793 (cplus_language_data): Likewise.
794 (asm_language_data): Likewise.
795 (minimal_language_data): Likewise.
796 * d-lang.c (d_language_data): Likewise.
797 * f-lang.c (f_language_data): Likewise.
798 (f_language::range_checking_on_by_default): New member function.
799 * go-lang.c (go_language_data): Remove la_range_check initializer.
800 * language.c (enum range_mode): Moved here from language.h.
801 (range_mode): Made static.
802 (show_range_command): Update to use
803 range_checking_on_by_default.
804 (set_range_command): Likewise.
805 (set_range_case): Likewise.
806 (unknown_language_data): Remove la_range_check initializer.
807 (auto_language_data): Likewise.
808 * language.h (range_mode): Delete. Enum definition moved to
809 language.c.
810 (language_data): Remove la_range_check field.
811 (language_defn::range_checking_on_by_default): New member
812 function.
813 * m2-lang.c (m2_language_data): Remove la_range_check initializer.
814 (m2_language::range_checking_on_by_default): New member function.
815 * objc-lang.c (objc_language_data): Remove la_range_check
816 initializer.
817 * opencl-lang.c (opencl_language_data): Likewise.
818 * p-lang.c (pascal_language_data): Likewise.
819 (pascal_language::range_checking_on_by_default): New member
820 function.
821 * rust-lang.c (rust_language_data): Remove la_range_check
822 initializer.
823 (rust_language::range_checking_on_by_default): New member
824 function.
825
826 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
827
828 * dwarf2/read.c (dwarf2_physname): Remove special case for
829 language_go.
830 * go-lang.c (go_language::store_sym_names_in_linkage_form_p): New
831 member function.
832
833 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
834
835 * ada-lang.c (ada_language_data): Remove
836 la_store_sym_names_in_linkage_form_p initializer.
837 (ada_language::store_sym_names_in_linkage_form_p): New member
838 function.
839 * c-lang.c (c_language_data): Remove
840 la_store_sym_names_in_linkage_form_p initializer.
841 (c_language::store_sym_names_in_linkage_form_p): New member
842 function.
843 (cplus_language_data): Remove la_store_sym_names_in_linkage_form_p
844 initializer.
845 (asm_language_data): Likewise.
846 (asm_language::store_sym_names_in_linkage_form_p): New member
847 function.
848 (minimal_language_data): Remove
849 la_store_sym_names_in_linkage_form_p initializer.
850 (minimal_language::store_sym_names_in_linkage_form_p): New member
851 function.
852 * d-lang.c (d_language_data): Remove
853 la_store_sym_names_in_linkage_form_p initializer.
854 * dwarf2/read.c (dwarf2_physname): Update call to
855 store_sym_names_in_linkage_form_p.
856 * f-lang.c (f_language_data): Remove
857 la_store_sym_names_in_linkage_form_p initializer.
858 * go-lang.c (go_language_data): Remove
859 la_store_sym_names_in_linkage_form_p initializer.
860 * language.c (unknown_language_data): Remove
861 la_store_sym_names_in_linkage_form_p initializer.
862 (unknown_language::store_sym_names_in_linkage_form_p): New member
863 function.
864 (auto_language_data): Remove la_store_sym_names_in_linkage_form_p
865 initializer.
866 (auto_language::store_sym_names_in_linkage_form_p): New member
867 function.
868 * language.h (language_data): Remove
869 la_store_sym_names_in_linkage_form_p member variable.
870 (language_defn::store_sym_names_in_linkage_form_p): New member
871 function.
872 * m2-lang.c (m2_language_data): Remove
873 la_store_sym_names_in_linkage_form_p initializer.
874 * objc-lang.c (objc_language_data): Likewise.
875 * opencl-lang.c (opencl_language_data): Likewise.
876 * p-lang.c (pascal_language_data): Likewise.
877 * rust-lang.c (rust_language_data): Likewise.
878
879 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
880
881 * ada-lang.c (ada_language_data): Remove string_lower_bound
882 initializer.
883 * c-lang.c (c_language_data): Likewise.
884 (cplus_language_data): Likewise.
885 (asm_language_data): Likewise.
886 (minimal_language_data): Likewise.
887 * d-lang.c (d_language_data): Likewise.
888 * f-lang.c (f_language_data): Likewise.
889 * go-lang.c (go_language_data): Likewise.
890 * language.c (unknown_language_data): Likewise.
891 (auto_language_data): Likewise.
892 * language.h (language_data): Remove string_lower_bound field.
893 (language_defn::string_lower_bound): New member function.
894 * m2-lang.c (m2_language_data): Remove string_lower_bound
895 initializer.
896 (m2_language::string_lower_bound): New member function.
897 * objc-lang.c (objc_language_data): Remove string_lower_bound
898 initializer.
899 * opencl-lang.c (opencl_language_data): Likewise.
900 * p-lang.c (pascal_language_data): Likewise.
901 * rust-lang.c (rust_language_data): Likewise.
902 * valops.c (value_cstring): Update call to string_lower_bound.
903 (value_string): Likewise.
904 * value.c (allocate_repeated_value): Likewise.
905
906 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
907
908 * valops.c (value_repeat): Fix incorrect argument name in comment.
909
910 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
911
912 * ada-lang.c (ada_language_data): Remove c_style_arrays
913 initializer.
914 (ada_language::c_style_arrays_p): New member fuction.
915 * c-lang.c (c_language_data): Remove c_style_arrays
916 initializer.
917 (cplus_language_data): Likewise.
918 (asm_language_data): Likewise.
919 (minimal_language_data): Likewise.
920 * d-lang.c (d_language_data): Likewise.
921 * eval.c (ptrmath_type_p): Update call to c_style_arrays_p.
922 * f-lang.c (f_language_data): Remove c_style_arrays initializer.
923 (f_language::c_style_arrays_p): New member function.
924 * go-lang.c (go_language_data): Remove c_style_arrays initializer.
925 * infcall.c (value_arg_coerce): Update call to c_style_arrays_p.
926 * language.c (unknown_language_data): Remove c_style_arrays
927 initializer.
928 (auto_language_data): Likewise.
929 * language.h (language_data): Remove c_style_arrays field.
930 (language_defn::c_style_arrays_p): New member function.
931 * m2-lang.c (m2_language_data): Remove c_style_arrays initializer.
932 (m2_language::c_style_arrays_p): New member function.
933 * objc-lang.c (objc_language_data): Remove c_style_arrays
934 initializer.
935 * opencl-lang.c (opencl_language_data): Likewise.
936 * p-lang.c (pascal_language_data): Likewise.
937 * rust-lang.c (rust_language_data): Likewise.
938 * valarith.c (value_subscript): Update call to c_style_arrays_p,
939 and update local variable to a bool.
940 * valops.c (value_cast): Update call to c_style_arrays_p.
941 (value_array): Likewise.
942 * value.c (coerce_array): Likewise.
943
944 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
945
946 * ada-lang.c (ada_language_data): Remove la_language initializer.
947 * c-lang.c (c_language_data): Likewise.
948 (cplus_language_data): Likewise.
949 (asm_language_data): Likewise.
950 (minimal_language_data): Likewise.
951 * d-lang.c (d_language_data): Likewise.
952 * f-lang.c (f_language_data): Likewise.
953 * go-lang.c (go_language_data): Likewise.
954 * language.c (unknown_language_data): Likewise.
955 (auto_language_data): Likewise.
956 * language.h (language_data): Remove la_language field.
957 (language_defn::language_defn): Initialise la_language field.
958 (language_defn::la_language): New member variable.
959 * m2-lang.c (m2_language_data): Remove la_language field.
960 * objc-lang.c (objc_language_data): Likewise.
961 * opencl-lang.c (opencl_language_data): Likewise.
962 * p-lang.c (pascal_language_data): Likewise.
963 * rust-lang.c (rust_language_data): Likewise.
964
965 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
966
967 * ada-lang.c (ada_extensions): Delete, moved into
968 ada_language::filename_extensions.
969 (ada_language_data): Remove la_filename_extensions initializer.
970 (ada_language::filename_extensions): New member function.
971 * c-lang.c (c_extensions): Delete, moved into
972 c_language::filename_extensions.
973 (c_language_data): Remove la_filename_extensions initializer.
974 (c_language::filename_extensions): New member function.
975 (cplus_extensions): Delete, moved into
976 cplus_language::filename_extensions.
977 (cplus_language_data): Remove la_filename_extensions initializer.
978 (cplus_language::filename_extensions): New member function.
979 (asm_extensions): Delete, moved into
980 asm_language::filename_extensions.
981 (asm_language_data): Remove la_filename_extensions initializer.
982 (asm_language::filename_extensions): New member function.
983 (minimal_language_data): Remove la_filename_extensions
984 initializer.
985 * d-lang.c (d_extensions): Delete, moved into
986 d_language::filename_extensions.
987 (d_language_data): Remove la_filename_extensions initializer.
988 (d_language::filename_extensions): New member function.
989 * f-lang.c (f_extensions): Delete, moved into
990 f_language::filename_extensions.
991 (f_language_data): Remove la_filename_extensions initializer.
992 (f_language::filename_extensions): New member function.
993 * go-lang.c (go_language_data): Remove la_filename_extensions
994 initializer.
995 * language.c (add_set_language_command): Update now that
996 filename_extensions returns a vector.
997 (unknown_language_data): Remove la_filename_extensions
998 initializer.
999 (auto_language_data): Likewise.
1000 * language.h (language_data): Remove la_filename_extensions field.
1001 (language_defn::filename_extensions): New member function.
1002 * m2-lang.c (m2_language_data): Remove la_filename_extensions
1003 initializer.
1004 * objc-lang.c (objc_extensions): Delete, moved into
1005 objc_language::filename_extensions.
1006 (objc_language_data): Remove la_filename_extensions initializer.
1007 (objc_language::filename_extensions): New member function.
1008 * opencl-lang.c (opencl_language_data): Remove
1009 la_filename_extensions initializer.
1010 * p-lang.c (pascal_extensions): Delete, moved into
1011 pascal_language::filename_extensions.
1012 (pascal_language_data): Remove la_filename_extensions initializer.
1013 (pascal_language::filename_extensions): New member function.
1014 * rust-lang.c (rust_extensions): Delete, moved into
1015 rust_language::filename_extensions.
1016 (rust_language_data): Remove la_filename_extensions initializer.
1017 (rust_language::filename_extensions): New member function.
1018 * symfile.c (add_filename_language): Add new assert.
1019
1020 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
1021
1022 * ada-lang.c (ada_language_data): Remove la_name and
1023 la_natural_name initializers.
1024 (ada_language::name): New member function.
1025 (ada_language::natural_name): New member function.
1026 * c-lang.c (c_language_data): Remove la_name and
1027 la_natural_name initializers.
1028 (c_language::name): New member function.
1029 (c_language::natural_name): New member function.
1030 (cplus_language_data): Remove la_name and
1031 la_natural_name initializers.
1032 (cplus_language::name): New member function.
1033 (cplus_language::natural_name): New member function.
1034 (asm_language_data): Remove la_name and
1035 la_natural_name initializers.
1036 (asm_language::name): New member function.
1037 (asm_language::natural_name): New member function.
1038 (minimal_language_data): Remove la_name and
1039 la_natural_name initializers.
1040 (minimal_language::name): New member function.
1041 (minimal_language::natural_name): New member function.
1042 * compile/compile.c (compile_to_object): Update call to
1043 lanugage_defn::name.
1044 * d-lang.c (d_language_data): Remove la_name and
1045 la_natural_name initializers.
1046 (d_language::name): New member function.
1047 (d_language::natural_name): New member function.
1048 * expprint.c (print_subexp_standard): Update call to
1049 language_defn::name.
1050 (dump_raw_expression): Likewise
1051 (dump_prefix_expression): Likewise.
1052 * f-lang.c (f_language_data): Remove la_name and
1053 la_natural_name initializers.
1054 (f_language::name): New member function.
1055 (f_language::natural_name): New member function.
1056 * go-lang.c (go_language_data): Remove la_name and
1057 la_natural_name initializers.
1058 (go_language::name): New member function.
1059 (go_language::natural_name): New member function.
1060 * language.c (show_language_command): Update call to
1061 language_defn::name.
1062 (set_language_command): Likewise.
1063 (language_enum): Likewise.
1064 (language_str): Likewise.
1065 (add_set_language_command): Likewise, use
1066 language_defn::natural_name in the doc string.
1067 (unknown_language_data): Remove la_name and
1068 la_natural_name initializers.
1069 (unknown_language::name): New member function.
1070 (unknown_language::natural_name): New member function.
1071 (auto_language_data): Remove la_name and
1072 la_natural_name initializers.
1073 (auto_language::name): New member function.
1074 (auto_language::natural_name): New member function.
1075 (language_lookup_primitive_type_as_symbol): Update call to
1076 language_defn::name.
1077 * language.h (language_data): Remove la_name and la_natural_name
1078 member variables.
1079 (language_defn::name): New member function.
1080 (language_defn::natural_name): New member function.
1081 * m2-lang.c (m2_language_data): Remove la_name and
1082 la_natural_name initializers.
1083 (m2_language::name): New member function.
1084 (m2_language::natural_name): New member function.
1085 * mi/mi-cmd-var.c (mi_cmd_var_info_expression): Update call to
1086 language_defn::natural_name.
1087 * objc-lang.c (objc_language_data): Remove la_name and
1088 la_natural_name initializers.
1089 (objc_language::name): New member function.
1090 (objc_language::natural_name): New member function.
1091 * opencl-lang.c (opencl_language_data): Remove la_name and
1092 la_natural_name initializers.
1093 (opencl_language::name): New member function.
1094 (opencl_language::natural_name): New member function.
1095 * p-lang.c (pascal_language_data): Remove la_name and
1096 la_natural_name initializers.
1097 (pascal_language::name): New member function.
1098 (pascal_language::natural_name): New member function.
1099 * rust-lang.c (rust_language_data): Remove la_name and
1100 la_natural_name initializers.
1101 (rust_language::name): New member function.
1102 (rust_language::natural_name): New member function.
1103 * symtab.c (lookup_language_this): Update call to
1104 language_defn::name.
1105
1106 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
1107
1108 * ada-lang.c (ada_language_data): Remove la_name_of_this
1109 initializer.
1110 * ax-gdb.c (gen_expr): Update call to name_of_this.
1111 * c-exp.y (classify_name): Likewise.
1112 * c-lang.c (c_language_data): Remove la_name_of_this initializer.
1113 (cplus_language_data): Likewise.
1114 (cplus_language::name_of_this): New member function.
1115 (asm_language_data): Remove la_name_of_this initializer.
1116 (minimal_language_data): Likewise.
1117 * d-lang.c (d_language_data): Likewise.
1118 (d_language::name_of_this): New member function.
1119 * expprint.c (print_subexp_standard): Update call to name_of_this.
1120 * f-lang.c (f_language_data): Remove la_name_of_this initializer.
1121 * go-lang.c (go_language_data): Likewise.
1122 * language.c (unknown_language_data): Likewise.
1123 (unknown_language::name_of_this): New member function.
1124 (auto_language_data): Remove la_name_of_this initializer.
1125 (auto_language::name_of_this): New member function.
1126 * language.h (language_data): Delete la_name_of_this member
1127 variable.
1128 (language_defn::name_of_this): New member function.
1129 * m2-lang.c (m2_language_data): Remove la_name_of_this
1130 initializer.
1131 * objc-lang.c (objc_language_data): Likewise.
1132 (objc_language::name_of_this): New member function.
1133 * opencl-lang.c (opencl_language_data): Remove la_name_of_this
1134 initializer.
1135 * p-lang.c (pascal_language_data): Likewise.
1136 (pascal_language::name_of_this): New member function.
1137 * rust-lang.c (rust_language_data): Remove la_name_of_this
1138 initializer.
1139 * symtab.c (lookup_language_this): Update call to name_of_this.
1140 (lookup_symbol_aux): Likewise.
1141 * valops.c (value_of_this): Likewise.
1142
1143 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
1144
1145 * ada-lang.c (ada_language_data): Remove
1146 la_struct_too_deep_ellipsis initializer.
1147 (ada_language::struct_too_deep_ellipsis): New member function.
1148 * c-lang.c (c_language_data): Remove la_struct_too_deep_ellipsis
1149 initializer.
1150 (cplus_language_data): Likewise.
1151 (asm_language_data): Likewise.
1152 (minimal_language_data): Likewise.
1153 * cp-valprint.c (cp_print_value): Update call to
1154 struct_too_deep_ellipsis.
1155 * d-lang.c (d_language_data): Remove la_struct_too_deep_ellipsis
1156 initializer.
1157 * f-lang.c (f_language_data): Likewise.
1158 (f_language::struct_too_deep_ellipsis): New member function.
1159 * go-lang.c (go_language_data): Remove la_struct_too_deep_ellipsis
1160 initializer.
1161 * language.c (unknown_language_data): Likewise.
1162 (auto_language_data): Likewise.
1163 * language.h (language_data): Delete la_struct_too_deep_ellipsis
1164 member variable.
1165 (language_defn::struct_too_deep_ellipsis): New member function.
1166 * m2-lang.c (m2_language_data): Remove la_struct_too_deep_ellipsis
1167 initializer.Q
1168 * objc-lang.c (objc_language_data): Likewise.
1169 * opencl-lang.c (opencl_language_data): Likewise.
1170 * p-lang.c (pascal_language_data): Likewise.
1171 * rust-lang.c (rust_language_data): Likewise.
1172 * valprint.c (val_print_check_max_depth): Update call to
1173 struct_too_deep_ellipsis.
1174
1175 2020-09-16 Felix Willgerodt <felix.willgerodt@intel.com>
1176
1177 * MAINTAINERS (Write After Approval): Add myself.
1178
1179 2020-09-15 Tom Tromey <tom@tromey.com>
1180
1181 * f-valprint.c (f_value_print_inner) <case TYPE_CODE_INT>:
1182 Remove.
1183
1184 2020-09-15 Tom Tromey <tom@tromey.com>
1185
1186 * rust-lang.c (rust_value_print_inner): Remove TYPE_CODE_MEMBERPTR
1187 and TYPE_CODE_METHODPTR cases.
1188 * c-valprint.c (c_value_print_memberptr): Move to valprint.c.
1189 (c_value_print_inner): Update.
1190 * valprint.c (generic_value_print_memberptr): New function, from
1191 c_value_print_memberptr.
1192 (generic_value_print): Use it. Call cplus_print_method_ptr.
1193
1194 2020-09-15 Tom Tromey <tromey@adacore.com>
1195
1196 * python/python-internal.h (PyInt_FromLong): Remove define.
1197 * python/py-value.c (convert_value_from_python): Use
1198 gdb_py_object_from_longest.
1199 * python/py-type.c (typy_get_code): Use
1200 gdb_py_object_from_longest.
1201 * python/py-symtab.c (salpy_get_line): Use
1202 gdb_py_object_from_longest.
1203 * python/py-symbol.c (sympy_get_addr_class, sympy_line): Use
1204 gdb_py_object_from_longest.
1205 * python/py-record.c (recpy_gap_reason_code): Use
1206 gdb_py_object_from_longest.
1207 * python/py-record-btrace.c (recpy_bt_insn_size)
1208 (recpy_bt_func_level, btpy_list_count): Use
1209 gdb_py_object_from_longest.
1210 * python/py-infthread.c (gdbpy_create_ptid_object): Use
1211 gdb_py_object_from_longest. Fix error handling.
1212 * python/py-framefilter.c (bootstrap_python_frame_filters): Use
1213 gdb_py_object_from_longest.
1214 * python/py-frame.c (frapy_type, frapy_unwind_stop_reason): Use
1215 gdb_py_object_from_longest.
1216 * python/py-breakpoint.c (bppy_get_type, bppy_get_number)
1217 (bppy_get_thread, bppy_get_task, bppy_get_hit_count)
1218 (bppy_get_ignore_count): Use gdb_py_object_from_longest.
1219
1220 2020-09-15 Tom Tromey <tromey@adacore.com>
1221
1222 * python/python.c (gdbpy_parameter_value): Use
1223 gdb_py_object_from_ulongest.
1224
1225 2020-09-15 Tom Tromey <tromey@adacore.com>
1226
1227 * python/py-infevents.c (create_register_changed_event_object):
1228 Use gdb_py_object_from_longest.
1229 * python/py-exitedevent.c (create_exited_event_object): Use
1230 gdb_py_object_from_longest.
1231
1232 2020-09-15 Tom Tromey <tromey@adacore.com>
1233
1234 * python/python.c (gdbpy_parameter_value): Use
1235 gdb_py_object_from_longest.
1236 * python/py-type.c (convert_field, typy_range): Use
1237 gdb_py_object_from_longest.
1238 * python/py-tui.c (gdbpy_tui_width, gdbpy_tui_height): Use
1239 gdb_py_object_from_longest.
1240 * python/py-lazy-string.c (stpy_get_length): Use
1241 gdb_py_object_from_longest.
1242 * python/py-infthread.c (thpy_get_num, thpy_get_global_num): Use
1243 gdb_py_object_from_longest.
1244 * python/py-infevents.c (create_memory_changed_event_object): Use
1245 gdb_py_object_from_longest.
1246 * python/py-inferior.c (infpy_get_num): Use
1247 gdb_py_object_from_longest.
1248 (infpy_get_pid): Likewise.
1249
1250 2020-09-15 Tom Tromey <tromey@adacore.com>
1251
1252 * python/python-internal.h (gdb_py_long_from_ulongest): Remove
1253 defines.
1254 * python/py-value.c (valpy_long): Use
1255 gdb_py_object_from_ulongest.
1256 * python/py-symtab.c (salpy_get_pc): Use
1257 gdb_py_object_from_ulongest.
1258 (salpy_get_last): Likewise.
1259 * python/py-record-btrace.c (recpy_bt_insn_pc): Use
1260 gdb_py_object_from_ulongest.
1261 * python/py-lazy-string.c (stpy_get_address): Use
1262 gdb_py_object_from_ulongest.
1263 * python/py-frame.c (frapy_pc): Use gdb_py_object_from_ulongest.
1264 * python/py-arch.c (archpy_disassemble): Use
1265 gdb_py_object_from_ulongest and gdb_py_object_from_longest. Fix
1266 error handling.
1267
1268 2020-09-15 Tom Tromey <tromey@adacore.com>
1269
1270 * python/python-internal.h (gdb_py_long_from_longest): Remove
1271 defines.
1272 * python/py-value.c (valpy_long): Use gdb_py_object_from_longest.
1273 * python/py-type.c (convert_field, typy_get_sizeof): Use
1274 gdb_py_object_from_longest.
1275 * python/py-record-btrace.c (btpy_list_index): Use
1276 gdb_py_object_from_longest.
1277
1278 2020-09-15 Tom Tromey <tromey@adacore.com>
1279
1280 * python/python-internal.h (PyInt_FromSsize_t): Remove define.
1281 * python/py-record.c (recpy_element_number): Use
1282 gdb_py_object_from_longest.
1283 (recpy_gap_number): Likewise.
1284
1285 2020-09-15 Tom Tromey <tromey@adacore.com>
1286
1287 * top.c (ui::ui): Update.
1288 (highest_ui_num): Remove.
1289 * top.h (struct ui) <num>: Remove.
1290
1291 2020-09-15 Tom Tromey <tromey@adacore.com>
1292
1293 * unittests/memory-map-selftests.c (valid_mem_map): Now array.
1294 * ui-style.c (ansi_regex_text): Now array.
1295 * rust-exp.y (number_regex_text): Now array.
1296 * linespec.c (linespec_quote_characters): Now array.
1297 * jit.c (jit_break_name, jit_descriptor_name, reader_init_fn_sym):
1298 Now arrays.
1299
1300 2020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
1301
1302 * debuginfod-support.c (debuginfod_client_deleter): New.
1303 (debuginfod_client_up): New.
1304 (debuginfod_init): Return debuginfod_client_up.
1305 (debuginfod_source_query): Adjust.
1306 (debuginfod_debuginfo_query): Adjust.
1307
1308 2020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
1309
1310 * debuginfod-support.c (debuginfod_source_query): Use
1311 make_unique_xstrdup.
1312
1313 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
1314
1315 * gdbtypes.h (TYPE_INSTANCE_FLAGS): Remove, replace all uses
1316 with `type::instance_flags`.
1317
1318 2020-09-14 Michael Mullin <masmullin@gmail.com>
1319
1320 * xml-tdesc.c [!defined(HAVE_LIBEXPAT)] (tdesc_parse_xml):
1321 Remove baton parameter.
1322
1323 2020-09-14 Pedro Alves <pedro@palves.net>
1324
1325 * Makefile.in (SELFTESTS_SRCS): Add
1326 unittests/enum-flags-selftests.c.
1327 * btrace.c (ftrace_update_caller, ftrace_fixup_calle): Use
1328 btrace_function_flags instead of enum btrace_function_flag.
1329 * compile/compile-c-types.c (convert_qualified): Use
1330 enum_flags::raw.
1331 * compile/compile-cplus-symbols.c (convert_one_symbol)
1332 (convert_symbol_bmsym):
1333 * compile/compile-cplus-types.c (compile_cplus_convert_method)
1334 (compile_cplus_convert_struct_or_union_methods)
1335 (compile_cplus_instance::convert_qualified_base):
1336 * go-exp.y (parse_string_or_char): Add cast to int.
1337 * unittests/enum-flags-selftests.c: New file.
1338 * record-btrace.c (btrace_thread_flag_to_str): Change parameter's
1339 type to btrace_thread_flags from btrace_thread_flag.
1340 (record_btrace_cancel_resume, record_btrace_step_thread): Change
1341 local's type to btrace_thread_flags from btrace_thread_flag. Add
1342 cast in DEBUG call.
1343
1344 2020-09-14 Pedro Alves <pedro@palves.net>
1345
1346 * c-typeprint.c (c_type_print_modifier): Adjust to rename.
1347 * gdbtypes.c (address_space_name_to_int): Rename to ...
1348 (address_space_name_to_type_instance_flags): ... this.
1349 (address_space_int_to_name): Rename to ...
1350 (address_space_type_instance_flags_to_name): ... this.
1351 * gdbtypes.h (address_space_name_to_int): Rename to ...
1352 (address_space_name_to_type_instance_flags): ... this.
1353 (address_space_int_to_name): Rename to ...
1354 (address_space_type_instance_flags_to_name): ... this.
1355 * type-stack.c (type_stack::insert): Adjust to rename.
1356 * type-stack.h (type_stack::insert): Likewise.
1357
1358 2020-09-14 Pedro Alves <pedro@palves.net>
1359 Andrew Burgess <andrew.burgess@embecosm.com>
1360
1361 * avr-tdep.c (avr_address_class_type_flags): Return
1362 type_instance_flags.
1363 (avr_address_class_type_flags_to_name): Take a
1364 type_instance_flags.
1365 (avr_address_class_name_to_type_flags): Return bool and take a
1366 type_instance_flags.
1367 * d-lang.c (build_d_types): Use type::set_instance_flags.
1368 * ft32-tdep.c (ft32_address_class_type_flags): Return
1369 type_instance_flags.
1370 (ft32_address_class_type_flags_to_name): Take a
1371 type_instance_flags.
1372 (ft32_address_class_name_to_type_flags): Return bool and take a
1373 type_instance_flags.
1374 (ft32_gdbarch_init): Use type::set_instance_flags.
1375 * eval.c (fake_method::fake_method): Use type::set_instance_flags.
1376 * gdbarch.h, gdbarch.c: Regenerate.
1377 * gdbarch.sh (address_class_type_flags): Use type_instance_flags.
1378 (address_class_name_to_type_flags): Use type_instance_flags and
1379 bool.
1380 * gdbtypes.c (address_space_name_to_int)
1381 (address_space_int_to_name, make_qualified_type): Use
1382 type_instance_flags.
1383 (make_qualified_type): Use type_instance_flags and
1384 type::set_instance_flags.
1385 (make_type_with_address_space, make_cv_type, make_vector_type)
1386 (check_typedef): Use type_instance_flags.
1387 (recursive_dump_type): Cast type_instance_flags to unsigned for
1388 printing.
1389 (copy_type_recursive): Use type::set_instance_flags.
1390 (gdbtypes_post_init): Use type::set_instance_flags.
1391 * gdbtypes.h (struct type) <instance_flags>: Rename to ...
1392 <m_instance_flags>: ... this.
1393 <instance_flags, set_instance_flags>: New methods.
1394 (TYPE_INSTANCE_FLAGS): Use the instance_flags method.
1395 (SET_TYPE_INSTANCE_FLAGS): New.
1396 (address_space_name_to_int, address_space_int_to_name)
1397 (make_type_with_address_space): Pass flags using
1398 type_instance_flags instead of int.
1399 * stabsread.c (cleanup_undefined_types_noname): Use
1400 type::set_instance_flags.
1401 * s390-tdep.c (s390_address_class_type_flags): Return
1402 type_instance_flags.
1403 (s390_address_class_type_flags_to_name): Take a
1404 type_instance_flags.
1405 (s390_address_class_name_to_type_flags): Return bool and take a
1406 type_instance_flags.
1407 * type-stack.c (type_stack::follow_types): Use
1408 type_instance_flags.
1409 * dwarf2/read.c (read_tag_pointer_type): Use type_instance_flags.
1410
1411 2020-09-14 Tom Tromey <tromey@adacore.com>
1412
1413 * x86-tdep.h (x86_in_indirect_branch_thunk): Update.
1414 * x86-tdep.c (x86_is_thunk_register_name)
1415 (x86_in_indirect_branch_thunk): Update.
1416 * sparc64-tdep.c (sparc64_fpu_register_names)
1417 (sparc64_cp0_register_names, sparc64_register_names)
1418 (sparc64_pseudo_register_names): Now const.
1419 * sparc-tdep.h (struct gdbarch_tdep) <fpu_register_names,
1420 cp0_registers_num>: Now const.
1421 * sparc-tdep.c (sparc_core_register_names)
1422 (sparc32_fpu_register_names, sparc32_cp0_register_names)
1423 (sparc32_pseudo_register_names): Now const.
1424 (validate_tdesc_registers): Update.
1425 * rust-lang.c (rust_extensions): Now const.
1426 * p-lang.c (p_extensions): Now const.
1427 * objc-lang.c (objc_extensions): Now const.
1428 * nto-tdep.c (nto_thread_state_str): Now const.
1429 * moxie-tdep.c (moxie_register_names): Now const.
1430 * mips-tdep.h (struct gdbarch_tdep) <mips_processor_reg_names>:
1431 Now const.
1432 * mips-tdep.c (mips_generic_reg_names, mips_tx39_reg_names)
1433 (mips_linux_reg_names): Now const.
1434 (mips_gdbarch_init): Update.
1435 * microblaze-tdep.c (microblaze_register_names): Now const.
1436 * m68k-tdep.c (m68k_register_names): Now const.
1437 * m32r-tdep.c (m32r_register_names): Now const.
1438 * ia64-tdep.c (ia64_register_names): Now const.
1439 * i386-tdep.h (struct gdbarch_tdep) <register_names,
1440 ymmh_register_names, ymm16h_regnum, mpx_register_names,
1441 k_register_names, zmmh_register_names, xmm_avx512_register_names,
1442 ymm_avx512_register_names, pkeys_register_names>: Now const.
1443 * i386-tdep.c (i386_register_names, i386_zmm_names)
1444 (i386_zmmh_names, i386_k_names, i386_ymm_names, i386_ymmh_names)
1445 (i386_mpx_names, i386_pkeys_names, i386_bnd_names)
1446 (i386_mmx_names, i386_byte_names, i386_word_names): Now const.
1447 * f-lang.c (f_extensions): Now const.
1448 * d-lang.c (d_extensions): Now const.
1449 * csky-tdep.c (csky_register_names): Now const.
1450 * charset.c (default_charset_names, charset_enum): Now const.
1451 (_initialize_charset): Update.
1452 * c-lang.c (c_extensions, cplus_extensions, asm_extensions): Now
1453 const.
1454 * bsd-uthread.c (bsd_uthread_solib_names): Now const.
1455 (bsd_uthread_solib_loaded): Update.
1456 (bsd_uthread_state): Now const.
1457 * amd64-tdep.c (amd64_register_names, amd64_ymm_names)
1458 (amd64_ymm_avx512_names, amd64_ymmh_names)
1459 (amd64_ymmh_avx512_names, amd64_mpx_names, amd64_k_names)
1460 (amd64_zmmh_names, amd64_zmm_names, amd64_xmm_avx512_names)
1461 (amd64_pkeys_names, amd64_byte_names, amd64_word_names)
1462 (amd64_dword_names): Now const.
1463 * agent.c (can_use_agent_enum): Now const.
1464 * ada-tasks.c (task_states, long_task_states): Now const.
1465 * ada-lang.c (known_runtime_file_name_patterns)
1466 (known_auxiliary_function_name_patterns, attribute_names)
1467 (standard_exc, ada_extensions): Now const.
1468
1469 2020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
1470
1471 * bcache.h (struct bcache) <bcache>: Remove constructor.
1472 <m_hash_function, m_compare_function>: Remove.
1473 <~bcache>: Make virtual.
1474 <compare>: Remove static method, introduce virtual method.
1475 <default_hash>: Remove.
1476 <hash>: New virtual method.
1477 * bcache.c (bcache::expand_hash_table): Update.
1478 (bcache::insert): Update.
1479 (bcache::hash): New.
1480 (bcache::compare): Update comment and parameter names.
1481 * gdbtypes.c (types_deeply_equal): Update.
1482 * psymtab.h (struct psymbol_bcache): New struct.
1483 (class psymtab_storage) <psymtab_storage>: Make default.
1484 <psymbol_cache>: Change type to psymbol_bcache.
1485 * psymtab.c (psymtab_storage::psymtab_storage): Remove.
1486 (psymbol_hash): Change to...
1487 (psymbol_bcache::hash): ... this.
1488 (psymbol_compare): Change to...
1489 (psymbol_bcache::compare): ... this.
1490
1491 2020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
1492
1493 * linux-nat.c (linux_nat_wait_1): Don't use inferior_ptid when
1494 checking for initial lwp.
1495
1496 2020-09-14 Tom Tromey <tromey@adacore.com>
1497
1498 * m68k-tdep.c (m68k_extract_return_value): Use
1499 pointer_result_regnum.
1500 (m68k_store_return_value): Likewise.
1501 (m68k_reg_struct_return_p): Handle vectors and arrays.
1502 (m68k_return_value): Handle arrays.
1503 (m68k_svr4_return_value): Fix single-element aggregate handling.
1504 Handle long double. Adjust for embedded ABI.
1505 (m68k_svr4_init_abi): Set pointer_result_regnum.
1506 (m68k_embedded_init_abi): New function.
1507 (m68k_gdbarch_init): Handle Tag_GNU_M68K_ABI_FP.
1508 (m68k_osabi_sniffer): New function.
1509 (_initialize_m68k_tdep): Register osabi sniffer.
1510 * m68k-tdep.h (struct gdbarch_tdep) <pointer_result_regnum>: New
1511 member.
1512
1513 2020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
1514
1515 * xml-support.c (xml_fetch_content_from_file): Replace xfree
1516 with gdb::unique_xmalloc_ptr<char>.
1517
1518 2020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
1519
1520 * xml-support.h (xml_fetch_another): Change type to be a
1521 function_view.
1522 (xml_process_xincludes): Remove baton parameter.
1523 (xml_fetch_content_from_file): Change baton parameter to
1524 dirname.
1525 * xml-support.c (struct xinclude_parsing_data)
1526 <xinclude_parsing_data>: Remove baton parameter.
1527 <fetcher_baton>: Remove.
1528 (xinclude_start_include): Adjust.
1529 (xml_process_xincludes): Adjust.
1530 (xml_fetch_content_from_file): Replace baton parameter with
1531 dirname.
1532 * xml-syscall.c (syscall_parse_xml): Remove baton parameter.
1533 (xml_init_syscalls_info): Use a lambda.
1534 * xml-tdesc.c (tdesc_parse_xml): Remove baton parameter.
1535 (file_read_description_xml): Use a lambda.
1536 (fetch_available_features_from_target): Change baton parameter
1537 to target_ops.
1538 (target_read_description_xml): Use a lambda.
1539 (target_fetch_description_xml): Use a lambda.
1540 (string_read_description_xml): Update.
1541
1542 2020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
1543
1544 * gdbtypes.h (TYPE_ENDIANITY_NOT_DEFAULT): Remove, replace all
1545 uses with type::endianity_is_not_default.
1546
1547 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
1548
1549 * gdbtypes.h (struct type) <endianity_is_not_default,
1550 set_endianity_is_not_default>: New methods.
1551 (TYPE_ENDIANITY_NOT_DEFAULT): Use
1552 type::endianity_is_not_default, change all write call sites to
1553 use type::set_endianity_is_not_default.
1554
1555 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
1556
1557 * gdbtypes.h (TYPE_FIXED_INSTANCE): Remove, replace all
1558 uses with type::is_fixed_instance.
1559
1560 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
1561
1562 * gdbtypes.h (struct type) <is_fixed_instance,
1563 set_is_fixed_instance>: New methods.
1564 (TYPE_FIXED_INSTANCE): Use type::is_fixed_instance, change all
1565 write call sites to use type::set_is_fixed_instance.
1566
1567 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
1568
1569 * gdbtypes.h (TYPE_GNU_IFUNC): Remove, replace all
1570 uses with type::is_gnu_ifunc.
1571
1572 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
1573
1574 * gdbtypes.h (struct type) <is_gnu_ifunc, set_is_gnu_ifunc>: New methods.
1575 (TYPE_GNU_IFUNC): Use type::is_gnu_ifunc, change all write call sites to
1576 use type::set_is_gnu_ifunc.
1577
1578 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
1579
1580 * gdbtypes.h (TYPE_STUB_SUPPORTED): Remove, replace all
1581 uses with type::stub_is_supported.
1582
1583 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
1584
1585 * gdbtypes.h (struct type) <stub_is_supported, set_stub_is_supported>: New methods.
1586 (TYPE_STUB_SUPPORTED): Use type::stub_is_supported, change all write call sites to
1587 use type::set_stub_is_supported.
1588
1589 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
1590
1591 * gdbtypes.h (TYPE_VECTOR): Remove, replace all
1592 uses with type::is_vector.
1593
1594 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
1595
1596 * gdbtypes.h (struct type) <is_vector, set_is_vector>: New methods.
1597 (TYPE_VECTOR): Use type::is_vector, change all write call sites to
1598 use type::set_is_vector.
1599
1600 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
1601
1602 * gdbtypes.h (TYPE_VARARGS): Remove, replace all
1603 uses with type::has_varargs.
1604
1605 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
1606
1607 * gdbtypes.h (struct type) <has_varargs, set_has_varargs>: New methods.
1608 (TYPE_VARARGS): Use type::has_varargs, change all write call sites to
1609 use type::set_has_varargs.
1610
1611 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
1612
1613 * gdbtypes.h (TYPE_PROTOTYPED): Remove, replace all
1614 uses with type::is_prototyped.
1615
1616 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
1617
1618 * gdbtypes.h (struct type) <is_prototyped, set_is_prototyped>:
1619 New methods.
1620 (TYPE_PROTOTYPED): Use type::is_prototyped, change all write
1621 call sites to use type::set_is_prototyped.
1622
1623 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
1624
1625 * gdbtypes.h (TYPE_TARGET_STUB): Remove, replace all
1626 uses with type::target_is_stub.
1627
1628 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
1629
1630 * gdbtypes.h (struct type) <target_is_stub, set_target_is_stub>:
1631 New methods.
1632 (TYPE_TARGET_STUB): Use type::is_stub, change all write call
1633 sites to use type::set_target_is_stub.
1634
1635 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
1636
1637 * gdbtypes.h (TYPE_STUB): Remove, replace all
1638 uses with type::is_stub.
1639
1640 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
1641
1642 * gdbtypes.h (struct type) <is_stub, set_is_stub>: New methods.
1643 (TYPE_STUB): Use type::is_stub, change all write call sites to
1644 use type::set_is_stub.
1645
1646 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
1647
1648 * gdbtypes.h (TYPE_NOSIGN): Remove, replace all uses with
1649 type::has_no_signedness.
1650
1651 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
1652
1653 * gdbtypes.h (struct type) <has_no_signedness,
1654 set_has_no_signedness>: New methods.
1655 (TYPE_NOSIGN): Use type::has_no_signedness, change all write
1656 call sites to use type::set_has_no_signedness.
1657
1658 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
1659
1660 * gdbtypes.h (TYPE_UNSIGNED): Remove, replace all uses with
1661 type::is_unsigned.
1662
1663 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
1664
1665 * gdbtypes.h (struct type) <is_unsigned, set_is_unsigned>: New
1666 methods.
1667 (TYPE_UNSIGNED): Use type::is_unsigned. Change all write call
1668 sites to use type::set_is_unsigned.
1669
1670 2020-09-14 Fredrik Hederstierna <fredrik.hederstierna@verisure.com>
1671 Adam Renquinha <arenquinha@cimeq.qc.ca>
1672
1673 * arm-tdep.c (arm_m_exception_cache): Try use correct stack
1674 pointer and stack frame offset when unwinding.
1675
1676 2020-09-13 Pedro Alves <pedro@palves.net>
1677
1678 * NEWS: Document "-break-insert --qualified".
1679 * mi/mi-cmd-break.c (mi_cmd_break_insert_1): Handle "--qualified".
1680
1681 2020-09-13 Pedro Alves <pedro@palves.net>
1682
1683 * linespec.c (classify_mtype, compare_msyms): Delete.
1684 (search_minsyms_for_name): Remove classification logic. Instead
1685 filter out trampoline symbols if we also found an external
1686 function of the same name.
1687
1688 2020-09-13 Joel Brobecker <brobecker@adacore.com>
1689
1690 * NEWS: Create a new section for the next release branch.
1691 Rename the section of the current branch, now that it has
1692 been cut.
1693
1694 2020-09-13 Joel Brobecker <brobecker@adacore.com>
1695
1696 GDB 10 branch created (8087c3fa8b5d695e3e29e69d70d0b35ec902ac59):
1697 * version.in: Bump version to 11.0.50.DATE-git.
1698
1699 2020-09-12 Joel Brobecker <brobecker@adacore.com>
1700
1701 * infrun.c (namespace selftests): Only define #if GDB_SELF_TEST.
1702
1703 2020-09-11 Moritz Riesterer <moritz.riesterer@intel.com>
1704 Felix Willgerodt <Felix.Willgerodt@intel.com>
1705
1706 * gdbarch.sh: Added bfloat16 type.
1707 * gdbarch.c: Regenerated.
1708 * gdbarch.h: Regenerated.
1709 * gdbtypes.c (floatformats_bfloat16): New struct.
1710 (gdbtypes_post_init): Add builtin_bfloat16.
1711 * gdbtypes.h (struct builtin_type) <builtin_bfloat16>: New member.
1712 (floatformats_bfloat16): New struct.
1713 * i386-tdep.c (i386_zmm_type): Add field "v32_bfloat16"
1714 (i386_ymm_type): Add field "v16_bfloat16"
1715 (i386_gdbarch_init): Add set_gdbarch_bfloat16_format.
1716 * target-descriptions.c (make_gdb_type): Add case TDESC_TYPE_BFLOAT16.
1717 * gdbsupport/tdesc.cc (tdesc_predefined_types): New member bfloat16.
1718 * gdbsupport/tdesc.h (tdesc_type_kind): New member TDESC_TYPE_BFLOAT16.
1719 * features/i386/64bit-avx512.xml: Add bfloat16 type.
1720 * features/i386/64bit-avx512.c: Regenerated.
1721 * features/i386/64bit-sse.xml: Add bfloat16 type.
1722 * features/i386/64bit-sse.c: Regenerated.
1723
1724 2020-09-11 Felix Willgerodt <felix.willgerodt@intel.com>
1725
1726 * i386-tdep.c (i386_zmm_type): Fix field names.
1727 (i386_ymm_type): Fix field names.
1728
1729 2020-09-11 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1730
1731 * breakpoint.c: Fix typo in the help message of the
1732 "set breakpoint condition-evaluation" command.
1733
1734 2020-09-10 Kamil Rytarowski <n54@gmx.com>
1735
1736 * nbsd-nat.c: Include "nat/netbsd-nat.h".
1737 * (nbsd_nat_target::pid_to_exec_file)
1738 (nbsd_nat_target::thread_alive, nbsd_nat_target::thread_name)
1739 (nbsd_nat_target::post_startup_inferior)
1740 (nbsd_nat_target::post_attach, nbsd_nat_target::xfer_partial)
1741 (nbsd_add_threads): Switch local code to common gdb/nat functions.
1742 * (nbsd_pid_to_cmdline): Call sysctl from the global namespace.
1743 * (nbsd_thread_lister): Remove.
1744
1745 2020-09-10 Kamil Rytarowski <n54@gmx.com>
1746
1747 * fork-inferior.c (startup_inferior): Avoid double free.
1748
1749 2020-09-10 Kamil Rytarowski <n54@gmx.com>
1750
1751 * netbsd-nat.h (netbsd_nat::qxfer_siginfo): Add.
1752 * netbsd-nat.c (netbsd_nat::qxfer_siginfo): Likewise.
1753
1754 2020-09-10 Kamil Rytarowski <n54@gmx.com>
1755
1756 * netbsd-nat.h (netbsd_nat::enable_proc_events): Add.
1757 * netbsd-nat.c: Include <sys/ptrace.h>.
1758 * (netbsd_nat::enable_proc_events): Add.
1759
1760 2020-09-10 Kamil Rytarowski <n54@gmx.com>
1761
1762 * netbsd-nat.h: Include "gdbsupport/function-view.h".
1763 * (netbsd_nat::thread_alive, netbsd_nat::thread_name)
1764 (netbsd_nat::for_each_thread): Add.
1765 * netbsd-nat.c: Include "gdbsupport/common-defs.h" and
1766 "gdbsupport/common-debug.h".
1767 * (netbsd_nat::netbsd_thread_lister)
1768 (netbsd_nat::thread_alive, netbsd_nat::thread_name)
1769 (netbsd_nat::for_each_thread): Add.
1770
1771 2020-09-10 Kamil Rytarowski <n54@gmx.com>
1772
1773 * netbsd-nat.h: Include <unistd.h>.
1774 * (netbsd_nat::pid_to_exec_file): Add.
1775 * netbsd-nat.c: Include <sys/types.h> and <sys/sysctl.h>.
1776 * (netbsd_nat::pid_to_exec_file) Add.
1777
1778 2020-09-10 Kamil Rytarowski <n54@gmx.com>
1779
1780 * configure.nat (NATDEPFILES): Add nat/netbsd-nat.o when needed.
1781
1782 2020-09-10 Kamil Rytarowski <n54@gmx.com>
1783
1784 * netbsd-nat.h: New file.
1785 * netbsd-nat.c: Likewise.
1786
1787 2020-09-09 Tom Tromey <tromey@adacore.com>
1788
1789 * ada-lang.c (remove_extra_symbols): Do not increment when
1790 removing an element
1791
1792 2020-09-08 Tom Tromey <tromey@adacore.com>
1793
1794 * gdb_bfd.c (gdb_bfd_open): Call bfd_fopen when fstat fails.
1795
1796 2020-09-08 Tom Tromey <tromey@adacore.com>
1797
1798 PR win32/25302:
1799 * gdb_bfd.c (gdb_bfd_data): Add "st" parameter.
1800 (gdb_bfd_init_data): New function.
1801 (gdb_bfd_open, gdb_bfd_ref): Use gdb_bfd_init_data.
1802
1803 2020-09-07 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1804
1805 * infrun.c (fetch_inferior_event): Use
1806 `switch_to_target_no_thread` to switch the target.
1807
1808 2020-09-06 Tom Tromey <tom@tromey.com>
1809
1810 * symfile.h (dwarf2_free_objfile): Don't declare.
1811
1812 2020-09-03 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
1813
1814 * gdb/i386-tdep.c (i386_floatformat_for_type): Added conditions
1815 to match 16 byte real/complex type generated by Flang compiler.
1816
1817 2020-09-03 Tom de Vries <tdevries@suse.de>
1818
1819 PR breakpoint/26546
1820 * dwarf2/read.c (new_symbol): Tag label symbol without DW_AT_low_pc as
1821 LOC_OPTIMIZED_OUT instead of LOC_LABEL.
1822
1823 2020-09-02 Simon Marchi <simon.marchi@polymtl.ca>
1824
1825 * maint.c (index_digits): New function.
1826 (struct maint_print_section_data): Remove.
1827 (print_bfd_section_info): Remove print_data parameter, add arg
1828 and index_digits.
1829 (print_objfile_section_info): Likewise.
1830 (print_bfd_section_info_maybe_relocated): Likewise (plus
1831 objfile).
1832 (maintenance_info_sections): Adjust calls.
1833
1834 2020-09-02 Tom Tromey <tromey@adacore.com>
1835
1836 * ada-varobj.c (ada_varobj_get_ptr_number_of_children): Return 0
1837 for null pointers.
1838 (ada_varobj_adjust_for_child_access): Special-case null pointers.
1839
1840 2020-09-01 Simon Marchi <simon.marchi@polymtl.ca>
1841
1842 * bcache.h (struct bcache) <insert>: Change type of `added` to
1843 pointer to bool.
1844 * bcache.c (bcache::insert): Likewise.
1845 * gdbtypes.c (check_types_worklist): Adjust.
1846 * psymtab.c (add_psymbol_to_bcache): Adjust.
1847
1848 2020-08-31 Kevin Buettner <kevinb@redhat.com>
1849
1850 * corelow.c (unordered_set): Include.
1851 (class core_target): Add field 'm_core_unavailable_mappings'.
1852 (core_target::build_file_mappings): Print only one warning
1853 per inaccessible file. Add unavailable/broken mappings
1854 to m_core_unavailable_mappings.
1855 (core_target::xfer_partial): Call...
1856 (core_target::xfer_memory_via_mappings): New method.
1857
1858 2020-08-31 Simon Marchi <simon.marchi@polymtl.ca>
1859
1860 * dwarf2/read.c (struct field_info) <non_public_fields>: Change
1861 type to bool.
1862
1863 2020-08-31 Simon Marchi <simon.marchi@polymtl.ca>
1864
1865 * dwarf2/read.c (struct field_info): Fix indentation.
1866
1867 2020-08-31 Simon Marchi <simon.marchi@efficios.com>
1868
1869 * frame-unwind.h (frame_prev_register_ftype): Fix adjective
1870 ordering in comment.
1871 * frame.c (frame_id_eq): Fix indentation.
1872
1873 2020-08-31 Scott Linder <scott@scottlinder.com>
1874 Simon Marchi <simon.marchi@efficios.com>
1875
1876 * inline-frame.c (inline_frame_this_id): Remove assert that prevents
1877 inline frame ids in outer frame.
1878
1879 2020-08-31 Simon Marchi <simon.marchi@efficios.com>
1880
1881 * frame.h (enum frame_id_stack_status) <FID_STACK_OUTER>: New.
1882 * frame.c (fprint_frame_id): Handle FID_STACK_OUTER.
1883 (outer_frame_id): Use FID_STACK_OUTER instead of
1884 FID_STACK_INVALID.
1885 (frame_id_p): Don't check for outer_frame_id.
1886
1887 2020-08-31 Simon Marchi <simon.marchi@efficios.com>
1888
1889 * frame-unwind.c (frame_unwind_got_optimized): Don't set
1890 regnum/frame in value. Call allocate_value_lazy.
1891 * frame.c (frame_unwind_register_value): Use
1892 val_print_not_saved.
1893
1894 2020-08-31 Simon Marchi <simon.marchi@efficios.com>
1895
1896 * gdbtypes.h (NULL_TYPE): Remove, change all uses to nullptr.
1897
1898 2020-08-29 Pedro Alves <pedro@palves.net>
1899
1900 * progspace.c (print_program_space): Use all_inferiors. Switch to
1901 the inferior before calling target_pid_to_str.
1902
1903 2020-08-28 Tom Tromey <tom@tromey.com>
1904
1905 * xcoffread.c (xcoff_end_psymtab): Update comment.
1906 * dbxread.c (dbx_end_psymtab): Update comment.
1907
1908 2020-08-28 Tom de Vries <tdevries@suse.de>
1909
1910 PR breakpoint/26544
1911 * breakpoint.c (parse_breakpoint_sals): Remove const from struct
1912 event_location.
1913 (create_breakpoint): Same.
1914 (base_breakpoint_decode_location): Same.
1915 (bkpt_create_sals_from_location): Same.
1916 (bkpt_decode_location): Same.
1917 (bkpt_probe_create_sals_from_location): Same.
1918 (bkpt_probe_decode_location): Same.
1919 (tracepoint_create_sals_from_location): Same.
1920 (tracepoint_decode_location): Same.
1921 (tracepoint_probe_decode_location): Same.
1922 (strace_marker_create_sals_from_location): Same.
1923 (strace_marker_decode_location): Same.
1924 (create_sals_from_location_default): Same.
1925 (decode_location_default): Same.
1926 * breakpoint.h (struct breakpoint_ops): Same.
1927 (create_breakpoint): Same.
1928 * linespec.h (decode_line_full): Same.
1929 * linespec.c (decode_line_full): Same. Throw error if
1930 result.size () == 0.
1931
1932 2020-08-27 Pedro Alves <pedro@palves.net>
1933
1934 PR gdb/26524
1935 * breakpoint.c (until_break_fsm) <location_breakpoint,
1936 caller_breakpoint>: Delete fields.
1937 <breakpoints>: New field.
1938 <until_break_fsm>: Adjust to save a breakpoint vector instead of
1939 two individual breakpoints.
1940 (until_break_fsm::should_stop): Loop over breakpoints in the
1941 breakpoint vector.
1942 (until_break_fsm::clean_up): Adjust to clear the breakpoints
1943 vector.
1944 (until_break_command): Handle location expanding into multiple
1945 sals.
1946
1947 2020-08-27 Pedro Alves <pedro@palves.net>
1948
1949 PR gdb/26523
1950 * inline-frame.c (stopped_by_user_bp_inline_frame): Also consider
1951 bp_until breakpoints user-specified locations. Update intro
1952 comment.
1953
1954 2020-08-27 Simon Marchi <simon.marchi@polymtl.ca>
1955
1956 * gdb_bfd.h (gdb_bfd_section_iterator, gdb_bfd_section_range,
1957 gdb_bfd_sections): New.
1958 * maint.c (print_bfd_section_info): Change param type to
1959 maint_print_section_data.
1960 (print_objfile_section_info): Likewise.
1961 (print_bfd_section_info_maybe_relocated): Likewise.
1962 (maintenance_info_sections): Use gdb_bfd_sections.
1963
1964 2020-08-25 Shahab Vahedi <shahab@synopsys.com>
1965
1966 * MAINTAINERS: Add ARC target and maintainer.
1967
1968 2020-08-25 Anton Kolesov <anton.kolesov@synopsys.com>
1969
1970 * configure.tgt: ARC support for GNU/Linux.
1971 * Makefile.in (ALL_TARGET_OBJS): Likewise.
1972 * arc-linux-tdep.c: New file.
1973 * arc-tdep.h (ARC_STATUS32_L_MASK, ARC_STATUS32_DE_MASK): Declare.
1974 * arc-tdep.c (arc_write_pc): Use it.
1975
1976 2020-08-25 Shahab Vahedi <shahab@synopsys.com>
1977
1978 * arc-tdep.c (arc_check_for_hardware_loop): New.
1979 * arc-tdep.h (gdbarch_tdep): New field has_hw_loops.
1980
1981 2020-08-25 Shahab Vahedi <shahab@synopsys.com>
1982
1983 * arc-tdep.h: Include "gdbarch.h".
1984
1985 2020-08-25 Shahab Vahedi <shahab@synopsys.com>
1986
1987 * arch/arc.h
1988 (arc_gdbarch_features): New class to stir the selection of target XML.
1989 (arc_create_target_description): Use FEATURES to choose XML target.
1990 (arc_lookup_target_description): Use arc_create_target_description
1991 to create _new_ target descriptions or return the already created
1992 ones if the FEATURES is the same.
1993 * arch/arc.c: Implementation of prototypes described above.
1994 * gdb/arc-tdep.h (arc_regnum enum): Add more registers.
1995 (arc_gdbarch_features_init): Initialize the FEATURES struct.
1996 * arc-tdep.c (*_feature_name): Make feature names consistent.
1997 (arc_register_feature): A new struct to hold information about
1998 registers of a particular target/feature.
1999 (arc_check_tdesc_feature): Check if XML provides registers in
2000 compliance with ARC_REGISTER_FEATURE structs.
2001 (arc_update_acc_reg_names): Add aliases for r58 and r59.
2002 (determine_*_reg_feature_set): Which feature name to look for.
2003 (arc_gdbarch_features_init): Given MACH and ABFD, initialize FEATURES.
2004 (mach_type_to_arc_isa): Convert from a set of binutils machine types
2005 to expected ISA enums to be used in arc_gdbarch_features structs.
2006 * features/Makefile (FEATURE_XMLFILES): Add new files.
2007 * gdb/features/arc/v1-aux.c: New file.
2008 * gdb/features/arc/v1-aux.xml: Likewise.
2009 * gdb/features/arc/v1-core.c: Likewise.
2010 * gdb/features/arc/v1-core.xml: Likewise.
2011 * gdb/features/arc/v2-aux.c: Likewise.
2012 * gdb/features/arc/v2-aux.xml: Likewise.
2013 * gdb/features/arc/v2-core.c: Likewise.
2014 * gdb/features/arc/v2-core.xml: Likewise.
2015 * NEWS (Changes since GDB 9): Announce obsolence of old feature names.
2016
2017 2020-08-25 Gaius Mulley <gaiusmod2@gmail.com>
2018 Andrew Burgess <andrew.burgess@embecosm.com>
2019
2020 PR m2/26372
2021 * m2-exp.y (exp): Improve comment for non_empty_arglist case, add
2022 an assert. Remove single element array indexing pattern as the
2023 MULTI_SUBSCRIPT support will handle this case too.
2024
2025 2020-08-24 Simon Marchi <simon.marchi@polymtl.ca>
2026
2027 * value.h (valprint_check_validity): Move declaration from
2028 here...
2029 * valprint.h (valprint_check_validity): ... to here.
2030
2031 2020-08-24 Simon Marchi <simon.marchi@efficios.com>
2032
2033 * debug.h: New file.
2034 * debug.c (debug_prefixed_vprintf): New function.
2035 * infrun.c (infrun_debug_printf_1): Use debug_prefixed_vprintf.
2036 * linux-nat.c (linux_nat_debug_printf_1): Likewise.
2037
2038 2020-08-24 Simon Marchi <simon.marchi@efficios.com>
2039
2040 * infrun.h (infrun_debug_printf_1): New function declaration.
2041 (infrun_debug_printf): New macro.
2042 * infrun.c (infrun_debug_printf_1): Use infrun_debug_printf
2043 throughout.
2044 (infrun_debug_printf): New function.
2045 * breakpoint.c (should_be_inserted): Use infrun_debug_printf.
2046 (handle_jit_event): Likewise.
2047
2048 2020-08-21 Mark Wielaard <mark@klomp.org>
2049
2050 * ada-lex.l: Extend register warnings diagnostics comment for g++.
2051
2052 2020-08-22 Simon Marchi <simon.marchi@efficios.com>
2053
2054 * frame.c (enum class frame_id_status): New.
2055 (struct frame_info) <this_id::p>: Change type to frame_id_status.
2056 (fprintf_frame): Update.
2057 (compute_frame_id): Set frame id status to "computing" on entry.
2058 Set it back to "not_computed" on failure and to "computed" on
2059 success.
2060 (get_frame_id): Assert the frame id is not being computed.
2061 (create_sentinel_frame): Use frame_id_status::COMPUTED.
2062 (create_new_frame): Likewise.
2063 (frame_cleanup_after_sniffer): Update assert.
2064
2065 2020-08-20 Simon Marchi <simon.marchi@polymtl.ca>
2066
2067 * regcache.c (pid_ptid_regcache_map): New type.
2068 (target_ptid_regcache_map): Remove.
2069 (target_pid_ptid_regcache_map): New type.
2070 (regcaches): Change type to target_pid_ptid_regcache_map.
2071 (get_thread_arch_aspace_regcache): Update.
2072 (regcache_thread_ptid_changed): Update, handle pid-like ptid
2073 case.
2074 (regcaches_size): Update.
2075 (regcache_count): Update.
2076 (registers_changed_ptid_target_pid_test): New.
2077 (_initialize_regcache): Register new test.
2078
2079 2020-08-20 Simon Marchi <simon.marchi@polymtl.ca>
2080
2081 * regcache.c (regcache_count): New.
2082 (struct regcache_test_data): New.
2083 (regcache_test_data_up): New.
2084 (populate_regcaches_for_test): New.
2085 (regcaches_test): Remove.
2086 (get_thread_arch_aspace_regcache_test): New.
2087 (registers_changed_ptid_all_test): New.
2088 (registers_changed_ptid_target_test): New.
2089 (registers_changed_ptid_target_ptid_test): New.
2090 (regcache_thread_ptid_changed): Remove regcache_count lambda.
2091 (_initialize_regcache): Register new tests.
2092
2093 2020-08-20 Simon Marchi <simon.marchi@polymtl.ca>
2094
2095 * regcache.c (test_get_thread_arch_aspace_regcache): Rename to...
2096 (get_thread_arch_aspace_regcache_and_check): ... this. Remove
2097 gdbarch and aspace parameter. Use current inferior's aspace.
2098 Validate regcache's arch value.
2099 (regcaches_test): Update.
2100
2101 2020-08-20 Simon Marchi <simon.marchi@polymtl.ca>
2102
2103 * regcache.c (regcaches_test): Call registers_changed.
2104
2105 2020-08-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2106
2107 * infrun.c (process_event_stop_test): Fix typo "breapoint".
2108
2109 2020-08-19 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
2110
2111 * amd64-tdep.c (amd64_skip_prologue): Using symbol table
2112 to find the end of prologue for flang compiled binaries.
2113 * arm-tdep.c (arm_skip_prologue): Likewise.
2114 * i386-tdep.c (i386_skip_prologue): Likewise.
2115 * producer.c (producer_is_llvm): New function.
2116 (producer_parsing_tests): Added new tests for clang/flang.
2117 * producer.h (producer_is_llvm): New declaration.
2118
2119 2020-08-18 Simon Marchi <simon.marchi@efficios.com>
2120
2121 * linux-nat.c (linux_nat_debug_printf): New function.
2122 (linux_nat_debug_printf_1): New macro. Use throughout the file.
2123
2124 2020-08-18 Aaron Merey <amerey@redhat.com>
2125
2126 * Makefile.in (DEBUGINFOD_CFLAGS, DEBUGINFOD_LIBS): New variables.
2127 (INTERNAL_CFLAGS_BASE): Add DEBUGINFOD_CFLAGS.
2128 (CLIBS): Add DEBUGINFOD_LIBS.
2129
2130 2020-08-17 Sergei Trofimovich <siarheit@google.com>
2131
2132 * ia64-linux-nat.c: Include "gdbarch.h" to declare used
2133 'gdbarch_num_regs'.
2134
2135 2020-08-17 Tom Tromey <tromey@adacore.com>
2136
2137 * ada-varobj.c (ada_varobj_decode_var): Handle case where
2138 ada_get_decoded_value returns NULL.
2139
2140 2020-08-17 Tom Tromey <tromey@adacore.com>
2141
2142 * python/py-inferior.c (infpy_search_memory): Use
2143 gdb_py_object_from_ulongest.
2144 * python/py-infevents.c (create_inferior_call_event_object)
2145 (create_memory_changed_event_object): Use
2146 gdb_py_object_from_ulongest.
2147 * python/py-linetable.c (ltpy_entry_get_pc): Use
2148 gdb_py_object_from_ulongest.
2149
2150 2020-08-17 Simon Marchi <simon.marchi@polymtl.ca>
2151
2152 * loc.c (class symbol_needs_eval_context): Fix indentation.
2153
2154 2020-08-17 Simon Marchi <simon.marchi@polymtl.ca>
2155
2156 * dwarf2/loc.c (dwarf2_loc_desc_get_symbol_read_needs): Use
2157 bool.
2158
2159 2020-08-17 Tom de Vries <tdevries@suse.de>
2160
2161 PR gdb/26393
2162 * gdbtypes.c (dump_dynamic_prop): New function.
2163 (recursive_dump_type): Use dump_dynamic_prop for TYPE_CODE_RANGE.
2164
2165 2020-08-15 Tom de Vries <tdevries@suse.de>
2166
2167 PR backtrace/26390
2168 * stack.c (print_frame_args): Temporarily set the selected
2169 frame to FRAME while printing the frame's arguments.
2170
2171 2020-08-14 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
2172
2173 PR breakpoints/26385
2174 * ppc-linux-nat.c (ppc_linux_nat_target::low_prepare_to_resume):
2175 Always clear watchpoint with PTRACE_SET_DEBUGREG.
2176
2177 2020-08-14 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
2178
2179 * ppc-linux-nat.c (ppc_linux_dreg_interface::detect)
2180 (ppc_linux_nat_target::low_prepare_to_resume): Use ptrace () < 0
2181 and >= to check return value instead of == -1 and != -1.
2182
2183 2020-08-14 Simon Marchi <simon.marchi@polymtl.ca>
2184
2185 * utils.h (class gdb_argv) <as_array_view>: New method.
2186 * utils.c (gdb_argv_as_array_view_test): New.
2187 (_initialize_utils): Register selftest.
2188 * maint.c (maintenance_selftest): Use the new method.
2189
2190 2020-08-13 Kamil Rytarowski <n54@gmx.com>
2191
2192 * target.h (supports_dumpcore, dumpcore): New
2193 function declarations.
2194 * target.c (supports_dumpcore, dumpcore): New
2195 functions.
2196 * target-delegates.c: Rebuild.
2197 * gcore.c (gcore_command): Use target_supports_dumpcore ()
2198 and target_dumpcore ().
2199
2200 2020-08-13 Aaron Merey <amerey@redhat.com>
2201
2202 * debuginfod-support.c: Replace global variables with user_data.
2203
2204 2020-08-13 Simon Marchi <simon.marchi@polymtl.ca>
2205
2206 * maint.c (maintenance_selftest): Split args and pass array_view
2207 to run_tests.
2208
2209 2020-08-12 Luis Machado <luis.machado@linaro.org>
2210
2211 * value.c (check_type_length_before_alloc): Use ULONGEST to store a
2212 type's length.
2213 Use %s and pulongest to print the length.
2214
2215 2020-08-12 Pedro Alves <palves@redhat.com>
2216
2217 * NEWS: Move "Multi-target debugging support" item to the
2218 "Changes since GDB 9" section.
2219
2220 2020-08-12 Pedro Alves <palves@redhat.com>
2221
2222 PR gdb/26336
2223 * progspace.c (program_space::remove_objfile): Invalidate the
2224 frame cache.
2225
2226 2020-08-11 Tom de Vries <tdevries@suse.de>
2227
2228 * MAINTAINERS: Mark ms1 as deleted.
2229
2230 2020-08-10 Luis Machado <luis.machado@linaro.org>
2231
2232 PR gdb/26310
2233
2234 * aarch64-tdep.c (aarch64_analyze_prologue): Track use of SP/FP and
2235 act accordingly.
2236 (aarch64_analyze_prologue_test): Add more unit tests to exercise
2237 movz/str/stur/stp skipping behavior.
2238
2239 2020-08-10 Luis Machado <luis.machado@linaro.org>
2240
2241 * nat/aarch64-sve-linux-sigcontext.h (SVE_PT_REGS_OFFSET): Use
2242 struct user_sve_header instead of struct sve_context.
2243
2244 2020-08-09 Simon Marchi <simon.marchi@polymtl.ca>
2245
2246 * read.h (dwarf2_fetch_die_loc_sect_off,
2247 dwarf2_fetch_die_loc_cu_off): Replace function pointer +
2248 `void *` parameter with function_view.
2249 * read.c (dwarf2_fetch_die_loc_sect_off,
2250 dwarf2_fetch_die_loc_cu_off): Likewise.
2251 * loc.c (get_frame_pc_for_per_cu_dwarf_call): Remove.
2252 (per_cu_dwarf_call): Adjust.
2253 (get_frame_address_in_block_wrapper): Remove.
2254 (indirect_synthetic_pointer): Adjust.
2255 (get_ax_pc): Remove.
2256 (dwarf2_compile_expr_to_ax): Adjust.
2257
2258 2020-08-08 Tom de Vries <tdevries@suse.de>
2259
2260 PR build/26344
2261 * arch/riscv.c (riscv_lookup_target_description): Use an explicit
2262 constructor.
2263 * regcache.c (get_thread_arch_aspace_regcache): Same.
2264
2265 2020-08-07 Tom Tromey <tromey@adacore.com>
2266
2267 * ravenscar-thread.c
2268 (ravenscar_thread_target::set_base_thread_from_ravenscar_task):
2269 New method.
2270 (ravenscar_thread_target::wait): Check
2271 runtime_initialized.
2272 (ravenscar_thread_target::prepare_to_store)
2273 (ravenscar_thread_target::stopped_by_sw_breakpoint)
2274 (ravenscar_thread_target::stopped_by_hw_breakpoint)
2275 (ravenscar_thread_target::stopped_by_watchpoint)
2276 (ravenscar_thread_target::stopped_data_address)
2277 (ravenscar_thread_target::core_of_thread): Use
2278 scoped_restore_current_thread and
2279 set_base_thread_from_ravenscar_task.
2280
2281 2020-08-07 Tom Tromey <tromey@adacore.com>
2282
2283 * ravenscar-thread.c (update_thread_list): Set inferior_ptid.
2284
2285 2020-08-07 Tom Tromey <tromey@adacore.com>
2286
2287 * ravenscar-thread.c (ravenscar_thread_target::wait): Call
2288 update_inferior_ptid before update_thread_list.
2289 (temporarily_change_regcache_ptid): New class.
2290 (ravenscar_thread_target::fetch_registers)
2291 (ravenscar_thread_target::store_registers)
2292 (ravenscar_thread_target::prepare_to_store): Use base thread when
2293 forwarding operation.
2294
2295 2020-08-07 Tom Tromey <tromey@adacore.com>
2296
2297 * ravenscar-thread.c (ravenscar_thread_target::resume): Handle
2298 "is_pid" case.
2299
2300 2020-08-07 Tom Tromey <tromey@adacore.com>
2301
2302 * ravenscar-thread.c (xfer_partial, enable_btrace, add_thread):
2303 New methods.
2304 (ravenscar_thread_target::get_thread_base_cpu): Check m_cpu_map
2305 first.
2306 (ravenscar_thread_target::add_thread): Rename from
2307 ravenscar_add_thread.
2308 (ravenscar_thread_target::update_thread_list): Use a lambda.
2309 (ravenscar_thread_target::xfer_partial): New method.
2310
2311 2020-08-07 Tom Tromey <tromey@adacore.com>
2312
2313 * ada-lang.h (ada_task_list_iterator_ftype): Now a
2314 gdb::function_view.
2315 (iterate_over_live_ada_tasks): Change type of argument.
2316 * ada-tasks.c (iterate_over_live_ada_tasks): Change type
2317 of argument.
2318
2319 2020-08-07 Tom Tromey <tromey@adacore.com>
2320
2321 * ravenscar-thread.c (ravenscar_thread_target) <extra_thread_info>:
2322 Remove.
2323 (ravenscar_thread_target::extra_thread_info): Remove.
2324 (ravenscar_thread_target::pid_to_str): Mention Ravenscar in result;
2325 defer to target beneath for non-Ravenscar threads.
2326
2327 2020-08-07 Tom Tromey <tromey@adacore.com>
2328
2329 * ravenscar-thread.c (ravenscar_thread_target) <get_base_cpu,
2330 get_base_thread_from_ravenscar_task>: Now methods.
2331 <m_cpu_map>: New member.
2332 (ravenscar_thread_target::get_thread_base_cpu): Rename from
2333 ravenscar_get_thread_base_cpu. Check m_cpu_map.
2334 (ravenscar_thread_target::task_is_currently_active): Update.
2335 (ravenscar_thread_target::get_base_thread_from_ravenscar_task):
2336 Now a method.
2337 (ravenscar_thread_target::add_active_thread): Put initial thread
2338 into the m_cpu_map.
2339
2340 2020-08-07 Tom Tromey <tromey@adacore.com>
2341
2342 * ravenscar-thread.c (ravenscar_thread_target::wait): Return
2343 event_ptid.
2344
2345 2020-08-07 Tom Tromey <tromey@adacore.com>
2346
2347 * ravenscar-thread.c (ravenscar_thread_target::wait): Check
2348 runtime_initialized.
2349
2350 2020-08-07 Tom Tromey <tromey@adacore.com>
2351
2352 * ravenscar-thread.c (ravenscar_thread_target): Don't call
2353 add_active_thread.
2354 (ravenscar_thread_target::add_active_thread): Now public.
2355 (ravenscar_inferior_created): Call add_active_thread after pushing
2356 the target.
2357
2358 2020-08-07 Simon Marchi <simon.marchi@polymtl.ca>
2359
2360 * regcache.c (ptid_regcache_map): New type.
2361 (target_ptid_regcache_map): New type.
2362 (regcaches): Change type to target_ptid_regcache_map.
2363 (get_thread_arch_aspace_regcache): Update to regcaches' new
2364 type.
2365 (regcache_thread_ptid_changed): Likewise.
2366 (registers_changed_ptid): Likewise.
2367 (regcaches_size): Likewise.
2368 (regcaches_test): Update.
2369 (regcache_thread_ptid_changed): Update.
2370 * regcache.h (regcache_up): New type.
2371 * gdbsupport/ptid.h (hash_ptid): New struct.
2372
2373 2020-08-07 Simon Marchi <simon.marchi@efficios.com>
2374
2375 * observable.h (thread_ptid_changed): Add parameter
2376 `process_stratum_target *`.
2377 * infrun.c (infrun_thread_ptid_changed): Add parameter
2378 `process_stratum_target *` and use it.
2379 (selftests): New namespace.
2380 (infrun_thread_ptid_changed): New function.
2381 (_initialize_infrun): Register selftest.
2382 * regcache.c (regcache_thread_ptid_changed): Add parameter
2383 `process_stratum_target *` and use it.
2384 (regcache_thread_ptid_changed): New function.
2385 (_initialize_regcache): Register selftest.
2386 * thread.c (thread_change_ptid): Pass target to
2387 thread_ptid_changed observable.
2388
2389 2020-08-06 Caroline Tice <cmtice@google.com>
2390
2391 * dwarf2/read.c (struct dwo_file): Update comment on 'sections' field.
2392 (struct dwp_sections): Update field comments. Add loclists and
2393 rnglists fields.
2394 (struct virtual_v2_dwo_sections): Rename struct to
2395 'virtual_v2_or_v5_dwo_sections'; update comments at top of struct; add
2396 size & offset fields for loclists and rnglists.
2397 (struct dwp_hash_table): Add a 'v5' struct field to the union section.
2398 (create_debug_type_hash_table): Add 'DW_UT_split_type' to the check for
2399 skipping dummy type units.
2400 (create_dwp_hash_table): Update the large comment above the function to
2401 discuss Version 5 DWP files as well, with references. Update all the
2402 version checks in the function to check for version 5 as well. Add new
2403 section at the end to create dwp hash table for version 5.
2404 (create_dwp_v2_section): Rename function to
2405 'create_dwp_v2_or_v5_section'. Update function comment appropriately.
2406 Add V5 to error message text.
2407 (create_dwo_unit_in_dwp_v2): Change calls to create_dwp_v2_section
2408 into calls to create_dwp_v2_or_v5_section.
2409 (create_dwo_unit_in_dwp_v5): New function.
2410 (lookup_dwo_unit_in_dwp): Update conditional statement to explicitly
2411 check for version2; add else clause to handle version 5.
2412 (open_and_init_dwo_file): Add code to check dwarf version & only call
2413 create_debug_types_hash_table (with sections.types) if version is not 5;
2414 else call create_debug_type_hash_table, with sections.info.
2415 (dwarf2_locate_v2_dwp_sections): Update function comment to mention
2416 version 5.
2417 (dwarf2_locate_v5_dwp_sections): New function.
2418 (open_and_init_dwp_file): Add else-if clause for version 5 to call
2419 bfd_map_over_sections with dwarf2_locate_v5_dwp_sections.
2420
2421 2020-08-06 Simon Marchi <simon.marchi@efficios.com>
2422
2423 * regcache.h (class regcache): Remove friend
2424 registers_changed_ptid.
2425 <regcache_thread_ptid_changed>: Remove.
2426 <regcaches>: Remove.
2427 * regcache.c (regcache::regcaches): Rename to...
2428 (regcaches): ... this. Make static.
2429 (get_thread_arch_aspace_regcache): Update.
2430 (regcache::regcache_thread_ptid_changed): Rename to...
2431 (regcache_thread_ptid_changed): ... this. Update.
2432 (class regcache_access): Remove.
2433 (regcaches_test): Update.
2434 (_initialize_regcache): Update.
2435 * sparc64-tdep.c, dwarf2/index-write.c, record-btrace.c: Include
2436 <forward_list>.
2437
2438 2020-08-06 Simon Marchi <simon.marchi@efficios.com>
2439
2440 * regcache.h (class regcache) <current_regcache>: Rename to...
2441 <regcaches>: ... this. Move doc here.
2442 * regcache.c (regcache::current_regcache) Rename to...
2443 (regcache::regcaches): ... this. Move doc to header.
2444 (get_thread_arch_aspace_regcache): Update.
2445 (regcache::regcache_thread_ptid_changed): Update.
2446 (registers_changed_ptid): Update.
2447 (class regcache_access) <current_regcache_size>: Rename to...
2448 <regcaches_size>: ... this.
2449 (current_regcache_test): Rename to...
2450 (regcaches_test): ... this.
2451 (_initialize_regcache): Update.
2452
2453 2020-08-06 Victor Collod <vcollod@nvidia.com>
2454
2455 * amd64-tdep.c (amd64_analyze_prologue): Fix incorrect comment.
2456
2457 2020-08-05 Kevin Buettner <kevinb@redhat.com>
2458
2459 * corelow.c (core_target::build_file_mappings): Don't output
2460 null pathname in warning.
2461
2462 2020-08-05 Simon Marchi <simon.marchi@polymtl.ca>
2463
2464 * gdb.dwarf2/clztest.exp, gdb.dwarf2/dw2-common-block.exp,
2465 gdb.dwarf2/dw2-dup-frame.exp, gdb.dwarf2/dw2-reg-undefined.exp,
2466 gdb.dwarf2/dw2-single-line-discriminators.exp,
2467 dw2-undefined-ret-addr.exp: Pass nopie to compilation options.
2468
2469 2020-08-05 Tom Tromey <tromey@adacore.com>
2470
2471 PR rust/26197:
2472 * dwarf2/read.c (alloc_rust_variant): Handle univariant case.
2473 (quirk_rust_enum): Call alloc_rust_variant for univariant case.
2474 Fix off-by-one and type size errors in ordinary case.
2475
2476 2020-08-05 Tom de Vries <tdevries@suse.de>
2477
2478 * gdbtypes.c (type_not_allocated, type_not_associated): Use
2479 "prop->const_val () == 0" instead of "prop->const_val () != 0".
2480
2481 2020-08-04 Simon Marchi <simon.marchi@efficios.com>
2482
2483 * frame.h (frame_id_p): Return bool.
2484 (frame_id_artificial_p): Return bool.
2485 (frame_id_eq): Return bool.
2486 (has_stack_frames): Return bool.
2487 (get_selected_frame): Fix typo in comment.
2488 (get_frame_pc_if_available): Return bool.
2489 (get_frame_address_in_block_if_available): Return bool.
2490 (get_frame_func_if_available): Return bool.
2491 (read_frame_register_unsigned): Return bool.
2492 (get_frame_register_bytes): Return bool.
2493 (safe_frame_unwind_memory): Return bool.
2494 (deprecated_frame_register_read): Return bool.
2495 (frame_unwinder_is): Return bool.
2496 * frame.c (struct frame_info) <prev_arch::p>: Change type to
2497 bool.
2498 <this_id::p>: Likewise.
2499 <prev_p>: Likewise.
2500 (frame_stash_add): Return bool.
2501 (get_frame_id): Use bool.
2502 (frame_id_build_special) Use bool.
2503 (frame_id_build_unavailable_stack): Use bool.
2504 (frame_id_build): Use bool.
2505 (frame_id_p): Return bool, use true/false instead of 1/0.
2506 (frame_id_artificial_p): Likewise.
2507 (frame_id_eq): Likewise.
2508 (frame_id_inner): Likewise.
2509 (get_frame_func_if_available): Likewise.
2510 (read_frame_register_unsigned): Likewise.
2511 (deprecated_frame_register_read): Likewise.
2512 (get_frame_register_bytes): Likewise.
2513 (has_stack_frames): Likewise.
2514 (inside_main_func): Likewise.
2515 (inside_entry_func): Likewise.
2516 (get_frame_pc_if_available): Likewise.
2517 (get_frame_address_in_block_if_available): Likewise.
2518 (frame_unwinder_is): Likewise.
2519 (safe_frame_unwind_memory): Likewise.
2520 (frame_unwind_arch): Likewise.
2521
2522 2020-08-04 Simon Marchi <simon.marchi@efficios.com>
2523
2524 * frame.c (frame_info) <prev_func> <p>: Rename to status, change
2525 type to cached_copy_status.
2526 (fprintf_frame): Adjust.
2527 (get_frame_func_if_available): Adjust.
2528 (frame_cleanup_after_sniffer): Adjust.
2529
2530 2020-08-04 Mark Wielaard <mark@klomp.org>
2531
2532 * MAINTAINERS (Write After Approval): Update email address.
2533
2534 2020-08-04 Simon Marchi <simon.marchi@polymtl.ca>
2535
2536 * gdbtypes.h (TYPE_DYN_PROP_ADDR): Remove, replace uses with
2537 dynamic_prop::const_val.
2538
2539 2020-08-04 Simon Marchi <simon.marchi@polymtl.ca>
2540
2541 * gdbtypes.h (TYPE_DYN_PROP_KIND): Remove, replace uses with
2542 dynamic_prop::kind.
2543
2544 2020-08-04 Simon Marchi <simon.marchi@polymtl.ca>
2545
2546 * gdbtypes.h (TYPE_DYN_PROP_BATON): Remove.
2547
2548 2020-08-04 Jose E. Marchesi <jose.marchesi@oracle.com>
2549
2550 * configure.tgt: Set gdb_sim for bpf-*-* targets.
2551
2552 2020-08-04 Weimin Pan <weimin.pan@oracle.com>
2553 Jose E. Marchesi <jose.marchesi@oracle.com>
2554
2555 * configure.tgt: Add entry for bpf-*-*.
2556 * Makefile.in (ALL_TARGET_OBS): Add bpf-tdep.o
2557 (ALLDEPFILES): Add bpf-tdep.c.
2558 * bpf-tdep.c: New file.
2559 * MAINTAINERS: Add bpf target and maintainer.
2560 * NEWS: Mention the support for the new target.
2561
2562 2020-08-04 Tom de Vries <tdevries@suse.de>
2563
2564 PR symtab/23270
2565 * dwarf2/read.c (find_partial_die): Change internal error into Dwarf
2566 Error.
2567
2568 2020-08-03 John Baldwin <jhb@FreeBSD.org>
2569
2570 * syscalls/freebsd.xml: Regenerate.
2571
2572 2020-08-03 John Baldwin <jhb@FreeBSD.org>
2573
2574 * syscalls/update-freebsd.sh: Fix usage and year range.
2575
2576 2020-08-03 Tom de Vries <tdevries@suse.de>
2577
2578 PR symtab/26333
2579 * dwarf2/read.c (dwarf_decode_lines_1): Ignore
2580 DW_LNE_lo_user/DW_LNE_hi_user range.
2581
2582 2020-07-30 Simon Marchi <simon.marchi@polymtl.ca>
2583
2584 PR ada/26318
2585 * ada-lang.c (ada_modulus): Return 0 if property is not of const
2586 kind.
2587
2588 2020-07-30 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2589
2590 * breakpoint.c (set_breakpoint_condition): Do minor refactoring.
2591
2592 2020-07-30 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2593
2594 * breakpoint.c (set_breakpoint_condition): Update the condition
2595 expressions after checking that the input condition string parses
2596 successfully and does not contain junk at the end.
2597
2598 2020-07-30 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2599
2600 * breakpoint.c (set_breakpoint_condition): Update the
2601 condition string after parsing the new condition successfully.
2602
2603 2020-07-30 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
2604
2605 * proc-api.c (_STRUCTURED_PROC): Don't define.
2606 * proc-events.c: Likewise.
2607 * proc-flags.c: Likewise.
2608 * proc-why.c: Likewise.
2609 * procfs.c: Likewise.
2610
2611 * Makefile.in (INTERNAL_CPPFLAGS): Add LARGEFILE_CPPFLAGS.
2612 * configure, config.in: Regenerate.
2613
2614 2020-07-30 Tom de Vries <tdevries@suse.de>
2615
2616 PR build/26320
2617 * ui-style.h (struct ui_file_style::color): Wrap m_value and
2618 m_red/m_green/m_blue in a union.
2619
2620 2020-07-29 Tom de Vries <tdevries@suse.de>
2621
2622 PR tdep/26280
2623 * s390-tdep.c (s390_displaced_step_fixup): Fix Wmaybe-uninitialized.
2624
2625 2020-07-28 Tom Tromey <tromey@adacore.com>
2626
2627 PR symtab/26270:
2628 * symtab.h (find_pc_partial_function_sym): Declare.
2629 * cli/cli-cmds.c (disassemble_command): Use
2630 find_pc_partial_function_sym. Check asm_demangle.
2631 * blockframe.c (cache_pc_function_sym): New global.
2632 (cache_pc_function_name): Remove.
2633 (clear_pc_function_cache): Update.
2634 (find_pc_partial_function_sym): New function, from
2635 find_pc_partial_function.
2636 (find_pc_partial_function): Rewrite using
2637 find_pc_partial_function_sym.
2638
2639 2020-07-28 Tom Tromey <tromey@adacore.com>
2640
2641 * cli/cli-cmds.c (_initialize_cli_cmds): Rearrange "disassemble"
2642 help. Add usage.
2643
2644 2020-07-28 Tom Tromey <tromey@adacore.com>
2645
2646 * dwarf2/expr.c (dwarf_expr_context::execute_stack_op)
2647 <DW_OP_GNU_variable_value>: Cast to address type.
2648
2649 2020-07-28 Kamil Rytarowski <n54@gmx.com>
2650
2651 * nbsd-nat.h (nbsd_nat_target::xfer_partial): New declaration.
2652 * nbsd-nat.c (nbsd_nat_target::xfer_partial): New function.
2653 * nbsd-tdep.c (nbsd_gdbarch_data_handle, struct nbsd_gdbarch_data)
2654 (init_nbsd_gdbarch_data, get_nbsd_gdbarch_data)
2655 (nbsd_get_siginfo_type): New.
2656 (nbsd_init_abi): Install gdbarch "get_siginfo_type" method.
2657 (_initialize_nbsd_tdep): New.
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 H.J. Lu <hongjiu.lu@intel.com>
2665
2666 PR binutils/26301
2667 * configure: Regenerated.
2668
2669 2020-07-28 Andrew Burgess <andrew.burgess@embecosm.com>
2670
2671 * python/py-frame.c: Remove 'user-regs.h' include.
2672 (frapy_read_register): Rewrite to make use of
2673 gdbpy_parse_register_id.
2674 * python/py-registers.c (gdbpy_parse_register_id): New function,
2675 moved here from python/py-unwind.c. Updated the return type, and
2676 also accepts register descriptor objects.
2677 * python/py-unwind.c: Remove 'user-regs.h' include.
2678 (pyuw_parse_register_id): Moved to python/py-registers.c.
2679 (unwind_infopy_add_saved_register): Update to use
2680 gdbpy_parse_register_id.
2681 (pending_framepy_read_register): Likewise.
2682 * python/python-internal.h (gdbpy_parse_register_id): Declare.
2683
2684 2020-07-28 Andrew Burgess <andrew.burgess@embecosm.com>
2685
2686 * python/py-registers.c: Add 'user-regs.h' include.
2687 (register_descriptor_iter_find): New function.
2688 (register_descriptor_iterator_object_methods): New static global
2689 methods array.
2690 (register_descriptor_iterator_object_type): Add pointer to methods
2691 array.
2692
2693 2020-07-27 John Baldwin <jhb@FreeBSD.org>
2694
2695 * fbsd-nat.h: Include <osreldate.h>. Define USE_SIGTRAP_SIGINFO
2696 for all architectures on FreeBSD 11.3 and later.
2697
2698 2020-07-27 Tom Tromey <tromey@adacore.com>
2699
2700 * gcore.h (load_corefile): Don't declare.
2701
2702 2020-07-27 Tom de Vries <tdevries@suse.de>
2703
2704 * configure.ac: Fix sys/sockets.h -> sys/socket.h typo.
2705 * config.in: Regenerate.
2706 * configure: Regenerate.
2707
2708 2020-07-26 Eli Zaretskii <eliz@gnu.org>
2709
2710 * configure.ac (AC_CHECK_HEADERS): Check for sys/socket.h and
2711 ws2tcpip.h. When checking whether socklen_t type is defined, use
2712 ws2tcpip.h if it is available and sys/socket.h isn't.
2713 * configure: Regenerate.
2714 * config.in: Regenerate.
2715
2716 2020-07-25 Andrew Burgess <andrew.burgess@embecosm.com>
2717
2718 PR fortran/23051
2719 PR fortran/26139
2720 * valops.c (value_ind): Pass address to
2721 readjust_indirect_value_type.
2722 * value.c (readjust_indirect_value_type): Make parameter
2723 non-const, and add extra address parameter. Resolve original type
2724 before using it.
2725 * value.h (readjust_indirect_value_type): Update function
2726 signature and comment.
2727
2728 2020-07-25 Tom de Vries <tdevries@suse.de>
2729
2730 PR symtab/26243
2731 * dwarf2/read.c (lnp_state_machine::record_line): Ignore zero line
2732 entries.
2733
2734 2020-07-24 Aaron Merey <amerey@redhat.com>
2735
2736 * Makefile.in: Replace LIBDEBUGINFOD with DEBUGINFOD_LIBS.
2737 * configure: Rebuild.
2738
2739 2020-07-23 Kevin Buettner <kevinb@redhat.com>
2740
2741 PR corefiles/26294
2742 * corelow.c (_initialize_corelow): Add period to help text
2743 for "maintenance print core-file-backed-mappings".
2744
2745 2020-07-23 Pedro Alves <pedro@palves.net>
2746
2747 * frame-unwind.c (frame_unwind_try_unwinder): On exception, don't
2748 touch THIS_CACHE/THIS_FRAME if the frame cache was cleared
2749 meanwhile.
2750 * frame.c (frame_cache_generation, get_frame_cache_generation):
2751 New.
2752 (reinit_frame_cache): Increment FRAME_CACHE_GENERATION.
2753 (get_prev_frame_if_no_cycle): On exception, don't touch
2754 PREV_FRAME/THIS_FRAME if the frame cache was cleared meanwhile.
2755 * frame.h (get_frame_cache_generation): Declare.
2756
2757 2020-07-23 Tom de Vries <tdevries@suse.de>
2758
2759 PR tui/26282
2760 * tui/tui-winsource.h (struct tui_source_windows::tui_source_windows):
2761 New default constructor.
2762
2763 2020-07-23 Andrew Burgess <andrew.burgess@embecosm.com>
2764
2765 * disasm.c (do_mixed_source_and_assembly_deprecated): Don't
2766 exclude non-statement entries.
2767
2768 2020-07-22 Kevin Buettner <kevinb@redhat.com>
2769
2770 * NEWS (New commands): Mention new command
2771 "maintenance print core-file-backed-mappings".
2772
2773 2020-07-22 Kevin Buettner <kevinb@redhat.com>
2774
2775 * corelow.c (gdbcmd.h): Include.
2776 (core_target::info_proc_mappings): New method.
2777 (get_current_core_target): New function.
2778 (maintenance_print_core_file_backed_mappings): New function.
2779 (_initialize_corelow): Add core-file-backed-mappings to
2780 "maint print" commands.
2781
2782 2020-07-22 Kevin Buettner <kevinb@redhat.com>
2783
2784 * linux-tdep.c (dump_note_entry_p): New function.
2785 (linux_dump_mapping_p_ftype): New typedef.
2786 (linux_find_memory_regions_full): Add new parameter,
2787 should_dump_mapping_p.
2788 (linux_find_memory_regions): Adjust call to
2789 linux_find_memory_regions_full.
2790 (linux_make_mappings_core_file_notes): Use dump_note_entry_p in
2791 call to linux_find_memory_regions_full.
2792
2793 2020-07-22 Kevin Buettner <kevinb@redhat.com>
2794
2795 * corelow.c (solist.h, unordered_map): Include.
2796 (class core_target): Add field m_core_file_mappings and
2797 method build_file_mappings.
2798 (core_target::core_target): Call build_file_mappings.
2799 (core_target::~core_target): Free memory associated with
2800 m_core_file_mappings.
2801 (core_target::build_file_mappings): New method.
2802 (core_target::xfer_partial): Use m_core_file_mappings
2803 for memory transfers.
2804 * linux-tdep.c (linux_read_core_file_mappings): New
2805 function.
2806 (linux_core_info_proc_mappings): Rewrite to use
2807 linux_read_core_file_mappings.
2808 (linux_init_abi): Register linux_read_core_file_mappings.
2809
2810 2020-07-22 Kevin Buettner <kevinb@redhat.com>
2811
2812 * arch-utils.c (default_read_core_file_mappings): New function.
2813 * arch-utils.c (default_read_core_file_mappings): Declare.
2814 * gdbarch.sh (read_core_file_mappings): New gdbarch method.
2815 * gdbarch.h, gdbarch.c: Regenerate.
2816
2817 2020-07-22 Kevin Buettner <kevinb@redhat.com>
2818
2819 PR corefiles/25631
2820 * corelow.c (core_target:xfer_partial): Revise
2821 TARGET_OBJECT_MEMORY case to consider non-SEC_HAS_CONTENTS
2822 case after first checking the stratum beneath the core
2823 target.
2824 (has_all_memory): Return true.
2825 * target.c (raw_memory_xfer_partial): Revise comment
2826 regarding use of has_all_memory.
2827
2828 2020-07-22 Kevin Buettner <kevinb@redhat.com>
2829
2830 * exec.h (section_table_xfer_memory): Revise declaration,
2831 replacing section name parameter with an optional callback
2832 predicate.
2833 * exec.c (section_table_xfer_memory): Likewise.
2834 * bfd-target.c, exec.c, target.c, corelow.c: Adjust all callers
2835 of section_table_xfer_memory.
2836
2837 2020-07-22 Tom Tromey <tromey@adacore.com>
2838
2839 * mi/mi-cmd-stack.c (list_args_or_locals): Use
2840 lookup_symbol_search_name.
2841
2842 2020-07-22 Andrew Burgess <andrew.burgess@embecosm.com>
2843
2844 * python/py-registers.c (gdbpy_register_object_data_init): Remove
2845 redundant local variable.
2846 (gdbpy_get_register_descriptor): Extract descriptor vector as a
2847 reference, not pointer, update code accordingly.
2848
2849 2020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
2850 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2851
2852 * objfiles.h (struct objfile) <skip_jit_symbol_lookup>: New field.
2853 * jit.c (jit_breakpoint_re_set_internal): Use the
2854 `skip_jit_symbol_lookup` field.
2855
2856 2020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
2857 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2858
2859 * jit.c (jit_read_descriptor): Define the descriptor address once,
2860 use twice.
2861 (jit_breakpoint_deleted): Move the declaration of the loop variable
2862 `iter` into the loop header.
2863 (jit_breakpoint_re_set_internal): Move the declaration of the local
2864 variable `objf_data` to the first point of definition.
2865 (jit_event_handler): Move the declaration of local variables
2866 `code_entry`, `entry_addr`, and `objf` to their first point of use.
2867 Rename `objf` to `jited`.
2868
2869 2020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
2870
2871 * jit.h (struct jiter_objfile_data) <jiter_objfile_data, objfile>:
2872 Remove.
2873 * jit.c (get_jiter_objfile_data): Update.
2874
2875 2020-07-22 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2876 Simon Marchi <simon.marchi@polymtl.ca>
2877
2878 * jit.c (struct jit_program_space_data): Remove.
2879 (jit_program_space_key): Remove.
2880 (jiter_objfile_data::~jiter_objfile_data): Remove program space
2881 stuff.
2882 (get_jit_program_space_data): Remove.
2883 (jit_breakpoint_deleted): Iterate on all of the program space's
2884 objfiles.
2885 (jit_inferior_init): Likewise.
2886 (jit_breakpoint_re_set_internal): Likewise. Also change return
2887 type to void.
2888 (jit_breakpoint_re_set): Pass current_program_space to
2889 jit_breakpoint_re_set_internal.
2890
2891 2020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
2892
2893 * jit.h (struct jiter_objfile_data) <cached_code_address,
2894 jit_breakpoint>: Move to here from ...
2895 * jit.c (jit_program_space_data): ... here.
2896 (jiter_objfile_data::~jiter_objfile_data): Update.
2897 (jit_breakpoint_deleted): Update.
2898 (jit_breakpoint_re_set_internal): Update.
2899
2900 2020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
2901
2902 * jit.c (jiter_objfile_data::~jiter_objfile_data): Remove some
2903 checks.
2904 (jit_read_descriptor): Remove NULL check.
2905 (jit_event_handler): Add an assertion.
2906
2907 2020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
2908
2909 * jit.h (struct jit_objfile_data): Split into...
2910 (struct jiter_objfile_data): ... this ...
2911 (struct jited_objfile_data): ... and this.
2912 * objfiles.h (struct objfile) <jit_data>: Remove.
2913 <jiter_data, jited_data>: New fields.
2914 * jit.c (jit_objfile_data::~jit_objfile_data): Rename to ...
2915 (jiter_objfile_data::~jiter_objfile_data): ... this.
2916 (get_jit_objfile_data): Rename to ...
2917 (get_jiter_objfile_data): ... this.
2918 (add_objfile_entry): Update.
2919 (jit_read_descriptor): Use get_jiter_objfile_data.
2920 (jit_find_objf_with_entry_addr): Use objfile's jited_data field.
2921 (jit_breakpoint_re_set_internal): Use get_jiter_objfile_data.
2922 (jit_inferior_exit_hook): Use objfile's jited_data field.
2923
2924 2020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
2925
2926 * jit.h: Forward-declare `struct minimal_symbol`.
2927 (struct jit_objfile_data): Migrate to here from jit.c; also add a
2928 constructor, destructor, and an objfile* field.
2929 * jit.c (jit_objfile_data): Remove.
2930 (struct jit_objfile_data): Migrate from here to jit.h.
2931 (jit_objfile_data::~jit_objfile_data): New destructor
2932 implementation with code moved from free_objfile_data.
2933 (free_objfile_data): Delete.
2934 (get_jit_objfile_data): Update to use the jit_data field of objfile.
2935 (jit_find_objf_with_entry_addr): Ditto.
2936 (jit_inferior_exit_hook): Ditto.
2937 (_initialize_jit): Remove the call to
2938 register_objfile_data_with_cleanup.
2939 * objfiles.h (struct objfile) <jit_data>: New field.
2940
2941 2020-07-22 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2942
2943 * jit.h: Forward-declare `struct objfile`.
2944 (jit_event_handler): Add a second parameter, the JITer objfile.
2945 * jit.c (jit_read_descriptor): Change the signature to take the
2946 JITer objfile as an argument instead of the jit_program_space_data.
2947 (jit_inferior_init): Update the call to jit_read_descriptor.
2948 (jit_event_handler): Use the new JITer objfile argument when calling
2949 jit_read_descriptor.
2950 * breakpoint.c (handle_jit_event): Update the call to
2951 jit_event_handler to pass the JITer objfile.
2952
2953 2020-07-21 John Baldwin <jhb@FreeBSD.org>
2954
2955 * gdbarch.c: Regenerate.
2956 * gdbarch.h: Regenerate.
2957 * gdbarch.sh (handle_segmentation_fault): Remove method.
2958 * infrun.c (handle_segmentation_fault): Remove.
2959 (print_signal_received_reason): Remove call to
2960 handle_segmentation_fault.
2961
2962 2020-07-21 John Baldwin <jhb@FreeBSD.org>
2963
2964 * sparc64-linux-tdep.c (sparc64_linux_handle_segmentation_fault):
2965 Rename to sparc64_linux_report_signal_info and add siggnal
2966 argument.
2967 (sparc64_linux_init_abi): Use sparc64_linux_report_signal_info
2968 instead of sparc64_linux_handle_segmentation_fault.
2969
2970 2020-07-21 John Baldwin <jhb@FreeBSD.org>
2971
2972 * amd64-linux-tdep.c (amd64_linux_init_abi_common): Use
2973 i386_linux_report_signal_info instead of
2974 i386_linux_handle_segmentation_fault.
2975 * i386-linux-tdep.c (i386_linux_handle_segmentation_fault): Rename
2976 to i386_linux_report_signal_info and add siggnal argument.
2977 (i386_linux_init_abi): Use i386_linux_report_signal_info instead
2978 of i386_linux_handle_segmentation_fault.
2979 * i386-linux-tdep.h (i386_linux_handle_segmentation_fault): Rename
2980 to i386_linux_report_signal_info and add siggnal argument.
2981
2982 2020-07-21 John Baldwin <jhb@FreeBSD.org>
2983
2984 * corelow.c (core_target_open): Invoke gdbarch report_signal_info
2985 hook if present.
2986
2987 2020-07-21 John Baldwin <jhb@FreeBSD.org>
2988
2989 * gdbarch.c: Regenerate.
2990 * gdbarch.h: Regenerate.
2991 * gdbarch.sh (report_signal_info): New method.
2992 * infrun.c (print_signal_received_reason): Invoke gdbarch
2993 report_signal_info hook if present.
2994
2995 2020-07-21 Andrew Burgess <andrew.burgess@embecosm.com>
2996
2997 * python/py-registers.c : Add 'unordered_map' include.
2998 (gdbpy_new_reggroup): Renamed to...
2999 (gdbpy_get_reggroup): ...this. Update to only create register
3000 group descriptors when needed.
3001 (gdbpy_reggroup_iter_next): Update.
3002
3003 2020-07-21 Andrew Burgess <andrew.burgess@embecosm.com>
3004
3005 * python/py-registers.c (gdbpy_register_object_data): New static
3006 global.
3007 (gdbpy_register_object_data_init): New function.
3008 (gdbpy_new_register_descriptor): Renamed to...
3009 (gdbpy_get_register_descriptor): ...this, and update to reuse
3010 existing register descriptors where possible.
3011 (gdbpy_register_descriptor_iter_next): Update.
3012 (gdbpy_initialize_registers): Register new gdbarch data.
3013
3014 2020-07-21 Simon Marchi <simon.marchi@efficios.com>
3015
3016 * linux-nat.c (stopped_pids): Make static.
3017
3018 2020-07-21 Simon Marchi <simon.marchi@polymtl.ca>
3019
3020 PR ada/26235
3021 * gdbtypes.c (ada_discrete_type_low_bound,
3022 ada_discrete_type_high_bound): Handle undefined bounds.
3023
3024 2020-07-21 Kamil Rytarowski <n54@gmx.com>
3025
3026 * nbsd-nat.h (nbsd_nat_target::supports_multi_process): New
3027 declaration.
3028 * nbsd-nat.c (nbsd_nat_target::supports_multi_process): New
3029 function.
3030
3031 2020-07-20 John Baldwin <jhb@FreeBSD.org>
3032
3033 * fbsd-tdep.c (fbsd_skip_solib_resolver): New function.
3034 (fbsd_init_abi): Install gdbarch "skip_solib_resolver" method.
3035 * fbsd-tdep.h (fbsd_skip_solib_resolver): New prototype.
3036 * mips-fbsd-tdep.c (mips_fbsd_skip_solib_resolver): New function.
3037 (mips_fbsd_init_abi): Install gdbarch "skip_solib_resolver"
3038 method.
3039
3040 2020-07-20 Ludovic Courtès <ludo@gnu.org>
3041
3042 * guile/scm-math.c (vlscm_integer_fits_p): Use 'uintmax_t'
3043 and 'intmax_t' instead of 'scm_t_uintmax' and 'scm_t_intmax',
3044 which are deprecated in Guile 3.0.
3045 * configure.ac (try_guile_versions): Add "guile-3.0".
3046 * configure (try_guile_versions): Regenerate.
3047 * NEWS: Update entry.
3048
3049 2020-07-20 Ludovic Courtès <ludo@gnu.org>
3050 Doug Evans <dje@google.com>
3051
3052 PR gdb/21104
3053 * guile/scm-ports.c (USING_GUILE_BEFORE_2_2): New macro.
3054 (ioscm_memory_port)[read_buf_size, write_buf_size]: Wrap in #if
3055 USING_GUILE_BEFORE_2_2.
3056 (stdio_port_desc, memory_port_desc) [!USING_GUILE_BEFORE_2_2]:
3057 Change type to 'scm_t_port_type *'.
3058 (natural_buffer_size) [!USING_GUILE_BEFORE_2_2]: New variable.
3059 (ioscm_open_port) [USING_GUILE_BEFORE_2_2]: Add 'stream'
3060 parameter and honor it. Update callers.
3061 (ioscm_open_port) [!USING_GUILE_BEFORE_2_2]: New function.
3062 (ioscm_read_from_port, ioscm_write) [!USING_GUILE_BEFORE_2_2]: New
3063 functions.
3064 (ioscm_fill_input, ioscm_input_waiting, ioscm_flush): Wrap in #if
3065 USING_GUILE_BEFORE_2_2.
3066 (ioscm_init_gdb_stdio_port) [!USING_GUILE_BEFORE_2_2]: Use
3067 'ioscm_read_from_port'. Call 'scm_set_port_read_wait_fd'.
3068 (ioscm_init_stdio_buffers) [!USING_GUILE_BEFORE_2_2]: New function.
3069 (gdbscm_stdio_port_p) [!USING_GUILE_BEFORE_2_2]: Use 'SCM_PORTP'
3070 and 'SCM_PORT_TYPE'.
3071 (gdbscm_memory_port_end_input, gdbscm_memory_port_seek)
3072 (ioscm_reinit_memory_port): Wrap in #if USING_GUILE_BEFORE_2_2.
3073 (gdbscm_memory_port_read, gdbscm_memory_port_write)
3074 (gdbscm_memory_port_seek, gdbscm_memory_port_close)
3075 [!USING_GUILE_BEFORE_2_2]: New functions.
3076 (gdbscm_memory_port_print): Remove use of 'SCM_PTOB_NAME'.
3077 (ioscm_init_memory_port_type) [!USING_GUILE_BEFORE_2_2]: Use
3078 'gdbscm_memory_port_read'.
3079 Wrap 'scm_set_port_end_input', 'scm_set_port_flush', and
3080 'scm_set_port_free' calls in #if USING_GUILE_BEFORE_2_2.
3081 (gdbscm_get_natural_buffer_sizes) [!USING_GUILE_BEFORE_2_2]: New
3082 function.
3083 (ioscm_init_memory_port): Remove.
3084 (ioscm_init_memory_port_stream): New function
3085 (ioscm_init_memory_port_buffers) [USING_GUILE_BEFORE_2_2]: New
3086 function.
3087 (gdbscm_memory_port_read_buffer_size) [!USING_GUILE_BEFORE_2_2]:
3088 Return scm_from_uint (0).
3089 (gdbscm_set_memory_port_read_buffer_size_x)
3090 [!USING_GUILE_BEFORE_2_2]: Call 'scm_setvbuf'.
3091 (gdbscm_memory_port_write_buffer_size) [!USING_GUILE_BEFORE_2_2]:
3092 Return scm_from_uint (0).
3093 (gdbscm_set_memory_port_write_buffer_size_x)
3094 [!USING_GUILE_BEFORE_2_2]: Call 'scm_setvbuf'.
3095 * configure.ac (try_guile_versions): Add "guile-2.2".
3096 * configure: Regenerate.
3097 * NEWS: Add entry.
3098
3099 2020-07-18 Tom Tromey <tom@tromey.com>
3100
3101 * linux-nat.c (linux_multi_process): Remove.
3102 (linux_nat_target::supports_multi_process): Return true.
3103
3104 2020-07-17 Andrew Burgess <andrew.burgess@embecosm.com>
3105
3106 * arch/riscv.c (riscv_tdesc_cache): Change map type.
3107 (riscv_lookup_target_description): Return pointer out of
3108 unique_ptr.
3109 * target-descriptions.c (allocate_target_description): Add
3110 comment.
3111 (target_desc_deleter::operator()): Likewise.
3112 * target-descriptions.h (struct target_desc_deleter): Moved to
3113 gdbsupport/tdesc.h.
3114 (target_desc_up): Likewise.
3115
3116 2020-07-17 Tom Tromey <tromey@adacore.com>
3117
3118 * linux-nat.c (linux_nat_target::supports_non_stop)
3119 (linux_nat_target::always_non_stop_p): Use "true".
3120 (linux_nat_target::supports_disable_randomization): Use "true" and
3121 "false".
3122
3123 2020-07-16 Caroline Tice <cmtice@google.com>
3124
3125 * dwarf2/read.c (RNGLIST_HEADER_SIZE32) New constant definition.
3126 (RNGLIST_HEADER_SIZE64): New constant definition.
3127 (struct dwop_section_names): Add rnglists_dwo.
3128 (dwop_section_names): Add .debug_rnglists.dwo, .zdebug_rnglists.dwo.
3129 (struct loclist_header): Rename to 'loclists_rnglists_header'.
3130 (struct dwo_sections): Add rnglists field.
3131 (read_attribut_reprocess): Add tag parameter.
3132 (dwarf2_ranges_read): Add tag parameter & remove forward function decl.
3133 (cu_debug_rnglists_section): New function (decl & definition).
3134 (dwarf2_locate_dwo_sections): Add code to read rnglists_dwo section.
3135 (dwarf2_rnglists_process): Add a dwarf_tag parameter, for the kind of
3136 die whose range is being checked; get rnglist section from
3137 cu_debug_rnglists_section, to get from either objfile or dwo file as
3138 appropriate. Add cases for DW_RLE_base_addressx,
3139 DW_RLE_startx_length, DW_RLE_startx_endx. Also, update to only add
3140 the base address to DW_RLE_offset_pairs (not to all ranges), moving
3141 test inside if-condition and updating complaint message.
3142 (dwarf2_ranges_process): Add dwarf tag parameter and pass it to
3143 dwarf2_rnglists_process.
3144 (dwarf2_ranges_read): Add dwarf tag parameter and pass it to
3145 dwarf2_ranges_process.
3146 (dwarf2_get_pc_bounds): Check for DW_FORM_rnglistx when setting
3147 need_ranges_base and update comment appropriately. Also pass die tag
3148 to dwarf2_ranges_read.
3149 (dwarf2_record_block_ranges): Check for DW_FORM_rnglistx when setting
3150 need_ranges_base and update comment appropriately. Also pass die tag
3151 to dwarf2_ranges_process.
3152 (read_full_die_1): Add code to read DW_AT_rnglists_base and assign to
3153 cu->ranges_base. Also pass die tag to read_attribute_reprocess.
3154 (partial_die_info::read): Check for DW_FORM_rnglistx when setting
3155 need_ranges_base and update comment appropriately. Also pass die tag
3156 to read_attribute_reprocess and dwarf2_ranges_read.
3157 (read_loclist_header): Rename function to read_loclists_rnglists_header,
3158 and update function comment appropriately.
3159 (read_loclist_index): Call read_loclists_rnglists_header instead of
3160 read_loclist_header.
3161 (read_rnglist_index): New function.
3162 (read_attribute_reprocess): Add tag parameter. Add code for
3163 DW_FORM_rnglistx, passing tag to read_rnglist_index.
3164 (read_attribute_value): Mark DW_FORM_rnglistx with need_reprocess.
3165
3166 2020-07-15 Andrew Burgess <andrew.burgess@embecosm.com>
3167
3168 * f-typeprint.c (f_type_print_base): Allow for dynamic types not
3169 being resolved.
3170
3171 2020-07-14 Andrew Burgess <andrew.burgess@embecosm.com>
3172
3173 * arch-utils.c (show_architecture): Update formatting of messages.
3174
3175 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
3176
3177 * gdbtypes.h (struct type) <bounds>: Handle array and string
3178 types.
3179 * ada-lang.c (assign_aggregate): Use type::bounds on
3180 array/string type.
3181 * c-typeprint.c (c_type_print_varspec_suffix): Likewise.
3182 * c-varobj.c (c_number_of_children): Likewise.
3183 (c_describe_child): Likewise.
3184 * eval.c (evaluate_subexp_for_sizeof): Likewise.
3185 * f-typeprint.c (f_type_print_varspec_suffix): Likewise.
3186 (f_type_print_base): Likewise.
3187 * f-valprint.c (f77_array_offset_tbl): Likewise.
3188 (f77_get_upperbound): Likewise.
3189 (f77_print_array_1): Likewise.
3190 * guile/scm-type.c (gdbscm_type_range): Likewise.
3191 * m2-typeprint.c (m2_array): Likewise.
3192 (m2_is_long_set_of_type): Likewise.
3193 * m2-valprint.c (get_long_set_bounds): Likewise.
3194 * p-typeprint.c (pascal_type_print_varspec_prefix): Likewise.
3195 * python/py-type.c (typy_range): Likewise.
3196 * rust-lang.c (rust_internal_print_type): Likewise.
3197 * type-stack.c (type_stack::follow_types): Likewise.
3198 * valarith.c (value_subscripted_rvalue): Likewise.
3199 * valops.c (value_cast): Likewise.
3200
3201 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
3202
3203 * gdbtypes.c (TYPE_ARRAY_BIT_STRIDE): Remove. Update all
3204 callers to use the equivalent accessor methods.
3205
3206 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
3207
3208 * gdbtypes.h (struct range_bounds) <bit_stride>: New method.
3209 (struct type) <bit_stride>: New method.
3210 (TYPE_BIT_STRIDE): Remove.
3211 * gdbtypes.c (update_static_array_size): Use type::bit_stride.
3212
3213 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
3214
3215 * gdbtypes.h (TYPE_ARRAY_LOWER_BOUND_VALUE,
3216 TYPE_ARRAY_UPPER_BOUND_VALUE): Remove. Update all
3217 callers to use the equivalent accessor methods instead.
3218
3219 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
3220
3221 * gdbtypes.h (TYPE_ARRAY_UPPER_BOUND_IS_UNDEFINED,
3222 TYPE_ARRAY_LOWER_BOUND_IS_UNDEFINED): Remove. Update all
3223 callers to use the equivalent accessor methods instead.
3224
3225 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
3226
3227 * gdbtypes.h (TYPE_LOW_BOUND_KIND,
3228 TYPE_HIGH_BOUND_KIND): Remove. Update all callers
3229 to use dynamic_prop::kind.
3230
3231 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
3232
3233 * gdbtypes.h (TYPE_LOW_BOUND_UNDEFINED,
3234 TYPE_HIGH_BOUND_UNDEFINED): Remove. Update all callers
3235 to get the bound property's kind and check against
3236 PROP_UNDEFINED.
3237
3238 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
3239
3240 * gdbtypes.h (TYPE_LOW_BOUND, TYPE_HIGH_BOUND): Remove. Update
3241 all callers to use type::range_bounds followed by
3242 dynamic_prop::{low,high}.
3243
3244 2020-07-12 Simon Marchi <simon.marchi@polymtl.ca>
3245
3246 * gdbtypes.h (struct dynamic_prop) <kind, set_undefined,
3247 const_val, set_const_val, baton, set_locexpr, set_loclist,
3248 set_addr_offset, variant_parts, set_variant_parts,
3249 original_type, set_original_type>: New methods.
3250 <kind>: Rename to...
3251 <m_kind>: ... this. Update all users to use the new methods
3252 instead.
3253 <data>: Rename to...
3254 <m_data>: ... this. Update all users to use the new methods
3255 instead.
3256
3257 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
3258
3259 * gdbtypes.c (get_discrete_bounds): Return failure if
3260 the range type's bounds are not both defined and constant
3261 values.
3262 (get_array_bounds): Update comment. Remove undefined bound check.
3263
3264 2020-07-12 Simon Marchi <simon.marchi@polymtl.ca>
3265
3266 * gdbtypes.h (TYPE_RANGE_DATA): Remove. Update callers to use
3267 the type::bounds method directly.
3268
3269 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
3270
3271 * gdbtypes.h (struct type) <bounds, set_bounds>: New methods.
3272 (TYPE_RANGE_DATA): Use type::bounds. Change all uses that
3273 are used to set the range type's bounds to use set_bounds.
3274
3275 2020-07-11 Philippe Waroquiers <philippe.waroquiers@skynet.be>
3276
3277 * exec.c (_initialize_exec): Update exec-file-mismatch help.
3278
3279 2020-07-10 Pedro Alves <pedro@palves.net>
3280
3281 * gdbthread.h (inferior_ref): Define.
3282 (scoped_restore_current_thread) <m_thread>: Now a thread_info_ref.
3283 (scoped_restore_current_thread) <m_inf>: Now an inferior_ref.
3284 * thread.c
3285 (scoped_restore_current_thread::restore):
3286 Adjust to gdb::ref_ptr.
3287 (scoped_restore_current_thread::~scoped_restore_current_thread):
3288 Remove manual decref handling.
3289 (scoped_restore_current_thread::scoped_restore_current_thread):
3290 Adjust to use
3291 inferior_ref::new_reference/thread_info_ref::new_reference.
3292 Incref the thread before calling get_frame_id instead of after.
3293 Let TARGET_CLOSE_ERROR propagate.
3294
3295 2020-07-10 Pedro Alves <pedro@palves.net>
3296
3297 * frame-tailcall.c (dwarf2_tailcall_sniffer_first): Only swallow
3298 NO_ENTRY_VALUE_ERROR / MEMORY_ERROR / OPTIMIZED_OUT_ERROR /
3299 NOT_AVAILABLE_ERROR.
3300 * value.c (value_optimized_out): Only swallow MEMORY_ERROR /
3301 OPTIMIZED_OUT_ERROR / NOT_AVAILABLE_ERROR.
3302
3303 2020-07-10 Simon Marchi <simon.marchi@polymtl.ca>
3304 Pedro Alves <pedro@palves.net>
3305
3306 PR gdb/26199
3307 * infrun.c (threads_are_resumed_pending_p): Delete.
3308 (do_target_wait): Remove threads_are_executing and
3309 threads_are_resumed_pending_p checks from the inferior_matches
3310 lambda. Update comments.
3311
3312 2020-07-10 Pedro Alves <pedro@palves.net>
3313
3314 PR gdb/26199
3315 * infrun.c (handle_no_resumed): Transfer terminal to inferior with
3316 executing threads.
3317
3318 2020-07-10 Pedro Alves <pedro@palves.net>
3319
3320 PR gdb/26199
3321 * infrun.c (handle_no_resumed): Handle multiple targets.
3322
3323 2020-07-10 Pedro Alves <pedro@palves.net>
3324
3325 PR gdb/26199
3326 * infrun.c (prepare_to_wait): Check target_can_async_p instead of
3327 target_is_async_p.
3328
3329 2020-07-10 Pedro Alves <pedro@palves.net>
3330
3331 PR gdb/26199
3332 * target.c (target_pass_ctrlc): Look at the inferior's non-exited
3333 threads, not all threads.
3334
3335 2020-07-10 Pedro Alves <pedro@palves.net>
3336
3337 PR gdb/26199
3338 * remote.c (remote_target::open_1): Pass remote target pointer as
3339 data to create_async_event_handler.
3340 (remote_async_inferior_event_handler): Mark async event handler
3341 before returning if the remote target still has either pending
3342 events or unacknowledged notifications.
3343
3344 2020-07-10 John Baldwin <jhb@FreeBSD.org>
3345
3346 * fbsd-nat.h (fbsd_nat_target::supports_multi_process): New
3347 declaration.
3348 * fbsd-nat.c (fbsd_nat_target::supports_multi_process): New
3349 function.
3350
3351 2020-07-09 John Baldwin <jhb@FreeBSD.org>
3352
3353 * inf-ptrace.c (inf_ptrace_target::wait): Don't compare against
3354 inferior_ptid.
3355
3356 2020-07-09 John Baldwin <jhb@FreeBSD.org>
3357
3358 * fbsd-tdep.c (fbsd_print_auxv_entry): Handle AT_FREEBSD_ARGC,
3359 AT_FREEBSD_ARGV, AT_FREEBSD_ENVC, AT_FREEBSD_ENVV,
3360 AT_FREEBSD_PS_STRINGS.
3361
3362 2020-07-08 Hannes Domani <ssbssa@yahoo.de>
3363
3364 * auto-load.c (auto_load_objfile_script_1): Convert drive part
3365 of debugfile path on Windows.
3366
3367 2020-07-08 John Baldwin <jhb@FreeBSD.org>
3368
3369 * fbsd-nat.c (fbsd_nat_target::find_memory_regions): Rename 'obfd'
3370 argument to 'data'.
3371
3372 2020-07-08 Tom Tromey <tromey@adacore.com>
3373
3374 * ada-lang.c (ada_exception_message_1): Use read_memory.
3375
3376 2020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
3377
3378 PR python/22748
3379 * dwarf2/frame-tailcall.c (dwarf2_tailcall_sniffer_first): Remove
3380 special handling for inline frames.
3381 * findvar.c (value_of_register_lazy): Skip inline frames when
3382 creating lazy register values.
3383 * frame.c (frame_id_computed_p): Delete definition.
3384 * frame.h (frame_id_computed_p): Delete declaration.
3385
3386 2020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
3387
3388 * NEWS: Mention additions to Python API.
3389 * python/py-arch.c (archpy_register_groups): New function.
3390 (arch_object_methods): Add 'register_groups' method.
3391 * python/py-registers.c (reggroup_iterator_object): New struct.
3392 (reggroup_object): New struct.
3393 (gdbpy_new_reggroup): New function.
3394 (gdbpy_reggroup_to_string): New function.
3395 (gdbpy_reggroup_name): New function.
3396 (gdbpy_reggroup_iter): New function.
3397 (gdbpy_reggroup_iter_next): New function.
3398 (gdbpy_new_reggroup_iterator): New function
3399 (gdbpy_initialize_registers): Register new types.
3400 (reggroup_iterator_object_type): Define new Python type.
3401 (gdbpy_reggroup_getset): New static global.
3402 (reggroup_object_type): Define new Python type.
3403 * python/python-internal.h
3404
3405 2020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
3406
3407 * Makefile.in (SUBDIR_PYTHON_SRCS): Add py-registers.c
3408 * python/py-arch.c (archpy_registers): New function.
3409 (arch_object_methods): Add 'registers' method.
3410 * python/py-registers.c: New file.
3411 * python/python-internal.h
3412 (gdbpy_new_register_descriptor_iterator): Declare.
3413 (gdbpy_initialize_registers): Declare.
3414 * python/python.c (do_start_initialization): Call
3415 gdbpy_initialize_registers.
3416 * NEWS: Mention additions to the Python API.
3417
3418 2020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
3419
3420 * NEWS: Mention new Python API method.
3421 * python/py-unwind.c (pending_framepy_architecture): New function.
3422 (pending_frame_object_methods): Add architecture method.
3423
3424 2020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
3425
3426 * gdbarch.c: Regenerate.
3427 * gdbarch.h: Regenerate.
3428 * gdbarch.sh (deprecated_set_gdbarch_data): Delete.
3429 (gdbarch_data): Use internal_error for the case where
3430 deprecated_set_gdbarch_data was originally needed.
3431 * ia64-libunwind-tdep.c (libunwind_descr_init): Update parameters,
3432 and use passed in obstack.
3433 (libunwind_frame_set_descr): Should no longer get back NULL from
3434 gdbarch_data.
3435 (_initialize_libunwind_frame): Register as a pre-init gdbarch data
3436 type.
3437 * user-regs.c (user_regs_init): Update parameters, and use passed
3438 in obstack.
3439 (user_reg_add): Should no longer get back NULL from gdbarch_data.
3440 (_initialize_user_regs): Register as a pre-init gdbarch data type.
3441
3442 2020-07-06 Tom de Vries <tdevries@suse.de>
3443
3444 * buildsym.c (buildsym_compunit::end_symtab_with_blockvector): Handle
3445 End-Of-Sequence in lte_is_less_than.
3446 * symtab.c (find_pc_sect_line): Revert change from commit 3d92a3e313
3447 "gdb: Don't reorder line table entries too much when sorting".
3448
3449 2020-07-06 Tom de Vries <tdevries@suse.de>
3450
3451 PR tui/26205
3452 * tui/tui-win.c (tui_partial_win_by_name): Don't test for NULL name.
3453
3454 2020-07-05 Tom de Vries <tdevries@suse.de>
3455
3456 PR build/26187
3457 * inferior.h (struct infcall_suspend_state_deleter): If available, use
3458 std::uncaught_exceptions instead of deprecated
3459 std::uncaught_exception.
3460
3461 2020-07-02 Simon Marchi <simon.marchi@polymtl.ca>
3462
3463 * macroexp.h (macro_stringify): Return
3464 gdb::unique_xmalloc_ptr<char>.
3465 * macroexp.c (macro_stringify): Likewise.
3466 * macrotab.c (fixup_definition): Update.
3467
3468 2020-07-02 Simon Marchi <simon.marchi@polymtl.ca>
3469
3470 * c-exp.y (scan_macro_expansion): Don't free `expansion`.
3471 (lex_one_token): Update.
3472 * macroexp.c (struct macro_buffer) <release>: Return
3473 gdb::unique_xmalloc_ptr<char>.
3474 (macro_stringify): Update.
3475 (macro_expand): Update.
3476 (macro_expand_next): Return gdb::unique_xmalloc_ptr<char>.
3477 * macroexp.h (macro_expand_next): Likewise.
3478
3479 2020-07-02 Simon Marchi <simon.marchi@efficios.com>
3480
3481 * macroexp.h (macro_lookup_ftype): Remove.
3482 (macro_expand, macro_expand_once, macro_expand_next): Remove
3483 lookup function parameters, add scope parameter.
3484 * macroexp.c (scan, substitute_args, expand, maybe_expand,
3485 macro_expand, macro_expand_once, macro_expand_next): Likewise.
3486 * macroscope.h (standard_macro_lookup): Change parameter type
3487 to macro_scope.
3488 * macroscope.c (standard_macro_lookup): Likewise.
3489 * c-exp.y (lex_one_token): Update.
3490 * macrocmd.c (macro_expand_command): Likewise.
3491 (macro_expand_once_command): Likewise.
3492
3493 2020-07-02 Simon Marchi <simon.marchi@polymtl.ca>
3494
3495 * inf-loop.c (inferior_event_handler): Remove client_data param.
3496 * inf-loop.h (inferior_event_handler): Likewise.
3497 * infcmd.c (step_1): Adjust.
3498 * infrun.c (proceed): Adjust.
3499 (fetch_inferior_event): Remove client_data param.
3500 (infrun_async_inferior_event_handler): Adjust.
3501 * infrun.h (fetch_inferior_event): Remove `void *` param.
3502 * linux-nat.c (handle_target_event): Adjust.
3503 * record-btrace.c (record_btrace_handle_async_inferior_event):
3504 Adjust.
3505 * record-full.c (record_full_async_inferior_event_handler):
3506 Adjust.
3507 * remote.c (remote_async_inferior_event_handler): Adjust.
3508
3509 2020-07-01 Tom Tromey <tom@tromey.com>
3510
3511 * tui/tui-data.h (struct tui_win_info) <name>: Now pure virtual.
3512 * tui/tui-stack.h (struct tui_locator_window) <name>: New method.
3513
3514 2020-07-01 Tom Tromey <tom@tromey.com>
3515
3516 * tui/tui-wingeneral.c (tui_win_info::refresh_window): Move from
3517 tui_gen_win_info.
3518 (tui_win_info::make_window): Merge with
3519 tui_gen_win_info::make_window.
3520 (tui_win_info::make_visible): Move from tui_gen_win_info.
3521 * tui/tui-win.c (tui_win_info::max_width): Move from
3522 tui_gen_win_info.
3523 * tui/tui-layout.h (class tui_layout_window) <m_window>: Change
3524 type.
3525 <window_factory>: Likewise.
3526 * tui/tui-layout.c (tui_win_info::resize): Move from
3527 tui_gen_win_info.
3528 (make_standard_window): Change return type.
3529 (get_locator_window, tui_get_window_by_name): Likewise.
3530 (tui_layout_window::apply): Remove a cast.
3531 * tui/tui-data.h (MIN_WIN_HEIGHT): Move earlier.
3532 (struct tui_win_info): Merge with tui_gen_win_info.
3533 (struct tui_gen_win_info): Remove.
3534
3535 2020-07-01 Tom Tromey <tom@tromey.com>
3536
3537 * tui/tui-stack.h (struct tui_locator_window): Derive from
3538 tui_win_info.
3539 <do_scroll_horizontal, do_scroll_vertical>: New methods.
3540 <can_box>: New method.
3541
3542 2020-07-01 Tom Tromey <tom@tromey.com>
3543
3544 * tui/tui-stack.h (struct tui_locator_window): Remove body.
3545
3546 2020-07-01 Tom Tromey <tom@tromey.com>
3547
3548 * tui/tui-regs.c (tui_data_window::display_registers_from)
3549 (tui_data_window::display_registers_from)
3550 (tui_data_window::first_data_item_displayed)
3551 (tui_data_window::delete_data_content_windows): Update.
3552 (tui_data_window::refresh_window, tui_data_window::no_refresh):
3553 Remove.
3554 (tui_data_window::check_register_values): Update.
3555 (tui_data_item_window::rerender): Add parameters. Update.
3556 (tui_data_item_window::refresh_window): Remove.
3557 * tui/tui-data.h (struct tui_gen_win_info) <no_refresh>: No longer
3558 virtual.
3559 * tui/tui-regs.h (struct tui_data_item_window): Don't derive from
3560 tui_gen_win_info.
3561 <refresh_window, max_height, min_height>: Remove.
3562 <rerender>: Add parameters.
3563 <x, y, visible>: New members.
3564 (struct tui_data_window) <refresh_window, no_refresh>: Remove.
3565 <m_item_width>: New member.
3566
3567 2020-07-01 Tom Tromey <tom@tromey.com>
3568
3569 * tui/tui-regs.c (tui_data_window::show_register_group)
3570 (tui_data_window::check_register_values): Update.
3571 * tui/tui-regs.h (struct tui_data_item_window) <regno>: Rename
3572 from item_no.
3573
3574 2020-07-01 Tom Tromey <tom@tromey.com>
3575
3576 * tui/tui-regs.c (tui_data_window::show_register_group): Remove
3577 useless "if".
3578
3579 2020-07-01 Tom Tromey <tom@tromey.com>
3580
3581 * tui/tui-regs.c (tui_data_window::show_register_group): Update.
3582 * tui/tui-regs.h (struct tui_data_item_window) <name>: Remove.
3583
3584 2020-07-01 Tom Tromey <tom@tromey.com>
3585
3586 * tui/tui-stack.c (SINGLE_KEY): Move from tui-data.h
3587 * tui/tui-winsource.h (enum tui_line_or_address_kind)
3588 (struct tui_line_or_address): Move from tui-data.h.
3589 * tui/tui-win.c (DEFAULT_TAB_LEN): Move from tui-data.h.
3590 * tui/tui-data.h (DEFAULT_TAB_LEN): Move to tui-win.c.
3591 (tui_cmd_window, tui_source_window_base, tui_source_window)
3592 (tui_disasm_window): Don't declare.
3593 (enum tui_line_or_address_kind, struct tui_line_or_address): Move
3594 to tui-winsource.h.
3595 (SINGLE_KEY): Move to tui-stack.c.
3596
3597 2020-07-01 Tom Tromey <tom@tromey.com>
3598
3599 * tui/tui-regs.h (struct tui_data_item_window) <content>: Now a
3600 std::string.
3601 * tui/tui-regs.c (class tab_expansion_file): New.
3602 (tab_expansion_file::write): New method.
3603 (tui_register_format): Change return type. Use
3604 tab_expansion_file.
3605 (tui_get_register, tui_data_window::display_registers_from)
3606 (tui_data_item_window::rerender): Update.
3607 * tui/tui-io.h (tui_expand_tabs): Don't declare.
3608 * tui/tui-io.c (tui_expand_tabs): Remove.
3609
3610 2020-07-01 Tom Tromey <tom@tromey.com>
3611
3612 * tui/tui-regs.c (tui_reggroup_completer): Use complete_on_enum.
3613
3614 2020-07-01 Fangrui Song <maskray@google.com>
3615
3616 * dwarf2/read.c (lnp_state_machine::check_line_address): Test -1.
3617
3618 2020-07-01 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
3619
3620 * dwarf2/read.c (set_die_type): Removed conditions to restrict
3621 forms for DW_AT_associated and DW_AT_allocated attributes,
3622 which is already checked in function attr_to_dynamic_prop.
3623
3624 2020-06-30 Tom Tromey <tromey@adacore.com>
3625
3626 * dwarf2/read.c (quirk_rust_enum): Correctly call
3627 alloc_rust_variant for default-less enum.
3628
3629 2020-06-30 Tom Tromey <tromey@adacore.com>
3630
3631 PR build/26183:
3632 * ada-lang.c (ada_lookup_name_info::ada_lookup_name_info): Use
3633 gdb::to_string.
3634
3635 2020-06-29 Simon Marchi <simon.marchi@efficios.com>
3636
3637 * gdbarch.sh (displaced_step_copy_insn): Update doc.
3638 * gdbarch.h: Re-generate.
3639
3640 2020-06-28 Tom Tromey <tom@tromey.com>
3641
3642 * command.h (cmd_types): Remove.
3643 (cmd_type): Don't declare.
3644 * cli/cli-decode.h (enum cmd_types): Uncomment. No longer a
3645 typedef.
3646 * cli/cli-cmds.c (setting_cmd): Use cmd->type directly.
3647 * cli/cli-decode.c (cmd_type): Remove.
3648
3649 2020-06-27 Pedro Alves <palves@redhat.com>
3650
3651 * fork-child.c (prefork_hook): Adjust.
3652 * infcmd.c (set_inferior_io_terminal, get_inferior_io_terminal):
3653 Delete.
3654 (set_inferior_tty_command, show_inferior_tty_command): Adjust.
3655 * inferior.c (inferior::set_tty, inferior::tty): New methods.
3656 * inferior.h (set_inferior_io_terminal, get_inferior_io_terminal):
3657 Remove declarations.
3658 (struct inferior) <set_tty, tty>: New methods.
3659 (struct inferior) <terminal>: Rename to ...
3660 (struct inferior) <m_terminal>: ... this and make private.
3661 * main.c (captured_main_1): Adjust.
3662 * mi/mi-cmd-env.c (mi_cmd_inferior_tty_set): Adjust.
3663 (mi_cmd_inferior_tty_show): Adjust.
3664 * nto-procfs.c (nto_procfs_target::create_inferior): Adjust.
3665 * windows-nat.c (windows_nat_target::create_inferior): Adjust.
3666
3667 2020-06-26 Nick Alcock <nick.alcock@oracle.com>
3668
3669 * configure.ac: Add --enable-libctf: handle --disable-static
3670 properly.
3671 * acinclude.m4: sinclude ../config/enable.m4.
3672 * Makefile.in (aclocal_m4_deps): Adjust accordingly.
3673 (LIBCTF): Substitute in.
3674 (CTF_DEPS): New, likewise.
3675 (CLIBS): libctf needs symbols from libbfd: move earlier.
3676 (CDEPS): Use CTF_DEPS, not LIBCTF, now LIBCTF can include rpath
3677 flags.
3678 * ctfread.c: Surround in ENABLE_LIBCTF.
3679 (elfctf_build_psymtabs) [!ENABLE_LIBCTF]: New stub.
3680 * configure: Regenerate.
3681 * config.in: Likewise.
3682
3683 2020-06-25 Simon Marchi <simon.marchi@efficios.com>
3684
3685 * infcmd.c (set_inferior_io_terminal): Use make_unique_xstrdup.
3686
3687 2020-06-25 Simon Marchi <simon.marchi@efficios.com>
3688
3689 * inferior.h (struct inferior) <terminal>: Change type to
3690 gdb::unique_xmalloc_ptr<char>.
3691 * inferior.c (inferior::~inferior): Don't free inf->terminal.
3692 * infcmd.c (set_inferior_io_terminal): Don't free terminal
3693 field, adjust to unique pointer.
3694 (get_inferior_io_terminal): Adjust to unique pointer.
3695
3696 2020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
3697
3698 * riscv-tdep.c (riscv_print_registers_info): Loop over all
3699 registers, not just the known core set of registers.
3700
3701 2020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
3702
3703 * riscv-tdep.c (riscv_register_name): Return NULL for duplicate
3704 fflags, frm, and fcsr registers.
3705 (riscv_register_reggroup_p): Remove unknown CSRs from save and
3706 restore groups.
3707 (riscv_tdesc_unknown_reg): New function.
3708 (riscv_gdbarch_init): Pass riscv_tdesc_unknown_reg to
3709 tdesc_use_registers.
3710 * riscv-tdep.h (struct gdbarch_tdep): Add
3711 unknown_csrs_first_regnum, unknown_csrs_count,
3712 duplicate_fflags_regnum, duplicate_frm_regnum, and
3713 duplicate_fcsr_regnum fields.
3714
3715 2020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
3716
3717 * target-descriptions.c (tdesc_use_registers): Add new parameter a
3718 callback, use the callback (when not null) to help number unknown
3719 registers.
3720 * target-descriptions.h (tdesc_unknown_register_ftype): New typedef.
3721 (tdesc_use_registers): Add extra parameter to declaration.
3722
3723 2020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
3724
3725 * riscv-tdep.c (value_of_riscv_user_reg): Moved to here from later
3726 in the file.
3727 (class riscv_pending_register_alias): Likewise.
3728 (riscv_register_feature::register_info): Change 'required_p' field
3729 to 'required', and change its type. Add 'check' member function.
3730 (riscv_register_feature::register_info::check): Define new member
3731 function.
3732 (riscv_xreg_feature): Change initialisation of 'required' field.
3733 (riscv_freg_feature): Likewise.
3734 (riscv_virtual_feature): Likewise.
3735 (riscv_csr_feature): Likewise.
3736 (riscv_check_tdesc_feature): Take extra parameter, the csr
3737 tdesc_feature, rewrite the function to use the new
3738 riscv_register_feature::register_info::check function.
3739 (riscv_gdbarch_init): Pass the csr tdesc_feature where needed.
3740
3741 2020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
3742
3743 * features/Makefile: Remove all references to the deleted files
3744 below.
3745 * features/riscv/32bit-csr.c: Deleted.
3746 * features/riscv/32bit-csr.xml: Deleted.
3747 * features/riscv/64bit-csr.c: Deleted.
3748 * features/riscv/64bit-csr.xml: Deleted.
3749 * features/riscv/rebuild-csr-xml.sh: Deleted.
3750
3751 2020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
3752
3753 * riscv-tdep.c (struct riscv_register_feature::register_info): Fix
3754 whitespace error for declaration of names member variable.
3755 (struct riscv_register_feature): Add new prefer_first_name member
3756 variable, and fix whitespace error in declaration of registers.
3757 (riscv_xreg_feature): Initialize prefer_first_name field.
3758 (riscv_freg_feature): Likewise.
3759 (riscv_virtual_feature): Likewise.
3760 (riscv_csr_feature): Likewise.
3761 (riscv_register_name): Expand on comments. Remove register name
3762 modifications for CSR and virtual registers.
3763
3764 2020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
3765
3766 * riscv-tdep.c (struct riscv_register_feature): Fix whitespace
3767 errors.
3768
3769 2020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
3770
3771 * riscv-tdep.c (riscv_create_csr_aliases): Handle csr aliases from
3772 riscv-opc.h.
3773 (class riscv_pending_register_alias): New class.
3774 (riscv_check_tdesc_feature): Take vector of pending aliases and
3775 populate it as appropriate.
3776 (riscv_setup_register_aliases): Delete.
3777 (riscv_gdbarch_init): Create vector of pending aliases and pass it
3778 to riscv_check_tdesc_feature in all cases. Use the vector to
3779 create the register aliases.
3780
3781 2020-06-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
3782
3783 * sol2-tdep.c (sol2_static_transform_name): Remove.
3784 (sol2_init_abi): Don't register it.
3785 * gdbarch.sh (static_transform_name): Remove.
3786 * gdbarch.c, gdbarch.h: Regenerate.
3787
3788 * dbxread.c (read_dbx_symtab) <'S'>: Remove call to
3789 gdbarch_static_transform_name.
3790 * mdebugread.c (parse_partial_symbols) <'S'>: Likewise.
3791 * stabsread.c (define_symbol) <'X'>: Remove.
3792 (define_symbol) <'S'>: Remove gdbarch_static_transform_name
3793 handling.
3794 <'V'>: Likewise.
3795 * xcoffread.c (scan_xcoff_symtab): Remove gdbarch.
3796 <'S'>: Remove call to gdbarch_static_transform_name.
3797
3798 2020-06-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
3799
3800 * procfs.c (procfs_pre_trace): New function.
3801 (procfs_target::create_inferior): Pass it to fork_inferior.
3802
3803 2020-06-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
3804
3805 * configure.tgt <sparc-*-linux*> (gdb_target_obs): Remove
3806 sparc-sol2-tdep.o, sol2-tdep.o, sparc64-sol2-tdep.o.
3807 <sparc64-*-linux*> (gdb_target_obs): Remove sparc64-sol2-tdep.o,
3808 sol2-tdep.o, sparc-sol2-tdep.o.
3809 * sparc-sol2-tdep.c (sparc32_sol2_init_abi): Make static.
3810 * sparc-tdep.h (sparc32_sol2_init_abi): Remove.
3811 * sparc64-sol2-tdep.c (sparc64_sol2_init_abi): Make static.
3812 * sparc64-tdep.h (sparc64_sol2_init_abi): Remove.
3813
3814 2020-06-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
3815
3816 * amd64-sol2-tdep.c (amd64_sol2_sigtramp_p): Remove.
3817 (amd64_sol2_init_abi): Use sol2_sigtramp_p.
3818 Call sol2_init_abi.
3819 Remove calls to set_gdbarch_skip_solib_resolver,
3820 set_gdbarch_core_pid_to_str.
3821 * i386-sol2-tdep.c (i386_sol2_sigtramp_p): Remove.
3822 (i386_sol2_static_transform_name): Remove.
3823 (i386_sol2_init_abi): Call sol2_init_abi.
3824 Remove calls to set_gdbarch_sofun_address_maybe_missing,
3825 set_gdbarch_static_transform_name,
3826 set_gdbarch_skip_solib_resolver, set_gdbarch_core_pid_to_str.
3827 Use sol2_sigtramp_p.
3828 * sol2-tdep.c (sol2_pc_in_sigtramp): New function.
3829 (sol2_sigtramp_p): New function.
3830 (sol2_static_transform_name): New function.
3831 (sol2_skip_solib_resolver, sol2_core_pid_to_str): Make static.
3832 (sol2_init_abi): New function.
3833 * sol2-tdep.h (sol2_sigtramp_p, sol2_init_abi): Declare.
3834 (sol2_skip_solib_resolver, sol2_core_pid_to_str): Remove.
3835 * sparc-sol2-tdep.c (sparc_sol2_pc_in_sigtramp): Remove.
3836 (sparc32_sol2_sigtramp_frame_sniffer): Just call sol2_sigtramp_p.
3837 (sparc_sol2_static_transform_name): Remove.
3838 (sparc32_sol2_init_abi): Call sol2_init_abi.
3839 Remove calls to set_gdbarch_sofun_address_maybe_missing,
3840 set_gdbarch_static_transform_name,
3841 set_gdbarch_skip_solib_resolver,
3842 set_gdbarch_core_pid_to_str.
3843 * sparc-tdep.h (sparc_sol2_pc_in_sigtramp)
3844 (sparc_sol2_static_transform_name): Remove
3845 * sparc64-sol2-tdep.c (sparc64_sol2_sigtramp_frame_sniffer): Just
3846 call sol2_sigtramp_p.
3847 (sparc64_sol2_init_abi): Call sol2_init_abi.
3848 Remove calls to set_gdbarch_sofun_address_maybe_missing,
3849 set_gdbarch_static_transform_name,
3850 set_gdbarch_skip_solib_resolver, set_gdbarch_core_pid_to_str.
3851
3852 2020-06-24 Philippe Waroquiers <philippe.waroquiers@skynet.be>
3853
3854 * symfile-add-flags.h: New flag SYMFILE_ALWAYS_CONFIRM.
3855 * exec.c (validate_exec_file): If from_tty, set both
3856 SYMFILE_VERBOSE (== from_tty) and SYMFILE_ALWAYS_CONFIRM.
3857 * symfile.c (symbol_file_add_with_addrs): if always_confirm
3858 and from_tty, unconditionally ask a confirmation.
3859
3860 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
3861
3862 * target-descriptions.c (tdesc_architecture_name): Protect against
3863 NULL pointer dereference.
3864 (maint_print_xml_tdesc_cmd): New function.
3865 (_initialize_target_descriptions): Register new 'maint print
3866 xml-tdesc' command and give it the filename completer.
3867 * NEWS: Mention new 'maint print xml-tdesc' command.
3868
3869 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
3870
3871 * target-descriptions.c (class tdesc_compatible_info): New class.
3872 (struct target_desc): Change type of compatible vector.
3873 (tdesc_compatible_p): Update for change in type of
3874 target_desc::compatible.
3875 (tdesc_compatible_info_list): New function.
3876 (tdesc_compatible_info_arch_name): New function.
3877 (tdesc_add_compatible): Update for change in type of
3878 target_desc::compatible.
3879 (print_c_tdesc::visit_pre): Likewise.
3880
3881 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
3882
3883 * target-descriptions.c (print_c_tdesc::print_c_tdesc): Change
3884 whitespace to underscore.
3885 (maint_print_c_tdesc_cmd): Use fake filename for target
3886 descriptions that came from the target.
3887 (_initialize_target_descriptions): Add filename command completion
3888 for 'maint print c-tdesc'.
3889
3890 2020-06-23 Simon Marchi <simon.marchi@efficios.com>
3891
3892 * dwarf2/loc.c (decode_debug_loclists_addresses): Add empty
3893 lines.
3894
3895 2020-06-23 Simon Marchi <simon.marchi@efficios.com>
3896
3897 * dwarf2/loc.c (decode_debug_loc_dwo_addresses): Add empty
3898 lines.
3899 (dwarf2_find_location_expression): Likewise.
3900 (call_site_parameter_matches): Likewise.
3901 (dwarf2_compile_expr_to_ax): Likewise.
3902 (disassemble_dwarf_expression): Likewise.
3903 (loclist_describe_location): Likewise.
3904
3905 2020-06-23 Pedro Alves <palves@redhat.com>
3906
3907 * gdbarch-selftests.c: Don't include inferior.h, gdbthread.h or
3908 progspace-and-thread.h. Include scoped-mock-context.h instead.
3909 (register_to_value_test): Use scoped_mock_context.
3910 * regcache.c: Include "scoped-mock-context.h".
3911 (cooked_read_test): Don't error out if a target is already pushed.
3912 Use scoped_mock_context. Adjust.
3913 * scoped-mock-context.h: New file.
3914
3915 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
3916
3917 * ada-lang.c (ada_language_data): Delete la_is_string_type_p
3918 initializer.
3919 (ada_language::is_string_type_p): New member function.
3920 * c-lang.c (c_language_data): Delete la_is_string_type_p
3921 initializer.
3922 (cplus_language_data): Likewise.
3923 (asm_language_data): Likewise.
3924 (minimal_language_data): Likewise.
3925 * d-lang.c (d_language_data): Likewise.
3926 * f-lang.c (f_is_string_type_p): Delete function, implementation
3927 moved to f_language::is_string_type_p.
3928 (f_language_data): Delete la_is_string_type_p initializer.
3929 (f_language::is_string_type_p): New member function,
3930 implementation from f_is_string_type_p.
3931 * go-lang.c (go_is_string_type_p): Delete function, implementation
3932 moved to go_language::is_string_type_p.
3933 (go_language_data): Delete la_is_string_type_p initializer.
3934 (go_language::is_string_type_p): New member function,
3935 implementation from go_is_string_type_p.
3936 * language.c (language_defn::is_string_type_p): Define new member
3937 function.
3938 (default_is_string_type_p): Make static, add comment copied from
3939 header file.
3940 (unknown_language_data): Delete la_is_string_type_p initializer.
3941 (unknown_language::is_string_type_p): New member function.
3942 (auto_language_data): Delete la_is_string_type_p initializer.
3943 (auto_language::is_string_type_p): New member function.
3944 * language.h (language_data): Delete la_is_string_type_p field.
3945 (language_defn::is_string_type_p): Declare new function.
3946 (default_is_string_type_p): Delete desclaration, move comment to
3947 definition.
3948 * m2-lang.c (m2_is_string_type_p): Delete function, implementation
3949 moved to m2_language::is_string_type_p.
3950 (m2_language_data): Delete la_is_string_type_p initializer.
3951 (m2_language::is_string_type_p): New member function,
3952 implementation from m2_is_string_type_p.
3953 * objc-lang.c (objc_language_data): Delete la_is_string_type_p
3954 initializer.
3955 * opencl-lang.c (opencl_language_data): Likewise.
3956 * p-lang.c (pascal_is_string_type_p): Delete function,
3957 implementation moved to pascal_language::is_string_type_p.
3958 (pascal_language_data): Delete la_is_string_type_p initializer.
3959 (pascal_language::is_string_type_p): New member function,
3960 implementation from pascal_is_string_type_p.
3961 * rust-lang.c (rust_is_string_type_p): Delete function,
3962 implementation moved to rust_language::is_string_type_p.
3963 (rust_language_data): Delete la_is_string_type_p initializer.
3964 (rust_language::is_string_type_p): New member function,
3965 implementation from rust_is_string_type_p.
3966 * valprint.c (val_print_scalar_or_string_type_p): Update call to
3967 is_string_type_p.
3968
3969 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
3970
3971 * ada-lang.c (ada_language_data): Delete la_print_typedef
3972 initializer.
3973 (ada_language::print_typedef): New member function.
3974 * c-lang.c (c_language_data): Delete la_print_typedef initializer.
3975 (cplus_language_data): Likewise.
3976 (asm_language_data): Likewise.
3977 (minimal_language_data): Likewise.
3978 * d-lang.c (d_language_data): Likewise.
3979 * f-lang.c (f_language_data): Likewise.
3980 (f_language::print_typedef): New member function.
3981 * go-lang.c (go_language_data): Delete la_print_typedef
3982 initializer.
3983 * language.c (language_defn::print_typedef): Define member
3984 function.
3985 (unknown_language_data): Delete la_print_typedef initializer.
3986 (unknown_language::print_typedef): New member function.
3987 (auto_language_data): Delete la_print_typedef initializer.
3988 (auto_language::print_typedef): New member function.
3989 * language.h (language_data): Delete la_print_typedef field.
3990 (language_defn::print_typedef): Declare new member function.
3991 (LA_PRINT_TYPEDEF): Update call to print_typedef.
3992 (default_print_typedef): Delete declaration.
3993 * m2-lang.c (m2_language_data): Delete la_print_typedef
3994 initializer.
3995 (m2_language::print_typedef): New member function.
3996 * objc-lang.c (objc_language_data): Delete la_print_typedef
3997 initializer.
3998 * opencl-lang.c (opencl_language_data): Likewise.
3999 * p-lang.c (pascal_language_data): Likewise.
4000 (pascal_language::print_typedef): New member function.
4001 * rust-lang.c (rust_print_typedef): Delete function,
4002 implementation moved to rust_language::print_typedef.
4003 (rust_language): Delete la_print_typedef initializer.
4004 (rust_language::print_typedef): New member function,
4005 implementation from rust_print_typedef.
4006 * typeprint.c (default_print_typedef): Delete.
4007
4008 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
4009
4010 * ada-lang.c (ada_language_data): Delete la_printstr initializer.
4011 (ada_language::printstr): New member function.
4012 * c-lang.c (c_language_data): Delete la_printstr initializer.
4013 (cplus_language_data): Likewise.
4014 (asm_language_data): Likewise.
4015 (minimal_language_data): Likewise.
4016 * d-lang.c (d_language_data): Likewise.
4017 * f-lang.c (f_printstr): Rename to f_language::printstr.
4018 (f_language_data): Delete la_printstr initializer.
4019 (f_language::printstr): New member function, implementation from
4020 f_printstr.
4021 * go-lang.c (go_language_data): Delete la_printstr initializer.
4022 * language.c (language_defn::printstr): Define new member
4023 function.
4024 (unk_lang_printstr): Delete.
4025 (unknown_language_data): Delete la_printstr initializer.
4026 (unknown_language::printstr): New member function.
4027 (auto_language_data): Delete la_printstr initializer.
4028 (auto_language::printstr): New member function.
4029 * language.h (language_data): Delete la_printstr field.
4030 (language_defn::printstr): Declare new member function.
4031 (LA_PRINT_STRING): Update call to printstr.
4032 * m2-lang.c (m2_printstr): Rename to m2_language::printstr.
4033 (m2_language_data): Delete la_printstr initializer.
4034 (m2_language::printstr): New member function, implementation from
4035 m2_printstr.
4036 * objc-lang.c (objc_language_data): Delete la_printstr
4037 initializer.
4038 * opencl-lang.c (opencl_language_data): Likewise.
4039 * p-lang.c (pascal_printstr): Rename to pascal_language::printstr.
4040 (pascal_language_data): Delete la_printstr initializer.
4041 (pascal_language::printstr): New member function, implementation
4042 from pascal_printstr.
4043 * p-lang.h (pascal_printstr): Delete declaration.
4044 * rust-lang.c (rust_printstr): Update header comment.
4045 (rust_language_data): Delete la_printstr initializer.
4046 (rust_language::printstr): New member function.
4047
4048 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
4049
4050 * ada-lang.c (ada_language_data): Delete la_printchar initializer.
4051 (ada_language::printchar): New member function.
4052 * c-lang.c (c_language_data): Delete la_printchar initializer.
4053 (cplus_language_data): Likewise.
4054 (asm_language_data): Likewise.
4055 (minimal_language_data): Likewise.
4056 * d-lang.c (d_language_data): Likewise.
4057 * f-lang.c (f_printchar): Rename to f_language::printchar.
4058 (f_language_data): Delete la_printchar initializer.
4059 (f_language::printchar): New member function, implementation from
4060 f_printchar.
4061 * go-lang.c (go_language_data): Delete la_printchar initializer.
4062 * language.c (unk_lang_printchar): Delete.
4063 (language_defn::printchar): Define new member function.
4064 (unknown_language_data): Delete la_printchar initializer.
4065 (unknown_language::printchar): New member function.
4066 (auto_language_data): Delete la_printchar initializer.
4067 (auto_language::printchar): New member function.
4068 * language.h (language_data): Delete la_printchar field.
4069 (language_defn::printchar): Declare new member function.
4070 (LA_PRINT_CHAR): Update call to printchar.
4071 * m2-lang.c (m2_language_data): Delete la_printchar initializer.
4072 (m2_language::printchar): New member function.
4073 * objc-lang.c (objc_language_data): Delete la_printchar
4074 initializer.
4075 * opencl-lang.c (opencl_language_data): Likewise.
4076 * p-lang.c (pascal_language_data): Delete la_printchar
4077 initializer.
4078 (pascal_language::printchar): New member function.
4079 * rust-lang.c (rust_printchar): Rename to
4080 rust_language::printchar.
4081 (rust_language_data): Delete la_printchar initializer.
4082 (rust_language::printchar): New member function, implementation
4083 from rust_printchar.
4084
4085 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
4086
4087 * ada-lang.c (emit_char): Renamed to ada_language::emitchar.
4088 (ada_language_data): Delete la_emitchar initializer.
4089 (ada_language::emitchar): New member function, implementation from
4090 emit_char.
4091 * c-lang.c (c_language_data): Delete la_emitchar initializer.
4092 (cplus_language_data): Likewise.
4093 (asm_language_data): Likewise.
4094 (minimal_language_data): Likewise.
4095 * d-lang.c (d_language_data): Likewise.
4096 * f-lang.c (f_emit_char): Rename to f_language::emitchar.
4097 (f_language_data): Delete la_emitchar initializer.
4098 (f_language::emitchar): New member function, implementation from
4099 f_emit_char.
4100 * go-lang.c (go_language_data): Delete la_emitchar initializer.
4101 * language.c (unk_lang_emit_char): Delete.
4102 (language_defn::emitchar): New member function definition.
4103 (unknown_language_data): Delete la_emitchar initializer.
4104 (unknown_language::emitchar): New member function.
4105 (auto_language_data): Delete la_emitchar initializer.
4106 (auto_language::emitchar): New member function.
4107 * language.h (language_data): Delete la_emitchar field.
4108 (language_defn::emitchar): New member field declaration.
4109 (LA_EMIT_CHAR): Update call to emitchar.
4110 * m2-lang.c (m2_emit_char): Rename to m2_language::emitchar.
4111 (m2_language_data): Delete la_emitchar initializer.
4112 (m2_language::emitchar): New member function, implementation from
4113 m2_emit_char.
4114 * objc-lang.c (objc_language_data): Delete la_emitchar
4115 initializer.
4116 * opencl-lang.c (opencl_language_data): Likewise.
4117 * p-lang.c (pascal_emit_char): Rename to pascal_language::emitchar.
4118 (pascal_language_data): Delete la_emitchar initializer.
4119 (pascal_language::emitchar): New member function, implementation
4120 from pascal_emit_char.
4121 * rust-lang.c (rust_emitchar): Rename to rust_language::emitchar.
4122 (rust_language_data): Delete la_emitchar initializer.
4123 (rust_language::emitchar): New member function, implementation
4124 from rust_emitchar.
4125
4126 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
4127
4128 * ada-lang.c (resolve): Rename to ada_language::post_parser.
4129 (ada_language_data): Delete la_post_parser initializer.
4130 (ada_language::post_parser): New member function.
4131 * c-lang.c (c_language_data): Delete la_post_parser initializer.
4132 (cplus_language_data): Likewise.
4133 (asm_language_data): Likewise.
4134 (minimal_language_data): Likewise.
4135 * d-lang.c (d_language_data): Likewise.
4136 * f-lang.c (f_language_data): Likewise.
4137 * go-lang.c (go_language_data): Likewise.
4138 * language.c (unknown_language_data): Likewise.
4139 (auto_language_data): Likewise.
4140 * language.h (language_data): Delete la_post_parser field.
4141 (language_defn::post_parser): New member function.
4142 * m2-lang.c (m2_language_data): Delete la_post_parser initializer.
4143 * objc-lang.c (objc_language_data): Likewise.
4144 * opencl-lang.c (opencl_language_data): Likewise.
4145 * p-lang.c (pascal_language_data): Likewise.
4146 * parse.c (parse_exp_in_context): Update call to post_parser.
4147 (null_post_parser): Delete definition.
4148 * parser-defs.h (null_post_parser): Delete declaration.
4149 * rust-lang.c (rust_language_data): Delete la_post_parser
4150 initializer.
4151
4152 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
4153
4154 * ada-lang.c (parse): Rename to ada_language::parser.
4155 (ada_language_data): Delete la_parser initializer.
4156 (ada_language::parser): New member function, implementation from
4157 parse.
4158 * c-lang.c (c_language_data): Delete la_parser initializer.
4159 (cplus_language_data): Likewise.
4160 (asm_language_data): Likewise.
4161 (minimal_language_data): Likewise.
4162 * d-lang.c (d_language_data): Likewise.
4163 (d_language::parser): New member function.
4164 * f-lang.c (f_language_data): Delete la_parser initializer.
4165 (f_language::parser): New member function.
4166 * go-lang.c (go_language_data): Delete la_parser initializer.
4167 (go_language::parser): New member function.
4168 * language.c (unk_lang_parser): Delete.
4169 (language_defn::parser): Define new member function.
4170 (unknown_language_data): Delete la_parser initializer.
4171 (unknown_language::parser): New member function.
4172 (auto_language_data): Delete la_parser initializer.
4173 (auto_language::parser): New member function.
4174 * language.h (language_data): Delete la_parser field.
4175 (language_defn::parser): Declare new member function.
4176 * m2-lang.c (m2_language_data): Delete la_parser initializer.
4177 (m2_language::parser): New member function.
4178 * objc-lang.c (objc_language_data): Delete la_parser initializer.
4179 * opencl-lang.c (opencl_language_data): Likewise.
4180 * p-lang.c (pascal_language_data): Likewise.
4181 (pascal_language::parser): New member function.
4182 * parse.c (parse_exp_in_context): Update call to parser.
4183 * rust-lang.c (rust_language_data): Delete la_parser initializer.
4184 (rust_language::parser): New member function.
4185
4186 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
4187
4188 * top.c (print_gdb_configuration): Print --with-python-libdir
4189 configuration value.
4190
4191 2020-06-22 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4192
4193 * NEWS: Mention change to the alias command.
4194
4195 2020-06-22 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4196
4197 * cli/cli-cmds.c (lookup_cmd_for_default_args)
4198 (alias_command_completer)
4199 (make_alias_options_def_group): New functions.
4200 (alias_opts, alias_option_defs): New struct and array.
4201 (alias_usage_error): Update usage.
4202 (alias_command): Handles optional DEFAULT-ARGS... arguments.
4203 Use option framework.
4204 (_initialize_cli_cmds): Update alias command help.
4205 Update aliases command help.
4206 (show_user):
4207 Add NULL for new default_args lookup_cmd argument.
4208 (valid_command_p): Rename to validate_aliased_command.
4209 Add NULL for new default_args lookup_cmd argument. Verify that the
4210 aliased_command has no default args.
4211 * cli/cli-decode.c (help_cmd): Show aliases definitions.
4212 (lookup_cmd_1, lookup_cmd): New argument default_args.
4213 (add_alias_cmd):
4214 Add NULL for new default_args lookup_cmd argument.
4215 (print_help_for_command): Show default args under the layout
4216 alias some_alias = some_aliased_cmd some_alias_default_arg.
4217 * cli/cli-decode.h (struct cmd_list_element): New member default_args.
4218 xfree default_args in destructor.
4219 * cli/cli-script.c (process_next_line, do_define_command):
4220 Add NULL for new default_args lookup_cmd argument.
4221 * command.h: Declare new default_args argument in lookup_cmd
4222 and lookup_cmd_1.
4223 * completer.c (complete_line_internal_1):
4224 Add NULL for new default_args lookup_cmd or lookup_cmd_1 argument.
4225 * guile/scm-cmd.c (gdbscm_parse_command_name): Likewise.
4226 * guile/scm-param.c (add_setshow_generic, pascm_parameter_defined_p):
4227 Likewise.
4228 * infcmd.c (_initialize_infcmd): Likewise.
4229 * python/py-auto-load.c (gdbpy_initialize_auto_load): Likewise.
4230 * python/py-cmd.c (gdbpy_parse_command_name): Likewise.
4231 * python/py-param.c (add_setshow_generic): Likewise.
4232 * remote.c (_initialize_remote): Likewise.
4233 * top.c (execute_command): Prepend default_args if command has some.
4234 (set_verbose):
4235 Add NULL for new default_args lookup_cmd or lookup_cmd_1 argument.
4236 * tracepoint.c (validate_actionline, encode_actions_1):
4237 Add NULL for new default_args lookup_cmd or lookup_cmd_1 argument.
4238
4239 2020-06-22 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4240
4241 * jit.c (jit_read_descriptor): Use bool as the return type.
4242 (jit_breakpoint_re_set_internal): Use bool as the return type.
4243 Invert the return value logic; return true if the jit breakpoint
4244 has been successfully initialized.
4245 (jit_inferior_init): Update the call to
4246 jit_breakpoint_re_set_internal.
4247
4248 2020-06-22 Pedro Alves <palves@redhat.com>
4249
4250 PR gdb/25939
4251 * procfs.c (procfs_target::wait): Don't reference inferior_ptid.
4252 Use the current inferior instead. Don't return
4253 TARGET_WAITKIND_SPURIOUS/inferior_ptid -- instead continue and
4254 wait again.
4255 * sol-thread.c (sol_thread_target::wait): Don't reference
4256 inferior_ptid.
4257 (ps_lgetregs, ps_lsetregs, ps_lgetfpregs, ps_lsetfpregs)
4258 (sol_update_thread_list_callback): Use the current inferior's pid
4259 instead of inferior_ptid.
4260
4261 2020-06-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
4262
4263 * procfs.c: Cleanup many comments.
4264
4265 (READ_WATCHFLAG, WRITE_WATCHFLAG, EXEC_WATCHFLAG)
4266 (AFTER_WATCHFLAG): Replace by value.
4267
4268 (MAIN_PROC_NAME_FORMAT): Inline ...
4269 (create_procinfo): ... here.
4270
4271 (procfs_debug_inferior): Remove SYS_exec handling.
4272 (syscall_is_exec): Likewise.
4273 (procfs_set_exec_trap): Likewise.
4274
4275 (syscall_is_lwp_exit): Inline in callers.
4276 (syscall_is_exit): Likewise.
4277 (syscall_is_exec): Likewise.
4278 (syscall_is_lwp_create): Likewise.
4279
4280 (invalidate_cache): Remove #if 0 code.
4281
4282 (make_signal_thread_runnable): Remove.
4283 (procfs_target::resume): Remove #if 0 code.
4284
4285 2020-06-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
4286
4287 PR gdb/25939
4288 * procfs.c (procfs_target::procfs_init_inferior): Move push_target
4289 call ...
4290 (procfs_target::create_inferior): ... here.
4291
4292 2020-06-21 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4293
4294 * exec.c (validate_exec_file): Ensure the build-id is up to
4295 date by calling reopen_exec_file (that checks file timestamp
4296 to decide to re-read the file).
4297
4298 2020-06-18 Pedro Alves <palves@redhat.com>
4299
4300 PR gdb/25412
4301 * gdbthread.h (delete_thread, delete_thread_silent)
4302 (find_thread_ptid): Update comments.
4303 * thread.c (current_thread_): New global.
4304 (is_current_thread): Move higher, and reimplement.
4305 (inferior_thread): Reimplement.
4306 (set_thread_exited): Use bool. Add assertions.
4307 (add_thread_silent): Simplify thread-reuse handling by always
4308 calling delete_thread.
4309 (delete_thread): Remove intro comment.
4310 (find_thread_ptid): Skip exited threads.
4311 (switch_to_thread_no_regs): Write to current_thread_.
4312 (switch_to_no_thread): Check CURRENT_THREAD_ instead of
4313 INFERIOR_PTID. Clear current_thread_.
4314
4315 2020-06-18 Pedro Alves <palves@redhat.com>
4316
4317 * aix-thread.c (pd_update): Use switch_to_thread.
4318
4319 2020-06-18 Pedro Alves <palves@redhat.com>
4320
4321 * ravenscar-thread.c (ravenscar_thread_target): Update.
4322 (ravenscar_thread_target::update_inferior_ptid): Rename to ...
4323 (ravenscar_thread_target::add_active_thread): ... this. Don't
4324 set m_base_ptid here. Update to avoid referencing inferior_ptid.
4325 (ravenscar_thread_target::wait): Don't write to inferior_ptid.
4326
4327 2020-06-18 Pedro Alves <palves@redhat.com>
4328
4329 * nat/windows-nat.c (current_windows_thread): Remove.
4330 * nat/windows-nat.h (current_windows_thread): Remove.
4331 * windows-nat.c (windows_nat_target::stopped_by_sw_breakpoint):
4332 Adjust.
4333 (display_selectors): Adjust to fetch the current
4334 windows_thread_info based on inferior_ptid.
4335 (fake_create_process): No longer write to current_windows_thread.
4336 (windows_nat_target::get_windows_debug_event):
4337 Don't set inferior_ptid or current_windows_thread.
4338 (windows_nat_target::wait): Adjust to not rely on
4339 current_windows_thread.
4340 (do_initial_windows_stuff): Now a method of windows_nat_target.
4341 Switch to the last_ptid thread.
4342 (windows_nat_target::attach): Adjust.
4343 (windows_nat_target::detach): Use switch_to_no_thread instead of
4344 writing to inferior_ptid directly.
4345 (windows_nat_target::create_inferior): Adjust.
4346
4347 2020-06-18 Pedro Alves <palves@redhat.com>
4348
4349 * windows-nat.c (do_initial_windows_stuff): No longer set inferior_ptid.
4350
4351 2020-06-18 Pedro Alves <palves@redhat.com>
4352
4353 * go32-nat.c (go32_nat_target::create_inferior): Switch to thread
4354 after creating it, instead of writing to inferior_ptid. Don't
4355 write to inferior_ptid.
4356
4357 2020-06-18 Pedro Alves <palves@redhat.com>
4358
4359 * fork-child.c (postfork_hook): Don't write to inferior_ptid.
4360
4361 2020-06-18 Pedro Alves <palves@redhat.com>
4362
4363 * bsd-kvm.c (bsd_kvm_target_open): Switch to thread after adding
4364 it, instead of writing to inferior_ptid.
4365
4366 2020-06-18 Pedro Alves <palves@redhat.com>
4367
4368 * btrace.c (btrace_fetch): Use switch_to_thread instead of writing
4369 to inferior_ptid.
4370
4371 2020-06-18 Pedro Alves <palves@redhat.com>
4372
4373 * bsd-kvm.c (bsd_kvm_target::close): Use switch_to_no_thread
4374 instead of writing to inferior_ptid directly.
4375
4376 2020-06-18 Pedro Alves <palves@redhat.com>
4377
4378 * corelow.c (core_target::close): Use switch_to_no_thread instead
4379 of writing to inferior_ptid directly.
4380 (add_to_thread_list, core_target_open): Use switch_to_thread
4381 instead of writing to inferior_ptid directly.
4382
4383 2020-06-18 Pedro Alves <palves@redhat.com>
4384
4385 * darwin-nat.c (darwin_nat_target::decode_message): Don't write to
4386 inferior_ptid.
4387 (darwin_nat_target::stop_inferior, darwin_nat_target::kill): Avoid
4388 inferior_ptid.
4389 (darwin_attach_pid): Use switch_to_no_thread instead of writing to
4390 inferior_ptid directly.
4391 (darwin_nat_target::init_thread_list): Switch to thread, instead
4392 of writing to inferior_ptid.
4393 (darwin_nat_target::attach): Don't write to inferior_ptid.
4394 (darwin_nat_target::get_ada_task_ptid): Avoid inferior_ptid.
4395
4396 2020-06-18 Pedro Alves <palves@redhat.com>
4397
4398 * gnu-nat.c (gnu_nat_target::create_inferior): Switch to the added
4399 thread.
4400 (gnu_nat_target::attach): Don't write to inferior_ptid directly.
4401 Instead use switch_to_thread.
4402 (gnu_nat_target::detach): Use switch_to_no_thread
4403 instead of writing to inferior_ptid directly. Used passed-in
4404 inferior instead of looking up the inferior by pid.
4405
4406 2020-06-18 Pedro Alves <palves@redhat.com>
4407
4408 * go32-nat.c (go32_nat_target::create_inferior): Don't write to
4409 inferior_ptid.
4410
4411 2020-06-18 Pedro Alves <palves@redhat.com>
4412
4413 * nto-procfs.c (nto_procfs_target::update_thread_list): Avoid
4414 inferior_ptid.
4415 (nto_procfs_target::attach): Avoid inferior_ptid. Switch to
4416 thread.
4417 (nto_procfs_target::detach): Avoid referencing
4418 inferior_ptid. Use switch_to_no_thread instead of writing to
4419 inferior_ptid directly.
4420 (nto_procfs_target::mourn_inferior): Use switch_to_no_thread
4421 instead of writing to inferior_ptid directly.
4422 (nto_procfs_target::create_inferior): Avoid inferior_ptid. Switch
4423 to thread.
4424
4425 2020-06-18 Pedro Alves <palves@redhat.com>
4426
4427 * remote-sim.c (gdbsim_target::create_inferior): Switch to thread
4428 after creating it, instead of writing to inferior_ptid.
4429 (gdbsim_target_open): Use switch_to_no_thread instead of writing
4430 to inferior_ptid directly.
4431 (gdbsim_target::wait): Don't write to inferior_ptid.
4432
4433 2020-06-18 Pedro Alves <palves@redhat.com>
4434
4435 * remote.c (remote_target::remote_notice_new_inferior): Use
4436 switch_to_thread instead of writing to inferior_ptid directly.
4437 (remote_target::add_current_inferior_and_thread): Use
4438 switch_to_no_thread instead of writing to inferior_ptid directly.
4439 (extended_remote_target::attach): Use switch_to_inferior_no_thread
4440 and switch_to_thread instead of using set_current_inferior or
4441 writing to inferior_ptid directly.
4442
4443 2020-06-18 Pedro Alves <palves@redhat.com>
4444
4445 * tracectf.c (ctf_target_open): Switch to added thread instead of
4446 writing to inferior_ptid directly.
4447 (ctf_target::close): Use switch_to_no_thread instead of writing to
4448 inferior_ptid directly.
4449
4450 2020-06-18 Pedro Alves <palves@redhat.com>
4451
4452 * tracefile-tfile.c (tfile_target_open): Don't write to
4453 inferior_ptid directly, instead switch to added thread.
4454 (tfile_target::close): Use switch_to_no_thread instead of writing
4455 to inferior_ptid directly.
4456
4457 2020-06-18 Pedro Alves <palves@redhat.com>
4458
4459 * procfs.c (procfs_target::attach): Don't write to inferior_ptid.
4460 (procfs_target::detach): Use switch_to_no_thread
4461 instead of writing to inferior_ptid directly.
4462 (do_attach): Change return type to void. Switch to the added
4463 thread.
4464 (procfs_target::create_inferior): Switch to the added thread.
4465 (procfs_do_thread_registers): Don't write to inferior_ptid.
4466
4467 2020-06-18 Pedro Alves <palves@redhat.com>
4468
4469 * infrun.c (generic_mourn_inferior): Use switch_to_thread instead
4470 of writing to inferior_ptid.
4471 (scoped_restore_exited_inferior): Delete.
4472 (handle_vfork_child_exec_or_exit): Simplify using
4473 scoped_restore_current_pspace_and_thread. Use switch_to_thread
4474 instead of writing to inferior_ptid.
4475 (THREAD_STOPPED_BY): Delete.
4476 (thread_stopped_by_watchpoint, thread_stopped_by_sw_breakpoint)
4477 (thread_stopped_by_hw_breakpoint): Delete.
4478 (save_waitstatus): Use
4479 scoped_restore_current_thread+switch_to_thread, and call
4480 target_stopped_by_watchpoint instead of
4481 thread_stopped_by_watchpoint, target_stopped_by_sw_breakpoint
4482 instead of thread_stopped_by_sw_breakpoint, and
4483 target_stopped_by_hw_breakpoint instead of
4484 thread_stopped_by_hw_breakpoint.
4485 (handle_inferior_event)
4486 <TARGET_WAITKIND_EXITED/TARGET_WAITKIND_SIGNALLED>: Don't write to
4487 inferior_ptid directly, nor
4488 set_current_inferior/set_current_program_space. Use
4489 switch_to_thread / switch_to_inferior_no_thread instead.
4490
4491 2020-06-18 Pedro Alves <palves@redhat.com>
4492
4493 * target.c (generic_mourn_inferior): Use switch_to_no_thread
4494 instead of writing to inferior_ptid.
4495
4496 2020-06-18 Pedro Alves <palves@redhat.com>
4497
4498 * inf-ptrace.c (inf_ptrace_target::create_inferior): Switch to the
4499 added thread.
4500 (inf_ptrace_target::attach): Don't write to inferior_ptid. Switch
4501 to the added thread.
4502 (inf_ptrace_target::detach_success): Use switch_to_no_thread
4503 instead of writing to inferior_ptid.
4504
4505 2020-06-18 Pedro Alves <palves@redhat.com>
4506
4507 * gdbarch-selftests.c: Include "progspace-and-thread.h".
4508 (register_to_value_test): Mock a program_space too. Heap-allocate
4509 the address space. Don't write to inferior_ptid. Use
4510 switch_to_thread instead.
4511
4512 2020-06-18 Pedro Alves <palves@redhat.com>
4513
4514 * linux-tdep.c (find_signalled_thread(thread_info *,void *)):
4515 Delete.
4516 (find_signalled_thread()): New, factored out from
4517 linux_make_corefile_notes and adjusted to handle exited threads.
4518 (linux_make_corefile_notes): Adjust to use the new
4519 find_signalled_thread.
4520
4521 2020-06-18 Pedro Alves <palves@redhat.com>
4522
4523 * linux-tdep.c (btrace_fetch): Save/restore current thread instead
4524 of saving/restoring inferior_ptid.
4525
4526 2020-06-17 Tom Tromey <tom@tromey.com>
4527
4528 * tui/tui-win.h (tui_scroll_forward, tui_scroll_backward)
4529 (tui_scroll_left, tui_scroll_right, struct tui_win_info): Don't
4530 declare.
4531 * tui/tui-data.h (MIN_CMD_WIN_HEIGHT): Remove.
4532
4533 2020-06-15 Simon Marchi <simon.marchi@efficios.com>
4534
4535 * dwarf2/read.c (dwarf2_initialize_objfile): Check for presence
4536 of partial symtabs.
4537
4538 2020-06-17 Simon Marchi <simon.marchi@efficios.com>
4539
4540 * regformats/reg-arm.dat: Remove.
4541 * regformats/reg-bfin.dat: Remove.
4542 * regformats/reg-cris.dat: Remove.
4543 * regformats/reg-crisv32.dat: Remove.
4544 * regformats/reg-m32r.dat: Remove.
4545 * regformats/reg-tilegx.dat: Remove.
4546 * regformats/reg-tilegx32.dat: Remove.
4547
4548 2020-06-17 Simon Marchi <simon.marchi@efficios.com>
4549
4550 * features/Makefile (WHICH): Remove arm files.
4551 * regformats/arm/arm-with-iwmmxt.dat: Remove.
4552 * regformats/arm/arm-with-neon.dat: Remove.
4553 * regformats/arm/arm-with-vfpv2.dat: Remove.
4554 * regformats/arm/arm-with-vfpv3.dat: Remove.
4555
4556 2020-06-17 Simon Marchi <simon.marchi@efficios.com>
4557
4558 * features/Makefile (XMLTOC): Remove rx.xml.
4559
4560 2020-06-17 Pedro Alves <palves@redhat.com>
4561
4562 * gdbthread.h (thread_control_state) <trap_expected> Update
4563 comments.
4564
4565 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
4566
4567 * ada-lang.c (ada_lookup_symbol_nonlocal): Rename to
4568 ada_language::lookup_symbol_nonlocal.
4569 (ada_language_data): Delete la_lookup_symbol_nonlocal initializer.
4570 (ada_language::lookup_symbol_nonlocal): New member function,
4571 implementation from ada_lookup_symbol_nonlocal.
4572 * c-lang.c (c_language_data): Delete la_lookup_symbol_nonlocal
4573 initializer.
4574 (cplus_language_data): Delete la_lookup_symbol_nonlocal
4575 initializer.
4576 (cplus_language::lookup_symbol_nonlocal): New member function.
4577 (asm_language_data): Delete la_lookup_symbol_nonlocal initializer.
4578 (minimal_language_data) Likewise.
4579 * cp-namespace.c (cp_lookup_nested_symbol): Update comment.
4580 * d-lang.c (d_language_data): Delete la_lookup_symbol_nonlocal
4581 initializer.
4582 (d_language::lookup_symbol_nonlocal): New member function.
4583 * f-lang.c (f_language_data): Delete la_lookup_symbol_nonlocal
4584 initializer.
4585 (f_language::lookup_symbol_nonlocal): New member function.
4586 * go-lang.c (go_language_data): Delete la_lookup_symbol_nonlocal
4587 initializer.
4588 * language.c (unknown_language_data): Likewise.
4589 (auto_language_data): Likewise.
4590 * language.h (language_data): Delete la_lookup_symbol_nonlocal
4591 field.
4592 (language_defn::lookup_symbol_nonlocal): New member function.
4593 * m2-lang.c (m2_language_data): Delete la_lookup_symbol_nonlocal
4594 initializer.
4595 * objc-lang.c (objc_language_data): Likewise.
4596 * opencl-lang.c (opencl_language_data): Likewise.
4597 * p-lang.c (pascal_language_data): Likewise.
4598 * rust-lang.c (rust_lookup_symbol_nonlocal): Rename to
4599 rust_language::lookup_symbol_nonlocal.
4600 (rust_language_data): Delete la_lookup_symbol_nonlocal
4601 initializer.
4602 (rust_language::lookup_symbol_nonlocal): New member function,
4603 implementation from rust_lookup_symbol_nonlocal.
4604 * symtab.c (lookup_symbol_aux): Update call to
4605 lookup_symbol_nonlocal.
4606 (basic_lookup_symbol_nonlocal): Rename to...
4607 (language_defn::lookup_symbol_nonlocal): ...this, and update
4608 header comment. Remove language_defn parameter, and replace with
4609 uses of `this'.
4610 * symtab.h (basic_lookup_symbol_nonlocal): Delete declaration.
4611
4612 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
4613
4614 * ada-lang.c (ada_language_data): Delete la_value_print_inner
4615 initializer.
4616 (ada_language::value_print_inner): New member function.
4617 * c-lang.c (c_language_data): Delete la_value_print_inner
4618 initializer.
4619 (cplus_language_data): Likewise.
4620 (asm_language_data): Likewise.
4621 (minimal_language_data): Likewise.
4622 * d-lang.c (d_language_data): Likewise.
4623 (d_language::value_print_inner): New member function.
4624 * f-lang.c (f_language_data): Delete la_value_print_inner
4625 initializer.
4626 (f_language::value_print_inner): New member function.
4627 * f-lang.h (f_value_print_innner): Rename to...
4628 (f_value_print_inner): ...this (note spelling of 'inner').
4629 * f-valprint.c (f_value_print_innner): Rename to...
4630 (f_value_print_inner): ...this (note spelling of 'inner').
4631 * go-lang.c (go_language_data): Delete la_value_print_inner
4632 initializer.
4633 (go_language::value_print_inner): New member function.
4634 * language.c (language_defn::value_print_inner): Define new member
4635 function.
4636 (unk_lang_value_print_inner): Delete.
4637 (unknown_language_data): Delete la_value_print_inner initializer.
4638 (unknown_language::value_print_inner): New member function.
4639 (auto_language_data): Delete la_value_print_inner initializer.
4640 (auto_language::value_print_inner): New member function.
4641 * language.h (language_data): Delete la_value_print_inner field.
4642 (language_defn::value_print_inner): Delcare new member function.
4643 * m2-lang.c (m2_language_data): Delete la_value_print_inner
4644 initializer.
4645 (m2_language::value_print_inner): New member function.
4646 * objc-lang.c (objc_language_data): Delete la_value_print_inner
4647 initializer.
4648 * opencl-lang.c (opencl_language_data): Likewise.
4649 * p-lang.c (pascal_language_data): Likewise.
4650 (pascal_language::value_print_inner): New member function.
4651 * rust-lang.c (rust_language_data): Delete la_value_print_inner
4652 initializer.
4653 (rust_language::value_print_inner): New member function.
4654 * valprint.c (do_val_print): Update call to value_print_inner.
4655
4656 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
4657
4658 * ada-lang.c (ada_language_data): Delete la_value_print
4659 initializer.
4660 (ada_language::value_print): New member function.
4661 * c-lang.c (c_language_data): Delete la_value_print initializer.
4662 (cplus_language_data): Likewise.
4663 (asm_language_data): Likewise.
4664 (minimal_language_data): Likewise.
4665 * d-lang.c (d_language_data): Likewise.
4666 * f-lang.c (f_language_data): Likewise.
4667 * go-lang.c (go_language_data): Likewise.
4668 * language.c (unk_lang_value_print): Delete.
4669 (language_defn::value_print): Define new member function.
4670 (unknown_language_data): Delete la_value_print initializer.
4671 (unknown_language::value_print): New member function.
4672 (auto_language_data): Delete la_value_print initializer.
4673 (auto_language::value_print): New member function.
4674 * language.h (language_data): Delete la_value_print field.
4675 (language_defn::value_print): Declare new member function.
4676 (LA_VALUE_PRINT): Update call to value_print.
4677 * m2-lang.c (m2_language_data): Delete la_value_print initializer.
4678 * objc-lang.c (objc_language_data): Likewise.
4679 * opencl-lang.c (opencl_language_data): Likewise.
4680 * p-lang.c (pascal_language_data): Likewise.
4681 (pascal_language::value_print): New member function.
4682 * rust-lang.c (rust_language_data): Delete la_value_print
4683 initializer.
4684
4685 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
4686
4687 * ada-lang.c (ada_watch_location_expression): Rename to
4688 ada_language::watch_location_expression.
4689 (ada_language_data): Delete la_watch_location_expression
4690 initializer.
4691 (ada_language::watch_location_expression): New member function,
4692 implementation from ada_watch_location_expression.
4693 * breakpoint.c (watch_command_1): Update call to
4694 watch_location_expression.
4695 * c-lang.c (c_watch_location_expression): Rename to
4696 language_defn::watch_location_expression.
4697 (c_language_data): Delete la_watch_location_expression
4698 initializer.
4699 (cplus_language_data): Likewise.
4700 (asm_language_data): Likewise.
4701 (minimal_language_data): Likewise.
4702 * c-lang.h (c_watch_location_expression): Delete declaration.
4703 * d-lang.c (d_language_data): Delete la_watch_location_expression
4704 initializer.
4705 * f-lang.c (f_language_data): Likewise.
4706 * go-lang.c (go_language_data): Likewise.
4707 * language.c (language_defn::watch_location_expression): Member
4708 function implementation from c_watch_location_expression.
4709 (unknown_language_data): Delete la_watch_location_expression
4710 initializer.
4711 (auto_language_data): Likewise.
4712 * language.h (language_data): Delete la_watch_location_expression
4713 field.
4714 (language_defn::watch_location_expression): Declare new member
4715 function.
4716 * m2-lang.c (m2_language_data): Delete
4717 la_watch_location_expression initializer.
4718 * objc-lang.c (objc_language_data): Likewise.
4719 * opencl-lang.c (opencl_language_data): Likewise.
4720 * p-lang.c (pascal_language_data): Likewise.
4721 * rust-lang.c (rust_watch_location_expression): Rename to
4722 rust_language::watch_location_expression.
4723 (rust_language_data): Delete la_watch_location_expression
4724 initializer.
4725 (rust_language::watch_location_expression): New member function,
4726 implementation from rust_watch_location_expression.
4727
4728 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
4729
4730 * ada-lang.c (ada_collect_symbol_completion_matches): Rename to
4731 ada_language::collect_symbol_completion_matches.
4732 (ada_language_data): Delete la_collect_symbol_completion_matches
4733 initializer.
4734 (ada_language::collect_symbol_completion_matches): New member
4735 function, implementation from
4736 ada_collect_symbol_completion_matches.
4737 * c-lang.c (c_language_data): Delete
4738 la_collect_symbol_completion_matches initializer.
4739 (cplus_language_data): Likewise.
4740 (asm_language_data): Likewise.
4741 (minimal_language_data): Likewise.
4742 * d-lang.c (d_language_data): Likewise.
4743 * f-lang.c (f_collect_symbol_completion_matches): Rename to
4744 f_language::collect_symbol_completion_matches.
4745 (f_language_data): Delete la_collect_symbol_completion_matches
4746 initializer.
4747 (f_language::collect_symbol_completion_matches) New member
4748 function, implementation from f_collect_symbol_completion_matches.
4749 * go-lang.c (go_language_data): Delete
4750 la_collect_symbol_completion_matches initializer.
4751 * language.c (unknown_language_data): Likewise.
4752 (auto_language_data): Likewise.
4753 * language.h (language_data): Delete
4754 la_collect_symbol_completion_matches field.
4755 (language_defn::collect_symbol_completion_matches): New member
4756 function.
4757 * m2-lang.c (m2_language_data): Delete
4758 la_collect_symbol_completion_matches initializer.
4759 * objc-lang.c (objc_language_data): Likewise.
4760 * opencl-lang.c (opencl_language_data): Likewise.
4761 * p-lang.c (pascal_language_data): Likewise.
4762 * rust-lang.c (rust_language_data): Likewise.
4763 * symtab.c (default_collect_symbol_completion_matches): Delete.
4764 (collect_symbol_completion_matches): Update call to
4765 collect_symbol_completion_matches.
4766 (collect_symbol_completion_matches_type): Likewise.
4767 * symtab.h (default_collect_symbol_completion_matches): Delete
4768 declaration.
4769
4770 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
4771
4772 * ada-lang.c (ada_get_gdb_completer_word_break_characters): Delete.
4773 (ada_language_data): Delete la_word_break_characters initializer.
4774 (ada_language::word_break_characters): New member function.
4775 * c-lang.c (c_language_data): Delete la_word_break_characters
4776 initializer.
4777 (cplus_language_data): Likewise.
4778 (asm_language_data): Likewise.
4779 (minimal_language_data): Likewise.
4780 * completer.c: Update global comment.
4781 (advance_to_expression_complete_word_point): Update call to
4782 word_break_characters.
4783 (complete_files_symbols): Likewise.
4784 (complete_line_internal_1): Likewise.
4785 (default_completer_handle_brkchars): Likewise.
4786 (skip_quoted_chars): Likewise.
4787 * d-lang.c (d_language_data): Delete la_word_break_characters
4788 initializer.
4789 * f-lang.c (f_word_break_characters): Delete.
4790 (f_language_data): Delete la_word_break_characters initializer.
4791 (f_language::word_break_characters): New member function.
4792 * go-lang.c (go_language_data): Delete la_word_break_characters
4793 initializer.
4794 * language.c (unknown_language_data): Likewise.
4795 (auto_language_data): Likewise.
4796 * language.h (default_word_break_characters): Move declaration to
4797 earlier in the file.
4798 (language_data): Delete la_word_break_characters field.
4799 (language_defn::word_break_characters): New member function.
4800 * m2-lang.c (m2_language_data): Delete la_word_break_characters
4801 initializer.
4802 * objc-lang.c (objc_language_data): Likewise.
4803 * opencl-lang.c (opencl_language_data): Likewise.
4804 * p-lang.c (pascal_language_data): Likewise.
4805 * rust-lang.c (rust_language_data): Likewise.
4806
4807 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
4808
4809 * ada-lang.c (ada_get_symbol_name_matcher): Update header comment.
4810 (ada_language_data): Delete la_get_symbol_name_matcher
4811 initializer.
4812 (language_defn::get_symbol_name_matcher_inner): New member
4813 function.
4814 * c-lang.c (c_language_data): Delete la_get_symbol_name_matcher
4815 initializer.
4816 (cplus_language_data): Likewise.
4817 (cplus_language::get_symbol_name_matcher_inner): New member
4818 function.
4819 (asm_language_data): Delete la_get_symbol_name_matcher initializer.
4820 (minimal_language_data): Likewise.
4821 * cp-support.h (cp_get_symbol_name_matcher): Update header comment.
4822 * d-lang.c (d_language_data): Delete la_get_symbol_name_matcher
4823 initializer.
4824 * dictionary.c (iter_match_first_hashed): Update call to
4825 get_symbol_name_matcher.
4826 (iter_match_next_hashed): Likewise.
4827 (iter_match_next_linear): Likewise.
4828 * dwarf2/read.c (dw2_expand_symtabs_matching_symbol): Likewise.
4829 * f-lang.c (f_language_data): Delete la_get_symbol_name_matcher
4830 initializer.
4831 (f_language::get_symbol_name_matcher_inner): New member function.
4832 * go-lang.c (go_language_data): Delete la_get_symbol_name_matcher
4833 initializer.
4834 * language.c (default_symbol_name_matcher): Update header comment,
4835 make static.
4836 (language_defn::get_symbol_name_matcher): New definition.
4837 (language_defn::get_symbol_name_matcher_inner): Likewise.
4838 (get_symbol_name_matcher): Delete.
4839 (unknown_language_data): Delete la_get_symbol_name_matcher
4840 initializer.
4841 (auto_language_data): Likewise.
4842 * language.h (language_data): Delete la_get_symbol_name_matcher
4843 field.
4844 (language_defn::get_symbol_name_matcher): New member function.
4845 (language_defn::get_symbol_name_matcher_inner): Likewise.
4846 (default_symbol_name_matcher): Delete declaration.
4847 * linespec.c (find_methods): Update call to
4848 get_symbol_name_matcher.
4849 * m2-lang.c (m2_language_data): Delete la_get_symbol_name_matcher
4850 initializer.
4851 * minsyms.c (lookup_minimal_symbol): Update call to
4852 get_symbol_name_matcher.
4853 (iterate_over_minimal_symbols): Likewise.
4854 * objc-lang.c (objc_language_data): Delete
4855 la_get_symbol_name_matcher initializer.
4856 * opencl-lang.c (opencl_language_data): Likewise.
4857 * p-lang.c (pascal_language_data): Likewise.
4858 * psymtab.c (psymbol_name_matches): Update call to
4859 get_symbol_name_matcher.
4860 * rust-lang.c (rust_language_data): Delete
4861 la_get_symbol_name_matcher initializer.
4862 * symtab.c (symbol_matches_search_name): Update call to
4863 get_symbol_name_matcher.
4864 (compare_symbol_name): Likewise.
4865
4866 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
4867
4868 * ada-lang.c (ada_language_data): Delete la_compute_program
4869 initializer.
4870 * c-lang.c (c_language_data): Likewise.
4871 (c_language::compute_program): New member function.
4872 (cplus_language_data): Delete la_compute_program initializer.
4873 (cplus_language::compute_program): New member function.
4874 (asm_language_data): Delete la_compute_program initializer.
4875 (minimal_language_data): Likewise.
4876 * c-lang.h (c_compute_program): Update comment.
4877 (cplus_compute_program): Likewise.
4878 * compile/compile-c-support.c (c_compute_program): Likewise.
4879 (cplus_compute_program): Likewise.
4880 * compile/compile.c (compile_to_object): Update call to
4881 la_compute_program.
4882 * d-lang.c (d_language_data): Delete la_compute_program
4883 initializer.
4884 * f-lang.c (f_language_data): Likewise.
4885 * go-lang.c (go_language_data): Likewise.
4886 * language.c (unknown_language_data): Likewise.
4887 (auto_language_data): Likewise.
4888 * language.h (language_data): Delete la_compute_program field.
4889 (language_defn::compute_program): New member function.
4890 * m2-lang.c (m2_language_data): Delete la_compute_program
4891 initializer.
4892 * objc-lang.c (objc_language_data): Likewise.
4893 * opencl-lang.c (opencl_language_data): Likewise.
4894 * p-lang.c (pascal_language_data): Likewise.
4895 * rust-lang.c (rust_language_data): Likewise.
4896
4897 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
4898
4899 * ada-lang.c (ada_language_data) Delete
4900 la_class_name_from_physname initializer.
4901 * c-lang.c (c_language_data): Likewise.
4902 (cplus_language_data): Likewise.
4903 (cplus_language::class_name_from_physname): New member function.
4904 (asm_language_data): Delete la_class_name_from_physname
4905 initializer.
4906 (minimal_language_data): Likewise.
4907 * d-lang.c (d_language_data): Likewise.
4908 * dwarf2/read.c (guess_partial_die_structure_name): Update to call
4909 method on language_defn class.
4910 (guess_full_die_structure_name): Likewise.
4911 * f-lang.c (f_language_data): Delete la_class_name_from_physname
4912 initializer.
4913 * go-lang.c (go_language_data): Likewise.
4914 * language.c (language_class_name_from_physname): Delete.
4915 (unk_lang_class_name): Delete.
4916 (unknown_language_data): Delete la_class_name_from_physname
4917 initializer.
4918 (auto_language_data): Likewise.
4919 * language.h (language_data): Delete la_class_name_from_physname
4920 field.
4921 (language_defn::class_name_from_physname): New function.
4922 (language_class_name_from_physname): Delete declaration.
4923 * m2-lang.c (m2_language_data): Delete la_class_name_from_physname
4924 initializer.
4925 * objc-lang.c (objc_language_data): Likewise.
4926 * opencl-lang.c (opencl_language_data): Likewise.
4927 * p-lang.c (pascal_language_data): Likewise.
4928 * rust-lang.c (rust_language_data): Likewise.
4929
4930 2020-06-16 Tom Tromey <tom@tromey.com>
4931
4932 * tui/tui-data.h (STATUS_NAME): New macro.
4933 * tui/tui-layout.c (tui_remove_some_windows)
4934 (initialize_known_windows, tui_register_window)
4935 (tui_layout_split::remove_windows, initialize_layouts)
4936 (tui_new_layout_command): Don't use hard-coded window names.
4937
4938 2020-06-16 Tom Tromey <tom@tromey.com>
4939
4940 PR tui/25348:
4941 * tui/tui.c (tui_ensure_readline_initialized): Rename from
4942 tui_initialize_readline. Only run once. Call rl_initialize.
4943 * tui/tui.h (tui_ensure_readline_initialized): Rename from
4944 tui_initialize_readline.
4945 * tui/tui-io.c (tui_setup_io): Call
4946 tui_ensure_readline_initialized.
4947 * tui/tui-interp.c (tui_interp::init): Update.
4948
4949 2020-06-16 Tom Tromey <tom@tromey.com>
4950
4951 * tui/tui-layout.c (tui_layout_split::remove_windows): Fix logic.
4952 Also preserve the status window.
4953
4954 2020-06-16 Tom Tromey <tom@tromey.com>
4955
4956 * python/py-tui.c (tui_py_window::~tui_py_window): Handle case
4957 where m_window==nullptr.
4958
4959 2020-06-15 Tom Tromey <tromey@adacore.com>
4960
4961 * windows-nat.c (windows_nat::handle_output_debug_string):
4962 Update.
4963 (windows_nat::handle_ms_vc_exception): Update.
4964 * target.h (target_read_string): Change API.
4965 * target.c (target_read_string): Change API.
4966 * solib-svr4.c (open_symbol_file_object, svr4_read_so_list):
4967 Update.
4968 * solib-frv.c (frv_current_sos): Update.
4969 * solib-dsbt.c (dsbt_current_sos): Update.
4970 * solib-darwin.c (darwin_current_sos): Update.
4971 * linux-thread-db.c (inferior_has_bug): Update.
4972 * expprint.c (print_subexp_standard): Update.
4973 * ada-lang.c (ada_main_name, ada_tag_name_from_tsd)
4974 (ada_exception_message_1): Update.
4975
4976 2020-06-15 Tom Tromey <tromey@adacore.com>
4977
4978 * linux-tdep.c (dump_mapping_p): Use target_read_memory.
4979
4980 2020-06-15 Tom Tromey <tromey@adacore.com>
4981
4982 * valprint.c (read_string): Update comment.
4983 * target.c (MIN): Remove.
4984 (target_read_string): Rewrite.
4985
4986 2020-06-15 Tom Tromey <tromey@adacore.com>
4987
4988 * corefile.c (read_memory_string): Remove.
4989 * ada-valprint.c (ada_value_print_ptr): Update.
4990 * ada-lang.h (ada_tag_name): Change return type.
4991 * ada-lang.c (type_from_tag): Update.
4992 (ada_tag_name_from_tsd): Change return type. Use
4993 target_read_string.
4994 (ada_tag_name): Likewise.
4995 * gdbcore.h (read_memory_string): Don't declare.
4996
4997 2020-06-14 Hannes Domani <ssbssa@yahoo.de>
4998
4999 * symtab.c (rbreak_command): Ignore Windows drive colon.
5000
5001 2020-06-12 Simon Marchi <simon.marchi@efficios.com>
5002
5003 * NEWS: Mention removed GDBserver host support.
5004
5005 2020-06-12 Nelson Chu <nelson.chu@sifive.com>
5006
5007 * features/riscv/rebuild-csr-xml.sh: Updated.
5008
5009 2020-06-11 Tom Tromey <tom@tromey.com>
5010
5011 PR gdb/18318:
5012 * c-exp.y (lex_one_token): Handle 'p' like 'e'.
5013
5014 2020-06-09 Jonny Grant <jg@jguk.org>
5015 2020-06-09 Simon Marchi <simon.marchi@polymtl.ca>
5016
5017 * main.c (captured_main_1): Don't print new line after help.
5018 (print_gdb_help): add mailing list and IRC channel information
5019 to --help. Add new lines between items in the footer. Remove
5020 quotes around bug url.
5021
5022 2020-06-11 Keith Seitz <keiths@redhat.com>
5023
5024 PR gdb/21356
5025 * gdbtypes.c (resolve_dynamic_union, resolve_dynamic_struct):
5026 Resolve typedefs for type length calculations.
5027
5028 2020-06-10 Tom de Vries <tdevries@suse.de>
5029
5030 PR ada/24713
5031 * dwarf2/index-write.c (struct mapped_symtab): Add m_string_obstack.
5032 (write_psymbols): Enable .gdb_index for ada.
5033 * dwarf2/read.c: Remove comment stating .gdb_index is unsupported for
5034 ada.
5035
5036 2020-06-10 Tom de Vries <tdevries@suse.de>
5037
5038 * dwarf2/read.c (dw2_symtab_iter_init_common): Factor out of ...
5039 (dw2_symtab_iter_init): ... here. Add variant with "offset_type
5040 namei" instead of "const char *name" argument.
5041 (dw2_map_matching_symbols): Use "offset_type namei" variant of
5042 dw2_symtab_iter_init.
5043
5044 2020-06-08 Simon Marchi <simon.marchi@efficios.com>
5045
5046 * gdbtypes.h (TYPE_FIELD_TYPE): Remove. Change all call sites
5047 to use type::field and field::type instead.
5048
5049 2020-06-08 Simon Marchi <simon.marchi@efficios.com>
5050
5051 * gdbtypes.h (FIELD_TYPE): Remove. Change all call sites
5052 to use field::type instead.
5053
5054 2020-06-08 Simon Marchi <simon.marchi@efficios.com>
5055
5056 * gdbtypes.h (struct field) <type, set_type>: New methods.
5057 Rename `type` field to...
5058 <m_type>: ... this. Change references throughout to use type or
5059 set_type methods.
5060 (FIELD_TYPE): Use field::type. Change call sites that modify
5061 the field's type to use field::set_type instead.
5062
5063 2020-06-08 Simon Marchi <simon.marchi@efficios.com>
5064
5065 * gdbtypes.h (TYPE_INDEX_TYPE): Remove. Change all call sites
5066 to use type::index_type instead.
5067
5068 2020-06-08 Simon Marchi <simon.marchi@efficios.com>
5069
5070 * gdbtypes.h (struct type) <index_type, set_index_type>: New
5071 methods.
5072 (TYPE_INDEX_TYPE): Use type::index_type.
5073 * gdbtypes.c (create_array_type_with_stride): Likewise.
5074
5075 2020-06-07 Tom Tromey <tom@tromey.com>
5076
5077 * valprint.c (generic_val_print_float): Remove "embedded_offset"
5078 parameter.
5079 (generic_value_print): Update.
5080
5081 2020-06-05 Andrew Burgess <andrew.burgess@embecosm.com>
5082
5083 Revert commit 982a38f60b0.
5084 * python/py-tui.c (gdbpy_tui_set_title): Restore use of get.
5085
5086 2020-06-05 Andrew Burgess <andrew.burgess@embecosm.com>
5087
5088 * python/py-tui.c (gdbpy_tui_set_title): Use release, not get, to
5089 avoid use after free.
5090
5091 2020-06-05 Tom de Vries <tdevries@suse.de>
5092
5093 * NEWS: Fix typos.
5094
5095 2020-06-04 Simon Marchi <simon.marchi@efficios.com>
5096
5097 * dwarf2/read.c (dwarf2_read_gdb_index): Save partial_symtabs in
5098 the per_bfd object.
5099 (dwarf2_read_debug_names): Likewise.
5100 (dwarf2_initialize_objfile): Use partial_symtabs from per_bfd
5101 object when re-using a per_bfd object with an index.
5102
5103 2020-06-03 Tom de Vries <tdevries@suse.de>
5104
5105 PR symtab/26046
5106 * dwarf2/read.c (scan_partial_symbols): Recurse into DW_TAG_subprogram
5107 children for C++.
5108 (load_partial_dies): Don't skip DW_TAG_inlined_subroutine child of
5109 DW_TAG_subprogram.
5110
5111 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
5112
5113 * ada-lang.c (ada_language_data): Delete skip_trampoline
5114 initializer.
5115 * c-lang.c (c_language_data): Likewise.
5116 (cplus_language_data): Likewise.
5117 (cplus_language::skip_trampoline): New member function.
5118 (asm_language_data): Delete skip_trampoline initializer.
5119 (minimal_language_data): Likewise.
5120 * d-lang.c (d_language_data): Likewise.
5121 * f-lang.c (f_language_data): Likewise.
5122 * go-lang.c (go_language_data): Likewise.
5123 * language.c (unk_lang_trampoline): Delete function.
5124 (skip_language_trampoline): Update.
5125 (unknown_language_data): Delete skip_trampoline initializer.
5126 (auto_language_data): Likewise.
5127 * language.h (language_data): Delete skip_trampoline field.
5128 (language_defn::skip_trampoline): New function.
5129 * m2-lang.c (m2_language_data): Delete skip_trampoline
5130 initializer.
5131 * objc-lang.c (objc_skip_trampoline): Delete function, move
5132 implementation to objc_language::skip_trampoline.
5133 (objc_language_data): Delete skip_trampoline initializer.
5134 (objc_language::skip_trampoline): New member function with
5135 implementation from objc_skip_trampoline.
5136 * opencl-lang.c (opencl_language_data): Delete skip_trampoline
5137 initializer.
5138 * p-lang.c (pascal_language_data): Likewise.
5139 * rust-lang.c (rust_language_data): Likewise.
5140
5141 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
5142
5143 * ada-lang.c (ada_language_data): Delete la_demangle initializer.
5144 (ada_language::demangle): New member function.
5145 * c-lang.c (c_language_data): Delete la_demangle initializer.
5146 (cplus_language_data): Delete la_demangle initializer.
5147 (cplus_language::demangle): New member function.
5148 (asm_language_data): Delete la_demangle initializer.
5149 (minimal_language_data): Delete la_demangle initializer.
5150 * d-lang.c (d_language_data): Delete la_demangle initializer.
5151 (d_language::demangle): New member function.
5152 * f-lang.c (f_language_data): Delete la_demangle initializer.
5153 (f_language::demangle): New member function.
5154 * go-lang.c (go_language_data): Delete la_demangle initializer.
5155 (go_language::demangle): New member function.
5156 * language.c (language_demangle): Update.
5157 (unk_lang_demangle): Delete.
5158 (unknown_language_data): Delete la_demangle initializer.
5159 (unknown_language::demangle): New member function.
5160 (auto_language_data): Delete la_demangle initializer.
5161 (auto_language::demangle): New member function.
5162 * language.h (language_data): Delete la_demangle field.
5163 (language_defn::demangle): New function.
5164 * m2-lang.c (m2_language_data): Delete la_demangle initializer.
5165 * objc-lang.c (objc_language_data): Delete la_demangle
5166 initializer.
5167 (objc_language::demangle): New member function.
5168 * opencl-lang.c (opencl_language_data): Delete la_demangle
5169 initializer.
5170 * p-lang.c (pascal_language_data): Likewise.
5171 * rust-lang.c (rust_language_data): Likewise.
5172 (rust_language::demangle): New member function.
5173
5174 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
5175
5176 * ada-lang.c (ada_language_data): Delete la_print_type
5177 initializer.
5178 (ada_language::print_type): New member function.
5179 * c-lang.c (c_language_data): Delete la_print_type initializer.
5180 (c_language::print_type): New member function.
5181 (cplus_language_data): Delete la_print_type initializer.
5182 (cplus_language::print_type): New member function.
5183 (asm_language_data): Delete la_print_type initializer.
5184 (asm_language::print_type): New member function.
5185 (minimal_language_data): Delete la_print_type initializer.
5186 (minimal_language::print_type): New member function.
5187 * d-lang.c (d_language_data): Delete la_print_type initializer.
5188 (d_language::print_type): New member function.
5189 * f-lang.c (f_language_data): Delete la_print_type initializer.
5190 (f_language::print_type): New member function.
5191 * go-lang.c (go_language_data): Delete la_print_type initializer.
5192 (go_language::print_type): New member function.
5193 * language.c (unk_lang_print_type): Delete.
5194 (unknown_language_data): Delete la_print_type initializer.
5195 (unknown_language::print_type): New member function.
5196 (auto_language_data): Delete la_print_type initializer.
5197 (auto_language::print_type): New member function.
5198 * language.h (language_data): Delete la_print_type field.
5199 (language_defn::print_type): New function.
5200 (LA_PRINT_TYPE): Update.
5201 * m2-lang.c (m2_language_data): Delete la_print_type initializer.
5202 (m2_language::print_type): New member function.
5203 * objc-lang.c (objc_language_data): Delete la_print_type
5204 initializer.
5205 (objc_language::print_type): New member function.
5206 * opencl-lang.c (opencl_print_type): Delete, implementation moved
5207 to opencl_language::print_type.
5208 (opencl_language_data): Delete la_print_type initializer.
5209 (opencl_language::print_type): New member function, implementation
5210 from opencl_print_type.
5211 * p-lang.c (pascal_language_data): Delete la_print_type
5212 initializer.
5213 (pascal_language::print_type): New member function.
5214 * rust-lang.c (rust_print_type): Delete, implementation moved to
5215 rust_language::print_type.
5216 (rust_language_data): Delete la_print_type initializer.
5217 (rust_language::print_type): New member function, implementation
5218 from rust_print_type.
5219
5220 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
5221
5222 * ada-lang.c (ada_sniff_from_mangled_name): Delete function,
5223 implementation moves to...
5224 (ada_language::sniff_from_mangled_name): ...here. Update return
5225 type.
5226 (ada_language_data): Delete la_sniff_from_mangled_name
5227 initializer.
5228 * c-lang.c (c_language_data): Likewise.
5229 (cplus_language_data): Likewise.
5230 (cplus_language::sniff_from_mangled_name): New member function,
5231 implementation taken from gdb_sniff_from_mangled_name.
5232 (asm_language_data): Delete la_sniff_from_mangled_name
5233 initializer.
5234 (minimal_language_data): Likewise.
5235 * cp-support.c (gdb_sniff_from_mangled_name): Delete,
5236 implementation moves to cplus_language::sniff_from_mangled_name.
5237 * cp-support.h (gdb_sniff_from_mangled_name): Delete declaration.
5238 * d-lang.c (d_sniff_from_mangled_name): Delete, implementation
5239 moves to...
5240 (d_language::sniff_from_mangled_name): ...here.
5241 (d_language_data): Delete la_sniff_from_mangled_name initializer.
5242 * f-lang.c (f_language_data): Likewise.
5243 * go-lang.c (go_sniff_from_mangled_name): Delete, implementation
5244 moves to...
5245 (go_language::sniff_from_mangled_name): ...here.
5246 (go_language_data): Delete la_sniff_from_mangled_name initializer.
5247 * language.c (language_sniff_from_mangled_name): Delete.
5248 (unknown_language_data): Delete la_sniff_from_mangled_name
5249 initializer.
5250 (auto_language_data): Likewise.
5251 * language.h (language_data): Delete la_sniff_from_mangled_name
5252 field.
5253 (language_defn::sniff_from_mangled_name): New function.
5254 (language_sniff_from_mangled_name): Delete declaration.
5255 * m2-lang.c (m2_language_data): Delete la_sniff_from_mangled_name
5256 field.
5257 * objc-lang.c (objc_sniff_from_mangled_name): Delete,
5258 implementation moves to...
5259 (objc_language::sniff_from_mangled_name): ...here.
5260 (objc_language_data): Delete la_sniff_from_mangled_name initializer.
5261 * opencl-lang.c (opencl_language_data): Likewise.
5262 * p-lang.c (pascal_language_data): Likewise.
5263 * rust-lang.c (rust_sniff_from_mangled_name): Delete,
5264 implementation moves to...
5265 (rust_language::sniff_from_mangled_name): ...here.
5266 (rust_language_data): Delete la_sniff_from_mangled_name
5267 initializer.
5268 * symtab.c (symbol_find_demangled_name): Call
5269 sniff_from_mangled_name member function.
5270
5271 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
5272
5273 * ada-lang.c (ada_language_data): Delete la_search_name_hash
5274 initializer.
5275 * c-lang.c (c_language_data): Likewise.
5276 (cplus_language_data): Likewise.
5277 (cplus_language::search_name_hash): New member function.
5278 (asm_language_data): Delete la_search_name_hash initializer.
5279 (minimal_language_data): Likewise.
5280 * d-lang.c (d_language_data): Likewise.
5281 * dictionary.c (default_search_name_hash): Rename to...
5282 (language_defn::search_name_hash): ...this.
5283 * f-lang.c (f_language_data): Likewise.
5284 (f_language::search_name_hash): New member function.
5285 * go-lang.c (go_language_data): Delete la_search_name_hash
5286 initializer.
5287 * language.c (unknown_language_data): Likewise.
5288 (auto_language_data): Likewise.
5289 * language.h (struct language_data): Delete la_search_name_hash
5290 field.
5291 (language_defn::search_name_hash): Declare new member function.
5292 (default_search_name_hash): Delete declaration.
5293 * m2-lang.c (m2_language_data): Delete la_search_name_hash
5294 initializer.
5295 * objc-lang.c (objc_language_data): Likewise.
5296 * opencl-lang.c (opencl_language_data): Likewise.
5297 * p-lang.c (pascal_language_data): Likewise.
5298 * rust-lang.c (rust_language_data): Likewise.
5299 * symtab.c (search_name_hash): Update call.
5300
5301 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
5302
5303 * ada-lang.c (ada_language_data): Delete la_get_compile_instance
5304 initializer.
5305 * c-lang.c (class compile_instance): Declare.
5306 (c_language_data): Delete la_get_compile_instance initializer.
5307 (c_language::get_compile_instance): New member function.
5308 (cplus_language_data): Delete la_get_compile_instance initializer.
5309 (cplus_language::get_compile_instance): New member function.
5310 (asm_language_data): Delete la_get_compile_instance initializer.
5311 (minimal_language_data): Likewise.
5312 * c-lang.h (c_get_compile_context): Update comment.
5313 (cplus_get_compile_context): Update comment.
5314 * compile/compile.c (compile_to_object): Update calls, don't rely
5315 on function pointer being NULL.
5316 * d-lang.c (d_language_data): Delete la_get_compile_instance
5317 initializer.
5318 * f-lang.c (f_language_data): Likewise.
5319 * go-lang.c (go_language_data): Likewise.
5320 * language.c (unknown_language_data): Likewise.
5321 (auto_language_data): Likewise.
5322 * language.h (language_data): Delete la_get_compile_instance field.
5323 (language_defn::get_compile_instance): New member function.
5324 * m2-lang.c (m2_language_data): Delete la_get_compile_instance
5325 initializer.
5326 * objc-lang.c (objc_language_data): Likewise.
5327 * opencl-lang.c (opencl_language_data): Likewise.
5328 * p-lang.c (pascal_language_data): Likewise.
5329 * rust-lang.c (rust_language_data): Likewise.
5330
5331 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
5332
5333 * ada-lang.c (ada_add_all_symbols): Update comment.
5334 (ada_iterate_over_symbols): Delete, move implementation to...
5335 (ada_language::iterate_over_symbols): ...here, a new member
5336 function, rewrite to use range based for loop.
5337 (ada_language_data): Delete la_iterate_over_symbols initializer.
5338 * c-lang.c (c_language_data): Likewise.
5339 (cplus_language_data): Likewise.
5340 (asm_language_data): Likewise.
5341 (minimal_language_data): Likewise.
5342 * d-lang.c (d_language_data): Likewise.
5343 * f-lang.c (f_language_data): Likewise.
5344 * go-lang.c (go_language_data): Likewise.
5345 * language.c (unknown_language_data): Likewise.
5346 (auto_language_data): Likewise.
5347 * language.h (language_data): Delete la_iterate_over_symbols field.
5348 (language_defn::iterate_over_symbols): New member function.
5349 (LA_ITERATE_OVER_SYMBOLS): Update.
5350 * linespec.c (iterate_over_all_matching_symtabs): Update.
5351 * m2-lang.c (m2_language_data): Delete la_iterate_over_symbols
5352 initializer.
5353 * objc-lang.c (objc_language_data): Likewise.
5354 * opencl-lang.c (opencl_language_data): Likewise.
5355 * p-lang.c (pascal_language_data): Likewise.
5356 * rust-lang.c (rust_language_data): Likewise.
5357
5358 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
5359
5360 * ada-lang.c (ada_language_data): Delete
5361 la_lookup_transparent_type initializer.
5362 * c-lang.c (c_language_data): Likewise.
5363 (cplus_language_data): Likewise.
5364 (cplus_language::lookup_transparent_type): New member function.
5365 (asm_language_data): Delete la_lookup_transparent_type
5366 initializer.
5367 (minimal_language_data): Likewise.
5368 * d-lang.c (d_language_data): Likewise.
5369 * f-lang.c (f_language_data): Likewise.
5370 * go-lang.c (go_language_data): Likewise.
5371 * language.c (unknown_language_data): Likewise.
5372 (auto_language_data): Likewise.
5373 * language.h (struct language_data): Delete
5374 la_lookup_transparent_type field.
5375 (language_defn::lookup_transparent_type): New member function.
5376 * m2-lang.c (m2_language_data): Delete la_lookup_transparent_type
5377 initializer.
5378 * objc-lang.c (objc_language_data): Likewise.
5379 * opencl-lang.c (opencl_language_data): Likewise.
5380 * p-lang.c (pascal_language_data): Likewise.
5381 * rust-lang.c (rust_language_data): Likewise.
5382 * symtab.c (symbol_matches_domain): Update call.
5383
5384 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
5385
5386 * ada-lang.c (ada_language_arch_info): Delete function, move
5387 implementation to...
5388 (ada_language::language_arch_info): ...here, a new member
5389 function.
5390 (ada_language_data): Delete la_language_arch_info.
5391 * c-lang.c (c_language_data): Likewise.
5392 (c_language::language_arch_info): New member function.
5393 (cplus_language_arch_info): Delete function, move
5394 implementation to...
5395 (cplus_language::language_arch_info): ...here, a new member
5396 function.
5397 (cplus_language_data): Delete la_language_arch_info.
5398 (asm_language_data): Likewise.
5399 (asm_language::language_arch_info): New member function.
5400 (minimal_language_data): Delete la_language_arch_info.
5401 (minimal_language::language_arch_info): New member function.
5402 * d-lang.c (d_language_arch_info): Delete function, move
5403 implementation to...
5404 (d_language::language_arch_info): ...here, a new member
5405 function.
5406 (d_language_data): Delete la_language_arch_info.
5407 * f-lang.c (f_language_arch_info): Delete function, move
5408 implementation to...
5409 (f_language::language_arch_info): ...here, a new member
5410 function.
5411 (f_language_data): Delete la_language_arch_info.
5412 * go-lang.c (go_language_arch_info): Delete function, move
5413 implementation to...
5414 (go_language::language_arch_info): ...here, a new member
5415 function.
5416 (go_language_data): Delete la_language_arch_info.
5417 * language.c (unknown_language_data): Likewise.
5418 (unknown_language::language_arch_info): New member function.
5419 (auto_language_data): Delete la_language_arch_info.
5420 (auto_language::language_arch_info): New member function.
5421 (language_gdbarch_post_init): Update call to
5422 la_language_arch_info.
5423 * language.h (language_data): Delete la_language_arch_info
5424 function pointer.
5425 (language_defn::language_arch_info): New function.
5426 * m2-lang.c (m2_language_arch_info): Delete function, move
5427 implementation to...
5428 (m2_language::language_arch_info): ...here, a new member
5429 function.
5430 (m2_language_data): Delete la_language_arch_info.
5431 * objc-lang.c (objc_language_arch_info): Delete function, move
5432 implementation to...
5433 (objc_language::language_arch_info): ...here, a new member
5434 function.
5435 (objc_language_data): Delete la_language_arch_info.
5436 * opencl-lang.c (opencl_language_arch_info): Delete function, move
5437 implementation to...
5438 (opencl_language::language_arch_info): ...here, a new member
5439 function.
5440 (opencl_language_data): Delete la_language_arch_info.
5441 * p-lang.c (pascal_language_arch_info): Delete function, move
5442 implementation to...
5443 (pascal_language::language_arch_info): ...here, a new member
5444 function.
5445 (pascal_language_data): Delete la_language_arch_info.
5446 * rust-lang.c (rust_language_arch_info): Delete function, move
5447 implementation to...
5448 (rust_language::language_arch_info): ...here, a new member
5449 function.
5450 (rust_language_data): Delete la_language_arch_info.
5451
5452 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
5453
5454 * ada-lang.c (ada_language_data): Delete la_pass_by_reference
5455 initializer.
5456 * c-lang.c (c_language_data): Likewise.
5457 (cplus_language_data): Likewise.
5458 (cplus_language::pass_by_reference_info): New method.
5459 (asm_language_data): Delete la_pass_by_reference initializer.
5460 (minimal_language_data): Likewise.
5461 * cp-abi.c (cp_pass_by_reference): Remove use of
5462 default_pass_by_reference.
5463 * d-lang.c (d_language_data): Likewise.
5464 * f-lang.c (f_language_data): Likewise.
5465 * gnu-v3-abi.c (gnuv3_pass_by_reference): Remove use of
5466 default_pass_by_reference.
5467 * go-lang.c (go_language_data): Likewise.
5468 * language.c (language_pass_by_reference): Update.
5469 (default_pass_by_reference): Delete.
5470 (unknown_language_data): Delete la_pass_by_reference
5471 initializer.
5472 (auto_language_data): Likewise.
5473 * language.h (struct language_data): Delete la_pass_by_reference
5474 field.
5475 (language_defn::pass_by_reference_info): New member function.
5476 (default_pass_by_reference): Delete declaration.
5477 * m2-lang.c (m2_language_data): Delete la_pass_by_reference
5478 initializer.
5479 * objc-lang.c (objc_language_data): Likewise.
5480 * opencl-lang.c (opencl_language_data): Likewise.
5481 * p-lang.c (pascal_language_data): Likewise.
5482 * rust-lang.c (rust_language_data): Likewise.
5483
5484 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
5485
5486 * ada-lang.c (ada_read_var_value): Delete function, move
5487 implementation to...
5488 (ada_language::read_var_value): ...here.
5489 (ada_language_data): Delete la_read_var_value initializer.
5490 * c-lang.c (c_language_data): Likewise.
5491 (cplus_language_data): Likewise.
5492 (minimal_language_data): Likewise.
5493 * d-lang.c (d_language_data): Likewise.
5494 * f-lang.c (f_language_data): Likewise.
5495 * findvar.c (default_read_var_value): Rename to...
5496 (language_defn::read_var_value): ...this.
5497 * findvar.c (read_var_value): Update header comment, and change to
5498 call member function instead of function pointer.
5499 * go-lang.c (go_language_data): Likewise.
5500 * language.c (unknown_language_data): Delete la_read_var_value
5501 initializer.
5502 (auto_language_data): Likewise.
5503 * language.h (struct language_data): Delete la_read_var_value
5504 field.
5505 (language_defn::read_var_value): New member function.
5506 (default_read_var_value): Delete declaration.
5507 * m2-lang.c (m2_language_data): Delete la_read_var_value
5508 initializer.
5509 * objc-lang.c (objc_language_data): Likewise.
5510 * opencl-lang.c (opencl_language_data): Likewise.
5511 * p-lang.c (pascal_language_data): Likewise.
5512 * rust-lang.c (rust_language_data): Likewise.
5513 * value.h (default_read_var_value): Delete declaration.
5514
5515 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
5516
5517 * ada-lang.c (ada_print_array_index): Delete function, move
5518 implementation to...
5519 (ada_language::print_array_index): ...here.
5520 (ada_language_data): Delete la_print_array_index initializer.
5521 * c-lang.c (c_language_data): Likewise.
5522 (cplus_language_data): Likewise.
5523 (minimal_language_data): Likewise.
5524 * d-lang.c (d_language_data): Likewise.
5525 * f-lang.c (f_language_data): Likewise.
5526 * go-lang.c (go_language_data): Likewise.
5527 * language.c (default_print_array_index): Delete function, move
5528 implementation to...
5529 (language_defn::print_array_index): ...here.
5530 (unknown_language_data): Delete la_print_array_index initializer.
5531 (auto_language_data): Likewise.
5532 * language.h (struct language_data): Delete la_print_array_index
5533 field.
5534 (language_defn::print_array_index): New member function.
5535 (LA_PRINT_ARRAY_INDEX): Update.
5536 (default_print_array_index): Delete declaration.
5537 * m2-lang.c (m2_language_data): Delete la_print_array_index
5538 initializer.
5539 * objc-lang.c (objc_language_data): Likewise.
5540 * opencl-lang.c (opencl_language_data): Likewise.
5541 * p-lang.c (pascal_language_data): Likewise.
5542 * rust-lang.c (rust_language_data): Likewise.
5543
5544 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
5545
5546 * gdb/ada-lang.c (ada_language_defn): Convert to...
5547 (ada_language_data): ...this.
5548 (class ada_language): New class.
5549 (ada_language_defn): New static global.
5550 * gdb/c-lang.c (c_language_defn): Convert to...
5551 (c_language_data): ...this.
5552 (class c_language): New class.
5553 (c_language_defn): New static global.
5554 (cplus_language_defn): Convert to...
5555 (cplus_language_data): ...this.
5556 (class cplus_language): New class.
5557 (cplus_language_defn): New static global.
5558 (asm_language_defn): Convert to...
5559 (asm_language_data): ...this.
5560 (class asm_language): New class.
5561 (asm_language_defn): New static global.
5562 (minimal_language_defn): Convert to...
5563 (minimal_language_data): ...this.
5564 (class minimal_language): New class.
5565 (minimal_language_defn): New static global.
5566 * gdb/d-lang.c (d_language_defn): Convert to...
5567 (d_language_data): ...this.
5568 (class d_language): New class.
5569 (d_language_defn): New static global.
5570 * gdb/f-lang.c (f_language_defn): Convert to...
5571 (f_language_data): ...this.
5572 (class f_language): New class.
5573 (f_language_defn): New static global.
5574 * gdb/go-lang.c (go_language_defn): Convert to...
5575 (go_language_data): ...this.
5576 (class go_language): New class.
5577 (go_language_defn): New static global.
5578 * gdb/language.c (unknown_language_defn): Remove declaration.
5579 (current_language): Initialize to nullptr, real initialization is
5580 moved to _initialize_language.
5581 (languages): Delete global.
5582 (language_defn::languages): Define.
5583 (set_language_command): Use language_defn::languages.
5584 (set_language): Likewise.
5585 (range_error): Likewise.
5586 (language_enum): Likewise.
5587 (language_def): Likewise.
5588 (add_set_language_command): Use language_def::languages for the
5589 language list, and language_def to lookup language pointers.
5590 (skip_language_trampoline): Use language_defn::languages.
5591 (unknown_language_defn): Convert to...
5592 (unknown_language_data): ...this.
5593 (class unknown_language): New class.
5594 (unknown_language_defn): New static global.
5595 (auto_language_defn): Convert to...
5596 (auto_language_data): ...this.
5597 (class auto_language): New class.
5598 (auto_language_defn): New static global.
5599 (language_gdbarch_post_init): Use language_defn::languages.
5600 (_initialize_language): Initialize current_language.
5601 * gdb/language.h (struct language_defn): Rename to...
5602 (struct language_data): ...this.
5603 (struct language_defn): New.
5604 (auto_language_defn): Delete.
5605 (unknown_language_defn): Delete.
5606 (minimal_language_defn): Delete.
5607 (ada_language_defn): Delete.
5608 (asm_language_defn): Delete.
5609 (c_language_defn): Delete.
5610 (cplus_language_defn): Delete.
5611 (d_language_defn): Delete.
5612 (f_language_defn): Delete.
5613 (go_language_defn): Delete.
5614 (m2_language_defn): Delete.
5615 (objc_language_defn): Delete.
5616 (opencl_language_defn): Delete.
5617 (pascal_language_defn): Delete.
5618 (rust_language_defn): Delete.
5619 * gdb/m2-lang.c (m2_language_defn): Convert to...
5620 (m2_language_data): ...this.
5621 (class m2_language): New class.
5622 (m2_language_defn): New static global.
5623 * gdb/objc-lang.c (objc_language_defn): Convert to...
5624 (objc_language_data): ...this.
5625 (class objc_language): New class.
5626 (objc_language_defn): New static global.
5627 * gdb/opencl-lang.c (opencl_language_defn): Convert to...
5628 (opencl_language_data): ...this.
5629 (class opencl_language): New class.
5630 (opencl_language_defn): New static global.
5631 * gdb/p-lang.c (pascal_language_defn): Convert to...
5632 (pascal_language_data): ...this.
5633 (class pascal_language): New class.
5634 (pascal_language_defn): New static global.
5635 * gdb/rust-exp.y (rust_lex_tests): Use language_def to find
5636 language pointer, update comment format.
5637 * gdb/rust-lang.c (rust_language_defn): Convert to...
5638 (rust_language_data): ...this.
5639 (class rust_language): New class.
5640 (rust_language_defn): New static global.
5641
5642 2020-06-01 Andrew Burgess <andrew.burgess@embecosm.com>
5643
5644 * dwarf2/read.c (class lnp_state_machine) <m_last_address>: New
5645 member variable.
5646 <m_stmt_at_address>: New member variable.
5647 (lnp_state_machine::record_line): Don't record some lines, update
5648 tracking of is_stmt at the same address.
5649 (lnp_state_machine::lnp_state_machine): Initialise new member
5650 variables.
5651
5652 2020-06-01 Samuel Thibault <samuel.thibault@ens-lyon.org>
5653
5654 * config/i386/i386gnu.mn [%_S.o %_U.o] (COMPILE.post): Add
5655 "-include gnu-nat-mig.h".
5656 * gnu-nat-mig.h: New file.
5657 * gnu-nat.c: Include "gnu-nat-mig.h".
5658 (exc_server, msg_reply_server, notify_server,
5659 process_reply_server): Remove declarations.
5660
5661 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
5662
5663 * gnu-nat.h (inf_validate_procs, inf_suspend, inf_set_traced,
5664 steal_exc_port, proc_get_state, inf_clear_wait, inf_cleanup,
5665 inf_startup, inf_update_suspends, inf_set_pid, inf_steal_exc_ports,
5666 inf_validate_procinfo, inf_validate_task_sc, inf_restore_exc_ports,
5667 inf_set_threads_resume_sc, inf_set_threads_resume_sc_for_signal_thread,
5668 inf_resume, inf_set_step_thread, inf_detach, inf_attach, inf_signal,
5669 inf_continue, make_proc, proc_abort, _proc_free, proc_update_sc,
5670 proc_get_exception_port, proc_set_exception_port, _proc_get_exc_port,
5671 proc_steal_exc_port, proc_restore_exc_port, proc_trace): Move functions
5672 to gnu_nat_target class.
5673 * gnu-nat.c: Likewise.
5674 (inf_update_procs, S_proc_wait_reply, set_task_pause_cmd,
5675 set_task_exc_port_cmd, set_signals_cmd, set_thread_pause_cmd,
5676 set_thread_exc_port_cmd): Call inf_validate_procs through gnu_target
5677 object.
5678 (gnu_nat_target::create_inferior, gnu_nat_target::detach): Pass `this'
5679 instead of `gnu_target'.
5680
5681 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
5682
5683 * i386-gnu-tdep.c: Include "gdbcore.h"
5684 (gnu_sigtramp_code, i386_gnu_sc_reg_offset): New arrays.
5685 (GNU_SIGTRAMP_LEN, GNU_SIGTRAMP_TAIL,
5686 I386_GNU_SIGCONTEXT_THREAD_STATE_OFFSET): New macros
5687 (i386_gnu_sigtramp_start, i386_gnu_sigtramp_p,
5688 i386_gnu_sigcontext_addr): New functions
5689 (i386gnu_init_abi): Register i386_gnu_sigtramp_p,
5690 i386_gnu_sigcontext_addr, and i386_gnu_sc_reg_offset in the gdbarch
5691 tdep.
5692
5693 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
5694
5695 * gnu-nat.c (gnu_nat_target::create_inferior): Move push_target call
5696 before fork_inferior call. Avoid calling it if target_is_pushed returns
5697 true.
5698
5699 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
5700
5701 * gnu-nat.h (gnu_target): New variable declaration.
5702 * i386-gnu-nat.c (_initialize_i386gnu_nat): Initialize
5703 gnu_target.
5704 * gnu-nat.c (gnu_target): New variable.
5705 (inf_validate_procs): Pass gnu_target to thread_change_ptid,
5706 add_thread_silent, and add_thread calls.
5707 (gnu_nat_target::create_inferior): Pass gnu_target to
5708 add_thread_silent, thread_change_ptid call.
5709 (gnu_nat_target::detach): Pass gnu_target to detach_inferior
5710 call.
5711
5712 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
5713
5714 * gnu-nat.c (gnu_xfer_auxv): Remove unused `res' variable.
5715 (gnu_nat_target::find_memory_regions): Remove unused
5716 `old_address' variable.
5717
5718 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
5719
5720 * gnu-nat.c: Include "gdbarch.h".
5721
5722 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
5723
5724 * reply_mig_hack.awk (Error return): Cast function through
5725 void *, to bypass compiler function call check.
5726
5727 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
5728
5729 * config/i386/i386gnu.mn (%_reply_S.c): Add dependency on
5730 $(srcdir)/reply_mig_hack.awk.
5731
5732 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
5733
5734 * gnu-nat.h (gnu_debug_flag): Set type to bool.
5735
5736 2020-05-30 Jonny Grant <jg@jguk.org>
5737
5738 * configure.ac (ACX_BUGURL): change bug URL to https.
5739
5740 2020-05-30 Pedro Alves <palves@redhat.com>
5741
5742 * cp-support.c (replace_typedefs_template): New.
5743 (replace_typedefs_qualified_name): Handle
5744 DEMANGLE_COMPONENT_TEMPLATE.
5745
5746 2020-05-29 Simon Marchi <simon.marchi@efficios.com>
5747
5748 * dwarf2/comp-unit.c, dwarf2/comp-unit.h, dwarf2/index-cache.c,
5749 dwarf2/index-cache.h, dwarf2/index-write.c,
5750 dwarf2/index-write.h, dwarf2/line-header.c,
5751 dwarf2/line-header.h, dwarf2/macro.c, dwarf2/macro.h,
5752 dwarf2/read.c, dwarf2/read.h: Rename struct dwarf2_per_objfile
5753 variables and fields from `dwarf2_per_objfile` to just
5754 `per_objfile` throughout.
5755
5756 2020-05-28 Simon Marchi <simon.marchi@polymtl.ca>
5757
5758 * dwarf2/loc.c (class dwarf_evaluate_loc_desc)
5759 <push_dwarf_reg_entry_value>: Add comment.
5760
5761 2020-05-28 Kevin Buettner <kevinb@redhat.com>
5762 Keith Seitz <keiths@redhat.com>
5763
5764 * python/python.c (do_start_initialization): Call PyEval_SaveThread
5765 instead of PyEval_ReleaseLock.
5766 (class gdbpy_gil): Move to earlier in file.
5767 (finalize_python): Set gdb_python_initialized.
5768 (gdbpy_check_quit_flag): Acquire GIL via gdbpy_gil. Return early
5769 when not initialized.
5770
5771 2020-05-28 Simon Marchi <simon.marchi@efficios.com>
5772
5773 * dwarf2/loc.c (class dwarf_evaluate_loc_desc)
5774 <push_dwarf_reg_entry_value>: Remove assert. Override
5775 per_objfile with caller_per_objfile.
5776
5777 2020-05-28 Tom de Vries <tdevries@suse.de>
5778
5779 * dwarf2/read.c (dw2_symtab_iter_next, dw2_expand_marked_cus): Limit
5780 PR gold/15646 workaround to symbol kind "type".
5781
5782 2020-05-27 Tom Tromey <tromey@adacore.com>
5783
5784 * dwarf2/read.c (load_partial_dies): Use add_partial_symbol.
5785
5786 2020-05-27 Tom Tromey <tromey@adacore.com>
5787
5788 * dwarf2/abbrev.h (struct abbrev_table) <lookup_abbrev>: Inline.
5789 Use htab_find_with_hash.
5790 <add_abbrev>: Remove "abbrev_number" parameter.
5791 * dwarf2/abbrev.c (abbrev_table::add_abbrev): Remove
5792 "abbrev_number" parameter. Use htab_find_slot_with_hash.
5793 (hash_abbrev): Add comment.
5794 (abbrev_table::lookup_abbrev): Move to header file.
5795 (abbrev_table::read): Update.
5796
5797 2020-05-27 Tom Tromey <tromey@adacore.com>
5798
5799 * dwarf2/read.c (struct partial_die_info) <name>: Declare new
5800 method.
5801 <canonical_name>: New member.
5802 <raw_name>: Rename from "name".
5803 (partial_die_info): Initialize canonical_name.
5804 (scan_partial_symbols): Check raw_name.
5805 (partial_die_parent_scope, partial_die_full_name)
5806 (add_partial_symbol, add_partial_subprogram)
5807 (add_partial_enumeration, load_partial_dies): Use "name" method.
5808 (partial_die_info::name): New method.
5809 (partial_die_info::read, guess_partial_die_structure_name)
5810 (partial_die_info::fixup): Update.
5811
5812 2020-05-27 Tom Tromey <tromey@adacore.com>
5813
5814 * dwarf2/attribute.h (struct attribute) <form_is_ref>: Inline.
5815 <get_ref_die_offset>: Inline.
5816 <get_ref_die_offset_complaint>: New method.
5817 * dwarf2/attribute.c (attribute::form_is_ref): Move to header.
5818 (attribute::get_ref_die_offset_complaint): Rename from
5819 get_ref_die_offset. Just issue complaint.
5820
5821 2020-05-27 Hannes Domani <ssbssa@yahoo.de>
5822
5823 * cli/cli-cmds.c (shell_escape): Move exit_status_set_internal_vars.
5824
5825 2020-05-27 Hannes Domani <ssbssa@yahoo.de>
5826
5827 * exec.c (exec_file_attach): Use errno value of first openp failure.
5828
5829 2020-05-27 Hannes Domani <ssbssa@yahoo.de>
5830
5831 * nat/windows-nat.c (windows_thread_info::~windows_thread_info):
5832 Don't close thread handle.
5833
5834 2020-05-27 Tom Tromey <tom@tromey.com>
5835 Simon Marchi <simon.marchi@efficios.com>
5836
5837 * objfiles.h (struct objfile) <partial_symtabs>: Now a
5838 shared_ptr.
5839 * dwarf2/read.h (struct dwarf2_per_objfile) <partial_symtabs>: New
5840 member.
5841 * dwarf2/read.c (dwarf2_per_bfd_bfd_data_key,
5842 dwarf2_per_bfd_objfile_data_key>: New globals.
5843 (dwarf2_has_info): Use shared dwarf2_per_bfd if possible.
5844 (dwarf2_get_section_info): Use get_dwarf2_per_objfile.
5845 (dwarf2_initialize_objfile): Consider cases where per_bfd can be
5846 shared.
5847 (dwarf2_build_psymtabs): Set objfile::partial_symtabs and
5848 short-circuit when sharing.
5849 (dwarf2_build_psymtabs): Set dwarf2_per_objfile::partial_symtabs.
5850 (dwarf2_psymtab::expand_psymtab): Use free_cached_comp_units.
5851
5852 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
5853
5854 * dwarf2/read.h (struct dwarf2_per_bfd) <line_header_hash>: Move
5855 to...
5856 (struct dwarf2_per_objfile) <line_header_hash>: ... here.
5857 * dwarf2/read.c (handle_DW_AT_stmt_list): Update.
5858
5859 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
5860
5861 * dwarf2/read.c (struct mapped_index_base) <symbol_name_at,
5862 build_name_components, find_name_components_bounds>:
5863 Add per_objfile parameter.
5864 (struct mapped_index) <symbol_name_at>: Likewise.
5865 (struct mapped_debug_names): Remove constructor.
5866 <dwarf2_per_objfile>: Remove field.
5867 <namei_to_name, symbol_name_at>: Add per_objfile parameter.
5868 (mapped_index_base::find_name_components_bounds,
5869 mapped_index_base::build_name_components,
5870 dw2_expand_symtabs_matching_symbol): Likewise.
5871 (class mock_mapped_index) <symbol_name_at>: Likewise.
5872 (check_match): Likewise.
5873 (check_find_bounds_finds): Likewise.
5874 (test_mapped_index_find_name_component_bounds): Update.
5875 (CHECK_MATCH): Update.
5876 (dw2_expand_symtabs_matching): Update.
5877 (class dw2_debug_names_iterator) <dw2_debug_names_iterator>: Add
5878 per_objfile parameter.
5879 <find_vec_in_debug_names>: Likewise.
5880 <m_per_objfile>: New field.
5881 (mapped_debug_names::namei_to_name): Add dwarf2_per_objfile
5882 parameter.
5883 (dw2_debug_names_iterator::find_vec_in_debug_names): Likewise.
5884 (dw2_debug_names_iterator::next): Update.
5885 (dw2_debug_names_lookup_symbol): Update.
5886 (dw2_debug_names_expand_symtabs_for_function): Update.
5887 (dw2_debug_names_map_matching_symbols): Update.
5888 (dw2_debug_names_expand_symtabs_matching): Update.
5889 (dwarf2_read_debug_names): Update.
5890
5891 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
5892
5893 * dwarf2/read.h (struct dwarf2_cu): Forward-declare.
5894 (struct dwarf2_per_bfd) <free_cached_comp_units>: Remove,
5895 move to dwarf2_per_objfile.
5896 <read_in_chain>: Remove.
5897 (struct dwarf2_per_objfile) <get_cu, set_cu, remove_cu,
5898 remove_all_cus, age_comp_units>: New methods.
5899 <m_dwarf2_cus>: New member.
5900 (struct dwarf2_per_cu_data) <cu>: Remove.
5901 * dwarf2/read.c (struct dwarf2_cu) <read_in_chain>: Remove.
5902 (age_cached_comp_units, free_one_cached_comp_unit): Remove,
5903 moved to methods of dwarf2_per_objfile.
5904 (dwarf2_clear_marks): Remove.
5905 (dwarf2_queue_item::~dwarf2_queue_item): Update.
5906 (dwarf2_per_bfd::~dwarf2_per_bfd): Don't free dwarf2_cus.
5907 (dwarf2_per_bfd::free_cached_comp_units): Remove.
5908 (dwarf2_per_objfile::remove_all_cus): New.
5909 (class free_cached_comp_units) <~free_cached_comp_units>:
5910 Update.
5911 (load_cu): Update.
5912 (dw2_do_instantiate_symtab): Adjust.
5913 (fill_in_sig_entry_from_dwo_entry): Adjust.
5914 (cutu_reader::init_tu_and_read_dwo_dies): Update.
5915 (cutu_reader::cutu_reader): Likewise.
5916 (cutu_reader::keep): Use dwarf2_per_objfile::set_cu.
5917 (cutu_reader::cutu_reader): Use dwarf2_per_objfile::get_cu.
5918 (process_psymtab_comp_unit): Use dwarf2_per_objfile::remove_cu
5919 and dwarf2_per_objfile::age_comp_units.
5920 (load_partial_comp_unit): Update.
5921 (maybe_queue_comp_unit): Use dwarf2_per_objfile::get_cu.
5922 (process_queue): Likewise.
5923 (find_partial_die): Use dwarf2_per_objfile::get_cu instead of cu
5924 backlink.
5925 (dwarf2_read_addr_index): Likewise.
5926 (follow_die_offset): Likewise.
5927 (dwarf2_fetch_die_loc_sect_off): Likewise.
5928 (dwarf2_fetch_constant_bytes): Likewise.
5929 (dwarf2_fetch_die_type_sect_off): Likewise.
5930 (follow_die_sig_1): Likewise.
5931 (load_full_type_unit): Likewise.
5932 (read_signatured_type): Likewise.
5933 (dwarf2_cu::dwarf2_cu): Don't set cu field.
5934 (dwarf2_cu::~dwarf2_cu): Remove.
5935 (dwarf2_per_objfile::get_cu): New.
5936 (dwarf2_per_objfile::set_cu): New.
5937 (age_cached_comp_units): Rename to...
5938 (dwarf2_per_objfile::age_comp_units): ... this. Adjust
5939 to std::unordered_map.
5940 (free_one_cached_comp_unit): Rename to...
5941 (dwarf2_per_objfile::remove_cu): ... this. Adjust
5942 to std::unordered_map.
5943 (dwarf2_per_objfile::~dwarf2_per_objfile): New.
5944 (dwarf2_mark_helper): Use dwarf2_per_objfile::get_cu, expect
5945 a dwarf2_per_objfile in data.
5946 (dwarf2_mark): Pass dwarf2_per_objfile in data to htab_traverse.
5947 (dwarf2_clear_marks): Remove.
5948
5949 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
5950
5951 * dwarf2/read.c (class cutu_reader) <cutu_reader>: Replace
5952 `int use_existing_cu` parameter with `dwarf2_cu *existing_cu`.
5953 (init_tu_and_read_dwo_dies): Likewise.
5954 (cutu_reader::init_tu_and_read_dwo_dies): Likewise.
5955 (cutu_reader::cutu_reader): Likewise.
5956 (load_partial_comp_unit): Likewise.
5957 (process_psymtab_comp_unit): Update.
5958 (build_type_psymtabs_1): Update.
5959 (process_skeletonless_type_unit): Update.
5960 (load_full_comp_unit): Update.
5961 (find_partial_die): Update.
5962 (dwarf2_read_addr_index): Update.
5963 (read_signatured_type): Update.
5964
5965 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
5966
5967 * dwarf2/read.h (struct dwarf2_per_cu_data) <m_header,
5968 m_header_read_in>: New fields.
5969 <get_header>: New method.
5970 * dwarf2/read.c (per_cu_header_read_in): Remove.
5971 (dwarf2_per_cu_data::get_header): New.
5972 (dwarf2_per_cu_data::addr_size): Update.
5973 (dwarf2_per_cu_data::offset_size): Update.
5974 (dwarf2_per_cu_data::ref_addr_size): Update.
5975
5976 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
5977
5978 * dwarf2/read.c (load_cu): Return dwarf2_cu.
5979 (dw2_do_instantiate_symtab): Update.
5980 (queue_and_load_all_dwo_tus): Change parameter from
5981 dwarf2_per_cu_data to dwarf2_cu.
5982 (dwarf2_fetch_die_loc_sect_off): Update.
5983 (dwarf2_fetch_constant_bytes): Update.
5984 (dwarf2_fetch_die_type_sect_off): Update.
5985
5986 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
5987
5988 * dwarf2/read.c (process_full_comp_unit,
5989 process_full_type_unit): Remove per_cu, per_objfile paramters.
5990 Add dwarf2_cu parameter.
5991 (process_queue): Update.
5992
5993 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
5994
5995 * dwarf2/read.c (create_cu_from_index_list): Replace
5996 dwarf2_per_objfile parameter with dwarf2_per_bfd.
5997 (create_cus_from_index_list): Likewise.
5998 (create_cus_from_index): Likewise.
5999 (create_signatured_type_table_from_index): Likewise.
6000 (create_cus_from_debug_names_list): Likewise.
6001 (create_cus_from_debug_names): Likewise.
6002 (dwarf2_read_gdb_index): Update.
6003 (dwarf2_read_debug_names): Update.
6004
6005 2020-05-27 Tom Tromey <tom@tromey.com>
6006 Simon Marchi <simon.marchi@efficios.com>
6007
6008 * dwarf2/read.h (struct dwarf2_per_objfile)
6009 <get_type_for_signatured_type, set_type_for_signatured_type>:
6010 New methods.
6011 <m_type_map>: New member.
6012 (struct signatured_type) <type>: Remove.
6013 * dwarf2/read.c
6014 (dwarf2_per_objfile::get_type_for_signatured_type,
6015 dwarf2_per_objfile::set_type_for_signatured_type): New.
6016 (get_signatured_type): Use new methods.
6017
6018 2020-05-27 Tom Tromey <tom@tromey.com>
6019 Simon Marchi <simon.marchi@efficios.com>
6020
6021 * dwarf2/read.h (struct type_unit_group_unshareable): New.
6022 (struct dwarf2_per_objfile) <type_units>: New member.
6023 <get_type_unit_group_unshareable>: New method.
6024 * dwarf2/read.c (struct type_unit_group) <compunit_symtab,
6025 num_symtabs, symtabs>: Remove; move to
6026 type_unit_group_unshareable.
6027 (dwarf2_per_objfile::get_type_unit_group_unshareable): New.
6028 (process_full_type_unit, dwarf2_cu::setup_type_unit_groups)
6029 (dwarf2_cu::setup_type_unit_groups): Use type_unit_group_unshareable.
6030
6031 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
6032
6033 * dwarf2/read.h (struct dwarf2_per_cu_data):
6034 <dwarf2_per_objfile>: Remove.
6035 * dwarf2/read.c (create_cu_from_index_list): Don't assign
6036 dwarf2_per_objfile.
6037 (create_signatured_type_table_from_index): Likewise.
6038 (create_signatured_type_table_from_debug_names): Likewise.
6039 (create_debug_type_hash_table): Likewise.
6040 (fill_in_sig_entry_from_dwo_entry): Likewise.
6041 (create_type_unit_group): Likewise.
6042 (read_comp_units_from_section): Likewise.
6043 (create_cus_hash_table): Likewise.
6044
6045 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
6046
6047 * dwarf2/read.c (process_psymtab_comp_unit): Remove reference to
6048 dwarf2_per_cu_data::dwarf2_per_objfile.
6049 (compute_compunit_symtab_includes): Likewise.
6050 (dwarf2_cu::start_symtab): Likewise.
6051
6052 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
6053
6054 * dwarf2/read.h (dwarf2_get_die_type): Add dwarf2_per_objfile
6055 parameter.
6056 * dwarf2/read.c (get_die_type_at_offset): Likewise.
6057 (read_namespace_alias): Update.
6058 (lookup_die_type): Update.
6059 (dwarf2_get_die_type): Add dwarf2_per_objfile parameter.
6060 * dwarf2/loc.c (class dwarf_evaluate_loc_desc) <get_base_type>:
6061 Update.
6062 (disassemble_dwarf_expression): Update.
6063
6064 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
6065
6066 * dwarf2/read.h (struct dwarf2_queue_item): Add
6067 dwarf2_per_objfile parameter, assign new parameter.
6068 <per_objfile>: New field.
6069 * dwarf2/read.c (free_one_cached_comp_unit): Add
6070 dwarf2_per_objfile parameter.
6071 (queue_comp_unit): Likewise.
6072 (dw2_do_instantiate_symtab): Update.
6073 (process_psymtab_comp_unit): Update.
6074 (maybe_queue_comp_unit): Add dwarf2_per_objfile parameter.
6075 (process_imported_unit_die): Update.
6076 (queue_and_load_dwo_tu): Update.
6077 (follow_die_offset): Update.
6078 (follow_die_sig_1): Update.
6079
6080 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
6081
6082 * dwarf2/read.h (struct dwarf2_per_cu_data) <objfile>: Remove.
6083 * dwarf2/read.c (dwarf2_compute_name): Pass per_objfile down.
6084 (read_call_site_scope): Assign per_objfile.
6085 (dwarf2_per_cu_data::objfile): Remove.
6086 * gdbtypes.h (struct call_site) <per_objfile>: New member.
6087 * dwarf2/loc.h (dwarf2_evaluate_loc_desc): Add
6088 dwarf2_per_objfile parameter.
6089 * dwarf2/loc.c (dwarf2_evaluate_loc_desc_full): Add
6090 dwarf2_per_objfile parameter.
6091 (dwarf_expr_reg_to_entry_parameter): Add output
6092 dwarf2_per_objfile parameter.
6093 (locexpr_get_frame_base): Update.
6094 (class dwarf_evaluate_loc_desc) <get_tls_address>: Update.
6095 <push_dwarf_reg_entry_value>: Update.
6096 <call_site_to_target_addr>: Update.
6097 (dwarf_entry_parameter_to_value): Add dwarf2_per_objfile
6098 parameter.
6099 (value_of_dwarf_reg_entry): Update.
6100 (rw_pieced_value): Update.
6101 (indirect_synthetic_pointer): Update.
6102 (dwarf2_evaluate_property): Update.
6103 (dwarf2_loc_desc_get_symbol_read_needs): Add dwarf2_per_objfile
6104 parameter.
6105 (locexpr_read_variable): Update.
6106 (locexpr_get_symbol_read_needs): Update.
6107 (loclist_read_variable): Update.
6108
6109 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
6110
6111 * dwarf2/read.h (dwarf2_fetch_die_loc_sect_off,
6112 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
6113 dwarf2_fetch_die_type_sect_off): Add dwarf2_per_objfile
6114 parameter.
6115 * dwarf2/read.c (dwarf2_fetch_die_loc_sect_off,
6116 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
6117 dwarf2_fetch_die_type_sect_off): Add dwarf2_per_objfile
6118 parameter.
6119 * dwarf2/loc.c (indirect_synthetic_pointer, per_cu_dwarf_call,
6120 sect_variable_value): Add dwarf2_per_objfile parameter.
6121 (class dwarf_evaluate_loc_desc) <dwarf_call,
6122 dwarf_variable_value>: Update.
6123 (fetch_const_value_from_synthetic_pointer): Add
6124 dwarf2_per_objfile parameter.
6125 (fetch_const_value_from_synthetic_pointer): Update.
6126 (coerced_pieced_ref): Update.
6127 (class symbol_needs_eval_context) <dwarf_call,
6128 dwarf_variable_value>: Update.
6129 (dwarf2_compile_expr_to_ax): Update.
6130
6131 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
6132
6133 * dwarf2/loc.c (allocate_piece_closure): Add dwarf2_per_objfile
6134 parameter.
6135 (dwarf2_evaluate_loc_desc_full): Update.
6136
6137 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
6138
6139 * dwarf2/read.h (dwarf2_read_addr_index): Add dwarf2_per_objfile
6140 parameter.
6141 * dwarf2/read.c (dwarf2_read_addr_index): Likewise.
6142 * dwarf2/loc.c (decode_debug_loclists_addresses): Add
6143 dwarf2_per_objfile parameter.
6144 (decode_debug_loc_dwo_addresses): Likewise.
6145 (dwarf2_find_location_expression): Update.
6146 (class dwarf_evaluate_loc_desc) <get_addr_index>: Update.
6147 (locexpr_describe_location_piece): Add dwarf2_per_objfile
6148 parameter.
6149 (disassemble_dwarf_expression): Add dwarf2_per_objfile
6150 parameter.
6151 (locexpr_describe_location_1): Likewise.
6152 (locexpr_describe_location): Update.
6153
6154 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
6155
6156 * dwarf2/read.h (struct dwarf2_per_cu_data) <text_offset>:
6157 Remove.
6158 * dwarf2/read.c (dwarf2_per_cu_data::text_offset): Remove.
6159 * dwarf2/loc.c (dwarf2_find_location_expression): Update.
6160 (dwarf2_compile_property_to_c): Update.
6161 (dwarf2_compile_expr_to_ax): Add dwarf2_per_objfile parameter,
6162 use text offset from objfile.
6163 (locexpr_tracepoint_var_ref): Update.
6164 (locexpr_generate_c_location): Update.
6165 (loclist_describe_location): Update.
6166 (loclist_tracepoint_var_ref): Update.
6167 * dwarf2/compile.h (compile_dwarf_bounds_to_c): Add
6168 dwarf2_per_objfile parameter.
6169 * dwarf2/loc2c.c (do_compile_dwarf_expr_to_c): Likewise,
6170 use text offset from objfile.
6171 (compile_dwarf_expr_to_c): Add dwarf2_per_objfile parameter.
6172
6173 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
6174
6175 * dwarf2/expr.h (struct dwarf_expr_context)
6176 <dwarf_expr_context>: Add dwarf2_per_objfile parameter.
6177 <offset>: Remove.
6178 <per_objfile>: New member.
6179 * dwarf2/expr.c (dwarf_expr_context::dwarf_expr_context): Add
6180 dwarf2_per_objfile parameter. Don't set offset, set
6181 per_objfile.
6182 (dwarf_expr_context::execute_stack_op): Use offset from objfile.
6183 * dwarf2/frame.c (dwarf2_frame_find_fde): Return (by parameter)
6184 a dwarf2_per_objfile object instead of an offset.
6185 (class dwarf_expr_executor) <dwarf_expr_executor>: Add
6186 constructor.
6187 (execute_stack_op): Add dwarf2_per_objfile parameter, pass it
6188 to dwarf2_expr_executor constructor. Don't set offset.
6189 (dwarf2_fetch_cfa_info): Update.
6190 (struct dwarf2_frame_cache) <text_offset>: Remove.
6191 <per_objfile>: New field.
6192 (dwarf2_frame_cache): Update.
6193 (dwarf2_frame_prev_register): Update.
6194 * dwarf2/loc.c (class dwarf_evaluate_loc_desc)
6195 <dwarf_evaluate_loc_desc>: Add constructor.
6196 (dwarf2_evaluate_loc_desc_full): Update.
6197 (dwarf2_locexpr_baton_eval): Update.
6198 (class symbol_needs_eval_context) <symbol_needs_eval_context>:
6199 Add constructor.
6200 (dwarf2_loc_desc_get_symbol_read_needs): Update.
6201
6202 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
6203
6204 * dwarf2/read.h (struct dwarf2_per_cu_data) <addr_type,
6205 addr_sized_int_type>: Move to dwarf2_cu.
6206 <int_type>: Move to dwarf2_per_objfile.
6207 (struct dwarf2_per_objfile) <int_type>: Move here.
6208 * dwarf2/read.c (struct dwarf2_cu) <addr_type,
6209 addr_sized_int_type>: Move here.
6210 (read_func_scope): Update.
6211 (read_array_type): Update.
6212 (read_tag_string_type): Update.
6213 (attr_to_dynamic_prop): Update.
6214 (dwarf2_per_cu_data::int_type): Rename to...
6215 (dwarf2_per_objfile::int_type): ... this.
6216 (dwarf2_per_cu_data::addr_sized_int_type): Rename to...
6217 (dwarf2_cu::addr_sized_int_type): ... this.
6218 (read_subrange_type): Update.
6219 (dwarf2_per_cu_data::addr_type): Rename to...
6220 (dwarf2_cu::addr_type): ... this.
6221 (set_die_type): Update.
6222
6223 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
6224
6225 * dwarf2/read.c (queue_and_load_all_dwo_tus): Access per_objfile
6226 data through per_cu->cu.
6227
6228 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
6229
6230 * dwarf2/read.c (lookup_dwo_comp_unit): Change
6231 dwarf2_per_cu_data parameter fo dwarf2_cu.
6232 (lookup_dwo_type_unit): Likewise.
6233 (read_cutu_die_from_dwo): Likewise.
6234 (lookup_dwo_unit): Likewise.
6235 (open_and_init_dwo_file): Likewise.
6236 (lookup_dwo_cutu): Likewise.
6237 (lookup_dwo_comp_unit): Likewise.
6238 (lookup_dwo_type_unit): Likewise.
6239 (cutu_reader::init_tu_and_read_dwo_dies): Update.
6240 (cutu_reader::cutu_reader): Update.
6241
6242 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
6243
6244 * dwarf2/read.c (process_full_comp_unit): Add dwarf2_per_objfile
6245 parameter.
6246 (process_full_type_unit): Likewise.
6247 (process_queue): Update.
6248
6249 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
6250
6251 * dwarf2/read.c (recursively_compute_inclusions): Add
6252 dwarf2_per_objfile parameter.
6253 (compute_compunit_symtab_includes): Likewise.
6254 (process_cu_includes): Update.
6255
6256 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
6257
6258 * dwarf2/read.c (create_partial_symtab): Add dwarf2_per_objfile
6259 parameter.
6260 (create_type_unit_group): Update.
6261 (process_psymtab_comp_unit_reader): Update.
6262 (build_type_psymtabs_reader): Update.
6263
6264 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
6265
6266 * dwarf2/read.c (cutu_reader::keep): Access dwarf2_per_objfile
6267 object through m_this_cu->cu.
6268
6269 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
6270
6271 * dwarf2/read.c (queue_and_load_dwo_tu): Expect a dwarf2_cu as
6272 the info parameter.
6273 (queue_and_load_all_dwo_tus): Pass per_cu->cu.
6274
6275 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
6276
6277 * dwarf2/read.c (class cutu_reader) <cutu_reader>: Add
6278 per_objfile parameter.
6279 (load_full_type_unit): Add per_objfile parameter.
6280 (read_signatured_type): Likewise.
6281 (load_full_comp_unit): Likewise.
6282 (load_cu): Likewise.
6283 (dw2_do_instantiate_symtab): Likewise.
6284 (dw2_get_file_names): Likewise.
6285 (dw2_map_symtabs_matching_filename): Update.
6286 (dw_expand_symtabs_matching_file_matcher): Update.
6287 (dw2_map_symbol_filenames): Update.
6288 (process_psymtab_comp_unit): Add per_objfile parameter.
6289 (build_type_psymtabs_1): Update.
6290 (process_skeletonless_type_unit): Update.
6291 (dwarf2_build_psymtabs_hard): Update.
6292 (load_partial_comp_unit): Add per_objfile parameter.
6293 (scan_partial_symbols): Update.
6294 (load_full_comp_unit): Add per_objfile parameter.
6295 (process_imported_unit_die): Update.
6296 (create_cus_hash_table): Update.
6297 (find_partial_die): Update.
6298 (dwarf2_read_addr_index): Update.
6299 (follow_die_offset): Update.
6300 (dwarf2_fetch_die_loc_sect_off): Update.
6301 (dwarf2_fetch_constant_bytes): Update.
6302 (dwarf2_fetch_die_type_sect_off): Update.
6303 (follow_die_sig_1): Update.
6304 (load_full_type_unit): Add per_objfile parameter.
6305 (read_signatured_type): Likewise.
6306
6307 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
6308
6309 * dwarf2/read.c (lookup_dwo_unit): Use bfd_get_filename instead
6310 of objfile_name.
6311
6312 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
6313
6314 * dwarf2/read.h (struct dwarf2_per_bfd) <obfd>: New member.
6315 (dwarf2_get_dwz_file): Replace parameter with dwarf2_per_bfd.
6316 * dwarf2/read.c (dwarf2_per_bfd::dwarf2_per_bfd): Assign obfd
6317 field.
6318 (dwarf2_get_dwz_file): Replace parameter with dwarf2_per_bfd.
6319 (create_cus_from_index): Update.
6320 (dwarf2_read_gdb_index): Update.
6321 (create_cus_from_debug_names): Update.
6322 (dwarf2_read_debug_names): Update.
6323 (get_abbrev_section_for_cu): Update.
6324 (create_all_comp_units): Update.
6325 (read_attribute_value): Update.
6326 (get_debug_line_section): Update.
6327 * dwarf2/index-cache.c (index_cache::store): Update.
6328 * dwarf2/index-write.c (save_gdb_index_command): Update.
6329 * dwarf2/macro.c (dwarf_decode_macro_bytes): Update.
6330
6331 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
6332
6333 * dwarf2/read.h (struct dwarf2_per_cu_data) <per_bfd>: New
6334 member.
6335 * dwarf2/read.c (dwarf2_per_bfd::allocate_per_cu): Initialize
6336 dwarf2_per_cu_data::per_bfd.
6337 (dwarf2_per_bfd::allocate_signatured_type): Likewise.
6338 (create_type_unit_group): Likewise.
6339 (queue_comp_unit): Remove reference to
6340 per_cu->dwarf2_per_objfile.
6341 (maybe_queue_comp_unit): Likewise.
6342 (fill_in_sig_entry_from_dwo_entry): Assign new field.
6343 (create_cus_hash_table): Assign new field.
6344
6345 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
6346
6347 * dwarf2/read.c: Replace
6348 dwarf2_cu->per_cu->dwarf2_per_objfile references with
6349 dwarf2_cu->per_objfile throughout.
6350
6351 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
6352
6353 * dwarf2/read.c (dw2_do_instantiate_symtab): Add per_objfile
6354 parameter, don't use per_cu->dwarf2_per_objfile.
6355 (dw2_instantiate_symtab): Likewise.
6356 (dw2_find_last_source_symtab): Update.
6357 (dw2_map_expand_apply): Update.
6358 (dw2_lookup_symbol): Update.
6359 (dw2_expand_symtabs_for_function): Update.
6360 (dw2_expand_all_symtabs): Update.
6361 (dw2_expand_symtabs_with_fullname): Update.
6362 (dw2_expand_symtabs_matching_one): Add per_objfile parameter,
6363 don't use per_cu->dwarf2_per_objfile.
6364 (dw2_expand_marked_cus): Update.
6365 (dw2_find_pc_sect_compunit_symtab): Update.
6366 (dw2_debug_names_lookup_symbol): Update.
6367 (dw2_debug_names_expand_symtabs_for_function): Update.
6368 (dw2_debug_names_map_matching_symbols): Update.
6369 (dwarf2_psymtab::expand_psymtab): Update.
6370
6371 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
6372
6373 * dwarf2/read.c (struct dwarf2_cu) <dwarf2_cu>: Add parameter.
6374 <per_objfile>: New member.
6375 (class cutu_reader) <init_tu_and_read_dwo_dies>: Add parameter.
6376 (cutu_reader::init_tu_and_read_dwo_dies): Add parameter, update
6377 call to dwarf2_cu.
6378 (cutu_reader::cutu_reader): Update.
6379 (dwarf2_cu::dwarf2_cu): Add parameter, initialize per_objfile.
6380
6381 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
6382
6383 * dwarf2/read.h (struct dwarf2_per_bfd) <die_type_hash>: Move to
6384 struct dwarf2_per_objfile.
6385 (struct dwarf2_per_objfile) <die_type_hash>: Move from struct
6386 dwarf2_per_bfd.
6387 * dwarf2/read.c (set_die_type): Update.
6388 (get_die_type_at_offset): Update.
6389
6390 2020-05-27 Tom Tromey <tom@tromey.com>
6391 Simon Marchi <simon.marchi@efficios.com>
6392
6393 * dwarf2/read.h (struct dwarf2_per_bfd) <num_psymtabs>: New
6394 method.
6395 (struct dwarf2_per_objfile) <resize_symtabs, symtab_set_p,
6396 get_symtab, set_symtab>: New methods.
6397 <m_symtabs>: New field.
6398 (struct dwarf2_psymtab): Derive from partial_symtab.
6399 <readin_p, get_compunit_symtab>: Declare methods.
6400 * dwarf2/read.c (dwarf2_per_objfile::symtab_set_p,
6401 dwarf2_per_objfile::get_symtab, dwarf2_per_objfile::set_symtab):
6402 New methods.
6403 (struct dwarf2_per_cu_quick_data) <compunit_symtab>: Remove.
6404 (dw2_do_instantiate_symtab, dw2_instantiate_symtab)
6405 (dw2_map_expand_apply, dw2_map_symtabs_matching_filename)
6406 (dw2_symtab_iter_next, dw2_print_stats)
6407 (dw2_expand_symtabs_with_fullname)
6408 (dw2_expand_symtabs_matching_one)
6409 (dw_expand_symtabs_matching_file_matcher)
6410 (dw2_find_pc_sect_compunit_symtab, dw2_map_symbol_filenames)
6411 (dw2_debug_names_iterator::next)
6412 (dw2_debug_names_map_matching_symbols)
6413 (fill_in_sig_entry_from_dwo_entry, dwarf2_psymtab::read_symtab)
6414 (process_queue, dwarf2_psymtab::expand_psymtab): Update.
6415 (dwarf2_psymtab::readin_p, dwarf2_psymtab::get_compunit_symtab):
6416 New methods.
6417 (get_compunit_symtab, process_full_comp_unit)
6418 (process_full_type_unit): Update.
6419 (dwarf2_build_psymtabs, dwarf2_initialize_objfile, add_type_unit): Call
6420
6421 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
6422
6423 * dwarf2/read.h (dwarf2_per_objfile): Rename to dwarf2_per_bfd,
6424 then introduce a new dwarf2_per_objfile type.
6425 <read_line_string>: Move to the new dwarf2_per_objfile type.
6426 <objfile>: Likewise.
6427 (dwarf2_per_bfd): Rename dwarf2_per_objfile to this.
6428 * dwarf2/read.c: Replace references to dwarf2_per_objfile with
6429 dwarf2_per_objfile->per_bfd.
6430 (dwarf2_per_objfile::dwarf2_per_objfile): Rename to...
6431 (dwarf2_per_bfd::dwarf2_per_bfd): ... this.
6432 (dwarf2_per_objfile::free_cached_comp_units): Rename to...
6433 (dwarf2_per_bfd::free_cached_comp_units): ... this.
6434 (dwarf2_has_info): Allocate dwarf2_per_bfd.
6435 (dwarf2_per_objfile::locate_sections): Rename to...
6436 (dwarf2_per_bfd::locate_sections): ... this.
6437 (dwarf2_per_objfile::get_cutu): Rename to...
6438 (dwarf2_per_bfd::get_cutu): ... this.
6439 (dwarf2_per_objfile::get_cu): Rename to...
6440 (dwarf2_per_bfd::get_cu): ... this.
6441 (dwarf2_per_objfile::get_tu): Rename to...
6442 (dwarf2_per_bfd::get_tu): ... this.
6443 (dwarf2_per_objfile::allocate_per_cu): Rename to...
6444 (dwarf2_per_bfd::allocate_per_cu): ... this.
6445 (dwarf2_per_objfile::allocate_signatured_type): Rename to...
6446 (dwarf2_per_bfd::allocate_signatured_type): ... this.
6447 (get_gdb_index_contents_ftype): Change parameter from
6448 dwarf2_per_objfile to dwarf2_per_bfd.
6449 * dwarf2/macro.c, dwarf2/index-write.c: Replace references to
6450 dwarf2_per_objfile with dwarf2_per_objfile->per_bfd.
6451
6452 2020-05-27 Tom Tromey <tom@tromey.com>
6453 Simon Marchi <simon.marchi@efficios.com>
6454
6455 * dwarf2/loc.c (struct piece_closure) <per_objfile>: New member.
6456 (allocate_piece_closure): Set "per_objfile" member.
6457 (dwarf2_find_location_expression, dwarf2_locexpr_baton_eval)
6458 (locexpr_describe_location, loclist_describe_location): Use new
6459 member.
6460 * dwarf2/read.c (read_call_site_scope)
6461 (mark_common_block_symbol_computed, attr_to_dynamic_prop)
6462 (dwarf2_const_value_attr, dwarf2_fetch_die_loc_sect_off)
6463 (fill_in_loclist_baton, dwarf2_symbol_mark_computed,
6464 handle_data_member_location): Set per_objfile member.
6465 * dwarf2/loc.h (struct dwarf2_locexpr_baton) <per_objfile>: New
6466 member.
6467 (struct dwarf2_loclist_baton) <per_objfile>: New member.
6468
6469 2020-05-27 Tom Tromey <tom@tromey.com>
6470
6471 * dwarf2/read.h (struct dwarf2_per_objfile) <allocate_per_cu,
6472 allocate_signatured_type>: Declare new methods.
6473 <m_num_psymtabs>: New member.
6474 (struct dwarf2_per_cu_data) <index>: New member.
6475 * dwarf2/read.c (dwarf2_per_objfile::allocate_per_cu)
6476 (dwarf2_per_objfile::allocate_signatured_type): New methods.
6477 (create_cu_from_index_list): Use allocate_per_cu.
6478 (create_signatured_type_table_from_index)
6479 (create_signatured_type_table_from_debug_names)
6480 (create_debug_type_hash_table, add_type_unit)
6481 (read_comp_units_from_section): Use allocate_signatured_type.
6482
6483 2020-05-27 Tom Tromey <tom@tromey.com>
6484
6485 * psymtab.c (partial_map_expand_apply)
6486 (psym_find_pc_sect_compunit_symtab, psym_lookup_symbol)
6487 (psym_lookup_global_symbol_language)
6488 (psymtab_to_symtab, psym_find_last_source_symtab, dump_psymtab)
6489 (psym_print_stats, psym_expand_symtabs_for_function)
6490 (psym_map_symbol_filenames, psym_map_matching_symbols)
6491 (psym_expand_symtabs_matching)
6492 (partial_symtab::read_dependencies, maintenance_info_psymtabs)
6493 (maintenance_check_psymtabs): Update.
6494 * psympriv.h (struct partial_symtab) <readin_p,
6495 get_compunit_symtab>: Add objfile parameter.
6496 (struct standard_psymtab) <readin_p, get_compunit_symtab>:
6497 Likewise.
6498 * dwarf2/read.c (struct dwarf2_include_psymtab) <readin_p,
6499 get_compunit_symtab>: Likewise.
6500 (dwarf2_psymtab::expand_psymtab): Pass objfile argument.
6501
6502 2020-05-27 Tom Tromey <tom@tromey.com>
6503
6504 * dwarf2/read.h (struct dwarf2_per_objfile) <obstack>: New
6505 member.
6506 * dwarf2/read.c (delete_file_name_entry): Fix comment.
6507 (create_cu_from_index_list)
6508 (create_signatured_type_table_from_index)
6509 (create_signatured_type_table_from_debug_names)
6510 (dw2_get_file_names_reader, dwarf2_initialize_objfile)
6511 (dwarf2_create_include_psymtab)
6512 (create_debug_type_hash_table, add_type_unit)
6513 (create_type_unit_group, read_comp_units_from_section)
6514 (dwarf2_compute_name, create_cus_hash_table)
6515 (create_dwp_hash_table, create_dwo_unit_in_dwp_v1)
6516 (create_dwo_unit_in_dwp_v2, open_and_init_dwp_file): Use new
6517 obstack.
6518 (dw2_get_real_path): Likewise. Change argument to
6519 dwarf2_per_objfile.
6520
6521 2020-05-27 Luis Machado <luis.machado@linaro.org>
6522
6523 PR tdep/26000
6524 * arm-tdep.c (thumb_analyze_prologue): Fix instruction matching
6525 for ldrd (immediate).
6526
6527 2020-05-26 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6528
6529 * command.h: Add comment giving the name of class_tui.
6530 * cli/cli-cmds.c (_initialize_cli_cmds): If TUI defined,
6531 create the fake command for the help for class_tui.
6532
6533 2020-05-26 Tom Tromey <tromey@adacore.com>
6534
6535 * ada-lang.c (ada_print_array_index): Change type. Call val_atr.
6536 (ada_value_ptr_subscript): Don't call pos_atr on the lower bound.
6537 (val_atr): New function.
6538 (value_val_atr): Use it.
6539 * ada-valprint.c (print_optional_low_bound): Change low bound
6540 handling for enums.
6541 (val_print_packed_array_elements): Don't call discrete_position.
6542 * gdbtypes.c (get_discrete_bounds) <TYPE_CODE_RANGE>: Call
6543 discrete_position for enum types.
6544 * language.c (default_print_array_index): Change type.
6545 * language.h (struct language_defn) <la_print_array_index>: Add
6546 index_type parameter, change type of index_value.
6547 (LA_PRINT_ARRAY_INDEX): Add index_type parameter.
6548 (default_print_array_index): Update.
6549 * valprint.c (maybe_print_array_index): Don't call
6550 value_from_longest. Update.
6551 (value_print_array_elements): Don't call discrete_position.
6552
6553 2020-05-26 Tom Tromey <tromey@adacore.com>
6554
6555 * ada-lang.c (value_val_atr): Handle TYPE_CODE_RANGE.
6556 * gdbtypes.c (discrete_position): Handle TYPE_CODE_RANGE.
6557
6558 2020-05-25 Cristiano De Alti <cristiano_dealti@hotmail.com>
6559
6560 PR gdb/13519
6561 * avr-tdep.c (avr_integer_to_address): Return data or code
6562 address accordingly to the second 'type' argument of the
6563 function.
6564
6565 2020-05-25 Michael Weghorn <m.weghorn@posteo.de>
6566
6567 * infcmd.c, inferior.h: (construct_inferior_arguments):
6568 Moved function from here to gdbsupport/common-inferior.{h,cc}
6569
6570 2020-05-23 Tom Tromey <tom@tromey.com>
6571
6572 Revert commit eca1f90c:
6573 * NEWS: Remove entry for completion styling.
6574 * completer.c (_rl_completion_prefix_display_length): Move
6575 declaration later.
6576 (gdb_fnprint): Revert.
6577 (gdb_display_match_list_1): Likewise.
6578 * cli/cli-style.c (completion_prefix_style)
6579 (completion_difference_style, completion_suffix_style): Remove.
6580 (_initialize_cli_style): Revert.
6581 * cli/cli-style.h (completion_prefix_style)
6582 (completion_difference_style, completion_suffix_style): Don't
6583 declare.
6584
6585 2020-05-24 Pedro Alves <palves@redhat.com>
6586
6587 * symtab.c (completion_list_add_name): Return boolean indication
6588 of whether the symbol matched.
6589 (completion_list_add_symbol): Don't try to remove C++ aliases if
6590 the symbol didn't match in the first place.
6591 * symtab.h (completion_list_add_name): Return bool.
6592
6593 2020-05-23 Simon Marchi <simon.marchi@polymtl.ca>
6594
6595 * gdbtypes.h (TYPE_FIELD): Remove. Replace all uses with
6596 type::field.
6597
6598 2020-05-23 Joel Brobecker <brobecker@adacore.com>
6599
6600 GDB 9.2 released.
6601
6602 2020-05-23 Tom Tromey <tom@tromey.com>
6603
6604 * NEWS: Add entry for completion styling.
6605 * completer.c (_rl_completion_prefix_display_length): Move
6606 declaration earlier.
6607 (gdb_fnprint): Use completion_style.
6608 (gdb_display_match_list_1): Likewise.
6609 * cli/cli-style.c (completion_prefix_style)
6610 (completion_difference_style, completion_suffix_style): New
6611 globals.
6612 (_initialize_cli_style): Register new globals.
6613 * cli/cli-style.h (completion_prefix_style)
6614 (completion_difference_style, completion_suffix_style): Declare.
6615
6616 2020-05-23 Pedro Alves <palves@redhat.com>
6617
6618 * utils.c: Include "gdbsupport/gdb-safe-ctype.h".
6619 (parse_escape): Use ISDIGIT instead of isdigit.
6620 (puts_debug): Use gdb_isprint instead of isprint.
6621 (fprintf_symbol_filtered): Use ISALNUM instead of isalnum.
6622 (cp_skip_operator_token, skip_ws, strncmp_iw_with_mode): Use
6623 ISSPACE instead of isspace.
6624 (strncmp_iw_with_mode): Use TOLOWER instead of tolower and ISSPACE
6625 instead of isspace.
6626 (strcmp_iw_ordered): Use ISSPACE instead of isspace.
6627 (string_to_core_addr): Use TOLOWER instead of tolower, ISXDIGIT
6628 instead of isxdigit and ISDIGIT instead of isdigit.
6629
6630 2020-05-22 Simon Marchi <simon.marchi@efficios.com>
6631
6632 * gdbtypes.h (struct type) <field>: New method.
6633 (TYPE_FIELDS): Remove, replace all uses with either type::fields
6634 or type::field.
6635
6636 2020-05-22 Simon Marchi <simon.marchi@efficios.com>
6637
6638 * gdbtypes.h (struct type) <fields, set_fields>: New methods.
6639 (TYPE_FIELDS): Use type::fields. Change all call sites that
6640 modify the propery to use type::set_fields instead.
6641
6642 2020-05-22 Simon Marchi <simon.marchi@efficios.com>
6643
6644 * gdbtypes.h (TYPE_NFIELDS): Remove. Change all cal sites to use
6645 type::num_fields instead.
6646
6647 2020-05-22 Simon Marchi <simon.marchi@efficios.com>
6648
6649 * gdbtypes.h (struct type) <num_fields, set_num_fields>: New
6650 methods.
6651 (TYPE_NFIELDS): Use type::num_fields. Change all call sites
6652 that modify the number of fields to use type::set_num_fields
6653 instead.
6654
6655 2020-05-22 Tom Tromey <tromey@adacore.com>
6656
6657 * compile/compile-object-load.h (munmap_list_free): Don't
6658 declare.
6659
6660 2020-05-22 Andrew Burgess <andrew.burgess@embecosm.com>
6661
6662 * annotate.c (annotate_source_line): Update return type, add call
6663 to update current symtab and line.
6664 * annotate.h (annotate_source_line): Update return type, and
6665 extend header comment.
6666 * source.c (info_line_command): Check annotation_level before
6667 calling annotate_source_line.
6668 * stack.c (print_frame_info): If calling annotate_source_line
6669 returns true, then don't print any other source line information.
6670
6671 2020-05-21 Simon Marchi <simon.marchi@efficios.com>
6672
6673 * lm32-tdep.c (lm32_register_reggroup_p): Fix condition.
6674
6675 2020-05-21 Simon Marchi <simon.marchi@efficios.com>
6676
6677 * coffread.c (patch_type): Remove NULL check before xfree.
6678 * corefile.c (set_gnutarget): Likewise.
6679 * cp-abi.c (set_cp_abi_as_auto_default): Likewise.
6680 * exec.c (build_section_table): Likewise.
6681 * remote.c (remote_target::pass_signals): Likewise.
6682 * utils.c (n_spaces): Likewise.
6683 * cli/cli-script.c (document_command): Likewise.
6684 * i386-windows-tdep.c (core_process_module_section): Likewise.
6685 * linux-fork.c (struct fork_info) <~fork_info>: Likewise.
6686
6687 2020-05-20 Simon Marchi <simon.marchi@efficios.com>
6688
6689 * symfile.c (reread_symbols): Clear objfile's section_offsets
6690 vector and section indices, re-compute them by calling
6691 sym_offsets.
6692
6693 2020-05-20 Tom Tromey <tromey@adacore.com>
6694
6695 * ada-lang.c (bound_name, MAX_ADA_DIMENS): Remove.
6696 (desc_one_bound, desc_index_type): Compute field name.
6697
6698 2020-05-20 Tom de Vries <tdevries@suse.de>
6699
6700 PR symtab/25833
6701 * dwarf2/read.c (dw2_map_matching_symbols): Handle .gdb_index.
6702
6703 2020-05-20 Alan Modra <amodra@gmail.com>
6704
6705 PR 25993
6706 * solib-darwin.c (darwin_bfd_open): Don't strdup pathname for
6707 bfd_set_filename.
6708 * solib-aix.c (solib_aix_bfd_open): Use std::string for name
6709 passed to bfd_set_filename.
6710 * symfile-mem.c (add_vsyscall_page): Likewise for string
6711 passed to symbol_file_add_from_memory.
6712 (symbol_file_add_from_memory): Make name param a const char* and
6713 don't strdup.
6714
6715 2020-05-20 Alan Modra <amodra@gmail.com>
6716
6717 * coff-pe-read.c (read_pe_exported_syms): Use bfd_get_filename
6718 rather than accessing bfd->filename directly.
6719 * dtrace-probe.c (dtrace_static_probe_ops::get_probes): Likewise,
6720 and use bfd_section_name.
6721 * dwarf2/frame.c (decode_frame_entry): Likewise.
6722 * exec.c (exec_set_section_address): Likewise.
6723 * solib-aix.c (solib_aix_bfd_open): Likewise.
6724 * stap-probe.c (get_stap_base_address): Likewise.
6725 * symfile.c (reread_symbols): Likewise.
6726
6727 2020-05-19 Tom Tromey <tromey@adacore.com>
6728
6729 * sparc64-tdep.c (adi_tag_fd): Update call to target_fileio_open.
6730
6731 2020-05-19 Simon Marchi <simon.marchi@efficios.com>
6732
6733 * dwarf2/read.c (quirk_rust_enum): Allocate enough fields.
6734
6735 2020-05-19 Pedro Alves <palves@redhat.com>
6736
6737 * NEWS (set exec-file-mismatch): Adjust entry.
6738 * exec.c: Include "build-id.h".
6739 (validate_exec_file): Try to match build IDs instead of filenames.
6740 * gdb_bfd.c (struct gdb_bfd_open_closure): New.
6741 (gdb_bfd_iovec_fileio_open): Adjust to use gdb_bfd_open_closure
6742 and pass down 'warn_if_slow'.
6743 (gdb_bfd_open): Add 'warn_if_slow' parameter. Use
6744 gdb_bfd_open_closure to pass it down.
6745 * gdb_bfd.h (gdb_bfd_open): Add 'warn_if_slow' parameter.
6746
6747 2020-05-19 Pedro Alves <palves@redhat.com>
6748
6749 * gdb_bfd.c (gdb_bfd_iovec_fileio_open): Adjust.
6750 * target.c (target_fileio_open_1): Rename to target_fileio_open
6751 and make extern. Use bool.
6752 (target_fileio_open, target_fileio_open_warn_if_slow): Delete.
6753 (target_fileio_read_alloc_1): Adjust.
6754 * target.h (target_fileio_open): Add 'warn_if_slow' parameter.
6755 (target_fileio_open_warn_if_slow): Delete declaration.
6756
6757 2020-05-19 Pedro Alves <palves@redhat.com>
6758
6759 * gdb_bfd.h: (gdb_bfd_open): Default to 'fd' parameter to -1.
6760 Adjust all callers.
6761
6762 2020-05-19 Yoshinori Sato <ysato@users.sourceforge.jp>
6763
6764 * h8300-tdep.c (h8300_is_argument_spill): Change how we check
6765 whether disp is negative.
6766
6767 2020-05-19 Simon Marchi <simon.marchi@efficios.com>
6768
6769 * symfile.h (struct symfile_segment_data)
6770 <~symfile_segment_data>: Remove.
6771 <segment_info>: Change to std::vector.
6772 * symfile.c (default_symfile_segments): Update.
6773 * elfread.c (elf_symfile_segments): Update.
6774
6775 2020-05-19 Simon Marchi <simon.marchi@efficios.com>
6776
6777 * symfile.h (struct symfile_segment_data) <struct segment>: New.
6778 <segments>: New.
6779 <segment_bases, segment_sizes>: Remove.
6780 * symfile.c (default_symfile_segments): Update.
6781 * elfread.c (elf_symfile_segments): Update.
6782 * remote.c (remote_target::get_offsets): Update.
6783 * solib-target.c (solib_target_relocate_section_addresses):
6784 Update.
6785
6786 2020-05-19 Simon Marchi <simon.marchi@efficios.com>
6787
6788 * symfile.h (struct symfile_segment_data): Initialize fields.
6789 <~symfile_segment_data>: Add.
6790 (symfile_segment_data_up): New.
6791 (struct sym_fns) <sym_segments>: Return a
6792 symfile_segment_data_up.
6793 (default_symfile_segments): Return a symfile_segment_data_up.
6794 (free_symfile_segment_data): Remove.
6795 (get_symfile_segment_data): Return a symfile_segment_data_up.
6796 * symfile.c (default_symfile_segments): Likewise.
6797 (get_symfile_segment_data): Likewise.
6798 (free_symfile_segment_data): Remove.
6799 (symfile_find_segment_sections): Update.
6800 * elfread.c (elf_symfile_segments): Return a
6801 symfile_segment_data_up.
6802 * remote.c (remote_target::get_offsets): Update.
6803 * solib-target.c (solib_target_relocate_section_addresses):
6804 Update.
6805 * symfile-debug.c (debug_sym_segments): Return a
6806 symfile_segment_data_up.
6807
6808 2020-05-18 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
6809
6810 PR build/25981
6811 * i386-sol2-nat.c [PR_MODEL_NATIVE != PR_MODEL_LP64] (regmap):
6812 Hardcode register numbers.
6813
6814 PR build/25981
6815 * procfs.c [(__i386__ || __x86_64__) && sun] (proc_get_LDT_entry,
6816 procfs_find_LDT_entry): Remove.
6817 * procfs.h [(__i386__ || __x86_64__) && sun] (struct ssd,
6818 procfs_find_LDT_entry): Remove.
6819 * sol-thread.c [(__i386__ || __x86_64__) && sun] (ps_lgetLDT):
6820 Remove.
6821
6822 2020-05-17 Pedro Alves <palves@redhat.com>
6823 Andrew Burgess <andrew.burgess@embecosm.com>
6824 Keno Fischer <keno@juliacomputing.com>
6825
6826 PR gdb/25741
6827 * breakpoint.c (build_target_condition_list): Update comments.
6828 (build_target_command_list): Update comments and skip matching
6829 locations.
6830 (insert_bp_location): Move "set breakpoint auto-hw on" handling to
6831 a separate function. Simplify "set breakpoint auto-hw off"
6832 handling.
6833 (insert_breakpoints): Update comment.
6834 (tracepoint_locations_match): New parameter. For breakpoints,
6835 compare location types too, if the caller wants to.
6836 (handle_automatic_hardware_breakpoints): New functions.
6837 (bp_location_is_less_than): Also sort by location type and
6838 hardware breakpoint length.
6839 (update_global_location_list): Handle "set breakpoint auto-hw on"
6840 here.
6841 (update_breakpoint_locations): Ask breakpoint_locations_match to
6842 ignore location types.
6843
6844 2020-05-16 Simon Marchi <simon.marchi@efficios.com>
6845
6846 * gdbtypes.h (TYPE_NAME): Remove. Change all cal sites to use
6847 type::name instead.
6848
6849 2020-05-16 Simon Marchi <simon.marchi@efficios.com>
6850
6851 * gdbtypes.h (struct type) <name, set_name>: New methods.
6852 (TYPE_CODE): Use type::name. Change all call sites used to set
6853 the name to use type::set_name instead.
6854
6855 2020-05-16 Tom Tromey <tom@tromey.com>
6856
6857 * top.c (quit_force): Update.
6858 * infrun.c (handle_no_resumed): Update.
6859 * top.h (all_uis): New function.
6860 (ALL_UIS): Remove.
6861
6862 2020-05-16 Simon Marchi <simon.marchi@efficios.com>
6863
6864 * mips-linux-tdep.c (mips_linux_in_dynsym_stub): Fix condition.
6865
6866 2020-05-16 Pedro Alves <palves@redhat.com>
6867
6868 * ia64-linux-nat.c
6869 (ia64_linux_nat_target) <enable_watchpoints_in_psr(ptid_t)>:
6870 Declare method.
6871 (enable_watchpoints_in_psr): Now a method of ia64_linux_nat_target.
6872
6873 2020-05-15 Simon Marchi <simon.marchi@efficios.com>
6874
6875 * sparc64-tdep.c (adi_stat_t): Remove typedef (leaving struct).
6876 (sparc64_adi_info): Likewise.
6877
6878 2020-05-15 Tom Tromey <tom@tromey.com>
6879
6880 * symtab.c (lookup_language_this, lookup_symbol_aux): Use
6881 block_objfile.
6882 (lookup_objfile_from_block): Remove.
6883 (lookup_symbol_in_block, lookup_symbol_in_static_block)
6884 (lookup_global_symbol): Use block_objfile.
6885 * symtab.h (lookup_objfile_from_block): Don't declare.
6886 * printcmd.c (clear_dangling_display_expressions): Use
6887 block_objfile.
6888 * parse.c (operator_check_standard): Use block_objfile.
6889
6890 2020-05-15 Tom Tromey <tom@tromey.com>
6891
6892 * language.c (language_alloc_type_symbol): Set
6893 SYMBOL_SECTION.
6894 * symtab.c (initialize_objfile_symbol): Remove.
6895 (allocate_symbol): Remove.
6896 (allocate_template_symbol): Remove.
6897 * dwarf2/read.c (fixup_go_packaging): Use "new".
6898 (new_symbol): Use "new".
6899 (read_variable): Don't call initialize_objfile_symbol. Use
6900 "new".
6901 (read_func_scope): Use "new".
6902 * xcoffread.c (process_xcoff_symbol): Don't call
6903 initialize_objfile_symbol.
6904 (SYMBOL_DUP): Remove.
6905 * coffread.c (process_coff_symbol, coff_read_enum_type): Use
6906 "new".
6907 * symtab.h (allocate_symbol, initialize_objfile_symbol)
6908 (allocate_template_symbol): Don't declare.
6909 (struct symbol): Add copy constructor. Change defaults.
6910 * jit.c (finalize_symtab): Use "new".
6911 * ctfread.c (ctf_add_enum_member_cb, new_symbol, ctf_add_var_cb):
6912 Use "new".
6913 * stabsread.c (patch_block_stabs, define_symbol, read_enum_type)
6914 (common_block_end): Use "new".
6915 * mdebugread.c (parse_symbol): Use "new".
6916 (new_symbol): Likewise.
6917
6918 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6919
6920 * NEWS: Mention changes to help and apropos.
6921
6922 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6923
6924 * command.h (enum command_class): Improve comments, document
6925 that class_alias is for user-defined aliases, give the class
6926 name for each class, remove unused class_xdb.
6927 * cli/cli-decode.c (add_com_alias): Document THECLASS intended usage.
6928 * breakpoint.c (_initialize_breakpoint): Replace class_alias
6929 by a precise class.
6930 * infcmd.c (_initialize_infcmd): Likewise.
6931 * reverse.c (_initialize_reverse): Likewise.
6932 * stack.c (_initialize_stack): Likewise.
6933 * symfile.c (_initialize_symfile): Likewise.
6934 * tracepoint.c (_initialize_tracepoint): Likewise.
6935
6936 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6937
6938 * cli/cli-decode.c (apropos_cmd): Produce output for aliases
6939 when their aliased command is traversed.
6940 (help_cmd): Add fput_command_names_styled call to
6941 output command name and aliases when command has an alias.
6942
6943 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6944
6945 * cli/cli-decode.h (help_cmd_list): Remove declaration.
6946 * cli/cli-decode.c (help_cmd_list): Declare as static,
6947 remove prefix argument, use bool for recurse arg, rework to show the aliases of
6948 a command together with the command.
6949 (fput_command_name_styled, fput_command_names_styled): New functions.
6950 (print_help_for_command): Remove prefix arg, use bool for recurse arg, use
6951 fput_command_name_styled.
6952 (help_list, help_all): Update callers to remove prefix arg and use bool recurse.
6953 * cli/cli-cmds.c (_initialize_cli_cmds): Update alias_command doc.
6954
6955 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6956
6957 * cli/cli-setshow.h (cmd_show_list): Remove prefix argument.
6958 * cli/cli-decode.c (do_show_prefix_cmd): Likewise.
6959 * command.h (cmd_show_list): Likewise.
6960 * dwarf2/index-cache.c (show_index_cache_command): Likewise.
6961 * cli/cli-setshow.c (cmd_show_list): Use the prefix to produce the output. Skip aliases.
6962
6963 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6964
6965 * unittests/command-def-selftests.c (traverse_command_structure):
6966 Verify all commands of a list have the same prefix command and
6967 that only the top cmdlist commands have a null prefix.
6968
6969 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6970
6971 * cli/cli-decode.c (lookup_cmd_for_prefix): Return the aliased command
6972 as prefix, not one of its aliases.
6973 (set_cmd_prefix): Remove.
6974 (do_add_cmd): Centralize the setting of the prefix of a command, when
6975 command is defined after its full chain of prefix commands.
6976 (add_alias_cmd): Remove call to set_cmd_prefix, as do_add_cmd does it.
6977 (add_setshow_cmd_full): Likewise.
6978 (update_prefix_field_of_prefixed_commands): New function.
6979 (add_prefix_cmd): Replace non working call to set_cmd_prefix by
6980 update_prefix_field_of_prefixed_commands.
6981 * gdb/remote-fileio.c (initialize_remote_fileio): Use the real
6982 addresses of remote_set_cmdlist and remote_show_cmdlist given
6983 as argument, not the address of an argument.
6984 * gdb/remote-fileio.h (initialize_remote_fileio): Likewise.
6985 * gdb/remote.c (_initialize_remote): Likewise.
6986
6987 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6988
6989 * cli/cli-cmds.c (alias_command): Check for an existing alias
6990 using lookup_cmd_composition, as valid_command_p is too strict
6991 and forbids aliases that are the prefix of an existing alias
6992 or command.
6993 * cli/cli-decode.c (lookup_cmd_composition): Ensure a prefix
6994 command is properly recognised as a valid command.
6995
6996 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6997
6998 * unittests/help-doc-selftests.c: Rename to
6999 unittests/command-def-selftests.c
7000 * unittests/command-def-selftests.c (help_doc_tests): Update some
7001 comments.
7002 (command_structure_tests, traverse_command_structure): New namespace
7003 and function.
7004 (command_structure_invariants_tests): New function.
7005 (_initialize_command_def_selftests) Renamed from
7006 _initialize_help_doc_selftests, register command_structure_invariants
7007 selftest.
7008
7009 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
7010
7011 * cli/cli-cmds.c (_initialize_cli_cmds): Define 'info set' as
7012 an alias of 'show'.
7013
7014 2020-05-15 Joel Brobecker <brobecker@adacore.com>
7015
7016 * ada-lang.h: (ada_is_gnat_encoded_fixed_point_type): Renames
7017 ada_is_fixed_point_type. Update all callers.
7018 (gnat_encoded_fixed_point_delta): Renames ada_delta. Update
7019 all callers.
7020 * ada-lang.c (gnat_encoded_fixed_type_info): Renames fixed_type_info.
7021 Update all callers.
7022 * ada-typeprint.c (print_gnat_encoded_fixed_point_type): Renames
7023 print_fixed_point_type. Update all callers.
7024 * ada-valprint.c (ada_value_print_num): Replace call to
7025 ada_is_fixed_point_type by ada_is_gnat_encoded_fixed_point_type.
7026
7027 2020-05-14 Kevin Buettner <kevinb@redhat.com>
7028
7029 * nat/linux-btrace.c (btrace_this_cpu): Add check for AMD
7030 processors.
7031 (cpu_supports_bts): Add CV_AMD case.
7032
7033 2020-05-14 Laurent Morichetti <Laurent.Morichetti@amd.com>
7034 Simon Marchi <simon.marchi@efficios.com>
7035
7036 * infrun.c (stop_all_threads): Collect multiple wait events at
7037 each pass.
7038
7039 2020-05-14 Simon Marchi <simon.marchi@efficios.com>
7040
7041 * gdbtypes.h (TYPE_CODE): Remove. Change all call sites to use
7042 type::code instead.
7043
7044 2020-05-14 Simon Marchi <simon.marchi@efficios.com>
7045
7046 * gdbtypes.h (struct type) <code, set_code>: New methods.
7047 (TYPE_CODE): Use type::code. Change all call sites used to set
7048 the code to use type::set_code instead.
7049
7050 2020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
7051 Tom de Vries <tdevries@suse.de>
7052 Pedro Alves <palves@redhat.com>
7053
7054 PR threads/25478
7055 * infrun.c (stop_all_threads): Do NOT ignore
7056 TARGET_WAITKIND_NO_RESUMED, TARGET_WAITKIND_THREAD_EXITED,
7057 TARGET_WAITKIND_EXITED, TARGET_WAITKIND_SIGNALLED wait statuses
7058 received.
7059 (handle_no_resumed): Remove code handling a live inferior with no
7060 threads.
7061 * remote.c (has_single_non_exited_thread): New.
7062 (remote_target::update_thread_list): Do not delete a thread if is
7063 the last thread of the process.
7064 * thread.c (thread_select): Call delete_exited_threads instead of
7065 prune_threads.
7066
7067 2020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
7068
7069 * infrun.c (stop_all_threads): Enable/disable thread events of all
7070 targets. Move a debug message denoting the end of the function
7071 into the SCOPED_EXIT block.
7072
7073 2020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
7074
7075 * process-stratum-target.h: Include <set>.
7076 (all_non_exited_process_targets, switch_to_target_no_thread): New
7077 function declarations.
7078 * process-stratum-target.c (all_non_exited_process_targets)
7079 (switch_to_target_no_thread): New function implementations.
7080
7081 2020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
7082
7083 * infrun.c (handle_inferior_event): Extract out a piece of code
7084 into...
7085 (mark_non_executing_threads): ...this new function.
7086
7087 2020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
7088
7089 * infrun.c (resume_1): Move a 'regcache_read_pc' call down to first
7090 use.
7091
7092 2020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
7093
7094 * regcache.c (regcache_read_pc_protected): New function
7095 implementation that returns 0 if the PC cannot read via
7096 'regcache_read_pc'.
7097 * infrun.c (proceed): Call 'regcache_read_pc_protected'
7098 instead of 'regcache_read_pc'.
7099 (keep_going_pass_signal): Ditto.
7100
7101 2020-05-13 Tom Tromey <tromey@adacore.com>
7102
7103 * ada-lang.c (align_value): Remove.
7104 (ada_template_to_fixed_record_type_1): Use align_up.
7105
7106 2020-05-13 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
7107
7108 * async-event.c: Update the copyright year.
7109 * async-event.h: Update the copyright year.
7110
7111 2020-05-12 Simon Marchi <simon.marchi@efficios.com>
7112
7113 * objfiles.h (is_addr_in_objfile,
7114 shared_objfile_contains_address_p): Return bool.
7115 * objfile.c (is_addr_in_objfile,
7116 shared_objfile_contains_address_p): Return bool.
7117
7118 2020-05-11 Tom Tromey <tromey@adacore.com>
7119
7120 * cli/cli-cmds.c (info_command): Restore.
7121 (_initialize_cli_cmds): Use add_prefix_command for "info".
7122 * gdb-gdb.gdb.in: Restore breakpoint on info_command.
7123
7124 2020-05-11 Tom Tromey <tromey@adacore.com>
7125
7126 * ada-lang.c (ada_value_primitive_field): Now public.
7127 * ada-lang.h (ada_value_primitive_field): Declare.
7128 * ada-valprint.c (print_field_values): Use
7129 ada_value_primitive_field for wrapper fields.
7130
7131 2020-05-11 Tom de Vries <tdevries@suse.de>
7132
7133 * dwarf2/index-write.c (debug_names::psymbol_tag): Handle
7134 MODULE_DOMAIN.
7135
7136 2020-05-11 Tom de Vries <tdevries@suse.de>
7137
7138 PR symtab/25941
7139 * dwarf2/read.c (create_cus_from_debug_names_list): Initialize CUs
7140 with length 0, if not gdb-produced.
7141 (cutu_reader::cutu_reader): Set CU length to actual length if 0.
7142
7143 2020-05-09 Tom de Vries <tdevries@suse.de>
7144
7145 PR gdb/25955
7146 * break-catch-throw.c (check_status_exception_catchpoint): Fix name
7147 calculation.
7148
7149 2020-05-09 Tom Tromey <tom@tromey.com>
7150
7151 * top.c (server_command): Now bool.
7152 * top.h (server_command): Now bool.
7153
7154 2020-05-08 Tom Tromey <tromey@adacore.com>
7155
7156 * dwarf2/read.c (read_lexical_block_scope): Don't process a DIE
7157 already being processed.
7158
7159 2020-05-08 Tom Tromey <tom@tromey.com>
7160
7161 * printcmd.c (struct display) <next>: Remove.
7162 <display>: New constructor.
7163 <exp_string>: Now a std::string.
7164 <enabled_p>: Now a bool.
7165 (display_number): Move definition earlier.
7166 (displays): Rename from display_chain. Now a std::vector.
7167 (ALL_DISPLAYS, ALL_DISPLAYS_SAFE): Remove.
7168 (display_command): Update.
7169 (do_one_display, disable_display)
7170 (enable_disable_display_command, do_enable_disable_display):
7171 Update.
7172 (free_display): Remove.
7173 (clear_displays): Rewrite.
7174 (delete_display): Update.
7175 (map_display_numbers): Use function_view. Remove "data"
7176 parameter. Update.
7177 (do_delete_display): Remove.
7178 (undisplay_command): Update.
7179 (do_one_display, do_displays, disable_display)
7180 (info_display_command): Update.
7181 (do_enable_disable_display): Remove.
7182 (enable_disable_display_command)
7183 (clear_dangling_display_expressions): Update.
7184
7185 2020-05-08 Tom Tromey <tom@tromey.com>
7186
7187 * symtab.c (set_symbol_cache_size)
7188 (maintenance_print_symbol_cache, maintenance_flush_symbol_cache)
7189 (maintenance_print_symbol_cache_statistics): Update.
7190 * symmisc.c (print_symbol_bcache_statistics)
7191 (print_objfile_statistics, maintenance_print_objfiles)
7192 (maintenance_info_symtabs, maintenance_check_symtabs)
7193 (maintenance_expand_symtabs, maintenance_info_line_tables):
7194 Update.
7195 * symfile-debug.c (set_debug_symfile): Update.
7196 * source.c (forget_cached_source_info): Update.
7197 * python/python.c (gdbpy_progspaces): Update.
7198 * psymtab.c (maintenance_info_psymtabs): Update.
7199 * probe.c (parse_probes): Update.
7200 * linespec.c (iterate_over_all_matching_symtabs)
7201 (collect_symtabs_from_filename, search_minsyms_for_name): Update.
7202 * guile/scm-progspace.c (gdbscm_progspaces): Update.
7203 * exec.c (exec_target::close): Update.
7204 * ada-tasks.c (ada_tasks_new_objfile_observer): Update.
7205 * breakpoint.c (print_one_breakpoint_location)
7206 (create_longjmp_master_breakpoint)
7207 (create_std_terminate_master_breakpoint): Update.
7208 * progspace.c (program_spaces): Now a std::vector.
7209 (maybe_new_address_space): Update.
7210 (add_program_space): Remove.
7211 (program_space::program_space): Update.
7212 (remove_program_space): Update.
7213 (number_of_program_spaces): Remove.
7214 (print_program_space, update_address_spaces): Update.
7215 * progspace.h (program_spaces): Change type.
7216 (ALL_PSPACES): Remove.
7217 (number_of_program_spaces): Don't declare.
7218 (struct program_space) <next>: Remove.
7219
7220 2020-05-08 Tom Tromey <tom@tromey.com>
7221
7222 * mi/mi-cmd-file.c (mi_cmd_file_list_shared_libraries): Update.
7223 * solib-svr4.c (svr4_fetch_objfile_link_map): Update.
7224 (enable_break): Update.
7225 * solib-frv.c (frv_fdpic_find_global_pointer): Update.
7226 (frv_fdpic_find_canonical_descriptor): Update.
7227 (frv_fetch_objfile_link_map): Update.
7228 * progspace.c (program_space::free_all_objfiles): Update.
7229 (program_space::solibs): New method.
7230 * progspace.h (struct program_space) <solibs>: New method.
7231 * solist.h (master_so_list): Don't declare.
7232 (ALL_SO_LIBS): Remove.
7233 * solib.h (so_list_head): Remove.
7234 (update_solib_list): Update comment.
7235 * solib.c (master_so_list): Remove.
7236 (solib_used, update_solib_list, solib_add)
7237 (info_sharedlibrary_command, clear_solib)
7238 (reload_shared_libraries_1, remove_user_added_objfile): Update.
7239
7240 2020-05-08 Tom Tromey <tom@tromey.com>
7241
7242 * extension.c (extension_languages): Now a std::array.
7243 (ALL_EXTENSION_LANGUAGES): Remove.
7244 (get_ext_lang_defn, get_ext_lang_of_file)
7245 (eval_ext_lang_from_control_command): Update.
7246 (finish_ext_lang_initialization)
7247 (auto_load_ext_lang_scripts_for_objfile)
7248 (ext_lang_type_printers::ext_lang_type_printers)
7249 (apply_ext_lang_type_printers)
7250 (ext_lang_type_printers::~ext_lang_type_printers)
7251 (apply_ext_lang_val_pretty_printer, apply_ext_lang_frame_filter)
7252 (preserve_ext_lang_values, get_breakpoint_cond_ext_lang)
7253 (breakpoint_ext_lang_cond_says_stop, check_quit_flag)
7254 (get_matching_xmethod_workers, ext_lang_colorize)
7255 (ext_lang_before_prompt): Update.
7256 (ALL_ENABLED_EXTENSION_LANGUAGES): Remove.
7257
7258 2020-05-08 Tom Tromey <tom@tromey.com>
7259
7260 * symtab.h (class demangle_result_storage) <set_malloc_ptr>: New
7261 overload.
7262 <swap_string, m_string>: Remove.
7263 * symtab.c (demangle_for_lookup, completion_list_add_symbol):
7264 Update.
7265 * stabsread.c (define_symbol, read_type): Update.
7266 * linespec.c (find_linespec_symbols): Update.
7267 * gnu-v3-abi.c (gnuv3_get_typeid): Update.
7268 * dwarf2/read.c (dwarf2_canonicalize_name): Update.
7269 * dbxread.c (read_dbx_symtab): Update.
7270 * cp-support.h (cp_canonicalize_string_full)
7271 (cp_canonicalize_string, cp_canonicalize_string_no_typedefs):
7272 Return unique_xmalloc_ptr.
7273 * cp-support.c (inspect_type): Update.
7274 (cp_canonicalize_string_full): Return unique_xmalloc_ptr.
7275 (cp_canonicalize_string_no_typedefs, cp_canonicalize_string):
7276 Likewise.
7277 * c-typeprint.c (print_name_maybe_canonical): Update.
7278 * break-catch-throw.c (check_status_exception_catchpoint):
7279 Update.
7280
7281 2020-05-08 Tom de Vries <tdevries@suse.de>
7282
7283 * infrun.c (follow_fork): Copy current_line and current_symtab to
7284 child thread.
7285
7286 2020-05-07 Simon Marchi <simon.marchi@efficios.com>
7287
7288 * async-event.c (struct async_signal_handler, struct
7289 async_event_handler): Reformat, remove typedef.
7290
7291 2020-05-07 Simon Marchi <simon.marchi@efficios.com>
7292
7293 * gdbtypes.h (TYPE_DYN_PROP_LIST): Remove. Update all users
7294 access thistype->main_type->dyn_prop_list directly.
7295
7296 2020-05-07 Simon Marchi <simon.marchi@efficios.com>
7297
7298 * gdbtypes.h (struct type) <remove_dyn_prop>: New method.
7299 (remove_dyn_prop): Remove. Update all users to use
7300 type::remove_dyn_prop.
7301 * gdbtypes.c (remove_dyn_prop): Rename to...
7302 (type::remove_dyn_prop): ... this.
7303
7304 2020-05-07 Simon Marchi via Gdb-patches <gdb-patches@sourceware.org>
7305
7306 * gdbtypes.h (struct type) <add_dyn_prop>: New method.
7307 (add_dyn_prop): Remove. Update all users to use
7308 type::add_dyn_prop.
7309 * gdbtypes.c (add_dyn_prop): Rename to...
7310 (type::add_dyn_prop): ... this.
7311
7312 2020-05-07 Simon Marchi <simon.marchi@efficios.com>
7313
7314 * gdbtypes.h (struct type) <get_dyn_prop>: New method.
7315 (get_dyn_prop): Remove. Update all users to use
7316 type::dyn_prop.
7317 * gdbtypes.c (get_dyn_prop): Rename to...
7318 (type::dyn_prop): ... this.
7319
7320 2020-05-06 Simon Marchi <simon.marchi@efficios.com>
7321
7322 * gdbtypes.h (struct main_type) <flag_static>: Remove.
7323
7324 2020-05-06 Simon Marchi <simon.marchi@efficios.com>
7325
7326 * amd64-tdep.c (amd64_analyze_prologue): Check for `endbr64`
7327 instruction, skip it if it's there.
7328
7329 2020-05-05 Simon Marchi <simon.marchi@efficios.com>
7330
7331 * gdbtypes.h (struct main_type) <flag_incomplete>: Remove.
7332
7333 2020-05-04 Simon Marchi <simon.marchi@efficios.com>
7334
7335 * gdbtypes.h (TYPE_INCOMPLETE): Remove.
7336 * gdbtypes.c (recursive_dump_type): Remove use of
7337 TYPE_INCOMPLETE.
7338
7339 2020-05-03 Tom Tromey <tom@tromey.com>
7340
7341 * breakpoint.c (catch_command, tcatch_command): Remove.
7342 (_initialize_breakpoint): Use add_basic_prefix_cmd,
7343 add_show_prefix_cmd.
7344 (set_breakpoint_cmd, show_breakpoint_cmd): Remove
7345 * utils.c (set_internal_problem_cmd, show_internal_problem_cmd):
7346 Remove.
7347 (add_internal_problem_command): Use add_basic_prefix_cmd,
7348 add_show_prefix_cmd.
7349 * mips-tdep.c (set_mipsfpu_command): Remove.
7350 (_initialize_mips_tdep): Use add_basic_prefix_cmd.
7351 * dwarf2/index-cache.c (set_index_cache_command): Remove.
7352 (_initialize_index_cache): Use add_basic_prefix_cmd.
7353 * memattr.c (dummy_cmd): Remove.
7354 (_initialize_mem): Use add_basic_prefix_cmd, add_show_prefix_cmd.
7355 * tui/tui-win.c (set_tui_cmd, show_tui_cmd): Remove.
7356 (_initialize_tui_win): Use add_basic_prefix_cmd,
7357 add_show_prefix_cmd.
7358 * cli/cli-logging.c (set_logging_command): Remove.
7359 (_initialize_cli_logging): Use add_basic_prefix_cmd,
7360 add_show_prefix_cmd.
7361 (show_logging_command): Remove.
7362 * target.c (target_command): Remove.
7363 (add_target): Use add_basic_prefix_cmd.
7364
7365 2020-05-02 Hannes Domani <ssbssa@yahoo.de>
7366
7367 * gdbtypes.h (enum dynamic_prop_node_kind): Fix typo.
7368
7369 2020-05-01 Philippe Waroquiers <philippe.waroquiers@skynet.be>
7370
7371 * gdb-gdb.gdb-in: Remove breakpoint on disappeared function
7372 info_command.
7373
7374 2020-04-30 Kamil Rytarowski <n54@gmx.com>
7375
7376 * nbsd-nat.c (nbsd_enable_proc_events)
7377 (nbsd_nat_target::post_startup_inferior): Add.
7378 (nbsd_nat_target::post_attach): Call `nbsd_enable_proc_events'.
7379 (nbsd_nat_target::update_thread_list): Rewrite.
7380 (nbsd_nat_target::wait): Handle "PTRACE_LWP_EXIT" and
7381 "PTRACE_LWP_CREATE".
7382 * nbsd-nat.h (nbsd_nat_target::post_startup_inferior): Add.
7383
7384 2020-04-30 Philippe Waroquiers <philippe.waroquiers@skynet.be>
7385
7386 * stack.c (_initialize_stack): Remove duplicated creation
7387 of "frame" command and "f" alias.
7388
7389 2020-04-30 Hannes Domani <ssbssa@yahoo.de>
7390
7391 PR gdb/18706
7392 * gdbtypes.c (check_typedef): Calculate size of array of
7393 stubbed type.
7394
7395 2020-04-30 Hannes Domani <ssbssa@yahoo.de>
7396
7397 PR gdb/15559
7398 * i386-tdep.c (i386_push_dummy_call): Call
7399 i386_thiscall_push_dummy_call.
7400 (i386_thiscall_push_dummy_call): New function.
7401 * i386-tdep.h (i386_thiscall_push_dummy_call): Declare.
7402 * i386-windows-tdep.c (i386_windows_push_dummy_call): New function.
7403 (i386_windows_init_abi): Call set_gdbarch_push_dummy_call.
7404
7405 2020-04-29 Simon Marchi <simon.marchi@efficios.com>
7406
7407 * gdbarch.sh (do_read): Add shellcheck disable directive for
7408 warning SC2162.
7409
7410 2020-04-29 Simon Marchi <simon.marchi@efficios.com>
7411
7412 * gdbarch.sh: Use ${foo:-} where shellcheck would report a
7413 "referenced but not assigned" warning.
7414
7415 2020-04-29 Simon Marchi <simon.marchi@efficios.com>
7416
7417 * gdbarch.sh: Remove code that sets fallbackdefault.
7418
7419 2020-04-29 Simon Marchi <simon.marchi@efficios.com>
7420
7421 * gdbarch.sh: Use shell operators && and || instead of
7422 -a and -o.
7423
7424 2020-04-29 Simon Marchi <simon.marchi@efficios.com>
7425
7426 * gdbarch.sh: Use $(...) instead of `...`.
7427
7428 2020-04-29 Simon Marchi <simon.marchi@efficios.com>
7429
7430 * gdbarch.sh: Use double quotes around variables.
7431
7432 2020-04-29 Simon Marchi <simon.marchi@efficios.com>
7433
7434 * gdbarch.sh: Use %s with printf, instead of variables in the
7435 format string.
7436
7437 2020-04-29 Tom Tromey <tromey@adacore.com>
7438
7439 PR ada/25875:
7440 * dwarf2/read.c (update_enumeration_type_from_children): Compute
7441 type fields here.
7442 (read_enumeration_type): Call
7443 update_enumeration_type_from_children later. Update comments.
7444 (process_enumeration_scope): Don't create type fields.
7445
7446 2020-04-29 Kamil Rytarowski <n54@gmx.com>
7447
7448 * nbsd-tdep.c: Include "xml-syscall.h".
7449 (nbsd_init_abi): Call `set_xml_syscall_file_name'.
7450
7451 2020-04-29 Kamil Rytarowski <n54@gmx.com>
7452
7453 * nbsd-nat.c: Include "sys/wait.h".
7454 (nbsd_resume, nbsd_nat_target::resume, nbsd_wait)
7455 (nbsd_nat_target::wait, nbsd_nat_target::insert_exec_catchpoint)
7456 (nbsd_nat_target::remove_exec_catchpoint)
7457 (nbsd_nat_target::set_syscall_catchpoint): Add.
7458 * nbsd-nat.h (nbsd_nat_target::resume, nbsd_nat_target::wait)
7459 (nbsd_nat_target::insert_exec_catchpoint)
7460 (nbsd_nat_target::remove_exec_catchpoint)
7461 (nbsd_nat_target::set_syscall_catchpoint): Add.
7462 * nbsd-tdep.c (nbsd_get_syscall_number): Add.
7463 (nbsd_init_abi): Call `set_gdbarch_get_syscall_number' and pass
7464 `nbsd_get_syscall_number'.
7465
7466 2020-04-29 Tom Tromey <tom@tromey.com>
7467
7468 * stack.c (print_block_frame_labels): Remove.
7469
7470 2020-04-29 Hannes Domani <ssbssa@yahoo.de>
7471
7472 PR gdb/17320
7473 * ada-valprint.c (val_print_packed_array_elements): Move array
7474 end bracket to new line.
7475 (ada_val_print_string): Remove extra spaces before first array
7476 element.
7477 * c-valprint.c (c_value_print_array): Likewise.
7478 * m2-valprint.c (m2_print_array_contents): Likewise.
7479 (m2_value_print_inner): Likewise.
7480 * p-valprint.c (pascal_value_print_inner): Likewise.
7481 * valprint.c (generic_val_print_array): Likewise.
7482 (value_print_array_elements): Move first array element and array
7483 end bracket to new line.
7484
7485 2020-04-29 Tom de Vries <tdevries@suse.de>
7486
7487 PR symtab/25889
7488 * linespec.c (find_method): Fix ix calculation.
7489
7490 2020-04-28 Kamil Rytarowski <n54@gmx.com>
7491
7492 * syscalls/update-netbsd.sh: New file.
7493 * syscalls/netbsd.xml: Regenerate.
7494 * data-directory/Makefile.in: Register `netbsd.xml' in
7495 `SYSCALLS_FILES'.
7496
7497 2020-04-28 Simon Marchi <simon.marchi@efficios.com>
7498
7499 * syscalls/update-freebsd.sh: Add double quotes.
7500
7501 2020-04-28 Tom Tromey <tom@tromey.com>
7502
7503 * NEWS: Update.
7504 * python/py-cmd.c (gdbpy_initialize_commands): Add COMMAND_TUI.
7505 (cmdpy_init): Allow class_tui.
7506
7507 2020-04-28 Mark Williams <mark@myosotissp.com>
7508
7509 PR gdb/24480
7510 * dwarf2read.c: Add missing assingments to list_in_scope when
7511 start_symtab was already called.
7512
7513 2020-04-28 Simon Marchi <simon.marchi@efficios.com>
7514
7515 PR gdb/25881
7516 * dwarf2/read.c (offset_map_type): Use
7517 gdb:hash_enum<sect_offset> as hash function.
7518
7519 2020-04-28 Tom de Vries <tdevries@suse.de>
7520
7521 * dwarf2/read.c (process_structure_scope): Add symbol for struct decl
7522 with DW_AT_signature.
7523
7524 2020-04-27 Simon Marchi <simon.marchi@efficios.com>
7525
7526 * configure.ac: Remove check for fs_base/gs_base in
7527 user_regs_struct.
7528 * configure: Re-generate.
7529 * config.in: Re-generate.
7530 * amd64-nat.c (amd64_native_gregset_reg_offset): Adjust.
7531 * amd64-linux-nat.c (amd64_linux_nat_target::fetch_registers,
7532 amd64_linux_nat_target::store_registers, ps_get_thread_area, ): Adjust.
7533
7534 2020-04-27 Luis Machado <luis.machado@linaro.org>
7535
7536 * dwarf2/frame-tailcall.c (dwarf2_tailcall_sniffer_first): Handle
7537 problematic inline frame unwinding situation.
7538 * frame.c (frame_id_computed_p): New function.
7539 * frame.h (frame_id_computed_p): New prototype.
7540
7541 2020-04-26 Tom Tromey <tom@tromey.com>
7542
7543 * command.h (enum command_class) <class_pseudo>: Remove.
7544
7545 2020-04-26 Philippe Waroquiers <philippe.waroquiers@skynet.be>
7546
7547 * cli/cli-decode.c (lookup_cmd_composition): Fix comments
7548 and whitespace.
7549
7550 2020-04-25 Kamil Rytarowski <n54@gmx.com>
7551
7552 * inf-ptrace.c (inf_ptrace_target::wait): Remove
7553 `PT_GET_PROCESS_STATE' block.
7554
7555 2020-04-24 Tom Tromey <tom@tromey.com>
7556
7557 * symtab.h (symbol_get_demangled_name): Don't declare.
7558 * symtab.c (symbol_get_demangled_name): Remove.
7559 (general_symbol_info::natural_name)
7560 (general_symbol_info::demangled_name): Update.
7561
7562 2020-04-24 Tom Tromey <tom@tromey.com>
7563
7564 PR rust/25025:
7565 * dwarf2/read.c (dwarf2_physname): Do not demangle for Rust.
7566
7567 2020-04-24 Tom Tromey <tom@tromey.com>
7568
7569 PR symtab/12707:
7570 * dwarf2/read.c (add_partial_symbol): Use the linkage name if it
7571 exists.
7572 (new_symbol): Likewise.
7573 * compile/compile-object-load.c (get_out_value_type): Use
7574 symbol_matches_search_name.
7575
7576 2020-04-24 Tom Tromey <tom@tromey.com>
7577
7578 * dwarf2/read.c (add_partial_symbol): Do not call
7579 compute_and_set_names.
7580
7581 2020-04-24 Tom Tromey <tom@tromey.com>
7582
7583 * dwarf2/read.c (add_partial_symbol): Use new add_psymbol_to_list
7584 overload.
7585
7586 2020-04-24 Tom Tromey <tom@tromey.com>
7587
7588 * psymtab.c (add_psymbol_to_bcache): Simplify calling convention.
7589 (add_psymbol_to_list): New overload. Make old overload call new
7590 one.
7591 * psympriv.h (add_psymbol_to_list): New overload.
7592
7593 2020-04-24 Tom Tromey <tom@tromey.com>
7594
7595 * dwarf2/read.c (partial_die_info::read) <case
7596 DW_AT_linkage_name>: Use value_as_string.
7597 (dwarf2_string_attr): Use value_as_string.
7598 * dwarf2/attribute.h (struct attribute) <value_as_string>: Declare
7599 method.
7600 * dwarf2/attribute.c (attribute::value_as_string): New method.
7601
7602 2020-04-24 Tom Tromey <tom@tromey.com>
7603
7604 * symtab.c (general_symbol_info::natural_name)
7605 (general_symbol_info::demangled_name): Check for language_rust.
7606
7607 2020-04-24 Tom Tromey <tom@tromey.com>
7608
7609 * dwarf2/read.c (dw2_linkage_name): Move Rust "{" hack here...
7610 (dwarf2_physname): ... from here.
7611 (partial_die_info::read): Add Rust "{" hack.
7612
7613 2020-04-24 Tom Tromey <tom@tromey.com>
7614
7615 * symtab.h (struct general_symbol_info) <set_demangled_name>: New
7616 method.
7617 (symbol_set_demangled_name): Don't declare.
7618 * symtab.c (general_symbol_info::set_demangled_name): Rename from
7619 symbol_set_demangled_name.
7620 (general_symbol_info::set_language)
7621 (general_symbol_info::compute_and_set_names): Update.
7622 * minsyms.c (minimal_symbol_reader::install): Update.
7623 * dwarf2/read.c (new_symbol): Update.
7624
7625 2020-04-24 Tom Tromey <tromey@adacore.com>
7626
7627 PR python/23662:
7628 * python/py-type.c (convert_field): Handle
7629 FIELD_LOC_KIND_DWARF_BLOCK.
7630 (typy_get_sizeof): Handle TYPE_HAS_DYNAMIC_LENGTH.
7631 (typy_get_dynamic): Nw function.
7632 (type_object_getset): Add "dynamic".
7633 * NEWS: Add entry.
7634
7635 2020-04-24 Tom Tromey <tromey@adacore.com>
7636
7637 * ada-typeprint.c (print_choices, print_variant_part)
7638 (print_record_field_types_dynamic): New functions.
7639 (print_record_field_types): Use print_record_field_types_dynamic.
7640
7641 2020-04-24 Tom Tromey <tromey@adacore.com>
7642
7643 * dwarf2/read.c (handle_data_member_location): New overload.
7644 (dwarf2_add_field): Use it.
7645 (decode_locdesc): Add "computed" parameter. Update comment.
7646 * gdbtypes.c (is_dynamic_type_internal): Also look for
7647 FIELD_LOC_KIND_DWARF_BLOCK.
7648 (resolve_dynamic_struct): Handle FIELD_LOC_KIND_DWARF_BLOCK.
7649 * gdbtypes.c (is_dynamic_type_internal): Add special case for C++
7650 virtual base classes.
7651 * gnu-v3-abi.c (gnuv3_baseclass_offset): Handle
7652 FIELD_LOC_KIND_DWARF_BLOCK.
7653
7654 2020-04-24 Tom Tromey <tromey@adacore.com>
7655
7656 * dwarf2/read.c (read_structure_type): Handle dynamic length.
7657 * gdbtypes.c (is_dynamic_type_internal): Check
7658 TYPE_HAS_DYNAMIC_LENGTH.
7659 (resolve_dynamic_type_internal): Use TYPE_DYNAMIC_LENGTH.
7660 * gdbtypes.h (TYPE_HAS_DYNAMIC_LENGTH, TYPE_DYNAMIC_LENGTH):
7661 New macros.
7662 (enum dynamic_prop_node_kind) <DYN_PROP_BYTE_SIZE>: New
7663 constant.
7664
7665 2020-04-24 Tom Tromey <tromey@adacore.com>
7666
7667 * dwarf2/read.c (struct variant_field): Rewrite.
7668 (struct variant_part_builder): New.
7669 (struct nextfield): Remove "variant" field. Add "offset".
7670 (struct field_info): Add "current_variant_part" and
7671 "variant_parts".
7672 (alloc_discriminant_info): Remove.
7673 (alloc_rust_variant): New function.
7674 (quirk_rust_enum): Update.
7675 (dwarf2_add_field): Set "offset" member. Don't handle
7676 DW_TAG_variant_part.
7677 (offset_map_type): New typedef.
7678 (convert_variant_range, create_one_variant)
7679 (create_one_variant_part, create_variant_parts)
7680 (add_variant_property): New functions.
7681 (dwarf2_attach_fields_to_type): Call add_variant_property.
7682 (read_structure_type): Don't handle DW_TAG_variant_part.
7683 (handle_variant_part, handle_variant): New functions.
7684 (handle_struct_member_die): Use them.
7685 (process_structure_scope): Don't handle variant parts.
7686 * gdbtypes.h (TYPE_FLAG_DISCRIMINATED_UNION): Remove.
7687 (struct discriminant_info): Remove.
7688 (enum dynamic_prop_node_kind) <DYN_PROP_DISCRIMINATED>: Remove.
7689 (struct main_type) <flag_discriminated_union>: Remove.
7690 * rust-lang.c (rust_enum_p, rust_empty_enum_p): Rewrite.
7691 (rust_enum_variant): Return int. Remove "contents". Rewrite.
7692 (rust_print_enum, rust_print_struct_def, rust_evaluate_subexp):
7693 Update.
7694 * valops.c (value_union_variant): Remove.
7695 * value.h (value_union_variant): Don't declare.
7696
7697 2020-04-24 Tom Tromey <tromey@adacore.com>
7698
7699 * ada-lang.c (ada_discrete_type_high_bound, ada_discrete_type_low)
7700 (ada_value_primitive_packed_val): Update.
7701 * ada-valprint.c (ada_value_print_1): Update.
7702 * dwarf2/loc.c (evaluate_for_locexpr_baton): New struct.
7703 (dwarf2_locexpr_baton_eval): Take a property_addr_info rather than
7704 just an address. Use evaluate_for_locexpr_baton.
7705 (dwarf2_evaluate_property): Update.
7706 * dwarf2/loc.h (struct property_addr_info) <valaddr>: Now an
7707 array_view.
7708 * findvar.c (default_read_var_value): Update.
7709 * gdbtypes.c (compute_variant_fields_inner)
7710 (resolve_dynamic_type_internal): Update.
7711 (resolve_dynamic_type): Change type of valaddr parameter.
7712 * gdbtypes.h (resolve_dynamic_type): Update.
7713 * valarith.c (value_subscripted_rvalue): Update.
7714 * value.c (value_from_contents_and_address): Update.
7715
7716 2020-04-24 Tom Tromey <tromey@adacore.com>
7717
7718 * dwarf2/loc.c (dwarf2_locexpr_baton_eval): Add
7719 "push_initial_value" parameter.
7720 (dwarf2_evaluate_property): Likewise.
7721 * dwarf2/loc.h (dwarf2_evaluate_property): Update.
7722
7723 2020-04-24 Tom Tromey <tromey@adacore.com>
7724
7725 * gdbtypes.c (is_dynamic_type_internal): Check for variant parts.
7726 (variant::matches, compute_variant_fields_recurse)
7727 (compute_variant_fields_inner, compute_variant_fields): New
7728 functions.
7729 (resolve_dynamic_struct): Check for DYN_PROP_VARIANT_PARTS.
7730 Use resolved_type after type is made.
7731 (operator==): Add new cases.
7732 * gdbtypes.h (TYPE_HAS_VARIANT_PARTS): New macro.
7733 (struct discriminant_range, struct variant, struct variant_part):
7734 New.
7735 (union dynamic_prop_data) <variant_parts, original_type>: New
7736 members.
7737 (enum dynamic_prop_node_kind) <DYN_PROP_VARIANT_PARTS>: New constant.
7738 (enum dynamic_prop_kind) <PROP_TYPE, PROP_VARIANT_PARTS>: New
7739 constants.
7740 * value.c (unpack_bits_as_long): Now public.
7741 * value.h (unpack_bits_as_long): Declare.
7742
7743 2020-04-24 Tom Tromey <tromey@adacore.com>
7744
7745 * rs6000-tdep.c (struct ppc_variant): Rename from "variant".
7746 (variants, find_variant_by_arch, rs6000_gdbarch_init): Update.
7747
7748 2020-04-24 Hannes Domani <ssbssa@yahoo.de>
7749
7750 * windows-tdep.c (exception_values): Add WOW64 exception numbers.
7751
7752 2020-04-24 Kamil Rytarowski <n54@gmx.com>
7753
7754 * inf-ptrace.h (follow_fork, insert_fork_catchpoint)
7755 (remove_fork_catchpoint, post_startup_inferior)
7756 (post_attach): Move...
7757 * obsd-nat.h (follow_fork, insert_fork_catchpoint)
7758 (remove_fork_catchpoint, post_startup_inferior)
7759 (post_attach): ...here.
7760 * inf-ptrace.c (follow_fork, insert_fork_catchpoint)
7761 (remove_fork_catchpoint, post_startup_inferior)
7762 (post_attach): Move...
7763 * obsd-nat.c (follow_fork, insert_fork_catchpoint)
7764 (remove_fork_catchpoint, post_startup_inferior)
7765 (post_attach): ...here.
7766
7767 2020-04-24 Tom Tromey <tromey@adacore.com>
7768
7769 * nat/windows-nat.h (struct windows_thread_info)
7770 <pc_adjusted>: New member.
7771 * windows-nat.c (windows_fetch_one_register): Check
7772 pc_adjusted.
7773 (windows_nat_target::get_windows_debug_event)
7774 (windows_nat_target::wait): Set pc_adjusted.
7775
7776 2020-04-24 Tom de Vries <tdevries@suse.de>
7777
7778 * contrib/cc-with-tweaks.sh: Remove <exec>.gdb-index file handling.
7779 Run gdb-add-index inside temp dir.
7780
7781 2020-04-23 Tom Tromey <tromey@adacore.com>
7782
7783 * windows-tdep.c (is_linked_with_cygwin_dll): Always update "iter"
7784 in loop.
7785
7786 2020-04-23 Luis Machado <luis.machado@linaro.org>
7787
7788 * dwarf2/frame-tailcall.c (dwarf2_tailcall_sniffer_first): Use
7789 get_frame_register instead of gdbarch_unwind_pc.
7790
7791 2020-04-23 Tom de Vries <tdevries@suse.de>
7792
7793 * symtab.c (lookup_global_symbol): Prefer def over decl.
7794
7795 2020-04-23 Tom de Vries <tdevries@suse.de>
7796
7797 PR symtab/25807
7798 * block.c (best_symbol, better_symbol): Promote to external.
7799 * block.h (best_symbol, better_symbol): Declare.
7800 * symtab.c (lookup_symbol_in_objfile_symtabs): Prefer def over
7801 decl.
7802
7803 2020-04-23 Tom Tromey <tromey@adacore.com>
7804
7805 PR ada/25837:
7806 * dwarf2/read.c (dw2_expand_symtabs_matching_symbol): Store a
7807 "const char *", not a "const std::string &".
7808 <name_and_matcher::operator==>: Update.
7809 * unittests/lookup_name_info-selftests.c: Change type of
7810 "result".
7811
7812 2020-04-23 Tom Tromey <tom@tromey.com>
7813
7814 * inferior.h (iterate_over_inferiors): Don't declare.
7815 * inferior.c (iterate_over_inferiors): Remove.
7816 * darwin-nat.c (find_inferior_task_it, find_inferior_pid_it):
7817 Remove.
7818 (darwin_find_inferior_by_task, darwin_find_inferior_by_pid): Don't
7819 use iterate_over_inferiors.
7820 (darwin_resume_inferior_it)
7821 (struct resume_inferior_threads_param)
7822 (darwin_resume_inferior_threads_it): Remove.
7823 (darwin_nat_target::resume): Don't use iterate_over_inferiors.
7824
7825 2020-04-23 Tom de Vries <tdevries@suse.de>
7826
7827 * blockframe.c (find_pc_partial_function): Use
7828 find_pc_sect_compunit_symtab rather than
7829 objfile->sf->qf->find_pc_sect_compunit_symtab.
7830
7831 2020-04-22 Tom de Vries <tdevries@suse.de>
7832
7833 PR symtab/25764
7834 * dwarf2/read.c (scan_partial_symbols): Allow external variable decls
7835 in psymtabs.
7836
7837 2020-04-22 Tom de Vries <tdevries@suse.de>
7838
7839 PR symtab/25801
7840 * psymtab.c (psym_map_symtabs_matching_filename): Don't skip shared
7841 symtabs.
7842
7843 2020-04-22 Tom de Vries <tdevries@suse.de>
7844
7845 PR symtab/25700
7846 * dwarf2/read.c (dwarf2_build_psymtabs_hard): Don't create psymtab for
7847 CU if already created.
7848
7849 2020-04-21 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
7850
7851 * infrun.c (displaced_step_fixup): Switch to the event_thread
7852 before calling displaced_step_restore, not after.
7853
7854 2020-04-21 Markus Metzger <markus.t.metzger@intel.com>
7855
7856 * record-btrace.c (record_btrace_enable_warn): Ignore thread if
7857 its inferior is not recorded by us.
7858 (record_btrace_target_open): Replace call to
7859 all_non_exited_threads () with call to current_inferior
7860 ()->non_exited_threads ().
7861 (record_btrace_target::stop_recording): Likewise.
7862 (record_btrace_target::close): Likewise.
7863 (record_btrace_target::wait): Likewise.
7864 (record_btrace_target::record_stop_replaying): Likewise.
7865
7866 2020-04-21 Markus Metzger <markus.t.metzger@intel.com>
7867
7868 * btrace.c (btrace_enable): Throw an error on double enables and
7869 when enabling recording fails.
7870 (btrace_disable): Throw an error if the thread is not recorded.
7871
7872 2020-04-21 Markus Metzger <markus.t.metzger@intel.com>
7873
7874 * record-btrace.c (record_btrace_target::fetch_registers): Forward
7875 request if we do not have a thread_info.
7876
7877 2020-04-21 Tom de Vries <tdevries@suse.de>
7878
7879 PR gdb/25471
7880 * thread.c
7881 (scoped_restore_current_thread::scoped_restore_current_thread): Catch
7882 exception in get_frame_id.
7883
7884 2020-04-20 Tom Tromey <tromey@adacore.com>
7885
7886 * python/python.c (struct gdbpy_event): Mark move constructor as
7887 noexcept.
7888 * python/py-tui.c (class gdbpy_tui_window_maker): Mark move
7889 constructor as noexcept.
7890 * completer.h (struct completion_result): Mark move constructor as
7891 noexcept.
7892 * completer.c (completion_result::completion_result): Use
7893 initialization style. Don't call reset_match_list.
7894
7895 2020-04-20 Mihails Strasuns <mihails.strasuns@intel.com>
7896
7897 * MAINTAINERS (Write After Approval): Add myself.
7898
7899 2020-04-18 Tom Tromey <tom@tromey.com>
7900
7901 * windows-tdep.c (init_w32_command_list)
7902 (w32_prefix_command_valid): Restore.
7903 (_initialize_windows_tdep): Call init_w32_command_list.
7904
7905 2020-04-18 Tom Tromey <tom@tromey.com>
7906
7907 * xcoffread.c (enter_line_range, scan_xcoff_symtab): Update.
7908 * value.c (value_fn_field): Update.
7909 * valops.c (find_function_in_inferior)
7910 (value_allocate_space_in_inferior): Update.
7911 * tui/tui-winsource.c (tui_update_source_windows_with_line):
7912 Update.
7913 * tui/tui-source.c (tui_source_window::set_contents): Update.
7914 * symtab.c (lookup_global_or_static_symbol)
7915 (find_function_start_sal_1, skip_prologue_sal)
7916 (print_msymbol_info, find_gnu_ifunc, symbol_arch): Update.
7917 * symmisc.c (dump_msymbols, dump_symtab_1)
7918 (maintenance_print_one_line_table): Update.
7919 * symfile.c (init_entry_point_info, section_is_mapped)
7920 (list_overlays_command, simple_read_overlay_table)
7921 (simple_overlay_update_1): Update.
7922 * stap-probe.c (handle_stap_probe): Update.
7923 * stabsread.c (dbx_init_float_type, define_symbol)
7924 (read_one_struct_field, read_enum_type, read_range_type): Update.
7925 * source.c (info_line_command): Update.
7926 * python/python.c (gdbpy_source_objfile_script)
7927 (gdbpy_execute_objfile_script): Update.
7928 * python/py-type.c (save_objfile_types): Update.
7929 * python/py-objfile.c (py_free_objfile): Update.
7930 * python/py-inferior.c (python_new_objfile): Update.
7931 * psymtab.c (psym_find_pc_sect_compunit_symtab, dump_psymtab)
7932 (dump_psymtab_addrmap_1, maintenance_info_psymtabs)
7933 (maintenance_check_psymtabs): Update.
7934 * printcmd.c (info_address_command): Update.
7935 * objfiles.h (struct objfile) <arch>: New method, from
7936 get_objfile_arch.
7937 (get_objfile_arch): Don't declare.
7938 * objfiles.c (get_objfile_arch): Remove.
7939 (filter_overlapping_sections): Update.
7940 * minsyms.c (msymbol_is_function): Update.
7941 * mi/mi-symbol-cmds.c (mi_cmd_symbol_list_lines)
7942 (output_nondebug_symbol): Update.
7943 * mdebugread.c (parse_symbol, basic_type, parse_partial_symbols)
7944 (mdebug_expand_psymtab): Update.
7945 * machoread.c (macho_add_oso_symfile): Update.
7946 * linux-tdep.c (linux_infcall_mmap, linux_infcall_munmap):
7947 Update.
7948 * linux-fork.c (checkpoint_command): Update.
7949 * linespec.c (convert_linespec_to_sals): Update.
7950 * jit.c (finalize_symtab): Update.
7951 * infrun.c (insert_exception_resume_from_probe): Update.
7952 * ia64-tdep.c (ia64_find_unwind_table): Update.
7953 * hppa-tdep.c (internalize_unwinds): Update.
7954 * gdbtypes.c (get_type_arch, init_float_type, objfile_type):
7955 Update.
7956 * gcore.c (call_target_sbrk): Update.
7957 * elfread.c (record_minimal_symbol, elf_symtab_read)
7958 (elf_rel_plt_read, elf_gnu_ifunc_record_cache)
7959 (elf_gnu_ifunc_resolve_by_got): Update.
7960 * dwarf2/read.c (create_addrmap_from_index)
7961 (create_addrmap_from_aranges, dw2_find_pc_sect_compunit_symtab)
7962 (read_debug_names_from_section)
7963 (process_psymtab_comp_unit_reader, add_partial_symbol)
7964 (add_partial_subprogram, process_full_comp_unit)
7965 (read_file_scope, read_func_scope, read_lexical_block_scope)
7966 (read_call_site_scope, dwarf2_ranges_read)
7967 (dwarf2_record_block_ranges, dwarf2_add_field)
7968 (mark_common_block_symbol_computed, read_tag_pointer_type)
7969 (read_tag_string_type, dwarf2_init_float_type)
7970 (dwarf2_init_complex_target_type, read_base_type)
7971 (partial_die_info::read, partial_die_info::read)
7972 (read_attribute_value, dwarf_decode_lines_1, new_symbol)
7973 (dwarf2_fetch_die_loc_sect_off): Update.
7974 * dwarf2/loc.c (dwarf2_find_location_expression)
7975 (class dwarf_evaluate_loc_desc, rw_pieced_value)
7976 (dwarf2_evaluate_loc_desc_full, dwarf2_locexpr_baton_eval)
7977 (dwarf2_loc_desc_get_symbol_read_needs)
7978 (locexpr_describe_location_piece, locexpr_describe_location_1)
7979 (loclist_describe_location): Update.
7980 * dwarf2/index-write.c (write_debug_names): Update.
7981 * dwarf2/frame.c (dwarf2_build_frame_info): Update.
7982 * dtrace-probe.c (dtrace_process_dof): Update.
7983 * dbxread.c (read_dbx_symtab, dbx_end_psymtab)
7984 (process_one_symbol): Update.
7985 * ctfread.c (ctf_init_float_type, read_base_type): Update.
7986 * coffread.c (coff_symtab_read, enter_linenos, decode_base_type)
7987 (coff_read_enum_type): Update.
7988 * cli/cli-cmds.c (edit_command, list_command): Update.
7989 * buildsym.c (buildsym_compunit::finish_block_internal): Update.
7990 * breakpoint.c (create_overlay_event_breakpoint)
7991 (create_longjmp_master_breakpoint)
7992 (create_std_terminate_master_breakpoint)
7993 (create_exception_master_breakpoint, get_sal_arch): Update.
7994 * block.c (block_gdbarch): Update.
7995 * annotate.c (annotate_source_line): Update.
7996
7997 2020-04-17 Tom Tromey <tromey@adacore.com>
7998
7999 * auto-load.c (show_auto_load_cmd): Remove.
8000 (auto_load_show_cmdlist_get): Use add_show_prefix_cmd.
8001 * arc-tdep.c (_initialize_arc_tdep): Use add_show_prefix_cmd.
8002 (maintenance_print_arc_command): Remove.
8003 * tui/tui-win.c (tui_command): Remove.
8004 (tui_get_cmd_list): Use add_basic_prefix_cmd.
8005 * tui/tui-layout.c (tui_layout_command): Remove.
8006 (_initialize_tui_layout): Use add_basic_prefix_cmd.
8007 * python/python.c (user_set_python, user_show_python): Remove.
8008 (_initialize_python): Use add_basic_prefix_cmd,
8009 add_show_prefix_cmd.
8010 * guile/guile.c (set_guile_command, show_guile_command): Remove.
8011 (install_gdb_commands): Use add_basic_prefix_cmd,
8012 add_show_prefix_cmd.
8013 (info_guile_command): Remove.
8014 * dwarf2/read.c (set_dwarf_cmd, show_dwarf_cmd): Remove.
8015 (_initialize_dwarf2_read): Use add_basic_prefix_cmd,
8016 add_show_prefix_cmd.
8017 * cli/cli-style.h (class cli_style_option) <add_setshow_commands>:
8018 Remove do_set and do_show parameters.
8019 * cli/cli-style.c (set_style, show_style): Remove.
8020 (_initialize_cli_style): Use add_basic_prefix_cmd,
8021 add_show_prefix_cmd.
8022 (cli_style_option::add_setshow_commands): Remove do_set and
8023 do_show parameters.
8024 (cli_style_option::add_setshow_commands): Use
8025 add_basic_prefix_cmd, add_show_prefix_cmd.
8026 (STYLE_ADD_SETSHOW_COMMANDS): Remove macro.
8027 (set_style_name): Remove.
8028 * cli/cli-dump.c (dump_command, append_command): Remove.
8029 (srec_dump_command, ihex_dump_command, verilog_dump_command)
8030 (tekhex_dump_command, binary_dump_command)
8031 (binary_append_command): Remove.
8032 (_initialize_cli_dump): Use add_basic_prefix_cmd.
8033 * windows-tdep.c (w32_prefix_command_valid): Remove global.
8034 (init_w32_command_list): Remove; move into ...
8035 (_initialize_windows_tdep): ... here. Use add_basic_prefix_cmd.
8036 * valprint.c (set_print, show_print, set_print_raw)
8037 (show_print_raw): Remove.
8038 (_initialize_valprint): Use add_basic_prefix_cmd,
8039 add_show_prefix_cmd.
8040 * typeprint.c (set_print_type, show_print_type): Remove.
8041 (_initialize_typeprint): Use add_basic_prefix_cmd,
8042 add_show_prefix_cmd.
8043 * record.c (set_record_command, show_record_command): Remove.
8044 (_initialize_record): Use add_basic_prefix_cmd,
8045 add_show_prefix_cmd.
8046 * cli/cli-cmds.c (_initialize_cli_cmds): Use add_basic_prefix_cmd,
8047 add_show_prefix_cmd.
8048 (info_command, show_command, set_debug, show_debug): Remove.
8049 * top.h (set_history, show_history): Don't declare.
8050 * top.c (set_history, show_history): Remove.
8051 * target-descriptions.c (set_tdesc_cmd, show_tdesc_cmd)
8052 (unset_tdesc_cmd): Remove.
8053 (_initialize_target_descriptions): Use add_basic_prefix_cmd,
8054 add_show_prefix_cmd.
8055 * symtab.c (info_module_command): Remove.
8056 (_initialize_symtab): Use add_basic_prefix_cmd.
8057 * symfile.c (overlay_command): Remove.
8058 (_initialize_symfile): Use add_basic_prefix_cmd.
8059 * sparc64-tdep.c (info_adi_command): Remove.
8060 (_initialize_sparc64_adi_tdep): Use add_basic_prefix_cmd.
8061 * sh-tdep.c (show_sh_command, set_sh_command): Remove.
8062 (_initialize_sh_tdep): Use add_basic_prefix_cmd,
8063 add_show_prefix_cmd.
8064 * serial.c (serial_set_cmd, serial_show_cmd): Remove.
8065 (_initialize_serial): Use add_basic_prefix_cmd,
8066 add_show_prefix_cmd.
8067 * ser-tcp.c (set_tcp_cmd, show_tcp_cmd): Remove.
8068 (_initialize_ser_tcp): Use add_basic_prefix_cmd,
8069 add_show_prefix_cmd.
8070 * rs6000-tdep.c (set_powerpc_command, show_powerpc_command)
8071 (_initialize_rs6000_tdep): Use add_basic_prefix_cmd,
8072 add_show_prefix_cmd.
8073 * riscv-tdep.c (show_riscv_command, set_riscv_command)
8074 (show_debug_riscv_command, set_debug_riscv_command): Remove.
8075 (_initialize_riscv_tdep): Use add_basic_prefix_cmd,
8076 add_show_prefix_cmd.
8077 * remote.c (remote_command, set_remote_cmd): Remove.
8078 (_initialize_remote): Use add_basic_prefix_cmd.
8079 * record-full.c (set_record_full_command)
8080 (show_record_full_command): Remove.
8081 (_initialize_record_full): Use add_basic_prefix_cmd,
8082 add_show_prefix_cmd.
8083 * record-btrace.c (cmd_set_record_btrace)
8084 (cmd_show_record_btrace, cmd_set_record_btrace_bts)
8085 (cmd_show_record_btrace_bts, cmd_set_record_btrace_pt)
8086 (cmd_show_record_btrace_pt): Remove.
8087 (_initialize_record_btrace): Use add_basic_prefix_cmd,
8088 add_show_prefix_cmd.
8089 * ravenscar-thread.c (set_ravenscar_command)
8090 (show_ravenscar_command): Remove.
8091 (_initialize_ravenscar): Use add_basic_prefix_cmd,
8092 add_show_prefix_cmd.
8093 * mips-tdep.c (show_mips_command, set_mips_command)
8094 (_initialize_mips_tdep): Use add_basic_prefix_cmd,
8095 add_show_prefix_cmd.
8096 * maint.c (maintenance_command, maintenance_info_command)
8097 (maintenance_check_command, maintenance_print_command)
8098 (maintenance_set_cmd, maintenance_show_cmd): Remove.
8099 (_initialize_maint_cmds): Use add_basic_prefix_cmd,
8100 add_show_prefix_cmd.
8101 (show_per_command_cmd): Remove.
8102 * maint-test-settings.c (maintenance_set_test_settings_cmd):
8103 Remove.
8104 (maintenance_show_test_settings_cmd): Remove.
8105 (_initialize_maint_test_settings): Use add_basic_prefix_cmd,
8106 add_show_prefix_cmd.
8107 * maint-test-options.c (maintenance_test_options_command):
8108 Remove.
8109 (_initialize_maint_test_options): Use add_basic_prefix_cmd.
8110 * macrocmd.c (macro_command): Remove
8111 (_initialize_macrocmd): Use add_basic_prefix_cmd.
8112 * language.c (set_check, show_check): Remove.
8113 (_initialize_language): Use add_basic_prefix_cmd,
8114 add_show_prefix_cmd.
8115 * infcmd.c (unset_command): Remove.
8116 (_initialize_infcmd): Use add_basic_prefix_cmd.
8117 * i386-tdep.c (set_mpx_cmd, show_mpx_cmd): Remove.
8118 (_initialize_i386_tdep): Use add_basic_prefix_cmd,
8119 add_show_prefix_cmd.
8120 * go32-nat.c (go32_info_dos_command): Remove.
8121 (_initialize_go32_nat): Use add_basic_prefix_cmd.
8122 * cli/cli-decode.c (do_prefix_cmd, add_basic_prefix_cmd)
8123 (do_show_prefix_cmd, add_show_prefix_cmd): New functions.
8124 * frame.c (set_backtrace_cmd, show_backtrace_cmd): Remove.
8125 (_initialize_frame): Use add_basic_prefix_cmd,
8126 add_show_prefix_cmd.
8127 * dcache.c (set_dcache_command, show_dcache_command): Remove.
8128 (_initialize_dcache): Use add_basic_prefix_cmd,
8129 add_show_prefix_cmd.
8130 * cp-support.c (maint_cplus_command): Remove.
8131 (_initialize_cp_support): Use add_basic_prefix_cmd.
8132 * btrace.c (maint_btrace_cmd, maint_btrace_set_cmd)
8133 (maint_btrace_show_cmd, maint_btrace_pt_set_cmd)
8134 (maint_btrace_pt_show_cmd, _initialize_btrace): Use
8135 add_basic_prefix_cmd, add_show_prefix_cmd.
8136 * breakpoint.c (save_command): Remove.
8137 (_initialize_breakpoint): Use add_basic_prefix_cmd.
8138 * arm-tdep.c (set_arm_command, show_arm_command): Remove.
8139 (_initialize_arm_tdep): Use add_basic_prefix_cmd,
8140 add_show_prefix_cmd.
8141 * ada-lang.c (maint_set_ada_cmd, maint_show_ada_cmd)
8142 (set_ada_command, show_ada_command): Remove.
8143 (_initialize_ada_language): Use add_basic_prefix_cmd,
8144 add_show_prefix_cmd.
8145 * command.h (add_basic_prefix_cmd, add_show_prefix_cmd): Declare.
8146
8147 2020-04-16 Kamil Rytarowski <n54@gmx.com>
8148
8149 * nbsd-nat.c (inf_ptrace_target::auxv_parse): Remove.
8150 * nbsd-nat.h (inf_ptrace_target::auxv_parse): Likewise.
8151
8152 2020-04-16 Simon Marchi <simon.marchi@polymtl.ca>
8153
8154 * windows-tdep.c (is_linked_with_cygwin_dll): Add filename to
8155 warning messages.
8156
8157 2020-04-16 Simon Marchi <simon.marchi@polymtl.ca>
8158
8159 * windows-tdep.c (is_linked_with_cygwin_dll): Consider case where
8160 import table is not at beginning of .idata section.
8161
8162 2020-04-16 Pedro Alves <palves@redhat.com>
8163
8164 * inferior.c (delete_inferior): Use delete operator directly
8165 instead of delete_program_space.
8166 * progspace.c (add_program_space): New, factored out from
8167 program_space::program_space.
8168 (remove_program_space): New, factored out from
8169 delete_program_space.
8170 (program_space::program_space): Remove intro comment. Rewrite.
8171 (program_space::~program_space): Remove intro comment. Call
8172 remove_program_space.
8173 (delete_program_space): Delete.
8174 * progspace.h (program_space::program_space): Make explicit. Move
8175 intro comment here, adjusted.
8176 (program_space::~program_space): Move intro comment here,
8177 adjusted.
8178 (delete_program_space): Remove.
8179
8180 2020-04-16 Tom Tromey <tromey@adacore.com>
8181
8182 * windows-nat.c (windows_nat::handle_access_violation): New
8183 function.
8184 * nat/windows-nat.h (handle_access_violation): Declare.
8185 * nat/windows-nat.c (handle_exception): Move Cygwin code to
8186 windows-nat.c. Call handle_access_violation.
8187
8188 2020-04-16 Tom de Vries <tdevries@suse.de>
8189
8190 PR symtab/25791
8191 * dwarf2/index-write.c (write_gdbindex): Generate CU table entries for
8192 CUs without psymtab.
8193
8194 2020-04-16 Kevin Buettner <kevinb@redhat.com>
8195
8196 * python/python.c (do_start_initialization): Don't call
8197 PyEval_InitThreads for Python 3.9 and beyond.
8198
8199 2020-04-15 Kamil Rytarowski <n54@gmx.com>
8200
8201 * obsd-nat.c (obsd_nat_target::update_thread_list): Pass "this" to
8202 thread functions.
8203 (obsd_nat_target::wait): Likewise.
8204
8205 2020-04-15 Tom Tromey <tromey@adacore.com>
8206
8207 * windows-nat.c (DEBUG_EXEC, DEBUG_EVENTS, DEBUG_MEM)
8208 (DEBUG_EXCEPT): Use debug_printf.
8209
8210 2020-04-15 Andrew Burgess <andrew.burgess@embecosm.com>
8211
8212 * completer.c (class completion_tracker::completion_hash_entry)
8213 <hash_name>: New member function.
8214 (completion_tracker::discard_completions): New callback to hash a
8215 completion_hash_entry, pass this to htab_create_alloc.
8216
8217 2016-01-20 Jon Turney <jon.turney@dronecode.org.uk>
8218
8219 * windows-nat.c (windows_make_so): Warn rather than stopping with
8220 an error if realpath() fails.
8221
8222 2020-04-14 Kamil Rytarowski <n54@gmx.com>
8223
8224 * nbsd-nat.c (nbsd_pid_to_kinfo_proc2): New.
8225 (nbsd_nat_target::info_proc): Add do_status.
8226
8227 2020-04-14 Simon Marchi <simon.marchi@polymtl.ca>
8228 Tom de Vries <tdevries@suse.de>
8229
8230 PR symtab/25718
8231 * psympriv.h (struct partial_symtab::read_symtab)
8232 (struct partial_symtab::expand_psymtab)
8233 (struct partial_symtab::read_dependencies): Update comments.
8234 * dwarf2/read.c (struct dwarf2_include_psymtab::read_symtab): Call
8235 read_symtab for includer.
8236 (struct dwarf2_include_psymtab::expand_psymtab): Assert false.
8237 (struct dwarf2_include_psymtab::readin_p): Call readin_p () for includer.
8238 (struct dwarf2_include_psymtab::m_readin): Remove.
8239 (struct dwarf2_include_psymtab::includer): New member function.
8240 (dwarf2_psymtab::expand_psymtab): Assert !readin.
8241
8242 2020-04-14 Tom de Vries <tdevries@suse.de>
8243
8244 PR symtab/25720
8245 * symmisc.c (maintenance_expand_symtabs): Call expand_symtabs_matching
8246 with NULL symbol_matcher and lookup_name.
8247 * psymtab.c (psym_expand_symtabs_matching): Handle NULL symbol_matcher
8248 and lookup_name.
8249 * dwarf2/read.c (dw2_expand_symtabs_matching)
8250 (dw2_debug_names_expand_symtabs_matching): Same.
8251 * symfile.h (struct quick_symbol_functions::expand_symtabs_matching):
8252 Make lookup_name a pointer. Update comment.
8253 * symtab.c (global_symbol_searcher::expand_symtabs): Handle
8254 lookup_name being a pointer.
8255 * symfile.c (expand_symtabs_matching): Same.
8256 * symfile-debug.c (debug_qf_expand_symtabs_matching): Same.
8257 * linespec.c (iterate_over_all_matching_symtabs): Same.
8258
8259 2020-04-13 Tom Tromey <tom@tromey.com>
8260
8261 * run-on-main-thread.c: Update include.
8262 * unittests/main-thread-selftests.c: Update include.
8263 * tui/tui-win.c: Update include.
8264 * tui/tui-io.c: Update include.
8265 * tui/tui-interp.c: Update include.
8266 * tui/tui-hooks.c: Update include.
8267 * top.h: Update include.
8268 * top.c: Update include.
8269 * ser-base.c: Update include.
8270 * remote.c: Update include.
8271 * remote-notif.c: Update include.
8272 * remote-fileio.c: Update include.
8273 * record-full.c: Update include.
8274 * record-btrace.c: Update include.
8275 * python/python.c: Update include.
8276 * posix-hdep.c: Update include.
8277 * mingw-hdep.c: Update include.
8278 * mi/mi-main.c: Update include.
8279 * mi/mi-interp.c: Update include.
8280 * main.c: Update include.
8281 * linux-nat.c: Update include.
8282 * interps.c: Update include.
8283 * infrun.c: Update include.
8284 * inf-loop.c: Update include.
8285 * event-top.c: Update include.
8286 * event-loop.c: Move to ../gdbsupport/.
8287 * event-loop.h: Move to ../gdbsupport/.
8288 * async-event.h: Update include.
8289 * Makefile.in (COMMON_SFILES, HFILES_NO_SRCDIR): Update.
8290
8291 2020-04-13 Tom Tromey <tom@tromey.com>
8292
8293 * tui/tui-win.c: Include async-event.h.
8294 * remote.c: Include async-event.h.
8295 * remote-notif.c: Include async-event.h.
8296 * record-full.c: Include async-event.h.
8297 * record-btrace.c: Include async-event.h.
8298 * infrun.c: Include async-event.h.
8299 * event-top.c: Include async-event.h.
8300 * event-loop.h: Move some declarations to async-event.h.
8301 * event-loop.c: Don't include ser-event.h or top.h. Move some
8302 code to async-event.c.
8303 * async-event.h: New file.
8304 * async-event.c: New file.
8305 * Makefile.in (COMMON_SFILES): Add async-event.c.
8306 (HFILES_NO_SRCDIR): Add async-event.h.
8307
8308 2020-04-13 Tom Tromey <tom@tromey.com>
8309
8310 * utils.c (flush_streams): New function.
8311 * event-loop.c (gdb_wait_for_event): Call flush_streams.
8312
8313 2020-04-13 Tom Tromey <tom@tromey.com>
8314
8315 * event-loop.c (handle_file_event): Use warning, not
8316 printf_unfiltered.
8317
8318 2020-04-13 Tom Tromey <tom@tromey.com>
8319
8320 * event-loop.c: Include <chrono>.
8321
8322 2020-04-13 Tom Tromey <tom@tromey.com>
8323
8324 * gdb_select.h: Move to ../gdbsupport/.
8325 * event-loop.c: Update include path.
8326 * top.c: Update include path.
8327 * ser-base.c: Update include path.
8328 * ui-file.c: Update include path.
8329 * ser-tcp.c: Update include path.
8330 * guile/scm-ports.c: Update include path.
8331 * posix-hdep.c: Update include path.
8332 * ser-unix.c: Update include path.
8333 * gdb_usleep.c: Update include path.
8334 * mingw-hdep.c: Update include path.
8335 * inflow.c: Update include path.
8336 * infrun.c: Update include path.
8337 * event-top.c: Update include path.
8338
8339 2020-04-13 Tom Tromey <tom@tromey.com>
8340
8341 * configure: Rebuild.
8342 * configure.ac: Remove checks that are now in GDB_AC_COMMON.
8343
8344 2020-04-13 Tom Tromey <tom@tromey.com>
8345
8346 * event-loop.h (start_event_loop): Don't declare.
8347 * event-loop.c (start_event_loop): Move...
8348 * main.c (start_event_loop): ...here. Now static.
8349
8350 2020-04-13 Sergio Durigan Junior <sergiodj@sergiodj.net>
8351
8352 * MAINTAINERS: Update my email address.
8353
8354 2020-04-12 Kamil Rytarowski <n54@gmx.com>
8355
8356 * nbsd-nat.c (nbsd_nat_target::info_proc): Add IP_MINIMAL and
8357 IP_ALL.
8358
8359 2020-04-12 Kamil Rytarowski <n54@gmx.com>
8360
8361 * nbsd-nat.c (nbsd_pid_to_cmdline): Add.
8362 (nbsd_nat_target::info_proc): Add do_cmdline.
8363
8364 2020-04-12 Kamil Rytarowski <n54@gmx.com>
8365
8366 * nbsd-nat.c (nbsd_pid_to_cwd): Add.
8367 (nbsd_nat_target::info_proc): Add do_cwd.
8368
8369 2020-04-12 Kamil Rytarowski <n54@gmx.com>
8370
8371 * nbsd-nat.c (nbsd_nat_target::info_proc): Add do_exe.
8372
8373 2020-04-11 Kamil Rytarowski <n54@gmx.com>
8374
8375 * nbsd-nat.c; Include "nbsd-tdep.h" and "gdbarch.h".
8376 * nbsd-nat.c (nbsd_nat_target::find_memory_regions)
8377 (nbsd_nat_target::info_proc): New functions.
8378 * nbsd-nat.c (kinfo_get_vmmap): New function.
8379 * nbsd-nat.c (nbsd_nat_target::info_proc) Use
8380 nbsd_info_proc_mappings_header and nbsd_info_proc_mappings_entry.
8381 * nbsd-tdep.c (nbsd_info_proc_mappings_header)
8382 (nbsd_info_proc_mappings_entry, nbsd_vm_map_entry_flags): New
8383 functions.
8384 * nbsd-tdep.c (KINFO_VME_PROT_READ, KINFO_VME_PROT_WRITE)
8385 (KINFO_VME_PROT_EXEC, KINFO_VME_FLAG_COW)
8386 (KINFO_VME_FLAG_NEEDS_COPY, KINFO_VME_FLAG_NOCOREDUMP)
8387 (KINFO_VME_FLAG_PAGEABLE, KINFO_VME_FLAG_GROWS_UP)
8388 (KINFO_VME_FLAG_GROWS_DOWN): New.
8389
8390 2020-04-10 Artur Shepilko <nomadbyte@gmail.com>
8391
8392 * utils.c (copy_bitwise): Use unsigned 0 constant as operand of
8393 bit shift.
8394
8395 2020-04-10 Tom Tromey <tromey@adacore.com>
8396
8397 * symfile.c (symbol_file_add_separate): Preserve OBJF_MAINLINE.
8398
8399 2020-04-10 Tom Tromey <tromey@adacore.com>
8400
8401 * symtab.c (get_symbol_address, get_msymbol_address): Skip
8402 separate debug files.
8403
8404 2020-04-10 Hannes Domani <ssbssa@yahoo.de>
8405
8406 * nat/windows-nat.c (STATUS_WX86_BREAKPOINT, STATUS_WX86_SINGLE_STEP):
8407 Move to...
8408 * nat/windows-nat.h (STATUS_WX86_BREAKPOINT, STATUS_WX86_SINGLE_STEP):
8409 ... here.
8410 * windows-nat.c (windows_nat_target::get_windows_debug_event):
8411 Check for STATUS_WX86_BREAKPOINT.
8412 (windows_nat_target::wait): Same.
8413
8414 2020-04-10 Tom de Vries <tdevries@suse.de>
8415
8416 PR cli/25808
8417 * python/lib/gdb/__init__.py: Initialize lexer with stripnl=False.
8418
8419 2020-04-09 Simon Marchi <simon.marchi@polymtl.ca>
8420
8421 * MAINTAINERS (Global Maintainers): Add Tom de Vries.
8422 (Write After Approval): Remove Tom de Vries.
8423
8424 2020-04-09 Bernd Edlinger <bernd.edlinger@hotmail.de>
8425
8426 revert partially:
8427 2020-04-01 Bernd Edlinger <bernd.edlinger@hotmail.de>
8428
8429 * buildsym.c (record_line): Fix undefined behavior and preserve
8430 lines at eof.
8431
8432 2020-04-09 Kamil Rytarowski <n54@gmx.com>
8433
8434 * auxv.h (svr4_auxv_parse): New.
8435 * auxv.c (default_auxv_parse): Split into default_auxv_parse
8436 and generic_auxv_parse.
8437 (svr4_auxv_parse): Add.
8438 * obsd-tdep.c: Include "auxv.h".
8439 (obsd_auxv_parse): Remove.
8440 (obsd_init_abi): Remove comment.
8441 (obsd_init_abi): Change set_gdbarch_auxv_parse passed argument
8442 from `obsd_auxv_parse' to `svr4_auxv_parse'.
8443 * nbsd-tdep.c: Include "auxv.h".
8444 (nbsd_init_abi): Call set_gdbarch_auxv_parse.
8445
8446 2020-04-08 Tom Tromey <tromey@adacore.com>
8447
8448 * nat/windows-nat.h (last_wait_event): Don't declare.
8449 (wait_for_debug_event): Update comment.
8450 * nat/windows-nat.c (last_wait_event): Now static.
8451
8452 2020-04-08 Tom Tromey <tromey@adacore.com>
8453
8454 * windows-nat.c (wait_for_debug_event): Move to
8455 nat/windows-nat.c.
8456 * nat/windows-nat.h (wait_for_debug_event): Declare.
8457 * nat/windows-nat.c (wait_for_debug_event): Move from
8458 windows-nat.c. No longer static.
8459
8460 2020-04-08 Tom Tromey <tromey@adacore.com>
8461
8462 * windows-nat.c (get_windows_debug_event): Use
8463 fetch_pending_stop.
8464 * nat/windows-nat.h (fetch_pending_stop): Declare.
8465 * nat/windows-nat.c (fetch_pending_stop): New function.
8466
8467 2020-04-08 Tom Tromey <tromey@adacore.com>
8468
8469 * windows-nat.c (windows_continue): Use matching_pending_stop and
8470 continue_last_debug_event.
8471 * nat/windows-nat.h (matching_pending_stop)
8472 (continue_last_debug_event): Declare.
8473 * nat/windows-nat.c (DEBUG_EVENTS): New define.
8474 (matching_pending_stop, continue_last_debug_event): New
8475 functions.
8476
8477 2020-04-08 Tom Tromey <tromey@adacore.com>
8478
8479 * windows-nat.c (MS_VC_EXCEPTION): Move to nat/windows-nat.c.
8480 (handle_exception_result): Move to nat/windows-nat.h.
8481 (DEBUG_EXCEPTION_SIMPLE): Remove.
8482 (windows_nat::handle_ms_vc_exception): New function.
8483 (handle_exception): Move to nat/windows-nat.c.
8484 (get_windows_debug_event): Update.
8485 (STATUS_WX86_BREAKPOINT, STATUS_WX86_SINGLE_STEP): Move to
8486 nat/windows-nat.c.
8487 * nat/windows-nat.h (handle_ms_vc_exception): Declare.
8488 (handle_exception_result): Move from windows-nat.c.
8489 (handle_exception): Declare.
8490 * nat/windows-nat.c (MS_VC_EXCEPTION, handle_exception)
8491 (STATUS_WX86_SINGLE_STEP, STATUS_WX86_BREAKPOINT): Move from
8492 windows-nat.c.
8493
8494 2020-04-08 Tom Tromey <tromey@adacore.com>
8495
8496 * windows-nat.c (exception_count, event_count): Remove.
8497 (handle_exception, get_windows_debug_event)
8498 (do_initial_windows_stuff): Update.
8499
8500 2020-04-08 Tom Tromey <tromey@adacore.com>
8501
8502 * windows-nat.c (windows_nat::handle_load_dll)
8503 (windows_nat::handle_unload_dll): Rename. No longer static.
8504 * nat/windows-nat.h (handle_load_dll, handle_unload_dll):
8505 Declare.
8506
8507 2020-04-08 Tom Tromey <tromey@adacore.com>
8508
8509 * complaints.h (stop_whining): Declare at top-level.
8510 (complaint): Don't declare stop_whining.
8511
8512 2020-04-08 Tom Tromey <tromey@adacore.com>
8513
8514 * windows-nat.c (windows_nat::handle_output_debug_string):
8515 Rename. No longer static.
8516 * nat/windows-nat.h (handle_output_debug_string): Declare.
8517
8518 2020-04-08 Tom Tromey <tromey@adacore.com>
8519
8520 * windows-nat.c (current_process_handle, current_process_id)
8521 (main_thread_id, last_sig, current_event, last_wait_event)
8522 (current_windows_thread, desired_stop_thread_id, pending_stops)
8523 (struct pending_stop, siginfo_er): Move to nat/windows-nat.c.
8524 (display_selectors, fake_create_process)
8525 (get_windows_debug_event): Update.
8526 * nat/windows-nat.h (current_process_handle, current_process_id)
8527 (main_thread_id, last_sig, current_event, last_wait_event)
8528 (current_windows_thread, desired_stop_thread_id, pending_stops)
8529 (struct pending_stop, siginfo_er): Move from windows-nat.c.
8530 * nat/windows-nat.c (current_process_handle, current_process_id)
8531 (main_thread_id, last_sig, current_event, last_wait_event)
8532 (current_windows_thread, desired_stop_thread_id, pending_stops)
8533 (siginfo_er): New globals. Move from windows-nat.c.
8534
8535 2020-04-08 Tom Tromey <tromey@adacore.com>
8536
8537 * windows-nat.c (get_image_name): Move to nat/windows-nat.c.
8538 (handle_load_dll): Update.
8539 * nat/windows-nat.c (get_image_name): Move from windows-nat.c.
8540
8541 2020-04-08 Tom Tromey <tromey@adacore.com>
8542
8543 * windows-nat.c (enum thread_disposition_type): Move to
8544 nat/windows-nat.h.
8545 (windows_nat::thread_rec): Rename from thread_rec. No longer
8546 static.
8547 (windows_add_thread, windows_nat_target::fetch_registers)
8548 (windows_nat_target::store_registers, handle_exception)
8549 (windows_nat_target::resume, get_windows_debug_event)
8550 (windows_nat_target::get_tib_address)
8551 (windows_nat_target::thread_name)
8552 (windows_nat_target::thread_alive): Update.
8553 * nat/windows-nat.h (enum thread_disposition_type): Move from
8554 windows-nat.c.
8555 (thread_rec): Declare.
8556
8557 2020-04-08 Tom Tromey <tromey@adacore.com>
8558
8559 * windows-nat.c: Add "using namespace".
8560 * nat/windows-nat.h: Wrap contents in windows_nat namespace.
8561 * nat/windows-nat.c: Wrap contents in windows_nat namespace.
8562
8563 2020-04-08 Tom Tromey <tromey@adacore.com>
8564
8565 * nat/windows-nat.h (struct windows_thread_info): Declare
8566 destructor.
8567 * nat/windows-nat.c (~windows_thread_info): New.
8568
8569 2020-04-08 Tom Tromey <tromey@adacore.com>
8570
8571 PR gdb/22992
8572 * windows-nat.c (current_event): Update comment.
8573 (last_wait_event, desired_stop_thread_id): New globals.
8574 (struct pending_stop): New.
8575 (pending_stops): New global.
8576 (windows_nat_target) <stopped_by_sw_breakpoint>
8577 <supports_stopped_by_sw_breakpoint>: New methods.
8578 (windows_fetch_one_register): Add assertions. Adjust PC.
8579 (windows_continue): Handle pending stops. Suspend other threads
8580 when stepping. Use last_wait_event
8581 (wait_for_debug_event): New function.
8582 (get_windows_debug_event): Use wait_for_debug_event. Handle
8583 pending stops. Queue spurious stops.
8584 (windows_nat_target::wait): Set stopped_at_software_breakpoint.
8585 (windows_nat_target::kill): Use wait_for_debug_event.
8586 * nat/windows-nat.h (struct windows_thread_info)
8587 <stopped_at_software_breakpoint>: New field.
8588 * nat/windows-nat.c (windows_thread_info::resume): Clear
8589 stopped_at_software_breakpoint.
8590
8591 2020-04-08 Tom Tromey <tromey@adacore.com>
8592
8593 * windows-nat.c (enum thread_disposition_type): New.
8594 (thread_rec): Replace "get_context" parameter with "disposition";
8595 change type.
8596 (windows_add_thread, windows_nat_target::fetch_registers)
8597 (windows_nat_target::store_registers, handle_exception)
8598 (windows_nat_target::resume, get_windows_debug_event)
8599 (windows_nat_target::get_tib_address)
8600 (windows_nat_target::thread_name)
8601 (windows_nat_target::thread_alive): Update.
8602
8603 2020-04-08 Tom Tromey <tromey@adacore.com>
8604
8605 * windows-nat.c (thread_rec): Use windows_thread_info::suspend.
8606 (windows_continue): Use windows_continue::resume.
8607 * nat/windows-nat.h (struct windows_thread_info) <suspend,
8608 resume>: Declare new methods.
8609 * nat/windows-nat.c: New file.
8610 * configure.nat (NATDEPFILES): Add nat/windows-nat.o when needed.
8611
8612 2020-04-08 Tom Tromey <tromey@adacore.com>
8613
8614 * windows-nat.c (windows_add_thread, windows_delete_thread)
8615 (windows_nat_target::fetch_registers)
8616 (windows_nat_target::store_registers, fake_create_process)
8617 (windows_nat_target::resume, windows_nat_target::resume)
8618 (get_windows_debug_event, windows_nat_target::wait)
8619 (windows_nat_target::pid_to_str)
8620 (windows_nat_target::get_tib_address)
8621 (windows_nat_target::get_ada_task_ptid)
8622 (windows_nat_target::thread_name)
8623 (windows_nat_target::thread_alive): Use lwp, not tid.
8624
8625 2020-04-08 Tom Tromey <tromey@adacore.com>
8626
8627 * windows-nat.c (handle_exception)
8628 (windows_nat_target::thread_name): Update.
8629 * nat/windows-nat.h (windows_thread_info): Remove destructor.
8630 <name>: Now unique_xmalloc_ptr.
8631
8632 2020-04-08 Tom Tromey <tromey@adacore.com>
8633
8634 * windows-nat.c (thread_rec)
8635 (windows_nat_target::fetch_registers): Update.
8636 * nat/windows-nat.h (struct windows_thread_info) <suspended>:
8637 Update comment.
8638 <debug_registers_changed, reload_context>: Now bool.
8639
8640 2020-04-08 Tom Tromey <tromey@adacore.com>
8641
8642 * windows-nat.c (windows_add_thread): Use new.
8643 (windows_init_thread_list, windows_delete_thread): Use delete.
8644 (get_windows_debug_event): Update.
8645 * nat/windows-nat.h (struct windows_thread_info): Add constructor,
8646 destructor, and initializers.
8647
8648 2020-04-08 Tom Tromey <tromey@adacore.com>
8649
8650 * windows-nat.c (struct windows_thread_info): Remove.
8651 * nat/windows-nat.h: New file.
8652
8653 2020-04-08 Tom Tromey <tromey@adacore.com>
8654
8655 * windows-nat.c (struct windows_thread_info) <tid>: Rename from "id".
8656 (thread_rec, windows_add_thread, windows_delete_thread)
8657 (windows_continue): Update.
8658
8659 2020-04-08 Tom Tromey <tromey@adacore.com>
8660
8661 * windows-nat.c (struct windows_thread_info): Remove typedef.
8662 (thread_head): Remove.
8663 (thread_list): New global.
8664 (thread_rec, windows_add_thread, windows_init_thread_list)
8665 (windows_delete_thread, windows_continue): Update.
8666
8667 2020-04-08 Simon Marchi <simon.marchi@polymtl.ca>
8668
8669 * windows-tdep.h (windows_init_abi): Add comment.
8670 (cygwin_init_abi): New declaration.
8671 * windows-tdep.c: Split signal enumeration in two, one for
8672 Windows and one for Cygwin.
8673 (windows_gdb_signal_to_target): Only deal with signal of the
8674 Windows OS ABI.
8675 (cygwin_gdb_signal_to_target): New function.
8676 (windows_init_abi): Rename to windows_init_abi_common, don't set
8677 gdb_signal_to_target gdbarch method. Add new new function with
8678 this name.
8679 (cygwin_init_abi): New function.
8680 * amd64-windows-tdep.c (amd64_windows_init_abi_common): Add
8681 comment. Don't call windows_init_abi.
8682 (amd64_windows_init_abi): Add comment, call windows_init_abi.
8683 (amd64_cygwin_init_abi): Add comment, call cygwin_init_abi.
8684 * i386-windows-tdep.c (i386_windows_init_abi): Rename to
8685 i386_windows_init_abi_common, don't call windows_init_abi. Add
8686 a new function of this name.
8687 (i386_cygwin_init_abi): New function.
8688 (_initialize_i386_windows_tdep): Bind i386_cygwin_init_abi to
8689 OS ABI Cygwin.
8690
8691 2020-04-08 Simon Marchi <simon.marchi@polymtl.ca>
8692
8693 * dwarf2/read.c (read_gdb_index_from_buffer): Remove objfile
8694 parameter.c.
8695 (dwarf2_read_gdb_index): Update.
8696
8697 2020-04-07 Kamil Rytarowski <n54@gmx.com>
8698
8699 * nbsd-tdep.c: Include "objfiles.h".
8700 (nbsd_skip_solib_resolver): New.
8701 (nbsd_init_abi): Call set_gdbarch_skip_solib_resolver().
8702
8703 2020-04-07 Nitika Achra <Nitika.Achra@amd.com>
8704
8705 * dwarf2/loc.c (loclist_describe_location): Call the function decode_debug_loclists_
8706 addresses if DWARF version is 5 or more because DW_LLE_start* or DW_LLE_offset_pair
8707 with DW_LLE_base_addressx are being emitted in DWARFv5.
8708 Add the newly added kind DW_LOC_OFFSET_PAIR also.
8709 The length of location description is an unsigned ULEB integer in DWARFv5 instead of
8710 unsigned integer.
8711
8712 2020-04-07 Nitika Achra <Nitika.Achra@amd.com>
8713
8714 * dwarf2/loc.c (enum debug_loc_kind): Add a new kind DEBUG_LOC_OFFSET_PAIR.
8715 (dwarf2_find_location_expression): Call the function decode_debug_loclists_
8716 addresses if DWARF version is 5 or more. DW_LLE_start* or DW_LLE_offset_pair
8717 with DW_LLE_base_addressx are being emitted in DWARFv5 instead of DW_LLE_GNU*.
8718 Add applicable base address if the entry is DW_LLE_offset_pair from DWO.
8719 (decode_debug_loclists_addresses): Return DEBUG_LOC_OFFSET_PAIR instead of
8720 DEBUG_LOC_START_END in case of DW_LLE_offset_pair.
8721
8722
8723 2020-04-07 Nitika Achra <Nitika.Achra@amd.com>
8724
8725 * dwarf2/read.c (cu_debug_loc_section): Added the declaration for the function.
8726 (read_loclist_index): New function definition.
8727 (lookup_loclist_base): New function definition.
8728 (read_loclist_header): New function definition.
8729 (dwarf2_cu): Add loclist_base and loclist_header field.
8730 (dwarf2_locate_dwo_sections): Handle .debug_loclists.dwo section.
8731 (read_full_die_1): Read the value of DW_AT_loclists_base.
8732 (read_attribute_reprocess): Handle DW_FORM_loclistx.
8733 (read_attribute_value): Handle DW_FORM_loclistx.
8734 (skip_one_die): Handle DW_FORM_loclistx.
8735 (loclist_header): New structure declaration.
8736 * dwarf2/attribute.c (form_is_section_offset): Handle DW_FORM_loclistx.
8737
8738 2020-04-07 Simon Marchi <simon.marchi@polymtl.ca>
8739
8740 * dwarf2/read.h (struct dwarf2_psymtab): Remove two-parameters
8741 constructor. Remove `addr` parameter from other constructor and
8742 add `per_cu` parameter.
8743 * dwarf2/read.c (create_partial_symtab): Update.
8744
8745 2020-04-07 Tom de Vries <tdevries@suse.de>
8746
8747 PR symtab/25796
8748 * dwarf2/read.c (can_have_DW_AT_const_value_p): New function.
8749 (partial_die_info::fixup): Inherit has_const_value.
8750
8751 2020-04-07 Tom de Vries <tdevries@suse.de>
8752
8753 * psymtab.c (maintenance_check_psymtabs): Skip static LOC_BLOCK
8754 symbols without address.
8755
8756 2020-04-06 Kamil Rytarowski <n54@gmx.com>
8757
8758 * nbsd-nat.h (struct thread_info): Add forward declaration.
8759 (nbsd_nat_target::thread_alive): Add.
8760 (nbsd_nat_target::thread_name): Likewise.
8761 (nbsd_nat_target::update_thread_list): Likewise.
8762 (update_thread_list::post_attach): Likewise.
8763 (post_attach::pid_to_str): Likewise.
8764 * nbsd-nat.c: Include "gdbthread.h" and "inferior.h".
8765 (nbsd_thread_lister): Add.
8766 (nbsd_nat_target::thread_alive): Likewise.
8767 (nbsd_nat_target::thread_name): Likewise.
8768 (nbsd_add_threads): Likewise.
8769 (update_thread_list::post_attach): Likewise.
8770 (nbsd_nat_target::update_thread_list): Likewise.
8771 (post_attach::pid_to_str): Likewise.
8772
8773 2020-04-06 Tom Tromey <tromey@adacore.com>
8774
8775 * ada-valprint.c (print_variant_part): Extract the variant field.
8776 (print_field_values): Use the field as the outer value when
8777 recursing.
8778
8779 2020-04-06 Tom Tromey <tromey@adacore.com>
8780
8781 * sh-nbsd-tdep.c: Include nbsd-tdep.h.
8782 * ppc-nbsd-tdep.c: Include nbsd-tdep.h.
8783 * mips-nbsd-tdep.c (mipsnbsd_init_abi): Add missing ";".
8784 * arm-nbsd-tdep.c: Include nbsd-tdep.h.
8785 * hppa-nbsd-tdep.c: Include nbsd-tdep.h.
8786
8787 2020-04-06 Tom Tromey <tromey@adacore.com>
8788
8789 * dwarf2/read.c (read_base_type) <DW_ATE_complex_float>: Handle
8790 TYPE_CODE_ERROR.
8791
8792 2020-04-06 Kamil Rytarowski <n54@gmx.com>
8793
8794 * nbsd-tdep.c: Include "gdbarch.h".
8795 Define enum with NetBSD signal numbers.
8796 (nbsd_gdb_signal_from_target, nbsd_gdb_signal_to_target): New.
8797 * alpha-nbsd-tdep.c (alphanbsd_init_abi): Call nbsd_init_abi().
8798 * amd64-nbsd-tdep.c (amd64nbsd_init_abi): Likewise.
8799 * arm-nbsd-tdep.c (arm_netbsd_elf_init_abi): Likewise.
8800 * hppa-nbsd-tdep.c (hppanbsd_init_abi): Likewise.
8801 * i386-nbsd-tdep.c (i386nbsd_init_abi): Likewise.
8802 * mips-nbsd-tdep.c (nbsd_init_abi): Likewise.
8803 * ppc-nbsd-tdep.c (ppcnbsd_init_abi): Likewise.
8804 * sh-nbsd-tdep.c (shnbsd_init_abi): Likewise.
8805 * sparc-nbsd-tdep.c (sparc32nbsd_init_abi): Likewise.
8806 * sparc64-nbsd-tdep.c (sparc64nbsd_init_abi): Likewise.
8807 * vax-nbsd-tdep.c (vaxnbsd_elf_init_abi): Likewise.
8808
8809 2020-04-03 Hannes Domani <ssbssa@yahoo.de>
8810
8811 PR gdb/25325
8812 * dwarf2/read.c (read_enumeration_type): Fix typed enum attributes.
8813
8814 2020-04-03 Tom Tromey <tromey@adacore.com>
8815
8816 * dwarf2/loc.c (disassemble_dwarf_expression) <DW_OP_const_type>:
8817 Read constant block.
8818
8819 2020-04-02 Simon Marchi <simon.marchi@polymtl.ca>
8820
8821 * gdb_bfd.h: Include gdbsupport/byte-vector.h.
8822 (gdb_bfd_get_full_section_contents): New declaration.
8823 * gdb_bfd.c (gdb_bfd_get_full_section_contents): New function.
8824 * windows-tdep.c (is_linked_with_cygwin_dll): Use
8825 gdb_bfd_get_full_section_contents.
8826
8827 2020-04-02 Simon Marchi <simon.marchi@polymtl.ca>
8828
8829 * exec.c (build_section_table): Replace internal_error with
8830 gdb_assert.
8831 (section_table_xfer_memory_partial): Likewise.
8832 * mdebugread.c (parse_partial_symbols): Likewise.
8833 * psymtab.c (lookup_partial_symbol): Likewise.
8834 * utils.c (wrap_here): Likewise.
8835
8836 2020-04-02 Tom Tromey <tromey@adacore.com>
8837
8838 * f-lang.c (build_fortran_types): Use arch_type to initialize
8839 builtin_complex_s32 in the TYPE_CODE_ERROR case.
8840
8841 2020-04-02 Tom Tromey <tromey@adacore.com>
8842
8843 * dwarf2/read.c (partial_die_info::read): Do not create a vector
8844 of attributes.
8845
8846 2020-04-02 Andrew Burgess <andrew.burgess@embecosm.com>
8847 Bernd Edlinger <bernd.edlinger@hotmail.de>
8848 Tom Tromey <tromey@adacore.com>
8849
8850 * buildsym.c (buildsym_compunit::record_line): Remove
8851 deduplication code.
8852
8853 2020-04-02 Tom de Vries <tdevries@suse.de>
8854
8855 PR ada/24671
8856 * dwarf2/read.c (dw2_map_matching_symbols): Handle -readnow.
8857
8858 2020-04-02 Tom de Vries <tdevries@suse.de>
8859
8860 * dwarf2/read.c (dwarf2_gdb_index_functions,
8861 dwarf2_debug_names_functions): Init lookup_global_symbol_language with
8862 NULL.
8863 * psymtab.c (psym_lookup_global_symbol_language): New function.
8864 (psym_functions): Init psym_lookup_global_symbol_language with
8865 psym_lookup_global_symbol_language.
8866 * symfile-debug.c (debug_sym_quick_functions): Init
8867 lookup_global_symbol_language with NULL.
8868 * symfile.c (set_initial_language): Remove fixme comment.
8869 * symfile.h (struct quick_symbol_functions): Add
8870 lookup_global_symbol_language.
8871 * symtab.c (find_quick_global_symbol_language): New function.
8872 (find_main_name): Use find_quick_global_symbol_language.
8873
8874 2020-04-01 Simon Marchi <simon.marchi@polymtl.ca>
8875
8876 * windows-tdep.c (is_linked_with_cygwin_dll): Fix style.
8877
8878 2020-04-01 Bernd Edlinger <bernd.edlinger@hotmail.de>
8879
8880 * buildsym.c (record_line): Fix undefined behavior and preserve
8881 lines at eof.
8882
8883 2020-04-01 Bernd Edlinger <bernd.edlinger@hotmail.de>
8884
8885 * buildsym.c (record_line): Fix the resizing condition.
8886
8887 2020-04-01 Tom Tromey <tom@tromey.com>
8888
8889 * value.h (value_literal_complex): Add comment.
8890 * valops.c (value_literal_complex): Refer to value.h.
8891
8892 2020-04-01 Tom Tromey <tom@tromey.com>
8893
8894 * c-exp.y (FLOAT_KEYWORD, COMPLEX): New tokens.
8895 (scalar_type): New rule, from typebase.
8896 (typebase): Use scalar_type. Recognize complex types.
8897 (field_name): Handle FLOAT_KEYWORD.
8898 (ident_tokens): Add _Complex and __complex__.
8899
8900 2020-04-01 Tom Tromey <tom@tromey.com>
8901
8902 PR exp/25299:
8903 * valarith.c (promotion_type, complex_binop): New functions.
8904 (scalar_binop): Handle complex numbers. Use promotion_type.
8905 (value_pos, value_neg, value_complement): Handle complex numbers.
8906
8907 2020-04-01 Tom Tromey <tom@tromey.com>
8908
8909 * c-exp.y (COMPLEX_INT, COMPLEX_FLOAT): New tokens.
8910 (exp) <COMPLEX_INT, COMPLEX_FLOAT>: New rules.
8911 (parse_number): Handle complex numbers.
8912
8913 2020-04-01 Tom Tromey <tom@tromey.com>
8914
8915 * c-valprint.c (c_decorations): Change complex suffix to "i".
8916
8917 2020-04-01 Tom Tromey <tom@tromey.com>
8918
8919 * valprint.c (generic_value_print_complex): Use accessors.
8920 * value.h (value_real_part, value_imaginary_part): Declare.
8921 * valops.c (value_real_part, value_imaginary_part): New
8922 functions.
8923 * value.c (creal_internal_fn, cimag_internal_fn): Use accessors.
8924
8925 2020-04-01 Tom Tromey <tom@tromey.com>
8926
8927 * stabsread.c (rs6000_builtin_type, read_sun_floating_type)
8928 (read_range_type): Update.
8929 * mdebugread.c (basic_type): Update.
8930 * go-lang.c (build_go_types): Use init_complex_type.
8931 * gdbtypes.h (struct main_type) <complex_type>: New member.
8932 (init_complex_type): Update.
8933 (arch_complex_type): Don't declare.
8934 * gdbtypes.c (init_complex_type): Remove "objfile" parameter.
8935 Make name if none given. Use alloc_type_copy. Look for cached
8936 complex type.
8937 (arch_complex_type): Remove.
8938 (gdbtypes_post_init): Use init_complex_type.
8939 * f-lang.c (build_fortran_types): Use init_complex_type.
8940 * dwarf2/read.c (read_base_type): Update.
8941 * d-lang.c (build_d_types): Use init_complex_type.
8942 * ctfread.c (read_base_type): Update.
8943
8944 2020-04-01 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
8945
8946 * infrun.c (stop_all_threads): Update assertion, plus when
8947 stopping threads, take into account that we might be trying
8948 to stop an all-stop target.
8949 (stop_waiting): Call 'stop_all_threads' if there exists a
8950 non-stop target.
8951
8952 2020-04-01 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
8953
8954 * target.h (exists_non_stop_target): New function declaration.
8955 * target.c (exists_non_stop_target): New function.
8956
8957 2020-04-01 Hannes Domani <ssbssa@yahoo.de>
8958
8959 PR gdb/24789
8960 * eval.c (is_integral_or_integral_reference): New function.
8961 (evaluate_subexp_standard): Allow integer references in
8962 pointer arithmetic.
8963
8964 2020-04-01 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
8965
8966 * remote.c (remote_target::remote_parse_stop_reply): Remove the
8967 check for no ptid in the stop reply when the target is non-stop.
8968
8969 2020-04-01 Tom Tromey <tromey@adacore.com>
8970
8971 * symtab.h (class lookup_name_info) <lookup_name_info>: Change
8972 "name" parameter to rvalue reference. Initialize m_name_holder.
8973 <lookup_name_info>: New overloads.
8974 <name>: Return gdb::string_view.
8975 <c_str>: New method.
8976 <make_ignore_params>: Update.
8977 <search_name_hash>: Update.
8978 <language_lookup_name>: Return const char *.
8979 <m_name>: Change type.
8980 * symtab.c (demangle_for_lookup_info::demangle_for_lookup_info)
8981 (demangle_for_lookup_info::demangle_for_lookup_info): Update.
8982 (lookup_name_info::match_any): Update.
8983 * psymtab.c (match_partial_symbol, lookup_partial_symbol):
8984 Update.
8985 * minsyms.c (linkage_name_str): Update.
8986 * language.c (default_symbol_name_matcher): Update.
8987 * dwarf2/read.c (mapped_index_base::find_name_components_bounds):
8988 Update.
8989 * ada-lang.c (ada_fold_name): Change parameter to string_view.
8990 (ada_lookup_name_info::ada_lookup_name_info): Update.
8991 (literal_symbol_name_matcher): Update.
8992
8993 2020-04-01 Tom Tromey <tromey@adacore.com>
8994
8995 * psymtab.c (psymtab_search_name): Remove function.
8996 (psym_lookup_symbol): Create search name and lookup name here.
8997 (lookup_partial_symbol): Remove "name" parameter; add
8998 lookup_name.
8999 (psym_expand_symtabs_for_function): Update.
9000
9001 2020-03-31 Joel Jones <joelkevinjones@gmail.com>
9002
9003 PR tui/25597:
9004 * python/py-tui.c: Include gdb_curses.h inside of #ifdef TUI.
9005
9006 2020-03-31 Tom Tromey <tromey@adacore.com>
9007
9008 * dwarf2/abbrev.c (abbrev_table::read): Conditionally call
9009 memcpy.
9010
9011 2020-03-30 Nelson Chu <nelson.chu@sifive.com>
9012
9013 * features/riscv/32bit-csr.xml: Regenerated.
9014 * features/riscv/64bit-csr.xml: Regenerated.
9015
9016 2020-03-30 Tom Tromey <tromey@adacore.com>
9017
9018 * ada-valprint.c (print_variant_part): Update.
9019 * ada-lang.h (ada_which_variant_applies): Update.
9020 * ada-lang.c (ada_which_variant_applies): Remove outer_type and
9021 outer_valaddr parameters; replace with "outer" value parameter.
9022 (to_fixed_variant_branch_type): Update.
9023
9024 2020-03-30 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
9025
9026 * ppc-linux-nat.c: Include <algorithm>, <unordered_map>, and
9027 <list>. Remove inclusion of observable.h.
9028 (PPC_DEBUG_CURRENT_VERSION): Move up define.
9029 (struct arch_lwp_info): New struct.
9030 (class ppc_linux_dreg_interface): New class.
9031 (struct ppc_linux_process_info): New struct.
9032 (struct ppc_linux_nat_target) <low_delete_thread, low_new_fork>
9033 <low_new_clone, low_forget_process, low_prepare_to_resume>
9034 <copy_thread_dreg_state, mark_thread_stale>
9035 <mark_debug_registers_changed, register_hw_breakpoint>
9036 <clear_hw_breakpoint, register_wp, clear_wp>
9037 <can_use_watchpoint_cond_accel, calculate_dvc, check_condition>
9038 <num_memory_accesses, get_trigger_type>
9039 <create_watchpoint_request, hwdebug_point_cmp>
9040 <init_arch_lwp_info, get_arch_lwp_info>
9041 <low_stopped_by_watchpoint, low_stopped_data_address>: Declare as
9042 methods.
9043 <struct ptid_hash>: New inner struct.
9044 <m_dreg_interface, m_process_info, m_installed_hw_bps>: Declare
9045 members.
9046 (saved_dabr_value, hwdebug_info, max_slots_number)
9047 (struct hw_break_tuple, struct thread_points, ppc_threads)
9048 (have_ptrace_hwdebug_interface)
9049 (hwdebug_find_thread_points_by_tid)
9050 (hwdebug_insert_point, hwdebug_remove_point): Remove.
9051 (ppc_linux_nat_target::can_use_hw_breakpoint): Use
9052 m_dreg_interface, remove call to PTRACE_SET_DEBUGREG.
9053 (ppc_linux_nat_target::region_ok_for_hw_watchpoint): Add comment,
9054 use m_dreg_interface.
9055 (hwdebug_point_cmp): Change to...
9056 (ppc_linux_nat_target::hwdebug_point_cmp): ...this method. Use
9057 reference arguments instead of pointers.
9058 (ppc_linux_nat_target::ranged_break_num_registers): Use
9059 m_dreg_interface.
9060 (ppc_linux_nat_target::insert_hw_breakpoint): Add comment, use
9061 m_dreg_interface. Call register_hw_breakpoint.
9062 (ppc_linux_nat_target::remove_hw_breakpoint): Add comment, use
9063 m_dreg_interface. Call clear_hw_breakpoint.
9064 (get_trigger_type): Change to...
9065 (ppc_linux_nat_target::get_trigger_type): ...this method. Add
9066 comment.
9067 (ppc_linux_nat_target::insert_mask_watchpoint): Update comment,
9068 use m_dreg_interface. Call register_hw_breakpoint.
9069 (ppc_linux_nat_target::remove_mask_watchpoint): Update comment,
9070 use m_dreg_interface. Call clear_hw_breakpoint.
9071 (can_use_watchpoint_cond_accel): Change to...
9072 (ppc_linux_nat_target::can_use_watchpoint_cond_accel): ...this
9073 method. Update comment, use m_dreg_interface and
9074 m_process_info.
9075 (calculate_dvc): Change to...
9076 (ppc_linux_nat_target::calculate_dvc): ...this method. Use
9077 m_dreg_interface.
9078 (num_memory_accesses): Change to...
9079 (ppc_linux_nat_target::num_memory_accesses): ...this method.
9080 (check_condition): Change to...
9081 (ppc_linux_nat_target::check_condition): ...this method.
9082 (ppc_linux_nat_target::can_accel_watchpoint_condition): Update
9083 comment, use m_dreg_interface.
9084 (create_watchpoint_request): Change to...
9085 (ppc_linux_nat_target::create_watchpoint_request): ...this
9086 method. Use m_dreg_interface.
9087 (ppc_linux_nat_target::insert_watchpoint): Add comment, use
9088 m_dreg_interface. Call register_hw_breakpoint or register_wp.
9089 (ppc_linux_nat_target::remove_watchpoint): Add comment, use
9090 m_dreg_interface. Call clear_hw_breakpoint or clear_wp.
9091 (ppc_linux_nat_target::low_forget_process)
9092 (ppc_linux_nat_target::low_new_fork)
9093 (ppc_linux_nat_target::low_new_clone)
9094 (ppc_linux_nat_target::low_delete_thread)
9095 (ppc_linux_nat_target::low_prepare_to_resume): New methods.
9096 (ppc_linux_nat_target::low_new_thread): Remove previous logic,
9097 only call mark_thread_stale.
9098 (ppc_linux_thread_exit): Remove.
9099 (ppc_linux_nat_target::stopped_data_address): Change to...
9100 (ppc_linux_nat_target::low_stopped_data_address): This. Add
9101 comment, use m_dreg_interface and m_thread_hw_breakpoints.
9102 (ppc_linux_nat_target::stopped_by_watchpoint): Change to...
9103 (ppc_linux_nat_target::stopped_by_watchpoint): This. Add
9104 comment. Call low_stopped_data_address.
9105 (ppc_linux_nat_target::watchpoint_addr_within_range): Use
9106 m_dreg_interface.
9107 (ppc_linux_nat_target::masked_watch_num_registers): Use
9108 m_dreg_interface.
9109 (ppc_linux_nat_target::copy_thread_dreg_state)
9110 (ppc_linux_nat_target::mark_thread_stale)
9111 (ppc_linux_nat_target::mark_debug_registers_changed)
9112 (ppc_linux_nat_target::register_hw_breakpoint)
9113 (ppc_linux_nat_target::clear_hw_breakpoint)
9114 (ppc_linux_nat_target::register_wp)
9115 (ppc_linux_nat_target::clear_wp)
9116 (ppc_linux_nat_target::init_arch_lwp_info)
9117 (ppc_linux_nat_target::get_arch_lwp_info): New methods.
9118 (_initialize_ppc_linux_nat): Remove observer callback.
9119
9120 2020-03-30 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
9121
9122 * ppc-linux-nat.c (ppc_linux_nat_target::store_registers)
9123 (ppc_linux_nat_target::auxv_parse)
9124 (ppc_linux_nat_target::read_description)
9125 (supply_gregset, fill_gregset, supply_fpregset, fill_fpregset):
9126 Move up.
9127
9128 2020-03-30 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
9129
9130 * linux-nat.h (low_new_clone): New method.
9131 * linux-nat.c (linux_handle_extended_wait): Call low_new_clone.
9132
9133 2020-03-29 Simon Marchi <simon.marchi@polymtl.ca>
9134
9135 * dbxread.c (dbx_psymtab_to_symtab_1): Rename to...
9136 (dbx_expand_psymtab): ... this.
9137 (start_psymtab): Update.
9138 * mdebugread.c (psymtab_to_symtab_1): Rename to...
9139 (mdebug_expand_psymtab): ... this.
9140 (parse_partial_symbols): Update.
9141 (new_psymtab): Update.
9142 * xcoffread.c (xcoff_psymtab_to_symtab_1): Rename to...
9143 (xcoff_expand_psymtab): ... this.
9144 (xcoff_start_psymtab): Update.
9145
9146 2020-03-29 Simon Marchi <simon.marchi@polymtl.ca>
9147
9148 * psympriv.h (partial_symtab) <read_dependencies>: Rename to...
9149 <expand_dependencies>: ... this.
9150 * psymtab.c (partial_symtab::read_dependencies): Rename to...
9151 (partial_symtab::expand_dependencies): ... this.
9152 * dwarf2/read.c (dwarf2_include_psymtab) <expand_psymtab>:
9153 Update.
9154 (dwarf2_psymtab::expand_psymtab): Update.
9155 * dbxread.c (dbx_psymtab_to_symtab_1): Update.
9156 * mdebugread.c (psymtab_to_symtab_1): Update.
9157 * xcoffread.c (xcoff_psymtab_to_symtab_1): Update.
9158
9159 2020-03-29 Simon Marchi <simon.marchi@polymtl.ca>
9160
9161 * psympriv.h (discard_psymtab): Remove.
9162 * dbxread.c (dbx_end_psymtab): Update.
9163 * xcoffread.c (xcoff_end_psymtab): Update.
9164
9165 2020-03-28 Tom Tromey <tom@tromey.com>
9166
9167 * dwarf2/attribute.h (struct attribute) <form_is_constant>: Update
9168 comment.
9169
9170 2020-03-28 Tom Tromey <tom@tromey.com>
9171
9172 * dwarf2/read.c (read_attribute_reprocess): Fix formatting.
9173
9174 2020-03-27 Hannes Domani <ssbssa@yahoo.de>
9175
9176 * windows-nat.c (windows_add_all_dlls): Fix system dll paths.
9177
9178 2020-03-26 John Baldwin <jhb@FreeBSD.org>
9179
9180 * fbsd-tdep.c (fbsd_print_auxv_entry): Handle AT_FREEBSD_BSDFLAGS.
9181
9182 2020-03-26 Tom Tromey <tom@tromey.com>
9183
9184 * dwarf2/read.c (handle_data_member_location, dwarf2_add_field)
9185 (mark_common_block_symbol_computed, read_tag_string_type)
9186 (attr_to_dynamic_prop, read_subrange_type): Update.
9187 (dwarf2_get_ref_die_offset, dwarf2_get_attr_constant_value): Move
9188 to be methods on struct attribute.
9189 (skip_one_die, process_imported_unit_die, read_namespace_alias)
9190 (read_call_site_scope, partial_die_info::read)
9191 (partial_die_info::read, lookup_die_type, follow_die_ref):
9192 Update.
9193 * dwarf2/attribute.c (attribute::get_ref_die_offset): New method,
9194 from dwarf2_get_ref_die_offset.
9195 (attribute::constant_value): New method, from
9196 dwarf2_get_attr_constant_value.
9197 * dwarf2/attribute.h (struct attribute) <get_ref_die_offset>:
9198 Declare method.
9199 <constant_value>: New method.
9200
9201 2020-03-26 Tom Tromey <tom@tromey.com>
9202
9203 * dwarf2/read.c (dwarf_unit_type_name, dwarf_tag_name)
9204 (dwarf_attr_name, dwarf_form_name, dwarf_bool_name)
9205 (dwarf_type_encoding_name): Move to stringify.c.
9206 * Makefile.in (COMMON_SFILES): Add dwarf2/stringify.c.
9207 * dwarf2/stringify.c: New file.
9208 * dwarf2/stringify.h: New file.
9209
9210 2020-03-26 Tom Tromey <tom@tromey.com>
9211
9212 * dwarf2/die.h (struct die_info) <addr_base, ranges_base>:
9213 Rewrite.
9214
9215 2020-03-26 Tom Tromey <tom@tromey.com>
9216
9217 * dwarf2/die.h (struct die_info) <addr_base, ranges_base>: New
9218 methods.
9219 * dwarf2/read.c (lookup_addr_base): Move to die.h.
9220 (lookup_ranges_base): Likewise.
9221 (read_cutu_die_from_dwo, read_full_die_1): Update.
9222
9223 2020-03-26 Tom Tromey <tom@tromey.com>
9224
9225 * dwarf2/read.c (read_import_statement, read_file_scope)
9226 (read_type_unit_scope, inherit_abstract_dies, read_func_scope)
9227 (read_lexical_block_scope, read_call_site_scope)
9228 (dwarf2_get_subprogram_pc_bounds, get_scope_pc_bounds)
9229 (handle_struct_member_die, process_structure_scope)
9230 (update_enumeration_type_from_children)
9231 (process_enumeration_scope, read_array_type, read_common_block)
9232 (read_namespace, read_module, read_subroutine_type): Update.
9233 (sibling_die): Remove.
9234
9235 2020-03-26 Tom Tromey <tom@tromey.com>
9236
9237 * dwarf2/read.c (lookup_addr_base, lookup_ranges_base)
9238 (build_type_psymtabs_reader, read_structure_type)
9239 (read_enumeration_type, read_full_die_1): Update.
9240 (dwarf2_attr_no_follow): Move to die.h.
9241 * dwarf2/die.h (struct die_info) <attr>: New method.
9242
9243 2020-03-26 Tom Tromey <tom@tromey.com>
9244
9245 * dwarf2/read.c (struct dwarf2_cu) <base_known>: Remove.
9246 <base_address>: Now an optional.
9247 (dwarf2_find_base_address, dwarf2_rnglists_process)
9248 (dwarf2_ranges_process, fill_in_loclist_baton)
9249 (dwarf2_symbol_mark_computed): Update.
9250
9251 2020-03-26 Tom Tromey <tom@tromey.com>
9252
9253 * dwarf2/read.c (struct die_info): Move to die.h.
9254 * dwarf2/die.h: New file.
9255
9256 2020-03-26 Tom Tromey <tom@tromey.com>
9257
9258 * dwarf2/line-header.h (dwarf_decode_line_header): Declare.
9259 * dwarf2/read.c
9260 (dwarf2_statement_list_fits_in_line_number_section_complaint):
9261 Move to line-header.c.
9262 (read_checked_initial_length_and_offset, read_formatted_entries):
9263 Likewise.
9264 (dwarf_decode_line_header): Split into two.
9265 * dwarf2/line-header.c
9266 (dwarf2_statement_list_fits_in_line_number_section_complaint):
9267 Move from read.c.
9268 (read_checked_initial_length_and_offset, read_formatted_entries):
9269 Likewise.
9270 (dwarf_decode_line_header): New function, split from read.c.
9271
9272 2020-03-26 Tom Tromey <tom@tromey.com>
9273
9274 * dwarf2/read.h (struct dwarf2_per_objfile) <read_line_string>:
9275 Declare method.
9276 * dwarf2/read.c (read_attribute_value): Update.
9277 (dwarf2_per_objfile::read_line_string): Rename from
9278 read_indirect_line_string.
9279 (read_formatted_entries): Update.
9280
9281 2020-03-26 Tom Tromey <tom@tromey.com>
9282
9283 * dwarf2/macro.c (dwarf_decode_macro_bytes): Use objfile local
9284 variable.
9285
9286 2020-03-26 Tom Tromey <tom@tromey.com>
9287
9288 * dwarf2/macro.h (dwarf_decode_macros): Make section parameter
9289 const.
9290 * dwarf2/macro.c (skip_form_bytes, skip_unknown_opcode)
9291 (dwarf_decode_macro_bytes, dwarf_decode_macros): Make section
9292 parameter const.
9293
9294 2020-03-26 Tom Tromey <tom@tromey.com>
9295
9296 * dwarf2/read.c (dwarf_decode_macros): Make "lh" const.
9297 * dwarf2/macro.h (dwarf_decode_macros): Constify "lh" parameter.
9298 * dwarf2/macro.c (macro_start_file): Constify "lh" parameter.
9299 (dwarf_decode_macro_bytes, dwarf_decode_macros): Likewise.
9300
9301 2020-03-26 Tom Tromey <tom@tromey.com>
9302
9303 * dwarf2/line-header.h (struct line_header) <is_valid_file_index,
9304 file_names_size, file_full_name, file_file_name>: Use const.
9305 <file_name_at, file_names>: Add const overload.
9306 * dwarf2/line-header.c (line_header::file_file_name)
9307 (line_header::file_full_name): Update.
9308
9309 2020-03-26 Tom Tromey <tom@tromey.com>
9310
9311 * dwarf2/read.c (dwarf2_macro_malformed_definition_complaint)
9312 (macro_start_file, consume_improper_spaces)
9313 (parse_macro_definition, skip_form_bytes, skip_unknown_opcode)
9314 (dwarf_parse_macro_header, dwarf_decode_macro_bytes)
9315 (dwarf_decode_macros): Move to macro.c.
9316 * dwarf2/macro.c: New file.
9317 * dwarf2/macro.h: New file.
9318 * Makefile.in (COMMON_SFILES): Add dwarf2/macro.c.
9319
9320 2020-03-26 Tom Tromey <tom@tromey.com>
9321
9322 * dwarf2/section.h (struct dwarf2_section_info) <read_string>: New
9323 method.
9324 * dwarf2/section.c: New method. From
9325 read_indirect_string_at_offset_from.
9326 * dwarf2/read.c (mapped_debug_names::namei_to_name): Update.
9327 (read_indirect_string_at_offset_from): Move to section.c.
9328 (read_indirect_string_at_offset): Rewrite.
9329 (read_indirect_line_string_at_offset): Remove.
9330 (read_indirect_string, read_indirect_line_string)
9331 (dwarf_decode_macro_bytes): Update.
9332
9333 2020-03-26 Tom Tromey <tom@tromey.com>
9334
9335 * dwarf2/section.h (struct dwarf2_section_info)
9336 <overload_complaint>: Declare.
9337 (dwarf2_section_buffer_overflow_complaint): Don't declare.
9338 * dwarf2/section.c (dwarf2_section_info::overflow_complaint):
9339 Rename from dwarf2_section_buffer_overflow_complaint.
9340 * dwarf2/read.c (skip_one_die, partial_die_info::read)
9341 (skip_form_bytes, dwarf_decode_macro_bytes): Update.
9342
9343 2020-03-26 Tom Tromey <tom@tromey.com>
9344
9345 * dwarf2/section.h (dwarf2_section_buffer_overflow_complaint):
9346 Declare.
9347 * dwarf2/section.c (dwarf2_section_buffer_overflow_complaint):
9348 Move from read.c.
9349 * dwarf2/read.c (dwarf2_section_buffer_overflow_complaint): Move
9350 to section.c.
9351
9352 2020-03-26 Tom Tromey <tom@tromey.com>
9353
9354 * dwarf2/read.c (dwarf_decode_macros): Split into two overloads.
9355
9356 2020-03-26 Tom Tromey <tom@tromey.com>
9357
9358 * dwarf2/read.c (macro_start_file): Change "cu" parameter to
9359 "builder".
9360 (dwarf_decode_macro_bytes): Likewise. Add dwarf2_per_objfile
9361 parameter.
9362 (dwarf_decode_macros): Update.
9363
9364 2020-03-26 Tom Tromey <tom@tromey.com>
9365
9366 * dwarf2/read.c (read_attribute_value): Update.
9367 (read_indirect_string_from_dwz): Move to dwz.c; change into
9368 method.
9369 (dwarf_decode_macro_bytes): Update.
9370 * dwarf2/dwz.h (struct dwz_file) <read_string>: Declare method.
9371 * dwarf2/dwz.c: New file.
9372 * Makefile.in (COMMON_SFILES): Add dwz.c.
9373
9374 2020-03-26 Tom Tromey <tom@tromey.com>
9375
9376 * dwarf2/read.h (struct dwz_file): Move to dwz.h.
9377 * dwarf2/read.c: Add include.
9378 * dwarf2/index-write.c: Add include.
9379 * dwarf2/index-cache.c: Add include.
9380 * dwarf2/dwz.h: New file.
9381
9382 2020-03-25 Tom Tromey <tom@tromey.com>
9383
9384 * compile/compile-object-load.c (get_out_value_type): Mention
9385 correct symbol name in error message.
9386
9387 2020-03-25 Hannes Domani <ssbssa@yahoo.de>
9388
9389 * windows-nat.c (windows_add_all_dlls): Fix system dll paths.
9390
9391 2020-03-25 Tom de Vries <tdevries@suse.de>
9392
9393 * symtab.h (is_main_symtab_of_compunit_symtab): New function.
9394 * symmisc.c (dump_symtab_1): Print user and includes fields.
9395 (maintenance_info_symtabs): Same.
9396
9397 2020-03-25 Andrew Burgess <andrew.burgess@embecosm.com>
9398
9399 PR gdb/25534
9400 * riscv-tdep.c (riscv_arg_info::c_offset): Update comment.
9401 (riscv_regcache_cooked_write): New function.
9402 (riscv_push_dummy_call): Use new function.
9403 (riscv_return_value): Likewise.
9404
9405 2020-03-24 Simon Marchi <simon.marchi@polymtl.ca>
9406
9407 * fbsd-nat.c (fbsd_nat_target::follow_fork): Change bool to int.
9408 * fbsd-nat.h (class fbsd_nat_target) <follow_fork>: Likewise.
9409 * inf-ptrace.c (inf_ptrace_target::follow_fork): Likewise.
9410 * inf-ptrace.h (struct inf_ptrace_target) <follow_fork>: Likewise.
9411 * infrun.c (follow_fork): Likewise.
9412 (follow_fork_inferior): Likewise.
9413 * linux-nat.c (linux_nat_target::follow_fork): Likewise.
9414 * linux-nat.h (class linux_nat_target): Likewise.
9415 * remote.c (class remote_target) <follow_fork>: Likewise.
9416 (remote_target::follow_fork): Likewise.
9417 * target-delegates.c: Re-generate.
9418 * target.c (default_follow_fork): Likewise.
9419 (target_follow_fork): Likewise.
9420 * target.h (struct target_ops) <follow_fork>: Likewise.
9421 (target_follow_fork): Likewise.
9422
9423 2020-03-24 Tom de Vries <tdevries@suse.de>
9424
9425 * psymtab.c (maintenance_info_psymtabs): Print user field.
9426
9427 2020-03-20 Tom Tromey <tromey@adacore.com>
9428
9429 * dwarf2/loc.h (dwarf2_evaluate_property): Make "addr_stack"
9430 const.
9431 * dwarf2/loc.c (dwarf2_evaluate_property): Make "addr_stack"
9432 const.
9433
9434 2020-03-20 Simon Marchi <simon.marchi@efficios.com>
9435
9436 * ptrace.m4: Don't check for ptrace declaration.
9437 * config.in: Re-generate.
9438 * configure: Re-generate.
9439 * nat/gdb_ptrace.h: Don't declare ptrace if HAVE_DECL_PTRACE is
9440 not defined.
9441
9442 2020-03-20 Kamil Rytarowski <n54@gmx.com>
9443
9444 * amd64-bsd-nat.c (gdb_ptrace): Change return type from `int' to
9445 `PTRACE_TYPE_RET'.
9446 * i386-bsd-nat.c (gdb_ptrace): Likewise.
9447 * sparc-nat.c (gdb_ptrace): Likewise.
9448 * x86-bsd-nat.c (gdb_ptrace): Likewise.
9449
9450 2020-03-20 Tom Tromey <tromey@adacore.com>
9451
9452 * c-exp.y (lex_one_token): Fix assert.
9453
9454 2020-03-20 Tom Tromey <tromey@adacore.com>
9455
9456 * ada-tasks.c (read_atcb): Use smaller length in strncpy call.
9457 * linux-tdep.c (linux_fill_prpsinfo): Use smaller length in
9458 strncpy call.
9459
9460 2020-03-20 Tom Tromey <tromey@adacore.com>
9461
9462 * symmisc.c (maintenance_print_one_line_table): Use ui_out.
9463
9464 2020-03-20 Tom Tromey <tromey@adacore.com>
9465
9466 * ada-valprint.c (print_variant_part): Remove parameters; switch
9467 to value-based API.
9468 (print_field_values): Likewise.
9469 (ada_val_print_struct_union): Likewise.
9470 (ada_value_print_1): Update.
9471
9472 2020-03-20 Kamil Rytarowski <n54@gmx.com>
9473
9474 * ppc-nbsd-nat.c (ppc_nbsd_nat_target): Inherit from
9475 nbsd_nat_target instead of inf_ptrace_target.
9476 * ppc-nbsd-nat.c: Include "nbsd-nat.h", as we are now using
9477 nbsd_nat_target.
9478
9479 2020-03-20 Kamil Rytarowski <n54@gmx.com>
9480
9481 * hppa-nbsd-nat.c (fetch_registers): New variable lwp and pass
9482 it to the ptrace call.
9483 * (store_registers): Likewise.
9484
9485 2020-03-20 Kamil Rytarowski <n54@gmx.com>
9486
9487 * ppc-nbsd-nat.c (fetch_registers): New variable lwp and pass
9488 it to the ptrace call.
9489 * (store_registers): Likewise.
9490
9491 2020-03-19 Luis Machado <luis.machado@linaro.org>
9492
9493 * nat/aarch64-sve-linux-ptrace.c (aarch64_sve_set_vq): If vg is not
9494 valid, fetch vg value from ptrace.
9495
9496 2020-03-19 Kamil Rytarowski <n54@gmx.com>
9497 * inf-ptrace.h: Disable get_ptrace_pid on NetBSD.
9498 * inf-ptrace.c: Likewise.
9499 * (gdb_ptrace): Add.
9500 * (inf_ptrace_target::resume): Update.
9501 * (inf_ptrace_target::xfer_partial): Likewise.
9502 * (inf_ptrace_peek_poke): Change argument `pid' to `ptid'.
9503 * (inf_ptrace_peek_poke): Update.
9504
9505 2020-03-19 Kamil Rytarowski <n54@gmx.com>
9506
9507 * x86-bsd-nat.c (gdb_ptrace): New.
9508 * (x86bsd_dr_set): Add new argument `ptid'.
9509 * (x86bsd_dr_get, x86bsd_dr_set, x86bsd_dr_set_control,
9510 x86bsd_dr_set_addr): Update.
9511
9512 2020-03-19 Andrew Burgess <andrew.burgess@embecosm.com>
9513
9514 * remote.c (remote_target::process_stop_reply): Handle events for
9515 all threads differently.
9516
9517 2020-03-19 Andrew Burgess <andrew.burgess@embecosm.com>
9518
9519 * completer.c (completion_tracker::remove_completion): Define new
9520 function.
9521 * completer.h (completion_tracker::remove_completion): Declare new
9522 function.
9523 * symtab.c (completion_list_add_symbol): Remove aliasing msymbols
9524 when adding a C++ function symbol.
9525
9526 2020-03-19 Andrew Burgess <andrew.burgess@embecosm.com>
9527
9528 * completer.c (completion_tracker::completion_hash_entry): Define
9529 new class.
9530 (advance_to_filename_complete_word_point): Call
9531 recompute_lowest_common_denominator.
9532 (completion_tracker::completion_tracker): Call discard_completions
9533 to setup the hash table.
9534 (completion_tracker::discard_completions): Allow for being called
9535 from the constructor, pass new equal function, and element deleter
9536 when constructing the hash table. Initialise new class member
9537 variables.
9538 (completion_tracker::maybe_add_completion): Remove use of
9539 m_entries_vec, and store more information into m_entries_hash.
9540 (completion_tracker::recompute_lcd_visitor): New function, most
9541 content taken from...
9542 (completion_tracker::recompute_lowest_common_denominator):
9543 ...here, this now just visits each item in the hash calling the
9544 above visitor.
9545 (completion_tracker::build_completion_result): Remove use of
9546 m_entries_vec, call recompute_lowest_common_denominator.
9547 * completer.h (completion_tracker::have_completions): Remove use
9548 of m_entries_vec.
9549 (completion_tracker::completion_hash_entry): Declare new class.
9550 (completion_tracker::recompute_lowest_common_denominator): Change
9551 function signature.
9552 (completion_tracker::recompute_lcd_visitor): Declare new function.
9553 (completion_tracker::m_entries_vec): Delete.
9554 (completion_tracker::m_entries_hash): Initialize to NULL.
9555 (completion_tracker::m_lowest_common_denominator_valid): New
9556 member variable.
9557 (completion_tracker::m_lowest_common_denominator_max_length): New
9558 member variable.
9559
9560 2020-03-17 Kamil Rytarowski <n54@gmx.com>
9561
9562 * regformats/regdef.h: Put reg in gdb namespace.
9563
9564 2020-03-17 Kamil Rytarowski <n54@gmx.com>
9565
9566 * i386-bsd-nat.c (gdb_ptrace): New.
9567 * (i386bsd_fetch_inferior_registers,
9568 i386bsd_store_inferior_registers) Switch from pid_t to ptid_t.
9569 * (i386bsd_fetch_inferior_registers,
9570 i386bsd_store_inferior_registers) Use gdb_ptrace.
9571
9572 2020-03-17 Kamil Rytarowski <n54@gmx.com>
9573
9574 * amd64-bsd-nat.c (gdb_ptrace): New.
9575 * (amd64bsd_fetch_inferior_registers,
9576 amd64bsd_store_inferior_registers) Switch from pid_t to ptid_t.
9577 * (amd64bsd_fetch_inferior_registers,
9578 amd64bsd_store_inferior_registers) Use gdb_ptrace.
9579
9580 2020-03-17 Kamil Rytarowski <n54@gmx.com>
9581
9582 * user-regs.c (user_reg::read): Rename to...
9583 (user_reg::xread): ...this.
9584 * (append_user_reg): Rename argument `read' to `xread'.
9585 * (user_reg_add_builtin): Likewise.
9586 * (user_reg_add): Likewise.
9587 * (value_of_user_reg): Likewise.
9588
9589 2020-03-17 Kamil Rytarowski <n54@gmx.com>
9590
9591 * sparc-nat.c (gdb_ptrace): New.
9592 * sparc-nat.c (sparc_fetch_inferior_registers)
9593 (sparc_store_inferior_registers) Remove obsolete comment.
9594 * sparc-nat.c (sparc_fetch_inferior_registers)
9595 (sparc_store_inferior_registers) Switch from pid_t to ptid_t.
9596 * sparc-nat.c (sparc_fetch_inferior_registers)
9597 (sparc_store_inferior_registers) Use gdb_ptrace.
9598
9599 2020-03-17 Kamil Rytarowski <n54@gmx.com>
9600
9601 * sh-nbsd-nat.c (fetch_registers): New variable lwp and pass
9602 it to the ptrace call.
9603 * sh-nbsd-nat.c (store_registers): Likewise.
9604
9605 2020-03-17 Kamil Rytarowski <n54@gmx.com>
9606
9607 * sh-nbsd-nat.c (sh_nbsd_nat_target): Inherit from
9608 nbsd_nat_target instead of inf_ptrace_target.
9609 * sh-nbsd-nat.c: Include "nbsd-nat.h", as we are now using
9610 nbsd_nat_target.
9611
9612 2020-03-17 Kamil Rytarowski <n54@gmx.com>
9613
9614 * amd64-bsd-nat.c: Include amd64-bsd-nat.h".
9615
9616 2020-03-17 Kamil Rytarowski <n54@gmx.com>
9617
9618 * nbsd-nat.c: Include <sys/types.h>, <sys/ptrace.h> and
9619 <sys/sysctl.h>.
9620 * nbsd-nat.c (nbsd_nat_target::pid_to_exec_file): Rewrite.
9621
9622 2020-03-17 Tom de Vries <tdevries@suse.de>
9623
9624 PR gdb/23710
9625 * dwarf2/read.h (struct dwarf2_per_cu_data): Add unit_type and lang
9626 fields.
9627 * dwarf2/read.c (process_psymtab_comp_unit): Initialize unit_type and lang
9628 fields.
9629 (process_imported_unit_die): Skip import of c++ CUs.
9630
9631 2020-03-16 Tom Tromey <tom@tromey.com>
9632
9633 * p-valprint.c (pascal_object_print_value): Initialize
9634 base_value.
9635
9636 2020-03-16 Anton Kolesov <anton.kolesov@synopsys.com>
9637 Shahab Vahedi <shahab@synopsys.com>
9638
9639 * Makefile.in: Add arch/arc.o
9640 * configure.tgt: Likewise.
9641 * arc-tdep.c (arc_tdesc_init): Use arc_read_description.
9642 (_initialize_arc_tdep): Don't initialize old target descriptions.
9643 (arc_read_description): New function to cache target descriptions.
9644 * arc-tdep.h (arc_read_description): Add proto type.
9645 * arch/arc.c: New file.
9646 * arch/arc.h: Likewise.
9647 * features/Makefile: Replace old target descriptions with new.
9648 * features/arc-arcompact.c: Remove.
9649 * features/arc-arcompact.xml: Likewise.
9650 * features/arc-v2.c: Likewise
9651 * features/arc-v2.xml: Likewise
9652 * features/arc/aux-arcompact.xml: New file.
9653 * features/arc/aux-v2.xml: Likewise.
9654 * features/arc/core-arcompact.xml: Likewise.
9655 * features/arc/core-v2.xml: Likewise.
9656 * features/arc/aux-arcompact.c: Generate.
9657 * features/arc/aux-v2.c: Likewise.
9658 * features/arc/core-arcompact.c: Likewise.
9659 * features/arc/core-v2.c: Likewise.
9660 * target-descriptions (maint_print_c_tdesc_cmd): Support ARC features.
9661
9662 2020-03-16 Tom Tromey <tromey@adacore.com>
9663
9664 PR gdb/25663:
9665 * dwarf2/read.c (dwarf2_name): Strip leading namespaces after
9666 putting value into bcache.
9667
9668 2020-03-16 Simon Marchi <simon.marchi@efficios.com>
9669
9670 PR gdb/21500
9671 * amd64-windows-tdep.c (amd64_windows_init_abi): Rename
9672 to...
9673 (amd64_windows_init_abi_common): ... this. Don't set size of
9674 long type.
9675 (amd64_windows_init_abi): New function.
9676 (amd64_cygwin_init_abi): New function.
9677 (_initialize_amd64_windows_tdep): Use amd64_cygwin_init_abi for
9678 the Cygwin OS ABI.
9679 * i386-windows-tdep.c (_initialize_i386_windows_tdep): Clarify
9680 comment.
9681
9682 2020-03-16 Simon Marchi <simon.marchi@efficios.com>
9683
9684 * windows-tdep.h (is_linked_with_cygwin_dll): New declaration.
9685 * windows-tdep.c (CYGWIN_DLL_NAME): New.
9686 (pe_import_directory_entry): New struct type.
9687 (is_linked_with_cygwin_dll): New function.
9688 * amd64-windows-tdep.c (amd64_windows_osabi_sniffer): Select
9689 GDB_OSABI_CYGWIN if the BFD is linked with the Cygwin DLL.
9690 * i386-windows-tdep.c (i386_windows_osabi_sniffer): Likewise.
9691
9692 2020-03-16 Simon Marchi <simon.marchi@efficios.com>
9693
9694 * i386-windows-tdep.c: Mass-rename "cygwin" to "windows", except
9695 i386_cygwin_core_osabi_sniffer.
9696
9697 2020-03-16 Simon Marchi <simon.marchi@efficios.com>
9698
9699 * i386-cygwin-tdep.c: Rename to...
9700 * i386-windows-tdep.c: ... this.
9701 * Makefile.in (ALL_TARGET_OBS): Rename i386-cygwin-tdep.c to
9702 i386-windows-tdep.c.
9703 * configure.tgt: Likewise.
9704
9705 2020-03-16 Simon Marchi <simon.marchi@efficios.com>
9706
9707 * osabi.h (enum gdb_osabi): Add GDB_OSABI_WINDOWS.
9708 * osabi.c (gdb_osabi_names): Add "Windows".
9709 * i386-cygwin-tdep.c (i386_cygwin_osabi_sniffer): Return
9710 GDB_OSABI_WINDOWS when the binary's target is "pei-i386".
9711 (i386_cygwin_core_osabi_sniffer): New function, extracted from
9712 i386_cygwin_osabi_sniffer.
9713 (_initialize_i386_cygwin_tdep): Register OS ABI
9714 GDB_OSABI_WINDOWS for i386.
9715 * amd64-windows-tdep.c (amd64_windows_osabi_sniffer): Return
9716 GDB_OSABI_WINDOWS when the binary's target is "pei-x86-64".
9717 (_initialize_amd64_windows_tdep): Register OS ABI GDB_OSABI_WINDOWS
9718 for x86-64.
9719 * configure.tgt: Use GDB_OSABI_WINDOWS as the default OS ABI
9720 when the target matches '*-*-mingw*'.
9721
9722 2020-03-16 Simon Marchi <simon.marchi@efficios.com>
9723
9724 * defs.h (enum gdb_osabi): Move to...
9725 * osabi.h (enum gdb_osabi): ... here.
9726 * gdbarch.sh: Include osabi.h in gdbarch.h.
9727 * gdbarch.h: Re-generate.
9728
9729 2020-03-16 Simon Marchi <simon.marchi@efficios.com>
9730
9731 * amd64-windows-tdep.c (amd64_windows_osabi_sniffer): New
9732 function.
9733 (_initialize_amd64_windows_tdep): Register osabi sniffer.
9734
9735 2020-03-14 Tom Tromey <tom@tromey.com>
9736
9737 * c-typeprint.c (cp_type_print_method_args): Print "__restrict__"
9738 for C++.
9739 (c_type_print_modifier): Likewise. Add "language" parameter.
9740 (c_type_print_varspec_prefix, c_type_print_base_struct_union)
9741 (c_type_print_base_1): Update.
9742 * type-stack.h (enum type_pieces) <tp_atomic, tp_restrict>: New
9743 constants.
9744 * type-stack.c (type_stack::insert): Handle tp_atomic and
9745 tp_restrict.
9746 (type_stack::follow_type_instance_flags): Likewise.
9747 (type_stack::follow_types): Likewise. Merge type-following code.
9748 * c-exp.y (RESTRICT, ATOMIC): New tokens.
9749 (space_identifier, cv_with_space_id)
9750 (const_or_volatile_or_space_identifier_noopt)
9751 (const_or_volatile_or_space_identifier): Remove.
9752 (single_qualifier, qualifier_seq_noopt, qualifier_seq): New
9753 rules.
9754 (ptr_operator, typebase): Update.
9755 (enum token_flag) <FLAG_C>: New constant.
9756 (ident_tokens): Add "restrict", "__restrict__", "__restrict", and
9757 "_Atomic".
9758 (lex_one_token): Handle FLAG_C.
9759
9760 2020-03-14 Kamil Rytarowski <n54@gmx.com>
9761
9762 * m68k-bsd-nat.c (fetch_registers): New variable lwp and pass
9763 it to the ptrace call.
9764 * m68k-bsd-nat.c (store_registers): Likewise.
9765
9766 2020-03-14 Kamil Rytarowski <n54@gmx.com>
9767
9768 * m68k-bsd-nat.c (m68kbsd_supply_gregset): Change type of regs to
9769 gdb_byte *.
9770 * m68k-bsd-nat.c (m68kbsd_supply_fpregset): Likewise.
9771 * m68k-bsd-nat.c (m68kbsd_collect_gregset): Likewise.
9772 * m68k-bsd-nat.c (m68kbsd_supply_pcb): Cast &tmp to gdb_byte *.
9773
9774 2020-03-14 Kamil Rytarowski <n54@gmx.com>
9775
9776 * m68k-bsd-nat.c (m68k_bsd_nat_target): Inherit from
9777 nbsd_nat_target instead of inf_ptrace_target.
9778 * m68k-bsd-nat.c: Include "nbsd-nat.h", as we are now using
9779 nbsd_nat_target.
9780
9781 2020-03-14 Kamil Rytarowski <n54@gmx.com>
9782
9783 * m68k-bsd-nat.c: Define _KERNTYPES to get the declaration of
9784 register_t.
9785
9786 2020-03-14 Kamil Rytarowski <n54@gmx.com>
9787
9788 * alpha-bsd-nat.c (fetch_registers): New variable lwp and pass
9789 it to the ptrace call.
9790 * alpha-bsd-nat.c (store_registers): Likewise.
9791
9792 2020-03-14 Kamil Rytarowski <n54@gmx.com>
9793
9794 * alpha-bsd-nat.c: Remove <sys/procfs.h> and "gregset.h" from
9795 includes.
9796 * alpha-bsd-nat.c (gregset_t, fpregset_t): Remove.
9797 * alpha-bsd-nat.c (supply_gregset, fill_gregset, supply_fpregset,
9798 fill_fpregset): Likewise.
9799
9800 2020-03-14 Kamil Rytarowski <n54@gmx.com>
9801
9802 * alpha-bsd-nat.c (alpha_netbsd_nat_target): Inherit from
9803 nbsd_nat_target instead of inf_ptrace_target.
9804 * alpha-bsd-nat.c: Include "nbsd-nat.h", as we are now using
9805 nbsd_nat_target.
9806
9807 2020-03-14 Kamil Rytarowski <n54@gmx.com>
9808
9809 * alpha-bsd-nat.c: Define _KERNTYPES to get the declaration of
9810 register_t.
9811
9812 2020-03-14 Kamil Rytarowski <n54@gmx.com>
9813
9814 * arm-nbsd-nat.c (fetch_register): New variable lwp and pass
9815 it to the ptrace call.
9816 * arm-nbsd-nat.c (fetch_fp_register): Likewise.
9817 * arm-nbsd-nat.c (fetch_fp_regs): Likewise.
9818 * arm-nbsd-nat.c (store_register): Likewise.
9819 * arm-nbsd-nat.c (store_regs): Likewise.
9820 * arm-nbsd-nat.c (store_fp_register): Likewise.
9821 * arm-nbsd-nat.c (store_fp_regs): Likewise.
9822
9823 2020-03-14 Kamil Rytarowski <n54@gmx.com>
9824
9825 * arm-nbsd-nat.c (arm_netbsd_nat_target): Inherit from
9826 nbsd_nat_target instead of inf_ptrace_target.
9827 * arm-nbsd-nat.c: Include "nbsd-nat.h", as we are now using
9828 nbsd_nat_target.
9829
9830 2020-03-14 Kamil Rytarowski <n54@gmx.com>
9831
9832 * x86-bsd-nat.c (x86bsd_dr_get): New variable lwp and pass
9833 it to the ptrace call.
9834 * x86-bsd-nat.c (x86bsd_dr_set): Likewise.
9835
9836 2020-03-14 Kamil Rytarowski <n54@gmx.com>
9837
9838 * vax-bsd-nat.c (vaxbsd_supply_gregset): New variable lwp and pass
9839 it to the ptrace call.
9840 * vax-bsd-nat.c (vaxbsd_collect_gregset): Likewise.
9841
9842 2020-03-14 Kamil Rytarowski <n54@gmx.com>
9843
9844 * vax-bsd-nat.c (vaxbsd_supply_gregset): Cast gregs to const
9845 gdb_byte *.
9846 * vax-bsd-nat.c (vaxbsd_collect_gregset): Cast gregs to void *.
9847
9848 2020-03-14 Kamil Rytarowski <n54@gmx.com>
9849
9850 * vax-bsd-nat.c (vax_bsd_nat_target): Inherit from nbsd_nat_target
9851 instead of inf_ptrace_target.
9852 * vax-bsd-nat.c: Include "nbsd-nat.h", as we are now using
9853 nbsd_nat_target.
9854
9855 2020-03-14 Kamil Rytarowski <n54@gmx.com>
9856
9857 * mips-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 * ppc-nbsd-nat.c: Define _KERNTYPES to get the declaration of
9863 register_t.
9864
9865 2020-03-14 Kamil Rytarowski <n54@gmx.com>
9866
9867 * vax-bsd-nat.c: Define _KERNTYPES to get the declaration of
9868 register_t.
9869
9870 2020-03-13 Tom Tromey <tom@tromey.com>
9871
9872 * value.h (val_print): Don't declare.
9873 * valprint.h (val_print_array_elements)
9874 (val_print_scalar_formatted, generic_val_print): Don't declare.
9875 * valprint.c (generic_val_print_array): Take a struct value.
9876 (generic_val_print_ptr, generic_val_print_memberptr)
9877 (generic_val_print_bool, generic_val_print_int)
9878 (generic_val_print_char, generic_val_print_complex)
9879 (generic_val_print): Remove.
9880 (generic_value_print): Update.
9881 (do_val_print): Remove unused parameters. Don't call
9882 la_val_print.
9883 (val_print): Remove.
9884 (common_val_print): Update. Don't call value_check_printable.
9885 (val_print_scalar_formatted, val_print_array_elements): Remove.
9886 * rust-lang.c (rust_val_print): Remove.
9887 (rust_language_defn): Update.
9888 * p-valprint.c (pascal_val_print): Remove.
9889 (pascal_value_print_inner): Update.
9890 (pascal_object_print_val_fields, pascal_object_print_val):
9891 Remove.
9892 (pascal_object_print_static_field): Update.
9893 * p-lang.h (pascal_val_print): Don't declare.
9894 * p-lang.c (pascal_language_defn): Update.
9895 * opencl-lang.c (opencl_language_defn): Update.
9896 * objc-lang.c (objc_language_defn): Update.
9897 * m2-valprint.c (m2_print_unbounded_array, m2_val_print): Remove.
9898 * m2-lang.h (m2_val_print): Don't declare.
9899 * m2-lang.c (m2_language_defn): Update.
9900 * language.h (struct language_defn) <la_val_print>: Remove.
9901 * language.c (unk_lang_value_print_inner): Rename. Change
9902 argument types.
9903 (unknown_language_defn, auto_language_defn): Update.
9904 * go-valprint.c (go_val_print): Remove.
9905 * go-lang.h (go_val_print): Don't declare.
9906 * go-lang.c (go_language_defn): Update.
9907 * f-valprint.c (f_val_print): Remove.
9908 * f-lang.h (f_value_print): Don't declare.
9909 * f-lang.c (f_language_defn): Update.
9910 * d-valprint.c (d_val_print): Remove.
9911 * d-lang.h (d_value_print): Don't declare.
9912 * d-lang.c (d_language_defn): Update.
9913 * cp-valprint.c (cp_print_value_fields)
9914 (cp_print_value_fields_rtti, cp_print_value): Remove.
9915 (cp_print_static_field): Update.
9916 * c-valprint.c (c_val_print_array, c_val_print_ptr)
9917 (c_val_print_struct, c_val_print_union, c_val_print_int)
9918 (c_val_print_memberptr, c_val_print): Remove.
9919 * c-lang.h (c_val_print_array, cp_print_value_fields)
9920 (cp_print_value_fields_rtti): Don't declare.
9921 * c-lang.c (c_language_defn, cplus_language_defn)
9922 (asm_language_defn, minimal_language_defn): Update.
9923 * ada-valprint.c (ada_val_print_ptr, ada_val_print_num): Remove.
9924 (ada_val_print_enum): Take a struct value.
9925 (ada_val_print_flt, ada_val_print_array, ada_val_print_1)
9926 (ada_val_print): Remove.
9927 (ada_value_print_1): Update.
9928 (printable_val_type): Remove.
9929 * ada-lang.h (ada_val_print): Don't declare.
9930 * ada-lang.c (ada_language_defn): Update.
9931
9932 2020-03-13 Tom Tromey <tom@tromey.com>
9933
9934 * valprint.c (do_val_print): Update.
9935 * python/python-internal.h (gdbpy_apply_val_pretty_printer): Take
9936 a struct value.
9937 (value_to_value_object_no_release): Declare.
9938 * python/py-value.c (value_to_value_object_no_release): New
9939 function.
9940 * python/py-prettyprint.c (gdbpy_apply_val_pretty_printer): Take a
9941 struct value.
9942 * guile/scm-value.c (vlscm_scm_from_value_no_release): New
9943 function.
9944 * guile/scm-pretty-print.c (gdbscm_apply_val_pretty_printer): Take
9945 a struct value.
9946 * guile/guile-internal.h (vlscm_scm_from_value_no_release):
9947 Declare.
9948 (gdbscm_apply_val_pretty_printer): Take a struct value.
9949 * extension.h (apply_ext_lang_val_pretty_printer): Take a struct
9950 value.
9951 * extension.c (apply_ext_lang_val_pretty_printer): Take a struct
9952 value.
9953 * extension-priv.h (struct extension_language_ops)
9954 <apply_val_pretty_printer>: Take a struct value.
9955 * cp-valprint.c (cp_print_value): Create a struct value.
9956 (cp_print_value): Update.
9957
9958 2020-03-13 Tom Tromey <tom@tromey.com>
9959
9960 * ada-valprint.c (print_field_values): Call common_val_print.
9961
9962 2020-03-13 Tom Tromey <tom@tromey.com>
9963
9964 * ada-valprint.c (val_print_packed_array_elements): Remove
9965 bitoffset and val parameters. Call common_val_print.
9966 (ada_val_print_string): Remove offset, address, and original_value
9967 parameters.
9968 (ada_val_print_array): Update.
9969 (ada_value_print_array): New function.
9970 (ada_value_print_1): Call it.
9971
9972 2020-03-13 Tom Tromey <tom@tromey.com>
9973
9974 * ada-valprint.c (ada_value_print): Use common_val_print.
9975
9976 2020-03-13 Tom Tromey <tom@tromey.com>
9977
9978 * ada-valprint.c (ada_val_print_ref): Use common_val_print.
9979
9980 2020-03-13 Tom Tromey <tom@tromey.com>
9981
9982 * ada-valprint.c (ada_value_print_num): New function.
9983 (ada_value_print_1): Use it.
9984
9985 2020-03-13 Tom Tromey <tom@tromey.com>
9986
9987 * ada-valprint.c (ada_value_print_1) <TYPE_CODE_FLT>: Rewrite.
9988
9989 2020-03-13 Tom Tromey <tom@tromey.com>
9990
9991 * ada-valprint.c (ada_value_print_ptr): New function.
9992 (ada_value_print_1): Use it.
9993
9994 2020-03-13 Tom Tromey <tom@tromey.com>
9995
9996 * ada-valprint.c (ada_val_print_gnat_array): Take a struct value;
9997 call common_val_print.
9998 (ada_val_print_1): Update.
9999 (ada_value_print_1): New function.
10000 (ada_value_print_inner): Rewrite.
10001
10002 2020-03-13 Tom Tromey <tom@tromey.com>
10003
10004 * cp-valprint.c (cp_print_value_fields): Update.
10005 (cp_print_value): New function.
10006
10007 2020-03-13 Tom Tromey <tom@tromey.com>
10008
10009 * m2-valprint.c (m2_value_print_inner): Use
10010 cp_print_value_fields.
10011 * cp-valprint.c (cp_print_value_fields): New function.
10012 * c-valprint.c (c_value_print_struct): New function.
10013 (c_value_print_inner): Use c_value_print_struct.
10014 * c-lang.h (cp_print_value_fields): Declare.
10015
10016 2020-03-13 Tom Tromey <tom@tromey.com>
10017
10018 * c-valprint.c (c_value_print_array): 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_memberptr): 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_int): 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_ptr): New function.
10034 (c_value_print_inner): Use it.
10035
10036 2020-03-13 Tom Tromey <tom@tromey.com>
10037
10038 * c-valprint.c (c_value_print_inner): Rewrite.
10039
10040 2020-03-13 Tom Tromey <tom@tromey.com>
10041
10042 * valprint.c (generic_value_print_complex): New function.
10043 (generic_value_print): Use it.
10044
10045 2020-03-13 Tom Tromey <tom@tromey.com>
10046
10047 * valprint.c (generic_val_print_float): Don't call
10048 val_print_scalar_formatted.
10049 (generic_val_print, generic_value_print): Update.
10050
10051 2020-03-13 Tom Tromey <tom@tromey.com>
10052
10053 * valprint.c (generic_value_print_char): 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_int): New function.
10059 (generic_value_print): Use it.
10060
10061 2020-03-13 Tom Tromey <tom@tromey.com>
10062
10063 * valprint.c (generic_value_print_bool): New function.
10064 (generic_value_print): Use it.
10065
10066 2020-03-13 Tom Tromey <tom@tromey.com>
10067
10068 * valprint.c (generic_val_print_func): Simplify.
10069 (generic_val_print, generic_value_print): Update.
10070
10071 2020-03-13 Tom Tromey <tom@tromey.com>
10072
10073 * valprint.c (generic_val_print_flags): Remove.
10074 (generic_val_print, generic_value_print): Update.
10075 (val_print_type_code_flags): Add original_value parameter.
10076
10077 2020-03-13 Tom Tromey <tom@tromey.com>
10078
10079 * valprint.c (generic_val_print): Update.
10080 (generic_value_print): Update.
10081 * valprint.c (generic_val_print_enum): Don't call
10082 val_print_scalar_formatted.
10083
10084 2020-03-13 Tom Tromey <tom@tromey.com>
10085
10086 * valprint.c (generic_value_print): Call generic_value_print_ptr.
10087 * valprint.c (generic_value_print_ptr): New function.
10088
10089 2020-03-13 Tom Tromey <tom@tromey.com>
10090
10091 * valprint.c (generic_value_print): Rewrite.
10092
10093 2020-03-13 Tom Tromey <tom@tromey.com>
10094
10095 * p-valprint.c (pascal_object_print_value_fields)
10096 (pascal_object_print_value): New functions.
10097
10098 2020-03-13 Tom Tromey <tom@tromey.com>
10099
10100 * p-valprint.c (pascal_value_print_inner): Rewrite.
10101
10102 2020-03-13 Tom Tromey <tom@tromey.com>
10103
10104 * f-valprint.c (f_value_print_innner): Rewrite.
10105
10106 2020-03-13 Tom Tromey <tom@tromey.com>
10107
10108 * m2-valprint.c (m2_print_unbounded_array): New overload.
10109 (m2_print_unbounded_array): Update.
10110 (m2_print_array_contents): Take a struct value.
10111 (m2_value_print_inner): Rewrite.
10112
10113 2020-03-13 Tom Tromey <tom@tromey.com>
10114
10115 * d-valprint.c (dynamic_array_type): Call d_value_print_inner.
10116 (d_value_print_inner): New function.
10117 * d-lang.h (d_value_print_inner): Declare.
10118 * d-lang.c (d_language_defn): Use d_value_print_inner.
10119
10120 2020-03-13 Tom Tromey <tom@tromey.com>
10121
10122 * go-valprint.c (go_value_print_inner): New function.
10123 * go-lang.h (go_value_print_inner): Declare.
10124 * go-lang.c (go_language_defn): Use go_value_print_inner.
10125
10126 2020-03-13 Tom Tromey <tom@tromey.com>
10127
10128 * rust-lang.c (val_print_struct, rust_print_enum): Use the value
10129 API.
10130 (rust_val_print): Rewrite.
10131 (rust_value_print_inner): New function, from rust_val_print.
10132 (rust_language_defn): Use rust_value_print_inner.
10133
10134 2020-03-13 Tom Tromey <tom@tromey.com>
10135
10136 * ada-valprint.c (ada_value_print_inner): New function.
10137 * ada-lang.h (ada_value_print_inner): Declare.
10138 * ada-lang.c (ada_language_defn): Use ada_value_print_inner.
10139
10140 2020-03-13 Tom Tromey <tom@tromey.com>
10141
10142 * f-valprint.c (f_value_print_innner): New function.
10143 * f-lang.h (f_value_print_innner): Declare.
10144 * f-lang.c (f_language_defn): Use f_value_print_innner.
10145
10146 2020-03-13 Tom Tromey <tom@tromey.com>
10147
10148 * p-valprint.c (pascal_value_print_inner): New function.
10149 * p-lang.h (pascal_value_print_inner): Declare.
10150 * p-lang.c (pascal_language_defn): Use pascal_value_print_inner.
10151
10152 2020-03-13 Tom Tromey <tom@tromey.com>
10153
10154 * m2-valprint.c (m2_value_print_inner): New function.
10155 * m2-lang.h (m2_value_print_inner): Declare.
10156 * m2-lang.c (m2_language_defn): Use m2_value_print_inner.
10157
10158 2020-03-13 Tom Tromey <tom@tromey.com>
10159
10160 * opencl-lang.c (opencl_language_defn): Use c_value_print_inner.
10161 * objc-lang.c (objc_language_defn): Use c_value_print_inner.
10162 * c-valprint.c (c_value_print_inner): New function.
10163 * c-lang.h (c_value_print_inner): Declare.
10164 * c-lang.c (c_language_defn, cplus_language_defn)
10165 (asm_language_defn, minimal_language_defn): Use
10166 c_value_print_inner.
10167
10168 2020-03-13 Tom Tromey <tom@tromey.com>
10169
10170 * p-valprint.c (pascal_object_print_value_fields): Now static.
10171 * p-lang.h (pascal_object_print_value_fields): Don't declare.
10172
10173 2020-03-13 Tom Tromey <tom@tromey.com>
10174
10175 * c-valprint.c (c_val_print_array): Simplify.
10176
10177 2020-03-13 Tom Tromey <tom@tromey.com>
10178
10179 * valprint.c (value_print_array_elements): New function.
10180 * valprint.h (value_print_array_elements): Declare.
10181
10182 2020-03-13 Tom Tromey <tom@tromey.com>
10183
10184 * printcmd.c (print_formatted): Use value_print_scalar_formatted.
10185 * mips-tdep.c (mips_print_register): Use
10186 value_print_scalar_formatted.
10187
10188 2020-03-13 Tom Tromey <tom@tromey.com>
10189
10190 * valprint.h (value_print_scalar_formatted): Declare.
10191 * valprint.c (value_print_scalar_formatted): New function.
10192
10193 2020-03-13 Tom Tromey <tom@tromey.com>
10194
10195 * valprint.h (generic_value_print): Declare.
10196 * valprint.c (generic_value_print): New function.
10197
10198 2020-03-13 Tom Tromey <tom@tromey.com>
10199
10200 * valprint.c (do_val_print): Call la_value_print_inner, if
10201 available.
10202 * rust-lang.c (rust_language_defn): Update.
10203 * p-lang.c (pascal_language_defn): Update.
10204 * opencl-lang.c (opencl_language_defn): Update.
10205 * objc-lang.c (objc_language_defn): Update.
10206 * m2-lang.c (m2_language_defn): Update.
10207 * language.h (struct language_defn) <la_value_print_inner>: New
10208 member.
10209 * language.c (unknown_language_defn, auto_language_defn): Update.
10210 * go-lang.c (go_language_defn): Update.
10211 * f-lang.c (f_language_defn): Update.
10212 * d-lang.c (d_language_defn): Update.
10213 * c-lang.c (c_language_defn, cplus_language_defn)
10214 (asm_language_defn, minimal_language_defn): Update.
10215 * ada-lang.c (ada_language_defn): Update.
10216
10217 2020-03-13 Tom Tromey <tom@tromey.com>
10218
10219 * c-valprint.c (c_value_print): Use common_val_print.
10220
10221 2020-03-13 Tom Tromey <tom@tromey.com>
10222
10223 * cp-valprint.c (cp_print_static_field): Use common_val_print.
10224
10225 2020-03-13 Tom Tromey <tom@tromey.com>
10226
10227 * f-valprint.c (f77_print_array_1, f_val_print): Use
10228 common_val_print.
10229
10230 2020-03-13 Tom Tromey <tom@tromey.com>
10231
10232 * riscv-tdep.c (riscv_print_one_register_info): Use
10233 common_val_print.
10234
10235 2020-03-13 Tom Tromey <tom@tromey.com>
10236
10237 * mi/mi-main.c (output_register): Use common_val_print.
10238
10239 2020-03-13 Tom Tromey <tom@tromey.com>
10240
10241 * infcmd.c (default_print_one_register_info): Use
10242 common_val_print.
10243
10244 2020-03-13 Tom Tromey <tom@tromey.com>
10245
10246 * valprint.h (common_val_print_checked): Declare.
10247 * valprint.c (common_val_print_checked): New function.
10248 * stack.c (print_frame_arg): Use common_val_print_checked.
10249
10250 2020-03-13 Tom Tromey <tom@tromey.com>
10251
10252 * valprint.c (do_val_print): New function, from val_print.
10253 (val_print): Use do_val_print.
10254 (common_val_print): Use do_val_print.
10255
10256 2020-03-13 Tom Tromey <tom@tromey.com>
10257
10258 * valprint.c (value_print): Use scoped_value_mark.
10259
10260 2020-03-13 Tom de Vries <tdevries@suse.de>
10261
10262 PR symtab/25646
10263 * psymtab.c (partial_symtab::partial_symtab): Don't set
10264 globals_offset and statics_offset. Push element onto
10265 current_global_psymbols and current_static_psymbols stacks.
10266 (concat): New function.
10267 (end_psymtab_common): Set globals_offset and statics_offset. Pop
10268 element from current_global_psymbols and current_static_psymbols
10269 stacks. Concat popped elements to global_psymbols and
10270 static_symbols.
10271 (add_psymbol_to_list): Use current_global_psymbols and
10272 current_static_psymbols stacks.
10273 * psymtab.h (class psymtab_storage): Add current_global_psymbols and
10274 current_static_psymbols fields.
10275
10276 2020-03-12 Christian Biesinger <cbiesinger@google.com>
10277
10278 * corelow.c (sniff_core_bfd): Remove.
10279 (class core_target) <m_core_vec>: Remove.
10280 (core_target::core_target): Update.
10281 (core_file_fns): Remove.
10282 (deprecated_add_core_fns): Remove.
10283 (default_core_sniffer): Remove.
10284 (sniff_core_bfd): Remove.
10285 (default_check_format): Remove.
10286 (gdb_check_format): Remove.
10287 (core_target_open): Update.
10288 (core_target::get_core_register_section): Update.
10289 (get_core_registers_cb): Update.
10290 (core_target::fetch_registers): Update.
10291 * gdbcore.h (struct core_fns): Remove.
10292 (deprecated_add_core_fns): Remove.
10293 (default_core_sniffer): Remove.
10294 (default_check_format): Remove.
10295
10296 2020-03-12 Tom Tromey <tom@tromey.com>
10297
10298 * arm-tdep.c (struct arm_mapping_symbol) <value>: Now a
10299 CORE_ADDR.
10300 (struct arm_exidx_entry) <addr>: Now a CORE_ADDR.
10301
10302 2020-03-12 Tom Tromey <tom@tromey.com>
10303
10304 * remote.c (remote_target::download_tracepoint)
10305 (remote_target::enable_tracepoint)
10306 (remote_target::disable_tracepoint): Use phex, not sprintf_vma.
10307 * breakpoint.c (print_recreate_masked_watchpoint): Use phex, not
10308 sprintf_vma.
10309
10310 2020-03-12 Tom Tromey <tom@tromey.com>
10311
10312 * symfile-mem.c: Update CORE_ADDR size assert.
10313
10314 2020-03-12 Simon Marchi <simon.marchi@efficios.com>
10315
10316 * selftest.m4: Move to gdbsupport/.
10317 * acinclude.m4: Update path to selftest.m4.
10318
10319 2020-03-12 Simon Marchi <simon.marchi@efficios.com>
10320
10321 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Rename to...
10322 (SELFTESTS_SRCS): ... this. Add disasm-selftests.c,
10323 gdbarch-selfselftests.c and selftest-arch.c.
10324 (SUBDIR_UNITTESTS_OBS): Rename to...
10325 (SELFTESTS_OBS): ... this.
10326 (COMMON_SFILES): Remove disasm-selftests.c and
10327 gdbarch-selftests.c.
10328 * configure.ac: Don't add selftest-arch.{c,o} to
10329 CONFIG_{SRCS,OBS}.
10330 * disasm-selftests.c, gdbarch-selftests.c: Remove GDB_SELF_TEST
10331 preprocessor conditions.
10332
10333 2020-03-12 Simon Marchi <simon.marchi@efficios.com>
10334
10335 * configure.ac: Don't source bfd/development.sh.
10336 * selftest.m4: Modify comment.
10337 * configure: Re-generate.
10338
10339 2020-03-12 Simon Marchi <simon.marchi@efficios.com>
10340
10341 * selftest.m4 (GDB_AC_SELFTEST): Error out if $development is
10342 not "true" or "false".
10343 * configure: Re-generate.
10344
10345 2020-03-12 Christian Biesinger <cbiesinger@google.com>
10346
10347 * Makefile.in (HFILES_NO_SRCDIR): Add new arm-nbsd-tdep.h file.
10348 * arm-nbsd-nat.c (arm_supply_gregset): Moved to arm-nbsd-tdep and
10349 renamed to arm_nbsd_supply_gregset.
10350 (fetch_register): Update to call arm_nbsd_supply_gregset.
10351 (fetch_regs): Remove in favor of fetch_register with a -1 regno.
10352 (arm_netbsd_nat_target::fetch_registers): Update.
10353 (fetch_elfcore_registers): Removed.
10354 (_initialize_arm_netbsd_nat): Removed call to deprecated_add_core_fns.
10355 * arm-nbsd-tdep.c (struct arm_nbsd_reg): New struct.
10356 (arm_nbsd_supply_gregset): Moved from arm-nbsd-nat.c and updated to
10357 not require NetBSD system headers.
10358 (arm_nbsd_regset): New struct.
10359 (arm_nbsd_iterate_over_regset_sections): New function.
10360 (arm_netbsd_init_abi_common): Updated to call
10361 set_gdbarch_iterate_over_regset_sections.
10362 * arm-nbsd-tdep.h: New file.
10363
10364 2020-03-11 Kevin Buettner <kevinb@redhat.com>
10365
10366 * symtab.c (find_pc_sect_line): Add check which prevents infinite
10367 recursion.
10368
10369 2020-03-11 Simon Marchi <simon.marchi@efficios.com>
10370
10371 * configure: Re-generate.
10372
10373 2020-03-11 Tom Tromey <tromey@adacore.com>
10374
10375 * ada-typeprint.c (print_choices): Fix comment.
10376
10377 2020-03-11 Andrew Burgess <andrew.burgess@embecosm.com>
10378
10379 * buildsyms.c (buildsym_compunit::record_line): Avoid accessing
10380 previous item in the list, when the list has no items.
10381
10382 2020-03-11 Tom de Vries <tdevries@suse.de>
10383
10384 * dwarf2/loc.c (dwarf2_evaluate_property): Handle NULL frame in
10385 PROP_LOCLIST handling code.
10386
10387 2020-03-10 Andrew Burgess <andrew.burgess@embecosm.com>
10388
10389 * buildsym-legacy.c (record_line): Pass extra parameter to
10390 record_line.
10391 * buildsym.c (buildsym_compunit::record_line): Take an extra
10392 parameter, reduce duplication in the line table, and record the
10393 is_stmt flag in the line table.
10394 * buildsym.h (buildsym_compunit::record_line): Add extra
10395 parameter.
10396 * disasm.c (do_mixed_source_and_assembly_deprecated): Ignore
10397 non-statement lines.
10398 * dwarf2/read.c (dwarf_record_line_1): Add extra parameter, pass
10399 this to the symtab builder.
10400 (dwarf_finish_line): Pass extra parameter to dwarf_record_line_1.
10401 (lnp_state_machine::record_line): Pass a suitable is_stmt flag
10402 through to dwarf_record_line_1.
10403 * infrun.c (process_event_stop_test): When stepping, don't stop at
10404 a non-statement instruction, and only refresh the step info when
10405 we land in the middle of a line's range. Also add an extra
10406 comment.
10407 * jit.c (jit_symtab_line_mapping_add_impl): Initialise is_stmt
10408 field.
10409 * record-btrace.c (btrace_find_line_range): Only record lines
10410 marked as is-statement.
10411 * stack.c (frame_show_address): Show the frame address if we are
10412 in a non-statement sal.
10413 * symmisc.c (dump_symtab_1): Print the is_stmt flag.
10414 (maintenance_print_one_line_table): Print a header for the is_stmt
10415 column, and include is_stmt information in the output.
10416 * symtab.c (find_pc_sect_line): Find lines marked as statements in
10417 preference to non-statements.
10418 (find_pcs_for_symtab_line): Prefer is-statement entries.
10419 (find_line_common): Likewise.
10420 * symtab.h (struct linetable_entry): Add is_stmt field.
10421 (struct symtab_and_line): Likewise.
10422 * xcoffread.c (arrange_linetable): Initialise is_stmt field when
10423 arranging the line table.
10424
10425 2020-03-07 Tom de Vries <tdevries@suse.de>
10426
10427 * dwarf2/read.c (read_typedef): Treat anonymous typedef as forwarder
10428 DIE.
10429
10430 2020-03-07 Tom Tromey <tom@tromey.com>
10431
10432 * valops.c (value_literal_complex): Remove obsolete comment.
10433 * gdbtypes.h (enum type_code) <TYPE_CODE_FLT>: Remove obsolete
10434 comment.
10435
10436 2020-03-06 Simon Marchi <simon.marchi@polymtl.ca>
10437
10438 * infrun.h: Forward-declare thread_info.
10439 (set_step_info): Add thread_info parameter, add doc.
10440 * infrun.c (set_step_info): Add thread_info parameter, move doc
10441 to header.
10442 * infrun.c (process_event_stop_test): Pass thread to
10443 set_step_info call.
10444 * infcmd.c (set_step_frame): Add thread_info pointer, pass it to
10445 set_step_info.
10446 (prepare_one_step): Add thread_info parameter, pass it to
10447 set_step_frame and prepare_one_step (recursive) call.
10448 (step_1): Pass thread to prepare_one_step call.
10449 (step_command_fsm::should_stop): Pass thread to
10450 prepare_one_step.
10451 (until_next_fsm): Pass thread to set_step_frame call.
10452 (finish_command): Pass thread to set_step_info call.
10453
10454 2020-03-06 Hannes Domani <ssbssa@yahoo.de>
10455
10456 * windows-tdep.c (windows_solib_create_inferior_hook):
10457 Check if inferior is running.
10458
10459 2020-03-06 Tom de Vries <tdevries@suse.de>
10460
10461 * NEWS: Fix "the the".
10462 * ctfread.c: Same.
10463
10464 2020-03-06 Tom de Vries <tdevries@suse.de>
10465
10466 * psymtab.c (psymtab_to_symtab): Don't print "done.".
10467
10468 2020-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
10469
10470 * .dir-locals.el: Add a comment referencing the other copies of
10471 this file.
10472
10473 2020-03-05 John Baldwin <jhb@FreeBSD.org>
10474
10475 * fbsd-tdep.c (fbsd_make_corefile_notes): Use std::string for
10476 psargs.
10477
10478 2020-03-05 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
10479
10480 * .gitattributes: New file.
10481
10482 2020-03-04 Tom Tromey <tom@tromey.com>
10483
10484 * symmisc.c (print_symbol_bcache_statistics)
10485 (print_objfile_statistics): Update.
10486 * symfile.c (allocate_symtab): Use intern.
10487 * psymtab.c (partial_symtab::partial_symtab): Use intern.
10488 * objfiles.h (struct objfile_per_bfd_storage) <filename_cache,
10489 macro_cache>: Remove.
10490 <string_cache>: New member.
10491 (struct objfile) <intern>: New methods.
10492 * elfread.c (elf_symtab_read): Use intern.
10493 * dwarf2/read.c (fixup_go_packaging): Intern package name.
10494 (dwarf2_compute_name, dwarf2_physname)
10495 (create_dwo_unit_in_dwp_v1, create_dwo_unit_in_dwp_v2): Intern
10496 names.
10497 (guess_partial_die_structure_name): Update.
10498 (partial_die_info::fixup): Intern name.
10499 (dwarf2_canonicalize_name): Change parameter to objfile. Intern
10500 name.
10501 (dwarf2_name): Intern name. Update.
10502 * buildsym.c (buildsym_compunit::get_macro_table): Use
10503 string_cache.
10504
10505 2020-03-04 Tom Tromey <tom@tromey.com>
10506
10507 * jit.c (bfd_open_from_target_memory): Make "target" const.
10508 * corefile.c (gnutarget): Now const.
10509 * gdbcore.h (gnutarget): Now const.
10510
10511 2020-03-04 Hannes Domani <ssbssa@yahoo.de>
10512
10513 * NEWS: Mention support for WOW64 processes.
10514 * amd64-windows-nat.c (amd64_mappings): Rename and remove static.
10515 (amd64_windows_segment_register_p): Remove static.
10516 (_initialize_amd64_windows_nat): Update.
10517 * configure.nat <windows> (NATDEPFILES): Add i386-windows-nat.o.
10518 * i386-windows-nat.c (context_offset): Update.
10519 (i386_mappings): Rename and remove static.
10520 (i386_windows_segment_register_p): Remove static.
10521 (_initialize_i386_windows_nat): Update.
10522 * windows-nat.c (STATUS_WX86_BREAKPOINT): New macro.
10523 (STATUS_WX86_SINGLE_STEP): New macro.
10524 (EnumProcessModulesEx): New macro.
10525 (Wow64SuspendThread): New macro.
10526 (Wow64GetThreadContext): New macro.
10527 (Wow64SetThreadContext): New macro.
10528 (Wow64GetThreadSelectorEntry): New macro.
10529 (windows_set_context_register_offsets): Add static.
10530 (windows_set_segment_register_p): Likewise.
10531 (windows_add_thread): Adapt for WOW64 processes.
10532 (windows_fetch_one_register): Likewise.
10533 (windows_nat_target::fetch_registers): Likewise.
10534 (windows_store_one_register): Likewise.
10535 (display_selector): Likewise.
10536 (display_selectors): Likewise.
10537 (handle_exception): Likewise.
10538 (windows_continue): Likewise.
10539 (windows_nat_target::resume): Likewise.
10540 (windows_add_all_dlls): Likewise.
10541 (do_initial_windows_stuff): Likewise.
10542 (windows_nat_target::attach): Likewise.
10543 (windows_get_exec_module_filename): Likewise.
10544 (windows_nat_target::create_inferior): Likewise.
10545 (windows_xfer_siginfo): Likewise.
10546 (_initialize_loadable): Initialize Wow64SuspendThread,
10547 Wow64GetThreadContext, Wow64SetThreadContext,
10548 Wow64GetThreadSelectorEntry and EnumProcessModulesEx.
10549 * windows-nat.h (windows_set_context_register_offsets):
10550 Remove declaration.
10551 (windows_set_segment_register_p): Likewise.
10552 (i386_windows_segment_register_p): Add declaration.
10553 (amd64_windows_segment_register_p): Likewise.
10554
10555 2020-03-04 Luis Machado <luis.machado@linaro.org>
10556
10557 Revert aa66aac47b4dd38f9524ddb5546c08cc09930d37 due to regressions
10558 in "info registers" for AArch64/ARM.
10559
10560 The change caused "info registers" to not print GPR's.
10561
10562 gdb/ChangeLog:
10563
10564 2020-02-01 Shahab Vahedi <shahab@synopsys.com>
10565
10566 * target-descriptions.c (tdesc_register_in_reggroup_p): Return 0
10567 when reg->group is empty and reggroup is not.
10568
10569 2020-03-03 Tom Tromey <tromey@adacore.com>
10570
10571 * dwarf2/frame.c (struct dwarf2_frame_cache)
10572 <checked_tailcall_bottom, entry_cfa_sp_offset,
10573 entry_cfa_sp_offset_p>: Remove members.
10574 (dwarf2_frame_cache): Call dwarf2_tailcall_sniffer_first.
10575 (dwarf2_frame_prev_register): Don't call
10576 dwarf2_tailcall_sniffer_first.
10577 (dwarf2_append_unwinders): Don't append tailcall unwinder.
10578 * frame-unwind.c (add_unwinder): New fuction.
10579 (frame_unwind_init): Use it. Add tailcall unwinder.
10580
10581 2020-03-03 Andrew Burgess <andrew.burgess@embecosm.com>
10582 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
10583
10584 * f-valprint.c (f_val_print): Handle TYPE_CODE_BOOL, any non-zero
10585 value should be printed as true.
10586
10587 2020-03-03 Hannes Domani <ssbssa@yahoo.de>
10588
10589 * windows-tdep.c (windows_solib_create_inferior_hook): New function.
10590 (windows_init_abi): Set and use windows_so_ops.
10591
10592 2020-03-03 Sergio Durigan Junior <sergiodj@redhat.com>
10593
10594 * printcmd.c (print_c_string): Check also for TYPE_CODE_PTR
10595 when verifying if dealing with a convenience variable.
10596
10597 2020-03-03 Luis Machado <luis.machado@linaro.org>
10598
10599 * auxv.c (default_print_auxv_entry): Add new AUXV entries.
10600
10601 2020-03-02 Simon Marchi <simon.marchi@polymtl.ca>
10602
10603 * infrun.c (gdbarch_supports_displaced_stepping): New.
10604 (use_displaced_stepping): Break up conditions in smaller pieces.
10605 Use gdbarch_supports_displaced_stepping.
10606 (displaced_step_prepare_throw): Use
10607 gdbarch_supports_displaced_stepping.
10608
10609 2020-03-02 Andrew Burgess <andrew.burgess@embecosm.com>
10610
10611 * NEWS: Mention new behaviour of the history filename.
10612 * top.c (write_history_p): Add comment.
10613 (show_write_history_p): Add header comment, give a different
10614 message when history writing is on, but the history filename is
10615 empty.
10616 (history_filename): Add comment.
10617 (history_filename_empty): New function.
10618 (show_history_filename): Add header comment, give a different
10619 message when the filename is empty.
10620 (init_history): Compare history_filename against nullptr, and only
10621 read history if the filename is not empty.
10622 (set_history_filename): Add header comment, and only make
10623 non-empty filenames absolute.
10624 (init_main): Make the filename argument to 'set history filename'
10625 optional.
10626
10627 2020-03-02 Christian Biesinger <cbiesinger@google.com>
10628
10629 * arm-nbsd-nat.c (arm_supply_fparegset): Rename to...
10630 (arm_supply_vfpregset): ...this, and update to use VFP registers.
10631 (fetch_fp_register): Update.
10632 (fetch_fp_regs): Update.
10633 (store_fp_register): Update.
10634 (store_fp_regs): Update.
10635 (arm_netbsd_nat_target::read_description): New function.
10636 (fetch_elfcore_registers): Update.
10637
10638 2020-03-02 Andrew Burgess <andrew.burgess@embecosm.com>
10639
10640 * remote.c (remote_target::remote_parse_stop_reply): Don't use the
10641 general_thread if the stop reply is missing a thread-id.
10642 (remote_target::process_stop_reply): Use the first non-exited
10643 thread if the target didn't pass a thread-id.
10644 * infrun.c (do_target_wait): Move call to
10645 switch_to_inferior_no_thread to ....
10646 (do_target_wait_1): ... here.
10647
10648 2020-02-29 Jon Turney <jon.turney@dronecode.org.uk>
10649
10650 * debuginfod-support.c: Include defs.h first.
10651
10652 2020-02-28 Tom de Vries <tdevries@suse.de>
10653
10654 * symfile.c (set_initial_language): Use default language for lookup.
10655
10656 2020-02-28 Simon Marchi <simon.marchi@efficios.com>
10657
10658 * dwarf2/read.c (cutu_reader::init_tu_and_read_dwo_dies): Remove
10659 reader variable, pass `this` to read_cutu_die_from_dwo.
10660
10661 2020-02-27 Aaron Merey <amerey@redhat.com>
10662
10663 * source.c (open_source_file): Check for nullptr when computing
10664 srcpath.
10665
10666 2020-02-27 Tom Tromey <tromey@adacore.com>
10667
10668 * dwarf2/read.c (struct field_info) <nfields>: Now a method, not a
10669 member.
10670 (dwarf2_add_field): Don't update nfields.
10671 (dwarf2_attach_fields_to_type, process_structure_scope): Update.
10672
10673 2020-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
10674
10675 * gdbtypes.c (create_array_type_with_stride): Use std::abs not
10676 abs.
10677
10678 2020-02-26 Tom Tromey <tom@tromey.com>
10679
10680 * dwarf2/read.c (struct dwarf2_include_psymtab): New.
10681 (dwarf2_create_include_psymtab): Use dwarf2_include_psymtab.
10682 (dwarf2_psymtab::expand_psymtab, dwarf2_psymtab::readin_p)
10683 (dwarf2_psymtab::get_compunit_symtab): Remove null checks for
10684 per_cu_data.
10685
10686 2020-02-26 Tom Tromey <tom@tromey.com>
10687
10688 * dwarf2/index-write.c (psym_index_map): Change type.
10689 (add_address_entry_worker, write_one_signatured_type)
10690 (recursively_count_psymbols, recursively_write_psymbols)
10691 (class debug_names, psyms_seen_size, write_gdbindex)
10692 (write_debug_names): Use partial_symtab, not dwarf2_psymtab.
10693
10694 2020-02-26 Aaron Merey <amerey@redhat.com>
10695
10696 * Makefile.in: Handle optional debuginfod support.
10697 * NEWS: Update.
10698 * README: Add --with-debuginfod summary.
10699 * config.in: Regenerate.
10700 * configure: Regenerate.
10701 * configure.ac: Handle optional debuginfod support.
10702 * debuginfod-support.c: debuginfod helper functions.
10703 * debuginfod-support.h: Ditto.
10704 * doc/gdb.texinfo: Add --with-debuginfod to configure options
10705 summary.
10706 * dwarf2/read.c (dwarf2_get_dwz_file): Query debuginfod servers
10707 when a dwz file cannot be found.
10708 * elfread.c (elf_symfile_read): Query debuginfod servers when a
10709 debuginfo file cannot be found.
10710 * source.c (open_source_file): Query debuginfod servers when a
10711 source file cannot be found.
10712 * top.c (print_gdb_configuration): Include
10713 --{with,without}-debuginfod in the output.
10714
10715 2020-02-26 Jérémie Galarneau <jeremie.galarneau@efficios.com>
10716
10717 * thread.c (thr_try_catch_cmd): Print thread name.
10718
10719 2020-02-26 Simon Marchi <simon.marchi@efficios.com>
10720
10721 * dwarf2/loc.h (dwarf2_fetch_die_loc_sect_off,
10722 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
10723 dwarf2_fetch_die_type_sect_off): Move to...
10724 * dwarf2/read.h (dwarf2_fetch_die_loc_sect_off,
10725 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
10726 dwarf2_fetch_die_type_sect_off): ... here.
10727 * dwarf2/read.c (dwarf2_fetch_die_loc_sect_off,
10728 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
10729 dwarf2_fetch_die_type_sect_off): Move doc to header file.
10730
10731 2020-02-26 Tom de Vries <tdevries@suse.de>
10732
10733 PR gdb/25603
10734 * symfile.c (set_initial_language): Exit-early if
10735 language_mode == language_mode_manual.
10736
10737 2020-02-25 Simon Marchi <simon.marchi@polymtl.ca>
10738
10739 * dwarf2/loc.h (dwarf2_read_addr_index): Move...
10740 * dwarf2/read.h (dwarf2_read_addr_index): ... here.
10741 * dwarf2/read.c (dwarf2_read_addr_index): Move doc to header.
10742
10743 2020-02-25 Andrew Burgess <andrew.burgess@embecosm.com>
10744
10745 * gdbtypes.c (create_array_type_with_stride): Handle negative
10746 array strides.
10747 * valarith.c (value_subscripted_rvalue): Likewise.
10748
10749 2020-02-25 Luis Machado <luis.machado@linaro.org>
10750
10751 * aarch64-tdep.c (aarch64_vnv_type): Fix comment typo.
10752
10753 2020-02-25 Simon Marchi <simon.marchi@polymtl.ca>
10754
10755 * loc.h (dwarf2_get_die_type): Move to...
10756 * read.h (dwarf2_get_die_type): ... here.
10757 * read.c (dwarf2_get_die_type): Move doc to header.
10758
10759 2020-02-25 Joel Brobecker <brobecker@adacore.com>
10760
10761 * copypright.py (EXCLUDE_LIST): Add 'gnulib/config.in' and
10762 'gnulib/Makefile.in' to the list.
10763
10764 2020-02-24 Tom Tromey <tom@tromey.com>
10765
10766 * dwarf2/read.h (struct type_unit_unshareable) <num_symtabs>:
10767 Remove.
10768 * dwarf2/read.c (dwarf2_cu::setup_type_unit_groups): Use
10769 XOBNEWVEC.
10770
10771 2020-02-24 Tom Tromey <tom@tromey.com>
10772
10773 * dwarf2/read.h (struct dwarf2_per_cu_data) <type_unit_group_p>:
10774 New method.
10775 * dwarf2/read.c (IS_TYPE_UNIT_GROUP): Remove.
10776 (dw2_do_instantiate_symtab, dw2_get_file_names)
10777 (build_type_psymtab_dependencies, load_full_type_unit): Update.
10778
10779 2020-02-24 Tom Tromey <tom@tromey.com>
10780
10781 * dwarf2read.c (dwarf2_build_psymtabs_hard): Use
10782 make_scoped_restore.
10783 (dwarf2_psymtab::read_symtab): Don't clear
10784 reading_partial_symbols.
10785
10786 2020-02-24 Tom de Vries <tdevries@suse.de>
10787
10788 PR gdb/25592
10789 * stack.c (iterate_over_block_locals): Handle LOC_CONST.
10790
10791 2020-02-24 Tom de Vries <tdevries@suse.de>
10792
10793 * tui/tui-layout.c (_initialize_tui_layout): Fix help messages for
10794 commands layout next/prev/regs.
10795
10796 2020-02-22 Tom Tromey <tom@tromey.com>
10797
10798 * dwarf2/loc.h (dwarf2_compile_expr_to_ax): Don't declare.
10799 * dwarf2/loc.c (dwarf2_compile_expr_to_ax): Now static.
10800
10801 2020-02-22 Tom Tromey <tom@tromey.com>
10802
10803 * tui/tui-data.h (TUI_DISASM_WIN): Cast to tui_disasm_window.
10804
10805 2020-02-22 Tom Tromey <tom@tromey.com>
10806
10807 * tui/tui-win.c (_initialize_tui_win): Add usage text.
10808 * tui/tui-stack.c (_initialize_tui_stack): Add usage text.
10809 * tui/tui-regs.c (_initialize_tui_regs): Add usage text.
10810 * tui/tui.c (_initialize_tui): Add usage text.
10811
10812 2020-02-22 Tom Tromey <tom@tromey.com>
10813
10814 * tui/tui-win.c (tui_set_focus_command)
10815 (tui_set_win_height_command): Use error_no_arg.
10816 (_initialize_tui_win): Update help text.
10817 (FOCUS_USAGE, WIN_HEIGHT_USAGE): Don't define.
10818
10819 2020-02-22 Tom Tromey <tom@tromey.com>
10820
10821 * tui/tui-layout.c (extract_display_start_addr): Rewrite.
10822 * tui/tui-disasm.h (struct tui_disasm_window)
10823 <display_start_addr>: Declare.
10824 * tui/tui-source.h (struct tui_source_window)
10825 <display_start_addr>: Declare.
10826 * tui/tui-winsource.h (struct tui_source_window_base)
10827 <show_source_line, display_start_addr>: New methods.
10828 <m_horizontal_offset, m_start_line_or_addr, m_gdbarch, m_content>:
10829 Rename and move to protected section.
10830 * tui/tui-winsource.c (tui_source_window_base::update_source_window)
10831 (tui_source_window_base::do_erase_source_content): Update.
10832 (tui_source_window_base::show_source_line): Now a method.
10833 (tui_source_window_base::show_source_content)
10834 (tui_source_window_base::tui_source_window_base)
10835 (tui_source_window_base::rerender)
10836 (tui_source_window_base::refill)
10837 (tui_source_window_base::do_scroll_horizontal)
10838 (tui_source_window_base::set_is_exec_point_at)
10839 (tui_source_window_base::update_breakpoint_info)
10840 (tui_source_window_base::update_exec_info): Update.
10841 * tui/tui-source.c (tui_source_window::set_contents)
10842 (tui_source_window::showing_source_p)
10843 (tui_source_window::do_scroll_vertical)
10844 (tui_source_window::location_matches_p)
10845 (tui_source_window::line_is_displayed): Update.
10846 (tui_source_window::display_start_addr): New method.
10847 * tui/tui-disasm.c (tui_disasm_window::set_contents)
10848 (tui_disasm_window::do_scroll_vertical)
10849 (tui_disasm_window::location_matches_p): Update.
10850 (tui_disasm_window::display_start_addr): New method.
10851
10852 2020-02-22 Tom Tromey <tom@tromey.com>
10853
10854 * NEWS: Add entry for gdb.register_window_type.
10855 * tui/tui-layout.h (window_factory): New typedef.
10856 (tui_register_window): Declare.
10857 * tui/tui-layout.c (saved_tui_windows): New global.
10858 (tui_apply_current_layout): Use it.
10859 (tui_register_window): New function.
10860 * python/python.c (do_start_initialization): Call
10861 gdbpy_initialize_tui.
10862 (python_GdbMethods): Add "register_window_type" function.
10863 * python/python-internal.h (gdbpy_register_tui_window)
10864 (gdbpy_initialize_tui): Declare.
10865 * python/py-tui.c: New file.
10866 * Makefile.in (SUBDIR_PYTHON_SRCS): Add py-tui.c.
10867
10868 2020-02-22 Tom Tromey <tom@tromey.com>
10869
10870 * tui/tui-io.c (do_tui_putc): Don't omit annotations.
10871
10872 2020-02-22 Tom Tromey <tom@tromey.com>
10873
10874 * tui/tui-win.c (tui_set_win_focus_to): Move to tui-data.c.
10875 * tui/tui-data.h (tui_set_win_with_focus): Don't declare.
10876 * tui/tui-data.c (tui_set_win_with_focus): Remove.
10877 (tui_set_win_focus_to): Move from tui-win.c.
10878
10879 2020-02-22 Tom Tromey <tom@tromey.com>
10880
10881 * tui/tui-layout.c (make_standard_window, get_locator_window): New
10882 functions.
10883 (known_window_types): New global.
10884 (tui_get_window_by_name): Reimplement.
10885 (initialize_known_windows): New function.
10886 (validate_window_name): Rewrite.
10887 (_initialize_tui_layout): Call initialize_known_windows.
10888
10889 2020-02-22 Tom Tromey <tom@tromey.com>
10890
10891 * tui/tui.h (enum tui_win_type) <LOCATOR_WIN, DATA_ITEM_WIN>:
10892 Remove constants.
10893 * tui/tui-winsource.h (struct tui_source_window_base)
10894 <tui_source_window_base>: Remove parameter.
10895 * tui/tui-winsource.c
10896 (tui_source_window_base::tui_source_window_base): Remove
10897 parameter.
10898 (tui_source_window_base::refill): Update.
10899 * tui/tui-stack.h (struct tui_locator_window)
10900 <tui_locator_window>: Update.
10901 * tui/tui-source.h (struct tui_source_window) <tui_source_window>:
10902 Default the constructor.
10903 * tui/tui-regs.h (struct tui_data_item_window)
10904 <tui_data_item_window>: Default the constructor.
10905 (struct tui_data_window) <tui_data_window>: Likewise.
10906 * tui/tui-disasm.h (struct tui_disasm_window) <tui_disasm_window>:
10907 Default the constructor.
10908 * tui/tui-data.h (struct tui_gen_win_info) <tui_gen_win_info>:
10909 Default the constructor.
10910 <type>: Remove.
10911 (struct tui_win_info) <tui_win_info>: Default the constructor.
10912 * tui/tui-data.c (tui_win_info::tui_win_info): Remove.
10913 * tui/tui-command.h (struct tui_cmd_window) <tui_cmd_window>:
10914 Default the constructor.
10915
10916 2020-02-22 Tom Tromey <tom@tromey.com>
10917
10918 * tui/tui-wingeneral.h (tui_make_all_invisible): Don't declare.
10919 * tui/tui-wingeneral.c (tui_make_all_invisible): Remove.
10920 * tui/tui-win.c (tui_resize_all): Don't call
10921 tui_delete_invisible_windows.
10922 * tui/tui-layout.c (tui_apply_current_layout): Delete windows when
10923 done.
10924 (tui_set_layout): Update.
10925 (tui_add_win_to_layout): Don't call tui_delete_invisible_windows.
10926 * tui/tui-data.h (tui_delete_invisible_windows): Don't declare.
10927 * tui/tui-data.c (tui_delete_invisible_windows): Remove.
10928
10929 2020-02-22 Tom Tromey <tom@tromey.com>
10930
10931 * tui/tui-win.c (tui_partial_win_by_name): Handle ambiguity
10932 correctly.
10933
10934 2020-02-22 Tom Tromey <tom@tromey.com>
10935
10936 * tui/tui-data.c (tui_next_win, tui_prev_win): Reimplement.
10937
10938 2020-02-22 Tom Tromey <tom@tromey.com>
10939
10940 * tui/tui-winsource.h (struct tui_source_window_iterator)
10941 <inner_iterator>: New etytypedef.
10942 <tui_source_window_iterator>: Take "end" parameter.
10943 <tui_source_window_iterator>: Take iterator.
10944 <operator*, advance>: Update.
10945 <m_iter>: Change type.
10946 <m_end>: New field.
10947 (struct tui_source_windows) <begin, end>: Update.
10948 * tui/tui-layout.c (tui_windows): New global.
10949 (tui_apply_current_layout): Clear tui_windows.
10950 (tui_layout_window::apply): Update tui_windows.
10951 * tui/tui-data.h (tui_windows): Declare.
10952 (all_tui_windows): Now inline function.
10953 (class tui_window_iterator, struct all_tui_windows): Remove.
10954
10955 2020-02-22 Tom Tromey <tom@tromey.com>
10956
10957 PR tui/17850:
10958 * tui/tui-win.c (tui_gen_win_info::max_width): New method.
10959 * tui/tui-layout.h (class tui_layout_base) <get_sizes>: Add
10960 "height" argument.
10961 (class tui_layout_window) <get_sizes>: Likewise.
10962 (class tui_layout_split) <tui_layout_split>: Add "vertical"
10963 argument.
10964 <get_sizes>: Add "height" argument.
10965 <m_vertical>: New field.
10966 * tui/tui-layout.c (tui_layout_split::clone): Update.
10967 (tui_layout_split::get_sizes): Add "height" argument.
10968 (tui_layout_split::adjust_size, tui_layout_split::apply): Update.
10969 (tui_new_layout_command): Parse "-horizontal".
10970 (_initialize_tui_layout): Update help string.
10971 (tui_layout_split::specification): Add "-horizontal" when needed.
10972 * tui/tui-layout.c (tui_layout_window::get_sizes): Add "height"
10973 argument.
10974 * tui/tui-data.h (struct tui_gen_win_info) <max_width, min_width>:
10975 New methods.
10976
10977 2020-02-22 Tom Tromey <tom@tromey.com>
10978
10979 * tui/tui-layout.h (enum tui_adjust_result): New.
10980 (class tui_layout_base) <adjust_size>: Return tui_adjust_result.
10981 (class tui_layout_window) <adjust_size>: Return
10982 tui_adjust_result. Rewrite.
10983 (class tui_layout_split) <adjust_size>: Return tui_adjust_result.
10984 * tui/tui-layout.c (tui_layout_split::adjust_size): Update.
10985
10986 2020-02-22 Tom Tromey <tom@tromey.com>
10987
10988 * tui/tui-layout.h (class tui_layout_split) <add_split>: Change
10989 parameter and return types.
10990 (class tui_layout_base) <specification>: Add "depth".
10991 (class tui_layout_window) <specification>: Add "depth".
10992 (class tui_layout_split) <specification>: Add "depth".
10993 * tui/tui-layout.c (tui_layout_split::add_split): Change parameter
10994 and return types.
10995 (tui_new_layout_command): Parse sub-layouts.
10996 (_initialize_tui_layout): Update help string.
10997 (tui_layout_window::specification): Add "depth".
10998 (add_layout_command): Update.
10999
11000 2020-02-22 Tom Tromey <tom@tromey.com>
11001
11002 * NEWS: Add "tui new-layout" item.
11003 * tui/tui-layout.c (add_layout_command): Return cmd_list_element.
11004 Add new-layout command to help text.
11005 (validate_window_name): New function.
11006 (tui_new_layout_command): New function.
11007 (_initialize_tui_layout): Register "new-layout".
11008 (tui_layout_window::specification): New method.
11009 (tui_layout_window::specification): New method.
11010 * tui/tui-layout.h (class tui_layout_base) <specification>: New
11011 method.
11012 (class tui_layout_window) <specification>: New method.
11013 (class tui_layout_split) <specification>: New method.
11014
11015 2020-02-22 Tom Tromey <tom@tromey.com>
11016
11017 * tui/tui.c (tui_enable): Call tui_set_initial_layout.
11018 * tui/tui-win.c (window_name_completer): Update comment.
11019 * tui/tui-layout.h (class tui_layout_base) <replace_window>:
11020 Declare method.
11021 (class tui_layout_window) <replace_window>: Likewise.
11022 (class tui_layout_split) <replace_window>: Likewise.
11023 (tui_set_layout): Don't declare.
11024 (tui_set_initial_layout): Declare function.
11025 * tui/tui-layout.c (layouts, applied_skeleton, src_regs_layout)
11026 (asm_regs_layout): New globals.
11027 (tui_current_layout, show_layout): Remove.
11028 (tui_set_layout, tui_add_win_to_layout): Rewrite.
11029 (find_layout, tui_apply_layout): New function.
11030 (layout_completer): Remove.
11031 (tui_next_layout): Reimplement.
11032 (tui_next_layout_command): New function.
11033 (tui_set_initial_layout, tui_prev_layout_command): New functions.
11034 (tui_regs_layout): Reimplement.
11035 (tui_regs_layout_command): New function.
11036 (extract_display_start_addr): Rewrite.
11037 (next_layout, prev_layout): Remove.
11038 (tui_layout_window::replace_window): New method.
11039 (tui_layout_split::replace_window): New method.
11040 (destroy_layout): New function.
11041 (layout_list): New global.
11042 (add_layout_command): New function.
11043 (initialize_layouts): Update.
11044 (tui_layout_command): New function.
11045 (_initialize_tui_layout): Install "layout" commands.
11046 * tui/tui-data.h (enum tui_layout_type): Remove.
11047 (tui_current_layout): Don't declare.
11048
11049 2020-02-22 Tom Tromey <tom@tromey.com>
11050
11051 * tui/tui-regs.c (tui_reg_layout): Remove.
11052 (tui_reg_command): Use tui_regs_layout.
11053 * tui/tui-layout.h (tui_reg_command): Declare.
11054 * tui/tui-layout.c (tui_reg_command): New function.
11055
11056 2020-02-22 Tom Tromey <tom@tromey.com>
11057
11058 * tui/tui.c (tui_rl_delete_other_windows): Call
11059 tui_remove_some_windows.
11060 * tui/tui-layout.h (class tui_layout_base) <remove_windows>:
11061 Declare method.
11062 (class tui_layout_window) <remove_windows>: New method.
11063 (class tui_layout_split) <remove_windows>: Declare.
11064 (tui_remove_some_windows): Declare.
11065 * tui/tui-layout.c (tui_remove_some_windows): New function.
11066 (tui_layout_split::remove_windows): New method.
11067
11068 2020-02-22 Tom Tromey <tom@tromey.com>
11069
11070 * tui/tui.c (tui_rl_change_windows): Call tui_next_layout.
11071 * tui/tui-layout.h (tui_next_layout): Declare.
11072 * tui/tui-layout.c (tui_next_layout): New function.
11073
11074 2020-02-22 Tom Tromey <tom@tromey.com>
11075
11076 * tui/tui-regs.c (tui_data_window::display_registers_from): Use
11077 correct coordinates.
11078
11079 2020-02-22 Tom Tromey <tom@tromey.com>
11080
11081 * tui/tui-layout.h (tui_add_win_to_layout): Add comment.
11082 * tui/tui-layout.c (tui_add_win_to_layout): Add assert. Remove
11083 DATA_WIN case.
11084
11085 2020-02-22 Tom Tromey <tom@tromey.com>
11086
11087 * tui/tui-disasm.c (tui_get_low_disassembly_address): Use
11088 TUI_DISASM_WIN, not tui_win_list.
11089
11090 2020-02-22 Tom Tromey <tom@tromey.com>
11091
11092 * valprint.c (generic_val_print_enum_1)
11093 (val_print_type_code_flags): Style member names.
11094 * rust-lang.c (val_print_struct, rust_print_enum)
11095 (rust_print_struct_def, rust_internal_print_type): Style member
11096 names.
11097 * p-valprint.c (pascal_object_print_value_fields): Style member
11098 names. Only call fprintf_symbol_filtered for static members.
11099 * m2-typeprint.c (m2_record_fields, m2_enum): Style member names.
11100 * f-valprint.c (f_val_print): Style member names.
11101 * f-typeprint.c (f_type_print_base): Style member names.
11102 * cp-valprint.c (cp_print_value_fields): Style member names. Only
11103 call fprintf_symbol_filtered for static members.
11104 (cp_print_class_member): Style member names.
11105 * c-typeprint.c (c_print_type_1, c_type_print_base_1): Style
11106 member names.
11107 * ada-valprint.c (ada_print_scalar): Style enum names.
11108 (ada_val_print_enum): Likewise.
11109 * ada-typeprint.c (print_enum_type): Style enum names.
11110
11111 2020-02-21 Tom Tromey <tom@tromey.com>
11112
11113 * psympriv.h (struct partial_symtab): Update comment.
11114
11115 2020-02-21 Tom Tromey <tromey@adacore.com>
11116
11117 * mips-tdep.h (mips_pc_is_mips16, mips_pc_is_micromips): Parameter
11118 type is CORE_ADDR.
11119
11120 2020-02-21 Tom de Vries <tdevries@suse.de>
11121
11122 PR gdb/25534
11123 * psymtab.c (partial_symtab::read_dependencies): Don't read dependency
11124 if dependencies[i]->user != NULL.
11125
11126 2020-02-21 Ali Tamur <tamur@google.com>
11127
11128 * dwarf2/read.c (dwarf2_name): Add null check.
11129
11130 2020-02-20 Tom Tromey <tom@tromey.com>
11131
11132 * dwarf2/read.c (dwarf2_find_containing_comp_unit): Use ">", not
11133 ">=", in binary search.
11134 (dwarf2_find_containing_comp_unit): New overload.
11135 (run_test): New self-test.
11136 (_initialize_dwarf2_read): Register new test.
11137
11138 2020-02-20 Nelson Chu <nelson.chu@sifive.com>
11139
11140 * riscv-tdep.c: Updated since the DECLARE_CSR is changed.
11141 * riscv-tdep.h: Likewise.
11142 * features/riscv/rebuild-csr-xml.sh: Generate the 64bit-csr.xml without
11143 rv32-only CSR.
11144 * features/riscv/64bit-csr.xml: Regenerated.
11145
11146 2020-02-20 Sergio Durigan Junior <sergiodj@redhat.com>
11147 Tom Tromey <tom@tromey.com>
11148
11149 * utils.c (fputs_maybe_filtered): Call 'stream->puts' instead
11150 of 'fputc_unfiltered'.
11151 (putchar_unfiltered): Call 'fputc_unfiltered'.
11152 (fputc_unfiltered): Call 'fputs_unfiltered'.
11153
11154 2020-02-20 Andrew Burgess <andrew.burgess@embecosm.com>
11155
11156 * config.in: Regenerate.
11157 * configure: Regenerate.
11158 * configure.ac: Add --with-python-libdir option.
11159 * main.c: Use WITH_PYTHON_LIBDIR.
11160
11161 2020-02-19 Tom Tromey <tom@tromey.com>
11162
11163 * symtab.c (general_symbol_info::compute_and_set_names): Use
11164 obstack_strndup. Simplify call to symbol_set_demangled_name.
11165
11166 2020-02-19 Simon Marchi <simon.marchi@efficios.com>
11167
11168 * dwarf2/read.c (allocate_signatured_type_table,
11169 allocate_dwo_unit_table, allocate_type_unit_groups_table,
11170 allocate_dwo_file_hash_table, allocate_dwp_loaded_cutus_table):
11171 Remove objfile parameter, update all callers.
11172
11173 2020-02-19 Doug Evans <dje@google.com>
11174
11175 PR rust/25535
11176 * rust-lang.c (rust_print_enum): Apply embedded_offset to
11177 rust_enum_variant calculation.
11178
11179 2020-02-19 Tom Tromey <tromey@adacore.com>
11180
11181 * mips-tdep.h (mips_pc_is_mips): Parameter type is CORE_ADDR.
11182
11183 2020-02-19 Tom Tromey <tromey@adacore.com>
11184
11185 * ada-lang.c (cache_symbol): Use obstack_strdup.
11186
11187 2020-02-19 Andrew Burgess <andrew.burgess@embecosm.com>
11188
11189 * configure: Regenerate.
11190
11191 2020-02-19 Tom Tromey <tromey@adacore.com>
11192
11193 * python/python.c (do_start_initialization): Use XNEWVEC. Remove
11194 NULL check.
11195
11196 2020-02-19 Maciej W. Rozycki <macro@wdc.com>
11197
11198 * NEWS: Mention RISC-V GNU/Linux GDBserver support.
11199
11200 2020-02-19 Andrew Burgess <andrew.burgess@embecosm.com>
11201
11202 * arch/riscv.c (struct riscv_gdbarch_features_hasher): Only define
11203 if GDBSERVER is not defined.
11204 (riscv_tdesc_cache): Likewise, also store const target_desc.
11205 (STATIC_IN_GDB): Define.
11206 (riscv_create_target_description): Update declaration with
11207 STATIC_IN_GDB.
11208 (riscv_lookup_target_description): New function, only define if
11209 GDBSERVER is not defined.
11210 * arch/riscv.h (riscv_create_target_description): Declare only
11211 when GDBSERVER is defined.
11212 (riscv_lookup_target_description): New declaration when GDBSERVER
11213 is not defined.
11214 * nat/riscv-linux-tdesc.c (riscv_linux_read_description): Rename to...
11215 (riscv_linux_read_features): ...this, and return
11216 riscv_gdbarch_features instead of target_desc.
11217 * nat/riscv-linux-tdesc.h: Include 'arch/riscv.h'.
11218 (riscv_linux_read_description): Rename to...
11219 (riscv_linux_read_features): ...this.
11220 * riscv-linux-nat.c (riscv_linux_nat_target::read_description):
11221 Update to use riscv_gdbarch_features and
11222 riscv_lookup_target_description.
11223 * riscv-tdep.c (riscv_find_default_target_description): Use
11224 riscv_lookup_target_description instead of
11225 riscv_create_target_description.
11226
11227 2020-02-18 Simon Marchi <simon.marchi@efficios.com>
11228
11229 * valprint.c (generic_val_print_enum_1): When printing a flag
11230 enum with value 0 and there is no enumerator with value 0, print
11231 just "0" instead of "(unknown: 0x0)".
11232
11233 2020-02-18 Simon Marchi <simon.marchi@efficios.com>
11234
11235 * valprint.c (generic_val_print_enum_1): Print unknown part of
11236 flag enum in hex.
11237
11238 2020-02-18 Simon Marchi <simon.marchi@efficios.com>
11239
11240 * dwarf2/read.c (update_enumeration_type_from_children): Allow
11241 flag enums to contain duplicate enumerators.
11242 * valprint.c (generic_val_print_enum_1): Update comment.
11243
11244 2020-02-18 Simon Marchi <simon.marchi@efficios.com>
11245
11246 * dwarf2/read.c: Include "count-one-bits.h".
11247 (update_enumeration_type_from_children): If an enumerator has
11248 multiple bits set, don't treat the enumeration as a "flag enum".
11249 * valprint.c (generic_val_print_enum_1): Assert that enumerators
11250 of flag enums have 0 or 1 bit set.
11251
11252 2020-02-18 Bernd Edlinger <bernd.edlinger@hotmail.de>
11253
11254 * aarch64-tdep.c (aarch64_displaced_step_copy_insn): Use an explicit
11255 conversion.
11256 * amd64-tdep.c (amd64_displaced_step_copy_insn): Likewise.
11257 * arm-linux-tdep.c (arm_linux_displaced_step_copy_insn): Likewise.
11258 * i386-tdep.c (i386_displaced_step_copy_insn): Likewise.
11259 * rs6000-tdep.c (ppc_displaced_step_copy_insn): Likewise.
11260 * s390-tdep.c (s390_displaced_step_copy_insn): Likewise.
11261
11262 2020-02-18 Simon Marchi <simon.marchi@efficios.com>
11263
11264 * MAINTAINERS: Change palmer@sifive.com to palmer@dabbelt.com.
11265
11266 2020-02-14 Simon Marchi <simon.marchi@efficios.com>
11267
11268 * aarch64-tdep.c (aarch64_displaced_step_copy_insn): Use
11269 displaced_step_closure_up.
11270 * aarch64-tdep.h (aarch64_displaced_step_copy_insn): Likewise.
11271 (struct displaced_step_closure_up):
11272 * amd64-tdep.c (amd64_displaced_step_copy_insn): Likewise.
11273 * amd64-tdep.h (amd64_displaced_step_copy_insn): Likewise.
11274 * arm-linux-tdep.c (arm_linux_displaced_step_copy_insn):
11275 Likewise.
11276 * gdbarch.sh (displaced_step_copy_insn): Likewise.
11277 * gdbarch.c, gdbarch.h: Re-generate.
11278 * i386-linux-tdep.c (i386_linux_displaced_step_copy_insn): Use
11279 displaced_step_closure_up.
11280 * i386-tdep.c (i386_displaced_step_copy_insn): Likewise.
11281 * i386-tdep.h (i386_displaced_step_copy_insn): Likewise.
11282 * infrun.h (displaced_step_closure_up): New type alias.
11283 (struct displaced_step_inferior_state) <step_closure>: Change
11284 type to displaced_step_closure_up.
11285 * rs6000-tdep.c (ppc_displaced_step_copy_insn): Use
11286 displaced_step_closure_up.
11287 * s390-tdep.c (s390_displaced_step_copy_insn): Likewise.
11288
11289 2020-02-14 Tom Tromey <tom@tromey.com>
11290
11291 * minidebug.c (gnu_debug_key): New global.
11292 (find_separate_debug_file_in_section): Use it.
11293
11294 2020-02-14 Simon Marchi <simon.marchi@efficios.com>
11295
11296 * gdbarch.sh (displaced_step_copy_insn): Change return type to an
11297 std::unique_ptr.
11298 * gdbarch.c: Re-generate.
11299 * gdbarch.h: Re-generate.
11300 * infrun.c (displaced_step_prepare_throw): Adjust to std::unique_ptr
11301 change.
11302 * aarch64-tdep.c (aarch64_displaced_step_copy_insn): Change return
11303 type to std::unique_ptr.
11304 * aarch64-tdep.h (aarch64_displaced_step_copy_insn): Likewise.
11305 * amd64-tdep.c (amd64_displaced_step_copy_insn): Likewise.
11306 * amd64-tdep.h (amd64_displaced_step_copy_insn): Likewise.
11307 * arm-linux-tdep.c (arm_linux_displaced_step_copy_insn): Likewise.
11308 * i386-linux-tdep.c (i386_linux_displaced_step_copy_insn): Likewise.
11309 * i386-tdep.c (i386_displaced_step_copy_insn): Likewise.
11310 * i386-tdep.h (i386_displaced_step_copy_insn): Likewise.
11311 * rs6000-tdep.c (ppc_displaced_step_copy_insn): Likewise.
11312 * s390-tdep.c (s390_displaced_step_copy_insn): Likewise.
11313
11314 2020-02-14 Simon Marchi <simon.marchi@efficios.com>
11315
11316 * infrun.c (get_displaced_step_closure_by_addr): Adjust to
11317 std::unique_ptr.
11318 (displaced_step_clear): Rename to...
11319 (displaced_step_reset): ... this. Just call displaced->reset ().
11320 (displaced_step_clear_cleanup): Rename to...
11321 (displaced_step_reset_cleanup): ... this.
11322 (displaced_step_prepare_throw): Adjust to std::unique_ptr.
11323 (displaced_step_fixup): Likewise.
11324 (resume_1): Likewise.
11325 (handle_inferior_event): Restore child's memory before calling
11326 displaced_step_fixup on the parent.
11327 * infrun.h (displaced_step_inferior_state) <reset>: Adjust
11328 to std::unique_ptr.
11329 <step_closure>: Change type to std::unique_ptr.
11330
11331 2020-02-14 Simon Marchi <simon.marchi@efficios.com>
11332
11333 * arm-tdep.c: Include count-one-bits.h.
11334 (cleanup_block_store_pc): Use count_one_bits.
11335 (cleanup_block_load_pc): Use count_one_bits.
11336 (arm_copy_block_xfer): Use count_one_bits.
11337 (thumb2_copy_block_xfer): Use count_one_bits.
11338 (thumb_copy_pop_pc_16bit): Use count_one_bits.
11339 * arch/arm-get-next-pcs.c: Include count-one-bits.h.
11340 (thumb_get_next_pcs_raw): Use count_one_bits.
11341 (arm_get_next_pcs_raw): Use count_one_bits_l.
11342 * arch/arm.c (bitcount): Remove.
11343 * arch/arm.h (bitcount): Remove.
11344
11345 2020-02-14 Tom Tromey <tromey@adacore.com>
11346
11347 * dwarf2/frame-tailcall.c (dwarf2_tailcall_sniffer_first):
11348 Update.
11349 * dwarf2/loc.h (call_site_find_chain): Return unique_xmalloc_ptr.
11350 * dwarf2/loc.c (call_site_find_chain_1): Return
11351 unique_xmalloc_ptr.
11352 (call_site_find_chain): Likewise.
11353
11354 2020-02-14 Richard Biener <rguenther@suse.de>
11355
11356 * dwarf2/read.c (lnp_state_machine::handle_special_opcode): Apply CSE
11357 on expression with division operators.
11358
11359 2020-02-13 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
11360
11361 * MAINTAINERS (Write After Approval): Adding myself.
11362
11363 2020-02-12 Tom Tromey <tom@tromey.com>
11364
11365 * event-loop.c (event_data, gdb_event, event_handler_func):
11366 Remove.
11367
11368 2020-02-12 Tom Tromey <tom@tromey.com>
11369
11370 * dwarf2/frame.c (dwarf2_frame_bfd_data): New global.
11371 (dwarf2_frame_objfile_data): Add comment.
11372 (find_comp_unit, set_comp_unit): New functions.
11373 (dwarf2_frame_find_fde): Use find_comp_unit.
11374 (dwarf2_build_frame_info): Use set_comp_unit.
11375
11376 2020-02-12 Tom Tromey <tom@tromey.com>
11377
11378 * dwarf2/frame.c (struct comp_unit) <objfile>: Remove.
11379 (comp_unit): Don't initialize objfile.
11380 (execute_cfa_program): Add text_offset parameter.
11381 (execute_cfa_program_test, dwarf2_fetch_cfa_info)
11382 (dwarf2_frame_cache): Update.
11383 (dwarf2_build_frame_info): Don't set "objfile" member.
11384
11385 2020-02-12 Tom Tromey <tom@tromey.com>
11386
11387 * dwarf2/frame.c (decode_frame_entry_1): Add gdbarch parameter.
11388 (decode_frame_entry): Likewise.
11389 (dwarf2_build_frame_info): Update.
11390
11391 2020-02-12 Tom Tromey <tom@tromey.com>
11392
11393 * dwarf2/frame.c (struct comp_unit) <obstack>: New member.
11394 (decode_frame_entry_1): Use the comp_unit obstack.
11395
11396 2020-02-12 Tom Tromey <tom@tromey.com>
11397
11398 * dwarf2/frame.c (struct comp_unit): Add initializers and
11399 constructor.
11400 (dwarf2_frame_objfile_data): Store a comp_unit.
11401 (dwarf2_frame_find_fde): Update.
11402 (dwarf2_build_frame_info): Use "new".
11403
11404 2020-02-12 Tom Tromey <tom@tromey.com>
11405
11406 * dwarf2/frame.c (struct dwarf2_fde_table): Remove.
11407 (dwarf2_fde_table): Typedef for std::vector.
11408 (dwarf2_frame_objfile_data): Remove the deleter. Now static.
11409 (dwarf2_frame_find_fde, add_fde, decode_frame_entry_1)
11410 (decode_frame_entry): Update.
11411 (dwarf2_build_frame_info): Use "new".
11412
11413 2020-02-12 Christian Biesinger <cbiesinger@google.com>
11414
11415 * arm-tdep.c (arm_gdbarch_init): Update.
11416 * arm-tdep.h (struct gdbarch_tdep) <have_fpa_registers,
11417 have_wmmx_registers, have_vfp_pseudos, have_neon_pseudos,
11418 have_neon, is_m>: Change to bool.
11419
11420 2020-02-12 Christian Biesinger <cbiesinger@google.com>
11421
11422 * arm-tdep.c (arm_dump_tdep): Print more fields of tdep.
11423
11424 2020-02-12 Tom Tromey <tom@tromey.com>
11425
11426 * dwarf2/loc.c (struct dwarf_expr_baton): Remove.
11427
11428 2020-02-12 Hannes Domani <ssbssa@yahoo.de>
11429
11430 * windows-tdep.c (struct windows_gdbarch_data): Add tib_ptr_type.
11431 (windows_get_tlb_type): Use windows_gdbarch_data->tib_ptr_type.
11432
11433 2020-02-11 Tom Tromey <tom@tromey.com>
11434
11435 * psymtab.h: Update comment.
11436
11437 2020-02-11 Tom Tromey <tom@tromey.com>
11438
11439 * gdb_obstack.h (struct auto_obstack): Use
11440 DISABLE_COPY_AND_ASSIGN.
11441
11442 2020-02-11 Tom Tromey <tom@tromey.com>
11443
11444 * dwarf2/frame.h (struct objfile): Don't forward declare.
11445
11446 2020-02-11 Christian Biesinger <cbiesinger@google.com>
11447
11448 * cris-tdep.c (cris_supply_gregset): Change signature to match
11449 what struct regset expects.
11450 (cris_regset): New struct.
11451 (fetch_core_registers): Remove.
11452 (cris_iterate_over_regset_sections): New function.
11453 (_initialize_cris_tdep): Don't call deprecated_add_core_fns.
11454 (cris_gdbarch_init): Call set_gdbarch_iterate_over_regset_sections.
11455
11456 2020-02-11 Christian Biesinger <cbiesinger@google.com>
11457
11458 * arch/arm.h (enum gdb_regnum): Add comment for the FP0..7
11459 registers.
11460
11461 2020-02-11 Christian Biesinger <cbiesinger@google.com>
11462
11463 * arm-tdep.c (arm_dump_tdep): Add \n in fprintf.
11464
11465 2020-02-11 Simon Marchi <simon.marchi@efficios.com>
11466
11467 * configure: Re-generate.
11468
11469 2020-02-11 Simon Marchi <simon.marchi@efficios.com>
11470
11471 * configure: Re-generate.
11472
11473 2020-02-11 Simon Marchi <simon.marchi@efficios.com>
11474
11475 * acinclude: Update warning.m4 path.
11476 * warning.m4: Move to gdbsupport.
11477
11478 2020-02-11 Tom Tromey <tromey@adacore.com>
11479
11480 * remote.c (remote_console_output): Update.
11481 * printcmd.c (printf_command): Update.
11482 * event-loop.c (gdb_wait_for_event): Update.
11483 * linux-nat.c (sigchld_handler): Update.
11484 * remote-sim.c (gdb_os_write_stdout): Update.
11485 (gdb_os_flush_stdout): Update.
11486 (gdb_os_flush_stderr): Update.
11487 (gdb_os_write_stderr): Update.
11488 * exceptions.c (print_exception): Update.
11489 * remote-fileio.c (remote_fileio_func_read): Update.
11490 (remote_fileio_func_write): Update.
11491 * tui/tui.c (tui_enable): Update.
11492 * tui/tui-interp.c (tui_interp::init): Update.
11493 * utils.c (init_page_info): Update.
11494 (putchar_unfiltered, fputc_unfiltered): Update.
11495 (gdb_flush): Update.
11496 (emit_style_escape): Update.
11497 (flush_wrap_buffer, fputs_maybe_filtered): Update.
11498 * ui-file.c (ui_file_isatty, ui_file_read, ui_file_write)
11499 (ui_file_write_async_safe, ui_file_flush, ui_file_puts): Remove.
11500 (stderr_file::write): Update.
11501 (stderr_file::puts): Update.
11502 * ui-file.h (ui_file_isatty, ui_file_write)
11503 (ui_file_write_async_safe, ui_file_read, ui_file_flush)
11504 (ui_file_puts): Don't declare.
11505
11506 2020-02-10 Tom de Vries <tdevries@suse.de>
11507
11508 * dwarf2/read.c (process_psymtab_comp_unit_reader): Cast concat NULL
11509 sentinel to char *.
11510
11511 2020-02-09 Tom de Vries <tdevries@suse.de>
11512
11513 * dwarf2read.c (process_psymtab_comp_unit_reader): Append CU offset to
11514 filename if it matches "<artificial>".
11515
11516 2020-02-09 Hannes Domani <ssbssa@yahoo.de>
11517
11518 * windows-tdep.c (struct enum_value_name): New struct.
11519 (create_enum): New function.
11520 (windows_get_siginfo_type): Create and use enum types.
11521
11522 2020-02-09 Hannes Domani <ssbssa@yahoo.de>
11523
11524 * NEWS: Mention $_siginfo support for Windows.
11525 * windows-nat.c (handle_exception): Set siginfo_er.
11526 (windows_nat_target::mourn_inferior): Reset siginfo_er.
11527 (windows_xfer_siginfo): New function.
11528 (windows_nat_target::xfer_partial): Call windows_xfer_siginfo.
11529 * windows-tdep.c (struct windows_gdbarch_data): New struct.
11530 (init_windows_gdbarch_data): New function.
11531 (get_windows_gdbarch_data): New function.
11532 (windows_get_siginfo_type): New function.
11533 (windows_init_abi): Register windows_get_siginfo_type.
11534 (_initialize_windows_tdep): Register init_windows_gdbarch_data.
11535
11536 2020-02-08 Tom Tromey <tom@tromey.com>
11537
11538 * dwarf2/read.c (class cutu_reader) <cutu_reader,
11539 init_tu_and_read_dwo_dies>: Remove "keep" parameter.
11540 <keep>: Declare method.
11541 <m_keep>: Remove member.
11542 <~cutu_reader>: Remove.
11543 (cutu_reader::init_tu_and_read_dwo_dies): Update.
11544 (cutu_reader::cutu_reader): Update.
11545 (cutu_reader::keep): Rename from ~cutu_reader.
11546 (process_psymtab_comp_unit, build_type_psymtabs_1)
11547 (process_skeletonless_type_unit, load_partial_comp_unit)
11548 (load_full_comp_unit, dwarf2_read_addr_index)
11549 (read_signatured_type): Update.
11550
11551 2020-02-08 Tom Tromey <tom@tromey.com>
11552
11553 * dwarf2/read.c (process_psymtab_comp_unit_reader): Remove
11554 "want_partial_unit" parameter.
11555 (process_psymtab_comp_unit): Change want_partial_unit to bool.
11556 Inline check for DW_TAG_partial_unit.
11557 (dwarf2_build_psymtabs_hard, scan_partial_symbols): Update.
11558
11559 2020-02-08 Tom Tromey <tom@tromey.com>
11560
11561 * dwarf2/read.c (read_n_bytes, read_direct_string): Move to
11562 read.c.
11563 * dwarf2/leb.h (read_n_bytes, read_direct_string): Move from
11564 read.c.
11565
11566 2020-02-08 Tom Tromey <tom@tromey.com>
11567
11568 * dwarf2/read.c (read_address): Move to comp-unit.c.
11569 (dwarf2_rnglists_process, dwarf2_ranges_process)
11570 (read_attribute_value, dwarf_decode_lines_1)
11571 (var_decode_location, decode_locdesc): Update.
11572 * dwarf2/comp-unit.c (comp_unit_head::read_address): Move from
11573 read.c. Remove "cu" parameter.
11574 * dwarf2/comp-unit.h (struct comp_unit_head) <read_address>: New
11575 method.
11576
11577 2020-02-08 Tom Tromey <tom@tromey.com>
11578
11579 * dwarf2/read.c (read_attribute_value, read_indirect_string)
11580 (read_indirect_line_string): Update.
11581 * dwarf2/comp-unit.c (read_offset): Remove.
11582 (read_comp_unit_head): Update.
11583 * dwarf2/comp-unit.h (struct comp_unit_head) <read_offset>: New
11584 method.
11585 (read_offset): Don't declare.
11586
11587 2020-02-08 Tom Tromey <tom@tromey.com>
11588
11589 * Makefile.in (COMMON_SFILES): Add dwarf2/comp-unit.c.
11590 * dwarf2/read.c (struct comp_unit_head): Move to
11591 dwarf2/comp-unit.h.
11592 (enum class rcuh_kind): Move to comp-unit.h.
11593 (get_cu_length, offset_in_cu_p): Now methods on comp_unit_head.
11594 (read_comp_unit_head, error_check_comp_unit_head)
11595 (read_and_check_comp_unit_head): Move to comp-unit.c.
11596 (read_offset, dwarf_unit_type_name): Likewise.
11597 (create_debug_type_hash_table, read_cutu_die_from_dwo)
11598 (cutu_reader::cutu_reader, read_call_site_scope)
11599 (find_partial_die, follow_die_offset): Update.
11600 * dwarf2/comp-unit.h: New file, from dwarf2read.c.
11601
11602 2020-02-08 Tom Tromey <tom@tromey.com>
11603
11604 * dwarf2/read.c (read_offset_1): Move to leb.c.
11605 (read_abbrev_offset, read_offset, dwarf_decode_line_header)
11606 (dwarf_decode_macro_bytes): Update.
11607 * dwarf2/leb.c (read_offset): Rename; move from read.c.
11608 * dwarf2/leb.h (read_offset): Declare.
11609
11610 2020-02-08 Tom Tromey <tom@tromey.com>
11611
11612 * dwarf2/read.c (dwarf2_section_size): Remove.
11613 (error_check_comp_unit_head, dwarf2_symbol_mark_computed):
11614 Update.
11615 * dwarf2/section.h (struct dwarf2_section_info) <get_size>: New method.
11616
11617 2020-02-08 Tom Tromey <tom@tromey.com>
11618
11619 * dwarf2/read.c (read_initial_length): Move to leb.c.
11620 * dwarf2/leb.h (read_initial_length): Declare.
11621 * dwarf2/leb.c (read_initial_length): Move from read.c. Add
11622 handle_nonstd parameter.
11623 * dwarf2/frame.c (read_initial_length): Remove.
11624 (decode_frame_entry_1): Update.
11625
11626 2020-02-08 Tom Tromey <tom@tromey.com>
11627
11628 * dwarf2/loc.c (dwarf2_find_location_expression)
11629 (dwarf_evaluate_loc_desc::get_tls_address)
11630 (dwarf_evaluate_loc_desc::push_dwarf_reg_entry_value)
11631 (rw_pieced_value, dwarf2_evaluate_loc_desc_full)
11632 (dwarf2_locexpr_baton_eval, dwarf2_evaluate_property)
11633 (dwarf2_compile_property_to_c)
11634 (dwarf2_loc_desc_get_symbol_read_needs)
11635 (dwarf2_compile_expr_to_ax, locexpr_describe_location)
11636 (locexpr_tracepoint_var_ref, locexpr_generate_c_location)
11637 (loclist_describe_location, loclist_tracepoint_var_ref)
11638 (loclist_generate_c_location): Update.
11639 * compile/compile-loc2c.c (do_compile_dwarf_expr_to_c): Update.
11640 * dwarf2/loc.h (dwarf2_per_cu_objfile, dwarf2_per_cu_addr_size)
11641 (dwarf2_per_cu_ref_addr_size, dwarf2_per_cu_offset_size)
11642 (dwarf2_per_cu_text_offset, dwarf2_version): Don't declare.
11643 * dwarf2/read.c (dwarf2_per_cu_data::objfile)
11644 (dwarf2_per_cu_data::addr_size)
11645 (dwarf2_per_cu_data::ref_addr_size)
11646 (dwarf2_per_cu_data::text_offset)
11647 (dwarf2_per_cu_data::addr_type): Now methods.
11648 (per_cu_header_read_in): Make per_cu "const".
11649 (dwarf2_version): Remove.
11650 (dwarf2_per_cu_data::int_type): Now a method.
11651 (dwarf2_per_cu_data::_addr_sized_int_type): Likewise.
11652 (set_die_type, read_array_type, read_subrange_index_type)
11653 (read_tag_string_type, read_subrange_type): Update.
11654 * dwarf2/read.h (struct dwarf2_per_cu_data) <addr_size,
11655 offset_size, ref_addr_size, text_offset, addr_type, version,
11656 objfile, int_type, addr_sized_int_type>: Declare methods.
11657
11658 2020-02-08 Tom Tromey <tom@tromey.com>
11659
11660 * dwarf2/read.h (struct dwarf2_per_cu_data) <imported_symtabs>:
11661 Move earlier.
11662
11663 2020-02-08 Tom Tromey <tom@tromey.com>
11664
11665 * dwarf2/read.h (dwarf_line_debug): Declare.
11666 * Makefile.in (COMMON_SFILES): Add dwarf2/line-header.c.
11667 * dwarf2/read.c: Move line_header code to new files.
11668 (dwarf_line_debug): No longer static.
11669 * dwarf2/line-header.c: New file.
11670 * dwarf2/line-header.h: New file.
11671
11672 2020-02-08 Tom Tromey <tom@tromey.com>
11673
11674 * dwarf2/read.c (struct line_header) <file_full_name,
11675 file_file_name>: Return unique_xmalloc_ptr.
11676 (line_header::file_file_name): Update.
11677 (line_header::file_full_name): Update.
11678 (dw2_get_file_names_reader): Update.
11679 (macro_start_file): Update.
11680
11681 2020-02-08 Tom Tromey <tom@tromey.com>
11682
11683 * dwarf2/read.c (struct line_header) <file_full_name,
11684 file_file_name>: Declare methods.
11685 (dw2_get_file_names_reader): Update.
11686 (file_file_name): Now a method.
11687 (file_full_name): Likewise.
11688 (macro_start_file): Update.
11689
11690 2020-02-08 Tom Tromey <tom@tromey.com>
11691
11692 * dwarf2/read.c (dwarf_always_disassemble)
11693 (show_dwarf_always_disassemble): Move to loc.c.
11694 (_initialize_dwarf2_read): Move "always-disassemble" registration
11695 to loc.c.
11696 * dwarf2/read.h (dwarf_always_disassemble): Don't declare.
11697 * dwarf2/loc.c (dwarf_always_disassemble): Move from read.c. Now
11698 static.
11699 (show_dwarf_always_disassemble): Move from read.c.
11700 (_initialize_dwarf2loc): Move always-disassemble from read.c.
11701
11702 2020-02-08 Tom Tromey <tom@tromey.com>
11703
11704 * dwarf2/read.c (~dwarf2_per_objfile): Update.
11705 (create_quick_file_names_table): Return htab_up.
11706 (dw2_get_file_names_reader, dw2_forget_cached_source_info):
11707 Update.
11708 * dwarf2/read.h (struct dwarf2_per_objfile)
11709 <quick_file_names_table>: Now htab_up.
11710
11711 2020-02-08 Tom Tromey <tom@tromey.com>
11712
11713 * dwarf2/abbrev.c (abbrev_table::read): Simplify.
11714
11715 2020-02-08 Tom Tromey <tom@tromey.com>
11716
11717 * dwarf2/abbrev.c (abbrev_table): Move constructor from header.
11718 Rewrite.
11719 (abbrev_table::add_abbrev, abbrev_table::lookup_abbrev): Rewrite.
11720 * dwarf2/abbrev.h (struct abbrev_info) <next>: Remove.
11721 (abbrev_table::abbrev_table): No longer inline.
11722 (ABBREV_HASH_SIZE): Remove.
11723 (abbrev_table::m_abbrevs): Now an htab_up.
11724
11725 2020-02-08 Tom Tromey <tom@tromey.com>
11726
11727 * dwarf2/read.c (read_cutu_die_from_dwo): Update.
11728 (cutu_reader): Update.
11729 (build_type_psymtabs_1): Update.
11730 * dwarf2/abbrev.c (abbrev_table::read): Rename.
11731 (abbrev_table::alloc_abbrev): Update.
11732 * dwarf2/abbrev.h (abbrev_table_up): Move earlier.
11733 (abbrev_table::read): New static method, renamed from
11734 abbrev_table_read_table.
11735 (abbrev_table::alloc_abbrev)
11736 (abbrev_table::add_abbrev): Now private.
11737 (abbrev_table::abbrev_table): Now private.
11738 (abbrev_table::m_abbrev_obstack): Now private. Rename.
11739
11740 2020-02-08 Tom Tromey <tom@tromey.com>
11741
11742 * dwarf2/read.c (set_die_type, get_die_type_at_offset): Update.
11743 * dwarf2/read.h (struct dwarf2_per_objfile) <die_type_hash>: Now
11744 htab_up.
11745
11746 2020-02-08 Tom Tromey <tom@tromey.com>
11747
11748 * dwarf2/read.c (struct dwp_file) <loaded_cus, loaded_tus>: Now
11749 htab_up.
11750 (lookup_dwo_unit_in_dwp): Update.
11751 (allocate_dwp_loaded_cutus_table): Return htab_up. Don't allocate
11752 on obstack.
11753
11754 2020-02-08 Tom Tromey <tom@tromey.com>
11755
11756 * dwarf2/read.c (allocate_dwo_file_hash_table): Don't allocate on
11757 obstack.
11758
11759 2020-02-08 Tom Tromey <tom@tromey.com>
11760
11761 * dwarf2/read.c (~dwarf2_per_objfile): Don't delete
11762 line_header_hash.
11763 (handle_DW_AT_stmt_list): Update. Don't allocate on obstack.
11764 * dwarf2/read.h (struct dwarf2_per_objfile) <line_header_hash>:
11765 Change type to htab_up.
11766
11767 2020-02-08 Tom Tromey <tom@tromey.com>
11768
11769 * dwarf2/read.c (allocate_type_unit_groups_table): Return
11770 htab_up. Don't allocate on obstack.
11771 (get_type_unit_group, dwarf2_build_psymtabs_hard): Update.
11772 * dwarf2/read.h (struct dwarf2_per_objfile) <type_unit_groups>:
11773 Change type to htab_up.
11774
11775 2020-02-08 Tom Tromey <tom@tromey.com>
11776
11777 * dwarf2/read.h (struct dwarf2_per_objfile) <signatured_types>:
11778 Change type to htab_up.
11779 * dwarf2/read.c (create_signatured_type_table_from_index)
11780 (create_signatured_type_table_from_debug_names)
11781 (create_all_type_units, add_type_unit)
11782 (lookup_dwo_signatured_type, lookup_signatured_type)
11783 (process_skeletonless_type_unit): Update.
11784 (create_debug_type_hash_table, create_debug_types_hash_table):
11785 Change type of types_htab.
11786 (allocate_signatured_type_table, allocate_dwo_unit_table): Return
11787 htab_up. Don't allocate on obstack.
11788 (create_cus_hash_table): Change type of cus_htab parameter.
11789 (struct dwo_file) <cus, tus>: Now htab_up.
11790 (lookup_dwo_signatured_type, lookup_dwo_cutu)
11791 (process_dwo_file_for_skeletonless_type_units, lookup_dwo_cutu)
11792 (queue_and_load_all_dwo_tus): Update.
11793 * dwarf2/index-write.c (write_gdbindex): Update.
11794 (write_debug_names): Update.
11795
11796 2020-02-08 Tom Tromey <tom@tromey.com>
11797
11798 * dwarf2/read.h (struct dwarf2_queue_item): Move from
11799 dwarf2/read.c. Remove "next" member. Add constructor ntad
11800 destructor.
11801 (struct dwarf2_per_objfile) <queue>: New member.
11802 * dwarf2/read.c (struct dwarf2_queue_item): Move to
11803 dwarf2/read.h.
11804 (dwarf2_queue, dwarf2_queue_tail): Remove.
11805 (class dwarf2_queue_guard): Add parameter to constructor. Use
11806 DISABLE_COPY_AND_ASSIGN.
11807 <m_per_objfile>: New member.
11808 <~dwarf2_queue_guard>: Rewrite.
11809 (dw2_do_instantiate_symtab, queue_comp_unit, process_queue):
11810 Update.
11811 (~dwarf2_queue_item): New.
11812
11813 2020-02-08 Tom Tromey <tom@tromey.com>
11814
11815 * dwarf2/read.c (struct die_info) <has_children>: New member.
11816 (dw2_get_file_names_reader): Remove has_children.
11817 (dw2_get_file_names): Update.
11818 (read_cutu_die_from_dwo): Remove has_children.
11819 (cutu_reader::init_tu_and_read_dwo_dies)
11820 (cutu_reader::cutu_reader): Update.
11821 (process_psymtab_comp_unit_reader, build_type_psymtabs_reader):
11822 Remove has_children.
11823 (build_type_psymtabs_1, process_skeletonless_type_unit)
11824 (load_partial_comp_unit, load_full_comp_unit): Update.
11825 (create_dwo_cu_reader): Remove has_children.
11826 (create_cus_hash_table, read_die_and_children): Update.
11827 (read_full_die_1,read_full_die): Remove has_children.
11828 (read_signatured_type): Update.
11829 (class cutu_reader) <has_children>: Remove.
11830
11831 2020-02-08 Tom Tromey <tom@tromey.com>
11832
11833 * dwarf2/expr.c: Rename from dwarf2expr.c.
11834 * dwarf2/expr.h: Rename from dwarf2expr.h.
11835 * dwarf2/frame-tailcall.c: Rename from dwarf2-frame-tailcall.c.
11836 * dwarf2/frame-tailcall.h: Rename from dwarf2-frame-tailcall.h.
11837 * dwarf2/frame.c: Rename from dwarf2-frame.c.
11838 * dwarf2/frame.h: Rename from dwarf2-frame.h.
11839 * dwarf2/index-cache.c: Rename from dwarf-index-cache.c.
11840 * dwarf2/index-cache.h: Rename from dwarf-index-cache.h.
11841 * dwarf2/index-common.c: Rename from dwarf-index-common.c.
11842 * dwarf2/index-common.h: Rename from dwarf-index-common.h.
11843 * dwarf2/index-write.c: Rename from dwarf-index-write.c.
11844 * dwarf2/index-write.h: Rename from dwarf-index-write.h.
11845 * dwarf2/loc.c: Rename from dwarf2loc.c.
11846 * dwarf2/loc.h: Rename from dwarf2loc.h.
11847 * dwarf2/read.c: Rename from dwarf2read.c.
11848 * dwarf2/read.h: Rename from dwarf2read.h.
11849 * dwarf2/abbrev.c, aarch64-tdep.c, alpha-tdep.c,
11850 amd64-darwin-tdep.c, arc-tdep.c, arm-tdep.c, bfin-tdep.c,
11851 compile/compile-c-symbols.c, compile/compile-cplus-symbols.c,
11852 compile/compile-loc2c.c, cris-tdep.c, csky-tdep.c, findvar.c,
11853 gdbtypes.c, guile/scm-type.c, h8300-tdep.c, hppa-bsd-tdep.c,
11854 hppa-linux-tdep.c, i386-darwin-tdep.c, i386-linux-tdep.c,
11855 i386-tdep.c, iq2000-tdep.c, m32c-tdep.c, m68hc11-tdep.c,
11856 m68k-tdep.c, microblaze-tdep.c, mips-tdep.c, mn10300-tdep.c,
11857 msp430-tdep.c, nds32-tdep.c, nios2-tdep.c, or1k-tdep.c,
11858 riscv-tdep.c, rl78-tdep.c, rs6000-tdep.c, rx-tdep.c, s12z-tdep.c,
11859 s390-tdep.c, score-tdep.c, sh-tdep.c, sparc-linux-tdep.c,
11860 sparc-tdep.c, sparc64-linux-tdep.c, sparc64-tdep.c, tic6x-tdep.c,
11861 tilegx-tdep.c, v850-tdep.c, xstormy16-tdep.c, xtensa-tdep.c:
11862 Update.
11863 * Makefile.in (COMMON_SFILES): Update.
11864 (HFILES_NO_SRCDIR): Update.
11865
11866 2020-02-08 Tom Tromey <tom@tromey.com>
11867
11868 * dwarf2read.c (struct die_reader_specs) <comp_dir>: Remove.
11869 (init_cu_die_reader, read_cutu_die_from_dwo): Update.
11870
11871 2020-02-08 Tom Tromey <tom@tromey.com>
11872
11873 * dwarf2read.h (struct die_info): Don't declare.
11874
11875 2020-02-08 Tom Tromey <tom@tromey.com>
11876
11877 * dwarf2read.h (die_info_ptr): Remove typedef.
11878
11879 2020-02-08 Tom Tromey <tom@tromey.com>
11880
11881 * dwarf2read.c (read_call_site_scope)
11882 (handle_data_member_location, dwarf2_add_member_fn)
11883 (mark_common_block_symbol_computed, read_common_block)
11884 (attr_to_dynamic_prop, partial_die_info::read)
11885 (var_decode_location, dwarf2_fetch_die_loc_sect_off)
11886 (dwarf2_symbol_mark_computed, set_die_type): Update.
11887 * dwarf2/attribute.h (struct attribute) <form_is_block>: Declare
11888 method.
11889 (attr_form_is_block): Don't declare.
11890 * dwarf2/attribute.c (attribute::form_is_block): Now a method.
11891
11892 2020-02-08 Tom Tromey <tom@tromey.com>
11893
11894 * dwarf2read.c (dwarf2_find_base_address, )
11895 (read_call_site_scope, rust_containing_type)
11896 (dwarf2_get_pc_bounds, dwarf2_record_block_ranges)
11897 (handle_data_member_location, dwarf2_add_member_fn)
11898 (get_alignment, read_structure_type, process_structure_scope)
11899 (mark_common_block_symbol_computed, read_common_block)
11900 (read_tag_string_type, attr_to_dynamic_prop, read_subrange_type)
11901 (partial_die_info::read, read_attribute_value, new_symbol)
11902 (lookup_die_type, dwarf2_get_ref_die_offset)
11903 (dwarf2_get_attr_constant_value, follow_die_ref_or_sig)
11904 (dwarf2_fetch_die_loc_sect_off, get_DW_AT_signature_type)
11905 (dwarf2_symbol_mark_computed): Update.
11906 * dwarf2/attribute.h (struct attribute) <value_as_address,
11907 form_is_section_offset, form_is_constant, form_is_ref>: Declare
11908 methods.
11909 (value_as_address, attr_form_is_section_offset)
11910 (attr_form_is_constant, attr_form_is_ref): Don't declare.
11911 * dwarf2/attribute.c (attribute::value_as_address)
11912 (attribute::form_is_section_offset, attribute::form_is_constant)
11913 (attribute::form_is_ref): Now methods.
11914
11915 2020-02-08 Tom Tromey <tom@tromey.com>
11916
11917 * dwarf2read.c (struct attribute, DW_STRING)
11918 (DW_STRING_IS_CANONICAL, DW_UNSND, DW_BLOCK, DW_SND, DW_ADDR)
11919 (DW_SIGNATURE, struct dwarf_block, attr_value_as_address)
11920 (attr_form_is_block, attr_form_is_section_offset)
11921 (attr_form_is_constant, attr_form_is_ref): Move.
11922 * dwarf2/attribute.h: New file.
11923 * dwarf2/attribute.c: New file, from dwarf2read.c.
11924 * Makefile.in (COMMON_SFILES): Add dwarf2/attribute.c.
11925
11926 2020-02-08 Tom Tromey <tom@tromey.com>
11927
11928 * dwarf2read.c (abbrev_table_up, struct abbrev_info)
11929 (struct attr_abbrev, ABBREV_HASH_SIZE, struct abbrev_table):
11930 Move.
11931 (read_cutu_die_from_dwo, build_type_psymtabs_1): Update.
11932 (abbrev_table::alloc_abbrev, abbrev_table::add_abbrev)
11933 (abbrev_table::lookup_abbrev, abbrev_table_read_table): Move to
11934 abbrev.c.
11935 * dwarf2/abbrev.h: New file.
11936 * dwarf2/abbrev.c: New file, from dwarf2read.c.
11937 * Makefile.in (COMMON_SFILES): Add dwarf2/abbrev.c.
11938
11939 2020-02-08 Tom Tromey <tom@tromey.com>
11940
11941 * dwarf2read.c (dwarf2_section_buffer_overflow_complaint)
11942 (dwarf2_section_size, dwarf2_get_section_info)
11943 (create_signatured_type_table_from_debug_names)
11944 (create_addrmap_from_aranges, read_debug_names_from_section)
11945 (get_gdb_index_contents_from_section, read_comp_unit_head)
11946 (error_check_comp_unit_head, read_abbrev_offset)
11947 (create_debug_type_hash_table, init_cu_die_reader)
11948 (read_cutu_die_from_dwo, dwarf2_build_psymtabs_hard)
11949 (read_comp_units_from_section, create_cus_hash_table)
11950 (create_dwp_hash_table, create_dwo_unit_in_dwp_v1)
11951 (create_dwp_v2_section, dwarf2_rnglists_process)
11952 (dwarf2_ranges_process, read_die_and_siblings, read_full_die)
11953 (abbrev_table_read_table, read_indirect_string_at_offset_from)
11954 (read_indirect_string_from_dwz, read_addr_index_1)
11955 (read_str_index, dwarf_decode_line_header, skip_form_bytes)
11956 (dwarf_decode_macro_bytes, dwarf_decode_macros)
11957 (fill_in_loclist_baton): Update.
11958 * dwarf2/section.h (struct dwarf2_section_info) <get_name,
11959 get_containing_section, get_bfd_owner, get_bfd_section,
11960 get_file_name, get_id, get_flags, empty, read>: Declare methods.
11961 (dwarf2_read_section, get_section_name, get_section_file_name)
11962 (get_containing_section, get_section_bfd_owner)
11963 (get_section_bfd_section, get_section_name, get_section_file_name)
11964 (get_section_id, get_section_flags, dwarf2_section_empty_p): Don't
11965 declare.
11966 * dwarf2/section.c (dwarf2_section_info::get_containing_section)
11967 (dwarf2_section_info::get_bfd_owner)
11968 (dwarf2_section_info::get_bfd_section)
11969 (dwarf2_section_info::get_name)
11970 (dwarf2_section_info::get_file_name, dwarf2_section_info::get_id)
11971 (dwarf2_section_info::get_flags, dwarf2_section_info::empty)
11972 (dwarf2_section_info::read): Now methods.
11973 * dwarf-index-write.c (class debug_names): Update.
11974
11975 2020-02-08 Tom Tromey <tom@tromey.com>
11976
11977 * dwarf2read.h (struct dwarf2_section_info, dwarf2_read_section):
11978 Move to dwarf2/section.h.
11979 * dwarf2read.c (get_containing_section, get_section_bfd_owner)
11980 (get_section_bfd_section, get_section_name)
11981 (get_section_file_name, get_section_id, get_section_flags)
11982 (dwarf2_section_empty_p, dwarf2_read_section): Moe to
11983 dwarf2/section.c.
11984 * dwarf2/section.h: New file.
11985 * dwarf2/section.c: New file, from dwarf2read.c.
11986 * Makefile.in (COMMON_SFILES): Add dwarf2/section.c.
11987
11988 2020-02-08 Tom Tromey <tom@tromey.com>
11989
11990 * dwarf2read.h (read_unsigned_leb128): Don't declare.
11991 * dwarf2read.c (read_1_byte, read_1_signed_byte, read_2_bytes)
11992 (read_2_signed_bytes, read_3_bytes, read_4_bytes)
11993 (read_4_signed_bytes, read_8_bytes): Move to dwarf2/leb.h.
11994 (read_unsigned_leb128, read_signed_leb128): Move to dwarf2/leb.c.
11995 * dwarf2/leb.h: New file, from dwarf2read.c.
11996 * dwarf2/leb.c: New file, from dwarf2read.c.
11997 * dwarf2-frame.c (read_1_byte, read_4_bytes, read_8_bytes):
11998 Remove.
11999 * Makefile.in (CONFIG_SRC_SUBDIR): Add dwarf2.
12000 (COMMON_SFILES): Add dwarf2/leb.c.
12001
12002 2020-02-08 Joel Brobecker <brobecker@adacore.com>
12003
12004 GDB 9.1 released.
12005
12006 2020-02-05 Iain Buclaw <ibuclaw@gdcproject.org>
12007
12008 PR gdb/25190:
12009 * gdb/remote-sim.c (gdb_os_write_stderr): Update.
12010 * gdb/remote.c (remote_console_output): Update.
12011 * gdb/ui-file.c (fputs_unfiltered): Rename to...
12012 (ui_file_puts): ...this.
12013 * gdb/ui-file.h (ui_file_puts): Add declaration.
12014 * gdb/utils.c (emit_style_escape): Update.
12015 (flush_wrap_buffer): Update.
12016 (fputs_maybe_filtered): Update.
12017 (fputs_unfiltered): Add function.
12018
12019 2020-02-05 Iain Buclaw <ibuclaw@gdcproject.org>
12020
12021 * gdb/event-loop.c (gdb_wait_for_event): Update.
12022 * gdb/printcmd.c (printf_command): Update.
12023 * gdb/remote-fileio.c (remote_fileio_func_write): Update.
12024 * gdb/remote-sim.c (gdb_os_flush_stdout): Update.
12025 (gdb_os_flush_stderr): Update.
12026 * gdb/remote.c (remote_console_output): Update.
12027 * gdb/ui-file.c (gdb_flush): Rename to...
12028 (ui_file_flush): ...this.
12029 (stderr_file::write): Update.
12030 (stderr_file::puts): Update.
12031 * gdb/ui-file.h (gdb_flush): Rename to...
12032 (ui_file_flush): ...this.
12033 * gdb/utils.c (gdb_flush): Add function.
12034 * gdb/utils.h (gdb_flush): Add declaration.
12035
12036 2020-02-07 Tom Tromey <tromey@adacore.com>
12037
12038 PR breakpoints/24915:
12039 * source.c (find_and_open_source): Do not check basenames_may_differ.
12040
12041 2020-02-07 Tom Tromey <tom@tromey.com>
12042
12043 * README: Update gdbserver documentation.
12044 * gdbserver: Move to top level.
12045 * configure.tgt (build_gdbserver): Remove.
12046 * configure.ac: Remove --enable-gdbserver.
12047 * configure: Rebuild.
12048 * Makefile.in (distclean): Don't mention gdbserver.
12049
12050 2020-02-06 Shahab Vahedi <shahab@synopsys.com>
12051
12052 * source-cache.c (source_cache::ensure): Surround
12053 get_plain_source_lines with a try/catch.
12054 (source_cache::get_line_charpos): Get rid of try/catch
12055 and only check for the return value of "ensure".
12056 * tui/tui-source.c (tui_source_window::set_contents):
12057 Simplify "nlines" calculation.
12058
12059 2020-02-06 Shahab Vahedi <shahab@synopsys.com>
12060
12061 * MAINTAINERS (Write After Approval): Add myself.
12062
12063 2020-02-05 Christian Biesinger <cbiesinger@google.com>
12064
12065 * sparc-nat.h (struct sparc_target) <xfer_partial>: Fix base class
12066 function call.
12067
12068 2020-02-05 Christian Biesinger <cbiesinger@google.com>
12069
12070 * ppc-nbsd-tdep.h: Fix macro name in #endif comment.
12071
12072 2020-02-05 Maciej W. Rozycki <macro@wdc.com>
12073
12074 * nat/riscv-linux-tdesc.h: New file.
12075 * nat/riscv-linux-tdesc.c: New file, taking code from...
12076 * riscv-linux-nat.c (riscv_linux_nat_target::read_description):
12077 ... here.
12078 * configure.nat <linux> <riscv*>: Add nat/riscv-linux-tdesc.o to
12079 NATDEPFILES.
12080
12081 2020-02-04 Andrew Burgess <andrew.burgess@embecosm.com>
12082
12083 * remote-sim.c (sim_inferior_data::sim_inferior_data): Assert that
12084 we don't set the fake simulator ptid to the null_ptid.
12085
12086 2020-02-03 Simon Marchi <simon.marchi@efficios.com>
12087
12088 * fork-child.c (gdb_startup_inferior): Use bool instead of int.
12089 * gdbthread.h (class thread_info) <resumed>: Likewise.
12090 * infrun.c (resume_1): Likewise.
12091 (proceed): Likewise.
12092 (infrun_thread_stop_requested): Likewise.
12093 (stop_all_threads): Likewise.
12094 (handle_inferior_event): Likewise.
12095 (restart_threads): Likewise.
12096 (finish_step_over): Likewise.
12097 (keep_going_stepped_thread): Likewise.
12098 * linux-nat.c (attach_proc_task_lwp_callback): Likewise.
12099 (linux_handle_extended_wait): Likewise.
12100 * record-btrace.c (get_thread_current_frame_id): Likewise.
12101 * record-full.c (record_full_wait_1): Likewise.
12102 * remote.c (remote_target::process_initial_stop_replies): Likewise.
12103 * target.c (target_resume): Likewise.
12104 * thread.c (set_running_thread): Likewise.
12105
12106 2020-02-03 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
12107
12108 * f-valprint.c (f77_print_array_1): Changed datatype of index
12109 variable to LONGEST from int to enable it to contain bound
12110 values correctly.
12111
12112 2020-02-03 Maciej W. Rozycki <macro@wdc.com>
12113
12114 * riscv-linux-nat.c [!NFPREG] (NFPREG): New macro.
12115 (supply_fpregset_regnum, fill_fpregset): Handle regset buffer
12116 offsets according to FLEN determined.
12117 (riscv_linux_nat_target::read_description): Determine FLEN
12118 dynamically.
12119 (riscv_linux_nat_target::fetch_registers): Size regset buffer
12120 according to FLEN determined.
12121 (riscv_linux_nat_target::store_registers): Likewise.
12122
12123 2020-02-01 Shahab Vahedi <shahab@synopsys.com>
12124
12125 * target-descriptions.c (tdesc_register_in_reggroup_p): Return 0
12126 when reg->group is empty and reggroup is not.
12127
12128 2020-01-31 Tom Tromey <tromey@adacore.com>
12129
12130 * ravenscar-thread.c (ravenscar_thread_target::mourn_inferior):
12131 Call beneath target's mourn_inferior after unpushing.
12132
12133 2020-01-31 Andrew Burgess <andrew.burgess@embecosm.com>
12134
12135 PR tui/9765
12136 * tui/tui-disasm.c (tui_find_disassembly_address): If we don't
12137 have enough lines to fill the screen, still return the lowest
12138 address we found.
12139
12140 2020-01-31 Andrew Burgess <andrew.burgess@embecosm.com>
12141
12142 * tui/tui-win.c (_initialize_tui_win): Update help text for '+',
12143 '-', '<', and '>' commands.
12144
12145 2020-01-29 Pedro Alves <palves@redhat.com>
12146 Sergio Durigan Junior <sergiodj@redhat.com>
12147
12148 * infcmd.c (construct_inferior_arguments): Assert that
12149 'argc' is greater than 0.
12150
12151 2020-01-29 Luis Machado <luis.machado@linaro.org>
12152
12153 * aarch64-tdep.c (BRK_INSN_MASK): Define to 0xffe0001f.
12154 (BRK_INSN_MASK): Define to 0xd4200000.
12155 (aarch64_program_breakpoint_here_p): New function.
12156 (aarch64_gdbarch_init): Set gdbarch_program_breakpoint_here_p hook.
12157 * arch-utils.c (default_program_breakpoint_here_p): Moved from
12158 breakpoint.c.
12159 * arch-utils.h (default_program_breakpoint_here_p): Moved from
12160 breakpoint.h
12161 * breakpoint.c (bp_loc_is_permanent): Changed return type to bool and
12162 call gdbarch_program_breakpoint_here_p.
12163 (program_breakpoint_here): Moved to arch-utils.c, renamed to
12164 default_program_breakpoint_here_p, changed return type to bool and
12165 simplified.
12166 * breakpoint.h (program_breakpoint_here): Moved prototype to
12167 arch-utils.h, renamed to default_program_breakpoint_here_p and changed
12168 return type to bool.
12169 * gdbarch.c: Regenerate.
12170 * gdbarch.h: Regenerate.
12171 * gdbarch.sh (program_breakpoint_here_p): New method.
12172 * infrun.c (handle_signal_stop): Call
12173 gdbarch_program_breakpoint_here_p.
12174
12175 2020-01-26 Tom Tromey <tom@tromey.com>
12176
12177 * ctfread.c (struct ctf_fp_info): Reindent.
12178 (_initialize_ctfread): Remove.
12179
12180 2020-01-26 Tom Tromey <tom@tromey.com>
12181
12182 * psymtab.c (partial_map_expand_apply)
12183 (psym_find_pc_sect_compunit_symtab, psym_lookup_symbol)
12184 (psymtab_to_symtab, psym_find_last_source_symtab, dump_psymtab)
12185 (psym_print_stats, psym_expand_symtabs_for_function)
12186 (psym_map_symbol_filenames, psym_map_matching_symbols)
12187 (psym_expand_symtabs_matching)
12188 (partial_symtab::read_dependencies, maintenance_info_psymtabs)
12189 (maintenance_check_psymtabs): Use new methods.
12190 * psympriv.h (struct partial_symtab) <readin_p,
12191 get_compunit_symtab>: New methods.
12192 <readin, compunit_symtab>: Remove members.
12193 (struct standard_psymtab): New.
12194 (struct legacy_psymtab): Derive from standard_psymtab.
12195 * dwarf2read.h (struct dwarf2_psymtab): Derive from
12196 standard_psymtab.
12197 * ctfread.c (struct ctf_psymtab): Derive from standard_psymtab.
12198
12199 2020-01-26 Tom Tromey <tom@tromey.com>
12200
12201 * xcoffread.c (xcoff_psymtab_to_symtab_1): Call
12202 read_dependencies. Add assert.
12203 * psymtab.c (partial_symtab::read_dependencies): New method.
12204 * psympriv.h (struct partial_symtab) <read_dependencies>: New
12205 method.
12206 * mdebugread.c (psymtab_to_symtab_1): Call read_dependencies.
12207 * dwarf2read.c (dwarf2_psymtab::expand_psymtab): Call
12208 read_dependencies.
12209 * dbxread.c (dbx_psymtab_to_symtab_1): Call read_dependencies.
12210 Add assert.
12211
12212 2020-01-26 Tom Tromey <tom@tromey.com>
12213
12214 * xcoffread.c (xcoff_psymtab_to_symtab_1): Change argument order.
12215 Call expand_psymtab.
12216 (xcoff_read_symtab): Call expand_psymtab.
12217 (xcoff_start_psymtab, xcoff_end_psymtab): Set
12218 legacy_expand_psymtab.
12219 * psympriv.h (struct partial_symtab) <expand_psymtab>: New
12220 method.
12221 (struct legacy_psymtab) <expand_psymtab>: Implement.
12222 <legacy_expand_psymtab>: New member.
12223 * mdebugread.c (mdebug_read_symtab): Call expand_psymtab.
12224 (parse_partial_symbols): Set legacy_expand_psymtab.
12225 (psymtab_to_symtab_1): Change argument order. Call
12226 expand_psymtab.
12227 (new_psymtab): Set legacy_expand_psymtab.
12228 * dwarf2read.h (struct dwarf2_psymtab) <expand_psymtab>: Declare.
12229 * dwarf2read.c (dwarf2_psymtab::read_symtab): Call
12230 expand_psymtab.
12231 (dwarf2_psymtab::expand_psymtab): Rename from
12232 psymtab_to_symtab_1. Call expand_psymtab.
12233 * dbxread.c (start_psymtab): Set legacy_expand_psymtab.
12234 (dbx_end_psymtab): Likewise.
12235 (dbx_psymtab_to_symtab_1): Change argument order. Call
12236 expand_psymtab.
12237 (dbx_read_symtab): Call expand_psymtab.
12238 * ctfread.c (struct ctf_psymtab) <expand_psymtab>: Declare.
12239 (ctf_psymtab::expand_psymtab): Rename from psymtab_to_symtab.
12240 (ctf_psymtab::read_symtab): Call expand_psymtab.
12241
12242 2020-01-26 Tom Tromey <tom@tromey.com>
12243
12244 * xcoffread.c (xcoff_read_symtab): Remove prints. Add assert.
12245 * psymtab.c (psymtab_to_symtab): Print verbose "Reading"
12246 messages.
12247 * mdebugread.c (mdebug_read_symtab): Remove prints.
12248 * dwarf2read.c (dwarf2_psymtab::read_symtab): Remove prints. Add
12249 assert.
12250 * dbxread.c (dbx_read_symtab): Remove prints. Add assert.
12251
12252 2020-01-26 Tom Tromey <tom@tromey.com>
12253
12254 * xcoffread.c (this_symtab_psymtab, read_xcoff_symtab)
12255 (xcoff_psymtab_to_symtab_1, xcoff_read_symtab)
12256 (xcoff_start_psymtab, xcoff_end_psymtab, scan_xcoff_symtab): Use
12257 legacy_symtab.
12258 * stabsread.h (dbx_end_psymtab): Use legacy_symtab.
12259 * psymtab.c (psymtab_to_symtab): Call method.
12260 (dump_psymtab): Update.
12261 * psympriv.h (struct partial_symtab): Add virtual destructor.
12262 <read_symtab>: New method.
12263 (struct legacy_symtab): New.
12264 * mdebugread.c (mdebug_read_symtab): Use legacy_psymtab.
12265 (struct pst_map) <pst>: Now a legacy_psymtab.
12266 (parse_procedure, parse_partial_symbols, psymtab_to_symtab_1)
12267 (new_psymtab): Use legacy_psymtab.
12268 * dwarf2read.h (struct dwarf2_psymtab): New.
12269 (struct dwarf2_per_cu_data) <psymtab>: Use it.
12270 * dwarf2read.c (dwarf2_create_include_psymtab)
12271 (dwarf2_build_include_psymtabs, create_type_unit_group)
12272 (create_partial_symtab, process_psymtab_comp_unit_reader)
12273 (build_type_psymtabs_reader, build_type_psymtab_dependencies)
12274 (set_partial_user): Use dwarf2_psymtab.
12275 (dwarf2_psymtab::read_symtab): Rename from dwarf2_read_symtab.
12276 (psymtab_to_symtab_1, process_full_comp_unit)
12277 (process_full_type_unit, dwarf2_ranges_read)
12278 (dwarf2_get_pc_bounds, psymtab_include_file_name)
12279 (dwarf_decode_lines): Use dwarf2_psymtab.
12280 * dwarf-index-write.c (psym_index_map): Use dwarf2_psymtab.
12281 (add_address_entry_worker, write_one_signatured_type)
12282 (recursively_count_psymbols, recursively_write_psymbols)
12283 (write_one_signatured_type, psyms_seen_size, write_gdbindex)
12284 (write_debug_names): Likewise.
12285 * dbxread.c (struct header_file_location): Take a legacy_psymtab.
12286 <pst>: Now a legacy_psymtab.
12287 (find_corresponding_bincl_psymtab): Return a legacy_psymtab.
12288 (read_dbx_symtab, start_psymtab, dbx_end_psymtab)
12289 (dbx_psymtab_to_symtab_1, read_ofile_symtab): Use legacy_psymtab.
12290 * ctfread.c (struct ctf_psymtab): New.
12291 (ctf_start_symtab, ctf_end_symtab, psymtab_to_symtab): Take a
12292 ctf_psymtab.
12293 (ctf_psymtab::read_symtab): Rename from ctf_read_symtab.
12294 (create_partial_symtab): Return a ctf_psymtab.
12295 (scan_partial_symbols): Update.
12296
12297 2020-01-26 Tom Tromey <tom@tromey.com>
12298
12299 * xcoffread.c (xcoff_start_psymtab): Use new.
12300 * psymtab.c (partial_symtab::partial_symtab): New constructor,
12301 renamed from start_psymtab_common.
12302 * psympriv.h (struct partial_symtab): Add new constructor.
12303 (start_psymtab_common): Don't declare.
12304 * mdebugread.c (parse_partial_symbols): Use new.
12305 * dwarf2read.c (create_partial_symtab): Use new.
12306 * dbxread.c (start_psymtab): Use new.
12307 * ctfread.c (create_partial_symtab): Use new.
12308
12309 2020-01-26 Tom Tromey <tom@tromey.com>
12310
12311 * xcoffread.c (xcoff_end_psymtab): Use new.
12312 * psymtab.c (start_psymtab_common): Use new.
12313 (partial_symtab::partial_symtab): Rename from allocate_psymtab.
12314 Update.
12315 * psympriv.h (struct partial_symtab): Add parameters to
12316 constructor. Don't inline.
12317 (allocate_psymtab): Don't declare.
12318 * mdebugread.c (new_psymtab): Use new.
12319 * dwarf2read.c (dwarf2_create_include_psymtab): Use new.
12320 * dbxread.c (dbx_end_psymtab): Use new.
12321
12322 2020-01-26 Tom Tromey <tom@tromey.com>
12323
12324 * psymtab.h (class psymtab_storage) <install_psymtab>: Rename from
12325 allocate_psymtab. Update documentation.
12326 * psymtab.c (psymtab_storage::install_psymtab): Rename from
12327 allocate_psymtab. Do not use new.
12328 (allocate_psymtab): Use new. Update.
12329
12330 2020-01-26 Tom Tromey <tom@tromey.com>
12331
12332 * xcoffread.c (xcoff_psymtab_to_symtab_1): Update.
12333 * psymtab.c (psym_print_stats): Update.
12334 * psympriv.h (struct partial_symtab) <readin,
12335 psymtabs_addrmap_supported, anonymous>: Now bool.
12336 * mdebugread.c (psymtab_to_symtab_1): Update.
12337 * dwarf2read.c (create_type_unit_group, create_partial_symtab)
12338 (build_type_psymtabs_reader, psymtab_to_symtab_1)
12339 (process_full_comp_unit, process_full_type_unit): Update.
12340 * dbxread.c (dbx_psymtab_to_symtab_1): Update.
12341 * ctfread.c (psymtab_to_symtab): Update.
12342
12343 2020-01-26 Tom Tromey <tom@tromey.com>
12344
12345 * mdebugread.c (parse_partial_symbols): Use discard_psymtab.
12346 * psymtab.h (class psymtab_storage) <free_psymtabs>: Remove.
12347 * psymtab.c (psymtab_storage): Delete psymtabs.
12348 (psymtab_storage::allocate_psymtab): Use new.
12349 (psymtab_storage::discard_psymtab): Use delete.
12350 * psympriv.h (struct partial_symtab): Add constructor and
12351 initializers.
12352
12353 2020-01-26 Tom Tromey <tom@tromey.com>
12354
12355 * machoread.c: Do not include psympriv.h.
12356
12357 2020-01-25 Philippe Waroquiers <philippe.waroquiers@skynet.be>
12358
12359 * NEWS: Mention the new option and the set/show commands.
12360
12361 2020-01-25 Philippe Waroquiers <philippe.waroquiers@skynet.be>
12362
12363 * exec.c (exec_file_mismatch_names, exec_file_mismatch_mode)
12364 (show_exec_file_mismatch_command, set_exec_file_mismatch_command)
12365 (validate_exec_file): New variables, enums, functions.
12366 (exec_file_locate_attach, print_section_info): Style the filenames.
12367 (_initialize_exec): Install show_exec_file_mismatch_command and
12368 set_exec_file_mismatch_command.
12369 * gdbcore.h (validate_exec_file): Declare.
12370 * infcmd.c (attach_command): Call validate_exec_file.
12371 * remote.c ( remote_target::remote_add_inferior): Likewise.
12372
12373 2020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
12374
12375 * frame.c (find_frame_sal): Move call to get_next_frame into more
12376 inner scope.
12377 * inline-frame.c (inilne_state) <inline_state>: Update argument
12378 types.
12379 (inilne_state) <skipped_symbol>: Rename to...
12380 (inilne_state) <skipped_symbols>: ...this, and change to a vector.
12381 (skip_inline_frames): Build vector of skipped symbols and use this
12382 to reate the inline_state.
12383 (inline_skipped_symbol): Add a comment and some assertions, fetch
12384 skipped symbol from the list.
12385
12386 2020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
12387
12388 * buildsym.c (lte_is_less_than): Delete.
12389 (buildsym_compunit::end_symtab_with_blockvector): Create local
12390 lambda function to sort line table entries, and use
12391 std::stable_sort instead of std::sort.
12392 * symtab.c (find_pc_sect_line): Skip backward over end of sequence
12393 markers when looking for a previous line.
12394
12395 2020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
12396
12397 * dwarf2read.c (lnp_state_machine::record_line): Include
12398 end_sequence parameter in debug print out. Record the line if we
12399 are at an end_sequence marker even if it's not the start of a
12400 statement.
12401 * symmisc.c (maintenance_print_one_line_table): Print end of
12402 sequence markers with 'END' not '0'.
12403
12404 2020-01-24 Pedro Alves <palves@redhat.com>
12405
12406 PR gdb/25410
12407 * thread.c (scoped_restore_current_thread::restore): Use
12408 switch_to_inferior_no_thread.
12409 * exec.c: Include "progspace-and-thread.h".
12410 (add_target_sections, remove_target_sections):
12411 scoped_restore_current_pspace_and_thread instead of
12412 scoped_restore_current_thread.
12413 * infrun.c (handle_vfork_child_exec_or_exit): Assign the pspace
12414 and aspace to the inferior before calling clone_program_space.
12415 Remove stale comment.
12416
12417 2020-01-24 Christian Biesinger <cbiesinger@google.com>
12418
12419 * arm-nbsd-nat.c (arm_nbsd_nat_target::fetch_registers): Rename to...
12420 (arm_netbsd_nat_target::fetch_registers): ...this.
12421 (arm_nbsd_nat_target::store_registers): Rename to...
12422 (arm_netbsd_nat_target::store_registers): ...this.
12423
12424 2020-01-24 Christian Biesinger <cbiesinger@google.com>
12425
12426 * arm-nbsd-nat.c: Define _KERNTYPES to get the declaration of
12427 register_t.
12428
12429 2020-01-24 Christian Biesinger <cbiesinger@google.com>
12430
12431 * aarch64-fbsd-tdep.c (aarch64_fbsd_iterate_over_regset_sections):
12432 Update comment.
12433 * aarch64-linux-tdep.c (aarch64_linux_iterate_over_regset_sections):
12434 Likewise.
12435 * arm-fbsd-tdep.c (arm_fbsd_iterate_over_regset_sections): Likewise.
12436 * gdbcore.h (deprecated_add_core_fns): Update comment to point to
12437 the correct replacement (iterate_over_regset_sections).
12438 * riscv-fbsd-tdep.c (riscv_fbsd_iterate_over_regset_sections):
12439 Update comment.
12440
12441 2020-01-24 Graham Markall <graham.markall@embecosm.com>
12442
12443 PR gdb/23718
12444 * gdb/python/python.c (execute_gdb_command): Call
12445 async_enable_stdin in catch block.
12446
12447 2020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
12448
12449 * event-loop.c (start_event_loop): Wrap async_enable_stdin with
12450 SWITCH_THRU_ALL_UIS.
12451
12452 2020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
12453
12454 PR tui/9765
12455 * minsyms.c (lookup_minimal_symbol_by_pc_section): Update header
12456 comment, add extra parameter, and update to store previous symbol
12457 when appropriate.
12458 * minsyms.h (lookup_minimal_symbol_by_pc_section): Update comment,
12459 add extra parameter.
12460 * tui/tui-disasm.c (tui_disassemble): Update header comment,
12461 remove unneeded parameter, add try/catch around gdb_print_insn,
12462 rewrite to add items to asm_lines vector.
12463 (tui_find_backward_disassembly_start_address): New function.
12464 (tui_find_disassembly_address): Updated throughout.
12465 (tui_disasm_window::set_contents): Update for changes to
12466 tui_disassemble.
12467 (tui_disasm_window::do_scroll_vertical): No need to adjust the
12468 number of lines to scroll.
12469
12470 2020-01-23 Simon Marchi <simon.marchi@polymtl.ca>
12471
12472 * objfiles.h (ALL_OBJFILE_OSECTIONS): Move up.
12473 (SECT_OFF_DATA): Likewise.
12474 (SECT_OFF_RODATA): Likewise.
12475 (SECT_OFF_TEXT): Likewise.
12476 (SECT_OFF_BSS): Likewise.
12477 (struct objfile) <text_section_offset, data_section_offset>: New
12478 methods.
12479 * amd64-windows-tdep.c (amd64_windows_find_unwind_info): Use
12480 objfile::text_section_offset.
12481 * coff-pe-read.c (add_pe_forwarded_sym): Likewise.
12482 * coffread.c (coff_symtab_read): Likewise.
12483 (enter_linenos): Likewise.
12484 (process_coff_symbol): Likewise.
12485 * ctfread.c (get_objfile_text_range): Likewise.
12486 * dtrace-probe.c (dtrace_probe::get_relocated_address):
12487 Use objfile::data_section_offset.
12488 * dwarf2-frame.c (execute_cfa_program): Use
12489 objfile::text_section_offset.
12490 (dwarf2_frame_find_fde): Likewise.
12491 * dwarf2read.c (create_addrmap_from_index): Likewise.
12492 (create_addrmap_from_aranges): Likewise.
12493 (dw2_find_pc_sect_compunit_symtab): Likewise.
12494 (process_psymtab_comp_unit_reader): Likewise.
12495 (add_partial_symbol): Likewise.
12496 (add_partial_subprogram): Likewise.
12497 (process_full_comp_unit): Likewise.
12498 (read_file_scope): Likewise.
12499 (read_func_scope): Likewise.
12500 (read_lexical_block_scope): Likewise.
12501 (read_call_site_scope): Likewise.
12502 (dwarf2_rnglists_process): Likewise.
12503 (dwarf2_ranges_process): Likewise.
12504 (dwarf2_ranges_read): Likewise.
12505 (dwarf_decode_lines_1): Likewise.
12506 (new_symbol): Likewise.
12507 (dwarf2_fetch_die_loc_sect_off): Likewise.
12508 (dwarf2_per_cu_text_offset): Likewise.
12509 * hppa-bsd-tdep.c (hppabsd_find_global_pointer): Likewise.
12510 * hppa-tdep.c (read_unwind_info): Likewise.
12511 * ia64-tdep.c (ia64_find_unwind_table): Likewise.
12512 * psympriv.h (struct partial_symtab): Likewise.
12513 * psymtab.c (find_pc_sect_psymtab): Likewise.
12514 * solib-svr4.c (enable_break): Likewise.
12515 * stap-probe.c (relocate_address): Use
12516 objfile::data_section_offset.
12517 * xcoffread.c (enter_line_range): Use
12518 objfile::text_section_offset.
12519 (read_xcoff_symtab): Likewise.
12520
12521 2020-01-23 Simon Marchi <simon.marchi@efficios.com>
12522
12523 * darwin-nat.c (darwin_nat_target::wait_1): Move `inf`
12524 declaration to narrower scopes.
12525
12526 2020-01-23 Simon Marchi <simon.marchi@efficios.com>
12527
12528 * darwin-nat.h (struct darwin_exception_msg, enum
12529 darwin_msg_state, struct darwin_thread_info, darwin_thread_t):
12530 Move up.
12531 (class darwin_nat_target) <wait_1, check_new_threads,
12532 decode_exception_message, decode_message, stop_inferior,
12533 init_thread_list, ptrace_him, cancel_breakpoint>: Declare.
12534 * darwin-nat.c (darwin_check_new_threads): Rename to...
12535 (darwin_nat_target::check_new_threads): ... this.
12536 (darwin_suspend_inferior_it): Remove.
12537 (darwin_decode_exception_message): Rename to...
12538 (darwin_nat_target::decode_exception_message): ... this.
12539 (darwin_nat_target::resume): Pass target to find_inferior_ptid.
12540 (darwin_decode_message): Rename to...
12541 (darwin_nat_target::decode_message): ... this.
12542 (cancel_breakpoint): Rename to...
12543 (darwin_nat_target::cancel_breakpoint): ... this.
12544 (darwin_wait): Rename to...
12545 (darwin_nat_target::wait_1): ... this. Use range-based for loop
12546 instead of iterate_over_inferiors.
12547 (darwin_nat_target::wait): Call wait_1 instead of darwin_wait.
12548 (darwin_stop_inferior): Rename to...
12549 (darwin_nat_target::stop_inferior): ... this.
12550 (darwin_nat_target::kill): Call wait_1 instead of darwin_wait.
12551 (darwin_init_thread_list): Rename to...
12552 (darwin_nat_target::init_thread_list): ... this.
12553 (darwin_ptrace_him): Rename to...
12554 (darwin_nat_target::ptrace_him): ... this.
12555 (darwin_nat_target::create_inferior): Pass lambda function to
12556 fork_inferior.
12557 (darwin_nat_target::detach): Call stop_inferior instead of
12558 darwin_stop_inferior.
12559 * fork-inferior.h (fork_inferior): Change init_trace_fun
12560 parameter to gdb::function_view.
12561 * fork-inferior.c (fork_inferior): Likewise.
12562
12563 2020-01-23 Hannes Domani <ssbssa@yahoo.de>
12564
12565 * i386-cygwin-tdep.c (core_process_module_section): Update.
12566 * windows-nat.c (struct lm_info_windows): Add text_offset.
12567 (windows_xfer_shared_libraries): Update.
12568 * windows-tdep.c (windows_xfer_shared_library):
12569 Add text_offset_cached argument.
12570 * windows-tdep.h (windows_xfer_shared_library): Update.
12571
12572 2020-01-21 Simon Marchi <simon.marchi@efficios.com>
12573
12574 * gdbarch.sh: Add declaration for _initialize_gdbarch.
12575
12576 2020-01-21 Simon Marchi <simon.marchi@efficios.com>
12577
12578 * remote-sim.c (check_for_duplicate_sim_descriptor): Remove.
12579 (get_sim_inferior_data): Remove use of iterate_over_inferiors,
12580 replace with range-based for.
12581 (gdbsim_interrupt_inferior): Remove.
12582 (gdbsim_target::interrupt): Replace iterate_over_inferiors use
12583 with a range-based for. Inline code from
12584 gdbsim_interrupt_inferior.
12585
12586 2020-01-21 Simon Marchi <simon.marchi@efficios.com>
12587
12588 * infrun.c (proceed): Fix indentation.
12589
12590 2020-01-21 Tom Tromey <tromey@adacore.com>
12591
12592 * source-cache.c (source_cache::ensure): Call ext_lang_colorize.
12593 * python/python.c (python_extension_ops): Update.
12594 (gdbpy_colorize): New function.
12595 * python/lib/gdb/__init__.py (colorize): New function.
12596 * extension.h (ext_lang_colorize): Declare.
12597 * extension.c (ext_lang_colorize): New function.
12598 * extension-priv.h (struct extension_language_ops) <colorize>: New
12599 member.
12600 * cli/cli-style.c (_initialize_cli_style): Update help text.
12601
12602 2020-01-21 Luis Machado <luis.machado@linaro.org>
12603
12604 * aarch64-tdep.c (struct aarch64_displaced_step_closure)
12605 <cond>: Change type to bool.
12606 (aarch64_displaced_step_b_cond): Update cond to use bool type.
12607 (aarch64_displaced_step_cb): Likewise.
12608 (aarch64_displaced_step_tb): Likewise.
12609
12610 2020-01-21 Luis Machado <luis.machado@linaro.org>
12611
12612 * aarch64-tdep.c (aarch64_displaced_step_fixup): Add more debugging
12613 output.
12614
12615 2020-01-21 Luis Machado <luis.machado@linaro.org>
12616
12617 * aarch64-tdep.c (struct aarch64_displaced_step_closure )
12618 <pc_adjust>: Adjust the documentation.
12619 (aarch64_displaced_step_fixup): Check if PC really moved before
12620 adjusting it.
12621
12622 2020-01-19 Tom Tromey <tom@tromey.com>
12623
12624 * disasm.c (~gdb_disassembler): New destructor.
12625 (gdb_buffered_insn_length): Call disassemble_free_target.
12626 * disasm.h (class gdb_disassembler): Declare destructor. Use
12627 DISABLE_COPY_AND_ASSIGN.
12628
12629 2020-01-19 Tom Tromey <tom@tromey.com>
12630
12631 * dwarf2read.c (abbrev_table_up): Move typedef earlier.
12632 (die_reader_func_ftype): Remove.
12633 (cutu_reader): New class.
12634 (dw2_get_file_names_reader): Remove "data" parameter.
12635 (dw2_get_file_names): Use cutu_reader.
12636 (create_debug_type_hash_table): Update.
12637 (read_cutu_die_from_dwo): Update comment.
12638 (lookup_dwo_unit): Add dwo_name parameter.
12639 (cutu_reader::init_tu_and_read_dwo_dies): Now a method. Remove
12640 die_reader_func_ftype and data parameters.
12641 (cutu_reader::cutu_reader): Rename from init_cutu_and_read_dies.
12642 Remove die_reader_func_ftype and data parameters.
12643 (~cutu_reader): New; from init_cutu_and_read_dies.
12644 (cutu_reader::cutu_reader): Rename from
12645 init_cutu_and_read_dies_no_follow. Remove die_reader_func_ftype
12646 and data parameters.
12647 (init_cutu_and_read_dies_simple): Remove.
12648 (struct process_psymtab_comp_unit_data): Remove.
12649 (process_psymtab_comp_unit_reader): Remove data parameter; add
12650 want_partial_unit and pretend_language parameters.
12651 (process_psymtab_comp_unit): Use cutu_reader.
12652 (build_type_psymtabs_reader): Remove data parameter.
12653 (build_type_psymtabs_1): Use cutu_reader.
12654 (process_skeletonless_type_unit): Likewise.
12655 (load_partial_comp_unit_reader): Remove.
12656 (load_partial_comp_unit): Use cutu_reader.
12657 (load_full_comp_unit_reader): Remove.
12658 (load_full_comp_unit): Use cutu_reader.
12659 (struct create_dwo_cu_data): Remove.
12660 (create_dwo_cu_reader): Remove datap parameter; add dwo_file and
12661 dwo_unit parameters.
12662 (create_cus_hash_table): Use cutu_reader.
12663 (struct dwarf2_read_addr_index_data): Remove.
12664 (dwarf2_read_addr_index_reader): Remove.
12665 (dwarf2_read_addr_index): Use cutu_reader.
12666 (read_signatured_type_reader): Remove.
12667 (read_signatured_type): Use cutu_reader.
12668
12669 2020-01-19 Tom Tromey <tom@tromey.com>
12670
12671 * tui/tui.c (tui_show_assembly): Use tui_suppress_output.
12672 * tui/tui-wingeneral.h (class tui_suppress_output): New.
12673 (tui_wrefresh): Declare.
12674 * tui/tui-wingeneral.c (suppress_output): New global.
12675 (tui_suppress_output, ~tui_suppress_output): New constructor and
12676 destructor.
12677 (tui_wrefresh): New function.
12678 (tui_gen_win_info::refresh_window): Use tui_wrefresh.
12679 (tui_gen_win_info::make_window): Call wnoutrefresh when needed.
12680 * tui/tui-regs.h (struct tui_data_window) <no_refresh>: Declare
12681 method.
12682 * tui/tui-regs.c (tui_data_window::erase_data_content): Call
12683 tui_wrefresh.
12684 (tui_data_window::no_refresh): New method.
12685 (tui_data_item_window::refresh_window): Call tui_wrefresh.
12686 (tui_reg_command): Use tui_suppress_output
12687 * tui/tui-layout.c (tui_set_layout): Use tui_suppress_output.
12688 * tui/tui-data.h (struct tui_gen_win_info) <no_refresh>: New
12689 method.
12690 * tui/tui-command.c (tui_refresh_cmd_win): Call tui_wrefresh.
12691
12692 2020-01-19 Tom Tromey <tom@tromey.com>
12693
12694 * tui/tui-winsource.c (tui_update_source_windows_with_line):
12695 Handle case where symtab is null.
12696
12697 2020-01-19 Simon Marchi <simon.marchi@polymtl.ca>
12698
12699 * linux-fork.c (one_fork_p): Simplify.
12700
12701 2020-01-17 Simon Marchi <simon.marchi@efficios.com>
12702
12703 * top.c (struct qt_args): Remove.
12704 (kill_or_detach): Change return type to void, replace `void *`
12705 parameter with a proper one.
12706 (print_inferior_quit_action): Likewise.
12707 (quit_confirm): Use range-based for loop to iterate over inferiors.
12708 (quit_force): Likewise.
12709
12710 2020-01-17 Simon Marchi <simon.marchi@efficios.com>
12711
12712 * mi/mi-main.c (run_one_inferior): Change return type to void, replace
12713 `void *` parameter with proper parameters.
12714 (mi_cmd_exec_run): Use range-based loop to iterate over inferiors.
12715 (print_one_inferior): Change return type to void, replace `void *`
12716 parameter with proper parameters.
12717 (mi_cmd_list_thread_groups): Use range-based loop to iterate over
12718 inferiors.
12719 (get_other_inferior): Remove.
12720 (mi_cmd_remove_inferior): Use range-based loop to iterate over
12721 inferiors.
12722
12723 2020-01-17 Simon Marchi <simon.marchi@efficios.com>
12724
12725 * mi/mi-interp.c (report_initial_inferior): Remove.
12726 (mi_interp::init): Use range-based for to iterate over inferiors.
12727
12728 2020-01-17 Simon Marchi <simon.marchi@efficios.com>
12729
12730 * python/py-inferior.c (build_inferior_list): Remove.
12731 (gdbpy_ref): Use range-based for loop to iterate over inferiors.
12732
12733 2020-01-16 Christian Biesinger <cbiesinger@google.com>
12734
12735 * btrace.c (btrace_compute_ftrace_1): Fix spelling error (Unkown).
12736 (btrace_stitch_trace): Likewise.
12737 * charset.c (intermediate_encoding): Likewise (vaild).
12738 * nat/linux-btrace.c (linux_read_pt): Likewise (Unkown).
12739 * python/py-record-btrace.c (struct PyMethodDef): Likewise (occurences).
12740 * record-btrace.c (record_btrace_print_conf): Likewise (unkown).
12741
12742 2020-01-16 Hannes Domani <ssbssa@yahoo.de>
12743
12744 * windows-tdep.c (windows_get_tlb_type):
12745 Add rtl_user_process_parameters type.
12746
12747 2020-01-16 Pedro Alves <palves@redhat.com>
12748 Norbert Lange <nolange79@gmail.com>
12749
12750 PR build/24805
12751 * gdbsupport/gdb_proc_service.h (PS_EXPORT): New.
12752 (ps_get_thread_area, ps_getpid, ps_lcontinue, ps_lgetfpregs)
12753 (ps_lgetregs, ps_lsetfpregs, ps_lsetregs, ps_lstop, ps_pcontinue)
12754 (ps_pdread, ps_pdwrite, ps_pglobal_lookup, ps_pstop, ps_ptread)
12755 (ps_ptwrite, ps_lgetxregs, ps_lgetxregsize, ps_lsetxregs)
12756 (ps_plog): Redeclare exported functions with default visibility.
12757
12758 2020-01-16 Nitika Achra <Nitika.Achra@amd.com>
12759
12760 * dwarf2loc.c (decode_debug_loclists_addresses): Handle
12761 DW_LLE_base_addressx, DW_LLE_startx_length, DW_LLE_start_length.
12762
12763 2020-01-15 Simon Marchi <simon.marchi@efficios.com>
12764
12765 * infcmd.c (post_create_inferior): Use get_thread_regcache
12766 instead of get_current_regcache.
12767
12768 2020-01-14 Tom Tromey <tom@tromey.com>
12769
12770 PR symtab/12535:
12771 * python/python.c (gdbpy_decode_line): Treat empty string the same
12772 as no argument.
12773
12774 2020-01-14 Tom Tromey <tom@tromey.com>
12775
12776 * Makefile.in (CLIBS): Remove second use of $(LIBIBERTY).
12777
12778 2020-01-14 Tom Tromey <tom@tromey.com>
12779
12780 * nat/linux-btrace.c: Don't include <config.h>.
12781 * nat/linux-ptrace.c: Don't include <config.h>.
12782 * nat/x86-linux-dregs.c: Don't include <config.h>.
12783
12784 2020-01-14 Tom Tromey <tom@tromey.com>
12785
12786 * configure: Rebuild.
12787 * configure.ac: Move many checks to ../gdbsupport/common.m4.
12788
12789 2020-01-14 Tom Tromey <tom@tromey.com>
12790
12791 * nat/x86-linux-dregs.c: Include configh.h.
12792 * nat/linux-ptrace.c: Include configh.h.
12793 * nat/linux-btrace.c: Include configh.h.
12794 * defs.h: Include config.h, bfd.h.
12795 * configure.ac: Don't source common.host.
12796 (CONFIG_OBS, CONFIG_SRCS): Remove gdbsupport files.
12797 * configure: Rebuild.
12798 * acinclude.m4: Update path.
12799 * Makefile.in (SUPPORT, LIBSUPPORT, INCSUPPORT): New variables.
12800 (CONFIG_SRC_SUBDIR): Remove gdbsupport.
12801 (INTERNAL_CFLAGS_BASE): Add INCSUPPORT.
12802 (CLIBS): Add LIBSUPPORT.
12803 (CDEPS): Likewise.
12804 (COMMON_SFILES): Remove gdbsupport files.
12805 (HFILES_NO_SRCDIR): Likewise.
12806 (stamp-version): Update path to create-version.sh.
12807 (ALLDEPFILES): Remove gdbsupport files.
12808
12809 2020-01-14 Tom Tromey <tom@tromey.com>
12810
12811 * gdbsupport/common.m4 (GDB_AC_COMMON): Define WIN32APILIBS and
12812 USE_WIN32API when needed.
12813 * configure.ac (USE_WIN32API): Don't define.
12814 (WIN32LIBS): Use WIN32APILIBS.
12815 * configure: Rebuild.
12816
12817 2020-01-14 Tom Tromey <tom@tromey.com>
12818
12819 * configure: Rebuild.
12820 * gdbsupport/common.m4 (GDB_AC_COMMON): Fix indentation.
12821
12822 2020-01-14 Bernd Edlinger <bernd.edlinger@hotmail.de>
12823
12824 * skip.c (skip_function_command): Make skip w/o arguments use the
12825 name of the inlined function if pc is inside any inlined function.
12826
12827 2020-01-14 Luis Machado <luis.machado@linaro.org>
12828
12829 * inf-ptrace.c (inf_ptrace_target::resume): Update comments.
12830 * infrun.c (resume_1): Likewise.
12831 (handle_inferior_event): Remove stale comment.
12832 * linux-nat.c (linux_nat_target::resume): Update comments.
12833 (save_stop_reason): Likewise.
12834 (linux_nat_filter_event): Likewise.
12835 * linux-nat.h (struct lwp_info) <stop_pc>, <stop_reason>: Likewise.
12836
12837 2020-01-13 Andrew Burgess <andrew.burgess@embecosm.com>
12838
12839 * elfread.c (record_minimal_symbol): Set section index to 0 for
12840 non-allocatable sections.
12841
12842
12843 2020-01-13 Ali Tamur <tamur@google.com>
12844
12845 * dwarf2read.c (dwarf2_debug_sections): Add debug_str_offsets sections.
12846 (dwarf2_cu): Add str_offsets_base field. Change the type of addr_base
12847 to gdb::optional. Update comments.
12848 (dwo_file): Update comments.
12849 (read_attribute): Update API to take an additional out parameter,
12850 need_reprocess. This is used to mark attributes that need other
12851 attributes (e.g. str_offsets_base) for correct computation which may not
12852 have been read yet.
12853 (read_attribute_reprocess): New function declaration.
12854 (read_addr_index): Likewise.
12855 (read_dwo_str_index): Likewise.
12856 (read_stub_str_index): Likewise.
12857 (dwarf2_per_objfile::locate_sections): Handle debug_str_offsets section.
12858 (lookup_addr_base): New function definition.
12859 (lookup_ranges_base): Likewise.
12860 (read_cutu_die_from_dwo): Use the new functions: lookup_addr_base,
12861 lookup_ranges_base.
12862 (init_cutu_and_read_dies): Update comments.
12863 (init_cutu_and_read_dies_no_follow): Change API to take parent compile
12864 unit. This is used to inherit parent's str_offsets_base and addr_base.
12865 Update comments.
12866 (init_cutu_and_read_dies_simple): Reflect API changes.
12867 (skip_one_die): Reflect API changes. Handle DW_FORM_rnglistx.
12868 (create_cus_hash_table): Change API to take parent compile unit.
12869 Reflect API changes.
12870 (open_and_init_dwo_file): Reflect API changes.
12871 (dwarf2_get_pc_bounds): Update comments.
12872 (dwarf2_record_block_ranges): Likewise.
12873 (read_full_die_1): Change implementation to reprocess attributes that
12874 need str_offsets_base and addr_base.
12875 (partial_die_info::read): Likewise.
12876 (read_attribute_reprocess): New function definition.
12877 (read_attribute_value): Change API to take an additional out parameter,
12878 need_reprocess. Handle DW_FORM_rnglistx. No longer trigger an error
12879 when a non-dwo compile unit has index based attributes.
12880 (read_attribute): Reflect API changes.
12881 (read_addr_index_1): Reflect API changes. Update comments.
12882 (dwarf2_read_addr_index_data): Reflect API changes.
12883 (dwarf2_read_addr_index): Likewise.
12884 (read_str_index): Change API and implementation. This becomes a helper
12885 to be used by the new string index related methods. Update error
12886 message and comments.
12887 (read_dwo_str_index): New function definition.
12888 (read_stub_str_index): Likewise.
12889 * dwarf2read.h (dwarf2_per_objfile): Add str_offsets field.
12890 * symfile.h (dwarf2_debug_sections): Likewise.
12891 * xcoffread.c (dwarf2_debug_sections): Likewise.
12892
12893 2020-01-13 Simon Marchi <simon.marchi@efficios.com>
12894
12895 * gdbcore.h (struct core_fns) <core_read_registers>: Change
12896 core_reg_sect type to gdb_byte *.
12897 * arm-nbsd-nat.c (fetch_elfcore_registers): Likewise.
12898 * cris-tdep.c (fetch_core_registers): Likewise.
12899 * corelow.c (core_target::get_core_register_section): Change
12900 type of `contents` to gdb::byte_vector.
12901
12902 2020-01-13 Andrew Burgess <andrew.burgess@embecosm.com>
12903
12904 * tui/tui-wingeneral.c (box_win): Position the title in the center
12905 of the border.
12906
12907 2020-01-13 Simon Marchi <simon.marchi@polymtl.ca>
12908
12909 * corelow.c (core_target::get_core_register_section): Use
12910 std::vector instead of alloca.
12911
12912 2020-01-13 Simon Marchi <simon.marchi@efficios.com>
12913
12914 * warning.m4: Add -Wmissing-declarations to build_warnings.
12915 * configure: Re-generate.
12916
12917 2020-01-13 Simon Marchi <simon.marchi@efficios.com>
12918
12919 * python/python.c (init__gdb_module): Add declaration.
12920
12921 2020-01-13 Simon Marchi <simon.marchi@efficios.com>
12922
12923 * aarch64-fbsd-nat.c (_initialize_aarch64_fbsd_nat): Add declaration.
12924 * aarch64-fbsd-tdep.c (_initialize_aarch64_fbsd_tdep): Add declaration.
12925 * aarch64-linux-nat.c (_initialize_aarch64_linux_nat): Add declaration.
12926 * aarch64-linux-tdep.c (_initialize_aarch64_linux_tdep): Add declaration.
12927 * aarch64-newlib-tdep.c (_initialize_aarch64_newlib_tdep): Add declaration.
12928 * aarch64-tdep.c (_initialize_aarch64_tdep): Add declaration.
12929 * ada-exp.y (_initialize_ada_exp): Add declaration.
12930 * ada-lang.c (_initialize_ada_language): Add declaration.
12931 * ada-tasks.c (_initialize_tasks): Add declaration.
12932 * agent.c (_initialize_agent): Add declaration.
12933 * aix-thread.c (_initialize_aix_thread): Add declaration.
12934 * alpha-bsd-nat.c (_initialize_alphabsd_nat): Add declaration.
12935 * alpha-linux-nat.c (_initialize_alpha_linux_nat): Add declaration.
12936 * alpha-linux-tdep.c (_initialize_alpha_linux_tdep): Add declaration.
12937 * alpha-nbsd-tdep.c (_initialize_alphanbsd_tdep): Add declaration.
12938 * alpha-obsd-tdep.c (_initialize_alphaobsd_tdep): Add declaration.
12939 * alpha-tdep.c (_initialize_alpha_tdep): Add declaration.
12940 * amd64-darwin-tdep.c (_initialize_amd64_darwin_tdep): Add declaration.
12941 * amd64-dicos-tdep.c (_initialize_amd64_dicos_tdep): Add declaration.
12942 * amd64-fbsd-nat.c (_initialize_amd64fbsd_nat): Add declaration.
12943 * amd64-fbsd-tdep.c (_initialize_amd64fbsd_tdep): Add declaration.
12944 * amd64-linux-nat.c (_initialize_amd64_linux_nat): Add declaration.
12945 * amd64-linux-tdep.c (_initialize_amd64_linux_tdep): Add declaration.
12946 * amd64-nbsd-nat.c (_initialize_amd64nbsd_nat): Add declaration.
12947 * amd64-nbsd-tdep.c (_initialize_amd64nbsd_tdep): Add declaration.
12948 * amd64-obsd-nat.c (_initialize_amd64obsd_nat): Add declaration.
12949 * amd64-obsd-tdep.c (_initialize_amd64obsd_tdep): Add declaration.
12950 * amd64-sol2-tdep.c (_initialize_amd64_sol2_tdep): Add declaration.
12951 * amd64-tdep.c (_initialize_amd64_tdep): Add declaration.
12952 * amd64-windows-nat.c (_initialize_amd64_windows_nat): Add declaration.
12953 * amd64-windows-tdep.c (_initialize_amd64_windows_tdep): Add declaration.
12954 * annotate.c (_initialize_annotate): Add declaration.
12955 * arc-newlib-tdep.c (_initialize_arc_newlib_tdep): Add declaration.
12956 * arc-tdep.c (_initialize_arc_tdep): Add declaration.
12957 * arch-utils.c (_initialize_gdbarch_utils): Add declaration.
12958 * arm-fbsd-nat.c (_initialize_arm_fbsd_nat): Add declaration.
12959 * arm-fbsd-tdep.c (_initialize_arm_fbsd_tdep): Add declaration.
12960 * arm-linux-nat.c (_initialize_arm_linux_nat): Add declaration.
12961 * arm-linux-tdep.c (_initialize_arm_linux_tdep): Add declaration.
12962 * arm-nbsd-nat.c (_initialize_arm_netbsd_nat): Add declaration.
12963 * arm-nbsd-tdep.c (_initialize_arm_netbsd_tdep): Add declaration.
12964 * arm-obsd-tdep.c (_initialize_armobsd_tdep): Add declaration.
12965 * arm-pikeos-tdep.c (_initialize_arm_pikeos_tdep): Add declaration.
12966 * arm-symbian-tdep.c (_initialize_arm_symbian_tdep): Add declaration.
12967 * arm-tdep.c (_initialize_arm_tdep): Add declaration.
12968 * arm-wince-tdep.c (_initialize_arm_wince_tdep): Add declaration.
12969 * auto-load.c (_initialize_auto_load): Add declaration.
12970 * auxv.c (_initialize_auxv): Add declaration.
12971 * avr-tdep.c (_initialize_avr_tdep): Add declaration.
12972 * ax-gdb.c (_initialize_ax_gdb): Add declaration.
12973 * bfin-linux-tdep.c (_initialize_bfin_linux_tdep): Add declaration.
12974 * bfin-tdep.c (_initialize_bfin_tdep): Add declaration.
12975 * break-catch-sig.c (_initialize_break_catch_sig): Add declaration.
12976 * break-catch-syscall.c (_initialize_break_catch_syscall): Add declaration.
12977 * break-catch-throw.c (_initialize_break_catch_throw): Add declaration.
12978 * breakpoint.c (_initialize_breakpoint): Add declaration.
12979 * bsd-uthread.c (_initialize_bsd_uthread): Add declaration.
12980 * btrace.c (_initialize_btrace): Add declaration.
12981 * charset.c (_initialize_charset): Add declaration.
12982 * cli/cli-cmds.c (_initialize_cli_cmds): Add declaration.
12983 * cli/cli-dump.c (_initialize_cli_dump): Add declaration.
12984 * cli/cli-interp.c (_initialize_cli_interp): Add declaration.
12985 * cli/cli-logging.c (_initialize_cli_logging): Add declaration.
12986 * cli/cli-script.c (_initialize_cli_script): Add declaration.
12987 * cli/cli-style.c (_initialize_cli_style): Add declaration.
12988 * coff-pe-read.c (_initialize_coff_pe_read): Add declaration.
12989 * coffread.c (_initialize_coffread): Add declaration.
12990 * compile/compile-cplus-types.c (_initialize_compile_cplus_types): Add declaration.
12991 * compile/compile.c (_initialize_compile): Add declaration.
12992 * complaints.c (_initialize_complaints): Add declaration.
12993 * completer.c (_initialize_completer): Add declaration.
12994 * copying.c (_initialize_copying): Add declaration.
12995 * corefile.c (_initialize_core): Add declaration.
12996 * corelow.c (_initialize_corelow): Add declaration.
12997 * cp-abi.c (_initialize_cp_abi): Add declaration.
12998 * cp-namespace.c (_initialize_cp_namespace): Add declaration.
12999 * cp-support.c (_initialize_cp_support): Add declaration.
13000 * cp-valprint.c (_initialize_cp_valprint): Add declaration.
13001 * cris-linux-tdep.c (_initialize_cris_linux_tdep): Add declaration.
13002 * cris-tdep.c (_initialize_cris_tdep): Add declaration.
13003 * csky-linux-tdep.c (_initialize_csky_linux_tdep): Add declaration.
13004 * csky-tdep.c (_initialize_csky_tdep): Add declaration.
13005 * ctfread.c (_initialize_ctfread): Add declaration.
13006 * d-lang.c (_initialize_d_language): Add declaration.
13007 * darwin-nat-info.c (_initialize_darwin_info_commands): Add declaration.
13008 * darwin-nat.c (_initialize_darwin_nat): Add declaration.
13009 * dbxread.c (_initialize_dbxread): Add declaration.
13010 * dcache.c (_initialize_dcache): Add declaration.
13011 * disasm-selftests.c (_initialize_disasm_selftests): Add declaration.
13012 * disasm.c (_initialize_disasm): Add declaration.
13013 * dtrace-probe.c (_initialize_dtrace_probe): Add declaration.
13014 * dummy-frame.c (_initialize_dummy_frame): Add declaration.
13015 * dwarf-index-cache.c (_initialize_index_cache): Add declaration.
13016 * dwarf-index-write.c (_initialize_dwarf_index_write): Add declaration.
13017 * dwarf2-frame-tailcall.c (_initialize_tailcall_frame): Add declaration.
13018 * dwarf2-frame.c (_initialize_dwarf2_frame): Add declaration.
13019 * dwarf2expr.c (_initialize_dwarf2expr): Add declaration.
13020 * dwarf2loc.c (_initialize_dwarf2loc): Add declaration.
13021 * dwarf2read.c (_initialize_dwarf2_read): Add declaration.
13022 * elfread.c (_initialize_elfread): Add declaration.
13023 * exec.c (_initialize_exec): Add declaration.
13024 * extension.c (_initialize_extension): Add declaration.
13025 * f-lang.c (_initialize_f_language): Add declaration.
13026 * f-valprint.c (_initialize_f_valprint): Add declaration.
13027 * fbsd-nat.c (_initialize_fbsd_nat): Add declaration.
13028 * fbsd-tdep.c (_initialize_fbsd_tdep): Add declaration.
13029 * filesystem.c (_initialize_filesystem): Add declaration.
13030 * findcmd.c (_initialize_mem_search): Add declaration.
13031 * findvar.c (_initialize_findvar): Add declaration.
13032 * fork-child.c (_initialize_fork_child): Add declaration.
13033 * frame-base.c (_initialize_frame_base): Add declaration.
13034 * frame-unwind.c (_initialize_frame_unwind): Add declaration.
13035 * frame.c (_initialize_frame): Add declaration.
13036 * frv-linux-tdep.c (_initialize_frv_linux_tdep): Add declaration.
13037 * frv-tdep.c (_initialize_frv_tdep): Add declaration.
13038 * ft32-tdep.c (_initialize_ft32_tdep): Add declaration.
13039 * gcore.c (_initialize_gcore): Add declaration.
13040 * gdb-demangle.c (_initialize_gdb_demangle): Add declaration.
13041 * gdb_bfd.c (_initialize_gdb_bfd): Add declaration.
13042 * gdbarch-selftests.c (_initialize_gdbarch_selftests): Add declaration.
13043 * gdbarch.c (_initialize_gdbarch): Add declaration.
13044 * gdbtypes.c (_initialize_gdbtypes): Add declaration.
13045 * gnu-nat.c (_initialize_gnu_nat): Add declaration.
13046 * gnu-v2-abi.c (_initialize_gnu_v2_abi): Add declaration.
13047 * gnu-v3-abi.c (_initialize_gnu_v3_abi): Add declaration.
13048 * go-lang.c (_initialize_go_language): Add declaration.
13049 * go32-nat.c (_initialize_go32_nat): Add declaration.
13050 * guile/guile.c (_initialize_guile): Add declaration.
13051 * h8300-tdep.c (_initialize_h8300_tdep): Add declaration.
13052 * hppa-linux-nat.c (_initialize_hppa_linux_nat): Add declaration.
13053 * hppa-linux-tdep.c (_initialize_hppa_linux_tdep): Add declaration.
13054 * hppa-nbsd-nat.c (_initialize_hppanbsd_nat): Add declaration.
13055 * hppa-nbsd-tdep.c (_initialize_hppanbsd_tdep): Add declaration.
13056 * hppa-obsd-nat.c (_initialize_hppaobsd_nat): Add declaration.
13057 * hppa-obsd-tdep.c (_initialize_hppabsd_tdep): Add declaration.
13058 * hppa-tdep.c (_initialize_hppa_tdep): Add declaration.
13059 * i386-bsd-nat.c (_initialize_i386bsd_nat): Add declaration.
13060 * i386-cygwin-tdep.c (_initialize_i386_cygwin_tdep): Add declaration.
13061 * i386-darwin-nat.c (_initialize_i386_darwin_nat): Add declaration.
13062 * i386-darwin-tdep.c (_initialize_i386_darwin_tdep): Add declaration.
13063 * i386-dicos-tdep.c (_initialize_i386_dicos_tdep): Add declaration.
13064 * i386-fbsd-nat.c (_initialize_i386fbsd_nat): Add declaration.
13065 * i386-fbsd-tdep.c (_initialize_i386fbsd_tdep): Add declaration.
13066 * i386-gnu-nat.c (_initialize_i386gnu_nat): Add declaration.
13067 * i386-gnu-tdep.c (_initialize_i386gnu_tdep): Add declaration.
13068 * i386-go32-tdep.c (_initialize_i386_go32_tdep): Add declaration.
13069 * i386-linux-nat.c (_initialize_i386_linux_nat): Add declaration.
13070 * i386-linux-tdep.c (_initialize_i386_linux_tdep): Add declaration.
13071 * i386-nbsd-nat.c (_initialize_i386nbsd_nat): Add declaration.
13072 * i386-nbsd-tdep.c (_initialize_i386nbsd_tdep): Add declaration.
13073 * i386-nto-tdep.c (_initialize_i386nto_tdep): Add declaration.
13074 * i386-obsd-nat.c (_initialize_i386obsd_nat): Add declaration.
13075 * i386-obsd-tdep.c (_initialize_i386obsd_tdep): Add declaration.
13076 * i386-sol2-nat.c (_initialize_amd64_sol2_nat): Add declaration.
13077 * i386-sol2-tdep.c (_initialize_i386_sol2_tdep): Add declaration.
13078 * i386-tdep.c (_initialize_i386_tdep): Add declaration.
13079 * i386-windows-nat.c (_initialize_i386_windows_nat): Add declaration.
13080 * ia64-libunwind-tdep.c (_initialize_libunwind_frame): Add declaration.
13081 * ia64-linux-nat.c (_initialize_ia64_linux_nat): Add declaration.
13082 * ia64-linux-tdep.c (_initialize_ia64_linux_tdep): Add declaration.
13083 * ia64-tdep.c (_initialize_ia64_tdep): Add declaration.
13084 * ia64-vms-tdep.c (_initialize_ia64_vms_tdep): Add declaration.
13085 * infcall.c (_initialize_infcall): Add declaration.
13086 * infcmd.c (_initialize_infcmd): Add declaration.
13087 * inflow.c (_initialize_inflow): Add declaration.
13088 * infrun.c (_initialize_infrun): Add declaration.
13089 * interps.c (_initialize_interpreter): Add declaration.
13090 * iq2000-tdep.c (_initialize_iq2000_tdep): Add declaration.
13091 * jit.c (_initialize_jit): Add declaration.
13092 * language.c (_initialize_language): Add declaration.
13093 * linux-fork.c (_initialize_linux_fork): Add declaration.
13094 * linux-nat.c (_initialize_linux_nat): Add declaration.
13095 * linux-tdep.c (_initialize_linux_tdep): Add declaration.
13096 * linux-thread-db.c (_initialize_thread_db): Add declaration.
13097 * lm32-tdep.c (_initialize_lm32_tdep): Add declaration.
13098 * m2-lang.c (_initialize_m2_language): Add declaration.
13099 * m32c-tdep.c (_initialize_m32c_tdep): Add declaration.
13100 * m32r-linux-nat.c (_initialize_m32r_linux_nat): Add declaration.
13101 * m32r-linux-tdep.c (_initialize_m32r_linux_tdep): Add declaration.
13102 * m32r-tdep.c (_initialize_m32r_tdep): Add declaration.
13103 * m68hc11-tdep.c (_initialize_m68hc11_tdep): Add declaration.
13104 * m68k-bsd-nat.c (_initialize_m68kbsd_nat): Add declaration.
13105 * m68k-bsd-tdep.c (_initialize_m68kbsd_tdep): Add declaration.
13106 * m68k-linux-nat.c (_initialize_m68k_linux_nat): Add declaration.
13107 * m68k-linux-tdep.c (_initialize_m68k_linux_tdep): Add declaration.
13108 * m68k-tdep.c (_initialize_m68k_tdep): Add declaration.
13109 * machoread.c (_initialize_machoread): Add declaration.
13110 * macrocmd.c (_initialize_macrocmd): Add declaration.
13111 * macroscope.c (_initialize_macroscope): Add declaration.
13112 * maint-test-options.c (_initialize_maint_test_options): Add declaration.
13113 * maint-test-settings.c (_initialize_maint_test_settings): Add declaration.
13114 * maint.c (_initialize_maint_cmds): Add declaration.
13115 * mdebugread.c (_initialize_mdebugread): Add declaration.
13116 * memattr.c (_initialize_mem): Add declaration.
13117 * mep-tdep.c (_initialize_mep_tdep): Add declaration.
13118 * mi/mi-cmd-env.c (_initialize_mi_cmd_env): Add declaration.
13119 * mi/mi-cmds.c (_initialize_mi_cmds): Add declaration.
13120 * mi/mi-interp.c (_initialize_mi_interp): Add declaration.
13121 * mi/mi-main.c (_initialize_mi_main): Add declaration.
13122 * microblaze-linux-tdep.c (_initialize_microblaze_linux_tdep): Add declaration.
13123 * microblaze-tdep.c (_initialize_microblaze_tdep): Add declaration.
13124 * mips-fbsd-nat.c (_initialize_mips_fbsd_nat): Add declaration.
13125 * mips-fbsd-tdep.c (_initialize_mips_fbsd_tdep): Add declaration.
13126 * mips-linux-nat.c (_initialize_mips_linux_nat): Add declaration.
13127 * mips-linux-tdep.c (_initialize_mips_linux_tdep): Add declaration.
13128 * mips-nbsd-nat.c (_initialize_mipsnbsd_nat): Add declaration.
13129 * mips-nbsd-tdep.c (_initialize_mipsnbsd_tdep): Add declaration.
13130 * mips-sde-tdep.c (_initialize_mips_sde_tdep): Add declaration.
13131 * mips-tdep.c (_initialize_mips_tdep): Add declaration.
13132 * mips64-obsd-nat.c (_initialize_mips64obsd_nat): Add declaration.
13133 * mips64-obsd-tdep.c (_initialize_mips64obsd_tdep): Add declaration.
13134 * mipsread.c (_initialize_mipsread): Add declaration.
13135 * mn10300-linux-tdep.c (_initialize_mn10300_linux_tdep): Add declaration.
13136 * mn10300-tdep.c (_initialize_mn10300_tdep): Add declaration.
13137 * moxie-tdep.c (_initialize_moxie_tdep): Add declaration.
13138 * msp430-tdep.c (_initialize_msp430_tdep): Add declaration.
13139 * nds32-tdep.c (_initialize_nds32_tdep): Add declaration.
13140 * nios2-linux-tdep.c (_initialize_nios2_linux_tdep): Add declaration.
13141 * nios2-tdep.c (_initialize_nios2_tdep): Add declaration.
13142 * nto-procfs.c (_initialize_procfs): Add declaration.
13143 * objc-lang.c (_initialize_objc_language): Add declaration.
13144 * observable.c (_initialize_observer): Add declaration.
13145 * opencl-lang.c (_initialize_opencl_language): Add declaration.
13146 * or1k-linux-tdep.c (_initialize_or1k_linux_tdep): Add declaration.
13147 * or1k-tdep.c (_initialize_or1k_tdep): Add declaration.
13148 * osabi.c (_initialize_gdb_osabi): Add declaration.
13149 * osdata.c (_initialize_osdata): Add declaration.
13150 * p-valprint.c (_initialize_pascal_valprint): Add declaration.
13151 * parse.c (_initialize_parse): Add declaration.
13152 * ppc-fbsd-nat.c (_initialize_ppcfbsd_nat): Add declaration.
13153 * ppc-fbsd-tdep.c (_initialize_ppcfbsd_tdep): Add declaration.
13154 * ppc-linux-nat.c (_initialize_ppc_linux_nat): Add declaration.
13155 * ppc-linux-tdep.c (_initialize_ppc_linux_tdep): Add declaration.
13156 * ppc-nbsd-nat.c (_initialize_ppcnbsd_nat): Add declaration.
13157 * ppc-nbsd-tdep.c (_initialize_ppcnbsd_tdep): Add declaration.
13158 * ppc-obsd-nat.c (_initialize_ppcobsd_nat): Add declaration.
13159 * ppc-obsd-tdep.c (_initialize_ppcobsd_tdep): Add declaration.
13160 * printcmd.c (_initialize_printcmd): Add declaration.
13161 * probe.c (_initialize_probe): Add declaration.
13162 * proc-api.c (_initialize_proc_api): Add declaration.
13163 * proc-events.c (_initialize_proc_events): Add declaration.
13164 * proc-service.c (_initialize_proc_service): Add declaration.
13165 * procfs.c (_initialize_procfs): Add declaration.
13166 * producer.c (_initialize_producer): Add declaration.
13167 * psymtab.c (_initialize_psymtab): Add declaration.
13168 * python/python.c (_initialize_python): Add declaration.
13169 * ravenscar-thread.c (_initialize_ravenscar): Add declaration.
13170 * record-btrace.c (_initialize_record_btrace): Add declaration.
13171 * record-full.c (_initialize_record_full): Add declaration.
13172 * record.c (_initialize_record): Add declaration.
13173 * regcache-dump.c (_initialize_regcache_dump): Add declaration.
13174 * regcache.c (_initialize_regcache): Add declaration.
13175 * reggroups.c (_initialize_reggroup): Add declaration.
13176 * remote-notif.c (_initialize_notif): Add declaration.
13177 * remote-sim.c (_initialize_remote_sim): Add declaration.
13178 * remote.c (_initialize_remote): Add declaration.
13179 * reverse.c (_initialize_reverse): Add declaration.
13180 * riscv-fbsd-nat.c (_initialize_riscv_fbsd_nat): Add declaration.
13181 * riscv-fbsd-tdep.c (_initialize_riscv_fbsd_tdep): Add declaration.
13182 * riscv-linux-nat.c (_initialize_riscv_linux_nat): Add declaration.
13183 * riscv-linux-tdep.c (_initialize_riscv_linux_tdep): Add declaration.
13184 * riscv-tdep.c (_initialize_riscv_tdep): Add declaration.
13185 * rl78-tdep.c (_initialize_rl78_tdep): Add declaration.
13186 * rs6000-aix-tdep.c (_initialize_rs6000_aix_tdep): Add declaration.
13187 * rs6000-lynx178-tdep.c (_initialize_rs6000_lynx178_tdep):
13188 Add declaration.
13189 * rs6000-nat.c (_initialize_rs6000_nat): Add declaration.
13190 * rs6000-tdep.c (_initialize_rs6000_tdep): Add declaration.
13191 * run-on-main-thread.c (_initialize_run_on_main_thread): Add declaration.
13192 * rust-exp.y (_initialize_rust_exp): Add declaration.
13193 * rx-tdep.c (_initialize_rx_tdep): Add declaration.
13194 * s12z-tdep.c (_initialize_s12z_tdep): Add declaration.
13195 * s390-linux-nat.c (_initialize_s390_nat): Add declaration.
13196 * s390-linux-tdep.c (_initialize_s390_linux_tdep): Add declaration.
13197 * s390-tdep.c (_initialize_s390_tdep): Add declaration.
13198 * score-tdep.c (_initialize_score_tdep): Add declaration.
13199 * ser-go32.c (_initialize_ser_dos): Add declaration.
13200 * ser-mingw.c (_initialize_ser_windows): Add declaration.
13201 * ser-pipe.c (_initialize_ser_pipe): Add declaration.
13202 * ser-tcp.c (_initialize_ser_tcp): Add declaration.
13203 * ser-uds.c (_initialize_ser_socket): Add declaration.
13204 * ser-unix.c (_initialize_ser_hardwire): Add declaration.
13205 * serial.c (_initialize_serial): Add declaration.
13206 * sh-linux-tdep.c (_initialize_sh_linux_tdep): Add declaration.
13207 * sh-nbsd-nat.c (_initialize_shnbsd_nat): Add declaration.
13208 * sh-nbsd-tdep.c (_initialize_shnbsd_tdep): Add declaration.
13209 * sh-tdep.c (_initialize_sh_tdep): Add declaration.
13210 * skip.c (_initialize_step_skip): Add declaration.
13211 * sol-thread.c (_initialize_sol_thread): Add declaration.
13212 * solib-aix.c (_initialize_solib_aix): Add declaration.
13213 * solib-darwin.c (_initialize_darwin_solib): Add declaration.
13214 * solib-dsbt.c (_initialize_dsbt_solib): Add declaration.
13215 * solib-frv.c (_initialize_frv_solib): Add declaration.
13216 * solib-svr4.c (_initialize_svr4_solib): Add declaration.
13217 * solib-target.c (_initialize_solib_target): Add declaration.
13218 * solib.c (_initialize_solib): Add declaration.
13219 * source-cache.c (_initialize_source_cache): Add declaration.
13220 * source.c (_initialize_source): Add declaration.
13221 * sparc-linux-nat.c (_initialize_sparc_linux_nat): Add declaration.
13222 * sparc-linux-tdep.c (_initialize_sparc_linux_tdep): Add declaration.
13223 * sparc-nat.c (_initialize_sparc_nat): Add declaration.
13224 * sparc-nbsd-nat.c (_initialize_sparcnbsd_nat): Add declaration.
13225 * sparc-nbsd-tdep.c (_initialize_sparcnbsd_tdep): Add declaration.
13226 * sparc-obsd-tdep.c (_initialize_sparc32obsd_tdep): Add declaration.
13227 * sparc-sol2-tdep.c (_initialize_sparc_sol2_tdep): Add declaration.
13228 * sparc-tdep.c (_initialize_sparc_tdep): Add declaration.
13229 * sparc64-fbsd-nat.c (_initialize_sparc64fbsd_nat): Add declaration.
13230 * sparc64-fbsd-tdep.c (_initialize_sparc64fbsd_tdep): Add declaration.
13231 * sparc64-linux-nat.c (_initialize_sparc64_linux_nat): Add declaration.
13232 * sparc64-linux-tdep.c (_initialize_sparc64_linux_tdep): Add declaration.
13233 * sparc64-nat.c (_initialize_sparc64_nat): Add declaration.
13234 * sparc64-nbsd-nat.c (_initialize_sparc64nbsd_nat): Add declaration.
13235 * sparc64-nbsd-tdep.c (_initialize_sparc64nbsd_tdep): Add declaration.
13236 * sparc64-obsd-nat.c (_initialize_sparc64obsd_nat): Add declaration.
13237 * sparc64-obsd-tdep.c (_initialize_sparc64obsd_tdep): Add declaration.
13238 * sparc64-sol2-tdep.c (_initialize_sparc64_sol2_tdep): Add declaration.
13239 * sparc64-tdep.c (_initialize_sparc64_adi_tdep): Add declaration.
13240 * stabsread.c (_initialize_stabsread): Add declaration.
13241 * stack.c (_initialize_stack): Add declaration.
13242 * stap-probe.c (_initialize_stap_probe): Add declaration.
13243 * std-regs.c (_initialize_frame_reg): Add declaration.
13244 * symfile-debug.c (_initialize_symfile_debug): Add declaration.
13245 * symfile-mem.c (_initialize_symfile_mem): Add declaration.
13246 * symfile.c (_initialize_symfile): Add declaration.
13247 * symmisc.c (_initialize_symmisc): Add declaration.
13248 * symtab.c (_initialize_symtab): Add declaration.
13249 * target.c (_initialize_target): Add declaration.
13250 * target-connection.c (_initialize_target_connection): Add
13251 declaration.
13252 * target-dcache.c (_initialize_target_dcache): Add declaration.
13253 * target-descriptions.c (_initialize_target_descriptions): Add declaration.
13254 * thread.c (_initialize_thread): Add declaration.
13255 * tic6x-linux-tdep.c (_initialize_tic6x_linux_tdep): Add declaration.
13256 * tic6x-tdep.c (_initialize_tic6x_tdep): Add declaration.
13257 * tilegx-linux-nat.c (_initialize_tile_linux_nat): Add declaration.
13258 * tilegx-linux-tdep.c (_initialize_tilegx_linux_tdep): Add declaration.
13259 * tilegx-tdep.c (_initialize_tilegx_tdep): Add declaration.
13260 * tracectf.c (_initialize_ctf): Add declaration.
13261 * tracefile-tfile.c (_initialize_tracefile_tfile): Add declaration.
13262 * tracefile.c (_initialize_tracefile): Add declaration.
13263 * tracepoint.c (_initialize_tracepoint): Add declaration.
13264 * tui/tui-hooks.c (_initialize_tui_hooks): Add declaration.
13265 * tui/tui-interp.c (_initialize_tui_interp): Add declaration.
13266 * tui/tui-layout.c (_initialize_tui_layout): Add declaration.
13267 * tui/tui-regs.c (_initialize_tui_regs): Add declaration.
13268 * tui/tui-stack.c (_initialize_tui_stack): Add declaration.
13269 * tui/tui-win.c (_initialize_tui_win): Add declaration.
13270 * tui/tui.c (_initialize_tui): Add declaration.
13271 * typeprint.c (_initialize_typeprint): Add declaration.
13272 * ui-style.c (_initialize_ui_style): Add declaration.
13273 * unittests/array-view-selftests.c (_initialize_array_view_selftests): Add declaration.
13274 * unittests/child-path-selftests.c (_initialize_child_path_selftests): Add declaration.
13275 * unittests/cli-utils-selftests.c (_initialize_cli_utils_selftests): Add declaration.
13276 * unittests/common-utils-selftests.c (_initialize_common_utils_selftests): Add declaration.
13277 * unittests/copy_bitwise-selftests.c (_initialize_copy_bitwise_utils_selftests): Add declaration.
13278 * unittests/environ-selftests.c (_initialize_environ_selftests): Add declaration.
13279 * unittests/filtered_iterator-selftests.c
13280 (_initialize_filtered_iterator_selftests): Add declaration.
13281 * unittests/format_pieces-selftests.c (_initialize_format_pieces_selftests): Add declaration.
13282 * unittests/function-view-selftests.c (_initialize_function_view_selftests): Add declaration.
13283 * unittests/help-doc-selftests.c (_initialize_help_doc_selftests): Add declaration.
13284 * unittests/lookup_name_info-selftests.c (_initialize_lookup_name_info_selftests): Add declaration.
13285 * unittests/main-thread-selftests.c
13286 (_initialize_main_thread_selftests): Add declaration.
13287 * unittests/memory-map-selftests.c (_initialize_memory_map_selftests): Add declaration.
13288 * unittests/memrange-selftests.c (_initialize_memrange_selftests): Add declaration.
13289 * unittests/mkdir-recursive-selftests.c (_initialize_mkdir_recursive_selftests): Add declaration.
13290 * unittests/observable-selftests.c (_initialize_observer_selftest): Add declaration.
13291 * unittests/offset-type-selftests.c (_initialize_offset_type_selftests): Add declaration.
13292 * unittests/optional-selftests.c (_initialize_optional_selftests): Add declaration.
13293 * unittests/parse-connection-spec-selftests.c (_initialize_parse_connection_spec_selftests): Add declaration.
13294 * unittests/rsp-low-selftests.c (_initialize_rsp_low_selftests): Add declaration.
13295 * unittests/scoped_fd-selftests.c (_initialize_scoped_fd_selftests): Add declaration.
13296 * unittests/scoped_mmap-selftests.c (_initialize_scoped_mmap_selftests): Add declaration.
13297 * unittests/scoped_restore-selftests.c (_initialize_scoped_restore_selftests): Add declaration.
13298 * unittests/string_view-selftests.c (_initialize_string_view_selftests): Add declaration.
13299 * unittests/style-selftests.c (_initialize_style_selftest): Add declaration.
13300 * unittests/tracepoint-selftests.c (_initialize_tracepoint_selftests): Add declaration.
13301 * unittests/tui-selftests.c (_initialize_tui_selftest): Add
13302 declaration.
13303 * unittests/unpack-selftests.c (_initialize_unpack_selftests): Add declaration.
13304 * unittests/utils-selftests.c (_initialize_utils_selftests): Add declaration.
13305 * unittests/vec-utils-selftests.c (_initialize_vec_utils_selftests): Add declaration.
13306 * unittests/xml-utils-selftests.c (_initialize_xml_utils): Add declaration.
13307 * user-regs.c (_initialize_user_regs): Add declaration.
13308 * utils.c (_initialize_utils): Add declaration.
13309 * v850-tdep.c (_initialize_v850_tdep): Add declaration.
13310 * valops.c (_initialize_valops): Add declaration.
13311 * valprint.c (_initialize_valprint): Add declaration.
13312 * value.c (_initialize_values): Add declaration.
13313 * varobj.c (_initialize_varobj): Add declaration.
13314 * vax-bsd-nat.c (_initialize_vaxbsd_nat): Add declaration.
13315 * vax-nbsd-tdep.c (_initialize_vaxnbsd_tdep): Add declaration.
13316 * vax-tdep.c (_initialize_vax_tdep): Add declaration.
13317 * windows-nat.c (_initialize_windows_nat): Add declaration.
13318 (_initialize_check_for_gdb_ini): Add declaration.
13319 (_initialize_loadable): Add declaration.
13320 * windows-tdep.c (_initialize_windows_tdep): Add declaration.
13321 * x86-bsd-nat.c (_initialize_x86_bsd_nat): Add declaration.
13322 * x86-linux-nat.c (_initialize_x86_linux_nat): Add declaration.
13323 * xcoffread.c (_initialize_xcoffread): Add declaration.
13324 * xml-support.c (_initialize_xml_support): Add declaration.
13325 * xstormy16-tdep.c (_initialize_xstormy16_tdep): Add declaration.
13326 * xtensa-linux-nat.c (_initialize_xtensa_linux_nat): Add declaration.
13327 * xtensa-linux-tdep.c (_initialize_xtensa_linux_tdep): Add declaration.
13328 * xtensa-tdep.c (_initialize_xtensa_tdep): Add declaration.
13329
13330 2020-01-13 Simon Marchi <simon.marchi@polymtl.ca>
13331
13332 * regformats/regdat.sh: Generate declaration for init function.
13333
13334 2020-01-13 Simon Marchi <simon.marchi@polymtl.ca>
13335
13336 * remote-sim.c (next_pid, INITIAL_PID, sim_inferior_data): Move
13337 up.
13338 (gdbsim_target) <get_inferior_data_by_ptid, resume_one_inferior,
13339 close_one_inferior>: New methods.
13340 (get_sim_inferior_data_by_ptid): Move to gdbsim_target,
13341 pass down target to find_inferior_pid.
13342 (gdbsim_target::fetch_registers, gdbsim_target::store_registers):
13343 Pass down target to find_inferior_ptid.
13344 (gdbsim_target::create_inferior): Pass down target to
13345 add_thread_silent.
13346 (gdbsim_close_inferior): Move to gdbsim_close_inferior, pass
13347 target down to find_inferior_ptid and switch_to_thread.
13348 (gdbsim_target::close): Update to call close_one_inferior.
13349 (struct resume_data): Remove.
13350 (gdbsim_resume_inferior): Move to gdbsim_target. Take arguments
13351 directly, rather than through a void pointer.
13352 (gdbsim_target::resume): Update to call resume_one_inferior.
13353
13354 2020-01-12 Simon Marchi <simon.marchi@polymtl.ca>
13355
13356 * gdbsupport/gdb_wait.c: Include gdb_wait.h.
13357
13358 2020-01-12 Pedro Alves <palves@redhat.com>
13359
13360 * bsd-kvm.c (bsd_kvm_target::close): Call exit_inferior_silent
13361 directly for the current inferior instead of
13362 discard_all_inferiors.
13363 (discard_all_inferiors): Delete.
13364
13365 2020-01-11 Tom Tromey <tom@tromey.com>
13366
13367 * tui/tui-wingeneral.c (box_win): Check cli_styling.
13368 * tui/tui-winsource.c (tui_source_window_base::refill): Use
13369 deprecated_safe_get_selected_frame.
13370
13371 2020-01-10 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
13372
13373 * inferior.c (print_inferior): Switch inferior before printing it.
13374
13375 2020-01-10 Aleksandar Paunovic <aleksandar.paunovic@intel.com>
13376 Pedro Alves <palves@redhat.com>
13377
13378 * progspace-and-thread.c (switch_to_program_space_and_thread):
13379 Assert there's an inferior for PSPACE. Use
13380 switch_to_inferior_no_thread to switch the inferior too.
13381 * progspace.c (program_space::~program_space): Call
13382 clear_symtab_users here, with SYMFILE_DEFER_BP_RESET.
13383 (program_space::free_all_objfiles): Don't call clear_symtab_users
13384 here.
13385 * symfile.c (symbol_file_clear): Call clear_symtab_users here.
13386
13387 2020-01-10 Pedro Alves <palves@redhat.com>
13388
13389 * NEWS: Mention multi-target debugging, "info connections", and
13390 "add-inferior -no-connection".
13391
13392 2020-01-10 Pedro Alves <palves@redhat.com>
13393
13394 * infrun.c: Include "target-connection.h".
13395 (check_multi_target_resumption): New.
13396 (proceed): Call it.
13397 * target-connection.c (make_target_connection_string): Make
13398 extern.
13399 * target-connection.h (make_target_connection_string): Declare.
13400
13401 2020-01-10 Pedro Alves <palves@redhat.com>
13402
13403 * Makefile.in (COMMON_SFILES): Add target-connection.c.
13404 * inferior.c (uiout_field_connection): New function.
13405 (print_inferior): Add new "connection-id" column.
13406 (add_inferior_command): Show connection number/string of added
13407 inferior.
13408 * process-stratum-target.h
13409 (process_stratum_target::connection_string): New virtual method.
13410 (process_stratum_target::connection_number): New field.
13411 * remote.c (remote_target::connection_string): New override.
13412 * target-connection.c: New file.
13413 * target-connection.h: New file.
13414 * target.c (decref_target): Remove process_stratum targets from
13415 the connection list.
13416 (target_stack::push): Add process_stratum targets to the
13417 connection list.
13418
13419 2020-01-10 Pedro Alves <palves@redhat.com>
13420
13421 Revert:
13422 2016-04-12 Pedro Alves <palves@redhat.com>
13423 * serial.c (serial_open, serial_fdopen_ops, do_serial_close):
13424 Remove references to name.
13425 * serial.h (struct serial) <name>: Delete.
13426
13427 2020-01-10 Pedro Alves <palves@redhat.com>
13428
13429 * gdbarch-selftests.c (register_to_value_test): Remove "target
13430 already pushed" check.
13431
13432 2020-01-10 Pedro Alves <palves@redhat.com>
13433 John Baldwin <jhb@FreeBSD.org>
13434
13435 * aarch64-linux-nat.c
13436 (aarch64_linux_nat_target::thread_architecture): Adjust.
13437 * ada-tasks.c (print_ada_task_info): Adjust find_thread_ptid call.
13438 (task_command_1): Likewise.
13439 * aix-thread.c (sync_threadlists, aix_thread_target::resume)
13440 (aix_thread_target::wait, aix_thread_target::fetch_registers)
13441 (aix_thread_target::store_registers)
13442 (aix_thread_target::thread_alive): Adjust.
13443 * amd64-fbsd-tdep.c: Include "inferior.h".
13444 (amd64fbsd_get_thread_local_address): Pass down target.
13445 * amd64-linux-nat.c (ps_get_thread_area): Use ps_prochandle
13446 thread's gdbarch instead of target_gdbarch.
13447 * break-catch-sig.c (signal_catchpoint_print_it): Adjust call to
13448 get_last_target_status.
13449 * break-catch-syscall.c (print_it_catch_syscall): Likewise.
13450 * breakpoint.c (breakpoints_should_be_inserted_now): Consider all
13451 inferiors.
13452 (update_inserted_breakpoint_locations): Skip if inferiors with no
13453 execution.
13454 (update_global_location_list): When handling moribund locations,
13455 find representative inferior for location's pspace, and use thread
13456 count of its process_stratum target.
13457 * bsd-kvm.c (bsd_kvm_target_open): Pass target down.
13458 * bsd-uthread.c (bsd_uthread_target::wait): Use
13459 as_process_stratum_target and adjust thread_change_ptid and
13460 add_thread calls.
13461 (bsd_uthread_target::update_thread_list): Use
13462 as_process_stratum_target and adjust find_thread_ptid,
13463 thread_change_ptid and add_thread calls.
13464 * btrace.c (maint_btrace_packet_history_cmd): Adjust
13465 find_thread_ptid call.
13466 * corelow.c (add_to_thread_list): Adjust add_thread call.
13467 (core_target_open): Adjust add_thread_silent and thread_count
13468 calls.
13469 (core_target::pid_to_str): Adjust find_inferior_ptid call.
13470 * ctf.c (ctf_target_open): Adjust add_thread_silent call.
13471 * event-top.c (async_disconnect): Pop targets from all inferiors.
13472 * exec.c (add_target_sections): Push exec target on all inferiors
13473 sharing the program space.
13474 (remove_target_sections): Remove the exec target from all
13475 inferiors sharing the program space.
13476 (exec_on_vfork): New.
13477 * exec.h (exec_on_vfork): Declare.
13478 * fbsd-nat.c (fbsd_add_threads): Add fbsd_nat_target parameter.
13479 Pass it down.
13480 (fbsd_nat_target::update_thread_list): Adjust.
13481 (fbsd_nat_target::resume): Adjust.
13482 (fbsd_handle_debug_trap): Add fbsd_nat_target parameter. Pass it
13483 down.
13484 (fbsd_nat_target::wait, fbsd_nat_target::post_attach): Adjust.
13485 * fbsd-tdep.c (fbsd_corefile_thread): Adjust
13486 get_thread_arch_regcache call.
13487 * fork-child.c (gdb_startup_inferior): Pass target down to
13488 startup_inferior and set_executing.
13489 * gdbthread.h (struct process_stratum_target): Forward declare.
13490 (add_thread, add_thread_silent, add_thread_with_info)
13491 (in_thread_list): Add process_stratum_target parameter.
13492 (find_thread_ptid(inferior*, ptid_t)): New overload.
13493 (find_thread_ptid, thread_change_ptid): Add process_stratum_target
13494 parameter.
13495 (all_threads()): Delete overload.
13496 (all_threads, all_non_exited_threads): Add process_stratum_target
13497 parameter.
13498 (all_threads_safe): Use brace initialization.
13499 (thread_count): Add process_stratum_target parameter.
13500 (set_resumed, set_running, set_stop_requested, set_executing)
13501 (threads_are_executing, finish_thread_state): Add
13502 process_stratum_target parameter.
13503 (switch_to_thread): Use is_current_thread.
13504 * i386-fbsd-tdep.c: Include "inferior.h".
13505 (i386fbsd_get_thread_local_address): Pass down target.
13506 * i386-linux-nat.c (i386_linux_nat_target::low_resume): Adjust.
13507 * inf-child.c (inf_child_target::maybe_unpush_target): Remove
13508 have_inferiors check.
13509 * inf-ptrace.c (inf_ptrace_target::create_inferior)
13510 (inf_ptrace_target::attach): Adjust.
13511 * infcall.c (run_inferior_call): Adjust.
13512 * infcmd.c (run_command_1): Pass target to
13513 scoped_finish_thread_state.
13514 (proceed_thread_callback): Skip inferiors with no execution.
13515 (continue_command): Rename 'all_threads' local to avoid hiding
13516 'all_threads' function. Adjust get_last_target_status call.
13517 (prepare_one_step): Adjust set_running call.
13518 (signal_command): Use user_visible_resume_target. Compare thread
13519 pointers instead of inferior_ptid.
13520 (info_program_command): Adjust to pass down target.
13521 (attach_command): Mark target's 'thread_executing' flag.
13522 (stop_current_target_threads_ns): New, factored out from ...
13523 (interrupt_target_1): ... this. Switch inferior before making
13524 target calls.
13525 * inferior-iter.h
13526 (struct all_inferiors_iterator, struct all_inferiors_range)
13527 (struct all_inferiors_safe_range)
13528 (struct all_non_exited_inferiors_range): Filter on
13529 process_stratum_target too. Remove explicit.
13530 * inferior.c (inferior::inferior): Push dummy target on target
13531 stack.
13532 (find_inferior_pid, find_inferior_ptid, number_of_live_inferiors):
13533 Add process_stratum_target parameter, and pass it down.
13534 (have_live_inferiors): Adjust.
13535 (switch_to_inferior_and_push_target): New.
13536 (add_inferior_command, clone_inferior_command): Handle
13537 "-no-connection" parameter. Use
13538 switch_to_inferior_and_push_target.
13539 (_initialize_inferior): Mention "-no-connection" option in
13540 the help of "add-inferior" and "clone-inferior" commands.
13541 * inferior.h: Include "process-stratum-target.h".
13542 (interrupt_target_1): Use bool.
13543 (struct inferior) <push_target, unpush_target, target_is_pushed,
13544 find_target_beneath, top_target, process_target, target_at,
13545 m_stack>: New.
13546 (discard_all_inferiors): Delete.
13547 (find_inferior_pid, find_inferior_ptid, number_of_live_inferiors)
13548 (all_inferiors, all_non_exited_inferiors): Add
13549 process_stratum_target parameter.
13550 * infrun.c: Include "gdb_select.h" and <unordered_map>.
13551 (target_last_proc_target): New global.
13552 (follow_fork_inferior): Push target on new inferior. Pass target
13553 to add_thread_silent. Call exec_on_vfork. Handle target's
13554 reference count.
13555 (follow_fork): Adjust get_last_target_status call. Also consider
13556 target.
13557 (follow_exec): Push target on new inferior.
13558 (struct execution_control_state) <target>: New field.
13559 (user_visible_resume_target): New.
13560 (do_target_resume): Call target_async.
13561 (resume_1): Set target's threads_executing flag. Consider resume
13562 target.
13563 (commit_resume_all_targets): New.
13564 (proceed): Also consider resume target. Skip threads of inferiors
13565 with no execution. Commit resumtion in all targets.
13566 (start_remote): Pass current inferior to wait_for_inferior.
13567 (infrun_thread_stop_requested): Consider target as well. Pass
13568 thread_info pointer to clear_inline_frame_state instead of ptid.
13569 (infrun_thread_thread_exit): Consider target as well.
13570 (random_pending_event_thread): New inferior parameter. Use it.
13571 (do_target_wait): Rename to ...
13572 (do_target_wait_1): ... this. Add inferior parameter, and pass it
13573 down.
13574 (threads_are_resumed_pending_p, do_target_wait): New.
13575 (prepare_for_detach): Adjust calls.
13576 (wait_for_inferior): New inferior parameter. Handle it. Use
13577 do_target_wait_1 instead of do_target_wait.
13578 (fetch_inferior_event): Adjust. Switch to representative
13579 inferior. Pass target down.
13580 (set_last_target_status): Add process_stratum_target parameter.
13581 Save target in global.
13582 (get_last_target_status): Add process_stratum_target parameter and
13583 handle it.
13584 (nullify_last_target_wait_ptid): Clear 'target_last_proc_target'.
13585 (context_switch): Check inferior_ptid == null_ptid before calling
13586 inferior_thread().
13587 (get_inferior_stop_soon): Pass down target.
13588 (wait_one): Rename to ...
13589 (poll_one_curr_target): ... this.
13590 (struct wait_one_event): New.
13591 (wait_one): New.
13592 (stop_all_threads): Adjust.
13593 (handle_no_resumed, handle_inferior_event): Adjust to consider the
13594 event's target.
13595 (switch_back_to_stepped_thread): Also consider target.
13596 (print_stop_event): Update.
13597 (normal_stop): Update. Also consider the resume target.
13598 * infrun.h (wait_for_inferior): Remove declaration.
13599 (user_visible_resume_target): New declaration.
13600 (get_last_target_status, set_last_target_status): New
13601 process_stratum_target parameter.
13602 * inline-frame.c (clear_inline_frame_state(ptid_t)): Add
13603 process_stratum_target parameter, and use it.
13604 (clear_inline_frame_state (thread_info*)): New.
13605 * inline-frame.c (clear_inline_frame_state(ptid_t)): Add
13606 process_stratum_target parameter.
13607 (clear_inline_frame_state (thread_info*)): Declare.
13608 * linux-fork.c (delete_checkpoint_command): Pass target down to
13609 find_thread_ptid.
13610 (checkpoint_command): Adjust.
13611 * linux-nat.c (linux_nat_target::follow_fork): Switch to thread
13612 instead of just tweaking inferior_ptid.
13613 (linux_nat_switch_fork): Pass target down to thread_change_ptid.
13614 (exit_lwp): Pass target down to find_thread_ptid.
13615 (attach_proc_task_lwp_callback): Pass target down to
13616 add_thread/set_running/set_executing.
13617 (linux_nat_target::attach): Pass target down to
13618 thread_change_ptid.
13619 (get_detach_signal): Pass target down to find_thread_ptid.
13620 Consider last target status's target.
13621 (linux_resume_one_lwp_throw, resume_lwp)
13622 (linux_handle_syscall_trap, linux_handle_extended_wait, wait_lwp)
13623 (stop_wait_callback, save_stop_reason, linux_nat_filter_event)
13624 (linux_nat_wait_1, resume_stopped_resumed_lwps): Pass target down.
13625 (linux_nat_target::async_wait_fd): New.
13626 (linux_nat_stop_lwp, linux_nat_target::thread_address_space): Pass
13627 target down.
13628 * linux-nat.h (linux_nat_target::async_wait_fd): Declare.
13629 * linux-tdep.c (get_thread_arch_regcache): Pass target down.
13630 * linux-thread-db.c (struct thread_db_info::process_target): New
13631 field.
13632 (add_thread_db_info): Save target.
13633 (get_thread_db_info): New process_stratum_target parameter. Also
13634 match target.
13635 (delete_thread_db_info): New process_stratum_target parameter.
13636 Also match target.
13637 (thread_from_lwp): Adjust to pass down target.
13638 (thread_db_notice_clone): Pass down target.
13639 (check_thread_db_callback): Pass down target.
13640 (try_thread_db_load_1): Always push the thread_db target.
13641 (try_thread_db_load, record_thread): Pass target down.
13642 (thread_db_target::detach): Pass target down. Always unpush the
13643 thread_db target.
13644 (thread_db_target::wait, thread_db_target::mourn_inferior): Pass
13645 target down. Always unpush the thread_db target.
13646 (find_new_threads_callback, thread_db_find_new_threads_2)
13647 (thread_db_target::update_thread_list): Pass target down.
13648 (thread_db_target::pid_to_str): Pass current inferior down.
13649 (thread_db_target::get_thread_local_address): Pass target down.
13650 (thread_db_target::resume, maintenance_check_libthread_db): Pass
13651 target down.
13652 * nto-procfs.c (nto_procfs_target::update_thread_list): Adjust.
13653 * procfs.c (procfs_target::procfs_init_inferior): Declare.
13654 (proc_set_current_signal, do_attach, procfs_target::wait): Adjust.
13655 (procfs_init_inferior): Rename to ...
13656 (procfs_target::procfs_init_inferior): ... this and adjust.
13657 (procfs_target::create_inferior, procfs_notice_thread)
13658 (procfs_do_thread_registers): Adjust.
13659 * ppc-fbsd-tdep.c: Include "inferior.h".
13660 (ppcfbsd_get_thread_local_address): Pass down target.
13661 * proc-service.c (ps_xfer_memory): Switch current inferior and
13662 program space as well.
13663 (get_ps_regcache): Pass target down.
13664 * process-stratum-target.c
13665 (process_stratum_target::thread_address_space)
13666 (process_stratum_target::thread_architecture): Pass target down.
13667 * process-stratum-target.h
13668 (process_stratum_target::threads_executing): New field.
13669 (as_process_stratum_target): New.
13670 * ravenscar-thread.c
13671 (ravenscar_thread_target::update_inferior_ptid): Pass target down.
13672 (ravenscar_thread_target::wait, ravenscar_add_thread): Pass target
13673 down.
13674 * record-btrace.c (record_btrace_target::info_record): Adjust.
13675 (record_btrace_target::record_method)
13676 (record_btrace_target::record_is_replaying)
13677 (record_btrace_target::fetch_registers)
13678 (get_thread_current_frame_id, record_btrace_target::resume)
13679 (record_btrace_target::wait, record_btrace_target::stop): Pass
13680 target down.
13681 * record-full.c (record_full_wait_1): Switch to event thread.
13682 Pass target down.
13683 * regcache.c (regcache::regcache)
13684 (get_thread_arch_aspace_regcache, get_thread_arch_regcache): Add
13685 process_stratum_target parameter and handle it.
13686 (current_thread_target): New global.
13687 (get_thread_regcache): Add process_stratum_target parameter and
13688 handle it. Switch inferior before calling target method.
13689 (get_thread_regcache): Pass target down.
13690 (get_thread_regcache_for_ptid): Pass target down.
13691 (registers_changed_ptid): Add process_stratum_target parameter and
13692 handle it.
13693 (registers_changed_thread, registers_changed): Pass target down.
13694 (test_get_thread_arch_aspace_regcache): New.
13695 (current_regcache_test): Define a couple local test_target_ops
13696 instances and use them for testing.
13697 (readwrite_regcache): Pass process_stratum_target parameter.
13698 (cooked_read_test, cooked_write_test): Pass mock_target down.
13699 * regcache.h (get_thread_regcache, get_thread_arch_regcache)
13700 (get_thread_arch_aspace_regcache): Add process_stratum_target
13701 parameter.
13702 (regcache::target): New method.
13703 (regcache::regcache, regcache::get_thread_arch_aspace_regcache)
13704 (regcache::registers_changed_ptid): Add process_stratum_target
13705 parameter.
13706 (regcache::m_target): New field.
13707 (registers_changed_ptid): Add process_stratum_target parameter.
13708 * remote.c (remote_state::supports_vCont_probed): New field.
13709 (remote_target::async_wait_fd): New method.
13710 (remote_unpush_and_throw): Add remote_target parameter.
13711 (get_current_remote_target): Adjust.
13712 (remote_target::remote_add_inferior): Push target.
13713 (remote_target::remote_add_thread)
13714 (remote_target::remote_notice_new_inferior)
13715 (get_remote_thread_info): Pass target down.
13716 (remote_target::update_thread_list): Skip threads of inferiors
13717 bound to other targets. (remote_target::close): Don't discard
13718 inferiors. (remote_target::add_current_inferior_and_thread)
13719 (remote_target::process_initial_stop_replies)
13720 (remote_target::start_remote)
13721 (remote_target::remote_serial_quit_handler): Pass down target.
13722 (remote_target::remote_unpush_target): New remote_target
13723 parameter. Unpush the target from all inferiors.
13724 (remote_target::remote_unpush_and_throw): New remote_target
13725 parameter. Pass it down.
13726 (remote_target::open_1): Check whether the current inferior has
13727 execution instead of checking whether any inferior is live. Pass
13728 target down.
13729 (remote_target::remote_detach_1): Pass down target. Use
13730 remote_unpush_target.
13731 (extended_remote_target::attach): Pass down target.
13732 (remote_target::remote_vcont_probe): Set supports_vCont_probed.
13733 (remote_target::append_resumption): Pass down target.
13734 (remote_target::append_pending_thread_resumptions)
13735 (remote_target::remote_resume_with_hc, remote_target::resume)
13736 (remote_target::commit_resume): Pass down target.
13737 (remote_target::remote_stop_ns): Check supports_vCont_probed.
13738 (remote_target::interrupt_query)
13739 (remote_target::remove_new_fork_children)
13740 (remote_target::check_pending_events_prevent_wildcard_vcont)
13741 (remote_target::remote_parse_stop_reply)
13742 (remote_target::process_stop_reply): Pass down target.
13743 (first_remote_resumed_thread): New remote_target parameter. Pass
13744 it down.
13745 (remote_target::wait_as): Pass down target.
13746 (unpush_and_perror): New remote_target parameter. Pass it down.
13747 (remote_target::readchar, remote_target::remote_serial_write)
13748 (remote_target::getpkt_or_notif_sane_1)
13749 (remote_target::kill_new_fork_children, remote_target::kill): Pass
13750 down target.
13751 (remote_target::mourn_inferior): Pass down target. Use
13752 remote_unpush_target.
13753 (remote_target::core_of_thread)
13754 (remote_target::remote_btrace_maybe_reopen): Pass down target.
13755 (remote_target::pid_to_exec_file)
13756 (remote_target::thread_handle_to_thread_info): Pass down target.
13757 (remote_target::async_wait_fd): New.
13758 * riscv-fbsd-tdep.c: Include "inferior.h".
13759 (riscv_fbsd_get_thread_local_address): Pass down target.
13760 * sol2-tdep.c (sol2_core_pid_to_str): Pass down target.
13761 * sol-thread.c (sol_thread_target::wait, ps_lgetregs, ps_lsetregs)
13762 (ps_lgetfpregs, ps_lsetfpregs, sol_update_thread_list_callback):
13763 Adjust.
13764 * solib-spu.c (spu_skip_standalone_loader): Pass down target.
13765 * solib-svr4.c (enable_break): Pass down target.
13766 * spu-multiarch.c (parse_spufs_run): Pass down target.
13767 * spu-tdep.c (spu2ppu_sniffer): Pass down target.
13768 * target-delegates.c: Regenerate.
13769 * target.c (g_target_stack): Delete.
13770 (current_top_target): Return the current inferior's top target.
13771 (target_has_execution_1): Refer to the passed-in inferior's top
13772 target.
13773 (target_supports_terminal_ours): Check whether the initial
13774 inferior was already created.
13775 (decref_target): New.
13776 (target_stack::push): Incref/decref the target.
13777 (push_target, push_target, unpush_target): Adjust.
13778 (target_stack::unpush): Defref target.
13779 (target_is_pushed): Return bool. Adjust to refer to the current
13780 inferior's target stack.
13781 (dispose_inferior): Delete, and inline parts ...
13782 (target_preopen): ... here. Only dispose of the current inferior.
13783 (target_detach): Hold strong target reference while detaching.
13784 Pass target down.
13785 (target_thread_name): Add assertion.
13786 (target_resume): Pass down target.
13787 (target_ops::beneath, find_target_at): Adjust to refer to the
13788 current inferior's target stack.
13789 (get_dummy_target): New.
13790 (target_pass_ctrlc): Pass the Ctrl-C to the first inferior that
13791 has a thread running.
13792 (initialize_targets): Rename to ...
13793 (_initialize_target): ... this.
13794 * target.h: Include "gdbsupport/refcounted-object.h".
13795 (struct target_ops): Inherit refcounted_object.
13796 (target_ops::shortname, target_ops::longname): Make const.
13797 (target_ops::async_wait_fd): New method.
13798 (decref_target): Declare.
13799 (struct target_ops_ref_policy): New.
13800 (target_ops_ref): New typedef.
13801 (get_dummy_target): Declare function.
13802 (target_is_pushed): Return bool.
13803 * thread-iter.c (all_matching_threads_iterator::m_inf_matches)
13804 (all_matching_threads_iterator::all_matching_threads_iterator):
13805 Handle filter target.
13806 * thread-iter.h (struct all_matching_threads_iterator, struct
13807 all_matching_threads_range, class all_non_exited_threads_range):
13808 Filter by target too. Remove explicit.
13809 * thread.c (threads_executing): Delete.
13810 (inferior_thread): Pass down current inferior.
13811 (clear_thread_inferior_resources): Pass down thread pointer
13812 instead of ptid_t.
13813 (add_thread_silent, add_thread_with_info, add_thread): Add
13814 process_stratum_target parameter. Use it for thread and inferior
13815 searches.
13816 (is_current_thread): New.
13817 (thread_info::deletable): Use it.
13818 (find_thread_ptid, thread_count, in_thread_list)
13819 (thread_change_ptid, set_resumed, set_running): New
13820 process_stratum_target parameter. Pass it down.
13821 (set_executing): New process_stratum_target parameter. Pass it
13822 down. Adjust reference to 'threads_executing'.
13823 (threads_are_executing): New process_stratum_target parameter.
13824 Adjust reference to 'threads_executing'.
13825 (set_stop_requested, finish_thread_state): New
13826 process_stratum_target parameter. Pass it down.
13827 (switch_to_thread): Also match inferior.
13828 (switch_to_thread): New process_stratum_target parameter. Pass it
13829 down.
13830 (update_threads_executing): Reimplement.
13831 * top.c (quit_force): Pop targets from all inferior.
13832 (gdb_init): Don't call initialize_targets.
13833 * windows-nat.c (windows_nat_target) <get_windows_debug_event>:
13834 Declare.
13835 (windows_add_thread, windows_delete_thread): Adjust.
13836 (get_windows_debug_event): Rename to ...
13837 (windows_nat_target::get_windows_debug_event): ... this. Adjust.
13838 * tracefile-tfile.c (tfile_target_open): Pass down target.
13839 * gdbsupport/common-gdbthread.h (struct process_stratum_target):
13840 Forward declare.
13841 (switch_to_thread): Add process_stratum_target parameter.
13842 * mi/mi-interp.c (mi_on_resume_1): Add process_stratum_target
13843 parameter. Use it.
13844 (mi_on_resume): Pass target down.
13845 * nat/fork-inferior.c (startup_inferior): Add
13846 process_stratum_target parameter. Pass it down.
13847 * nat/fork-inferior.h (startup_inferior): Add
13848 process_stratum_target parameter.
13849 * python/py-threadevent.c (py_get_event_thread): Pass target down.
13850
13851 2020-01-10 Pedro Alves <palves@redhat.com>
13852
13853 * remote.c (remote_target::start_remote): Don't set inferior_ptid
13854 directly. Instead find the first thread in the thread list and
13855 use switch_to_thread.
13856
13857 2020-01-10 Pedro Alves <palves@redhat.com>
13858
13859 * remote.c (remote_target::remote_add_inferior): Don't bind a
13860 process to the current inferior if the current inferior is already
13861 bound to a process.
13862
13863 2020-01-10 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
13864 Pedro Alves <palves@redhat.com>
13865
13866 * remote.c (remote_target::remote_parse_stop_reply) <W/X packets>:
13867 If no process is specified, return null_ptid instead of
13868 inferior_ptid.
13869 (remote_target::wait_as): Handle TARGET_WAITKIND_EXITED /
13870 TARGET_WAITKIND_SIGNALLED with no pid.
13871
13872 2020-01-10 Pedro Alves <palves@redhat.com>
13873
13874 * remote.c (first_remote_resumed_thread): New.
13875 (remote_target::wait_as): Use it as default event_ptid instead of
13876 inferior_ptid.
13877
13878 2020-01-10 Pedro Alves <palves@redhat.com>
13879
13880 * infrun.c (handle_no_resumed): Use all_non_exited_inferiors.
13881
13882 2020-01-10 Pedro Alves <palves@redhat.com>
13883
13884 * tracefile-tfile.c (tfile_target::close): Assert that trace_fd is
13885 not -1.
13886
13887 2020-01-10 Pedro Alves <palves@redhat.com>
13888
13889 * break-catch-sig.c (signal_catchpoint_print_it): Don't pass a
13890 ptid to get_last_target_status.
13891 * break-catch-syscall.c (print_it_catch_syscall): Don't pass a
13892 ptid to get_last_target_status.
13893 * infcmd.c (continue_command): Don't pass a target_waitstatus to
13894 get_last_target_status.
13895 (info_program_command): Don't pass a target_waitstatus to
13896 get_last_target_status.
13897 * infrun.c (init_wait_for_inferior): Use
13898 nullify_last_target_wait_ptid.
13899 (get_last_target_status): Handle nullptr arguments.
13900 (nullify_last_target_wait_ptid): Clear target_last_waitstatus.
13901 (print_stop_event): Don't pass a ptid to get_last_target_status.
13902 (normal_stop): Don't pass a ptid to get_last_target_status.
13903 * infrun.h (get_last_target_status, set_last_target_status): Move
13904 comments here and update.
13905 (nullify_last_target_wait_ptid): Declare.
13906 * linux-fork.c (fork_load_infrun_state): Remove local extern
13907 declaration of nullify_last_target_wait_ptid.
13908 * linux-nat.c (get_detach_signal): Don't pass a target_waitstatus
13909 to get_last_target_status.
13910
13911 2020-01-10 Pedro Alves <palves@redhat.com>
13912
13913 * gdbthread.h (scoped_restore_current_thread)
13914 <dont_restore, restore, m_dont_restore>: Declare.
13915 * thread.c (thread_alive): Add assertion. Return bool.
13916 (switch_to_thread_if_alive): New.
13917 (prune_threads): Switch inferior/thread.
13918 (print_thread_info_1): Switch thread before calling target methods.
13919 (scoped_restore_current_thread::restore): New, factored out from
13920 ...
13921 (scoped_restore_current_thread::~scoped_restore_current_thread):
13922 ... this.
13923 (scoped_restore_current_thread::scoped_restore_current_thread):
13924 Add assertion.
13925 (thread_apply_all_command, thread_select): Use
13926 switch_to_thread_if_alive.
13927 * infrun.c (proceed, restart_threads, handle_signal_stop)
13928 (switch_back_to_stepped_thread): Switch current thread before
13929 calling target methods.
13930
13931 2020-01-10 Pedro Alves <palves@redhat.com>
13932
13933 * inferior.c (switch_to_inferior_no_thread): New function,
13934 factored out from ...
13935 (inferior_command): ... here.
13936 * inferior.h (switch_to_inferior_no_thread): Declare.
13937 * mi/mi-main.c (run_one_inferior): Use
13938 switch_to_inferior_no_thread.
13939
13940 2020-01-10 Pedro Alves <palves@redhat.com>
13941
13942 * infcmd.c (kill_command): Remove dead code.
13943
13944 2020-01-10 Pedro Alves <palves@redhat.com>
13945
13946 * remote.c (remote_target::mourn_inferior): No longer check
13947 whether the target is running.
13948
13949 2020-01-10 Pedro Alves <palves@redhat.com>
13950
13951 * corelow.c (core_target::has_execution): Change parameter type to
13952 inferior pointer.
13953 * inferior.c (number_of_live_inferiors): Use
13954 inferior::has_execution instead of target_has_execution_1.
13955 * inferior.h (inferior::has_execution): New.
13956 * linux-thread-db.c (thread_db_target::update_thread_list): Use
13957 inferior::has_execution instead of target_has_execution_1.
13958 * process-stratum-target.c
13959 (process_stratum_target::has_execution): Change parameter type to
13960 inferior pointer. Check the inferior's PID instead of
13961 inferior_ptid.
13962 * process-stratum-target.h
13963 (process_stratum_target::has_execution): Change parameter type to
13964 inferior pointer.
13965 * record-full.c (record_full_core_target::has_execution): Change
13966 parameter type to inferior pointer.
13967 * target.c (target_has_execution_1): Change parameter type to
13968 inferior pointer.
13969 (target_has_execution_current): Adjust.
13970 * target.h (target_ops::has_execution): Change parameter type to
13971 inferior pointer.
13972 (target_has_execution_1): Change parameter type to inferior
13973 pointer. Change return type to bool.
13974 * tracefile.h (tracefile_target::has_execution): Change parameter
13975 type to inferior pointer.
13976
13977 2020-01-10 Pedro Alves <palves@redhat.com>
13978
13979 * exceptions.c (print_flush): Remove current_top_target() check.
13980
13981 2020-01-10 Pedro Alves <palves@redhat.com>
13982
13983 * remote.c (show_remote_exec_file): Show the current inferior's
13984 exec-file instead of the command variable's value.
13985
13986 2020-01-10 Pedro Alves <palves@redhat.com>
13987
13988 * record-full.c (record_full_resume_ptid): New global.
13989 (record_full_target::resume): Set it.
13990 (record_full_wait_1): Use record_full_resume_ptid instead of
13991 inferior_ptid.
13992
13993 2020-01-10 Pedro Alves <palves@redhat.com>
13994
13995 * gdbthread.h (scoped_restore_current_thread)
13996 <dont_restore, restore, m_dont_restore>: Declare.
13997 * thread.c (thread_alive): Add assertion. Return bool.
13998 (switch_to_thread_if_alive): New.
13999 (prune_threads): Switch inferior/thread.
14000 (print_thread_info_1): Switch thread before calling target methods.
14001 (scoped_restore_current_thread::restore): New, factored out from
14002 ...
14003 (scoped_restore_current_thread::~scoped_restore_current_thread):
14004 ... this.
14005 (scoped_restore_current_thread::scoped_restore_current_thread):
14006 Add assertion.
14007 (thread_apply_all_command, thread_select): Use
14008 switch_to_thread_if_alive.
14009
14010 2020-01-10 George Barrett <bob@bob131.so>
14011
14012 * stap-probe.c (stap_modify_semaphore): Don't check for null
14013 semaphores.
14014 (stap_probe::set_semaphore, stap_probe::clear_semaphore): Check
14015 for null semaphores.
14016
14017 2020-01-09 Andrew Burgess <andrew.burgess@embecosm.com>
14018
14019 * tui/tui-source.c (tui_source_window::do_scroll_vertical): Update
14020 all source windows, and maintain horizontal scroll status while
14021 doing so.
14022
14023 2020-01-09 Tom Tromey <tom@tromey.com>
14024
14025 PR tui/18932:
14026 * tui/tui-source.c (tui_source_window::do_scroll_vertical): Call
14027 update_source_window, not print_source_lines.
14028
14029 2020-01-09 Andrew Burgess <andrew.burgess@embecosm.com>
14030
14031 * tui/tui.c (tui_enable): Register tui hooks after calling
14032 tui_display_main.
14033
14034 2020-01-09 Christian Biesinger <cbiesinger@google.com>
14035
14036 * gdbsupport/common-defs.h: Don't define _FORTIFY_SOURCE on MinGW.
14037
14038 2020-01-08 Simon Marchi <simon.marchi@efficios.com>
14039
14040 * thread.c (print_thread_info_1): Fix indentation.
14041
14042 2020-01-09 Christian Biesinger <cbiesinger@google.com>
14043
14044 * symtab.c (general_symbol_info::compute_and_set_names): Move the
14045 unique_xmalloc_ptr outside the if to always free the demangled name.
14046
14047 2020-01-08 Tom Tromey <tromey@adacore.com>
14048
14049 * xcoffread.c (enter_line_range, read_xcoff_symtab)
14050 (process_xcoff_symbol, xcoff_symfile_offsets): Update.
14051 * symtab.h (MSYMBOL_VALUE_ADDRESS): Update.
14052 (struct section_offsets, ANOFFSET, SIZEOF_N_SECTION_OFFSETS):
14053 Remove.
14054 (section_offsets): New typedef.
14055 * symtab.c (fixup_section, get_msymbol_address): Update.
14056 * symmisc.c (dump_msymbols): Update.
14057 * symfile.h (relative_addr_info_to_section_offsets)
14058 (symfile_map_offsets_to_segments): Update.
14059 * symfile.c (build_section_addr_info_from_objfile)
14060 (init_objfile_sect_indices): Update.
14061 (struct place_section_arg): Change type of "offsets".
14062 (place_section): Update.
14063 (relative_addr_info_to_section_offsets): Change type of
14064 "section_offsets". Remove "num_sections" parameter.
14065 (default_symfile_offsets, syms_from_objfile_1)
14066 (set_objfile_default_section_offset): Update.
14067 (reread_symbols): No need to preserve section offsets by hand.
14068 (symfile_map_offsets_to_segments): Change type of "offsets".
14069 * stap-probe.c (relocate_address): Update.
14070 * stabsread.h (process_one_symbol): Update.
14071 * solib-target.c (struct lm_info_target) <offsets>: Change type.
14072 (solib_target_relocate_section_addresses): Update.
14073 * solib-svr4.c (enable_break, svr4_relocate_main_executable):
14074 Update.
14075 * solib-frv.c (frv_relocate_main_executable): Update.
14076 * solib-dsbt.c (dsbt_relocate_main_executable): Update.
14077 * solib-aix.c (solib_aix_get_section_offsets): Change return
14078 type.
14079 (solib_aix_solib_create_inferior_hook): Update.
14080 * remote.c (remote_target::get_offsets): Update.
14081 * psymtab.c (find_pc_sect_psymtab): Update.
14082 * psympriv.h (struct partial_symbol) <address, text_low,
14083 text_high>: Update.
14084 * objfiles.h (obj_section_offset): Update.
14085 (struct objfile) <section_offsets>: Change type.
14086 <num_sections>: Remove.
14087 (objfile_relocate): Update.
14088 * objfiles.c (entry_point_address_query): Update
14089 (relocate_one_symbol): Change type of "section_offsets".
14090 (objfile_relocate1, objfile_relocate1): Change type of
14091 "new_offsets".
14092 (objfile_rebase1): Update.
14093 * mipsread.c (mipscoff_symfile_read): Update.
14094 (read_alphacoff_dynamic_symtab): Remove "section_offsets"
14095 parameter.
14096 * mdebugread.c (parse_symbol): Change type of "section_offsets".
14097 (parse_external, psymtab_to_symtab_1): Update.
14098 * machoread.c (macho_symfile_offsets): Update.
14099 * ia64-tdep.c (ia64_find_unwind_table): Update.
14100 * hppa-tdep.c (read_unwind_info): Update.
14101 * hppa-bsd-tdep.c (hppabsd_find_global_pointer): Update.
14102 * dwarf2read.c (create_addrmap_from_index)
14103 (create_addrmap_from_aranges, dw2_find_pc_sect_compunit_symtab)
14104 (process_psymtab_comp_unit_reader, add_partial_symbol)
14105 (add_partial_subprogram, process_full_comp_unit)
14106 (read_file_scope, read_func_scope, read_lexical_block_scope)
14107 (read_call_site_scope, dwarf2_rnglists_process)
14108 (dwarf2_ranges_process, dwarf2_ranges_read)
14109 (dwarf_decode_lines_1, var_decode_location, new_symbol)
14110 (dwarf2_fetch_die_loc_sect_off, dwarf2_per_cu_text_offset):
14111 Update.
14112 * dwarf2-frame.c (execute_cfa_program, dwarf2_frame_find_fde):
14113 Update.
14114 * dtrace-probe.c (dtrace_probe::get_relocated_address): Update.
14115 * dbxread.c (read_dbx_symtab, read_ofile_symtab): Update.
14116 (process_one_symbol): Change type of "section_offsets".
14117 * ctfread.c (get_objfile_text_range): Update.
14118 * coffread.c (coff_symtab_read, enter_linenos)
14119 (process_coff_symbol): Update.
14120 * coff-pe-read.c (add_pe_forwarded_sym): Update.
14121 * amd64-windows-tdep.c (amd64_windows_find_unwind_info): Update.
14122
14123 2020-01-08 Tom Tromey <tromey@adacore.com>
14124
14125 * dwarf2read.c (parse_macro_definition): Use std::string.
14126 (parse_macro_definition): Likewise.
14127
14128 2020-01-08 Tom Tromey <tromey@adacore.com>
14129
14130 * dwarf2read.c (abbrev_table_read_table): Use std::vector.
14131 (ATTR_ALLOC_CHUNK): Remove.
14132
14133 2020-01-08 Tom Tromey <tromey@adacore.com>
14134
14135 * dwarf2read.c (fixup_go_packaging): Use unique_xmalloc_ptr.
14136
14137 2020-01-08 Tom Tromey <tromey@adacore.com>
14138
14139 * dwarf2read.c (add_partial_symbol): Use unique_xmalloc_ptr.
14140 (dwarf2_compute_name, open_dwo_file): Likewise.
14141 (process_enumeration_scope): Use std::vector.
14142 (guess_partial_die_structure_name): Use unique_xmalloc_ptr.
14143 (partial_die_info::fixup, dwarf2_start_subfile)
14144 (guess_full_die_structure_name, dwarf2_name): Likewise.
14145 (determine_prefix): Update.
14146 (guess_full_die_structure_name): Make return type const.
14147 (partial_die_full_name): Return unique_xmalloc_ptr.
14148 (DW_FIELD_ALLOC_CHUNK): Remove.
14149
14150 2020-01-07 Tom Tromey <tromey@adacore.com>
14151
14152 PR build/24937:
14153 * stap-probe.c (class stap_static_probe_ops): Add constructor.
14154
14155 2020-01-02 Jon Turney <jon.turney@dronecode.org.uk>
14156
14157 * cli/cli-style.c: Set cli_styling to 'true' in the Cygwin build.
14158
14159 2020-01-06 Andrew Burgess <andrew.burgess@embecosm.com>
14160
14161 * stack.c (print_frame_info): Move disassemble_next_line code
14162 inside source_print block.
14163
14164 2020-01-06 Eli Zaretskii <eliz@gnu.org>
14165
14166 * gdbsupport/gdb_wait.c: Include <signal.h> instead of
14167 gdb/signals.h, as we are now using native signal symbols.
14168
14169 2020-01-06 Shahab Vahedi <shahab@synopsys.com>
14170
14171 * tui/tui-disasm.c (tui_disasm_window::addr_is_displayed): Avoid
14172 overflow by an early check of content vs threshold.
14173 * tui/tui-source.c (tui_source_window::line_is_displayed):
14174 Likewise.
14175
14176 2020-01-06 Eli Zaretskii <eliz@gnu.org>
14177
14178 * NEWS: Mention the recent fix of $_exitsignal on MS-Windows.
14179
14180 2020-01-02 Jon Turney <jon.turney@dronecode.org.uk>
14181
14182 * coff-pe-read.c (read_pe_exported_syms): Don't try to read the
14183 export table if no section contains it's RVA.
14184
14185 2020-01-06 Eli Zaretskii <eliz@gnu.org>
14186
14187 * windows-tdep.c: Fix a typo in WINDOWS_SIGABRT.
14188
14189 2020-01-06 Hannes Domani <ssbssa@yahoo.de>
14190
14191 * source.c (print_source_lines_base): Set last_line_listed.
14192
14193 2020-01-06 Shahab Vahedi <shahab@synopsys.com>
14194
14195 * tui/tui-disasm.c: Remove trailing spaces.
14196
14197 2020-01-06 Eli Zaretskii <eliz@gnu.org>
14198 Pedro Alves <palves@redhat.com>
14199
14200 * Makefile.in (COMMON_SFILES): Add gdbsupport/gdb_wait.c.
14201 * windows-tdep.c: New enumeration of WINDOWS_SIG* signals.
14202 (windows_gdb_signal_to_target): New function, uses the above
14203 enumeration to convert GDB internal signal codes to equivalent
14204 Windows codes.
14205 (windows_init_abi): Call set_gdbarch_gdb_signal_to_target.
14206 * windows-nat.c: Include "gdb_wait.h".
14207 (get_windows_debug_event): Extract the fatal exception from the
14208 exit status and convert to the equivalent Posix signal number.
14209 * cli/cli-cmds.c (exit_status_set_internal_vars): Account for the
14210 possibility that WTERMSIG returns GDB_SIGNAL_UNKNOWN.
14211 * gdbsupport/gdb_wait.c: New file, implements
14212 windows_status_to_termsig.
14213 * gdbsupport/gdb_wait.h (WIFEXITED, WIFSIGNALED, WEXITSTATUS)
14214 (WTERMSIG) [__MINGW32__]: Separate definitions for MinGW.
14215
14216 2020-01-05 Andrew Burgess <andrew.burgess@embecosm.com>
14217
14218 * tui/tui-layout.c (tui_add_win_to_layout): Use tui_set_layout not
14219 show_layout.
14220
14221 2020-01-05 Luis Machado <luis.machado@linaro.org>
14222
14223 * aarch64-linux-nat.c
14224 (aarch64_linux_nat_target::thread_architecture): Use bfd_arch_aarch64
14225 and bfd_mach_aarch64.
14226
14227 2020-01-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
14228
14229 * ui-file.c (stdio_file::can_emit_style_escape)
14230 (tee_file::can_emit_style_escape): Ensure style is used also on
14231 gdb_stderr when gdb_stderr is a tty supporting styling, similarly
14232 to gdb_stdout.
14233 * main.c (set_gdb_data_directory): Use file style to output the
14234 warning that the given pathname is not a directory.
14235 * top.c (show_history_filename, gdb_safe_append_history)
14236 (show_gdb_datadir): Use file style.
14237
14238 2020-01-03 Hannes Domani <ssbssa@yahoo.de>
14239
14240 * solib-target.c (struct lm_info_target):
14241 Change offsets to be a unique_xmalloc_ptr.
14242 (solib_target_relocate_section_addresses): Update.
14243
14244 2020-01-03 Hannes Domani <ssbssa@yahoo.de>
14245
14246 * windows-nat.c (windows_clear_solib): Free so_list linked list.
14247
14248 2020-01-03 Bernd Edlinger <bernd.edlinger@hotmail.de>
14249
14250 * MAINTAINERS (Write After Approval): Add myself.
14251
14252 2020-01-02 Luis Machado <luis.machado@linaro.org>
14253
14254 * proc-service.c (get_ps_regcache): Remove reference to obsolete
14255 Cell BE architecture.
14256 * target.h (struct target_ops) <thread_architecture>: Likewise.
14257
14258 2020-01-01 Hannes Domani <ssbssa@yahoo.de>
14259
14260 * Makefile.in: Use INSTALL_PROGRAM_ENV.
14261
14262 2020-01-01 Hannes Domani <ssbssa@yahoo.de>
14263
14264 * MAINTAINERS (Write After Approval): Add myself.
14265
14266 2020-01-01 Joel Brobecker <brobecker@adacore.com>
14267
14268 * gdbarch.sh: Update copyright year range of generated files.
14269
14270 2020-01-01 Joel Brobecker <brobecker@adacore.com>
14271
14272 Update copyright year range in all GDB files.
14273
14274 2020-01-01 Joel Brobecker <brobecker@adacore.com>
14275
14276 * copyright.py: Convert to Python 3.
14277
14278 2020-01-01 Joel Brobecker <brobecker@adacore.com>
14279
14280 * copyright.py: Adapt after move of gnulib directory from gdb
14281 directory to toplevel directory.
14282
14283 2020-01-01 Joel Brobecker <brobecker@adacore.com>
14284
14285 * copyright.py (main): Exit if run from the wrong directory.
14286
14287 2020-01-01 Joel Brobecker <brobecker@adacore.com>
14288
14289 * top.c (print_gdb_version): Change copyright year to 2020.
14290
14291 2020-01-01 Joel Brobecker <brobecker@adacore.com>
14292
14293 * config/djgpp/fnchange.lst: Add entry for gdb/ChangeLog-2019.
14294
14295 For older changes see ChangeLog-2019.
14296 \f
14297 Local Variables:
14298 mode: change-log
14299 left-margin: 8
14300 fill-column: 74
14301 version-control: never
14302 coding: utf-8
14303 End:
This page took 0.326514 seconds and 4 git commands to generate.