Remove some manual memory management from compile interface
[deliverable/binutils-gdb.git] / gdb / ChangeLog
1 2020-09-23 Tom Tromey <tom@tromey.com>
2
3 * compile/compile-cplus-types.c
4 (compile_cplus_convert_struct_or_union): Use std::vector.
5 (compile_cplus_convert_func): Likewise.
6 * compile/compile-c-types.c (convert_func): Use std::vector.
7
8 2020-09-21 Tom Tromey <tromey@adacore.com>
9
10 * sparc-tdep.c (sparc32_skip_prologue): Use
11 skip_prologue_using_sal.
12
13 2020-09-19 Tom Tromey <tom@tromey.com>
14
15 * symfile.c (add_section_size_callback): Remove.
16 (load_one_section): Rename from load_section_callback. Change
17 parameters.
18 (generic_load): Use foreach.
19
20 2020-09-19 Tom Tromey <tom@tromey.com>
21
22 * exec.c (add_to_section_table): Remove.
23 (build_section_table): Use foreach.
24
25 2020-09-19 Tom Tromey <tom@tromey.com>
26
27 * elfread.c (elf_locate_sections): Change parameters.
28 (elf_symfile_read): Use foreach.
29
30 2020-09-19 Tom Tromey <tom@tromey.com>
31
32 * cli/cli-dump.c (struct callback_data): Remove.
33 (restore_one_section): Rename from restore_section_callback.
34 Change parameters.
35 (restore_binary_file): Change parameters.
36 (restore_command): Use foreach.
37
38 2020-09-19 Tom Tromey <tom@tromey.com>
39
40 * gcore.c (make_output_phdrs): Remove 'ignored' parameter.
41 (gcore_copy_callback): Likewise.
42 (gcore_memory_sections): Use foreach.
43
44 2020-09-19 Tom Tromey <tom@tromey.com>
45
46 * osabi.h (generic_elf_osabi_sniff_abi_tag_sections): Update.
47 * osabi.c (generic_elf_osabi_sniff_abi_tag_sections): Change
48 parameters.
49 (generic_elf_osabi_sniffer): Use foreach.
50 * mips-sde-tdep.c (mips_sde_elf_osabi_sniffer): Use foreach.
51 * arm-tdep.c (arm_elf_osabi_sniffer): Use foreach.
52
53 2020-09-19 Tom Tromey <tom@tromey.com>
54
55 * dwarf2/read.c (locate_dwz_sections): Change parameters.
56 (dwarf2_get_dwz_file): Use foreach.
57 (dwarf2_locate_dwo_sections): Change parameters.
58 (open_and_init_dwo_file): Use foreach.
59 (dwarf2_locate_common_dwp_sections): Change parameters.
60 (open_and_init_dwp_file): Use foreach.
61
62 2020-09-19 Tom Tromey <tom@tromey.com>
63
64 * symfile.h: (find_lowest_section): Don't declare.
65 * symfile.c (find_lowest_section): Now static. Change
66 parameters.
67 (struct place_section_arg): Remove.
68 (place_section): Change parameters.
69 (addr_info_make_relative): Use foreach.
70 (symfile_dummy_outputs): Remove.
71 (default_symfile_relocate): Use foreach.
72
73 2020-09-19 Tom Tromey <tom@tromey.com>
74
75 * objfiles.c (add_to_objfile_sections): Rename from
76 add_to_objfile_sections_full.
77 (add_to_objfile_sections): Remove.
78 (build_objfile_section_table): Use foreach.
79
80 2020-09-19 Tom Tromey <tom@tromey.com>
81
82 * stap-probe.c (get_stap_base_address_1): Remove.
83 (get_stap_base_address): Use foreach.
84
85 2020-09-19 Tom Tromey <tom@tromey.com>
86
87 * gdb_bfd.c (free_one_bfd_section): Remove 'abfd' and 'ignore'
88 parameters.
89 (gdb_bfd_close_or_warn): Use foreach.
90
91 2020-09-19 Tom Tromey <tom@tromey.com>
92
93 * corelow.c (add_to_thread_list): Change parameters.
94 (core_target_open): Use foreach.
95
96 2020-09-19 Tom Tromey <tom@tromey.com>
97
98 * gdb_bfd.h (gdb_bfd_sections): New overload. Fix formatting of
99 existing function.
100
101 2020-09-19 Andrew Burgess <andrew.burgess@embecosm.com>
102
103 * f-valprint.c (f77_print_array_1): Adjust printing of whitespace
104 for arrays.
105
106 2020-09-19 Andrew Burgess <andrew.burgess@embecosm.com>
107
108 * eval.c: Remove 'f-lang.h' include.
109 (value_f90_subarray): Moved to f-lang.c.
110 (eval_call): Renamed to...
111 (evaluate_subexp_do_call): ...this, is no longer static, header
112 comment moved into header file.
113 (evaluate_funcall): Update call to eval_call.
114 (skip_undetermined_arglist): Moved to f-lang.c.
115 (fortran_value_subarray): Likewise.
116 (evaluate_subexp_standard): OP_F77_UNDETERMINED_ARGLIST handling
117 moved to evaluate_subexp_f.
118 (calc_f77_array_dims): Moved to f-lang.c
119 * expprint.c (print_subexp_funcall): New function.
120 (print_subexp_standard): OP_F77_UNDETERMINED_ARGLIST handling
121 moved to print_subexp_f, OP_FUNCALL uses new function.
122 (dump_subexp_body_funcall): New function.
123 (dump_subexp_body_standard): OP_F77_UNDETERMINED_ARGLIST handling
124 moved to dump_subexp_f, OP_FUNCALL uses new function.
125 * expression.h (evaluate_subexp_do_call): Declare.
126 * f-lang.c (value_f90_subarray): Moved from eval.c.
127 (skip_undetermined_arglist): Likewise.
128 (calc_f77_array_dims): Likewise.
129 (fortran_value_subarray): Likewise.
130 (evaluate_subexp_f): Add OP_F77_UNDETERMINED_ARGLIST support.
131 (operator_length_f): Likewise.
132 (print_subexp_f): Likewise.
133 (dump_subexp_body_f): Likewise.
134 * fortran-operator.def (OP_F77_UNDETERMINED_ARGLIST): Move
135 declaration of this operation to here.
136 * parse.c (operator_length_standard): OP_F77_UNDETERMINED_ARGLIST
137 support moved to operator_length_f.
138 * parser-defs.h (dump_subexp_body_funcall): Declare.
139 (print_subexp_funcall): Declare.
140 * std-operator.def (OP_F77_UNDETERMINED_ARGLIST): Moved to
141 fortran-operator.def.
142
143 2020-09-19 Andrew Burgess <andrew.burgess@embecosm.com>
144
145 * eval.c (fortran_value_subarray): New function, content is taken
146 from...
147 (evaluate_subexp_standard): ...here, in two places. Now arrays
148 and strings both call the new function.
149 (calc_f77_array_dims): Add header comment, handle strings.
150
151 2020-09-18 Victor Collod <vcollod@nvidia.com>
152
153 PR gdb/26635
154 * i386-tdep.c (i386_skip_endbr): Add a helper function to skip endbr.
155 (i386_analyze_prologue): Call i386_skip_endbr.
156
157 2020-09-18 Tom Tromey <tromey@adacore.com>
158
159 * windows-nat.c (struct windows_nat_target) <wait>: Update.
160 (windows_nat_target::wait): Update.
161 * target/wait.h (enum target_wait_flag): New. Use
162 DEF_ENUM_FLAGS_TYPE.
163 * target/target.h (target_wait): Change type of options.
164 * target.h (target_options_to_string, default_target_wait):
165 Update.
166 (struct target_ops) <wait>: Change type of options.
167 * target.c (target_wait, default_target_wait, do_option): Change
168 type of "options".
169 (target_options_to_string): Likewise.
170 * target-delegates.c: Rebuild.
171 * target-debug.h (target_debug_print_target_wait_flags): Rename
172 from target_debug_print_options.
173 * sol-thread.c (class sol_thread_target) <wait>: Update.
174 (sol_thread_target::wait): Update.
175 * rs6000-nat.c (class rs6000_nat_target) <wait>: Update.
176 (rs6000_nat_target::wait): Update.
177 * remote.c (class remote_target) <wait, wait_ns, wait_as>:
178 Update.
179 (remote_target::wait_ns, remote_target::wait_as): Change type of
180 "options".
181 (remote_target::wait): Update.
182 * remote-sim.c (struct gdbsim_target) <wait>: Update.
183 (gdbsim_target::wait): Update.
184 * record-full.c (class record_full_base_target) <wait>: Update.
185 (record_full_wait_1): Change type of "options".
186 (record_full_base_target::wait): Update.
187 * record-btrace.c (class record_btrace_target) <wait>: Update.
188 (record_btrace_target::wait): Update.
189 * ravenscar-thread.c (struct ravenscar_thread_target) <wait>:
190 Update.
191 (ravenscar_thread_target::wait): Update.
192 * procfs.c (class procfs_target) <wait>: Update.
193 (procfs_target::wait): Update.
194 * obsd-nat.h (class obsd_nat_target) <wait>: Update.
195 * obsd-nat.c (obsd_nat_target::wait): Update.
196 * nto-procfs.c (struct nto_procfs_target) <wait>: Update.
197 (nto_procfs_target::wait): Update.
198 * nbsd-nat.h (struct nbsd_nat_target) <wait>: Update.
199 * nbsd-nat.c (nbsd_wait): Change type of "options".
200 (nbsd_nat_target::wait): Update.
201 * linux-thread-db.c (class thread_db_target) <wait>: Update.
202 (thread_db_target::wait): Update.
203 * linux-nat.h (class linux_nat_target) <wait>: Update.
204 * linux-nat.c (linux_nat_target::wait): Update.
205 (linux_nat_wait_1): Update.
206 * infrun.c (do_target_wait_1, do_target_wait): Change type of
207 "options".
208 * inf-ptrace.h (struct inf_ptrace_target) <wait>: Update.
209 * inf-ptrace.c (inf_ptrace_target::wait): Update.
210 * go32-nat.c (struct go32_nat_target) <wait>: Update.
211 (go32_nat_target::wait): Update.
212 * gnu-nat.h (struct gnu_nat_target) <wait>: Update.
213 * gnu-nat.c (gnu_nat_target::wait): Update.
214 * fbsd-nat.h (class fbsd_nat_target) <wait>: Update.
215 * fbsd-nat.c (fbsd_nat_target::wait): Update.
216 * darwin-nat.h (class darwin_nat_target) <wait>: Update.
217 * darwin-nat.c (darwin_nat_target::wait): Update.
218 * bsd-uthread.c (struct bsd_uthread_target) <wait>: Update.
219 (bsd_uthread_target::wait): Update.
220 * aix-thread.c (class aix_thread_target) <wait>: Update.
221 (aix_thread_target::wait): Update.
222
223 2020-09-18 Andrew Burgess <andrew.burgess@embecosm.com>
224
225 * compile/compile-object-run.c (create_copied_type_recursive): New
226 function.
227 (compile_object_run): Use new function.
228
229 2020-08-21 Jon Turney <jon.turney@dronecode.org.uk>
230
231 * NEWS: Mention x86_64 Cygwin core file support.
232
233 2020-07-01 Jon Turney <jon.turney@dronecode.org.uk>
234
235 * windows-tdep.c (NOTE_INFO_MODULE, NOTE_INFO_MODULE64): Define.
236 (core_process_module_section): Handle NOTE_INFO_MODULE64.
237
238 2020-07-01 Jon Turney <jon.turney@dronecode.org.uk>
239
240 * windows-tdep.h: Add prototypes.
241 * i386-windows-tdep.c(windows_core_xfer_shared_libraries): Move.
242 (i386_windows_core_pid_to_str): Move and rename ...
243 * windows-tdep.c (windows_core_xfer_shared_libraries): ... to here
244 (windows_core_pid_to_str): ... and here.
245 * amd64-windows-tdep.c (amd64_windows_init_abi_common): Register here.
246
247 2020-07-01 Jon Turney <jon.turney@dronecode.org.uk>
248 * amd64-windows-tdep.c(amd64_windows_gregset_reg_offset): Add.
249 (amd64_windows_init_abi_common): ... and register.
250
251 2020-07-01 Jon Turney <jon.turney@dronecode.org.uk>
252
253 * amd64-windows-tdep.c (amd64_cygwin_core_osabi_sniffer): New.
254 (_initialize_amd64_windows_tdep): Register amd64_cygwin_core_osabi_sniffer.
255
256 2020-09-18 Pedro Alves <pedro@palves.net>
257
258 PR gdb/26631
259 * thread.c (thread_find_command): Switch inferior before calling
260 target methods.
261
262 2020-09-17 Tom Tromey <tromey@adacore.com>
263
264 * tic6x-tdep.c (tic6x_gdbarch_init): Update.
265 * target-descriptions.h (struct tdesc_arch_data_deleter): New.
266 (tdesc_arch_data_up): New typedef.
267 (tdesc_use_registers, tdesc_data_alloc): Update.
268 (tdesc_data_cleanup): Don't declare.
269 * target-descriptions.c (tdesc_data_alloc): Return a
270 tdesc_arch_data_up.
271 (tdesc_arch_data_deleter::operator()): Rename from
272 tdesc_data_cleanup. Change argument type.
273 (tdesc_use_registers): Change early_data to an rvalue reference.
274 (tdesc_use_registers): Don't use delete.
275 * sparc-tdep.c (sparc32_gdbarch_init): Update.
276 * s390-tdep.c (s390_gdbarch_init): Update.
277 * rx-tdep.c (rx_gdbarch_init): Update.
278 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
279 * riscv-tdep.c (riscv_gdbarch_init): Update.
280 * or1k-tdep.c (or1k_gdbarch_init): Update.
281 * nios2-tdep.c (nios2_gdbarch_init): Update.
282 * nds32-tdep.c (nds32_gdbarch_init): Update.
283 * mips-tdep.c (mips_gdbarch_init): Update.
284 * microblaze-tdep.c (microblaze_gdbarch_init): Update.
285 * m68k-tdep.c (m68k_gdbarch_init): Update.
286 * i386-tdep.c (i386_gdbarch_init): Update.
287 * arm-tdep.c (arm_gdbarch_init): Update.
288 * arc-tdep.c (arc_tdesc_init): Update.
289 (arc_gdbarch_init): Update.
290 * aarch64-tdep.c (aarch64_gdbarch_init): Update.
291
292 2020-09-17 Hannes Domani <ssbssa@yahoo.de>
293
294 * windows-nat.c (ctrl_c_handler): Use 32bit DbgUiRemoteBreakin
295 for WOW64 processes.
296
297 2020-09-17 Tom Tromey <tom@tromey.com>
298
299 * dwarf2/read.c (compute_compunit_symtab_includes): Use htab_up.
300
301 2020-09-17 Tom Tromey <tom@tromey.com>
302
303 * value.c (preserve_values): Update.
304 * python/py-type.c (save_objfile_types): Update.
305 * guile/scm-type.c (save_objfile_types): Update.
306 * gdbtypes.h (create_copied_types_hash): Return htab_up.
307 * gdbtypes.c (create_copied_types_hash): Return htab_up.
308 * compile/compile-object-run.c (compile_object_run): Update.
309
310 2020-09-17 Tom Tromey <tom@tromey.com>
311
312 * typeprint.h (class typedef_hash_table) <~typedef_hash_table>:
313 Remove.
314 <m_table>: Now htab_up.
315 * typeprint.c (typedef_hash_table::recursively_update)
316 (typedef_hash_table::add_template_parameters)
317 (typedef_hash_table::typedef_hash_table): Update.
318 (typedef_hash_table::~typedef_hash_table): Remove.
319 (typedef_hash_table::typedef_hash_table)
320 (typedef_hash_table::find_global_typedef)
321 (typedef_hash_table::find_typedef): Update.
322
323 2020-09-17 Tom Tromey <tom@tromey.com>
324
325 * target-descriptions.c (tdesc_use_registers): Use htab_up.
326
327 2020-09-17 Tom Tromey <tom@tromey.com>
328
329 * linespec.c (class decode_compound_collector)
330 <~decode_compound_collector>: Remove.
331 <m_unique_syms>: Now htab_up.
332 (decode_compound_collector::operator ()): Update.
333 (class symtab_collector) <~symtab_collector>: Remove.
334 <m_symtab_table>: Now htab_up.
335 (symtab_collector::operator ()): Update.
336
337 2020-09-17 Tom Tromey <tom@tromey.com>
338
339 * filename-seen-cache.c (filename_seen_cache::filename_seen_cache)
340 (filename_seen_cache::clear): Update.
341 (~filename_seen_cache): Remove.
342 (filename_seen_cache::seen): Update.
343 * filename-seen-cache.h (class filename_seen_cache) <m_tab>: Now
344 htab_up.
345 <~filename_seen_cache>: Remove.
346 <traverse>: Update.
347
348 2020-09-17 Tom Tromey <tom@tromey.com>
349
350 * completer.c (completion_tracker::discard_completions)
351 (completion_tracker::~completion_tracker)
352 (completion_tracker::maybe_add_completion)
353 (completion_tracker::remove_completion)
354 (completion_tracker::recompute_lowest_common_denominator)
355 (completion_tracker::build_completion_result): Update.
356 * completer.h (class completion_tracker) <have_completions>:
357 Update.
358 <m_entries_hash>: Now htab_up.
359
360 2020-09-17 Tom Tromey <tom@tromey.com>
361
362 * breakpoint.c (ambiguous_names_p): Use htab_up.
363
364 2020-09-17 Tom Tromey <tom@tromey.com>
365
366 * auto-load.c (struct auto_load_pspace_info)
367 <~auto_load_pspace_info, auto_load_pspace_info>: Remove.
368 <loaded_script_files, loaded_script_texts>: Change type to
369 htab_up.
370 (~auto_load_pspace_info) Remove.
371 (init_loaded_scripts_info, maybe_add_script_file)
372 (maybe_add_script_text, auto_load_info_scripts): Update.
373
374 2020-09-17 Tom Tromey <tromey@adacore.com>
375
376 * c-exp.y (name_obstack): Now static.
377
378 2020-09-17 Chungyi Chi <demonic@csie.io>
379
380 * riscv-tdep.c (riscv-insn::decode): Fix recorded insn type.
381
382 2020-09-16 Simon Marchi <simon.marchi@efficios.com>
383
384 * breakpoint.h (init_catchpoint): Change int parameter to bool.
385 (add_solib_catchpoint): Likewise.
386 * breakpoint.c (struct solib_catchpoint) <is_load>: Change type
387 to bool.
388 (add_solib_catchpoint): Change int parameter/variable to bool.
389 (catch_load_or_unload): Likewise.
390 (init_catchpoint): Likewise.
391 (create_fork_vfork_event_catchpoint): Likewise.
392 (catch_fork_command_1): Likewise.
393 (catch_exec_command_1): Likewise.
394
395 2020-09-16 Simon Marchi <simon.marchi@efficios.com>
396
397 * gdb-gdb.py.in (class StructTypePrettyPrinter) <to_string>:
398 Change instance_flags to m_instance_flags.
399
400 2020-09-16 Tom Tromey <tromey@adacore.com>
401
402 PR gdb/26598:
403 * infrun.c (fill_in_stop_func): Use find_pc_partial_function_sym.
404
405 2020-09-16 John Baldwin <jhb@FreeBSD.org>
406
407 * fbsd-nat.c (fbsd_nat_target::wait): Always check for
408 PL_FLAG_EXEC.
409 (fbsd_nat_target::insert_exec_catchpoint)
410 (fbsd_nat_target::remove_exec_catchpoint): Always define.
411 * fbsd-nat.h (fbsd_nat_target::insert_exec_catchpoint)
412 (fbsd_nat_target::remove_exec_catchpoint): Always declare.
413
414 2020-09-16 John Baldwin <jhb@FreeBSD.org>
415
416 * configure.ac: Remove check for kinfo_getvmmap().
417 * configure, config.in: Regenerate.
418 * fbsd-nat.c (fbsd_read_mapping): Remove
419 (fbsd_nat_target::find_memory_regions): Remove the procfs version.
420 (fbsd_nat_target::info_proc): Assume kinfo_getfile() and
421 kinfo_get_vmmap() are always present.
422
423 2020-09-16 John Baldwin <jhb@FreeBSD.org>
424
425 * fbsd-nat.c: Always include support for
426 TARGET_OBJECT_SIGNAL_INFO.
427
428 2020-09-16 John Baldwin <jhb@FreeBSD.org>
429
430 * fbsd-nat.c (fbsd_nat_target::pid_to_exec_file): Always use
431 sysctl and remove procfs fallback.
432
433 2020-09-16 John Baldwin <jhb@FreeBSD.org>
434
435 * fbsd-nat.c: Assume PT_LWPINFO is always defined.
436 * fbsd-nat.h: Likewise.
437
438 2020-09-16 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
439
440 * breakpoint.c (commands_command_1): Make a copy of the 'arg'
441 argument.
442
443 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
444
445 * ada-lang.c (ada_language_data): Delete.
446 (ada_language): Remove references to ada_language_data.
447 * c-lang.c (c_language_data): Delete.
448 (c_language): Remove references to c_language_data.
449 (cplus_language_data): Delete.
450 (cplus_language): Remove references to cplus_language_data.
451 (asm_language_data): Delete.
452 (asm_language): Remove references to asm_language_data.
453 (minimal_language_data): Delete.
454 (minimal_language): Remove references to minimal_language_data.
455 * d-lang.c (d_language_data): Delete.
456 (d_language): Remove references to d_language_data.
457 * f-lang.c (f_language_data): Delete.
458 (f_language): Remove references to f_language_data.
459 * go-lang.c (go_language_data): Delete.
460 (go_language): Remove references to go_language_data.
461 * language.c (unknown_language_data): Delete.
462 (unknown_language): Remove references to unknown_language_data.
463 (auto_language_data): Delete.
464 (auto_language): Remove references to auto_language_data.
465 * language.h (language_data): Delete struct.
466 (language_defn): No longer inherit from language_data.
467 * m2-lang.c (m2_language_data): Delete.
468 (m2_language): Remove references to m2_language_data.
469 * objc-lang.c (objc_language_data): Delete.
470 (objc_language): Remove references to objc_language_data.
471 * opencl-lang.c (opencl_language_data): Delete.
472 (opencl_language): Remove references to opencl_language_data.
473 * p-lang.c (pascal_language_data): Delete.
474 (pascal_language): Remove references to pascal_language_data.
475 * rust-lang.c (rust_language_data): Delete.
476 (rust_language): Remove references to rust_language_data.
477
478 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
479
480 * ada-lang.c (ada_language_data): Remove la_op_print_tab
481 initializer.
482 (ada_language::opcode_print_table): New member function.
483 * c-lang.c (c_language_data): Remove la_op_print_tab initializer.
484 (c_language::opcode_print_table): New member function.
485 (cplus_language_data): Remove la_op_print_tab initializer.
486 (cplus_language::opcode_print_table): New member function.
487 (asm_language_data): Remove la_op_print_tab initializer.
488 (asm_language::opcode_print_table): New member function.
489 (minimal_language_data): Remove la_op_print_tab initializer.
490 (minimal_language::opcode_print_table): New member function.
491 * d-lang.c (d_language_data): Remove la_op_print_tab initializer.
492 (d_language::opcode_print_table): New member function.
493 * expprint.c (print_subexp_standard): Update call to
494 opcode_print_table.
495 (op_string): Likewise.
496 * f-lang.c (f_language_data): Remove la_op_print_tab initializer.
497 (f_language::opcode_print_table): New member function.
498 * go-lang.c (go_language_data): Remove la_op_print_tab
499 initializer.
500 (go_language::opcode_print_table): New member function.
501 * language.c (unknown_language_data): Remove la_op_print_tab
502 initializer.
503 (unknown_language::opcode_print_table): New member function.
504 (auto_language_data): Remove la_op_print_tab initializer.
505 (auto_language::opcode_print_table): New member function.
506 * language.h (language_data): Remove la_op_print_tab field.
507 (language_defn::opcode_print_table): Declare new member function.
508 * m2-lang.c (m2_language_data): Remove la_op_print_tab
509 initializer.
510 (m2_language::opcode_print_table): New member function.
511 * objc-lang.c (objc_language_data): Remove la_op_print_tab
512 initializer.
513 (objc_language::opcode_print_table): New member function.
514 * opencl-lang.c (opencl_language_data): Remove la_op_print_tab
515 initializer.
516 (opencl_language::opcode_print_table): New member function.
517 * p-lang.c (pascal_language_data): Remove la_op_print_tab
518 initializer.
519 (pascal_language::opcode_print_table): New member function.
520 * rust-lang.c (rust_language_data): Remove la_op_print_tab
521 initializer.
522 (rust_language::opcode_print_table): New member function.
523
524 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
525
526 * ada-lang.c (ada_language_data): Remove la_exp_desc initializer.
527 (ada_language::expression_ops): New member function.
528 * c-lang.c (c_language_data): Remove la_exp_desc initializer.
529 (c_language::expression_ops): New member function.
530 (cplus_language_data): Remove la_exp_desc initializer.
531 (cplus_language::expression_ops): New member function.
532 (asm_language_data): Remove la_exp_desc initializer.
533 (asm_language::expression_ops): New member function.
534 (minimal_language_data): Remove la_exp_desc initializer.
535 (minimal_language::expression_ops): New member function.
536 * d-lang.c (d_language_data): Remove la_exp_desc initializer.
537 (d_language::expression_ops): New member function.
538 * eval.c (evaluate_subexp): Update call to expression_ops.
539 * expprint.c (print_subexp): Likewise.
540 (op_name): Likewise.
541 (dump_subexp_body): Likewise.
542 * f-lang.c (f_language_data): Remove la_exp_desc initializer.
543 (f_language::expression_ops): New member function.
544 * go-lang.c (go_language_data): Remove la_exp_desc initializer.
545 (go_language::expression_ops): New member function.
546 * language.c (language_defn::expression_ops): New function.
547 (unknown_language_data): Remove la_exp_desc initializer.
548 (auto_language_data): Likewise.
549 * language.h (language_data): Remove la_exp_desc field.
550 (language_defn::expression_ops): Declare new member function.
551 * m2-lang.c (m2_language_data): Remove la_exp_desc initializer.
552 (m2_language::expression_ops): New member function.
553 * objc-lang.c (objc_language_data): Remove la_exp_desc
554 initializer.
555 * opencl-lang.c (opencl_language_data): Remove la_exp_desc
556 initializer.
557 (opencl_language::expression_ops): New member function.
558 * p-lang.c (pascal_language_data): Remove la_exp_desc initializer.
559 * parse.c (operator_length): Update call to expression_ops.
560 (exp_iterate): Likewise.
561 * rust-lang.c (rust_language_data): Remove la_exp_desc
562 initializer.
563 (ruse_language::expression_ops): New member function.
564
565 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
566
567 * ada-lang.c (ada_language_data): Remove la_varobj_ops
568 initializer.
569 (ada_language::varobj_ops): New member function.
570 * c-lang.c (c_language_data): Remove la_varobj_ops
571 initializer.
572 (cplus_language_data): Likewise.
573 (cplus_language::varobj_ops): New member function.
574 (asm_language_data): Remove la_varobj_ops initializer.
575 (minimal_language_data): Likewise.
576 * d-lang.c (d_language_data): Likewise.
577 * f-lang.c (f_language_data): Likewise.
578 * go-lang.c (go_language_data): Likewise.
579 * language.c (language_defn::varobj_ops): New function.
580 (unknown_language_data): Remove la_varobj_ops
581 initializer.
582 (auto_language_data): Likewise.
583 * language.h (language_data): Remove la_varobj_ops field.
584 (language_defn::varobj_ops): Declare new member function.
585 * m2-lang.c (m2_language_data): Remove la_varobj_ops initializer.
586 * objc-lang.c (objc_language_data): Likewise.
587 * opencl-lang.c (opencl_language_data): Likewise.
588 * p-lang.c (pascal_language_data): Likewise.
589 * rust-lang.c (rust_language_data): Likewise.
590 * varobj.c (varobj_create): Update call to varobj_ops.
591 * varobj.h (default_varobj_ops): Delete define.
592
593 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
594
595 * ada-lang.c (ada_language_data): Remove la_macro_expansion
596 initializer.
597 * c-lang.c (c_language_data): Likewise.
598 (c_language::macro_expansion): New member function.
599 (cplus_language_data): Likewise.
600 (cplus_language::macro_expansion): New member function.
601 (asm_language_data): Likewise.
602 (asm_language::macro_expansion): New member function.
603 (minimal_language_data): Likewise.
604 (minimal_language::macro_expansion): New member function.
605 * d-lang.c (d_language_data): Remove la_macro_expansion
606 initializer.
607 * f-lang.c (f_language_data): Likewise.
608 * go-lang.c (go_language_data): Likewise.
609 * language.c (unknown_language_data): Likewise.
610 (auto_language_data): Likewise.
611 * language.h (language_data): Remove la_macro_expansion field.
612 (language_defn::macro_expansion): New member function.
613 * m2-lang.c (m2_language_data): Remove la_macro_expansion
614 initializer.
615 * objc-lang.c (objc_language_data): Likewise.
616 (objc_language::macro_expansion): New member function.
617 * opencl-lang.c (opencl_language_data): Likewise.
618 (opencl_language::macro_expansion): New member function.
619 * p-lang.c (pascal_language_data): Remove la_macro_expansion
620 initializer.
621 * rust-lang.c (rust_language_data): Likewise.
622 * symtab.c (default_collect_symbol_completion_matches_break_on):
623 Update call to macro_expansion.
624
625 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
626
627 * ada-lang.c (ada_language_data): Remove la_array_ordering
628 initializer.
629 * c-lang.c (c_language_data): Likewise.
630 (cplus_language_data): Likewise.
631 (asm_language_data): Likewise.
632 (minimal_language_data): Likewise.
633 * d-lang.c (d_language_data): Likewise.
634 * dwarf2/read.c (read_array_order): Update for call to
635 array_ordering.
636 * f-lang.c (f_language_data): Remove la_array_ordering
637 initializer.
638 (f_language::array_ordering): New member function.
639 * go-lang.c (go_language_data): Remove la_array_ordering
640 initializer.
641 * language.c (unknown_language_data): Likewise.
642 (auto_language_data): Likewise.
643 * language.h (language_data): Delete la_array_ordering field.
644 (language_defn::array_ordering): New member function.
645 * m2-lang.c (m2_language_data): Remove la_array_ordering
646 initializer.
647 * objc-lang.c (objc_language_data): Likewise.
648 * opencl-lang.c (opencl_language_data): Likewise.
649 * p-lang.c (pascal_language_data): Likewise.
650 * rust-lang.c (rust_language_data): Likewise.
651
652 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
653
654 * ada-lang.c (ada_language_data): Remove la_case_sensitivity
655 initializer.
656 * c-lang.c (c_language_data): Likewise.
657 (cplus_language_data): Likewise.
658 (asm_language_data): Likewise.
659 (minimal_language_data): Likewise.
660 * d-lang.c (d_language_data): Likewise.
661 * f-lang.c (f_language_data): Likewise.
662 (f_language::case_sensitivity): New member function.
663 * go-lang.c (go_language_data): Remove la_case_sensitivity
664 initializer.
665 * language.c (enum case_mode): Moved here from language.h.
666 (case_mode): Make static.
667 (show_case_command): Update for case_sensitivity being a method.
668 (set_case_command): Likewise.
669 (set_range_case): Likewise.
670 (unknown_language_data): Remove la_case_sensitivity initializer.
671 (auto_language_data): Likewise.
672 * language.h (case_mode): Delete, move enum declaration to
673 language.c.
674 (language_data): Delete la_case_sensitivity field.
675 (language_defn::case_sensitivity): New member function.
676 * m2-lang.c (m2_language_data): Remove la_case_sensitivity
677 initializer.
678 * objc-lang.c (objc_language_data): Likewise.
679 * opencl-lang.c (opencl_language_data): Likewise.
680 * p-lang.c (pascal_language_data): Likewise.
681 * rust-lang.c (rust_language_data): Likewise.
682
683 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
684
685 * ada-lang.c (ada_language_data): Remove la_range_check
686 initializer.
687 * c-lang.c (c_language_data): Likewise.
688 (cplus_language_data): Likewise.
689 (asm_language_data): Likewise.
690 (minimal_language_data): Likewise.
691 * d-lang.c (d_language_data): Likewise.
692 * f-lang.c (f_language_data): Likewise.
693 (f_language::range_checking_on_by_default): New member function.
694 * go-lang.c (go_language_data): Remove la_range_check initializer.
695 * language.c (enum range_mode): Moved here from language.h.
696 (range_mode): Made static.
697 (show_range_command): Update to use
698 range_checking_on_by_default.
699 (set_range_command): Likewise.
700 (set_range_case): Likewise.
701 (unknown_language_data): Remove la_range_check initializer.
702 (auto_language_data): Likewise.
703 * language.h (range_mode): Delete. Enum definition moved to
704 language.c.
705 (language_data): Remove la_range_check field.
706 (language_defn::range_checking_on_by_default): New member
707 function.
708 * m2-lang.c (m2_language_data): Remove la_range_check initializer.
709 (m2_language::range_checking_on_by_default): New member function.
710 * objc-lang.c (objc_language_data): Remove la_range_check
711 initializer.
712 * opencl-lang.c (opencl_language_data): Likewise.
713 * p-lang.c (pascal_language_data): Likewise.
714 (pascal_language::range_checking_on_by_default): New member
715 function.
716 * rust-lang.c (rust_language_data): Remove la_range_check
717 initializer.
718 (rust_language::range_checking_on_by_default): New member
719 function.
720
721 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
722
723 * dwarf2/read.c (dwarf2_physname): Remove special case for
724 language_go.
725 * go-lang.c (go_language::store_sym_names_in_linkage_form_p): New
726 member function.
727
728 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
729
730 * ada-lang.c (ada_language_data): Remove
731 la_store_sym_names_in_linkage_form_p initializer.
732 (ada_language::store_sym_names_in_linkage_form_p): New member
733 function.
734 * c-lang.c (c_language_data): Remove
735 la_store_sym_names_in_linkage_form_p initializer.
736 (c_language::store_sym_names_in_linkage_form_p): New member
737 function.
738 (cplus_language_data): Remove la_store_sym_names_in_linkage_form_p
739 initializer.
740 (asm_language_data): Likewise.
741 (asm_language::store_sym_names_in_linkage_form_p): New member
742 function.
743 (minimal_language_data): Remove
744 la_store_sym_names_in_linkage_form_p initializer.
745 (minimal_language::store_sym_names_in_linkage_form_p): New member
746 function.
747 * d-lang.c (d_language_data): Remove
748 la_store_sym_names_in_linkage_form_p initializer.
749 * dwarf2/read.c (dwarf2_physname): Update call to
750 store_sym_names_in_linkage_form_p.
751 * f-lang.c (f_language_data): Remove
752 la_store_sym_names_in_linkage_form_p initializer.
753 * go-lang.c (go_language_data): Remove
754 la_store_sym_names_in_linkage_form_p initializer.
755 * language.c (unknown_language_data): Remove
756 la_store_sym_names_in_linkage_form_p initializer.
757 (unknown_language::store_sym_names_in_linkage_form_p): New member
758 function.
759 (auto_language_data): Remove la_store_sym_names_in_linkage_form_p
760 initializer.
761 (auto_language::store_sym_names_in_linkage_form_p): New member
762 function.
763 * language.h (language_data): Remove
764 la_store_sym_names_in_linkage_form_p member variable.
765 (language_defn::store_sym_names_in_linkage_form_p): New member
766 function.
767 * m2-lang.c (m2_language_data): Remove
768 la_store_sym_names_in_linkage_form_p initializer.
769 * objc-lang.c (objc_language_data): Likewise.
770 * opencl-lang.c (opencl_language_data): Likewise.
771 * p-lang.c (pascal_language_data): Likewise.
772 * rust-lang.c (rust_language_data): Likewise.
773
774 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
775
776 * ada-lang.c (ada_language_data): Remove string_lower_bound
777 initializer.
778 * c-lang.c (c_language_data): Likewise.
779 (cplus_language_data): Likewise.
780 (asm_language_data): Likewise.
781 (minimal_language_data): Likewise.
782 * d-lang.c (d_language_data): Likewise.
783 * f-lang.c (f_language_data): Likewise.
784 * go-lang.c (go_language_data): Likewise.
785 * language.c (unknown_language_data): Likewise.
786 (auto_language_data): Likewise.
787 * language.h (language_data): Remove string_lower_bound field.
788 (language_defn::string_lower_bound): New member function.
789 * m2-lang.c (m2_language_data): Remove string_lower_bound
790 initializer.
791 (m2_language::string_lower_bound): New member function.
792 * objc-lang.c (objc_language_data): Remove string_lower_bound
793 initializer.
794 * opencl-lang.c (opencl_language_data): Likewise.
795 * p-lang.c (pascal_language_data): Likewise.
796 * rust-lang.c (rust_language_data): Likewise.
797 * valops.c (value_cstring): Update call to string_lower_bound.
798 (value_string): Likewise.
799 * value.c (allocate_repeated_value): Likewise.
800
801 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
802
803 * valops.c (value_repeat): Fix incorrect argument name in comment.
804
805 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
806
807 * ada-lang.c (ada_language_data): Remove c_style_arrays
808 initializer.
809 (ada_language::c_style_arrays_p): New member fuction.
810 * c-lang.c (c_language_data): Remove c_style_arrays
811 initializer.
812 (cplus_language_data): Likewise.
813 (asm_language_data): Likewise.
814 (minimal_language_data): Likewise.
815 * d-lang.c (d_language_data): Likewise.
816 * eval.c (ptrmath_type_p): Update call to c_style_arrays_p.
817 * f-lang.c (f_language_data): Remove c_style_arrays initializer.
818 (f_language::c_style_arrays_p): New member function.
819 * go-lang.c (go_language_data): Remove c_style_arrays initializer.
820 * infcall.c (value_arg_coerce): Update call to c_style_arrays_p.
821 * language.c (unknown_language_data): Remove c_style_arrays
822 initializer.
823 (auto_language_data): Likewise.
824 * language.h (language_data): Remove c_style_arrays field.
825 (language_defn::c_style_arrays_p): New member function.
826 * m2-lang.c (m2_language_data): Remove c_style_arrays initializer.
827 (m2_language::c_style_arrays_p): New member function.
828 * objc-lang.c (objc_language_data): Remove c_style_arrays
829 initializer.
830 * opencl-lang.c (opencl_language_data): Likewise.
831 * p-lang.c (pascal_language_data): Likewise.
832 * rust-lang.c (rust_language_data): Likewise.
833 * valarith.c (value_subscript): Update call to c_style_arrays_p,
834 and update local variable to a bool.
835 * valops.c (value_cast): Update call to c_style_arrays_p.
836 (value_array): Likewise.
837 * value.c (coerce_array): Likewise.
838
839 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
840
841 * ada-lang.c (ada_language_data): Remove la_language initializer.
842 * c-lang.c (c_language_data): Likewise.
843 (cplus_language_data): Likewise.
844 (asm_language_data): Likewise.
845 (minimal_language_data): Likewise.
846 * d-lang.c (d_language_data): Likewise.
847 * f-lang.c (f_language_data): Likewise.
848 * go-lang.c (go_language_data): Likewise.
849 * language.c (unknown_language_data): Likewise.
850 (auto_language_data): Likewise.
851 * language.h (language_data): Remove la_language field.
852 (language_defn::language_defn): Initialise la_language field.
853 (language_defn::la_language): New member variable.
854 * m2-lang.c (m2_language_data): Remove la_language field.
855 * objc-lang.c (objc_language_data): Likewise.
856 * opencl-lang.c (opencl_language_data): Likewise.
857 * p-lang.c (pascal_language_data): Likewise.
858 * rust-lang.c (rust_language_data): Likewise.
859
860 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
861
862 * ada-lang.c (ada_extensions): Delete, moved into
863 ada_language::filename_extensions.
864 (ada_language_data): Remove la_filename_extensions initializer.
865 (ada_language::filename_extensions): New member function.
866 * c-lang.c (c_extensions): Delete, moved into
867 c_language::filename_extensions.
868 (c_language_data): Remove la_filename_extensions initializer.
869 (c_language::filename_extensions): New member function.
870 (cplus_extensions): Delete, moved into
871 cplus_language::filename_extensions.
872 (cplus_language_data): Remove la_filename_extensions initializer.
873 (cplus_language::filename_extensions): New member function.
874 (asm_extensions): Delete, moved into
875 asm_language::filename_extensions.
876 (asm_language_data): Remove la_filename_extensions initializer.
877 (asm_language::filename_extensions): New member function.
878 (minimal_language_data): Remove la_filename_extensions
879 initializer.
880 * d-lang.c (d_extensions): Delete, moved into
881 d_language::filename_extensions.
882 (d_language_data): Remove la_filename_extensions initializer.
883 (d_language::filename_extensions): New member function.
884 * f-lang.c (f_extensions): Delete, moved into
885 f_language::filename_extensions.
886 (f_language_data): Remove la_filename_extensions initializer.
887 (f_language::filename_extensions): New member function.
888 * go-lang.c (go_language_data): Remove la_filename_extensions
889 initializer.
890 * language.c (add_set_language_command): Update now that
891 filename_extensions returns a vector.
892 (unknown_language_data): Remove la_filename_extensions
893 initializer.
894 (auto_language_data): Likewise.
895 * language.h (language_data): Remove la_filename_extensions field.
896 (language_defn::filename_extensions): New member function.
897 * m2-lang.c (m2_language_data): Remove la_filename_extensions
898 initializer.
899 * objc-lang.c (objc_extensions): Delete, moved into
900 objc_language::filename_extensions.
901 (objc_language_data): Remove la_filename_extensions initializer.
902 (objc_language::filename_extensions): New member function.
903 * opencl-lang.c (opencl_language_data): Remove
904 la_filename_extensions initializer.
905 * p-lang.c (pascal_extensions): Delete, moved into
906 pascal_language::filename_extensions.
907 (pascal_language_data): Remove la_filename_extensions initializer.
908 (pascal_language::filename_extensions): New member function.
909 * rust-lang.c (rust_extensions): Delete, moved into
910 rust_language::filename_extensions.
911 (rust_language_data): Remove la_filename_extensions initializer.
912 (rust_language::filename_extensions): New member function.
913 * symfile.c (add_filename_language): Add new assert.
914
915 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
916
917 * ada-lang.c (ada_language_data): Remove la_name and
918 la_natural_name initializers.
919 (ada_language::name): New member function.
920 (ada_language::natural_name): New member function.
921 * c-lang.c (c_language_data): Remove la_name and
922 la_natural_name initializers.
923 (c_language::name): New member function.
924 (c_language::natural_name): New member function.
925 (cplus_language_data): Remove la_name and
926 la_natural_name initializers.
927 (cplus_language::name): New member function.
928 (cplus_language::natural_name): New member function.
929 (asm_language_data): Remove la_name and
930 la_natural_name initializers.
931 (asm_language::name): New member function.
932 (asm_language::natural_name): New member function.
933 (minimal_language_data): Remove la_name and
934 la_natural_name initializers.
935 (minimal_language::name): New member function.
936 (minimal_language::natural_name): New member function.
937 * compile/compile.c (compile_to_object): Update call to
938 lanugage_defn::name.
939 * d-lang.c (d_language_data): Remove la_name and
940 la_natural_name initializers.
941 (d_language::name): New member function.
942 (d_language::natural_name): New member function.
943 * expprint.c (print_subexp_standard): Update call to
944 language_defn::name.
945 (dump_raw_expression): Likewise
946 (dump_prefix_expression): Likewise.
947 * f-lang.c (f_language_data): Remove la_name and
948 la_natural_name initializers.
949 (f_language::name): New member function.
950 (f_language::natural_name): New member function.
951 * go-lang.c (go_language_data): Remove la_name and
952 la_natural_name initializers.
953 (go_language::name): New member function.
954 (go_language::natural_name): New member function.
955 * language.c (show_language_command): Update call to
956 language_defn::name.
957 (set_language_command): Likewise.
958 (language_enum): Likewise.
959 (language_str): Likewise.
960 (add_set_language_command): Likewise, use
961 language_defn::natural_name in the doc string.
962 (unknown_language_data): Remove la_name and
963 la_natural_name initializers.
964 (unknown_language::name): New member function.
965 (unknown_language::natural_name): New member function.
966 (auto_language_data): Remove la_name and
967 la_natural_name initializers.
968 (auto_language::name): New member function.
969 (auto_language::natural_name): New member function.
970 (language_lookup_primitive_type_as_symbol): Update call to
971 language_defn::name.
972 * language.h (language_data): Remove la_name and la_natural_name
973 member variables.
974 (language_defn::name): New member function.
975 (language_defn::natural_name): New member function.
976 * m2-lang.c (m2_language_data): Remove la_name and
977 la_natural_name initializers.
978 (m2_language::name): New member function.
979 (m2_language::natural_name): New member function.
980 * mi/mi-cmd-var.c (mi_cmd_var_info_expression): Update call to
981 language_defn::natural_name.
982 * objc-lang.c (objc_language_data): Remove la_name and
983 la_natural_name initializers.
984 (objc_language::name): New member function.
985 (objc_language::natural_name): New member function.
986 * opencl-lang.c (opencl_language_data): Remove la_name and
987 la_natural_name initializers.
988 (opencl_language::name): New member function.
989 (opencl_language::natural_name): New member function.
990 * p-lang.c (pascal_language_data): Remove la_name and
991 la_natural_name initializers.
992 (pascal_language::name): New member function.
993 (pascal_language::natural_name): New member function.
994 * rust-lang.c (rust_language_data): Remove la_name and
995 la_natural_name initializers.
996 (rust_language::name): New member function.
997 (rust_language::natural_name): New member function.
998 * symtab.c (lookup_language_this): Update call to
999 language_defn::name.
1000
1001 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
1002
1003 * ada-lang.c (ada_language_data): Remove la_name_of_this
1004 initializer.
1005 * ax-gdb.c (gen_expr): Update call to name_of_this.
1006 * c-exp.y (classify_name): Likewise.
1007 * c-lang.c (c_language_data): Remove la_name_of_this initializer.
1008 (cplus_language_data): Likewise.
1009 (cplus_language::name_of_this): New member function.
1010 (asm_language_data): Remove la_name_of_this initializer.
1011 (minimal_language_data): Likewise.
1012 * d-lang.c (d_language_data): Likewise.
1013 (d_language::name_of_this): New member function.
1014 * expprint.c (print_subexp_standard): Update call to name_of_this.
1015 * f-lang.c (f_language_data): Remove la_name_of_this initializer.
1016 * go-lang.c (go_language_data): Likewise.
1017 * language.c (unknown_language_data): Likewise.
1018 (unknown_language::name_of_this): New member function.
1019 (auto_language_data): Remove la_name_of_this initializer.
1020 (auto_language::name_of_this): New member function.
1021 * language.h (language_data): Delete la_name_of_this member
1022 variable.
1023 (language_defn::name_of_this): New member function.
1024 * m2-lang.c (m2_language_data): Remove la_name_of_this
1025 initializer.
1026 * objc-lang.c (objc_language_data): Likewise.
1027 (objc_language::name_of_this): New member function.
1028 * opencl-lang.c (opencl_language_data): Remove la_name_of_this
1029 initializer.
1030 * p-lang.c (pascal_language_data): Likewise.
1031 (pascal_language::name_of_this): New member function.
1032 * rust-lang.c (rust_language_data): Remove la_name_of_this
1033 initializer.
1034 * symtab.c (lookup_language_this): Update call to name_of_this.
1035 (lookup_symbol_aux): Likewise.
1036 * valops.c (value_of_this): Likewise.
1037
1038 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
1039
1040 * ada-lang.c (ada_language_data): Remove
1041 la_struct_too_deep_ellipsis initializer.
1042 (ada_language::struct_too_deep_ellipsis): New member function.
1043 * c-lang.c (c_language_data): Remove la_struct_too_deep_ellipsis
1044 initializer.
1045 (cplus_language_data): Likewise.
1046 (asm_language_data): Likewise.
1047 (minimal_language_data): Likewise.
1048 * cp-valprint.c (cp_print_value): Update call to
1049 struct_too_deep_ellipsis.
1050 * d-lang.c (d_language_data): Remove la_struct_too_deep_ellipsis
1051 initializer.
1052 * f-lang.c (f_language_data): Likewise.
1053 (f_language::struct_too_deep_ellipsis): New member function.
1054 * go-lang.c (go_language_data): Remove la_struct_too_deep_ellipsis
1055 initializer.
1056 * language.c (unknown_language_data): Likewise.
1057 (auto_language_data): Likewise.
1058 * language.h (language_data): Delete la_struct_too_deep_ellipsis
1059 member variable.
1060 (language_defn::struct_too_deep_ellipsis): New member function.
1061 * m2-lang.c (m2_language_data): Remove la_struct_too_deep_ellipsis
1062 initializer.Q
1063 * objc-lang.c (objc_language_data): Likewise.
1064 * opencl-lang.c (opencl_language_data): Likewise.
1065 * p-lang.c (pascal_language_data): Likewise.
1066 * rust-lang.c (rust_language_data): Likewise.
1067 * valprint.c (val_print_check_max_depth): Update call to
1068 struct_too_deep_ellipsis.
1069
1070 2020-09-16 Felix Willgerodt <felix.willgerodt@intel.com>
1071
1072 * MAINTAINERS (Write After Approval): Add myself.
1073
1074 2020-09-15 Tom Tromey <tom@tromey.com>
1075
1076 * f-valprint.c (f_value_print_inner) <case TYPE_CODE_INT>:
1077 Remove.
1078
1079 2020-09-15 Tom Tromey <tom@tromey.com>
1080
1081 * rust-lang.c (rust_value_print_inner): Remove TYPE_CODE_MEMBERPTR
1082 and TYPE_CODE_METHODPTR cases.
1083 * c-valprint.c (c_value_print_memberptr): Move to valprint.c.
1084 (c_value_print_inner): Update.
1085 * valprint.c (generic_value_print_memberptr): New function, from
1086 c_value_print_memberptr.
1087 (generic_value_print): Use it. Call cplus_print_method_ptr.
1088
1089 2020-09-15 Tom Tromey <tromey@adacore.com>
1090
1091 * python/python-internal.h (PyInt_FromLong): Remove define.
1092 * python/py-value.c (convert_value_from_python): Use
1093 gdb_py_object_from_longest.
1094 * python/py-type.c (typy_get_code): Use
1095 gdb_py_object_from_longest.
1096 * python/py-symtab.c (salpy_get_line): Use
1097 gdb_py_object_from_longest.
1098 * python/py-symbol.c (sympy_get_addr_class, sympy_line): Use
1099 gdb_py_object_from_longest.
1100 * python/py-record.c (recpy_gap_reason_code): Use
1101 gdb_py_object_from_longest.
1102 * python/py-record-btrace.c (recpy_bt_insn_size)
1103 (recpy_bt_func_level, btpy_list_count): Use
1104 gdb_py_object_from_longest.
1105 * python/py-infthread.c (gdbpy_create_ptid_object): Use
1106 gdb_py_object_from_longest. Fix error handling.
1107 * python/py-framefilter.c (bootstrap_python_frame_filters): Use
1108 gdb_py_object_from_longest.
1109 * python/py-frame.c (frapy_type, frapy_unwind_stop_reason): Use
1110 gdb_py_object_from_longest.
1111 * python/py-breakpoint.c (bppy_get_type, bppy_get_number)
1112 (bppy_get_thread, bppy_get_task, bppy_get_hit_count)
1113 (bppy_get_ignore_count): Use gdb_py_object_from_longest.
1114
1115 2020-09-15 Tom Tromey <tromey@adacore.com>
1116
1117 * python/python.c (gdbpy_parameter_value): Use
1118 gdb_py_object_from_ulongest.
1119
1120 2020-09-15 Tom Tromey <tromey@adacore.com>
1121
1122 * python/py-infevents.c (create_register_changed_event_object):
1123 Use gdb_py_object_from_longest.
1124 * python/py-exitedevent.c (create_exited_event_object): Use
1125 gdb_py_object_from_longest.
1126
1127 2020-09-15 Tom Tromey <tromey@adacore.com>
1128
1129 * python/python.c (gdbpy_parameter_value): Use
1130 gdb_py_object_from_longest.
1131 * python/py-type.c (convert_field, typy_range): Use
1132 gdb_py_object_from_longest.
1133 * python/py-tui.c (gdbpy_tui_width, gdbpy_tui_height): Use
1134 gdb_py_object_from_longest.
1135 * python/py-lazy-string.c (stpy_get_length): Use
1136 gdb_py_object_from_longest.
1137 * python/py-infthread.c (thpy_get_num, thpy_get_global_num): Use
1138 gdb_py_object_from_longest.
1139 * python/py-infevents.c (create_memory_changed_event_object): Use
1140 gdb_py_object_from_longest.
1141 * python/py-inferior.c (infpy_get_num): Use
1142 gdb_py_object_from_longest.
1143 (infpy_get_pid): Likewise.
1144
1145 2020-09-15 Tom Tromey <tromey@adacore.com>
1146
1147 * python/python-internal.h (gdb_py_long_from_ulongest): Remove
1148 defines.
1149 * python/py-value.c (valpy_long): Use
1150 gdb_py_object_from_ulongest.
1151 * python/py-symtab.c (salpy_get_pc): Use
1152 gdb_py_object_from_ulongest.
1153 (salpy_get_last): Likewise.
1154 * python/py-record-btrace.c (recpy_bt_insn_pc): Use
1155 gdb_py_object_from_ulongest.
1156 * python/py-lazy-string.c (stpy_get_address): Use
1157 gdb_py_object_from_ulongest.
1158 * python/py-frame.c (frapy_pc): Use gdb_py_object_from_ulongest.
1159 * python/py-arch.c (archpy_disassemble): Use
1160 gdb_py_object_from_ulongest and gdb_py_object_from_longest. Fix
1161 error handling.
1162
1163 2020-09-15 Tom Tromey <tromey@adacore.com>
1164
1165 * python/python-internal.h (gdb_py_long_from_longest): Remove
1166 defines.
1167 * python/py-value.c (valpy_long): Use gdb_py_object_from_longest.
1168 * python/py-type.c (convert_field, typy_get_sizeof): Use
1169 gdb_py_object_from_longest.
1170 * python/py-record-btrace.c (btpy_list_index): Use
1171 gdb_py_object_from_longest.
1172
1173 2020-09-15 Tom Tromey <tromey@adacore.com>
1174
1175 * python/python-internal.h (PyInt_FromSsize_t): Remove define.
1176 * python/py-record.c (recpy_element_number): Use
1177 gdb_py_object_from_longest.
1178 (recpy_gap_number): Likewise.
1179
1180 2020-09-15 Tom Tromey <tromey@adacore.com>
1181
1182 * top.c (ui::ui): Update.
1183 (highest_ui_num): Remove.
1184 * top.h (struct ui) <num>: Remove.
1185
1186 2020-09-15 Tom Tromey <tromey@adacore.com>
1187
1188 * unittests/memory-map-selftests.c (valid_mem_map): Now array.
1189 * ui-style.c (ansi_regex_text): Now array.
1190 * rust-exp.y (number_regex_text): Now array.
1191 * linespec.c (linespec_quote_characters): Now array.
1192 * jit.c (jit_break_name, jit_descriptor_name, reader_init_fn_sym):
1193 Now arrays.
1194
1195 2020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
1196
1197 * debuginfod-support.c (debuginfod_client_deleter): New.
1198 (debuginfod_client_up): New.
1199 (debuginfod_init): Return debuginfod_client_up.
1200 (debuginfod_source_query): Adjust.
1201 (debuginfod_debuginfo_query): Adjust.
1202
1203 2020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
1204
1205 * debuginfod-support.c (debuginfod_source_query): Use
1206 make_unique_xstrdup.
1207
1208 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
1209
1210 * gdbtypes.h (TYPE_INSTANCE_FLAGS): Remove, replace all uses
1211 with `type::instance_flags`.
1212
1213 2020-09-14 Michael Mullin <masmullin@gmail.com>
1214
1215 * xml-tdesc.c [!defined(HAVE_LIBEXPAT)] (tdesc_parse_xml):
1216 Remove baton parameter.
1217
1218 2020-09-14 Pedro Alves <pedro@palves.net>
1219
1220 * Makefile.in (SELFTESTS_SRCS): Add
1221 unittests/enum-flags-selftests.c.
1222 * btrace.c (ftrace_update_caller, ftrace_fixup_calle): Use
1223 btrace_function_flags instead of enum btrace_function_flag.
1224 * compile/compile-c-types.c (convert_qualified): Use
1225 enum_flags::raw.
1226 * compile/compile-cplus-symbols.c (convert_one_symbol)
1227 (convert_symbol_bmsym):
1228 * compile/compile-cplus-types.c (compile_cplus_convert_method)
1229 (compile_cplus_convert_struct_or_union_methods)
1230 (compile_cplus_instance::convert_qualified_base):
1231 * go-exp.y (parse_string_or_char): Add cast to int.
1232 * unittests/enum-flags-selftests.c: New file.
1233 * record-btrace.c (btrace_thread_flag_to_str): Change parameter's
1234 type to btrace_thread_flags from btrace_thread_flag.
1235 (record_btrace_cancel_resume, record_btrace_step_thread): Change
1236 local's type to btrace_thread_flags from btrace_thread_flag. Add
1237 cast in DEBUG call.
1238
1239 2020-09-14 Pedro Alves <pedro@palves.net>
1240
1241 * c-typeprint.c (c_type_print_modifier): Adjust to rename.
1242 * gdbtypes.c (address_space_name_to_int): Rename to ...
1243 (address_space_name_to_type_instance_flags): ... this.
1244 (address_space_int_to_name): Rename to ...
1245 (address_space_type_instance_flags_to_name): ... this.
1246 * gdbtypes.h (address_space_name_to_int): Rename to ...
1247 (address_space_name_to_type_instance_flags): ... this.
1248 (address_space_int_to_name): Rename to ...
1249 (address_space_type_instance_flags_to_name): ... this.
1250 * type-stack.c (type_stack::insert): Adjust to rename.
1251 * type-stack.h (type_stack::insert): Likewise.
1252
1253 2020-09-14 Pedro Alves <pedro@palves.net>
1254 Andrew Burgess <andrew.burgess@embecosm.com>
1255
1256 * avr-tdep.c (avr_address_class_type_flags): Return
1257 type_instance_flags.
1258 (avr_address_class_type_flags_to_name): Take a
1259 type_instance_flags.
1260 (avr_address_class_name_to_type_flags): Return bool and take a
1261 type_instance_flags.
1262 * d-lang.c (build_d_types): Use type::set_instance_flags.
1263 * ft32-tdep.c (ft32_address_class_type_flags): Return
1264 type_instance_flags.
1265 (ft32_address_class_type_flags_to_name): Take a
1266 type_instance_flags.
1267 (ft32_address_class_name_to_type_flags): Return bool and take a
1268 type_instance_flags.
1269 (ft32_gdbarch_init): Use type::set_instance_flags.
1270 * eval.c (fake_method::fake_method): Use type::set_instance_flags.
1271 * gdbarch.h, gdbarch.c: Regenerate.
1272 * gdbarch.sh (address_class_type_flags): Use type_instance_flags.
1273 (address_class_name_to_type_flags): Use type_instance_flags and
1274 bool.
1275 * gdbtypes.c (address_space_name_to_int)
1276 (address_space_int_to_name, make_qualified_type): Use
1277 type_instance_flags.
1278 (make_qualified_type): Use type_instance_flags and
1279 type::set_instance_flags.
1280 (make_type_with_address_space, make_cv_type, make_vector_type)
1281 (check_typedef): Use type_instance_flags.
1282 (recursive_dump_type): Cast type_instance_flags to unsigned for
1283 printing.
1284 (copy_type_recursive): Use type::set_instance_flags.
1285 (gdbtypes_post_init): Use type::set_instance_flags.
1286 * gdbtypes.h (struct type) <instance_flags>: Rename to ...
1287 <m_instance_flags>: ... this.
1288 <instance_flags, set_instance_flags>: New methods.
1289 (TYPE_INSTANCE_FLAGS): Use the instance_flags method.
1290 (SET_TYPE_INSTANCE_FLAGS): New.
1291 (address_space_name_to_int, address_space_int_to_name)
1292 (make_type_with_address_space): Pass flags using
1293 type_instance_flags instead of int.
1294 * stabsread.c (cleanup_undefined_types_noname): Use
1295 type::set_instance_flags.
1296 * s390-tdep.c (s390_address_class_type_flags): Return
1297 type_instance_flags.
1298 (s390_address_class_type_flags_to_name): Take a
1299 type_instance_flags.
1300 (s390_address_class_name_to_type_flags): Return bool and take a
1301 type_instance_flags.
1302 * type-stack.c (type_stack::follow_types): Use
1303 type_instance_flags.
1304 * dwarf2/read.c (read_tag_pointer_type): Use type_instance_flags.
1305
1306 2020-09-14 Tom Tromey <tromey@adacore.com>
1307
1308 * x86-tdep.h (x86_in_indirect_branch_thunk): Update.
1309 * x86-tdep.c (x86_is_thunk_register_name)
1310 (x86_in_indirect_branch_thunk): Update.
1311 * sparc64-tdep.c (sparc64_fpu_register_names)
1312 (sparc64_cp0_register_names, sparc64_register_names)
1313 (sparc64_pseudo_register_names): Now const.
1314 * sparc-tdep.h (struct gdbarch_tdep) <fpu_register_names,
1315 cp0_registers_num>: Now const.
1316 * sparc-tdep.c (sparc_core_register_names)
1317 (sparc32_fpu_register_names, sparc32_cp0_register_names)
1318 (sparc32_pseudo_register_names): Now const.
1319 (validate_tdesc_registers): Update.
1320 * rust-lang.c (rust_extensions): Now const.
1321 * p-lang.c (p_extensions): Now const.
1322 * objc-lang.c (objc_extensions): Now const.
1323 * nto-tdep.c (nto_thread_state_str): Now const.
1324 * moxie-tdep.c (moxie_register_names): Now const.
1325 * mips-tdep.h (struct gdbarch_tdep) <mips_processor_reg_names>:
1326 Now const.
1327 * mips-tdep.c (mips_generic_reg_names, mips_tx39_reg_names)
1328 (mips_linux_reg_names): Now const.
1329 (mips_gdbarch_init): Update.
1330 * microblaze-tdep.c (microblaze_register_names): Now const.
1331 * m68k-tdep.c (m68k_register_names): Now const.
1332 * m32r-tdep.c (m32r_register_names): Now const.
1333 * ia64-tdep.c (ia64_register_names): Now const.
1334 * i386-tdep.h (struct gdbarch_tdep) <register_names,
1335 ymmh_register_names, ymm16h_regnum, mpx_register_names,
1336 k_register_names, zmmh_register_names, xmm_avx512_register_names,
1337 ymm_avx512_register_names, pkeys_register_names>: Now const.
1338 * i386-tdep.c (i386_register_names, i386_zmm_names)
1339 (i386_zmmh_names, i386_k_names, i386_ymm_names, i386_ymmh_names)
1340 (i386_mpx_names, i386_pkeys_names, i386_bnd_names)
1341 (i386_mmx_names, i386_byte_names, i386_word_names): Now const.
1342 * f-lang.c (f_extensions): Now const.
1343 * d-lang.c (d_extensions): Now const.
1344 * csky-tdep.c (csky_register_names): Now const.
1345 * charset.c (default_charset_names, charset_enum): Now const.
1346 (_initialize_charset): Update.
1347 * c-lang.c (c_extensions, cplus_extensions, asm_extensions): Now
1348 const.
1349 * bsd-uthread.c (bsd_uthread_solib_names): Now const.
1350 (bsd_uthread_solib_loaded): Update.
1351 (bsd_uthread_state): Now const.
1352 * amd64-tdep.c (amd64_register_names, amd64_ymm_names)
1353 (amd64_ymm_avx512_names, amd64_ymmh_names)
1354 (amd64_ymmh_avx512_names, amd64_mpx_names, amd64_k_names)
1355 (amd64_zmmh_names, amd64_zmm_names, amd64_xmm_avx512_names)
1356 (amd64_pkeys_names, amd64_byte_names, amd64_word_names)
1357 (amd64_dword_names): Now const.
1358 * agent.c (can_use_agent_enum): Now const.
1359 * ada-tasks.c (task_states, long_task_states): Now const.
1360 * ada-lang.c (known_runtime_file_name_patterns)
1361 (known_auxiliary_function_name_patterns, attribute_names)
1362 (standard_exc, ada_extensions): Now const.
1363
1364 2020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
1365
1366 * bcache.h (struct bcache) <bcache>: Remove constructor.
1367 <m_hash_function, m_compare_function>: Remove.
1368 <~bcache>: Make virtual.
1369 <compare>: Remove static method, introduce virtual method.
1370 <default_hash>: Remove.
1371 <hash>: New virtual method.
1372 * bcache.c (bcache::expand_hash_table): Update.
1373 (bcache::insert): Update.
1374 (bcache::hash): New.
1375 (bcache::compare): Update comment and parameter names.
1376 * gdbtypes.c (types_deeply_equal): Update.
1377 * psymtab.h (struct psymbol_bcache): New struct.
1378 (class psymtab_storage) <psymtab_storage>: Make default.
1379 <psymbol_cache>: Change type to psymbol_bcache.
1380 * psymtab.c (psymtab_storage::psymtab_storage): Remove.
1381 (psymbol_hash): Change to...
1382 (psymbol_bcache::hash): ... this.
1383 (psymbol_compare): Change to...
1384 (psymbol_bcache::compare): ... this.
1385
1386 2020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
1387
1388 * linux-nat.c (linux_nat_wait_1): Don't use inferior_ptid when
1389 checking for initial lwp.
1390
1391 2020-09-14 Tom Tromey <tromey@adacore.com>
1392
1393 * m68k-tdep.c (m68k_extract_return_value): Use
1394 pointer_result_regnum.
1395 (m68k_store_return_value): Likewise.
1396 (m68k_reg_struct_return_p): Handle vectors and arrays.
1397 (m68k_return_value): Handle arrays.
1398 (m68k_svr4_return_value): Fix single-element aggregate handling.
1399 Handle long double. Adjust for embedded ABI.
1400 (m68k_svr4_init_abi): Set pointer_result_regnum.
1401 (m68k_embedded_init_abi): New function.
1402 (m68k_gdbarch_init): Handle Tag_GNU_M68K_ABI_FP.
1403 (m68k_osabi_sniffer): New function.
1404 (_initialize_m68k_tdep): Register osabi sniffer.
1405 * m68k-tdep.h (struct gdbarch_tdep) <pointer_result_regnum>: New
1406 member.
1407
1408 2020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
1409
1410 * xml-support.c (xml_fetch_content_from_file): Replace xfree
1411 with gdb::unique_xmalloc_ptr<char>.
1412
1413 2020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
1414
1415 * xml-support.h (xml_fetch_another): Change type to be a
1416 function_view.
1417 (xml_process_xincludes): Remove baton parameter.
1418 (xml_fetch_content_from_file): Change baton parameter to
1419 dirname.
1420 * xml-support.c (struct xinclude_parsing_data)
1421 <xinclude_parsing_data>: Remove baton parameter.
1422 <fetcher_baton>: Remove.
1423 (xinclude_start_include): Adjust.
1424 (xml_process_xincludes): Adjust.
1425 (xml_fetch_content_from_file): Replace baton parameter with
1426 dirname.
1427 * xml-syscall.c (syscall_parse_xml): Remove baton parameter.
1428 (xml_init_syscalls_info): Use a lambda.
1429 * xml-tdesc.c (tdesc_parse_xml): Remove baton parameter.
1430 (file_read_description_xml): Use a lambda.
1431 (fetch_available_features_from_target): Change baton parameter
1432 to target_ops.
1433 (target_read_description_xml): Use a lambda.
1434 (target_fetch_description_xml): Use a lambda.
1435 (string_read_description_xml): Update.
1436
1437 2020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
1438
1439 * gdbtypes.h (TYPE_ENDIANITY_NOT_DEFAULT): Remove, replace all
1440 uses with type::endianity_is_not_default.
1441
1442 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
1443
1444 * gdbtypes.h (struct type) <endianity_is_not_default,
1445 set_endianity_is_not_default>: New methods.
1446 (TYPE_ENDIANITY_NOT_DEFAULT): Use
1447 type::endianity_is_not_default, change all write call sites to
1448 use type::set_endianity_is_not_default.
1449
1450 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
1451
1452 * gdbtypes.h (TYPE_FIXED_INSTANCE): Remove, replace all
1453 uses with type::is_fixed_instance.
1454
1455 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
1456
1457 * gdbtypes.h (struct type) <is_fixed_instance,
1458 set_is_fixed_instance>: New methods.
1459 (TYPE_FIXED_INSTANCE): Use type::is_fixed_instance, change all
1460 write call sites to use type::set_is_fixed_instance.
1461
1462 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
1463
1464 * gdbtypes.h (TYPE_GNU_IFUNC): Remove, replace all
1465 uses with type::is_gnu_ifunc.
1466
1467 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
1468
1469 * gdbtypes.h (struct type) <is_gnu_ifunc, set_is_gnu_ifunc>: New methods.
1470 (TYPE_GNU_IFUNC): Use type::is_gnu_ifunc, change all write call sites to
1471 use type::set_is_gnu_ifunc.
1472
1473 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
1474
1475 * gdbtypes.h (TYPE_STUB_SUPPORTED): Remove, replace all
1476 uses with type::stub_is_supported.
1477
1478 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
1479
1480 * gdbtypes.h (struct type) <stub_is_supported, set_stub_is_supported>: New methods.
1481 (TYPE_STUB_SUPPORTED): Use type::stub_is_supported, change all write call sites to
1482 use type::set_stub_is_supported.
1483
1484 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
1485
1486 * gdbtypes.h (TYPE_VECTOR): Remove, replace all
1487 uses with type::is_vector.
1488
1489 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
1490
1491 * gdbtypes.h (struct type) <is_vector, set_is_vector>: New methods.
1492 (TYPE_VECTOR): Use type::is_vector, change all write call sites to
1493 use type::set_is_vector.
1494
1495 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
1496
1497 * gdbtypes.h (TYPE_VARARGS): Remove, replace all
1498 uses with type::has_varargs.
1499
1500 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
1501
1502 * gdbtypes.h (struct type) <has_varargs, set_has_varargs>: New methods.
1503 (TYPE_VARARGS): Use type::has_varargs, change all write call sites to
1504 use type::set_has_varargs.
1505
1506 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
1507
1508 * gdbtypes.h (TYPE_PROTOTYPED): Remove, replace all
1509 uses with type::is_prototyped.
1510
1511 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
1512
1513 * gdbtypes.h (struct type) <is_prototyped, set_is_prototyped>:
1514 New methods.
1515 (TYPE_PROTOTYPED): Use type::is_prototyped, change all write
1516 call sites to use type::set_is_prototyped.
1517
1518 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
1519
1520 * gdbtypes.h (TYPE_TARGET_STUB): Remove, replace all
1521 uses with type::target_is_stub.
1522
1523 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
1524
1525 * gdbtypes.h (struct type) <target_is_stub, set_target_is_stub>:
1526 New methods.
1527 (TYPE_TARGET_STUB): Use type::is_stub, change all write call
1528 sites to use type::set_target_is_stub.
1529
1530 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
1531
1532 * gdbtypes.h (TYPE_STUB): Remove, replace all
1533 uses with type::is_stub.
1534
1535 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
1536
1537 * gdbtypes.h (struct type) <is_stub, set_is_stub>: New methods.
1538 (TYPE_STUB): Use type::is_stub, change all write call sites to
1539 use type::set_is_stub.
1540
1541 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
1542
1543 * gdbtypes.h (TYPE_NOSIGN): Remove, replace all uses with
1544 type::has_no_signedness.
1545
1546 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
1547
1548 * gdbtypes.h (struct type) <has_no_signedness,
1549 set_has_no_signedness>: New methods.
1550 (TYPE_NOSIGN): Use type::has_no_signedness, change all write
1551 call sites to use type::set_has_no_signedness.
1552
1553 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
1554
1555 * gdbtypes.h (TYPE_UNSIGNED): Remove, replace all uses with
1556 type::is_unsigned.
1557
1558 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
1559
1560 * gdbtypes.h (struct type) <is_unsigned, set_is_unsigned>: New
1561 methods.
1562 (TYPE_UNSIGNED): Use type::is_unsigned. Change all write call
1563 sites to use type::set_is_unsigned.
1564
1565 2020-09-14 Fredrik Hederstierna <fredrik.hederstierna@verisure.com>
1566 Adam Renquinha <arenquinha@cimeq.qc.ca>
1567
1568 * arm-tdep.c (arm_m_exception_cache): Try use correct stack
1569 pointer and stack frame offset when unwinding.
1570
1571 2020-09-13 Pedro Alves <pedro@palves.net>
1572
1573 * NEWS: Document "-break-insert --qualified".
1574 * mi/mi-cmd-break.c (mi_cmd_break_insert_1): Handle "--qualified".
1575
1576 2020-09-13 Pedro Alves <pedro@palves.net>
1577
1578 * linespec.c (classify_mtype, compare_msyms): Delete.
1579 (search_minsyms_for_name): Remove classification logic. Instead
1580 filter out trampoline symbols if we also found an external
1581 function of the same name.
1582
1583 2020-09-13 Joel Brobecker <brobecker@adacore.com>
1584
1585 * NEWS: Create a new section for the next release branch.
1586 Rename the section of the current branch, now that it has
1587 been cut.
1588
1589 2020-09-13 Joel Brobecker <brobecker@adacore.com>
1590
1591 GDB 10 branch created (8087c3fa8b5d695e3e29e69d70d0b35ec902ac59):
1592 * version.in: Bump version to 11.0.50.DATE-git.
1593
1594 2020-09-12 Joel Brobecker <brobecker@adacore.com>
1595
1596 * infrun.c (namespace selftests): Only define #if GDB_SELF_TEST.
1597
1598 2020-09-11 Moritz Riesterer <moritz.riesterer@intel.com>
1599 Felix Willgerodt <Felix.Willgerodt@intel.com>
1600
1601 * gdbarch.sh: Added bfloat16 type.
1602 * gdbarch.c: Regenerated.
1603 * gdbarch.h: Regenerated.
1604 * gdbtypes.c (floatformats_bfloat16): New struct.
1605 (gdbtypes_post_init): Add builtin_bfloat16.
1606 * gdbtypes.h (struct builtin_type) <builtin_bfloat16>: New member.
1607 (floatformats_bfloat16): New struct.
1608 * i386-tdep.c (i386_zmm_type): Add field "v32_bfloat16"
1609 (i386_ymm_type): Add field "v16_bfloat16"
1610 (i386_gdbarch_init): Add set_gdbarch_bfloat16_format.
1611 * target-descriptions.c (make_gdb_type): Add case TDESC_TYPE_BFLOAT16.
1612 * gdbsupport/tdesc.cc (tdesc_predefined_types): New member bfloat16.
1613 * gdbsupport/tdesc.h (tdesc_type_kind): New member TDESC_TYPE_BFLOAT16.
1614 * features/i386/64bit-avx512.xml: Add bfloat16 type.
1615 * features/i386/64bit-avx512.c: Regenerated.
1616 * features/i386/64bit-sse.xml: Add bfloat16 type.
1617 * features/i386/64bit-sse.c: Regenerated.
1618
1619 2020-09-11 Felix Willgerodt <felix.willgerodt@intel.com>
1620
1621 * i386-tdep.c (i386_zmm_type): Fix field names.
1622 (i386_ymm_type): Fix field names.
1623
1624 2020-09-11 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1625
1626 * breakpoint.c: Fix typo in the help message of the
1627 "set breakpoint condition-evaluation" command.
1628
1629 2020-09-10 Kamil Rytarowski <n54@gmx.com>
1630
1631 * nbsd-nat.c: Include "nat/netbsd-nat.h".
1632 * (nbsd_nat_target::pid_to_exec_file)
1633 (nbsd_nat_target::thread_alive, nbsd_nat_target::thread_name)
1634 (nbsd_nat_target::post_startup_inferior)
1635 (nbsd_nat_target::post_attach, nbsd_nat_target::xfer_partial)
1636 (nbsd_add_threads): Switch local code to common gdb/nat functions.
1637 * (nbsd_pid_to_cmdline): Call sysctl from the global namespace.
1638 * (nbsd_thread_lister): Remove.
1639
1640 2020-09-10 Kamil Rytarowski <n54@gmx.com>
1641
1642 * fork-inferior.c (startup_inferior): Avoid double free.
1643
1644 2020-09-10 Kamil Rytarowski <n54@gmx.com>
1645
1646 * netbsd-nat.h (netbsd_nat::qxfer_siginfo): Add.
1647 * netbsd-nat.c (netbsd_nat::qxfer_siginfo): Likewise.
1648
1649 2020-09-10 Kamil Rytarowski <n54@gmx.com>
1650
1651 * netbsd-nat.h (netbsd_nat::enable_proc_events): Add.
1652 * netbsd-nat.c: Include <sys/ptrace.h>.
1653 * (netbsd_nat::enable_proc_events): Add.
1654
1655 2020-09-10 Kamil Rytarowski <n54@gmx.com>
1656
1657 * netbsd-nat.h: Include "gdbsupport/function-view.h".
1658 * (netbsd_nat::thread_alive, netbsd_nat::thread_name)
1659 (netbsd_nat::for_each_thread): Add.
1660 * netbsd-nat.c: Include "gdbsupport/common-defs.h" and
1661 "gdbsupport/common-debug.h".
1662 * (netbsd_nat::netbsd_thread_lister)
1663 (netbsd_nat::thread_alive, netbsd_nat::thread_name)
1664 (netbsd_nat::for_each_thread): Add.
1665
1666 2020-09-10 Kamil Rytarowski <n54@gmx.com>
1667
1668 * netbsd-nat.h: Include <unistd.h>.
1669 * (netbsd_nat::pid_to_exec_file): Add.
1670 * netbsd-nat.c: Include <sys/types.h> and <sys/sysctl.h>.
1671 * (netbsd_nat::pid_to_exec_file) Add.
1672
1673 2020-09-10 Kamil Rytarowski <n54@gmx.com>
1674
1675 * configure.nat (NATDEPFILES): Add nat/netbsd-nat.o when needed.
1676
1677 2020-09-10 Kamil Rytarowski <n54@gmx.com>
1678
1679 * netbsd-nat.h: New file.
1680 * netbsd-nat.c: Likewise.
1681
1682 2020-09-09 Tom Tromey <tromey@adacore.com>
1683
1684 * ada-lang.c (remove_extra_symbols): Do not increment when
1685 removing an element
1686
1687 2020-09-08 Tom Tromey <tromey@adacore.com>
1688
1689 * gdb_bfd.c (gdb_bfd_open): Call bfd_fopen when fstat fails.
1690
1691 2020-09-08 Tom Tromey <tromey@adacore.com>
1692
1693 PR win32/25302:
1694 * gdb_bfd.c (gdb_bfd_data): Add "st" parameter.
1695 (gdb_bfd_init_data): New function.
1696 (gdb_bfd_open, gdb_bfd_ref): Use gdb_bfd_init_data.
1697
1698 2020-09-07 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1699
1700 * infrun.c (fetch_inferior_event): Use
1701 `switch_to_target_no_thread` to switch the target.
1702
1703 2020-09-06 Tom Tromey <tom@tromey.com>
1704
1705 * symfile.h (dwarf2_free_objfile): Don't declare.
1706
1707 2020-09-03 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
1708
1709 * gdb/i386-tdep.c (i386_floatformat_for_type): Added conditions
1710 to match 16 byte real/complex type generated by Flang compiler.
1711
1712 2020-09-03 Tom de Vries <tdevries@suse.de>
1713
1714 PR breakpoint/26546
1715 * dwarf2/read.c (new_symbol): Tag label symbol without DW_AT_low_pc as
1716 LOC_OPTIMIZED_OUT instead of LOC_LABEL.
1717
1718 2020-09-02 Simon Marchi <simon.marchi@polymtl.ca>
1719
1720 * maint.c (index_digits): New function.
1721 (struct maint_print_section_data): Remove.
1722 (print_bfd_section_info): Remove print_data parameter, add arg
1723 and index_digits.
1724 (print_objfile_section_info): Likewise.
1725 (print_bfd_section_info_maybe_relocated): Likewise (plus
1726 objfile).
1727 (maintenance_info_sections): Adjust calls.
1728
1729 2020-09-02 Tom Tromey <tromey@adacore.com>
1730
1731 * ada-varobj.c (ada_varobj_get_ptr_number_of_children): Return 0
1732 for null pointers.
1733 (ada_varobj_adjust_for_child_access): Special-case null pointers.
1734
1735 2020-09-01 Simon Marchi <simon.marchi@polymtl.ca>
1736
1737 * bcache.h (struct bcache) <insert>: Change type of `added` to
1738 pointer to bool.
1739 * bcache.c (bcache::insert): Likewise.
1740 * gdbtypes.c (check_types_worklist): Adjust.
1741 * psymtab.c (add_psymbol_to_bcache): Adjust.
1742
1743 2020-08-31 Kevin Buettner <kevinb@redhat.com>
1744
1745 * corelow.c (unordered_set): Include.
1746 (class core_target): Add field 'm_core_unavailable_mappings'.
1747 (core_target::build_file_mappings): Print only one warning
1748 per inaccessible file. Add unavailable/broken mappings
1749 to m_core_unavailable_mappings.
1750 (core_target::xfer_partial): Call...
1751 (core_target::xfer_memory_via_mappings): New method.
1752
1753 2020-08-31 Simon Marchi <simon.marchi@polymtl.ca>
1754
1755 * dwarf2/read.c (struct field_info) <non_public_fields>: Change
1756 type to bool.
1757
1758 2020-08-31 Simon Marchi <simon.marchi@polymtl.ca>
1759
1760 * dwarf2/read.c (struct field_info): Fix indentation.
1761
1762 2020-08-31 Simon Marchi <simon.marchi@efficios.com>
1763
1764 * frame-unwind.h (frame_prev_register_ftype): Fix adjective
1765 ordering in comment.
1766 * frame.c (frame_id_eq): Fix indentation.
1767
1768 2020-08-31 Scott Linder <scott@scottlinder.com>
1769 Simon Marchi <simon.marchi@efficios.com>
1770
1771 * inline-frame.c (inline_frame_this_id): Remove assert that prevents
1772 inline frame ids in outer frame.
1773
1774 2020-08-31 Simon Marchi <simon.marchi@efficios.com>
1775
1776 * frame.h (enum frame_id_stack_status) <FID_STACK_OUTER>: New.
1777 * frame.c (fprint_frame_id): Handle FID_STACK_OUTER.
1778 (outer_frame_id): Use FID_STACK_OUTER instead of
1779 FID_STACK_INVALID.
1780 (frame_id_p): Don't check for outer_frame_id.
1781
1782 2020-08-31 Simon Marchi <simon.marchi@efficios.com>
1783
1784 * frame-unwind.c (frame_unwind_got_optimized): Don't set
1785 regnum/frame in value. Call allocate_value_lazy.
1786 * frame.c (frame_unwind_register_value): Use
1787 val_print_not_saved.
1788
1789 2020-08-31 Simon Marchi <simon.marchi@efficios.com>
1790
1791 * gdbtypes.h (NULL_TYPE): Remove, change all uses to nullptr.
1792
1793 2020-08-29 Pedro Alves <pedro@palves.net>
1794
1795 * progspace.c (print_program_space): Use all_inferiors. Switch to
1796 the inferior before calling target_pid_to_str.
1797
1798 2020-08-28 Tom Tromey <tom@tromey.com>
1799
1800 * xcoffread.c (xcoff_end_psymtab): Update comment.
1801 * dbxread.c (dbx_end_psymtab): Update comment.
1802
1803 2020-08-28 Tom de Vries <tdevries@suse.de>
1804
1805 PR breakpoint/26544
1806 * breakpoint.c (parse_breakpoint_sals): Remove const from struct
1807 event_location.
1808 (create_breakpoint): Same.
1809 (base_breakpoint_decode_location): Same.
1810 (bkpt_create_sals_from_location): Same.
1811 (bkpt_decode_location): Same.
1812 (bkpt_probe_create_sals_from_location): Same.
1813 (bkpt_probe_decode_location): Same.
1814 (tracepoint_create_sals_from_location): Same.
1815 (tracepoint_decode_location): Same.
1816 (tracepoint_probe_decode_location): Same.
1817 (strace_marker_create_sals_from_location): Same.
1818 (strace_marker_decode_location): Same.
1819 (create_sals_from_location_default): Same.
1820 (decode_location_default): Same.
1821 * breakpoint.h (struct breakpoint_ops): Same.
1822 (create_breakpoint): Same.
1823 * linespec.h (decode_line_full): Same.
1824 * linespec.c (decode_line_full): Same. Throw error if
1825 result.size () == 0.
1826
1827 2020-08-27 Pedro Alves <pedro@palves.net>
1828
1829 PR gdb/26524
1830 * breakpoint.c (until_break_fsm) <location_breakpoint,
1831 caller_breakpoint>: Delete fields.
1832 <breakpoints>: New field.
1833 <until_break_fsm>: Adjust to save a breakpoint vector instead of
1834 two individual breakpoints.
1835 (until_break_fsm::should_stop): Loop over breakpoints in the
1836 breakpoint vector.
1837 (until_break_fsm::clean_up): Adjust to clear the breakpoints
1838 vector.
1839 (until_break_command): Handle location expanding into multiple
1840 sals.
1841
1842 2020-08-27 Pedro Alves <pedro@palves.net>
1843
1844 PR gdb/26523
1845 * inline-frame.c (stopped_by_user_bp_inline_frame): Also consider
1846 bp_until breakpoints user-specified locations. Update intro
1847 comment.
1848
1849 2020-08-27 Simon Marchi <simon.marchi@polymtl.ca>
1850
1851 * gdb_bfd.h (gdb_bfd_section_iterator, gdb_bfd_section_range,
1852 gdb_bfd_sections): New.
1853 * maint.c (print_bfd_section_info): Change param type to
1854 maint_print_section_data.
1855 (print_objfile_section_info): Likewise.
1856 (print_bfd_section_info_maybe_relocated): Likewise.
1857 (maintenance_info_sections): Use gdb_bfd_sections.
1858
1859 2020-08-25 Shahab Vahedi <shahab@synopsys.com>
1860
1861 * MAINTAINERS: Add ARC target and maintainer.
1862
1863 2020-08-25 Anton Kolesov <anton.kolesov@synopsys.com>
1864
1865 * configure.tgt: ARC support for GNU/Linux.
1866 * Makefile.in (ALL_TARGET_OBJS): Likewise.
1867 * arc-linux-tdep.c: New file.
1868 * arc-tdep.h (ARC_STATUS32_L_MASK, ARC_STATUS32_DE_MASK): Declare.
1869 * arc-tdep.c (arc_write_pc): Use it.
1870
1871 2020-08-25 Shahab Vahedi <shahab@synopsys.com>
1872
1873 * arc-tdep.c (arc_check_for_hardware_loop): New.
1874 * arc-tdep.h (gdbarch_tdep): New field has_hw_loops.
1875
1876 2020-08-25 Shahab Vahedi <shahab@synopsys.com>
1877
1878 * arc-tdep.h: Include "gdbarch.h".
1879
1880 2020-08-25 Shahab Vahedi <shahab@synopsys.com>
1881
1882 * arch/arc.h
1883 (arc_gdbarch_features): New class to stir the selection of target XML.
1884 (arc_create_target_description): Use FEATURES to choose XML target.
1885 (arc_lookup_target_description): Use arc_create_target_description
1886 to create _new_ target descriptions or return the already created
1887 ones if the FEATURES is the same.
1888 * arch/arc.c: Implementation of prototypes described above.
1889 * gdb/arc-tdep.h (arc_regnum enum): Add more registers.
1890 (arc_gdbarch_features_init): Initialize the FEATURES struct.
1891 * arc-tdep.c (*_feature_name): Make feature names consistent.
1892 (arc_register_feature): A new struct to hold information about
1893 registers of a particular target/feature.
1894 (arc_check_tdesc_feature): Check if XML provides registers in
1895 compliance with ARC_REGISTER_FEATURE structs.
1896 (arc_update_acc_reg_names): Add aliases for r58 and r59.
1897 (determine_*_reg_feature_set): Which feature name to look for.
1898 (arc_gdbarch_features_init): Given MACH and ABFD, initialize FEATURES.
1899 (mach_type_to_arc_isa): Convert from a set of binutils machine types
1900 to expected ISA enums to be used in arc_gdbarch_features structs.
1901 * features/Makefile (FEATURE_XMLFILES): Add new files.
1902 * gdb/features/arc/v1-aux.c: New file.
1903 * gdb/features/arc/v1-aux.xml: Likewise.
1904 * gdb/features/arc/v1-core.c: Likewise.
1905 * gdb/features/arc/v1-core.xml: Likewise.
1906 * gdb/features/arc/v2-aux.c: Likewise.
1907 * gdb/features/arc/v2-aux.xml: Likewise.
1908 * gdb/features/arc/v2-core.c: Likewise.
1909 * gdb/features/arc/v2-core.xml: Likewise.
1910 * NEWS (Changes since GDB 9): Announce obsolence of old feature names.
1911
1912 2020-08-25 Gaius Mulley <gaiusmod2@gmail.com>
1913 Andrew Burgess <andrew.burgess@embecosm.com>
1914
1915 PR m2/26372
1916 * m2-exp.y (exp): Improve comment for non_empty_arglist case, add
1917 an assert. Remove single element array indexing pattern as the
1918 MULTI_SUBSCRIPT support will handle this case too.
1919
1920 2020-08-24 Simon Marchi <simon.marchi@polymtl.ca>
1921
1922 * value.h (valprint_check_validity): Move declaration from
1923 here...
1924 * valprint.h (valprint_check_validity): ... to here.
1925
1926 2020-08-24 Simon Marchi <simon.marchi@efficios.com>
1927
1928 * debug.h: New file.
1929 * debug.c (debug_prefixed_vprintf): New function.
1930 * infrun.c (infrun_debug_printf_1): Use debug_prefixed_vprintf.
1931 * linux-nat.c (linux_nat_debug_printf_1): Likewise.
1932
1933 2020-08-24 Simon Marchi <simon.marchi@efficios.com>
1934
1935 * infrun.h (infrun_debug_printf_1): New function declaration.
1936 (infrun_debug_printf): New macro.
1937 * infrun.c (infrun_debug_printf_1): Use infrun_debug_printf
1938 throughout.
1939 (infrun_debug_printf): New function.
1940 * breakpoint.c (should_be_inserted): Use infrun_debug_printf.
1941 (handle_jit_event): Likewise.
1942
1943 2020-08-21 Mark Wielaard <mark@klomp.org>
1944
1945 * ada-lex.l: Extend register warnings diagnostics comment for g++.
1946
1947 2020-08-22 Simon Marchi <simon.marchi@efficios.com>
1948
1949 * frame.c (enum class frame_id_status): New.
1950 (struct frame_info) <this_id::p>: Change type to frame_id_status.
1951 (fprintf_frame): Update.
1952 (compute_frame_id): Set frame id status to "computing" on entry.
1953 Set it back to "not_computed" on failure and to "computed" on
1954 success.
1955 (get_frame_id): Assert the frame id is not being computed.
1956 (create_sentinel_frame): Use frame_id_status::COMPUTED.
1957 (create_new_frame): Likewise.
1958 (frame_cleanup_after_sniffer): Update assert.
1959
1960 2020-08-20 Simon Marchi <simon.marchi@polymtl.ca>
1961
1962 * regcache.c (pid_ptid_regcache_map): New type.
1963 (target_ptid_regcache_map): Remove.
1964 (target_pid_ptid_regcache_map): New type.
1965 (regcaches): Change type to target_pid_ptid_regcache_map.
1966 (get_thread_arch_aspace_regcache): Update.
1967 (regcache_thread_ptid_changed): Update, handle pid-like ptid
1968 case.
1969 (regcaches_size): Update.
1970 (regcache_count): Update.
1971 (registers_changed_ptid_target_pid_test): New.
1972 (_initialize_regcache): Register new test.
1973
1974 2020-08-20 Simon Marchi <simon.marchi@polymtl.ca>
1975
1976 * regcache.c (regcache_count): New.
1977 (struct regcache_test_data): New.
1978 (regcache_test_data_up): New.
1979 (populate_regcaches_for_test): New.
1980 (regcaches_test): Remove.
1981 (get_thread_arch_aspace_regcache_test): New.
1982 (registers_changed_ptid_all_test): New.
1983 (registers_changed_ptid_target_test): New.
1984 (registers_changed_ptid_target_ptid_test): New.
1985 (regcache_thread_ptid_changed): Remove regcache_count lambda.
1986 (_initialize_regcache): Register new tests.
1987
1988 2020-08-20 Simon Marchi <simon.marchi@polymtl.ca>
1989
1990 * regcache.c (test_get_thread_arch_aspace_regcache): Rename to...
1991 (get_thread_arch_aspace_regcache_and_check): ... this. Remove
1992 gdbarch and aspace parameter. Use current inferior's aspace.
1993 Validate regcache's arch value.
1994 (regcaches_test): Update.
1995
1996 2020-08-20 Simon Marchi <simon.marchi@polymtl.ca>
1997
1998 * regcache.c (regcaches_test): Call registers_changed.
1999
2000 2020-08-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2001
2002 * infrun.c (process_event_stop_test): Fix typo "breapoint".
2003
2004 2020-08-19 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
2005
2006 * amd64-tdep.c (amd64_skip_prologue): Using symbol table
2007 to find the end of prologue for flang compiled binaries.
2008 * arm-tdep.c (arm_skip_prologue): Likewise.
2009 * i386-tdep.c (i386_skip_prologue): Likewise.
2010 * producer.c (producer_is_llvm): New function.
2011 (producer_parsing_tests): Added new tests for clang/flang.
2012 * producer.h (producer_is_llvm): New declaration.
2013
2014 2020-08-18 Simon Marchi <simon.marchi@efficios.com>
2015
2016 * linux-nat.c (linux_nat_debug_printf): New function.
2017 (linux_nat_debug_printf_1): New macro. Use throughout the file.
2018
2019 2020-08-18 Aaron Merey <amerey@redhat.com>
2020
2021 * Makefile.in (DEBUGINFOD_CFLAGS, DEBUGINFOD_LIBS): New variables.
2022 (INTERNAL_CFLAGS_BASE): Add DEBUGINFOD_CFLAGS.
2023 (CLIBS): Add DEBUGINFOD_LIBS.
2024
2025 2020-08-17 Sergei Trofimovich <siarheit@google.com>
2026
2027 * ia64-linux-nat.c: Include "gdbarch.h" to declare used
2028 'gdbarch_num_regs'.
2029
2030 2020-08-17 Tom Tromey <tromey@adacore.com>
2031
2032 * ada-varobj.c (ada_varobj_decode_var): Handle case where
2033 ada_get_decoded_value returns NULL.
2034
2035 2020-08-17 Tom Tromey <tromey@adacore.com>
2036
2037 * python/py-inferior.c (infpy_search_memory): Use
2038 gdb_py_object_from_ulongest.
2039 * python/py-infevents.c (create_inferior_call_event_object)
2040 (create_memory_changed_event_object): Use
2041 gdb_py_object_from_ulongest.
2042 * python/py-linetable.c (ltpy_entry_get_pc): Use
2043 gdb_py_object_from_ulongest.
2044
2045 2020-08-17 Simon Marchi <simon.marchi@polymtl.ca>
2046
2047 * loc.c (class symbol_needs_eval_context): Fix indentation.
2048
2049 2020-08-17 Simon Marchi <simon.marchi@polymtl.ca>
2050
2051 * dwarf2/loc.c (dwarf2_loc_desc_get_symbol_read_needs): Use
2052 bool.
2053
2054 2020-08-17 Tom de Vries <tdevries@suse.de>
2055
2056 PR gdb/26393
2057 * gdbtypes.c (dump_dynamic_prop): New function.
2058 (recursive_dump_type): Use dump_dynamic_prop for TYPE_CODE_RANGE.
2059
2060 2020-08-15 Tom de Vries <tdevries@suse.de>
2061
2062 PR backtrace/26390
2063 * stack.c (print_frame_args): Temporarily set the selected
2064 frame to FRAME while printing the frame's arguments.
2065
2066 2020-08-14 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
2067
2068 PR breakpoints/26385
2069 * ppc-linux-nat.c (ppc_linux_nat_target::low_prepare_to_resume):
2070 Always clear watchpoint with PTRACE_SET_DEBUGREG.
2071
2072 2020-08-14 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
2073
2074 * ppc-linux-nat.c (ppc_linux_dreg_interface::detect)
2075 (ppc_linux_nat_target::low_prepare_to_resume): Use ptrace () < 0
2076 and >= to check return value instead of == -1 and != -1.
2077
2078 2020-08-14 Simon Marchi <simon.marchi@polymtl.ca>
2079
2080 * utils.h (class gdb_argv) <as_array_view>: New method.
2081 * utils.c (gdb_argv_as_array_view_test): New.
2082 (_initialize_utils): Register selftest.
2083 * maint.c (maintenance_selftest): Use the new method.
2084
2085 2020-08-13 Kamil Rytarowski <n54@gmx.com>
2086
2087 * target.h (supports_dumpcore, dumpcore): New
2088 function declarations.
2089 * target.c (supports_dumpcore, dumpcore): New
2090 functions.
2091 * target-delegates.c: Rebuild.
2092 * gcore.c (gcore_command): Use target_supports_dumpcore ()
2093 and target_dumpcore ().
2094
2095 2020-08-13 Aaron Merey <amerey@redhat.com>
2096
2097 * debuginfod-support.c: Replace global variables with user_data.
2098
2099 2020-08-13 Simon Marchi <simon.marchi@polymtl.ca>
2100
2101 * maint.c (maintenance_selftest): Split args and pass array_view
2102 to run_tests.
2103
2104 2020-08-12 Luis Machado <luis.machado@linaro.org>
2105
2106 * value.c (check_type_length_before_alloc): Use ULONGEST to store a
2107 type's length.
2108 Use %s and pulongest to print the length.
2109
2110 2020-08-12 Pedro Alves <palves@redhat.com>
2111
2112 * NEWS: Move "Multi-target debugging support" item to the
2113 "Changes since GDB 9" section.
2114
2115 2020-08-12 Pedro Alves <palves@redhat.com>
2116
2117 PR gdb/26336
2118 * progspace.c (program_space::remove_objfile): Invalidate the
2119 frame cache.
2120
2121 2020-08-11 Tom de Vries <tdevries@suse.de>
2122
2123 * MAINTAINERS: Mark ms1 as deleted.
2124
2125 2020-08-10 Luis Machado <luis.machado@linaro.org>
2126
2127 PR gdb/26310
2128
2129 * aarch64-tdep.c (aarch64_analyze_prologue): Track use of SP/FP and
2130 act accordingly.
2131 (aarch64_analyze_prologue_test): Add more unit tests to exercise
2132 movz/str/stur/stp skipping behavior.
2133
2134 2020-08-10 Luis Machado <luis.machado@linaro.org>
2135
2136 * nat/aarch64-sve-linux-sigcontext.h (SVE_PT_REGS_OFFSET): Use
2137 struct user_sve_header instead of struct sve_context.
2138
2139 2020-08-09 Simon Marchi <simon.marchi@polymtl.ca>
2140
2141 * read.h (dwarf2_fetch_die_loc_sect_off,
2142 dwarf2_fetch_die_loc_cu_off): Replace function pointer +
2143 `void *` parameter with function_view.
2144 * read.c (dwarf2_fetch_die_loc_sect_off,
2145 dwarf2_fetch_die_loc_cu_off): Likewise.
2146 * loc.c (get_frame_pc_for_per_cu_dwarf_call): Remove.
2147 (per_cu_dwarf_call): Adjust.
2148 (get_frame_address_in_block_wrapper): Remove.
2149 (indirect_synthetic_pointer): Adjust.
2150 (get_ax_pc): Remove.
2151 (dwarf2_compile_expr_to_ax): Adjust.
2152
2153 2020-08-08 Tom de Vries <tdevries@suse.de>
2154
2155 PR build/26344
2156 * arch/riscv.c (riscv_lookup_target_description): Use an explicit
2157 constructor.
2158 * regcache.c (get_thread_arch_aspace_regcache): Same.
2159
2160 2020-08-07 Tom Tromey <tromey@adacore.com>
2161
2162 * ravenscar-thread.c
2163 (ravenscar_thread_target::set_base_thread_from_ravenscar_task):
2164 New method.
2165 (ravenscar_thread_target::wait): Check
2166 runtime_initialized.
2167 (ravenscar_thread_target::prepare_to_store)
2168 (ravenscar_thread_target::stopped_by_sw_breakpoint)
2169 (ravenscar_thread_target::stopped_by_hw_breakpoint)
2170 (ravenscar_thread_target::stopped_by_watchpoint)
2171 (ravenscar_thread_target::stopped_data_address)
2172 (ravenscar_thread_target::core_of_thread): Use
2173 scoped_restore_current_thread and
2174 set_base_thread_from_ravenscar_task.
2175
2176 2020-08-07 Tom Tromey <tromey@adacore.com>
2177
2178 * ravenscar-thread.c (update_thread_list): Set inferior_ptid.
2179
2180 2020-08-07 Tom Tromey <tromey@adacore.com>
2181
2182 * ravenscar-thread.c (ravenscar_thread_target::wait): Call
2183 update_inferior_ptid before update_thread_list.
2184 (temporarily_change_regcache_ptid): New class.
2185 (ravenscar_thread_target::fetch_registers)
2186 (ravenscar_thread_target::store_registers)
2187 (ravenscar_thread_target::prepare_to_store): Use base thread when
2188 forwarding operation.
2189
2190 2020-08-07 Tom Tromey <tromey@adacore.com>
2191
2192 * ravenscar-thread.c (ravenscar_thread_target::resume): Handle
2193 "is_pid" case.
2194
2195 2020-08-07 Tom Tromey <tromey@adacore.com>
2196
2197 * ravenscar-thread.c (xfer_partial, enable_btrace, add_thread):
2198 New methods.
2199 (ravenscar_thread_target::get_thread_base_cpu): Check m_cpu_map
2200 first.
2201 (ravenscar_thread_target::add_thread): Rename from
2202 ravenscar_add_thread.
2203 (ravenscar_thread_target::update_thread_list): Use a lambda.
2204 (ravenscar_thread_target::xfer_partial): New method.
2205
2206 2020-08-07 Tom Tromey <tromey@adacore.com>
2207
2208 * ada-lang.h (ada_task_list_iterator_ftype): Now a
2209 gdb::function_view.
2210 (iterate_over_live_ada_tasks): Change type of argument.
2211 * ada-tasks.c (iterate_over_live_ada_tasks): Change type
2212 of argument.
2213
2214 2020-08-07 Tom Tromey <tromey@adacore.com>
2215
2216 * ravenscar-thread.c (ravenscar_thread_target) <extra_thread_info>:
2217 Remove.
2218 (ravenscar_thread_target::extra_thread_info): Remove.
2219 (ravenscar_thread_target::pid_to_str): Mention Ravenscar in result;
2220 defer to target beneath for non-Ravenscar threads.
2221
2222 2020-08-07 Tom Tromey <tromey@adacore.com>
2223
2224 * ravenscar-thread.c (ravenscar_thread_target) <get_base_cpu,
2225 get_base_thread_from_ravenscar_task>: Now methods.
2226 <m_cpu_map>: New member.
2227 (ravenscar_thread_target::get_thread_base_cpu): Rename from
2228 ravenscar_get_thread_base_cpu. Check m_cpu_map.
2229 (ravenscar_thread_target::task_is_currently_active): Update.
2230 (ravenscar_thread_target::get_base_thread_from_ravenscar_task):
2231 Now a method.
2232 (ravenscar_thread_target::add_active_thread): Put initial thread
2233 into the m_cpu_map.
2234
2235 2020-08-07 Tom Tromey <tromey@adacore.com>
2236
2237 * ravenscar-thread.c (ravenscar_thread_target::wait): Return
2238 event_ptid.
2239
2240 2020-08-07 Tom Tromey <tromey@adacore.com>
2241
2242 * ravenscar-thread.c (ravenscar_thread_target::wait): Check
2243 runtime_initialized.
2244
2245 2020-08-07 Tom Tromey <tromey@adacore.com>
2246
2247 * ravenscar-thread.c (ravenscar_thread_target): Don't call
2248 add_active_thread.
2249 (ravenscar_thread_target::add_active_thread): Now public.
2250 (ravenscar_inferior_created): Call add_active_thread after pushing
2251 the target.
2252
2253 2020-08-07 Simon Marchi <simon.marchi@polymtl.ca>
2254
2255 * regcache.c (ptid_regcache_map): New type.
2256 (target_ptid_regcache_map): New type.
2257 (regcaches): Change type to target_ptid_regcache_map.
2258 (get_thread_arch_aspace_regcache): Update to regcaches' new
2259 type.
2260 (regcache_thread_ptid_changed): Likewise.
2261 (registers_changed_ptid): Likewise.
2262 (regcaches_size): Likewise.
2263 (regcaches_test): Update.
2264 (regcache_thread_ptid_changed): Update.
2265 * regcache.h (regcache_up): New type.
2266 * gdbsupport/ptid.h (hash_ptid): New struct.
2267
2268 2020-08-07 Simon Marchi <simon.marchi@efficios.com>
2269
2270 * observable.h (thread_ptid_changed): Add parameter
2271 `process_stratum_target *`.
2272 * infrun.c (infrun_thread_ptid_changed): Add parameter
2273 `process_stratum_target *` and use it.
2274 (selftests): New namespace.
2275 (infrun_thread_ptid_changed): New function.
2276 (_initialize_infrun): Register selftest.
2277 * regcache.c (regcache_thread_ptid_changed): Add parameter
2278 `process_stratum_target *` and use it.
2279 (regcache_thread_ptid_changed): New function.
2280 (_initialize_regcache): Register selftest.
2281 * thread.c (thread_change_ptid): Pass target to
2282 thread_ptid_changed observable.
2283
2284 2020-08-06 Caroline Tice <cmtice@google.com>
2285
2286 * dwarf2/read.c (struct dwo_file): Update comment on 'sections' field.
2287 (struct dwp_sections): Update field comments. Add loclists and
2288 rnglists fields.
2289 (struct virtual_v2_dwo_sections): Rename struct to
2290 'virtual_v2_or_v5_dwo_sections'; update comments at top of struct; add
2291 size & offset fields for loclists and rnglists.
2292 (struct dwp_hash_table): Add a 'v5' struct field to the union section.
2293 (create_debug_type_hash_table): Add 'DW_UT_split_type' to the check for
2294 skipping dummy type units.
2295 (create_dwp_hash_table): Update the large comment above the function to
2296 discuss Version 5 DWP files as well, with references. Update all the
2297 version checks in the function to check for version 5 as well. Add new
2298 section at the end to create dwp hash table for version 5.
2299 (create_dwp_v2_section): Rename function to
2300 'create_dwp_v2_or_v5_section'. Update function comment appropriately.
2301 Add V5 to error message text.
2302 (create_dwo_unit_in_dwp_v2): Change calls to create_dwp_v2_section
2303 into calls to create_dwp_v2_or_v5_section.
2304 (create_dwo_unit_in_dwp_v5): New function.
2305 (lookup_dwo_unit_in_dwp): Update conditional statement to explicitly
2306 check for version2; add else clause to handle version 5.
2307 (open_and_init_dwo_file): Add code to check dwarf version & only call
2308 create_debug_types_hash_table (with sections.types) if version is not 5;
2309 else call create_debug_type_hash_table, with sections.info.
2310 (dwarf2_locate_v2_dwp_sections): Update function comment to mention
2311 version 5.
2312 (dwarf2_locate_v5_dwp_sections): New function.
2313 (open_and_init_dwp_file): Add else-if clause for version 5 to call
2314 bfd_map_over_sections with dwarf2_locate_v5_dwp_sections.
2315
2316 2020-08-06 Simon Marchi <simon.marchi@efficios.com>
2317
2318 * regcache.h (class regcache): Remove friend
2319 registers_changed_ptid.
2320 <regcache_thread_ptid_changed>: Remove.
2321 <regcaches>: Remove.
2322 * regcache.c (regcache::regcaches): Rename to...
2323 (regcaches): ... this. Make static.
2324 (get_thread_arch_aspace_regcache): Update.
2325 (regcache::regcache_thread_ptid_changed): Rename to...
2326 (regcache_thread_ptid_changed): ... this. Update.
2327 (class regcache_access): Remove.
2328 (regcaches_test): Update.
2329 (_initialize_regcache): Update.
2330 * sparc64-tdep.c, dwarf2/index-write.c, record-btrace.c: Include
2331 <forward_list>.
2332
2333 2020-08-06 Simon Marchi <simon.marchi@efficios.com>
2334
2335 * regcache.h (class regcache) <current_regcache>: Rename to...
2336 <regcaches>: ... this. Move doc here.
2337 * regcache.c (regcache::current_regcache) Rename to...
2338 (regcache::regcaches): ... this. Move doc to header.
2339 (get_thread_arch_aspace_regcache): Update.
2340 (regcache::regcache_thread_ptid_changed): Update.
2341 (registers_changed_ptid): Update.
2342 (class regcache_access) <current_regcache_size>: Rename to...
2343 <regcaches_size>: ... this.
2344 (current_regcache_test): Rename to...
2345 (regcaches_test): ... this.
2346 (_initialize_regcache): Update.
2347
2348 2020-08-06 Victor Collod <vcollod@nvidia.com>
2349
2350 * amd64-tdep.c (amd64_analyze_prologue): Fix incorrect comment.
2351
2352 2020-08-05 Kevin Buettner <kevinb@redhat.com>
2353
2354 * corelow.c (core_target::build_file_mappings): Don't output
2355 null pathname in warning.
2356
2357 2020-08-05 Simon Marchi <simon.marchi@polymtl.ca>
2358
2359 * gdb.dwarf2/clztest.exp, gdb.dwarf2/dw2-common-block.exp,
2360 gdb.dwarf2/dw2-dup-frame.exp, gdb.dwarf2/dw2-reg-undefined.exp,
2361 gdb.dwarf2/dw2-single-line-discriminators.exp,
2362 dw2-undefined-ret-addr.exp: Pass nopie to compilation options.
2363
2364 2020-08-05 Tom Tromey <tromey@adacore.com>
2365
2366 PR rust/26197:
2367 * dwarf2/read.c (alloc_rust_variant): Handle univariant case.
2368 (quirk_rust_enum): Call alloc_rust_variant for univariant case.
2369 Fix off-by-one and type size errors in ordinary case.
2370
2371 2020-08-05 Tom de Vries <tdevries@suse.de>
2372
2373 * gdbtypes.c (type_not_allocated, type_not_associated): Use
2374 "prop->const_val () == 0" instead of "prop->const_val () != 0".
2375
2376 2020-08-04 Simon Marchi <simon.marchi@efficios.com>
2377
2378 * frame.h (frame_id_p): Return bool.
2379 (frame_id_artificial_p): Return bool.
2380 (frame_id_eq): Return bool.
2381 (has_stack_frames): Return bool.
2382 (get_selected_frame): Fix typo in comment.
2383 (get_frame_pc_if_available): Return bool.
2384 (get_frame_address_in_block_if_available): Return bool.
2385 (get_frame_func_if_available): Return bool.
2386 (read_frame_register_unsigned): Return bool.
2387 (get_frame_register_bytes): Return bool.
2388 (safe_frame_unwind_memory): Return bool.
2389 (deprecated_frame_register_read): Return bool.
2390 (frame_unwinder_is): Return bool.
2391 * frame.c (struct frame_info) <prev_arch::p>: Change type to
2392 bool.
2393 <this_id::p>: Likewise.
2394 <prev_p>: Likewise.
2395 (frame_stash_add): Return bool.
2396 (get_frame_id): Use bool.
2397 (frame_id_build_special) Use bool.
2398 (frame_id_build_unavailable_stack): Use bool.
2399 (frame_id_build): Use bool.
2400 (frame_id_p): Return bool, use true/false instead of 1/0.
2401 (frame_id_artificial_p): Likewise.
2402 (frame_id_eq): Likewise.
2403 (frame_id_inner): Likewise.
2404 (get_frame_func_if_available): Likewise.
2405 (read_frame_register_unsigned): Likewise.
2406 (deprecated_frame_register_read): Likewise.
2407 (get_frame_register_bytes): Likewise.
2408 (has_stack_frames): Likewise.
2409 (inside_main_func): Likewise.
2410 (inside_entry_func): Likewise.
2411 (get_frame_pc_if_available): Likewise.
2412 (get_frame_address_in_block_if_available): Likewise.
2413 (frame_unwinder_is): Likewise.
2414 (safe_frame_unwind_memory): Likewise.
2415 (frame_unwind_arch): Likewise.
2416
2417 2020-08-04 Simon Marchi <simon.marchi@efficios.com>
2418
2419 * frame.c (frame_info) <prev_func> <p>: Rename to status, change
2420 type to cached_copy_status.
2421 (fprintf_frame): Adjust.
2422 (get_frame_func_if_available): Adjust.
2423 (frame_cleanup_after_sniffer): Adjust.
2424
2425 2020-08-04 Mark Wielaard <mark@klomp.org>
2426
2427 * MAINTAINERS (Write After Approval): Update email address.
2428
2429 2020-08-04 Simon Marchi <simon.marchi@polymtl.ca>
2430
2431 * gdbtypes.h (TYPE_DYN_PROP_ADDR): Remove, replace uses with
2432 dynamic_prop::const_val.
2433
2434 2020-08-04 Simon Marchi <simon.marchi@polymtl.ca>
2435
2436 * gdbtypes.h (TYPE_DYN_PROP_KIND): Remove, replace uses with
2437 dynamic_prop::kind.
2438
2439 2020-08-04 Simon Marchi <simon.marchi@polymtl.ca>
2440
2441 * gdbtypes.h (TYPE_DYN_PROP_BATON): Remove.
2442
2443 2020-08-04 Jose E. Marchesi <jose.marchesi@oracle.com>
2444
2445 * configure.tgt: Set gdb_sim for bpf-*-* targets.
2446
2447 2020-08-04 Weimin Pan <weimin.pan@oracle.com>
2448 Jose E. Marchesi <jose.marchesi@oracle.com>
2449
2450 * configure.tgt: Add entry for bpf-*-*.
2451 * Makefile.in (ALL_TARGET_OBS): Add bpf-tdep.o
2452 (ALLDEPFILES): Add bpf-tdep.c.
2453 * bpf-tdep.c: New file.
2454 * MAINTAINERS: Add bpf target and maintainer.
2455 * NEWS: Mention the support for the new target.
2456
2457 2020-08-04 Tom de Vries <tdevries@suse.de>
2458
2459 PR symtab/23270
2460 * dwarf2/read.c (find_partial_die): Change internal error into Dwarf
2461 Error.
2462
2463 2020-08-03 John Baldwin <jhb@FreeBSD.org>
2464
2465 * syscalls/freebsd.xml: Regenerate.
2466
2467 2020-08-03 John Baldwin <jhb@FreeBSD.org>
2468
2469 * syscalls/update-freebsd.sh: Fix usage and year range.
2470
2471 2020-08-03 Tom de Vries <tdevries@suse.de>
2472
2473 PR symtab/26333
2474 * dwarf2/read.c (dwarf_decode_lines_1): Ignore
2475 DW_LNE_lo_user/DW_LNE_hi_user range.
2476
2477 2020-07-30 Simon Marchi <simon.marchi@polymtl.ca>
2478
2479 PR ada/26318
2480 * ada-lang.c (ada_modulus): Return 0 if property is not of const
2481 kind.
2482
2483 2020-07-30 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2484
2485 * breakpoint.c (set_breakpoint_condition): Do minor refactoring.
2486
2487 2020-07-30 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2488
2489 * breakpoint.c (set_breakpoint_condition): Update the condition
2490 expressions after checking that the input condition string parses
2491 successfully and does not contain junk at the end.
2492
2493 2020-07-30 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2494
2495 * breakpoint.c (set_breakpoint_condition): Update the
2496 condition string after parsing the new condition successfully.
2497
2498 2020-07-30 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
2499
2500 * proc-api.c (_STRUCTURED_PROC): Don't define.
2501 * proc-events.c: Likewise.
2502 * proc-flags.c: Likewise.
2503 * proc-why.c: Likewise.
2504 * procfs.c: Likewise.
2505
2506 * Makefile.in (INTERNAL_CPPFLAGS): Add LARGEFILE_CPPFLAGS.
2507 * configure, config.in: Regenerate.
2508
2509 2020-07-30 Tom de Vries <tdevries@suse.de>
2510
2511 PR build/26320
2512 * ui-style.h (struct ui_file_style::color): Wrap m_value and
2513 m_red/m_green/m_blue in a union.
2514
2515 2020-07-29 Tom de Vries <tdevries@suse.de>
2516
2517 PR tdep/26280
2518 * s390-tdep.c (s390_displaced_step_fixup): Fix Wmaybe-uninitialized.
2519
2520 2020-07-28 Tom Tromey <tromey@adacore.com>
2521
2522 PR symtab/26270:
2523 * symtab.h (find_pc_partial_function_sym): Declare.
2524 * cli/cli-cmds.c (disassemble_command): Use
2525 find_pc_partial_function_sym. Check asm_demangle.
2526 * blockframe.c (cache_pc_function_sym): New global.
2527 (cache_pc_function_name): Remove.
2528 (clear_pc_function_cache): Update.
2529 (find_pc_partial_function_sym): New function, from
2530 find_pc_partial_function.
2531 (find_pc_partial_function): Rewrite using
2532 find_pc_partial_function_sym.
2533
2534 2020-07-28 Tom Tromey <tromey@adacore.com>
2535
2536 * cli/cli-cmds.c (_initialize_cli_cmds): Rearrange "disassemble"
2537 help. Add usage.
2538
2539 2020-07-28 Tom Tromey <tromey@adacore.com>
2540
2541 * dwarf2/expr.c (dwarf_expr_context::execute_stack_op)
2542 <DW_OP_GNU_variable_value>: Cast to address type.
2543
2544 2020-07-28 Kamil Rytarowski <n54@gmx.com>
2545
2546 * nbsd-nat.h (nbsd_nat_target::xfer_partial): New declaration.
2547 * nbsd-nat.c (nbsd_nat_target::xfer_partial): New function.
2548 * nbsd-tdep.c (nbsd_gdbarch_data_handle, struct nbsd_gdbarch_data)
2549 (init_nbsd_gdbarch_data, get_nbsd_gdbarch_data)
2550 (nbsd_get_siginfo_type): New.
2551 (nbsd_init_abi): Install gdbarch "get_siginfo_type" method.
2552 (_initialize_nbsd_tdep): New.
2553
2554 2020-07-28 H.J. Lu <hongjiu.lu@intel.com>
2555
2556 PR binutils/26301
2557 * configure: Regenerated.
2558
2559 2020-07-28 H.J. Lu <hongjiu.lu@intel.com>
2560
2561 PR binutils/26301
2562 * configure: Regenerated.
2563
2564 2020-07-28 Andrew Burgess <andrew.burgess@embecosm.com>
2565
2566 * python/py-frame.c: Remove 'user-regs.h' include.
2567 (frapy_read_register): Rewrite to make use of
2568 gdbpy_parse_register_id.
2569 * python/py-registers.c (gdbpy_parse_register_id): New function,
2570 moved here from python/py-unwind.c. Updated the return type, and
2571 also accepts register descriptor objects.
2572 * python/py-unwind.c: Remove 'user-regs.h' include.
2573 (pyuw_parse_register_id): Moved to python/py-registers.c.
2574 (unwind_infopy_add_saved_register): Update to use
2575 gdbpy_parse_register_id.
2576 (pending_framepy_read_register): Likewise.
2577 * python/python-internal.h (gdbpy_parse_register_id): Declare.
2578
2579 2020-07-28 Andrew Burgess <andrew.burgess@embecosm.com>
2580
2581 * python/py-registers.c: Add 'user-regs.h' include.
2582 (register_descriptor_iter_find): New function.
2583 (register_descriptor_iterator_object_methods): New static global
2584 methods array.
2585 (register_descriptor_iterator_object_type): Add pointer to methods
2586 array.
2587
2588 2020-07-27 John Baldwin <jhb@FreeBSD.org>
2589
2590 * fbsd-nat.h: Include <osreldate.h>. Define USE_SIGTRAP_SIGINFO
2591 for all architectures on FreeBSD 11.3 and later.
2592
2593 2020-07-27 Tom Tromey <tromey@adacore.com>
2594
2595 * gcore.h (load_corefile): Don't declare.
2596
2597 2020-07-27 Tom de Vries <tdevries@suse.de>
2598
2599 * configure.ac: Fix sys/sockets.h -> sys/socket.h typo.
2600 * config.in: Regenerate.
2601 * configure: Regenerate.
2602
2603 2020-07-26 Eli Zaretskii <eliz@gnu.org>
2604
2605 * configure.ac (AC_CHECK_HEADERS): Check for sys/socket.h and
2606 ws2tcpip.h. When checking whether socklen_t type is defined, use
2607 ws2tcpip.h if it is available and sys/socket.h isn't.
2608 * configure: Regenerate.
2609 * config.in: Regenerate.
2610
2611 2020-07-25 Andrew Burgess <andrew.burgess@embecosm.com>
2612
2613 PR fortran/23051
2614 PR fortran/26139
2615 * valops.c (value_ind): Pass address to
2616 readjust_indirect_value_type.
2617 * value.c (readjust_indirect_value_type): Make parameter
2618 non-const, and add extra address parameter. Resolve original type
2619 before using it.
2620 * value.h (readjust_indirect_value_type): Update function
2621 signature and comment.
2622
2623 2020-07-25 Tom de Vries <tdevries@suse.de>
2624
2625 PR symtab/26243
2626 * dwarf2/read.c (lnp_state_machine::record_line): Ignore zero line
2627 entries.
2628
2629 2020-07-24 Aaron Merey <amerey@redhat.com>
2630
2631 * Makefile.in: Replace LIBDEBUGINFOD with DEBUGINFOD_LIBS.
2632 * configure: Rebuild.
2633
2634 2020-07-23 Kevin Buettner <kevinb@redhat.com>
2635
2636 PR corefiles/26294
2637 * corelow.c (_initialize_corelow): Add period to help text
2638 for "maintenance print core-file-backed-mappings".
2639
2640 2020-07-23 Pedro Alves <pedro@palves.net>
2641
2642 * frame-unwind.c (frame_unwind_try_unwinder): On exception, don't
2643 touch THIS_CACHE/THIS_FRAME if the frame cache was cleared
2644 meanwhile.
2645 * frame.c (frame_cache_generation, get_frame_cache_generation):
2646 New.
2647 (reinit_frame_cache): Increment FRAME_CACHE_GENERATION.
2648 (get_prev_frame_if_no_cycle): On exception, don't touch
2649 PREV_FRAME/THIS_FRAME if the frame cache was cleared meanwhile.
2650 * frame.h (get_frame_cache_generation): Declare.
2651
2652 2020-07-23 Tom de Vries <tdevries@suse.de>
2653
2654 PR tui/26282
2655 * tui/tui-winsource.h (struct tui_source_windows::tui_source_windows):
2656 New default constructor.
2657
2658 2020-07-23 Andrew Burgess <andrew.burgess@embecosm.com>
2659
2660 * disasm.c (do_mixed_source_and_assembly_deprecated): Don't
2661 exclude non-statement entries.
2662
2663 2020-07-22 Kevin Buettner <kevinb@redhat.com>
2664
2665 * NEWS (New commands): Mention new command
2666 "maintenance print core-file-backed-mappings".
2667
2668 2020-07-22 Kevin Buettner <kevinb@redhat.com>
2669
2670 * corelow.c (gdbcmd.h): Include.
2671 (core_target::info_proc_mappings): New method.
2672 (get_current_core_target): New function.
2673 (maintenance_print_core_file_backed_mappings): New function.
2674 (_initialize_corelow): Add core-file-backed-mappings to
2675 "maint print" commands.
2676
2677 2020-07-22 Kevin Buettner <kevinb@redhat.com>
2678
2679 * linux-tdep.c (dump_note_entry_p): New function.
2680 (linux_dump_mapping_p_ftype): New typedef.
2681 (linux_find_memory_regions_full): Add new parameter,
2682 should_dump_mapping_p.
2683 (linux_find_memory_regions): Adjust call to
2684 linux_find_memory_regions_full.
2685 (linux_make_mappings_core_file_notes): Use dump_note_entry_p in
2686 call to linux_find_memory_regions_full.
2687
2688 2020-07-22 Kevin Buettner <kevinb@redhat.com>
2689
2690 * corelow.c (solist.h, unordered_map): Include.
2691 (class core_target): Add field m_core_file_mappings and
2692 method build_file_mappings.
2693 (core_target::core_target): Call build_file_mappings.
2694 (core_target::~core_target): Free memory associated with
2695 m_core_file_mappings.
2696 (core_target::build_file_mappings): New method.
2697 (core_target::xfer_partial): Use m_core_file_mappings
2698 for memory transfers.
2699 * linux-tdep.c (linux_read_core_file_mappings): New
2700 function.
2701 (linux_core_info_proc_mappings): Rewrite to use
2702 linux_read_core_file_mappings.
2703 (linux_init_abi): Register linux_read_core_file_mappings.
2704
2705 2020-07-22 Kevin Buettner <kevinb@redhat.com>
2706
2707 * arch-utils.c (default_read_core_file_mappings): New function.
2708 * arch-utils.c (default_read_core_file_mappings): Declare.
2709 * gdbarch.sh (read_core_file_mappings): New gdbarch method.
2710 * gdbarch.h, gdbarch.c: Regenerate.
2711
2712 2020-07-22 Kevin Buettner <kevinb@redhat.com>
2713
2714 PR corefiles/25631
2715 * corelow.c (core_target:xfer_partial): Revise
2716 TARGET_OBJECT_MEMORY case to consider non-SEC_HAS_CONTENTS
2717 case after first checking the stratum beneath the core
2718 target.
2719 (has_all_memory): Return true.
2720 * target.c (raw_memory_xfer_partial): Revise comment
2721 regarding use of has_all_memory.
2722
2723 2020-07-22 Kevin Buettner <kevinb@redhat.com>
2724
2725 * exec.h (section_table_xfer_memory): Revise declaration,
2726 replacing section name parameter with an optional callback
2727 predicate.
2728 * exec.c (section_table_xfer_memory): Likewise.
2729 * bfd-target.c, exec.c, target.c, corelow.c: Adjust all callers
2730 of section_table_xfer_memory.
2731
2732 2020-07-22 Tom Tromey <tromey@adacore.com>
2733
2734 * mi/mi-cmd-stack.c (list_args_or_locals): Use
2735 lookup_symbol_search_name.
2736
2737 2020-07-22 Andrew Burgess <andrew.burgess@embecosm.com>
2738
2739 * python/py-registers.c (gdbpy_register_object_data_init): Remove
2740 redundant local variable.
2741 (gdbpy_get_register_descriptor): Extract descriptor vector as a
2742 reference, not pointer, update code accordingly.
2743
2744 2020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
2745 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2746
2747 * objfiles.h (struct objfile) <skip_jit_symbol_lookup>: New field.
2748 * jit.c (jit_breakpoint_re_set_internal): Use the
2749 `skip_jit_symbol_lookup` field.
2750
2751 2020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
2752 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2753
2754 * jit.c (jit_read_descriptor): Define the descriptor address once,
2755 use twice.
2756 (jit_breakpoint_deleted): Move the declaration of the loop variable
2757 `iter` into the loop header.
2758 (jit_breakpoint_re_set_internal): Move the declaration of the local
2759 variable `objf_data` to the first point of definition.
2760 (jit_event_handler): Move the declaration of local variables
2761 `code_entry`, `entry_addr`, and `objf` to their first point of use.
2762 Rename `objf` to `jited`.
2763
2764 2020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
2765
2766 * jit.h (struct jiter_objfile_data) <jiter_objfile_data, objfile>:
2767 Remove.
2768 * jit.c (get_jiter_objfile_data): Update.
2769
2770 2020-07-22 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2771 Simon Marchi <simon.marchi@polymtl.ca>
2772
2773 * jit.c (struct jit_program_space_data): Remove.
2774 (jit_program_space_key): Remove.
2775 (jiter_objfile_data::~jiter_objfile_data): Remove program space
2776 stuff.
2777 (get_jit_program_space_data): Remove.
2778 (jit_breakpoint_deleted): Iterate on all of the program space's
2779 objfiles.
2780 (jit_inferior_init): Likewise.
2781 (jit_breakpoint_re_set_internal): Likewise. Also change return
2782 type to void.
2783 (jit_breakpoint_re_set): Pass current_program_space to
2784 jit_breakpoint_re_set_internal.
2785
2786 2020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
2787
2788 * jit.h (struct jiter_objfile_data) <cached_code_address,
2789 jit_breakpoint>: Move to here from ...
2790 * jit.c (jit_program_space_data): ... here.
2791 (jiter_objfile_data::~jiter_objfile_data): Update.
2792 (jit_breakpoint_deleted): Update.
2793 (jit_breakpoint_re_set_internal): Update.
2794
2795 2020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
2796
2797 * jit.c (jiter_objfile_data::~jiter_objfile_data): Remove some
2798 checks.
2799 (jit_read_descriptor): Remove NULL check.
2800 (jit_event_handler): Add an assertion.
2801
2802 2020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
2803
2804 * jit.h (struct jit_objfile_data): Split into...
2805 (struct jiter_objfile_data): ... this ...
2806 (struct jited_objfile_data): ... and this.
2807 * objfiles.h (struct objfile) <jit_data>: Remove.
2808 <jiter_data, jited_data>: New fields.
2809 * jit.c (jit_objfile_data::~jit_objfile_data): Rename to ...
2810 (jiter_objfile_data::~jiter_objfile_data): ... this.
2811 (get_jit_objfile_data): Rename to ...
2812 (get_jiter_objfile_data): ... this.
2813 (add_objfile_entry): Update.
2814 (jit_read_descriptor): Use get_jiter_objfile_data.
2815 (jit_find_objf_with_entry_addr): Use objfile's jited_data field.
2816 (jit_breakpoint_re_set_internal): Use get_jiter_objfile_data.
2817 (jit_inferior_exit_hook): Use objfile's jited_data field.
2818
2819 2020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
2820
2821 * jit.h: Forward-declare `struct minimal_symbol`.
2822 (struct jit_objfile_data): Migrate to here from jit.c; also add a
2823 constructor, destructor, and an objfile* field.
2824 * jit.c (jit_objfile_data): Remove.
2825 (struct jit_objfile_data): Migrate from here to jit.h.
2826 (jit_objfile_data::~jit_objfile_data): New destructor
2827 implementation with code moved from free_objfile_data.
2828 (free_objfile_data): Delete.
2829 (get_jit_objfile_data): Update to use the jit_data field of objfile.
2830 (jit_find_objf_with_entry_addr): Ditto.
2831 (jit_inferior_exit_hook): Ditto.
2832 (_initialize_jit): Remove the call to
2833 register_objfile_data_with_cleanup.
2834 * objfiles.h (struct objfile) <jit_data>: New field.
2835
2836 2020-07-22 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2837
2838 * jit.h: Forward-declare `struct objfile`.
2839 (jit_event_handler): Add a second parameter, the JITer objfile.
2840 * jit.c (jit_read_descriptor): Change the signature to take the
2841 JITer objfile as an argument instead of the jit_program_space_data.
2842 (jit_inferior_init): Update the call to jit_read_descriptor.
2843 (jit_event_handler): Use the new JITer objfile argument when calling
2844 jit_read_descriptor.
2845 * breakpoint.c (handle_jit_event): Update the call to
2846 jit_event_handler to pass the JITer objfile.
2847
2848 2020-07-21 John Baldwin <jhb@FreeBSD.org>
2849
2850 * gdbarch.c: Regenerate.
2851 * gdbarch.h: Regenerate.
2852 * gdbarch.sh (handle_segmentation_fault): Remove method.
2853 * infrun.c (handle_segmentation_fault): Remove.
2854 (print_signal_received_reason): Remove call to
2855 handle_segmentation_fault.
2856
2857 2020-07-21 John Baldwin <jhb@FreeBSD.org>
2858
2859 * sparc64-linux-tdep.c (sparc64_linux_handle_segmentation_fault):
2860 Rename to sparc64_linux_report_signal_info and add siggnal
2861 argument.
2862 (sparc64_linux_init_abi): Use sparc64_linux_report_signal_info
2863 instead of sparc64_linux_handle_segmentation_fault.
2864
2865 2020-07-21 John Baldwin <jhb@FreeBSD.org>
2866
2867 * amd64-linux-tdep.c (amd64_linux_init_abi_common): Use
2868 i386_linux_report_signal_info instead of
2869 i386_linux_handle_segmentation_fault.
2870 * i386-linux-tdep.c (i386_linux_handle_segmentation_fault): Rename
2871 to i386_linux_report_signal_info and add siggnal argument.
2872 (i386_linux_init_abi): Use i386_linux_report_signal_info instead
2873 of i386_linux_handle_segmentation_fault.
2874 * i386-linux-tdep.h (i386_linux_handle_segmentation_fault): Rename
2875 to i386_linux_report_signal_info and add siggnal argument.
2876
2877 2020-07-21 John Baldwin <jhb@FreeBSD.org>
2878
2879 * corelow.c (core_target_open): Invoke gdbarch report_signal_info
2880 hook if present.
2881
2882 2020-07-21 John Baldwin <jhb@FreeBSD.org>
2883
2884 * gdbarch.c: Regenerate.
2885 * gdbarch.h: Regenerate.
2886 * gdbarch.sh (report_signal_info): New method.
2887 * infrun.c (print_signal_received_reason): Invoke gdbarch
2888 report_signal_info hook if present.
2889
2890 2020-07-21 Andrew Burgess <andrew.burgess@embecosm.com>
2891
2892 * python/py-registers.c : Add 'unordered_map' include.
2893 (gdbpy_new_reggroup): Renamed to...
2894 (gdbpy_get_reggroup): ...this. Update to only create register
2895 group descriptors when needed.
2896 (gdbpy_reggroup_iter_next): Update.
2897
2898 2020-07-21 Andrew Burgess <andrew.burgess@embecosm.com>
2899
2900 * python/py-registers.c (gdbpy_register_object_data): New static
2901 global.
2902 (gdbpy_register_object_data_init): New function.
2903 (gdbpy_new_register_descriptor): Renamed to...
2904 (gdbpy_get_register_descriptor): ...this, and update to reuse
2905 existing register descriptors where possible.
2906 (gdbpy_register_descriptor_iter_next): Update.
2907 (gdbpy_initialize_registers): Register new gdbarch data.
2908
2909 2020-07-21 Simon Marchi <simon.marchi@efficios.com>
2910
2911 * linux-nat.c (stopped_pids): Make static.
2912
2913 2020-07-21 Simon Marchi <simon.marchi@polymtl.ca>
2914
2915 PR ada/26235
2916 * gdbtypes.c (ada_discrete_type_low_bound,
2917 ada_discrete_type_high_bound): Handle undefined bounds.
2918
2919 2020-07-21 Kamil Rytarowski <n54@gmx.com>
2920
2921 * nbsd-nat.h (nbsd_nat_target::supports_multi_process): New
2922 declaration.
2923 * nbsd-nat.c (nbsd_nat_target::supports_multi_process): New
2924 function.
2925
2926 2020-07-20 John Baldwin <jhb@FreeBSD.org>
2927
2928 * fbsd-tdep.c (fbsd_skip_solib_resolver): New function.
2929 (fbsd_init_abi): Install gdbarch "skip_solib_resolver" method.
2930 * fbsd-tdep.h (fbsd_skip_solib_resolver): New prototype.
2931 * mips-fbsd-tdep.c (mips_fbsd_skip_solib_resolver): New function.
2932 (mips_fbsd_init_abi): Install gdbarch "skip_solib_resolver"
2933 method.
2934
2935 2020-07-20 Ludovic Courtès <ludo@gnu.org>
2936
2937 * guile/scm-math.c (vlscm_integer_fits_p): Use 'uintmax_t'
2938 and 'intmax_t' instead of 'scm_t_uintmax' and 'scm_t_intmax',
2939 which are deprecated in Guile 3.0.
2940 * configure.ac (try_guile_versions): Add "guile-3.0".
2941 * configure (try_guile_versions): Regenerate.
2942 * NEWS: Update entry.
2943
2944 2020-07-20 Ludovic Courtès <ludo@gnu.org>
2945 Doug Evans <dje@google.com>
2946
2947 PR gdb/21104
2948 * guile/scm-ports.c (USING_GUILE_BEFORE_2_2): New macro.
2949 (ioscm_memory_port)[read_buf_size, write_buf_size]: Wrap in #if
2950 USING_GUILE_BEFORE_2_2.
2951 (stdio_port_desc, memory_port_desc) [!USING_GUILE_BEFORE_2_2]:
2952 Change type to 'scm_t_port_type *'.
2953 (natural_buffer_size) [!USING_GUILE_BEFORE_2_2]: New variable.
2954 (ioscm_open_port) [USING_GUILE_BEFORE_2_2]: Add 'stream'
2955 parameter and honor it. Update callers.
2956 (ioscm_open_port) [!USING_GUILE_BEFORE_2_2]: New function.
2957 (ioscm_read_from_port, ioscm_write) [!USING_GUILE_BEFORE_2_2]: New
2958 functions.
2959 (ioscm_fill_input, ioscm_input_waiting, ioscm_flush): Wrap in #if
2960 USING_GUILE_BEFORE_2_2.
2961 (ioscm_init_gdb_stdio_port) [!USING_GUILE_BEFORE_2_2]: Use
2962 'ioscm_read_from_port'. Call 'scm_set_port_read_wait_fd'.
2963 (ioscm_init_stdio_buffers) [!USING_GUILE_BEFORE_2_2]: New function.
2964 (gdbscm_stdio_port_p) [!USING_GUILE_BEFORE_2_2]: Use 'SCM_PORTP'
2965 and 'SCM_PORT_TYPE'.
2966 (gdbscm_memory_port_end_input, gdbscm_memory_port_seek)
2967 (ioscm_reinit_memory_port): Wrap in #if USING_GUILE_BEFORE_2_2.
2968 (gdbscm_memory_port_read, gdbscm_memory_port_write)
2969 (gdbscm_memory_port_seek, gdbscm_memory_port_close)
2970 [!USING_GUILE_BEFORE_2_2]: New functions.
2971 (gdbscm_memory_port_print): Remove use of 'SCM_PTOB_NAME'.
2972 (ioscm_init_memory_port_type) [!USING_GUILE_BEFORE_2_2]: Use
2973 'gdbscm_memory_port_read'.
2974 Wrap 'scm_set_port_end_input', 'scm_set_port_flush', and
2975 'scm_set_port_free' calls in #if USING_GUILE_BEFORE_2_2.
2976 (gdbscm_get_natural_buffer_sizes) [!USING_GUILE_BEFORE_2_2]: New
2977 function.
2978 (ioscm_init_memory_port): Remove.
2979 (ioscm_init_memory_port_stream): New function
2980 (ioscm_init_memory_port_buffers) [USING_GUILE_BEFORE_2_2]: New
2981 function.
2982 (gdbscm_memory_port_read_buffer_size) [!USING_GUILE_BEFORE_2_2]:
2983 Return scm_from_uint (0).
2984 (gdbscm_set_memory_port_read_buffer_size_x)
2985 [!USING_GUILE_BEFORE_2_2]: Call 'scm_setvbuf'.
2986 (gdbscm_memory_port_write_buffer_size) [!USING_GUILE_BEFORE_2_2]:
2987 Return scm_from_uint (0).
2988 (gdbscm_set_memory_port_write_buffer_size_x)
2989 [!USING_GUILE_BEFORE_2_2]: Call 'scm_setvbuf'.
2990 * configure.ac (try_guile_versions): Add "guile-2.2".
2991 * configure: Regenerate.
2992 * NEWS: Add entry.
2993
2994 2020-07-18 Tom Tromey <tom@tromey.com>
2995
2996 * linux-nat.c (linux_multi_process): Remove.
2997 (linux_nat_target::supports_multi_process): Return true.
2998
2999 2020-07-17 Andrew Burgess <andrew.burgess@embecosm.com>
3000
3001 * arch/riscv.c (riscv_tdesc_cache): Change map type.
3002 (riscv_lookup_target_description): Return pointer out of
3003 unique_ptr.
3004 * target-descriptions.c (allocate_target_description): Add
3005 comment.
3006 (target_desc_deleter::operator()): Likewise.
3007 * target-descriptions.h (struct target_desc_deleter): Moved to
3008 gdbsupport/tdesc.h.
3009 (target_desc_up): Likewise.
3010
3011 2020-07-17 Tom Tromey <tromey@adacore.com>
3012
3013 * linux-nat.c (linux_nat_target::supports_non_stop)
3014 (linux_nat_target::always_non_stop_p): Use "true".
3015 (linux_nat_target::supports_disable_randomization): Use "true" and
3016 "false".
3017
3018 2020-07-16 Caroline Tice <cmtice@google.com>
3019
3020 * dwarf2/read.c (RNGLIST_HEADER_SIZE32) New constant definition.
3021 (RNGLIST_HEADER_SIZE64): New constant definition.
3022 (struct dwop_section_names): Add rnglists_dwo.
3023 (dwop_section_names): Add .debug_rnglists.dwo, .zdebug_rnglists.dwo.
3024 (struct loclist_header): Rename to 'loclists_rnglists_header'.
3025 (struct dwo_sections): Add rnglists field.
3026 (read_attribut_reprocess): Add tag parameter.
3027 (dwarf2_ranges_read): Add tag parameter & remove forward function decl.
3028 (cu_debug_rnglists_section): New function (decl & definition).
3029 (dwarf2_locate_dwo_sections): Add code to read rnglists_dwo section.
3030 (dwarf2_rnglists_process): Add a dwarf_tag parameter, for the kind of
3031 die whose range is being checked; get rnglist section from
3032 cu_debug_rnglists_section, to get from either objfile or dwo file as
3033 appropriate. Add cases for DW_RLE_base_addressx,
3034 DW_RLE_startx_length, DW_RLE_startx_endx. Also, update to only add
3035 the base address to DW_RLE_offset_pairs (not to all ranges), moving
3036 test inside if-condition and updating complaint message.
3037 (dwarf2_ranges_process): Add dwarf tag parameter and pass it to
3038 dwarf2_rnglists_process.
3039 (dwarf2_ranges_read): Add dwarf tag parameter and pass it to
3040 dwarf2_ranges_process.
3041 (dwarf2_get_pc_bounds): Check for DW_FORM_rnglistx when setting
3042 need_ranges_base and update comment appropriately. Also pass die tag
3043 to dwarf2_ranges_read.
3044 (dwarf2_record_block_ranges): Check for DW_FORM_rnglistx when setting
3045 need_ranges_base and update comment appropriately. Also pass die tag
3046 to dwarf2_ranges_process.
3047 (read_full_die_1): Add code to read DW_AT_rnglists_base and assign to
3048 cu->ranges_base. Also pass die tag to read_attribute_reprocess.
3049 (partial_die_info::read): Check for DW_FORM_rnglistx when setting
3050 need_ranges_base and update comment appropriately. Also pass die tag
3051 to read_attribute_reprocess and dwarf2_ranges_read.
3052 (read_loclist_header): Rename function to read_loclists_rnglists_header,
3053 and update function comment appropriately.
3054 (read_loclist_index): Call read_loclists_rnglists_header instead of
3055 read_loclist_header.
3056 (read_rnglist_index): New function.
3057 (read_attribute_reprocess): Add tag parameter. Add code for
3058 DW_FORM_rnglistx, passing tag to read_rnglist_index.
3059 (read_attribute_value): Mark DW_FORM_rnglistx with need_reprocess.
3060
3061 2020-07-15 Andrew Burgess <andrew.burgess@embecosm.com>
3062
3063 * f-typeprint.c (f_type_print_base): Allow for dynamic types not
3064 being resolved.
3065
3066 2020-07-14 Andrew Burgess <andrew.burgess@embecosm.com>
3067
3068 * arch-utils.c (show_architecture): Update formatting of messages.
3069
3070 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
3071
3072 * gdbtypes.h (struct type) <bounds>: Handle array and string
3073 types.
3074 * ada-lang.c (assign_aggregate): Use type::bounds on
3075 array/string type.
3076 * c-typeprint.c (c_type_print_varspec_suffix): Likewise.
3077 * c-varobj.c (c_number_of_children): Likewise.
3078 (c_describe_child): Likewise.
3079 * eval.c (evaluate_subexp_for_sizeof): Likewise.
3080 * f-typeprint.c (f_type_print_varspec_suffix): Likewise.
3081 (f_type_print_base): Likewise.
3082 * f-valprint.c (f77_array_offset_tbl): Likewise.
3083 (f77_get_upperbound): Likewise.
3084 (f77_print_array_1): Likewise.
3085 * guile/scm-type.c (gdbscm_type_range): Likewise.
3086 * m2-typeprint.c (m2_array): Likewise.
3087 (m2_is_long_set_of_type): Likewise.
3088 * m2-valprint.c (get_long_set_bounds): Likewise.
3089 * p-typeprint.c (pascal_type_print_varspec_prefix): Likewise.
3090 * python/py-type.c (typy_range): Likewise.
3091 * rust-lang.c (rust_internal_print_type): Likewise.
3092 * type-stack.c (type_stack::follow_types): Likewise.
3093 * valarith.c (value_subscripted_rvalue): Likewise.
3094 * valops.c (value_cast): Likewise.
3095
3096 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
3097
3098 * gdbtypes.c (TYPE_ARRAY_BIT_STRIDE): Remove. Update all
3099 callers to use the equivalent accessor methods.
3100
3101 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
3102
3103 * gdbtypes.h (struct range_bounds) <bit_stride>: New method.
3104 (struct type) <bit_stride>: New method.
3105 (TYPE_BIT_STRIDE): Remove.
3106 * gdbtypes.c (update_static_array_size): Use type::bit_stride.
3107
3108 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
3109
3110 * gdbtypes.h (TYPE_ARRAY_LOWER_BOUND_VALUE,
3111 TYPE_ARRAY_UPPER_BOUND_VALUE): Remove. Update all
3112 callers to use the equivalent accessor methods instead.
3113
3114 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
3115
3116 * gdbtypes.h (TYPE_ARRAY_UPPER_BOUND_IS_UNDEFINED,
3117 TYPE_ARRAY_LOWER_BOUND_IS_UNDEFINED): Remove. Update all
3118 callers to use the equivalent accessor methods instead.
3119
3120 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
3121
3122 * gdbtypes.h (TYPE_LOW_BOUND_KIND,
3123 TYPE_HIGH_BOUND_KIND): Remove. Update all callers
3124 to use dynamic_prop::kind.
3125
3126 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
3127
3128 * gdbtypes.h (TYPE_LOW_BOUND_UNDEFINED,
3129 TYPE_HIGH_BOUND_UNDEFINED): Remove. Update all callers
3130 to get the bound property's kind and check against
3131 PROP_UNDEFINED.
3132
3133 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
3134
3135 * gdbtypes.h (TYPE_LOW_BOUND, TYPE_HIGH_BOUND): Remove. Update
3136 all callers to use type::range_bounds followed by
3137 dynamic_prop::{low,high}.
3138
3139 2020-07-12 Simon Marchi <simon.marchi@polymtl.ca>
3140
3141 * gdbtypes.h (struct dynamic_prop) <kind, set_undefined,
3142 const_val, set_const_val, baton, set_locexpr, set_loclist,
3143 set_addr_offset, variant_parts, set_variant_parts,
3144 original_type, set_original_type>: New methods.
3145 <kind>: Rename to...
3146 <m_kind>: ... this. Update all users to use the new methods
3147 instead.
3148 <data>: Rename to...
3149 <m_data>: ... this. Update all users to use the new methods
3150 instead.
3151
3152 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
3153
3154 * gdbtypes.c (get_discrete_bounds): Return failure if
3155 the range type's bounds are not both defined and constant
3156 values.
3157 (get_array_bounds): Update comment. Remove undefined bound check.
3158
3159 2020-07-12 Simon Marchi <simon.marchi@polymtl.ca>
3160
3161 * gdbtypes.h (TYPE_RANGE_DATA): Remove. Update callers to use
3162 the type::bounds method directly.
3163
3164 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
3165
3166 * gdbtypes.h (struct type) <bounds, set_bounds>: New methods.
3167 (TYPE_RANGE_DATA): Use type::bounds. Change all uses that
3168 are used to set the range type's bounds to use set_bounds.
3169
3170 2020-07-11 Philippe Waroquiers <philippe.waroquiers@skynet.be>
3171
3172 * exec.c (_initialize_exec): Update exec-file-mismatch help.
3173
3174 2020-07-10 Pedro Alves <pedro@palves.net>
3175
3176 * gdbthread.h (inferior_ref): Define.
3177 (scoped_restore_current_thread) <m_thread>: Now a thread_info_ref.
3178 (scoped_restore_current_thread) <m_inf>: Now an inferior_ref.
3179 * thread.c
3180 (scoped_restore_current_thread::restore):
3181 Adjust to gdb::ref_ptr.
3182 (scoped_restore_current_thread::~scoped_restore_current_thread):
3183 Remove manual decref handling.
3184 (scoped_restore_current_thread::scoped_restore_current_thread):
3185 Adjust to use
3186 inferior_ref::new_reference/thread_info_ref::new_reference.
3187 Incref the thread before calling get_frame_id instead of after.
3188 Let TARGET_CLOSE_ERROR propagate.
3189
3190 2020-07-10 Pedro Alves <pedro@palves.net>
3191
3192 * frame-tailcall.c (dwarf2_tailcall_sniffer_first): Only swallow
3193 NO_ENTRY_VALUE_ERROR / MEMORY_ERROR / OPTIMIZED_OUT_ERROR /
3194 NOT_AVAILABLE_ERROR.
3195 * value.c (value_optimized_out): Only swallow MEMORY_ERROR /
3196 OPTIMIZED_OUT_ERROR / NOT_AVAILABLE_ERROR.
3197
3198 2020-07-10 Simon Marchi <simon.marchi@polymtl.ca>
3199 Pedro Alves <pedro@palves.net>
3200
3201 PR gdb/26199
3202 * infrun.c (threads_are_resumed_pending_p): Delete.
3203 (do_target_wait): Remove threads_are_executing and
3204 threads_are_resumed_pending_p checks from the inferior_matches
3205 lambda. Update comments.
3206
3207 2020-07-10 Pedro Alves <pedro@palves.net>
3208
3209 PR gdb/26199
3210 * infrun.c (handle_no_resumed): Transfer terminal to inferior with
3211 executing threads.
3212
3213 2020-07-10 Pedro Alves <pedro@palves.net>
3214
3215 PR gdb/26199
3216 * infrun.c (handle_no_resumed): Handle multiple targets.
3217
3218 2020-07-10 Pedro Alves <pedro@palves.net>
3219
3220 PR gdb/26199
3221 * infrun.c (prepare_to_wait): Check target_can_async_p instead of
3222 target_is_async_p.
3223
3224 2020-07-10 Pedro Alves <pedro@palves.net>
3225
3226 PR gdb/26199
3227 * target.c (target_pass_ctrlc): Look at the inferior's non-exited
3228 threads, not all threads.
3229
3230 2020-07-10 Pedro Alves <pedro@palves.net>
3231
3232 PR gdb/26199
3233 * remote.c (remote_target::open_1): Pass remote target pointer as
3234 data to create_async_event_handler.
3235 (remote_async_inferior_event_handler): Mark async event handler
3236 before returning if the remote target still has either pending
3237 events or unacknowledged notifications.
3238
3239 2020-07-10 John Baldwin <jhb@FreeBSD.org>
3240
3241 * fbsd-nat.h (fbsd_nat_target::supports_multi_process): New
3242 declaration.
3243 * fbsd-nat.c (fbsd_nat_target::supports_multi_process): New
3244 function.
3245
3246 2020-07-09 John Baldwin <jhb@FreeBSD.org>
3247
3248 * inf-ptrace.c (inf_ptrace_target::wait): Don't compare against
3249 inferior_ptid.
3250
3251 2020-07-09 John Baldwin <jhb@FreeBSD.org>
3252
3253 * fbsd-tdep.c (fbsd_print_auxv_entry): Handle AT_FREEBSD_ARGC,
3254 AT_FREEBSD_ARGV, AT_FREEBSD_ENVC, AT_FREEBSD_ENVV,
3255 AT_FREEBSD_PS_STRINGS.
3256
3257 2020-07-08 Hannes Domani <ssbssa@yahoo.de>
3258
3259 * auto-load.c (auto_load_objfile_script_1): Convert drive part
3260 of debugfile path on Windows.
3261
3262 2020-07-08 John Baldwin <jhb@FreeBSD.org>
3263
3264 * fbsd-nat.c (fbsd_nat_target::find_memory_regions): Rename 'obfd'
3265 argument to 'data'.
3266
3267 2020-07-08 Tom Tromey <tromey@adacore.com>
3268
3269 * ada-lang.c (ada_exception_message_1): Use read_memory.
3270
3271 2020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
3272
3273 PR python/22748
3274 * dwarf2/frame-tailcall.c (dwarf2_tailcall_sniffer_first): Remove
3275 special handling for inline frames.
3276 * findvar.c (value_of_register_lazy): Skip inline frames when
3277 creating lazy register values.
3278 * frame.c (frame_id_computed_p): Delete definition.
3279 * frame.h (frame_id_computed_p): Delete declaration.
3280
3281 2020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
3282
3283 * NEWS: Mention additions to Python API.
3284 * python/py-arch.c (archpy_register_groups): New function.
3285 (arch_object_methods): Add 'register_groups' method.
3286 * python/py-registers.c (reggroup_iterator_object): New struct.
3287 (reggroup_object): New struct.
3288 (gdbpy_new_reggroup): New function.
3289 (gdbpy_reggroup_to_string): New function.
3290 (gdbpy_reggroup_name): New function.
3291 (gdbpy_reggroup_iter): New function.
3292 (gdbpy_reggroup_iter_next): New function.
3293 (gdbpy_new_reggroup_iterator): New function
3294 (gdbpy_initialize_registers): Register new types.
3295 (reggroup_iterator_object_type): Define new Python type.
3296 (gdbpy_reggroup_getset): New static global.
3297 (reggroup_object_type): Define new Python type.
3298 * python/python-internal.h
3299
3300 2020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
3301
3302 * Makefile.in (SUBDIR_PYTHON_SRCS): Add py-registers.c
3303 * python/py-arch.c (archpy_registers): New function.
3304 (arch_object_methods): Add 'registers' method.
3305 * python/py-registers.c: New file.
3306 * python/python-internal.h
3307 (gdbpy_new_register_descriptor_iterator): Declare.
3308 (gdbpy_initialize_registers): Declare.
3309 * python/python.c (do_start_initialization): Call
3310 gdbpy_initialize_registers.
3311 * NEWS: Mention additions to the Python API.
3312
3313 2020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
3314
3315 * NEWS: Mention new Python API method.
3316 * python/py-unwind.c (pending_framepy_architecture): New function.
3317 (pending_frame_object_methods): Add architecture method.
3318
3319 2020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
3320
3321 * gdbarch.c: Regenerate.
3322 * gdbarch.h: Regenerate.
3323 * gdbarch.sh (deprecated_set_gdbarch_data): Delete.
3324 (gdbarch_data): Use internal_error for the case where
3325 deprecated_set_gdbarch_data was originally needed.
3326 * ia64-libunwind-tdep.c (libunwind_descr_init): Update parameters,
3327 and use passed in obstack.
3328 (libunwind_frame_set_descr): Should no longer get back NULL from
3329 gdbarch_data.
3330 (_initialize_libunwind_frame): Register as a pre-init gdbarch data
3331 type.
3332 * user-regs.c (user_regs_init): Update parameters, and use passed
3333 in obstack.
3334 (user_reg_add): Should no longer get back NULL from gdbarch_data.
3335 (_initialize_user_regs): Register as a pre-init gdbarch data type.
3336
3337 2020-07-06 Tom de Vries <tdevries@suse.de>
3338
3339 * buildsym.c (buildsym_compunit::end_symtab_with_blockvector): Handle
3340 End-Of-Sequence in lte_is_less_than.
3341 * symtab.c (find_pc_sect_line): Revert change from commit 3d92a3e313
3342 "gdb: Don't reorder line table entries too much when sorting".
3343
3344 2020-07-06 Tom de Vries <tdevries@suse.de>
3345
3346 PR tui/26205
3347 * tui/tui-win.c (tui_partial_win_by_name): Don't test for NULL name.
3348
3349 2020-07-05 Tom de Vries <tdevries@suse.de>
3350
3351 PR build/26187
3352 * inferior.h (struct infcall_suspend_state_deleter): If available, use
3353 std::uncaught_exceptions instead of deprecated
3354 std::uncaught_exception.
3355
3356 2020-07-02 Simon Marchi <simon.marchi@polymtl.ca>
3357
3358 * macroexp.h (macro_stringify): Return
3359 gdb::unique_xmalloc_ptr<char>.
3360 * macroexp.c (macro_stringify): Likewise.
3361 * macrotab.c (fixup_definition): Update.
3362
3363 2020-07-02 Simon Marchi <simon.marchi@polymtl.ca>
3364
3365 * c-exp.y (scan_macro_expansion): Don't free `expansion`.
3366 (lex_one_token): Update.
3367 * macroexp.c (struct macro_buffer) <release>: Return
3368 gdb::unique_xmalloc_ptr<char>.
3369 (macro_stringify): Update.
3370 (macro_expand): Update.
3371 (macro_expand_next): Return gdb::unique_xmalloc_ptr<char>.
3372 * macroexp.h (macro_expand_next): Likewise.
3373
3374 2020-07-02 Simon Marchi <simon.marchi@efficios.com>
3375
3376 * macroexp.h (macro_lookup_ftype): Remove.
3377 (macro_expand, macro_expand_once, macro_expand_next): Remove
3378 lookup function parameters, add scope parameter.
3379 * macroexp.c (scan, substitute_args, expand, maybe_expand,
3380 macro_expand, macro_expand_once, macro_expand_next): Likewise.
3381 * macroscope.h (standard_macro_lookup): Change parameter type
3382 to macro_scope.
3383 * macroscope.c (standard_macro_lookup): Likewise.
3384 * c-exp.y (lex_one_token): Update.
3385 * macrocmd.c (macro_expand_command): Likewise.
3386 (macro_expand_once_command): Likewise.
3387
3388 2020-07-02 Simon Marchi <simon.marchi@polymtl.ca>
3389
3390 * inf-loop.c (inferior_event_handler): Remove client_data param.
3391 * inf-loop.h (inferior_event_handler): Likewise.
3392 * infcmd.c (step_1): Adjust.
3393 * infrun.c (proceed): Adjust.
3394 (fetch_inferior_event): Remove client_data param.
3395 (infrun_async_inferior_event_handler): Adjust.
3396 * infrun.h (fetch_inferior_event): Remove `void *` param.
3397 * linux-nat.c (handle_target_event): Adjust.
3398 * record-btrace.c (record_btrace_handle_async_inferior_event):
3399 Adjust.
3400 * record-full.c (record_full_async_inferior_event_handler):
3401 Adjust.
3402 * remote.c (remote_async_inferior_event_handler): Adjust.
3403
3404 2020-07-01 Tom Tromey <tom@tromey.com>
3405
3406 * tui/tui-data.h (struct tui_win_info) <name>: Now pure virtual.
3407 * tui/tui-stack.h (struct tui_locator_window) <name>: New method.
3408
3409 2020-07-01 Tom Tromey <tom@tromey.com>
3410
3411 * tui/tui-wingeneral.c (tui_win_info::refresh_window): Move from
3412 tui_gen_win_info.
3413 (tui_win_info::make_window): Merge with
3414 tui_gen_win_info::make_window.
3415 (tui_win_info::make_visible): Move from tui_gen_win_info.
3416 * tui/tui-win.c (tui_win_info::max_width): Move from
3417 tui_gen_win_info.
3418 * tui/tui-layout.h (class tui_layout_window) <m_window>: Change
3419 type.
3420 <window_factory>: Likewise.
3421 * tui/tui-layout.c (tui_win_info::resize): Move from
3422 tui_gen_win_info.
3423 (make_standard_window): Change return type.
3424 (get_locator_window, tui_get_window_by_name): Likewise.
3425 (tui_layout_window::apply): Remove a cast.
3426 * tui/tui-data.h (MIN_WIN_HEIGHT): Move earlier.
3427 (struct tui_win_info): Merge with tui_gen_win_info.
3428 (struct tui_gen_win_info): Remove.
3429
3430 2020-07-01 Tom Tromey <tom@tromey.com>
3431
3432 * tui/tui-stack.h (struct tui_locator_window): Derive from
3433 tui_win_info.
3434 <do_scroll_horizontal, do_scroll_vertical>: New methods.
3435 <can_box>: New method.
3436
3437 2020-07-01 Tom Tromey <tom@tromey.com>
3438
3439 * tui/tui-stack.h (struct tui_locator_window): Remove body.
3440
3441 2020-07-01 Tom Tromey <tom@tromey.com>
3442
3443 * tui/tui-regs.c (tui_data_window::display_registers_from)
3444 (tui_data_window::display_registers_from)
3445 (tui_data_window::first_data_item_displayed)
3446 (tui_data_window::delete_data_content_windows): Update.
3447 (tui_data_window::refresh_window, tui_data_window::no_refresh):
3448 Remove.
3449 (tui_data_window::check_register_values): Update.
3450 (tui_data_item_window::rerender): Add parameters. Update.
3451 (tui_data_item_window::refresh_window): Remove.
3452 * tui/tui-data.h (struct tui_gen_win_info) <no_refresh>: No longer
3453 virtual.
3454 * tui/tui-regs.h (struct tui_data_item_window): Don't derive from
3455 tui_gen_win_info.
3456 <refresh_window, max_height, min_height>: Remove.
3457 <rerender>: Add parameters.
3458 <x, y, visible>: New members.
3459 (struct tui_data_window) <refresh_window, no_refresh>: Remove.
3460 <m_item_width>: New member.
3461
3462 2020-07-01 Tom Tromey <tom@tromey.com>
3463
3464 * tui/tui-regs.c (tui_data_window::show_register_group)
3465 (tui_data_window::check_register_values): Update.
3466 * tui/tui-regs.h (struct tui_data_item_window) <regno>: Rename
3467 from item_no.
3468
3469 2020-07-01 Tom Tromey <tom@tromey.com>
3470
3471 * tui/tui-regs.c (tui_data_window::show_register_group): Remove
3472 useless "if".
3473
3474 2020-07-01 Tom Tromey <tom@tromey.com>
3475
3476 * tui/tui-regs.c (tui_data_window::show_register_group): Update.
3477 * tui/tui-regs.h (struct tui_data_item_window) <name>: Remove.
3478
3479 2020-07-01 Tom Tromey <tom@tromey.com>
3480
3481 * tui/tui-stack.c (SINGLE_KEY): Move from tui-data.h
3482 * tui/tui-winsource.h (enum tui_line_or_address_kind)
3483 (struct tui_line_or_address): Move from tui-data.h.
3484 * tui/tui-win.c (DEFAULT_TAB_LEN): Move from tui-data.h.
3485 * tui/tui-data.h (DEFAULT_TAB_LEN): Move to tui-win.c.
3486 (tui_cmd_window, tui_source_window_base, tui_source_window)
3487 (tui_disasm_window): Don't declare.
3488 (enum tui_line_or_address_kind, struct tui_line_or_address): Move
3489 to tui-winsource.h.
3490 (SINGLE_KEY): Move to tui-stack.c.
3491
3492 2020-07-01 Tom Tromey <tom@tromey.com>
3493
3494 * tui/tui-regs.h (struct tui_data_item_window) <content>: Now a
3495 std::string.
3496 * tui/tui-regs.c (class tab_expansion_file): New.
3497 (tab_expansion_file::write): New method.
3498 (tui_register_format): Change return type. Use
3499 tab_expansion_file.
3500 (tui_get_register, tui_data_window::display_registers_from)
3501 (tui_data_item_window::rerender): Update.
3502 * tui/tui-io.h (tui_expand_tabs): Don't declare.
3503 * tui/tui-io.c (tui_expand_tabs): Remove.
3504
3505 2020-07-01 Tom Tromey <tom@tromey.com>
3506
3507 * tui/tui-regs.c (tui_reggroup_completer): Use complete_on_enum.
3508
3509 2020-07-01 Fangrui Song <maskray@google.com>
3510
3511 * dwarf2/read.c (lnp_state_machine::check_line_address): Test -1.
3512
3513 2020-07-01 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
3514
3515 * dwarf2/read.c (set_die_type): Removed conditions to restrict
3516 forms for DW_AT_associated and DW_AT_allocated attributes,
3517 which is already checked in function attr_to_dynamic_prop.
3518
3519 2020-06-30 Tom Tromey <tromey@adacore.com>
3520
3521 * dwarf2/read.c (quirk_rust_enum): Correctly call
3522 alloc_rust_variant for default-less enum.
3523
3524 2020-06-30 Tom Tromey <tromey@adacore.com>
3525
3526 PR build/26183:
3527 * ada-lang.c (ada_lookup_name_info::ada_lookup_name_info): Use
3528 gdb::to_string.
3529
3530 2020-06-29 Simon Marchi <simon.marchi@efficios.com>
3531
3532 * gdbarch.sh (displaced_step_copy_insn): Update doc.
3533 * gdbarch.h: Re-generate.
3534
3535 2020-06-28 Tom Tromey <tom@tromey.com>
3536
3537 * command.h (cmd_types): Remove.
3538 (cmd_type): Don't declare.
3539 * cli/cli-decode.h (enum cmd_types): Uncomment. No longer a
3540 typedef.
3541 * cli/cli-cmds.c (setting_cmd): Use cmd->type directly.
3542 * cli/cli-decode.c (cmd_type): Remove.
3543
3544 2020-06-27 Pedro Alves <palves@redhat.com>
3545
3546 * fork-child.c (prefork_hook): Adjust.
3547 * infcmd.c (set_inferior_io_terminal, get_inferior_io_terminal):
3548 Delete.
3549 (set_inferior_tty_command, show_inferior_tty_command): Adjust.
3550 * inferior.c (inferior::set_tty, inferior::tty): New methods.
3551 * inferior.h (set_inferior_io_terminal, get_inferior_io_terminal):
3552 Remove declarations.
3553 (struct inferior) <set_tty, tty>: New methods.
3554 (struct inferior) <terminal>: Rename to ...
3555 (struct inferior) <m_terminal>: ... this and make private.
3556 * main.c (captured_main_1): Adjust.
3557 * mi/mi-cmd-env.c (mi_cmd_inferior_tty_set): Adjust.
3558 (mi_cmd_inferior_tty_show): Adjust.
3559 * nto-procfs.c (nto_procfs_target::create_inferior): Adjust.
3560 * windows-nat.c (windows_nat_target::create_inferior): Adjust.
3561
3562 2020-06-26 Nick Alcock <nick.alcock@oracle.com>
3563
3564 * configure.ac: Add --enable-libctf: handle --disable-static
3565 properly.
3566 * acinclude.m4: sinclude ../config/enable.m4.
3567 * Makefile.in (aclocal_m4_deps): Adjust accordingly.
3568 (LIBCTF): Substitute in.
3569 (CTF_DEPS): New, likewise.
3570 (CLIBS): libctf needs symbols from libbfd: move earlier.
3571 (CDEPS): Use CTF_DEPS, not LIBCTF, now LIBCTF can include rpath
3572 flags.
3573 * ctfread.c: Surround in ENABLE_LIBCTF.
3574 (elfctf_build_psymtabs) [!ENABLE_LIBCTF]: New stub.
3575 * configure: Regenerate.
3576 * config.in: Likewise.
3577
3578 2020-06-25 Simon Marchi <simon.marchi@efficios.com>
3579
3580 * infcmd.c (set_inferior_io_terminal): Use make_unique_xstrdup.
3581
3582 2020-06-25 Simon Marchi <simon.marchi@efficios.com>
3583
3584 * inferior.h (struct inferior) <terminal>: Change type to
3585 gdb::unique_xmalloc_ptr<char>.
3586 * inferior.c (inferior::~inferior): Don't free inf->terminal.
3587 * infcmd.c (set_inferior_io_terminal): Don't free terminal
3588 field, adjust to unique pointer.
3589 (get_inferior_io_terminal): Adjust to unique pointer.
3590
3591 2020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
3592
3593 * riscv-tdep.c (riscv_print_registers_info): Loop over all
3594 registers, not just the known core set of registers.
3595
3596 2020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
3597
3598 * riscv-tdep.c (riscv_register_name): Return NULL for duplicate
3599 fflags, frm, and fcsr registers.
3600 (riscv_register_reggroup_p): Remove unknown CSRs from save and
3601 restore groups.
3602 (riscv_tdesc_unknown_reg): New function.
3603 (riscv_gdbarch_init): Pass riscv_tdesc_unknown_reg to
3604 tdesc_use_registers.
3605 * riscv-tdep.h (struct gdbarch_tdep): Add
3606 unknown_csrs_first_regnum, unknown_csrs_count,
3607 duplicate_fflags_regnum, duplicate_frm_regnum, and
3608 duplicate_fcsr_regnum fields.
3609
3610 2020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
3611
3612 * target-descriptions.c (tdesc_use_registers): Add new parameter a
3613 callback, use the callback (when not null) to help number unknown
3614 registers.
3615 * target-descriptions.h (tdesc_unknown_register_ftype): New typedef.
3616 (tdesc_use_registers): Add extra parameter to declaration.
3617
3618 2020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
3619
3620 * riscv-tdep.c (value_of_riscv_user_reg): Moved to here from later
3621 in the file.
3622 (class riscv_pending_register_alias): Likewise.
3623 (riscv_register_feature::register_info): Change 'required_p' field
3624 to 'required', and change its type. Add 'check' member function.
3625 (riscv_register_feature::register_info::check): Define new member
3626 function.
3627 (riscv_xreg_feature): Change initialisation of 'required' field.
3628 (riscv_freg_feature): Likewise.
3629 (riscv_virtual_feature): Likewise.
3630 (riscv_csr_feature): Likewise.
3631 (riscv_check_tdesc_feature): Take extra parameter, the csr
3632 tdesc_feature, rewrite the function to use the new
3633 riscv_register_feature::register_info::check function.
3634 (riscv_gdbarch_init): Pass the csr tdesc_feature where needed.
3635
3636 2020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
3637
3638 * features/Makefile: Remove all references to the deleted files
3639 below.
3640 * features/riscv/32bit-csr.c: Deleted.
3641 * features/riscv/32bit-csr.xml: Deleted.
3642 * features/riscv/64bit-csr.c: Deleted.
3643 * features/riscv/64bit-csr.xml: Deleted.
3644 * features/riscv/rebuild-csr-xml.sh: Deleted.
3645
3646 2020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
3647
3648 * riscv-tdep.c (struct riscv_register_feature::register_info): Fix
3649 whitespace error for declaration of names member variable.
3650 (struct riscv_register_feature): Add new prefer_first_name member
3651 variable, and fix whitespace error in declaration of registers.
3652 (riscv_xreg_feature): Initialize prefer_first_name field.
3653 (riscv_freg_feature): Likewise.
3654 (riscv_virtual_feature): Likewise.
3655 (riscv_csr_feature): Likewise.
3656 (riscv_register_name): Expand on comments. Remove register name
3657 modifications for CSR and virtual registers.
3658
3659 2020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
3660
3661 * riscv-tdep.c (struct riscv_register_feature): Fix whitespace
3662 errors.
3663
3664 2020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
3665
3666 * riscv-tdep.c (riscv_create_csr_aliases): Handle csr aliases from
3667 riscv-opc.h.
3668 (class riscv_pending_register_alias): New class.
3669 (riscv_check_tdesc_feature): Take vector of pending aliases and
3670 populate it as appropriate.
3671 (riscv_setup_register_aliases): Delete.
3672 (riscv_gdbarch_init): Create vector of pending aliases and pass it
3673 to riscv_check_tdesc_feature in all cases. Use the vector to
3674 create the register aliases.
3675
3676 2020-06-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
3677
3678 * sol2-tdep.c (sol2_static_transform_name): Remove.
3679 (sol2_init_abi): Don't register it.
3680 * gdbarch.sh (static_transform_name): Remove.
3681 * gdbarch.c, gdbarch.h: Regenerate.
3682
3683 * dbxread.c (read_dbx_symtab) <'S'>: Remove call to
3684 gdbarch_static_transform_name.
3685 * mdebugread.c (parse_partial_symbols) <'S'>: Likewise.
3686 * stabsread.c (define_symbol) <'X'>: Remove.
3687 (define_symbol) <'S'>: Remove gdbarch_static_transform_name
3688 handling.
3689 <'V'>: Likewise.
3690 * xcoffread.c (scan_xcoff_symtab): Remove gdbarch.
3691 <'S'>: Remove call to gdbarch_static_transform_name.
3692
3693 2020-06-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
3694
3695 * procfs.c (procfs_pre_trace): New function.
3696 (procfs_target::create_inferior): Pass it to fork_inferior.
3697
3698 2020-06-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
3699
3700 * configure.tgt <sparc-*-linux*> (gdb_target_obs): Remove
3701 sparc-sol2-tdep.o, sol2-tdep.o, sparc64-sol2-tdep.o.
3702 <sparc64-*-linux*> (gdb_target_obs): Remove sparc64-sol2-tdep.o,
3703 sol2-tdep.o, sparc-sol2-tdep.o.
3704 * sparc-sol2-tdep.c (sparc32_sol2_init_abi): Make static.
3705 * sparc-tdep.h (sparc32_sol2_init_abi): Remove.
3706 * sparc64-sol2-tdep.c (sparc64_sol2_init_abi): Make static.
3707 * sparc64-tdep.h (sparc64_sol2_init_abi): Remove.
3708
3709 2020-06-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
3710
3711 * amd64-sol2-tdep.c (amd64_sol2_sigtramp_p): Remove.
3712 (amd64_sol2_init_abi): Use sol2_sigtramp_p.
3713 Call sol2_init_abi.
3714 Remove calls to set_gdbarch_skip_solib_resolver,
3715 set_gdbarch_core_pid_to_str.
3716 * i386-sol2-tdep.c (i386_sol2_sigtramp_p): Remove.
3717 (i386_sol2_static_transform_name): Remove.
3718 (i386_sol2_init_abi): Call sol2_init_abi.
3719 Remove calls to set_gdbarch_sofun_address_maybe_missing,
3720 set_gdbarch_static_transform_name,
3721 set_gdbarch_skip_solib_resolver, set_gdbarch_core_pid_to_str.
3722 Use sol2_sigtramp_p.
3723 * sol2-tdep.c (sol2_pc_in_sigtramp): New function.
3724 (sol2_sigtramp_p): New function.
3725 (sol2_static_transform_name): New function.
3726 (sol2_skip_solib_resolver, sol2_core_pid_to_str): Make static.
3727 (sol2_init_abi): New function.
3728 * sol2-tdep.h (sol2_sigtramp_p, sol2_init_abi): Declare.
3729 (sol2_skip_solib_resolver, sol2_core_pid_to_str): Remove.
3730 * sparc-sol2-tdep.c (sparc_sol2_pc_in_sigtramp): Remove.
3731 (sparc32_sol2_sigtramp_frame_sniffer): Just call sol2_sigtramp_p.
3732 (sparc_sol2_static_transform_name): Remove.
3733 (sparc32_sol2_init_abi): Call sol2_init_abi.
3734 Remove calls to set_gdbarch_sofun_address_maybe_missing,
3735 set_gdbarch_static_transform_name,
3736 set_gdbarch_skip_solib_resolver,
3737 set_gdbarch_core_pid_to_str.
3738 * sparc-tdep.h (sparc_sol2_pc_in_sigtramp)
3739 (sparc_sol2_static_transform_name): Remove
3740 * sparc64-sol2-tdep.c (sparc64_sol2_sigtramp_frame_sniffer): Just
3741 call sol2_sigtramp_p.
3742 (sparc64_sol2_init_abi): Call sol2_init_abi.
3743 Remove calls to set_gdbarch_sofun_address_maybe_missing,
3744 set_gdbarch_static_transform_name,
3745 set_gdbarch_skip_solib_resolver, set_gdbarch_core_pid_to_str.
3746
3747 2020-06-24 Philippe Waroquiers <philippe.waroquiers@skynet.be>
3748
3749 * symfile-add-flags.h: New flag SYMFILE_ALWAYS_CONFIRM.
3750 * exec.c (validate_exec_file): If from_tty, set both
3751 SYMFILE_VERBOSE (== from_tty) and SYMFILE_ALWAYS_CONFIRM.
3752 * symfile.c (symbol_file_add_with_addrs): if always_confirm
3753 and from_tty, unconditionally ask a confirmation.
3754
3755 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
3756
3757 * target-descriptions.c (tdesc_architecture_name): Protect against
3758 NULL pointer dereference.
3759 (maint_print_xml_tdesc_cmd): New function.
3760 (_initialize_target_descriptions): Register new 'maint print
3761 xml-tdesc' command and give it the filename completer.
3762 * NEWS: Mention new 'maint print xml-tdesc' command.
3763
3764 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
3765
3766 * target-descriptions.c (class tdesc_compatible_info): New class.
3767 (struct target_desc): Change type of compatible vector.
3768 (tdesc_compatible_p): Update for change in type of
3769 target_desc::compatible.
3770 (tdesc_compatible_info_list): New function.
3771 (tdesc_compatible_info_arch_name): New function.
3772 (tdesc_add_compatible): Update for change in type of
3773 target_desc::compatible.
3774 (print_c_tdesc::visit_pre): Likewise.
3775
3776 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
3777
3778 * target-descriptions.c (print_c_tdesc::print_c_tdesc): Change
3779 whitespace to underscore.
3780 (maint_print_c_tdesc_cmd): Use fake filename for target
3781 descriptions that came from the target.
3782 (_initialize_target_descriptions): Add filename command completion
3783 for 'maint print c-tdesc'.
3784
3785 2020-06-23 Simon Marchi <simon.marchi@efficios.com>
3786
3787 * dwarf2/loc.c (decode_debug_loclists_addresses): Add empty
3788 lines.
3789
3790 2020-06-23 Simon Marchi <simon.marchi@efficios.com>
3791
3792 * dwarf2/loc.c (decode_debug_loc_dwo_addresses): Add empty
3793 lines.
3794 (dwarf2_find_location_expression): Likewise.
3795 (call_site_parameter_matches): Likewise.
3796 (dwarf2_compile_expr_to_ax): Likewise.
3797 (disassemble_dwarf_expression): Likewise.
3798 (loclist_describe_location): Likewise.
3799
3800 2020-06-23 Pedro Alves <palves@redhat.com>
3801
3802 * gdbarch-selftests.c: Don't include inferior.h, gdbthread.h or
3803 progspace-and-thread.h. Include scoped-mock-context.h instead.
3804 (register_to_value_test): Use scoped_mock_context.
3805 * regcache.c: Include "scoped-mock-context.h".
3806 (cooked_read_test): Don't error out if a target is already pushed.
3807 Use scoped_mock_context. Adjust.
3808 * scoped-mock-context.h: New file.
3809
3810 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
3811
3812 * ada-lang.c (ada_language_data): Delete la_is_string_type_p
3813 initializer.
3814 (ada_language::is_string_type_p): New member function.
3815 * c-lang.c (c_language_data): Delete la_is_string_type_p
3816 initializer.
3817 (cplus_language_data): Likewise.
3818 (asm_language_data): Likewise.
3819 (minimal_language_data): Likewise.
3820 * d-lang.c (d_language_data): Likewise.
3821 * f-lang.c (f_is_string_type_p): Delete function, implementation
3822 moved to f_language::is_string_type_p.
3823 (f_language_data): Delete la_is_string_type_p initializer.
3824 (f_language::is_string_type_p): New member function,
3825 implementation from f_is_string_type_p.
3826 * go-lang.c (go_is_string_type_p): Delete function, implementation
3827 moved to go_language::is_string_type_p.
3828 (go_language_data): Delete la_is_string_type_p initializer.
3829 (go_language::is_string_type_p): New member function,
3830 implementation from go_is_string_type_p.
3831 * language.c (language_defn::is_string_type_p): Define new member
3832 function.
3833 (default_is_string_type_p): Make static, add comment copied from
3834 header file.
3835 (unknown_language_data): Delete la_is_string_type_p initializer.
3836 (unknown_language::is_string_type_p): New member function.
3837 (auto_language_data): Delete la_is_string_type_p initializer.
3838 (auto_language::is_string_type_p): New member function.
3839 * language.h (language_data): Delete la_is_string_type_p field.
3840 (language_defn::is_string_type_p): Declare new function.
3841 (default_is_string_type_p): Delete desclaration, move comment to
3842 definition.
3843 * m2-lang.c (m2_is_string_type_p): Delete function, implementation
3844 moved to m2_language::is_string_type_p.
3845 (m2_language_data): Delete la_is_string_type_p initializer.
3846 (m2_language::is_string_type_p): New member function,
3847 implementation from m2_is_string_type_p.
3848 * objc-lang.c (objc_language_data): Delete la_is_string_type_p
3849 initializer.
3850 * opencl-lang.c (opencl_language_data): Likewise.
3851 * p-lang.c (pascal_is_string_type_p): Delete function,
3852 implementation moved to pascal_language::is_string_type_p.
3853 (pascal_language_data): Delete la_is_string_type_p initializer.
3854 (pascal_language::is_string_type_p): New member function,
3855 implementation from pascal_is_string_type_p.
3856 * rust-lang.c (rust_is_string_type_p): Delete function,
3857 implementation moved to rust_language::is_string_type_p.
3858 (rust_language_data): Delete la_is_string_type_p initializer.
3859 (rust_language::is_string_type_p): New member function,
3860 implementation from rust_is_string_type_p.
3861 * valprint.c (val_print_scalar_or_string_type_p): Update call to
3862 is_string_type_p.
3863
3864 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
3865
3866 * ada-lang.c (ada_language_data): Delete la_print_typedef
3867 initializer.
3868 (ada_language::print_typedef): New member function.
3869 * c-lang.c (c_language_data): Delete la_print_typedef initializer.
3870 (cplus_language_data): Likewise.
3871 (asm_language_data): Likewise.
3872 (minimal_language_data): Likewise.
3873 * d-lang.c (d_language_data): Likewise.
3874 * f-lang.c (f_language_data): Likewise.
3875 (f_language::print_typedef): New member function.
3876 * go-lang.c (go_language_data): Delete la_print_typedef
3877 initializer.
3878 * language.c (language_defn::print_typedef): Define member
3879 function.
3880 (unknown_language_data): Delete la_print_typedef initializer.
3881 (unknown_language::print_typedef): New member function.
3882 (auto_language_data): Delete la_print_typedef initializer.
3883 (auto_language::print_typedef): New member function.
3884 * language.h (language_data): Delete la_print_typedef field.
3885 (language_defn::print_typedef): Declare new member function.
3886 (LA_PRINT_TYPEDEF): Update call to print_typedef.
3887 (default_print_typedef): Delete declaration.
3888 * m2-lang.c (m2_language_data): Delete la_print_typedef
3889 initializer.
3890 (m2_language::print_typedef): New member function.
3891 * objc-lang.c (objc_language_data): Delete la_print_typedef
3892 initializer.
3893 * opencl-lang.c (opencl_language_data): Likewise.
3894 * p-lang.c (pascal_language_data): Likewise.
3895 (pascal_language::print_typedef): New member function.
3896 * rust-lang.c (rust_print_typedef): Delete function,
3897 implementation moved to rust_language::print_typedef.
3898 (rust_language): Delete la_print_typedef initializer.
3899 (rust_language::print_typedef): New member function,
3900 implementation from rust_print_typedef.
3901 * typeprint.c (default_print_typedef): Delete.
3902
3903 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
3904
3905 * ada-lang.c (ada_language_data): Delete la_printstr initializer.
3906 (ada_language::printstr): New member function.
3907 * c-lang.c (c_language_data): Delete la_printstr initializer.
3908 (cplus_language_data): Likewise.
3909 (asm_language_data): Likewise.
3910 (minimal_language_data): Likewise.
3911 * d-lang.c (d_language_data): Likewise.
3912 * f-lang.c (f_printstr): Rename to f_language::printstr.
3913 (f_language_data): Delete la_printstr initializer.
3914 (f_language::printstr): New member function, implementation from
3915 f_printstr.
3916 * go-lang.c (go_language_data): Delete la_printstr initializer.
3917 * language.c (language_defn::printstr): Define new member
3918 function.
3919 (unk_lang_printstr): Delete.
3920 (unknown_language_data): Delete la_printstr initializer.
3921 (unknown_language::printstr): New member function.
3922 (auto_language_data): Delete la_printstr initializer.
3923 (auto_language::printstr): New member function.
3924 * language.h (language_data): Delete la_printstr field.
3925 (language_defn::printstr): Declare new member function.
3926 (LA_PRINT_STRING): Update call to printstr.
3927 * m2-lang.c (m2_printstr): Rename to m2_language::printstr.
3928 (m2_language_data): Delete la_printstr initializer.
3929 (m2_language::printstr): New member function, implementation from
3930 m2_printstr.
3931 * objc-lang.c (objc_language_data): Delete la_printstr
3932 initializer.
3933 * opencl-lang.c (opencl_language_data): Likewise.
3934 * p-lang.c (pascal_printstr): Rename to pascal_language::printstr.
3935 (pascal_language_data): Delete la_printstr initializer.
3936 (pascal_language::printstr): New member function, implementation
3937 from pascal_printstr.
3938 * p-lang.h (pascal_printstr): Delete declaration.
3939 * rust-lang.c (rust_printstr): Update header comment.
3940 (rust_language_data): Delete la_printstr initializer.
3941 (rust_language::printstr): New member function.
3942
3943 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
3944
3945 * ada-lang.c (ada_language_data): Delete la_printchar initializer.
3946 (ada_language::printchar): New member function.
3947 * c-lang.c (c_language_data): Delete la_printchar initializer.
3948 (cplus_language_data): Likewise.
3949 (asm_language_data): Likewise.
3950 (minimal_language_data): Likewise.
3951 * d-lang.c (d_language_data): Likewise.
3952 * f-lang.c (f_printchar): Rename to f_language::printchar.
3953 (f_language_data): Delete la_printchar initializer.
3954 (f_language::printchar): New member function, implementation from
3955 f_printchar.
3956 * go-lang.c (go_language_data): Delete la_printchar initializer.
3957 * language.c (unk_lang_printchar): Delete.
3958 (language_defn::printchar): Define new member function.
3959 (unknown_language_data): Delete la_printchar initializer.
3960 (unknown_language::printchar): New member function.
3961 (auto_language_data): Delete la_printchar initializer.
3962 (auto_language::printchar): New member function.
3963 * language.h (language_data): Delete la_printchar field.
3964 (language_defn::printchar): Declare new member function.
3965 (LA_PRINT_CHAR): Update call to printchar.
3966 * m2-lang.c (m2_language_data): Delete la_printchar initializer.
3967 (m2_language::printchar): New member function.
3968 * objc-lang.c (objc_language_data): Delete la_printchar
3969 initializer.
3970 * opencl-lang.c (opencl_language_data): Likewise.
3971 * p-lang.c (pascal_language_data): Delete la_printchar
3972 initializer.
3973 (pascal_language::printchar): New member function.
3974 * rust-lang.c (rust_printchar): Rename to
3975 rust_language::printchar.
3976 (rust_language_data): Delete la_printchar initializer.
3977 (rust_language::printchar): New member function, implementation
3978 from rust_printchar.
3979
3980 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
3981
3982 * ada-lang.c (emit_char): Renamed to ada_language::emitchar.
3983 (ada_language_data): Delete la_emitchar initializer.
3984 (ada_language::emitchar): New member function, implementation from
3985 emit_char.
3986 * c-lang.c (c_language_data): Delete la_emitchar initializer.
3987 (cplus_language_data): Likewise.
3988 (asm_language_data): Likewise.
3989 (minimal_language_data): Likewise.
3990 * d-lang.c (d_language_data): Likewise.
3991 * f-lang.c (f_emit_char): Rename to f_language::emitchar.
3992 (f_language_data): Delete la_emitchar initializer.
3993 (f_language::emitchar): New member function, implementation from
3994 f_emit_char.
3995 * go-lang.c (go_language_data): Delete la_emitchar initializer.
3996 * language.c (unk_lang_emit_char): Delete.
3997 (language_defn::emitchar): New member function definition.
3998 (unknown_language_data): Delete la_emitchar initializer.
3999 (unknown_language::emitchar): New member function.
4000 (auto_language_data): Delete la_emitchar initializer.
4001 (auto_language::emitchar): New member function.
4002 * language.h (language_data): Delete la_emitchar field.
4003 (language_defn::emitchar): New member field declaration.
4004 (LA_EMIT_CHAR): Update call to emitchar.
4005 * m2-lang.c (m2_emit_char): Rename to m2_language::emitchar.
4006 (m2_language_data): Delete la_emitchar initializer.
4007 (m2_language::emitchar): New member function, implementation from
4008 m2_emit_char.
4009 * objc-lang.c (objc_language_data): Delete la_emitchar
4010 initializer.
4011 * opencl-lang.c (opencl_language_data): Likewise.
4012 * p-lang.c (pascal_emit_char): Rename to pascal_language::emitchar.
4013 (pascal_language_data): Delete la_emitchar initializer.
4014 (pascal_language::emitchar): New member function, implementation
4015 from pascal_emit_char.
4016 * rust-lang.c (rust_emitchar): Rename to rust_language::emitchar.
4017 (rust_language_data): Delete la_emitchar initializer.
4018 (rust_language::emitchar): New member function, implementation
4019 from rust_emitchar.
4020
4021 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
4022
4023 * ada-lang.c (resolve): Rename to ada_language::post_parser.
4024 (ada_language_data): Delete la_post_parser initializer.
4025 (ada_language::post_parser): New member function.
4026 * c-lang.c (c_language_data): Delete la_post_parser initializer.
4027 (cplus_language_data): Likewise.
4028 (asm_language_data): Likewise.
4029 (minimal_language_data): Likewise.
4030 * d-lang.c (d_language_data): Likewise.
4031 * f-lang.c (f_language_data): Likewise.
4032 * go-lang.c (go_language_data): Likewise.
4033 * language.c (unknown_language_data): Likewise.
4034 (auto_language_data): Likewise.
4035 * language.h (language_data): Delete la_post_parser field.
4036 (language_defn::post_parser): New member function.
4037 * m2-lang.c (m2_language_data): Delete la_post_parser initializer.
4038 * objc-lang.c (objc_language_data): Likewise.
4039 * opencl-lang.c (opencl_language_data): Likewise.
4040 * p-lang.c (pascal_language_data): Likewise.
4041 * parse.c (parse_exp_in_context): Update call to post_parser.
4042 (null_post_parser): Delete definition.
4043 * parser-defs.h (null_post_parser): Delete declaration.
4044 * rust-lang.c (rust_language_data): Delete la_post_parser
4045 initializer.
4046
4047 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
4048
4049 * ada-lang.c (parse): Rename to ada_language::parser.
4050 (ada_language_data): Delete la_parser initializer.
4051 (ada_language::parser): New member function, implementation from
4052 parse.
4053 * c-lang.c (c_language_data): Delete la_parser initializer.
4054 (cplus_language_data): Likewise.
4055 (asm_language_data): Likewise.
4056 (minimal_language_data): Likewise.
4057 * d-lang.c (d_language_data): Likewise.
4058 (d_language::parser): New member function.
4059 * f-lang.c (f_language_data): Delete la_parser initializer.
4060 (f_language::parser): New member function.
4061 * go-lang.c (go_language_data): Delete la_parser initializer.
4062 (go_language::parser): New member function.
4063 * language.c (unk_lang_parser): Delete.
4064 (language_defn::parser): Define new member function.
4065 (unknown_language_data): Delete la_parser initializer.
4066 (unknown_language::parser): New member function.
4067 (auto_language_data): Delete la_parser initializer.
4068 (auto_language::parser): New member function.
4069 * language.h (language_data): Delete la_parser field.
4070 (language_defn::parser): Declare new member function.
4071 * m2-lang.c (m2_language_data): Delete la_parser initializer.
4072 (m2_language::parser): New member function.
4073 * objc-lang.c (objc_language_data): Delete la_parser initializer.
4074 * opencl-lang.c (opencl_language_data): Likewise.
4075 * p-lang.c (pascal_language_data): Likewise.
4076 (pascal_language::parser): New member function.
4077 * parse.c (parse_exp_in_context): Update call to parser.
4078 * rust-lang.c (rust_language_data): Delete la_parser initializer.
4079 (rust_language::parser): New member function.
4080
4081 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
4082
4083 * top.c (print_gdb_configuration): Print --with-python-libdir
4084 configuration value.
4085
4086 2020-06-22 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4087
4088 * NEWS: Mention change to the alias command.
4089
4090 2020-06-22 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4091
4092 * cli/cli-cmds.c (lookup_cmd_for_default_args)
4093 (alias_command_completer)
4094 (make_alias_options_def_group): New functions.
4095 (alias_opts, alias_option_defs): New struct and array.
4096 (alias_usage_error): Update usage.
4097 (alias_command): Handles optional DEFAULT-ARGS... arguments.
4098 Use option framework.
4099 (_initialize_cli_cmds): Update alias command help.
4100 Update aliases command help.
4101 (show_user):
4102 Add NULL for new default_args lookup_cmd argument.
4103 (valid_command_p): Rename to validate_aliased_command.
4104 Add NULL for new default_args lookup_cmd argument. Verify that the
4105 aliased_command has no default args.
4106 * cli/cli-decode.c (help_cmd): Show aliases definitions.
4107 (lookup_cmd_1, lookup_cmd): New argument default_args.
4108 (add_alias_cmd):
4109 Add NULL for new default_args lookup_cmd argument.
4110 (print_help_for_command): Show default args under the layout
4111 alias some_alias = some_aliased_cmd some_alias_default_arg.
4112 * cli/cli-decode.h (struct cmd_list_element): New member default_args.
4113 xfree default_args in destructor.
4114 * cli/cli-script.c (process_next_line, do_define_command):
4115 Add NULL for new default_args lookup_cmd argument.
4116 * command.h: Declare new default_args argument in lookup_cmd
4117 and lookup_cmd_1.
4118 * completer.c (complete_line_internal_1):
4119 Add NULL for new default_args lookup_cmd or lookup_cmd_1 argument.
4120 * guile/scm-cmd.c (gdbscm_parse_command_name): Likewise.
4121 * guile/scm-param.c (add_setshow_generic, pascm_parameter_defined_p):
4122 Likewise.
4123 * infcmd.c (_initialize_infcmd): Likewise.
4124 * python/py-auto-load.c (gdbpy_initialize_auto_load): Likewise.
4125 * python/py-cmd.c (gdbpy_parse_command_name): Likewise.
4126 * python/py-param.c (add_setshow_generic): Likewise.
4127 * remote.c (_initialize_remote): Likewise.
4128 * top.c (execute_command): Prepend default_args if command has some.
4129 (set_verbose):
4130 Add NULL for new default_args lookup_cmd or lookup_cmd_1 argument.
4131 * tracepoint.c (validate_actionline, encode_actions_1):
4132 Add NULL for new default_args lookup_cmd or lookup_cmd_1 argument.
4133
4134 2020-06-22 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4135
4136 * jit.c (jit_read_descriptor): Use bool as the return type.
4137 (jit_breakpoint_re_set_internal): Use bool as the return type.
4138 Invert the return value logic; return true if the jit breakpoint
4139 has been successfully initialized.
4140 (jit_inferior_init): Update the call to
4141 jit_breakpoint_re_set_internal.
4142
4143 2020-06-22 Pedro Alves <palves@redhat.com>
4144
4145 PR gdb/25939
4146 * procfs.c (procfs_target::wait): Don't reference inferior_ptid.
4147 Use the current inferior instead. Don't return
4148 TARGET_WAITKIND_SPURIOUS/inferior_ptid -- instead continue and
4149 wait again.
4150 * sol-thread.c (sol_thread_target::wait): Don't reference
4151 inferior_ptid.
4152 (ps_lgetregs, ps_lsetregs, ps_lgetfpregs, ps_lsetfpregs)
4153 (sol_update_thread_list_callback): Use the current inferior's pid
4154 instead of inferior_ptid.
4155
4156 2020-06-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
4157
4158 * procfs.c: Cleanup many comments.
4159
4160 (READ_WATCHFLAG, WRITE_WATCHFLAG, EXEC_WATCHFLAG)
4161 (AFTER_WATCHFLAG): Replace by value.
4162
4163 (MAIN_PROC_NAME_FORMAT): Inline ...
4164 (create_procinfo): ... here.
4165
4166 (procfs_debug_inferior): Remove SYS_exec handling.
4167 (syscall_is_exec): Likewise.
4168 (procfs_set_exec_trap): Likewise.
4169
4170 (syscall_is_lwp_exit): Inline in callers.
4171 (syscall_is_exit): Likewise.
4172 (syscall_is_exec): Likewise.
4173 (syscall_is_lwp_create): Likewise.
4174
4175 (invalidate_cache): Remove #if 0 code.
4176
4177 (make_signal_thread_runnable): Remove.
4178 (procfs_target::resume): Remove #if 0 code.
4179
4180 2020-06-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
4181
4182 PR gdb/25939
4183 * procfs.c (procfs_target::procfs_init_inferior): Move push_target
4184 call ...
4185 (procfs_target::create_inferior): ... here.
4186
4187 2020-06-21 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4188
4189 * exec.c (validate_exec_file): Ensure the build-id is up to
4190 date by calling reopen_exec_file (that checks file timestamp
4191 to decide to re-read the file).
4192
4193 2020-06-18 Pedro Alves <palves@redhat.com>
4194
4195 PR gdb/25412
4196 * gdbthread.h (delete_thread, delete_thread_silent)
4197 (find_thread_ptid): Update comments.
4198 * thread.c (current_thread_): New global.
4199 (is_current_thread): Move higher, and reimplement.
4200 (inferior_thread): Reimplement.
4201 (set_thread_exited): Use bool. Add assertions.
4202 (add_thread_silent): Simplify thread-reuse handling by always
4203 calling delete_thread.
4204 (delete_thread): Remove intro comment.
4205 (find_thread_ptid): Skip exited threads.
4206 (switch_to_thread_no_regs): Write to current_thread_.
4207 (switch_to_no_thread): Check CURRENT_THREAD_ instead of
4208 INFERIOR_PTID. Clear current_thread_.
4209
4210 2020-06-18 Pedro Alves <palves@redhat.com>
4211
4212 * aix-thread.c (pd_update): Use switch_to_thread.
4213
4214 2020-06-18 Pedro Alves <palves@redhat.com>
4215
4216 * ravenscar-thread.c (ravenscar_thread_target): Update.
4217 (ravenscar_thread_target::update_inferior_ptid): Rename to ...
4218 (ravenscar_thread_target::add_active_thread): ... this. Don't
4219 set m_base_ptid here. Update to avoid referencing inferior_ptid.
4220 (ravenscar_thread_target::wait): Don't write to inferior_ptid.
4221
4222 2020-06-18 Pedro Alves <palves@redhat.com>
4223
4224 * nat/windows-nat.c (current_windows_thread): Remove.
4225 * nat/windows-nat.h (current_windows_thread): Remove.
4226 * windows-nat.c (windows_nat_target::stopped_by_sw_breakpoint):
4227 Adjust.
4228 (display_selectors): Adjust to fetch the current
4229 windows_thread_info based on inferior_ptid.
4230 (fake_create_process): No longer write to current_windows_thread.
4231 (windows_nat_target::get_windows_debug_event):
4232 Don't set inferior_ptid or current_windows_thread.
4233 (windows_nat_target::wait): Adjust to not rely on
4234 current_windows_thread.
4235 (do_initial_windows_stuff): Now a method of windows_nat_target.
4236 Switch to the last_ptid thread.
4237 (windows_nat_target::attach): Adjust.
4238 (windows_nat_target::detach): Use switch_to_no_thread instead of
4239 writing to inferior_ptid directly.
4240 (windows_nat_target::create_inferior): Adjust.
4241
4242 2020-06-18 Pedro Alves <palves@redhat.com>
4243
4244 * windows-nat.c (do_initial_windows_stuff): No longer set inferior_ptid.
4245
4246 2020-06-18 Pedro Alves <palves@redhat.com>
4247
4248 * go32-nat.c (go32_nat_target::create_inferior): Switch to thread
4249 after creating it, instead of writing to inferior_ptid. Don't
4250 write to inferior_ptid.
4251
4252 2020-06-18 Pedro Alves <palves@redhat.com>
4253
4254 * fork-child.c (postfork_hook): Don't write to inferior_ptid.
4255
4256 2020-06-18 Pedro Alves <palves@redhat.com>
4257
4258 * bsd-kvm.c (bsd_kvm_target_open): Switch to thread after adding
4259 it, instead of writing to inferior_ptid.
4260
4261 2020-06-18 Pedro Alves <palves@redhat.com>
4262
4263 * btrace.c (btrace_fetch): Use switch_to_thread instead of writing
4264 to inferior_ptid.
4265
4266 2020-06-18 Pedro Alves <palves@redhat.com>
4267
4268 * bsd-kvm.c (bsd_kvm_target::close): Use switch_to_no_thread
4269 instead of writing to inferior_ptid directly.
4270
4271 2020-06-18 Pedro Alves <palves@redhat.com>
4272
4273 * corelow.c (core_target::close): Use switch_to_no_thread instead
4274 of writing to inferior_ptid directly.
4275 (add_to_thread_list, core_target_open): Use switch_to_thread
4276 instead of writing to inferior_ptid directly.
4277
4278 2020-06-18 Pedro Alves <palves@redhat.com>
4279
4280 * darwin-nat.c (darwin_nat_target::decode_message): Don't write to
4281 inferior_ptid.
4282 (darwin_nat_target::stop_inferior, darwin_nat_target::kill): Avoid
4283 inferior_ptid.
4284 (darwin_attach_pid): Use switch_to_no_thread instead of writing to
4285 inferior_ptid directly.
4286 (darwin_nat_target::init_thread_list): Switch to thread, instead
4287 of writing to inferior_ptid.
4288 (darwin_nat_target::attach): Don't write to inferior_ptid.
4289 (darwin_nat_target::get_ada_task_ptid): Avoid inferior_ptid.
4290
4291 2020-06-18 Pedro Alves <palves@redhat.com>
4292
4293 * gnu-nat.c (gnu_nat_target::create_inferior): Switch to the added
4294 thread.
4295 (gnu_nat_target::attach): Don't write to inferior_ptid directly.
4296 Instead use switch_to_thread.
4297 (gnu_nat_target::detach): Use switch_to_no_thread
4298 instead of writing to inferior_ptid directly. Used passed-in
4299 inferior instead of looking up the inferior by pid.
4300
4301 2020-06-18 Pedro Alves <palves@redhat.com>
4302
4303 * go32-nat.c (go32_nat_target::create_inferior): Don't write to
4304 inferior_ptid.
4305
4306 2020-06-18 Pedro Alves <palves@redhat.com>
4307
4308 * nto-procfs.c (nto_procfs_target::update_thread_list): Avoid
4309 inferior_ptid.
4310 (nto_procfs_target::attach): Avoid inferior_ptid. Switch to
4311 thread.
4312 (nto_procfs_target::detach): Avoid referencing
4313 inferior_ptid. Use switch_to_no_thread instead of writing to
4314 inferior_ptid directly.
4315 (nto_procfs_target::mourn_inferior): Use switch_to_no_thread
4316 instead of writing to inferior_ptid directly.
4317 (nto_procfs_target::create_inferior): Avoid inferior_ptid. Switch
4318 to thread.
4319
4320 2020-06-18 Pedro Alves <palves@redhat.com>
4321
4322 * remote-sim.c (gdbsim_target::create_inferior): Switch to thread
4323 after creating it, instead of writing to inferior_ptid.
4324 (gdbsim_target_open): Use switch_to_no_thread instead of writing
4325 to inferior_ptid directly.
4326 (gdbsim_target::wait): Don't write to inferior_ptid.
4327
4328 2020-06-18 Pedro Alves <palves@redhat.com>
4329
4330 * remote.c (remote_target::remote_notice_new_inferior): Use
4331 switch_to_thread instead of writing to inferior_ptid directly.
4332 (remote_target::add_current_inferior_and_thread): Use
4333 switch_to_no_thread instead of writing to inferior_ptid directly.
4334 (extended_remote_target::attach): Use switch_to_inferior_no_thread
4335 and switch_to_thread instead of using set_current_inferior or
4336 writing to inferior_ptid directly.
4337
4338 2020-06-18 Pedro Alves <palves@redhat.com>
4339
4340 * tracectf.c (ctf_target_open): Switch to added thread instead of
4341 writing to inferior_ptid directly.
4342 (ctf_target::close): Use switch_to_no_thread instead of writing to
4343 inferior_ptid directly.
4344
4345 2020-06-18 Pedro Alves <palves@redhat.com>
4346
4347 * tracefile-tfile.c (tfile_target_open): Don't write to
4348 inferior_ptid directly, instead switch to added thread.
4349 (tfile_target::close): Use switch_to_no_thread instead of writing
4350 to inferior_ptid directly.
4351
4352 2020-06-18 Pedro Alves <palves@redhat.com>
4353
4354 * procfs.c (procfs_target::attach): Don't write to inferior_ptid.
4355 (procfs_target::detach): Use switch_to_no_thread
4356 instead of writing to inferior_ptid directly.
4357 (do_attach): Change return type to void. Switch to the added
4358 thread.
4359 (procfs_target::create_inferior): Switch to the added thread.
4360 (procfs_do_thread_registers): Don't write to inferior_ptid.
4361
4362 2020-06-18 Pedro Alves <palves@redhat.com>
4363
4364 * infrun.c (generic_mourn_inferior): Use switch_to_thread instead
4365 of writing to inferior_ptid.
4366 (scoped_restore_exited_inferior): Delete.
4367 (handle_vfork_child_exec_or_exit): Simplify using
4368 scoped_restore_current_pspace_and_thread. Use switch_to_thread
4369 instead of writing to inferior_ptid.
4370 (THREAD_STOPPED_BY): Delete.
4371 (thread_stopped_by_watchpoint, thread_stopped_by_sw_breakpoint)
4372 (thread_stopped_by_hw_breakpoint): Delete.
4373 (save_waitstatus): Use
4374 scoped_restore_current_thread+switch_to_thread, and call
4375 target_stopped_by_watchpoint instead of
4376 thread_stopped_by_watchpoint, target_stopped_by_sw_breakpoint
4377 instead of thread_stopped_by_sw_breakpoint, and
4378 target_stopped_by_hw_breakpoint instead of
4379 thread_stopped_by_hw_breakpoint.
4380 (handle_inferior_event)
4381 <TARGET_WAITKIND_EXITED/TARGET_WAITKIND_SIGNALLED>: Don't write to
4382 inferior_ptid directly, nor
4383 set_current_inferior/set_current_program_space. Use
4384 switch_to_thread / switch_to_inferior_no_thread instead.
4385
4386 2020-06-18 Pedro Alves <palves@redhat.com>
4387
4388 * target.c (generic_mourn_inferior): Use switch_to_no_thread
4389 instead of writing to inferior_ptid.
4390
4391 2020-06-18 Pedro Alves <palves@redhat.com>
4392
4393 * inf-ptrace.c (inf_ptrace_target::create_inferior): Switch to the
4394 added thread.
4395 (inf_ptrace_target::attach): Don't write to inferior_ptid. Switch
4396 to the added thread.
4397 (inf_ptrace_target::detach_success): Use switch_to_no_thread
4398 instead of writing to inferior_ptid.
4399
4400 2020-06-18 Pedro Alves <palves@redhat.com>
4401
4402 * gdbarch-selftests.c: Include "progspace-and-thread.h".
4403 (register_to_value_test): Mock a program_space too. Heap-allocate
4404 the address space. Don't write to inferior_ptid. Use
4405 switch_to_thread instead.
4406
4407 2020-06-18 Pedro Alves <palves@redhat.com>
4408
4409 * linux-tdep.c (find_signalled_thread(thread_info *,void *)):
4410 Delete.
4411 (find_signalled_thread()): New, factored out from
4412 linux_make_corefile_notes and adjusted to handle exited threads.
4413 (linux_make_corefile_notes): Adjust to use the new
4414 find_signalled_thread.
4415
4416 2020-06-18 Pedro Alves <palves@redhat.com>
4417
4418 * linux-tdep.c (btrace_fetch): Save/restore current thread instead
4419 of saving/restoring inferior_ptid.
4420
4421 2020-06-17 Tom Tromey <tom@tromey.com>
4422
4423 * tui/tui-win.h (tui_scroll_forward, tui_scroll_backward)
4424 (tui_scroll_left, tui_scroll_right, struct tui_win_info): Don't
4425 declare.
4426 * tui/tui-data.h (MIN_CMD_WIN_HEIGHT): Remove.
4427
4428 2020-06-15 Simon Marchi <simon.marchi@efficios.com>
4429
4430 * dwarf2/read.c (dwarf2_initialize_objfile): Check for presence
4431 of partial symtabs.
4432
4433 2020-06-17 Simon Marchi <simon.marchi@efficios.com>
4434
4435 * regformats/reg-arm.dat: Remove.
4436 * regformats/reg-bfin.dat: Remove.
4437 * regformats/reg-cris.dat: Remove.
4438 * regformats/reg-crisv32.dat: Remove.
4439 * regformats/reg-m32r.dat: Remove.
4440 * regformats/reg-tilegx.dat: Remove.
4441 * regformats/reg-tilegx32.dat: Remove.
4442
4443 2020-06-17 Simon Marchi <simon.marchi@efficios.com>
4444
4445 * features/Makefile (WHICH): Remove arm files.
4446 * regformats/arm/arm-with-iwmmxt.dat: Remove.
4447 * regformats/arm/arm-with-neon.dat: Remove.
4448 * regformats/arm/arm-with-vfpv2.dat: Remove.
4449 * regformats/arm/arm-with-vfpv3.dat: Remove.
4450
4451 2020-06-17 Simon Marchi <simon.marchi@efficios.com>
4452
4453 * features/Makefile (XMLTOC): Remove rx.xml.
4454
4455 2020-06-17 Pedro Alves <palves@redhat.com>
4456
4457 * gdbthread.h (thread_control_state) <trap_expected> Update
4458 comments.
4459
4460 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
4461
4462 * ada-lang.c (ada_lookup_symbol_nonlocal): Rename to
4463 ada_language::lookup_symbol_nonlocal.
4464 (ada_language_data): Delete la_lookup_symbol_nonlocal initializer.
4465 (ada_language::lookup_symbol_nonlocal): New member function,
4466 implementation from ada_lookup_symbol_nonlocal.
4467 * c-lang.c (c_language_data): Delete la_lookup_symbol_nonlocal
4468 initializer.
4469 (cplus_language_data): Delete la_lookup_symbol_nonlocal
4470 initializer.
4471 (cplus_language::lookup_symbol_nonlocal): New member function.
4472 (asm_language_data): Delete la_lookup_symbol_nonlocal initializer.
4473 (minimal_language_data) Likewise.
4474 * cp-namespace.c (cp_lookup_nested_symbol): Update comment.
4475 * d-lang.c (d_language_data): Delete la_lookup_symbol_nonlocal
4476 initializer.
4477 (d_language::lookup_symbol_nonlocal): New member function.
4478 * f-lang.c (f_language_data): Delete la_lookup_symbol_nonlocal
4479 initializer.
4480 (f_language::lookup_symbol_nonlocal): New member function.
4481 * go-lang.c (go_language_data): Delete la_lookup_symbol_nonlocal
4482 initializer.
4483 * language.c (unknown_language_data): Likewise.
4484 (auto_language_data): Likewise.
4485 * language.h (language_data): Delete la_lookup_symbol_nonlocal
4486 field.
4487 (language_defn::lookup_symbol_nonlocal): New member function.
4488 * m2-lang.c (m2_language_data): Delete la_lookup_symbol_nonlocal
4489 initializer.
4490 * objc-lang.c (objc_language_data): Likewise.
4491 * opencl-lang.c (opencl_language_data): Likewise.
4492 * p-lang.c (pascal_language_data): Likewise.
4493 * rust-lang.c (rust_lookup_symbol_nonlocal): Rename to
4494 rust_language::lookup_symbol_nonlocal.
4495 (rust_language_data): Delete la_lookup_symbol_nonlocal
4496 initializer.
4497 (rust_language::lookup_symbol_nonlocal): New member function,
4498 implementation from rust_lookup_symbol_nonlocal.
4499 * symtab.c (lookup_symbol_aux): Update call to
4500 lookup_symbol_nonlocal.
4501 (basic_lookup_symbol_nonlocal): Rename to...
4502 (language_defn::lookup_symbol_nonlocal): ...this, and update
4503 header comment. Remove language_defn parameter, and replace with
4504 uses of `this'.
4505 * symtab.h (basic_lookup_symbol_nonlocal): Delete declaration.
4506
4507 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
4508
4509 * ada-lang.c (ada_language_data): Delete la_value_print_inner
4510 initializer.
4511 (ada_language::value_print_inner): New member function.
4512 * c-lang.c (c_language_data): Delete la_value_print_inner
4513 initializer.
4514 (cplus_language_data): Likewise.
4515 (asm_language_data): Likewise.
4516 (minimal_language_data): Likewise.
4517 * d-lang.c (d_language_data): Likewise.
4518 (d_language::value_print_inner): New member function.
4519 * f-lang.c (f_language_data): Delete la_value_print_inner
4520 initializer.
4521 (f_language::value_print_inner): New member function.
4522 * f-lang.h (f_value_print_innner): Rename to...
4523 (f_value_print_inner): ...this (note spelling of 'inner').
4524 * f-valprint.c (f_value_print_innner): Rename to...
4525 (f_value_print_inner): ...this (note spelling of 'inner').
4526 * go-lang.c (go_language_data): Delete la_value_print_inner
4527 initializer.
4528 (go_language::value_print_inner): New member function.
4529 * language.c (language_defn::value_print_inner): Define new member
4530 function.
4531 (unk_lang_value_print_inner): Delete.
4532 (unknown_language_data): Delete la_value_print_inner initializer.
4533 (unknown_language::value_print_inner): New member function.
4534 (auto_language_data): Delete la_value_print_inner initializer.
4535 (auto_language::value_print_inner): New member function.
4536 * language.h (language_data): Delete la_value_print_inner field.
4537 (language_defn::value_print_inner): Delcare new member function.
4538 * m2-lang.c (m2_language_data): Delete la_value_print_inner
4539 initializer.
4540 (m2_language::value_print_inner): New member function.
4541 * objc-lang.c (objc_language_data): Delete la_value_print_inner
4542 initializer.
4543 * opencl-lang.c (opencl_language_data): Likewise.
4544 * p-lang.c (pascal_language_data): Likewise.
4545 (pascal_language::value_print_inner): New member function.
4546 * rust-lang.c (rust_language_data): Delete la_value_print_inner
4547 initializer.
4548 (rust_language::value_print_inner): New member function.
4549 * valprint.c (do_val_print): Update call to value_print_inner.
4550
4551 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
4552
4553 * ada-lang.c (ada_language_data): Delete la_value_print
4554 initializer.
4555 (ada_language::value_print): New member function.
4556 * c-lang.c (c_language_data): Delete la_value_print initializer.
4557 (cplus_language_data): Likewise.
4558 (asm_language_data): Likewise.
4559 (minimal_language_data): Likewise.
4560 * d-lang.c (d_language_data): Likewise.
4561 * f-lang.c (f_language_data): Likewise.
4562 * go-lang.c (go_language_data): Likewise.
4563 * language.c (unk_lang_value_print): Delete.
4564 (language_defn::value_print): Define new member function.
4565 (unknown_language_data): Delete la_value_print initializer.
4566 (unknown_language::value_print): New member function.
4567 (auto_language_data): Delete la_value_print initializer.
4568 (auto_language::value_print): New member function.
4569 * language.h (language_data): Delete la_value_print field.
4570 (language_defn::value_print): Declare new member function.
4571 (LA_VALUE_PRINT): Update call to value_print.
4572 * m2-lang.c (m2_language_data): Delete la_value_print initializer.
4573 * objc-lang.c (objc_language_data): Likewise.
4574 * opencl-lang.c (opencl_language_data): Likewise.
4575 * p-lang.c (pascal_language_data): Likewise.
4576 (pascal_language::value_print): New member function.
4577 * rust-lang.c (rust_language_data): Delete la_value_print
4578 initializer.
4579
4580 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
4581
4582 * ada-lang.c (ada_watch_location_expression): Rename to
4583 ada_language::watch_location_expression.
4584 (ada_language_data): Delete la_watch_location_expression
4585 initializer.
4586 (ada_language::watch_location_expression): New member function,
4587 implementation from ada_watch_location_expression.
4588 * breakpoint.c (watch_command_1): Update call to
4589 watch_location_expression.
4590 * c-lang.c (c_watch_location_expression): Rename to
4591 language_defn::watch_location_expression.
4592 (c_language_data): Delete la_watch_location_expression
4593 initializer.
4594 (cplus_language_data): Likewise.
4595 (asm_language_data): Likewise.
4596 (minimal_language_data): Likewise.
4597 * c-lang.h (c_watch_location_expression): Delete declaration.
4598 * d-lang.c (d_language_data): Delete la_watch_location_expression
4599 initializer.
4600 * f-lang.c (f_language_data): Likewise.
4601 * go-lang.c (go_language_data): Likewise.
4602 * language.c (language_defn::watch_location_expression): Member
4603 function implementation from c_watch_location_expression.
4604 (unknown_language_data): Delete la_watch_location_expression
4605 initializer.
4606 (auto_language_data): Likewise.
4607 * language.h (language_data): Delete la_watch_location_expression
4608 field.
4609 (language_defn::watch_location_expression): Declare new member
4610 function.
4611 * m2-lang.c (m2_language_data): Delete
4612 la_watch_location_expression initializer.
4613 * objc-lang.c (objc_language_data): Likewise.
4614 * opencl-lang.c (opencl_language_data): Likewise.
4615 * p-lang.c (pascal_language_data): Likewise.
4616 * rust-lang.c (rust_watch_location_expression): Rename to
4617 rust_language::watch_location_expression.
4618 (rust_language_data): Delete la_watch_location_expression
4619 initializer.
4620 (rust_language::watch_location_expression): New member function,
4621 implementation from rust_watch_location_expression.
4622
4623 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
4624
4625 * ada-lang.c (ada_collect_symbol_completion_matches): Rename to
4626 ada_language::collect_symbol_completion_matches.
4627 (ada_language_data): Delete la_collect_symbol_completion_matches
4628 initializer.
4629 (ada_language::collect_symbol_completion_matches): New member
4630 function, implementation from
4631 ada_collect_symbol_completion_matches.
4632 * c-lang.c (c_language_data): Delete
4633 la_collect_symbol_completion_matches initializer.
4634 (cplus_language_data): Likewise.
4635 (asm_language_data): Likewise.
4636 (minimal_language_data): Likewise.
4637 * d-lang.c (d_language_data): Likewise.
4638 * f-lang.c (f_collect_symbol_completion_matches): Rename to
4639 f_language::collect_symbol_completion_matches.
4640 (f_language_data): Delete la_collect_symbol_completion_matches
4641 initializer.
4642 (f_language::collect_symbol_completion_matches) New member
4643 function, implementation from f_collect_symbol_completion_matches.
4644 * go-lang.c (go_language_data): Delete
4645 la_collect_symbol_completion_matches initializer.
4646 * language.c (unknown_language_data): Likewise.
4647 (auto_language_data): Likewise.
4648 * language.h (language_data): Delete
4649 la_collect_symbol_completion_matches field.
4650 (language_defn::collect_symbol_completion_matches): New member
4651 function.
4652 * m2-lang.c (m2_language_data): Delete
4653 la_collect_symbol_completion_matches initializer.
4654 * objc-lang.c (objc_language_data): Likewise.
4655 * opencl-lang.c (opencl_language_data): Likewise.
4656 * p-lang.c (pascal_language_data): Likewise.
4657 * rust-lang.c (rust_language_data): Likewise.
4658 * symtab.c (default_collect_symbol_completion_matches): Delete.
4659 (collect_symbol_completion_matches): Update call to
4660 collect_symbol_completion_matches.
4661 (collect_symbol_completion_matches_type): Likewise.
4662 * symtab.h (default_collect_symbol_completion_matches): Delete
4663 declaration.
4664
4665 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
4666
4667 * ada-lang.c (ada_get_gdb_completer_word_break_characters): Delete.
4668 (ada_language_data): Delete la_word_break_characters initializer.
4669 (ada_language::word_break_characters): New member function.
4670 * c-lang.c (c_language_data): Delete la_word_break_characters
4671 initializer.
4672 (cplus_language_data): Likewise.
4673 (asm_language_data): Likewise.
4674 (minimal_language_data): Likewise.
4675 * completer.c: Update global comment.
4676 (advance_to_expression_complete_word_point): Update call to
4677 word_break_characters.
4678 (complete_files_symbols): Likewise.
4679 (complete_line_internal_1): Likewise.
4680 (default_completer_handle_brkchars): Likewise.
4681 (skip_quoted_chars): Likewise.
4682 * d-lang.c (d_language_data): Delete la_word_break_characters
4683 initializer.
4684 * f-lang.c (f_word_break_characters): Delete.
4685 (f_language_data): Delete la_word_break_characters initializer.
4686 (f_language::word_break_characters): New member function.
4687 * go-lang.c (go_language_data): Delete la_word_break_characters
4688 initializer.
4689 * language.c (unknown_language_data): Likewise.
4690 (auto_language_data): Likewise.
4691 * language.h (default_word_break_characters): Move declaration to
4692 earlier in the file.
4693 (language_data): Delete la_word_break_characters field.
4694 (language_defn::word_break_characters): New member function.
4695 * m2-lang.c (m2_language_data): Delete la_word_break_characters
4696 initializer.
4697 * objc-lang.c (objc_language_data): Likewise.
4698 * opencl-lang.c (opencl_language_data): Likewise.
4699 * p-lang.c (pascal_language_data): Likewise.
4700 * rust-lang.c (rust_language_data): Likewise.
4701
4702 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
4703
4704 * ada-lang.c (ada_get_symbol_name_matcher): Update header comment.
4705 (ada_language_data): Delete la_get_symbol_name_matcher
4706 initializer.
4707 (language_defn::get_symbol_name_matcher_inner): New member
4708 function.
4709 * c-lang.c (c_language_data): Delete la_get_symbol_name_matcher
4710 initializer.
4711 (cplus_language_data): Likewise.
4712 (cplus_language::get_symbol_name_matcher_inner): New member
4713 function.
4714 (asm_language_data): Delete la_get_symbol_name_matcher initializer.
4715 (minimal_language_data): Likewise.
4716 * cp-support.h (cp_get_symbol_name_matcher): Update header comment.
4717 * d-lang.c (d_language_data): Delete la_get_symbol_name_matcher
4718 initializer.
4719 * dictionary.c (iter_match_first_hashed): Update call to
4720 get_symbol_name_matcher.
4721 (iter_match_next_hashed): Likewise.
4722 (iter_match_next_linear): Likewise.
4723 * dwarf2/read.c (dw2_expand_symtabs_matching_symbol): Likewise.
4724 * f-lang.c (f_language_data): Delete la_get_symbol_name_matcher
4725 initializer.
4726 (f_language::get_symbol_name_matcher_inner): New member function.
4727 * go-lang.c (go_language_data): Delete la_get_symbol_name_matcher
4728 initializer.
4729 * language.c (default_symbol_name_matcher): Update header comment,
4730 make static.
4731 (language_defn::get_symbol_name_matcher): New definition.
4732 (language_defn::get_symbol_name_matcher_inner): Likewise.
4733 (get_symbol_name_matcher): Delete.
4734 (unknown_language_data): Delete la_get_symbol_name_matcher
4735 initializer.
4736 (auto_language_data): Likewise.
4737 * language.h (language_data): Delete la_get_symbol_name_matcher
4738 field.
4739 (language_defn::get_symbol_name_matcher): New member function.
4740 (language_defn::get_symbol_name_matcher_inner): Likewise.
4741 (default_symbol_name_matcher): Delete declaration.
4742 * linespec.c (find_methods): Update call to
4743 get_symbol_name_matcher.
4744 * m2-lang.c (m2_language_data): Delete la_get_symbol_name_matcher
4745 initializer.
4746 * minsyms.c (lookup_minimal_symbol): Update call to
4747 get_symbol_name_matcher.
4748 (iterate_over_minimal_symbols): Likewise.
4749 * objc-lang.c (objc_language_data): Delete
4750 la_get_symbol_name_matcher initializer.
4751 * opencl-lang.c (opencl_language_data): Likewise.
4752 * p-lang.c (pascal_language_data): Likewise.
4753 * psymtab.c (psymbol_name_matches): Update call to
4754 get_symbol_name_matcher.
4755 * rust-lang.c (rust_language_data): Delete
4756 la_get_symbol_name_matcher initializer.
4757 * symtab.c (symbol_matches_search_name): Update call to
4758 get_symbol_name_matcher.
4759 (compare_symbol_name): Likewise.
4760
4761 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
4762
4763 * ada-lang.c (ada_language_data): Delete la_compute_program
4764 initializer.
4765 * c-lang.c (c_language_data): Likewise.
4766 (c_language::compute_program): New member function.
4767 (cplus_language_data): Delete la_compute_program initializer.
4768 (cplus_language::compute_program): New member function.
4769 (asm_language_data): Delete la_compute_program initializer.
4770 (minimal_language_data): Likewise.
4771 * c-lang.h (c_compute_program): Update comment.
4772 (cplus_compute_program): Likewise.
4773 * compile/compile-c-support.c (c_compute_program): Likewise.
4774 (cplus_compute_program): Likewise.
4775 * compile/compile.c (compile_to_object): Update call to
4776 la_compute_program.
4777 * d-lang.c (d_language_data): Delete la_compute_program
4778 initializer.
4779 * f-lang.c (f_language_data): Likewise.
4780 * go-lang.c (go_language_data): Likewise.
4781 * language.c (unknown_language_data): Likewise.
4782 (auto_language_data): Likewise.
4783 * language.h (language_data): Delete la_compute_program field.
4784 (language_defn::compute_program): New member function.
4785 * m2-lang.c (m2_language_data): Delete la_compute_program
4786 initializer.
4787 * objc-lang.c (objc_language_data): Likewise.
4788 * opencl-lang.c (opencl_language_data): Likewise.
4789 * p-lang.c (pascal_language_data): Likewise.
4790 * rust-lang.c (rust_language_data): Likewise.
4791
4792 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
4793
4794 * ada-lang.c (ada_language_data) Delete
4795 la_class_name_from_physname initializer.
4796 * c-lang.c (c_language_data): Likewise.
4797 (cplus_language_data): Likewise.
4798 (cplus_language::class_name_from_physname): New member function.
4799 (asm_language_data): Delete la_class_name_from_physname
4800 initializer.
4801 (minimal_language_data): Likewise.
4802 * d-lang.c (d_language_data): Likewise.
4803 * dwarf2/read.c (guess_partial_die_structure_name): Update to call
4804 method on language_defn class.
4805 (guess_full_die_structure_name): Likewise.
4806 * f-lang.c (f_language_data): Delete la_class_name_from_physname
4807 initializer.
4808 * go-lang.c (go_language_data): Likewise.
4809 * language.c (language_class_name_from_physname): Delete.
4810 (unk_lang_class_name): Delete.
4811 (unknown_language_data): Delete la_class_name_from_physname
4812 initializer.
4813 (auto_language_data): Likewise.
4814 * language.h (language_data): Delete la_class_name_from_physname
4815 field.
4816 (language_defn::class_name_from_physname): New function.
4817 (language_class_name_from_physname): Delete declaration.
4818 * m2-lang.c (m2_language_data): Delete la_class_name_from_physname
4819 initializer.
4820 * objc-lang.c (objc_language_data): Likewise.
4821 * opencl-lang.c (opencl_language_data): Likewise.
4822 * p-lang.c (pascal_language_data): Likewise.
4823 * rust-lang.c (rust_language_data): Likewise.
4824
4825 2020-06-16 Tom Tromey <tom@tromey.com>
4826
4827 * tui/tui-data.h (STATUS_NAME): New macro.
4828 * tui/tui-layout.c (tui_remove_some_windows)
4829 (initialize_known_windows, tui_register_window)
4830 (tui_layout_split::remove_windows, initialize_layouts)
4831 (tui_new_layout_command): Don't use hard-coded window names.
4832
4833 2020-06-16 Tom Tromey <tom@tromey.com>
4834
4835 PR tui/25348:
4836 * tui/tui.c (tui_ensure_readline_initialized): Rename from
4837 tui_initialize_readline. Only run once. Call rl_initialize.
4838 * tui/tui.h (tui_ensure_readline_initialized): Rename from
4839 tui_initialize_readline.
4840 * tui/tui-io.c (tui_setup_io): Call
4841 tui_ensure_readline_initialized.
4842 * tui/tui-interp.c (tui_interp::init): Update.
4843
4844 2020-06-16 Tom Tromey <tom@tromey.com>
4845
4846 * tui/tui-layout.c (tui_layout_split::remove_windows): Fix logic.
4847 Also preserve the status window.
4848
4849 2020-06-16 Tom Tromey <tom@tromey.com>
4850
4851 * python/py-tui.c (tui_py_window::~tui_py_window): Handle case
4852 where m_window==nullptr.
4853
4854 2020-06-15 Tom Tromey <tromey@adacore.com>
4855
4856 * windows-nat.c (windows_nat::handle_output_debug_string):
4857 Update.
4858 (windows_nat::handle_ms_vc_exception): Update.
4859 * target.h (target_read_string): Change API.
4860 * target.c (target_read_string): Change API.
4861 * solib-svr4.c (open_symbol_file_object, svr4_read_so_list):
4862 Update.
4863 * solib-frv.c (frv_current_sos): Update.
4864 * solib-dsbt.c (dsbt_current_sos): Update.
4865 * solib-darwin.c (darwin_current_sos): Update.
4866 * linux-thread-db.c (inferior_has_bug): Update.
4867 * expprint.c (print_subexp_standard): Update.
4868 * ada-lang.c (ada_main_name, ada_tag_name_from_tsd)
4869 (ada_exception_message_1): Update.
4870
4871 2020-06-15 Tom Tromey <tromey@adacore.com>
4872
4873 * linux-tdep.c (dump_mapping_p): Use target_read_memory.
4874
4875 2020-06-15 Tom Tromey <tromey@adacore.com>
4876
4877 * valprint.c (read_string): Update comment.
4878 * target.c (MIN): Remove.
4879 (target_read_string): Rewrite.
4880
4881 2020-06-15 Tom Tromey <tromey@adacore.com>
4882
4883 * corefile.c (read_memory_string): Remove.
4884 * ada-valprint.c (ada_value_print_ptr): Update.
4885 * ada-lang.h (ada_tag_name): Change return type.
4886 * ada-lang.c (type_from_tag): Update.
4887 (ada_tag_name_from_tsd): Change return type. Use
4888 target_read_string.
4889 (ada_tag_name): Likewise.
4890 * gdbcore.h (read_memory_string): Don't declare.
4891
4892 2020-06-14 Hannes Domani <ssbssa@yahoo.de>
4893
4894 * symtab.c (rbreak_command): Ignore Windows drive colon.
4895
4896 2020-06-12 Simon Marchi <simon.marchi@efficios.com>
4897
4898 * NEWS: Mention removed GDBserver host support.
4899
4900 2020-06-12 Nelson Chu <nelson.chu@sifive.com>
4901
4902 * features/riscv/rebuild-csr-xml.sh: Updated.
4903
4904 2020-06-11 Tom Tromey <tom@tromey.com>
4905
4906 PR gdb/18318:
4907 * c-exp.y (lex_one_token): Handle 'p' like 'e'.
4908
4909 2020-06-09 Jonny Grant <jg@jguk.org>
4910 2020-06-09 Simon Marchi <simon.marchi@polymtl.ca>
4911
4912 * main.c (captured_main_1): Don't print new line after help.
4913 (print_gdb_help): add mailing list and IRC channel information
4914 to --help. Add new lines between items in the footer. Remove
4915 quotes around bug url.
4916
4917 2020-06-11 Keith Seitz <keiths@redhat.com>
4918
4919 PR gdb/21356
4920 * gdbtypes.c (resolve_dynamic_union, resolve_dynamic_struct):
4921 Resolve typedefs for type length calculations.
4922
4923 2020-06-10 Tom de Vries <tdevries@suse.de>
4924
4925 PR ada/24713
4926 * dwarf2/index-write.c (struct mapped_symtab): Add m_string_obstack.
4927 (write_psymbols): Enable .gdb_index for ada.
4928 * dwarf2/read.c: Remove comment stating .gdb_index is unsupported for
4929 ada.
4930
4931 2020-06-10 Tom de Vries <tdevries@suse.de>
4932
4933 * dwarf2/read.c (dw2_symtab_iter_init_common): Factor out of ...
4934 (dw2_symtab_iter_init): ... here. Add variant with "offset_type
4935 namei" instead of "const char *name" argument.
4936 (dw2_map_matching_symbols): Use "offset_type namei" variant of
4937 dw2_symtab_iter_init.
4938
4939 2020-06-08 Simon Marchi <simon.marchi@efficios.com>
4940
4941 * gdbtypes.h (TYPE_FIELD_TYPE): Remove. Change all call sites
4942 to use type::field and field::type instead.
4943
4944 2020-06-08 Simon Marchi <simon.marchi@efficios.com>
4945
4946 * gdbtypes.h (FIELD_TYPE): Remove. Change all call sites
4947 to use field::type instead.
4948
4949 2020-06-08 Simon Marchi <simon.marchi@efficios.com>
4950
4951 * gdbtypes.h (struct field) <type, set_type>: New methods.
4952 Rename `type` field to...
4953 <m_type>: ... this. Change references throughout to use type or
4954 set_type methods.
4955 (FIELD_TYPE): Use field::type. Change call sites that modify
4956 the field's type to use field::set_type instead.
4957
4958 2020-06-08 Simon Marchi <simon.marchi@efficios.com>
4959
4960 * gdbtypes.h (TYPE_INDEX_TYPE): Remove. Change all call sites
4961 to use type::index_type instead.
4962
4963 2020-06-08 Simon Marchi <simon.marchi@efficios.com>
4964
4965 * gdbtypes.h (struct type) <index_type, set_index_type>: New
4966 methods.
4967 (TYPE_INDEX_TYPE): Use type::index_type.
4968 * gdbtypes.c (create_array_type_with_stride): Likewise.
4969
4970 2020-06-07 Tom Tromey <tom@tromey.com>
4971
4972 * valprint.c (generic_val_print_float): Remove "embedded_offset"
4973 parameter.
4974 (generic_value_print): Update.
4975
4976 2020-06-05 Andrew Burgess <andrew.burgess@embecosm.com>
4977
4978 Revert commit 982a38f60b0.
4979 * python/py-tui.c (gdbpy_tui_set_title): Restore use of get.
4980
4981 2020-06-05 Andrew Burgess <andrew.burgess@embecosm.com>
4982
4983 * python/py-tui.c (gdbpy_tui_set_title): Use release, not get, to
4984 avoid use after free.
4985
4986 2020-06-05 Tom de Vries <tdevries@suse.de>
4987
4988 * NEWS: Fix typos.
4989
4990 2020-06-04 Simon Marchi <simon.marchi@efficios.com>
4991
4992 * dwarf2/read.c (dwarf2_read_gdb_index): Save partial_symtabs in
4993 the per_bfd object.
4994 (dwarf2_read_debug_names): Likewise.
4995 (dwarf2_initialize_objfile): Use partial_symtabs from per_bfd
4996 object when re-using a per_bfd object with an index.
4997
4998 2020-06-03 Tom de Vries <tdevries@suse.de>
4999
5000 PR symtab/26046
5001 * dwarf2/read.c (scan_partial_symbols): Recurse into DW_TAG_subprogram
5002 children for C++.
5003 (load_partial_dies): Don't skip DW_TAG_inlined_subroutine child of
5004 DW_TAG_subprogram.
5005
5006 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
5007
5008 * ada-lang.c (ada_language_data): Delete skip_trampoline
5009 initializer.
5010 * c-lang.c (c_language_data): Likewise.
5011 (cplus_language_data): Likewise.
5012 (cplus_language::skip_trampoline): New member function.
5013 (asm_language_data): Delete skip_trampoline initializer.
5014 (minimal_language_data): Likewise.
5015 * d-lang.c (d_language_data): Likewise.
5016 * f-lang.c (f_language_data): Likewise.
5017 * go-lang.c (go_language_data): Likewise.
5018 * language.c (unk_lang_trampoline): Delete function.
5019 (skip_language_trampoline): Update.
5020 (unknown_language_data): Delete skip_trampoline initializer.
5021 (auto_language_data): Likewise.
5022 * language.h (language_data): Delete skip_trampoline field.
5023 (language_defn::skip_trampoline): New function.
5024 * m2-lang.c (m2_language_data): Delete skip_trampoline
5025 initializer.
5026 * objc-lang.c (objc_skip_trampoline): Delete function, move
5027 implementation to objc_language::skip_trampoline.
5028 (objc_language_data): Delete skip_trampoline initializer.
5029 (objc_language::skip_trampoline): New member function with
5030 implementation from objc_skip_trampoline.
5031 * opencl-lang.c (opencl_language_data): Delete skip_trampoline
5032 initializer.
5033 * p-lang.c (pascal_language_data): Likewise.
5034 * rust-lang.c (rust_language_data): Likewise.
5035
5036 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
5037
5038 * ada-lang.c (ada_language_data): Delete la_demangle initializer.
5039 (ada_language::demangle): New member function.
5040 * c-lang.c (c_language_data): Delete la_demangle initializer.
5041 (cplus_language_data): Delete la_demangle initializer.
5042 (cplus_language::demangle): New member function.
5043 (asm_language_data): Delete la_demangle initializer.
5044 (minimal_language_data): Delete la_demangle initializer.
5045 * d-lang.c (d_language_data): Delete la_demangle initializer.
5046 (d_language::demangle): New member function.
5047 * f-lang.c (f_language_data): Delete la_demangle initializer.
5048 (f_language::demangle): New member function.
5049 * go-lang.c (go_language_data): Delete la_demangle initializer.
5050 (go_language::demangle): New member function.
5051 * language.c (language_demangle): Update.
5052 (unk_lang_demangle): Delete.
5053 (unknown_language_data): Delete la_demangle initializer.
5054 (unknown_language::demangle): New member function.
5055 (auto_language_data): Delete la_demangle initializer.
5056 (auto_language::demangle): New member function.
5057 * language.h (language_data): Delete la_demangle field.
5058 (language_defn::demangle): New function.
5059 * m2-lang.c (m2_language_data): Delete la_demangle initializer.
5060 * objc-lang.c (objc_language_data): Delete la_demangle
5061 initializer.
5062 (objc_language::demangle): New member function.
5063 * opencl-lang.c (opencl_language_data): Delete la_demangle
5064 initializer.
5065 * p-lang.c (pascal_language_data): Likewise.
5066 * rust-lang.c (rust_language_data): Likewise.
5067 (rust_language::demangle): New member function.
5068
5069 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
5070
5071 * ada-lang.c (ada_language_data): Delete la_print_type
5072 initializer.
5073 (ada_language::print_type): New member function.
5074 * c-lang.c (c_language_data): Delete la_print_type initializer.
5075 (c_language::print_type): New member function.
5076 (cplus_language_data): Delete la_print_type initializer.
5077 (cplus_language::print_type): New member function.
5078 (asm_language_data): Delete la_print_type initializer.
5079 (asm_language::print_type): New member function.
5080 (minimal_language_data): Delete la_print_type initializer.
5081 (minimal_language::print_type): New member function.
5082 * d-lang.c (d_language_data): Delete la_print_type initializer.
5083 (d_language::print_type): New member function.
5084 * f-lang.c (f_language_data): Delete la_print_type initializer.
5085 (f_language::print_type): New member function.
5086 * go-lang.c (go_language_data): Delete la_print_type initializer.
5087 (go_language::print_type): New member function.
5088 * language.c (unk_lang_print_type): Delete.
5089 (unknown_language_data): Delete la_print_type initializer.
5090 (unknown_language::print_type): New member function.
5091 (auto_language_data): Delete la_print_type initializer.
5092 (auto_language::print_type): New member function.
5093 * language.h (language_data): Delete la_print_type field.
5094 (language_defn::print_type): New function.
5095 (LA_PRINT_TYPE): Update.
5096 * m2-lang.c (m2_language_data): Delete la_print_type initializer.
5097 (m2_language::print_type): New member function.
5098 * objc-lang.c (objc_language_data): Delete la_print_type
5099 initializer.
5100 (objc_language::print_type): New member function.
5101 * opencl-lang.c (opencl_print_type): Delete, implementation moved
5102 to opencl_language::print_type.
5103 (opencl_language_data): Delete la_print_type initializer.
5104 (opencl_language::print_type): New member function, implementation
5105 from opencl_print_type.
5106 * p-lang.c (pascal_language_data): Delete la_print_type
5107 initializer.
5108 (pascal_language::print_type): New member function.
5109 * rust-lang.c (rust_print_type): Delete, implementation moved to
5110 rust_language::print_type.
5111 (rust_language_data): Delete la_print_type initializer.
5112 (rust_language::print_type): New member function, implementation
5113 from rust_print_type.
5114
5115 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
5116
5117 * ada-lang.c (ada_sniff_from_mangled_name): Delete function,
5118 implementation moves to...
5119 (ada_language::sniff_from_mangled_name): ...here. Update return
5120 type.
5121 (ada_language_data): Delete la_sniff_from_mangled_name
5122 initializer.
5123 * c-lang.c (c_language_data): Likewise.
5124 (cplus_language_data): Likewise.
5125 (cplus_language::sniff_from_mangled_name): New member function,
5126 implementation taken from gdb_sniff_from_mangled_name.
5127 (asm_language_data): Delete la_sniff_from_mangled_name
5128 initializer.
5129 (minimal_language_data): Likewise.
5130 * cp-support.c (gdb_sniff_from_mangled_name): Delete,
5131 implementation moves to cplus_language::sniff_from_mangled_name.
5132 * cp-support.h (gdb_sniff_from_mangled_name): Delete declaration.
5133 * d-lang.c (d_sniff_from_mangled_name): Delete, implementation
5134 moves to...
5135 (d_language::sniff_from_mangled_name): ...here.
5136 (d_language_data): Delete la_sniff_from_mangled_name initializer.
5137 * f-lang.c (f_language_data): Likewise.
5138 * go-lang.c (go_sniff_from_mangled_name): Delete, implementation
5139 moves to...
5140 (go_language::sniff_from_mangled_name): ...here.
5141 (go_language_data): Delete la_sniff_from_mangled_name initializer.
5142 * language.c (language_sniff_from_mangled_name): Delete.
5143 (unknown_language_data): Delete la_sniff_from_mangled_name
5144 initializer.
5145 (auto_language_data): Likewise.
5146 * language.h (language_data): Delete la_sniff_from_mangled_name
5147 field.
5148 (language_defn::sniff_from_mangled_name): New function.
5149 (language_sniff_from_mangled_name): Delete declaration.
5150 * m2-lang.c (m2_language_data): Delete la_sniff_from_mangled_name
5151 field.
5152 * objc-lang.c (objc_sniff_from_mangled_name): Delete,
5153 implementation moves to...
5154 (objc_language::sniff_from_mangled_name): ...here.
5155 (objc_language_data): Delete la_sniff_from_mangled_name initializer.
5156 * opencl-lang.c (opencl_language_data): Likewise.
5157 * p-lang.c (pascal_language_data): Likewise.
5158 * rust-lang.c (rust_sniff_from_mangled_name): Delete,
5159 implementation moves to...
5160 (rust_language::sniff_from_mangled_name): ...here.
5161 (rust_language_data): Delete la_sniff_from_mangled_name
5162 initializer.
5163 * symtab.c (symbol_find_demangled_name): Call
5164 sniff_from_mangled_name member function.
5165
5166 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
5167
5168 * ada-lang.c (ada_language_data): Delete la_search_name_hash
5169 initializer.
5170 * c-lang.c (c_language_data): Likewise.
5171 (cplus_language_data): Likewise.
5172 (cplus_language::search_name_hash): New member function.
5173 (asm_language_data): Delete la_search_name_hash initializer.
5174 (minimal_language_data): Likewise.
5175 * d-lang.c (d_language_data): Likewise.
5176 * dictionary.c (default_search_name_hash): Rename to...
5177 (language_defn::search_name_hash): ...this.
5178 * f-lang.c (f_language_data): Likewise.
5179 (f_language::search_name_hash): New member function.
5180 * go-lang.c (go_language_data): Delete la_search_name_hash
5181 initializer.
5182 * language.c (unknown_language_data): Likewise.
5183 (auto_language_data): Likewise.
5184 * language.h (struct language_data): Delete la_search_name_hash
5185 field.
5186 (language_defn::search_name_hash): Declare new member function.
5187 (default_search_name_hash): Delete declaration.
5188 * m2-lang.c (m2_language_data): Delete la_search_name_hash
5189 initializer.
5190 * objc-lang.c (objc_language_data): Likewise.
5191 * opencl-lang.c (opencl_language_data): Likewise.
5192 * p-lang.c (pascal_language_data): Likewise.
5193 * rust-lang.c (rust_language_data): Likewise.
5194 * symtab.c (search_name_hash): Update call.
5195
5196 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
5197
5198 * ada-lang.c (ada_language_data): Delete la_get_compile_instance
5199 initializer.
5200 * c-lang.c (class compile_instance): Declare.
5201 (c_language_data): Delete la_get_compile_instance initializer.
5202 (c_language::get_compile_instance): New member function.
5203 (cplus_language_data): Delete la_get_compile_instance initializer.
5204 (cplus_language::get_compile_instance): New member function.
5205 (asm_language_data): Delete la_get_compile_instance initializer.
5206 (minimal_language_data): Likewise.
5207 * c-lang.h (c_get_compile_context): Update comment.
5208 (cplus_get_compile_context): Update comment.
5209 * compile/compile.c (compile_to_object): Update calls, don't rely
5210 on function pointer being NULL.
5211 * d-lang.c (d_language_data): Delete la_get_compile_instance
5212 initializer.
5213 * f-lang.c (f_language_data): Likewise.
5214 * go-lang.c (go_language_data): Likewise.
5215 * language.c (unknown_language_data): Likewise.
5216 (auto_language_data): Likewise.
5217 * language.h (language_data): Delete la_get_compile_instance field.
5218 (language_defn::get_compile_instance): New member function.
5219 * m2-lang.c (m2_language_data): Delete la_get_compile_instance
5220 initializer.
5221 * objc-lang.c (objc_language_data): Likewise.
5222 * opencl-lang.c (opencl_language_data): Likewise.
5223 * p-lang.c (pascal_language_data): Likewise.
5224 * rust-lang.c (rust_language_data): Likewise.
5225
5226 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
5227
5228 * ada-lang.c (ada_add_all_symbols): Update comment.
5229 (ada_iterate_over_symbols): Delete, move implementation to...
5230 (ada_language::iterate_over_symbols): ...here, a new member
5231 function, rewrite to use range based for loop.
5232 (ada_language_data): Delete la_iterate_over_symbols initializer.
5233 * c-lang.c (c_language_data): Likewise.
5234 (cplus_language_data): Likewise.
5235 (asm_language_data): Likewise.
5236 (minimal_language_data): Likewise.
5237 * d-lang.c (d_language_data): Likewise.
5238 * f-lang.c (f_language_data): Likewise.
5239 * go-lang.c (go_language_data): Likewise.
5240 * language.c (unknown_language_data): Likewise.
5241 (auto_language_data): Likewise.
5242 * language.h (language_data): Delete la_iterate_over_symbols field.
5243 (language_defn::iterate_over_symbols): New member function.
5244 (LA_ITERATE_OVER_SYMBOLS): Update.
5245 * linespec.c (iterate_over_all_matching_symtabs): Update.
5246 * m2-lang.c (m2_language_data): Delete la_iterate_over_symbols
5247 initializer.
5248 * objc-lang.c (objc_language_data): Likewise.
5249 * opencl-lang.c (opencl_language_data): Likewise.
5250 * p-lang.c (pascal_language_data): Likewise.
5251 * rust-lang.c (rust_language_data): Likewise.
5252
5253 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
5254
5255 * ada-lang.c (ada_language_data): Delete
5256 la_lookup_transparent_type initializer.
5257 * c-lang.c (c_language_data): Likewise.
5258 (cplus_language_data): Likewise.
5259 (cplus_language::lookup_transparent_type): New member function.
5260 (asm_language_data): Delete la_lookup_transparent_type
5261 initializer.
5262 (minimal_language_data): Likewise.
5263 * d-lang.c (d_language_data): Likewise.
5264 * f-lang.c (f_language_data): Likewise.
5265 * go-lang.c (go_language_data): Likewise.
5266 * language.c (unknown_language_data): Likewise.
5267 (auto_language_data): Likewise.
5268 * language.h (struct language_data): Delete
5269 la_lookup_transparent_type field.
5270 (language_defn::lookup_transparent_type): New member function.
5271 * m2-lang.c (m2_language_data): Delete la_lookup_transparent_type
5272 initializer.
5273 * objc-lang.c (objc_language_data): Likewise.
5274 * opencl-lang.c (opencl_language_data): Likewise.
5275 * p-lang.c (pascal_language_data): Likewise.
5276 * rust-lang.c (rust_language_data): Likewise.
5277 * symtab.c (symbol_matches_domain): Update call.
5278
5279 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
5280
5281 * ada-lang.c (ada_language_arch_info): Delete function, move
5282 implementation to...
5283 (ada_language::language_arch_info): ...here, a new member
5284 function.
5285 (ada_language_data): Delete la_language_arch_info.
5286 * c-lang.c (c_language_data): Likewise.
5287 (c_language::language_arch_info): New member function.
5288 (cplus_language_arch_info): Delete function, move
5289 implementation to...
5290 (cplus_language::language_arch_info): ...here, a new member
5291 function.
5292 (cplus_language_data): Delete la_language_arch_info.
5293 (asm_language_data): Likewise.
5294 (asm_language::language_arch_info): New member function.
5295 (minimal_language_data): Delete la_language_arch_info.
5296 (minimal_language::language_arch_info): New member function.
5297 * d-lang.c (d_language_arch_info): Delete function, move
5298 implementation to...
5299 (d_language::language_arch_info): ...here, a new member
5300 function.
5301 (d_language_data): Delete la_language_arch_info.
5302 * f-lang.c (f_language_arch_info): Delete function, move
5303 implementation to...
5304 (f_language::language_arch_info): ...here, a new member
5305 function.
5306 (f_language_data): Delete la_language_arch_info.
5307 * go-lang.c (go_language_arch_info): Delete function, move
5308 implementation to...
5309 (go_language::language_arch_info): ...here, a new member
5310 function.
5311 (go_language_data): Delete la_language_arch_info.
5312 * language.c (unknown_language_data): Likewise.
5313 (unknown_language::language_arch_info): New member function.
5314 (auto_language_data): Delete la_language_arch_info.
5315 (auto_language::language_arch_info): New member function.
5316 (language_gdbarch_post_init): Update call to
5317 la_language_arch_info.
5318 * language.h (language_data): Delete la_language_arch_info
5319 function pointer.
5320 (language_defn::language_arch_info): New function.
5321 * m2-lang.c (m2_language_arch_info): Delete function, move
5322 implementation to...
5323 (m2_language::language_arch_info): ...here, a new member
5324 function.
5325 (m2_language_data): Delete la_language_arch_info.
5326 * objc-lang.c (objc_language_arch_info): Delete function, move
5327 implementation to...
5328 (objc_language::language_arch_info): ...here, a new member
5329 function.
5330 (objc_language_data): Delete la_language_arch_info.
5331 * opencl-lang.c (opencl_language_arch_info): Delete function, move
5332 implementation to...
5333 (opencl_language::language_arch_info): ...here, a new member
5334 function.
5335 (opencl_language_data): Delete la_language_arch_info.
5336 * p-lang.c (pascal_language_arch_info): Delete function, move
5337 implementation to...
5338 (pascal_language::language_arch_info): ...here, a new member
5339 function.
5340 (pascal_language_data): Delete la_language_arch_info.
5341 * rust-lang.c (rust_language_arch_info): Delete function, move
5342 implementation to...
5343 (rust_language::language_arch_info): ...here, a new member
5344 function.
5345 (rust_language_data): Delete la_language_arch_info.
5346
5347 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
5348
5349 * ada-lang.c (ada_language_data): Delete la_pass_by_reference
5350 initializer.
5351 * c-lang.c (c_language_data): Likewise.
5352 (cplus_language_data): Likewise.
5353 (cplus_language::pass_by_reference_info): New method.
5354 (asm_language_data): Delete la_pass_by_reference initializer.
5355 (minimal_language_data): Likewise.
5356 * cp-abi.c (cp_pass_by_reference): Remove use of
5357 default_pass_by_reference.
5358 * d-lang.c (d_language_data): Likewise.
5359 * f-lang.c (f_language_data): Likewise.
5360 * gnu-v3-abi.c (gnuv3_pass_by_reference): Remove use of
5361 default_pass_by_reference.
5362 * go-lang.c (go_language_data): Likewise.
5363 * language.c (language_pass_by_reference): Update.
5364 (default_pass_by_reference): Delete.
5365 (unknown_language_data): Delete la_pass_by_reference
5366 initializer.
5367 (auto_language_data): Likewise.
5368 * language.h (struct language_data): Delete la_pass_by_reference
5369 field.
5370 (language_defn::pass_by_reference_info): New member function.
5371 (default_pass_by_reference): Delete declaration.
5372 * m2-lang.c (m2_language_data): Delete la_pass_by_reference
5373 initializer.
5374 * objc-lang.c (objc_language_data): Likewise.
5375 * opencl-lang.c (opencl_language_data): Likewise.
5376 * p-lang.c (pascal_language_data): Likewise.
5377 * rust-lang.c (rust_language_data): Likewise.
5378
5379 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
5380
5381 * ada-lang.c (ada_read_var_value): Delete function, move
5382 implementation to...
5383 (ada_language::read_var_value): ...here.
5384 (ada_language_data): Delete la_read_var_value initializer.
5385 * c-lang.c (c_language_data): Likewise.
5386 (cplus_language_data): Likewise.
5387 (minimal_language_data): Likewise.
5388 * d-lang.c (d_language_data): Likewise.
5389 * f-lang.c (f_language_data): Likewise.
5390 * findvar.c (default_read_var_value): Rename to...
5391 (language_defn::read_var_value): ...this.
5392 * findvar.c (read_var_value): Update header comment, and change to
5393 call member function instead of function pointer.
5394 * go-lang.c (go_language_data): Likewise.
5395 * language.c (unknown_language_data): Delete la_read_var_value
5396 initializer.
5397 (auto_language_data): Likewise.
5398 * language.h (struct language_data): Delete la_read_var_value
5399 field.
5400 (language_defn::read_var_value): New member function.
5401 (default_read_var_value): Delete declaration.
5402 * m2-lang.c (m2_language_data): Delete la_read_var_value
5403 initializer.
5404 * objc-lang.c (objc_language_data): Likewise.
5405 * opencl-lang.c (opencl_language_data): Likewise.
5406 * p-lang.c (pascal_language_data): Likewise.
5407 * rust-lang.c (rust_language_data): Likewise.
5408 * value.h (default_read_var_value): Delete declaration.
5409
5410 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
5411
5412 * ada-lang.c (ada_print_array_index): Delete function, move
5413 implementation to...
5414 (ada_language::print_array_index): ...here.
5415 (ada_language_data): Delete la_print_array_index initializer.
5416 * c-lang.c (c_language_data): Likewise.
5417 (cplus_language_data): Likewise.
5418 (minimal_language_data): Likewise.
5419 * d-lang.c (d_language_data): Likewise.
5420 * f-lang.c (f_language_data): Likewise.
5421 * go-lang.c (go_language_data): Likewise.
5422 * language.c (default_print_array_index): Delete function, move
5423 implementation to...
5424 (language_defn::print_array_index): ...here.
5425 (unknown_language_data): Delete la_print_array_index initializer.
5426 (auto_language_data): Likewise.
5427 * language.h (struct language_data): Delete la_print_array_index
5428 field.
5429 (language_defn::print_array_index): New member function.
5430 (LA_PRINT_ARRAY_INDEX): Update.
5431 (default_print_array_index): Delete declaration.
5432 * m2-lang.c (m2_language_data): Delete la_print_array_index
5433 initializer.
5434 * objc-lang.c (objc_language_data): Likewise.
5435 * opencl-lang.c (opencl_language_data): Likewise.
5436 * p-lang.c (pascal_language_data): Likewise.
5437 * rust-lang.c (rust_language_data): Likewise.
5438
5439 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
5440
5441 * gdb/ada-lang.c (ada_language_defn): Convert to...
5442 (ada_language_data): ...this.
5443 (class ada_language): New class.
5444 (ada_language_defn): New static global.
5445 * gdb/c-lang.c (c_language_defn): Convert to...
5446 (c_language_data): ...this.
5447 (class c_language): New class.
5448 (c_language_defn): New static global.
5449 (cplus_language_defn): Convert to...
5450 (cplus_language_data): ...this.
5451 (class cplus_language): New class.
5452 (cplus_language_defn): New static global.
5453 (asm_language_defn): Convert to...
5454 (asm_language_data): ...this.
5455 (class asm_language): New class.
5456 (asm_language_defn): New static global.
5457 (minimal_language_defn): Convert to...
5458 (minimal_language_data): ...this.
5459 (class minimal_language): New class.
5460 (minimal_language_defn): New static global.
5461 * gdb/d-lang.c (d_language_defn): Convert to...
5462 (d_language_data): ...this.
5463 (class d_language): New class.
5464 (d_language_defn): New static global.
5465 * gdb/f-lang.c (f_language_defn): Convert to...
5466 (f_language_data): ...this.
5467 (class f_language): New class.
5468 (f_language_defn): New static global.
5469 * gdb/go-lang.c (go_language_defn): Convert to...
5470 (go_language_data): ...this.
5471 (class go_language): New class.
5472 (go_language_defn): New static global.
5473 * gdb/language.c (unknown_language_defn): Remove declaration.
5474 (current_language): Initialize to nullptr, real initialization is
5475 moved to _initialize_language.
5476 (languages): Delete global.
5477 (language_defn::languages): Define.
5478 (set_language_command): Use language_defn::languages.
5479 (set_language): Likewise.
5480 (range_error): Likewise.
5481 (language_enum): Likewise.
5482 (language_def): Likewise.
5483 (add_set_language_command): Use language_def::languages for the
5484 language list, and language_def to lookup language pointers.
5485 (skip_language_trampoline): Use language_defn::languages.
5486 (unknown_language_defn): Convert to...
5487 (unknown_language_data): ...this.
5488 (class unknown_language): New class.
5489 (unknown_language_defn): New static global.
5490 (auto_language_defn): Convert to...
5491 (auto_language_data): ...this.
5492 (class auto_language): New class.
5493 (auto_language_defn): New static global.
5494 (language_gdbarch_post_init): Use language_defn::languages.
5495 (_initialize_language): Initialize current_language.
5496 * gdb/language.h (struct language_defn): Rename to...
5497 (struct language_data): ...this.
5498 (struct language_defn): New.
5499 (auto_language_defn): Delete.
5500 (unknown_language_defn): Delete.
5501 (minimal_language_defn): Delete.
5502 (ada_language_defn): Delete.
5503 (asm_language_defn): Delete.
5504 (c_language_defn): Delete.
5505 (cplus_language_defn): Delete.
5506 (d_language_defn): Delete.
5507 (f_language_defn): Delete.
5508 (go_language_defn): Delete.
5509 (m2_language_defn): Delete.
5510 (objc_language_defn): Delete.
5511 (opencl_language_defn): Delete.
5512 (pascal_language_defn): Delete.
5513 (rust_language_defn): Delete.
5514 * gdb/m2-lang.c (m2_language_defn): Convert to...
5515 (m2_language_data): ...this.
5516 (class m2_language): New class.
5517 (m2_language_defn): New static global.
5518 * gdb/objc-lang.c (objc_language_defn): Convert to...
5519 (objc_language_data): ...this.
5520 (class objc_language): New class.
5521 (objc_language_defn): New static global.
5522 * gdb/opencl-lang.c (opencl_language_defn): Convert to...
5523 (opencl_language_data): ...this.
5524 (class opencl_language): New class.
5525 (opencl_language_defn): New static global.
5526 * gdb/p-lang.c (pascal_language_defn): Convert to...
5527 (pascal_language_data): ...this.
5528 (class pascal_language): New class.
5529 (pascal_language_defn): New static global.
5530 * gdb/rust-exp.y (rust_lex_tests): Use language_def to find
5531 language pointer, update comment format.
5532 * gdb/rust-lang.c (rust_language_defn): Convert to...
5533 (rust_language_data): ...this.
5534 (class rust_language): New class.
5535 (rust_language_defn): New static global.
5536
5537 2020-06-01 Andrew Burgess <andrew.burgess@embecosm.com>
5538
5539 * dwarf2/read.c (class lnp_state_machine) <m_last_address>: New
5540 member variable.
5541 <m_stmt_at_address>: New member variable.
5542 (lnp_state_machine::record_line): Don't record some lines, update
5543 tracking of is_stmt at the same address.
5544 (lnp_state_machine::lnp_state_machine): Initialise new member
5545 variables.
5546
5547 2020-06-01 Samuel Thibault <samuel.thibault@ens-lyon.org>
5548
5549 * config/i386/i386gnu.mn [%_S.o %_U.o] (COMPILE.post): Add
5550 "-include gnu-nat-mig.h".
5551 * gnu-nat-mig.h: New file.
5552 * gnu-nat.c: Include "gnu-nat-mig.h".
5553 (exc_server, msg_reply_server, notify_server,
5554 process_reply_server): Remove declarations.
5555
5556 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
5557
5558 * gnu-nat.h (inf_validate_procs, inf_suspend, inf_set_traced,
5559 steal_exc_port, proc_get_state, inf_clear_wait, inf_cleanup,
5560 inf_startup, inf_update_suspends, inf_set_pid, inf_steal_exc_ports,
5561 inf_validate_procinfo, inf_validate_task_sc, inf_restore_exc_ports,
5562 inf_set_threads_resume_sc, inf_set_threads_resume_sc_for_signal_thread,
5563 inf_resume, inf_set_step_thread, inf_detach, inf_attach, inf_signal,
5564 inf_continue, make_proc, proc_abort, _proc_free, proc_update_sc,
5565 proc_get_exception_port, proc_set_exception_port, _proc_get_exc_port,
5566 proc_steal_exc_port, proc_restore_exc_port, proc_trace): Move functions
5567 to gnu_nat_target class.
5568 * gnu-nat.c: Likewise.
5569 (inf_update_procs, S_proc_wait_reply, set_task_pause_cmd,
5570 set_task_exc_port_cmd, set_signals_cmd, set_thread_pause_cmd,
5571 set_thread_exc_port_cmd): Call inf_validate_procs through gnu_target
5572 object.
5573 (gnu_nat_target::create_inferior, gnu_nat_target::detach): Pass `this'
5574 instead of `gnu_target'.
5575
5576 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
5577
5578 * i386-gnu-tdep.c: Include "gdbcore.h"
5579 (gnu_sigtramp_code, i386_gnu_sc_reg_offset): New arrays.
5580 (GNU_SIGTRAMP_LEN, GNU_SIGTRAMP_TAIL,
5581 I386_GNU_SIGCONTEXT_THREAD_STATE_OFFSET): New macros
5582 (i386_gnu_sigtramp_start, i386_gnu_sigtramp_p,
5583 i386_gnu_sigcontext_addr): New functions
5584 (i386gnu_init_abi): Register i386_gnu_sigtramp_p,
5585 i386_gnu_sigcontext_addr, and i386_gnu_sc_reg_offset in the gdbarch
5586 tdep.
5587
5588 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
5589
5590 * gnu-nat.c (gnu_nat_target::create_inferior): Move push_target call
5591 before fork_inferior call. Avoid calling it if target_is_pushed returns
5592 true.
5593
5594 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
5595
5596 * gnu-nat.h (gnu_target): New variable declaration.
5597 * i386-gnu-nat.c (_initialize_i386gnu_nat): Initialize
5598 gnu_target.
5599 * gnu-nat.c (gnu_target): New variable.
5600 (inf_validate_procs): Pass gnu_target to thread_change_ptid,
5601 add_thread_silent, and add_thread calls.
5602 (gnu_nat_target::create_inferior): Pass gnu_target to
5603 add_thread_silent, thread_change_ptid call.
5604 (gnu_nat_target::detach): Pass gnu_target to detach_inferior
5605 call.
5606
5607 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
5608
5609 * gnu-nat.c (gnu_xfer_auxv): Remove unused `res' variable.
5610 (gnu_nat_target::find_memory_regions): Remove unused
5611 `old_address' variable.
5612
5613 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
5614
5615 * gnu-nat.c: Include "gdbarch.h".
5616
5617 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
5618
5619 * reply_mig_hack.awk (Error return): Cast function through
5620 void *, to bypass compiler function call check.
5621
5622 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
5623
5624 * config/i386/i386gnu.mn (%_reply_S.c): Add dependency on
5625 $(srcdir)/reply_mig_hack.awk.
5626
5627 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
5628
5629 * gnu-nat.h (gnu_debug_flag): Set type to bool.
5630
5631 2020-05-30 Jonny Grant <jg@jguk.org>
5632
5633 * configure.ac (ACX_BUGURL): change bug URL to https.
5634
5635 2020-05-30 Pedro Alves <palves@redhat.com>
5636
5637 * cp-support.c (replace_typedefs_template): New.
5638 (replace_typedefs_qualified_name): Handle
5639 DEMANGLE_COMPONENT_TEMPLATE.
5640
5641 2020-05-29 Simon Marchi <simon.marchi@efficios.com>
5642
5643 * dwarf2/comp-unit.c, dwarf2/comp-unit.h, dwarf2/index-cache.c,
5644 dwarf2/index-cache.h, dwarf2/index-write.c,
5645 dwarf2/index-write.h, dwarf2/line-header.c,
5646 dwarf2/line-header.h, dwarf2/macro.c, dwarf2/macro.h,
5647 dwarf2/read.c, dwarf2/read.h: Rename struct dwarf2_per_objfile
5648 variables and fields from `dwarf2_per_objfile` to just
5649 `per_objfile` throughout.
5650
5651 2020-05-28 Simon Marchi <simon.marchi@polymtl.ca>
5652
5653 * dwarf2/loc.c (class dwarf_evaluate_loc_desc)
5654 <push_dwarf_reg_entry_value>: Add comment.
5655
5656 2020-05-28 Kevin Buettner <kevinb@redhat.com>
5657 Keith Seitz <keiths@redhat.com>
5658
5659 * python/python.c (do_start_initialization): Call PyEval_SaveThread
5660 instead of PyEval_ReleaseLock.
5661 (class gdbpy_gil): Move to earlier in file.
5662 (finalize_python): Set gdb_python_initialized.
5663 (gdbpy_check_quit_flag): Acquire GIL via gdbpy_gil. Return early
5664 when not initialized.
5665
5666 2020-05-28 Simon Marchi <simon.marchi@efficios.com>
5667
5668 * dwarf2/loc.c (class dwarf_evaluate_loc_desc)
5669 <push_dwarf_reg_entry_value>: Remove assert. Override
5670 per_objfile with caller_per_objfile.
5671
5672 2020-05-28 Tom de Vries <tdevries@suse.de>
5673
5674 * dwarf2/read.c (dw2_symtab_iter_next, dw2_expand_marked_cus): Limit
5675 PR gold/15646 workaround to symbol kind "type".
5676
5677 2020-05-27 Tom Tromey <tromey@adacore.com>
5678
5679 * dwarf2/read.c (load_partial_dies): Use add_partial_symbol.
5680
5681 2020-05-27 Tom Tromey <tromey@adacore.com>
5682
5683 * dwarf2/abbrev.h (struct abbrev_table) <lookup_abbrev>: Inline.
5684 Use htab_find_with_hash.
5685 <add_abbrev>: Remove "abbrev_number" parameter.
5686 * dwarf2/abbrev.c (abbrev_table::add_abbrev): Remove
5687 "abbrev_number" parameter. Use htab_find_slot_with_hash.
5688 (hash_abbrev): Add comment.
5689 (abbrev_table::lookup_abbrev): Move to header file.
5690 (abbrev_table::read): Update.
5691
5692 2020-05-27 Tom Tromey <tromey@adacore.com>
5693
5694 * dwarf2/read.c (struct partial_die_info) <name>: Declare new
5695 method.
5696 <canonical_name>: New member.
5697 <raw_name>: Rename from "name".
5698 (partial_die_info): Initialize canonical_name.
5699 (scan_partial_symbols): Check raw_name.
5700 (partial_die_parent_scope, partial_die_full_name)
5701 (add_partial_symbol, add_partial_subprogram)
5702 (add_partial_enumeration, load_partial_dies): Use "name" method.
5703 (partial_die_info::name): New method.
5704 (partial_die_info::read, guess_partial_die_structure_name)
5705 (partial_die_info::fixup): Update.
5706
5707 2020-05-27 Tom Tromey <tromey@adacore.com>
5708
5709 * dwarf2/attribute.h (struct attribute) <form_is_ref>: Inline.
5710 <get_ref_die_offset>: Inline.
5711 <get_ref_die_offset_complaint>: New method.
5712 * dwarf2/attribute.c (attribute::form_is_ref): Move to header.
5713 (attribute::get_ref_die_offset_complaint): Rename from
5714 get_ref_die_offset. Just issue complaint.
5715
5716 2020-05-27 Hannes Domani <ssbssa@yahoo.de>
5717
5718 * cli/cli-cmds.c (shell_escape): Move exit_status_set_internal_vars.
5719
5720 2020-05-27 Hannes Domani <ssbssa@yahoo.de>
5721
5722 * exec.c (exec_file_attach): Use errno value of first openp failure.
5723
5724 2020-05-27 Hannes Domani <ssbssa@yahoo.de>
5725
5726 * nat/windows-nat.c (windows_thread_info::~windows_thread_info):
5727 Don't close thread handle.
5728
5729 2020-05-27 Tom Tromey <tom@tromey.com>
5730 Simon Marchi <simon.marchi@efficios.com>
5731
5732 * objfiles.h (struct objfile) <partial_symtabs>: Now a
5733 shared_ptr.
5734 * dwarf2/read.h (struct dwarf2_per_objfile) <partial_symtabs>: New
5735 member.
5736 * dwarf2/read.c (dwarf2_per_bfd_bfd_data_key,
5737 dwarf2_per_bfd_objfile_data_key>: New globals.
5738 (dwarf2_has_info): Use shared dwarf2_per_bfd if possible.
5739 (dwarf2_get_section_info): Use get_dwarf2_per_objfile.
5740 (dwarf2_initialize_objfile): Consider cases where per_bfd can be
5741 shared.
5742 (dwarf2_build_psymtabs): Set objfile::partial_symtabs and
5743 short-circuit when sharing.
5744 (dwarf2_build_psymtabs): Set dwarf2_per_objfile::partial_symtabs.
5745 (dwarf2_psymtab::expand_psymtab): Use free_cached_comp_units.
5746
5747 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
5748
5749 * dwarf2/read.h (struct dwarf2_per_bfd) <line_header_hash>: Move
5750 to...
5751 (struct dwarf2_per_objfile) <line_header_hash>: ... here.
5752 * dwarf2/read.c (handle_DW_AT_stmt_list): Update.
5753
5754 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
5755
5756 * dwarf2/read.c (struct mapped_index_base) <symbol_name_at,
5757 build_name_components, find_name_components_bounds>:
5758 Add per_objfile parameter.
5759 (struct mapped_index) <symbol_name_at>: Likewise.
5760 (struct mapped_debug_names): Remove constructor.
5761 <dwarf2_per_objfile>: Remove field.
5762 <namei_to_name, symbol_name_at>: Add per_objfile parameter.
5763 (mapped_index_base::find_name_components_bounds,
5764 mapped_index_base::build_name_components,
5765 dw2_expand_symtabs_matching_symbol): Likewise.
5766 (class mock_mapped_index) <symbol_name_at>: Likewise.
5767 (check_match): Likewise.
5768 (check_find_bounds_finds): Likewise.
5769 (test_mapped_index_find_name_component_bounds): Update.
5770 (CHECK_MATCH): Update.
5771 (dw2_expand_symtabs_matching): Update.
5772 (class dw2_debug_names_iterator) <dw2_debug_names_iterator>: Add
5773 per_objfile parameter.
5774 <find_vec_in_debug_names>: Likewise.
5775 <m_per_objfile>: New field.
5776 (mapped_debug_names::namei_to_name): Add dwarf2_per_objfile
5777 parameter.
5778 (dw2_debug_names_iterator::find_vec_in_debug_names): Likewise.
5779 (dw2_debug_names_iterator::next): Update.
5780 (dw2_debug_names_lookup_symbol): Update.
5781 (dw2_debug_names_expand_symtabs_for_function): Update.
5782 (dw2_debug_names_map_matching_symbols): Update.
5783 (dw2_debug_names_expand_symtabs_matching): Update.
5784 (dwarf2_read_debug_names): Update.
5785
5786 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
5787
5788 * dwarf2/read.h (struct dwarf2_cu): Forward-declare.
5789 (struct dwarf2_per_bfd) <free_cached_comp_units>: Remove,
5790 move to dwarf2_per_objfile.
5791 <read_in_chain>: Remove.
5792 (struct dwarf2_per_objfile) <get_cu, set_cu, remove_cu,
5793 remove_all_cus, age_comp_units>: New methods.
5794 <m_dwarf2_cus>: New member.
5795 (struct dwarf2_per_cu_data) <cu>: Remove.
5796 * dwarf2/read.c (struct dwarf2_cu) <read_in_chain>: Remove.
5797 (age_cached_comp_units, free_one_cached_comp_unit): Remove,
5798 moved to methods of dwarf2_per_objfile.
5799 (dwarf2_clear_marks): Remove.
5800 (dwarf2_queue_item::~dwarf2_queue_item): Update.
5801 (dwarf2_per_bfd::~dwarf2_per_bfd): Don't free dwarf2_cus.
5802 (dwarf2_per_bfd::free_cached_comp_units): Remove.
5803 (dwarf2_per_objfile::remove_all_cus): New.
5804 (class free_cached_comp_units) <~free_cached_comp_units>:
5805 Update.
5806 (load_cu): Update.
5807 (dw2_do_instantiate_symtab): Adjust.
5808 (fill_in_sig_entry_from_dwo_entry): Adjust.
5809 (cutu_reader::init_tu_and_read_dwo_dies): Update.
5810 (cutu_reader::cutu_reader): Likewise.
5811 (cutu_reader::keep): Use dwarf2_per_objfile::set_cu.
5812 (cutu_reader::cutu_reader): Use dwarf2_per_objfile::get_cu.
5813 (process_psymtab_comp_unit): Use dwarf2_per_objfile::remove_cu
5814 and dwarf2_per_objfile::age_comp_units.
5815 (load_partial_comp_unit): Update.
5816 (maybe_queue_comp_unit): Use dwarf2_per_objfile::get_cu.
5817 (process_queue): Likewise.
5818 (find_partial_die): Use dwarf2_per_objfile::get_cu instead of cu
5819 backlink.
5820 (dwarf2_read_addr_index): Likewise.
5821 (follow_die_offset): Likewise.
5822 (dwarf2_fetch_die_loc_sect_off): Likewise.
5823 (dwarf2_fetch_constant_bytes): Likewise.
5824 (dwarf2_fetch_die_type_sect_off): Likewise.
5825 (follow_die_sig_1): Likewise.
5826 (load_full_type_unit): Likewise.
5827 (read_signatured_type): Likewise.
5828 (dwarf2_cu::dwarf2_cu): Don't set cu field.
5829 (dwarf2_cu::~dwarf2_cu): Remove.
5830 (dwarf2_per_objfile::get_cu): New.
5831 (dwarf2_per_objfile::set_cu): New.
5832 (age_cached_comp_units): Rename to...
5833 (dwarf2_per_objfile::age_comp_units): ... this. Adjust
5834 to std::unordered_map.
5835 (free_one_cached_comp_unit): Rename to...
5836 (dwarf2_per_objfile::remove_cu): ... this. Adjust
5837 to std::unordered_map.
5838 (dwarf2_per_objfile::~dwarf2_per_objfile): New.
5839 (dwarf2_mark_helper): Use dwarf2_per_objfile::get_cu, expect
5840 a dwarf2_per_objfile in data.
5841 (dwarf2_mark): Pass dwarf2_per_objfile in data to htab_traverse.
5842 (dwarf2_clear_marks): Remove.
5843
5844 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
5845
5846 * dwarf2/read.c (class cutu_reader) <cutu_reader>: Replace
5847 `int use_existing_cu` parameter with `dwarf2_cu *existing_cu`.
5848 (init_tu_and_read_dwo_dies): Likewise.
5849 (cutu_reader::init_tu_and_read_dwo_dies): Likewise.
5850 (cutu_reader::cutu_reader): Likewise.
5851 (load_partial_comp_unit): Likewise.
5852 (process_psymtab_comp_unit): Update.
5853 (build_type_psymtabs_1): Update.
5854 (process_skeletonless_type_unit): Update.
5855 (load_full_comp_unit): Update.
5856 (find_partial_die): Update.
5857 (dwarf2_read_addr_index): Update.
5858 (read_signatured_type): Update.
5859
5860 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
5861
5862 * dwarf2/read.h (struct dwarf2_per_cu_data) <m_header,
5863 m_header_read_in>: New fields.
5864 <get_header>: New method.
5865 * dwarf2/read.c (per_cu_header_read_in): Remove.
5866 (dwarf2_per_cu_data::get_header): New.
5867 (dwarf2_per_cu_data::addr_size): Update.
5868 (dwarf2_per_cu_data::offset_size): Update.
5869 (dwarf2_per_cu_data::ref_addr_size): Update.
5870
5871 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
5872
5873 * dwarf2/read.c (load_cu): Return dwarf2_cu.
5874 (dw2_do_instantiate_symtab): Update.
5875 (queue_and_load_all_dwo_tus): Change parameter from
5876 dwarf2_per_cu_data to dwarf2_cu.
5877 (dwarf2_fetch_die_loc_sect_off): Update.
5878 (dwarf2_fetch_constant_bytes): Update.
5879 (dwarf2_fetch_die_type_sect_off): Update.
5880
5881 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
5882
5883 * dwarf2/read.c (process_full_comp_unit,
5884 process_full_type_unit): Remove per_cu, per_objfile paramters.
5885 Add dwarf2_cu parameter.
5886 (process_queue): Update.
5887
5888 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
5889
5890 * dwarf2/read.c (create_cu_from_index_list): Replace
5891 dwarf2_per_objfile parameter with dwarf2_per_bfd.
5892 (create_cus_from_index_list): Likewise.
5893 (create_cus_from_index): Likewise.
5894 (create_signatured_type_table_from_index): Likewise.
5895 (create_cus_from_debug_names_list): Likewise.
5896 (create_cus_from_debug_names): Likewise.
5897 (dwarf2_read_gdb_index): Update.
5898 (dwarf2_read_debug_names): Update.
5899
5900 2020-05-27 Tom Tromey <tom@tromey.com>
5901 Simon Marchi <simon.marchi@efficios.com>
5902
5903 * dwarf2/read.h (struct dwarf2_per_objfile)
5904 <get_type_for_signatured_type, set_type_for_signatured_type>:
5905 New methods.
5906 <m_type_map>: New member.
5907 (struct signatured_type) <type>: Remove.
5908 * dwarf2/read.c
5909 (dwarf2_per_objfile::get_type_for_signatured_type,
5910 dwarf2_per_objfile::set_type_for_signatured_type): New.
5911 (get_signatured_type): Use new methods.
5912
5913 2020-05-27 Tom Tromey <tom@tromey.com>
5914 Simon Marchi <simon.marchi@efficios.com>
5915
5916 * dwarf2/read.h (struct type_unit_group_unshareable): New.
5917 (struct dwarf2_per_objfile) <type_units>: New member.
5918 <get_type_unit_group_unshareable>: New method.
5919 * dwarf2/read.c (struct type_unit_group) <compunit_symtab,
5920 num_symtabs, symtabs>: Remove; move to
5921 type_unit_group_unshareable.
5922 (dwarf2_per_objfile::get_type_unit_group_unshareable): New.
5923 (process_full_type_unit, dwarf2_cu::setup_type_unit_groups)
5924 (dwarf2_cu::setup_type_unit_groups): Use type_unit_group_unshareable.
5925
5926 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
5927
5928 * dwarf2/read.h (struct dwarf2_per_cu_data):
5929 <dwarf2_per_objfile>: Remove.
5930 * dwarf2/read.c (create_cu_from_index_list): Don't assign
5931 dwarf2_per_objfile.
5932 (create_signatured_type_table_from_index): Likewise.
5933 (create_signatured_type_table_from_debug_names): Likewise.
5934 (create_debug_type_hash_table): Likewise.
5935 (fill_in_sig_entry_from_dwo_entry): Likewise.
5936 (create_type_unit_group): Likewise.
5937 (read_comp_units_from_section): Likewise.
5938 (create_cus_hash_table): Likewise.
5939
5940 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
5941
5942 * dwarf2/read.c (process_psymtab_comp_unit): Remove reference to
5943 dwarf2_per_cu_data::dwarf2_per_objfile.
5944 (compute_compunit_symtab_includes): Likewise.
5945 (dwarf2_cu::start_symtab): Likewise.
5946
5947 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
5948
5949 * dwarf2/read.h (dwarf2_get_die_type): Add dwarf2_per_objfile
5950 parameter.
5951 * dwarf2/read.c (get_die_type_at_offset): Likewise.
5952 (read_namespace_alias): Update.
5953 (lookup_die_type): Update.
5954 (dwarf2_get_die_type): Add dwarf2_per_objfile parameter.
5955 * dwarf2/loc.c (class dwarf_evaluate_loc_desc) <get_base_type>:
5956 Update.
5957 (disassemble_dwarf_expression): Update.
5958
5959 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
5960
5961 * dwarf2/read.h (struct dwarf2_queue_item): Add
5962 dwarf2_per_objfile parameter, assign new parameter.
5963 <per_objfile>: New field.
5964 * dwarf2/read.c (free_one_cached_comp_unit): Add
5965 dwarf2_per_objfile parameter.
5966 (queue_comp_unit): Likewise.
5967 (dw2_do_instantiate_symtab): Update.
5968 (process_psymtab_comp_unit): Update.
5969 (maybe_queue_comp_unit): Add dwarf2_per_objfile parameter.
5970 (process_imported_unit_die): Update.
5971 (queue_and_load_dwo_tu): Update.
5972 (follow_die_offset): Update.
5973 (follow_die_sig_1): Update.
5974
5975 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
5976
5977 * dwarf2/read.h (struct dwarf2_per_cu_data) <objfile>: Remove.
5978 * dwarf2/read.c (dwarf2_compute_name): Pass per_objfile down.
5979 (read_call_site_scope): Assign per_objfile.
5980 (dwarf2_per_cu_data::objfile): Remove.
5981 * gdbtypes.h (struct call_site) <per_objfile>: New member.
5982 * dwarf2/loc.h (dwarf2_evaluate_loc_desc): Add
5983 dwarf2_per_objfile parameter.
5984 * dwarf2/loc.c (dwarf2_evaluate_loc_desc_full): Add
5985 dwarf2_per_objfile parameter.
5986 (dwarf_expr_reg_to_entry_parameter): Add output
5987 dwarf2_per_objfile parameter.
5988 (locexpr_get_frame_base): Update.
5989 (class dwarf_evaluate_loc_desc) <get_tls_address>: Update.
5990 <push_dwarf_reg_entry_value>: Update.
5991 <call_site_to_target_addr>: Update.
5992 (dwarf_entry_parameter_to_value): Add dwarf2_per_objfile
5993 parameter.
5994 (value_of_dwarf_reg_entry): Update.
5995 (rw_pieced_value): Update.
5996 (indirect_synthetic_pointer): Update.
5997 (dwarf2_evaluate_property): Update.
5998 (dwarf2_loc_desc_get_symbol_read_needs): Add dwarf2_per_objfile
5999 parameter.
6000 (locexpr_read_variable): Update.
6001 (locexpr_get_symbol_read_needs): Update.
6002 (loclist_read_variable): Update.
6003
6004 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
6005
6006 * dwarf2/read.h (dwarf2_fetch_die_loc_sect_off,
6007 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
6008 dwarf2_fetch_die_type_sect_off): Add dwarf2_per_objfile
6009 parameter.
6010 * dwarf2/read.c (dwarf2_fetch_die_loc_sect_off,
6011 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
6012 dwarf2_fetch_die_type_sect_off): Add dwarf2_per_objfile
6013 parameter.
6014 * dwarf2/loc.c (indirect_synthetic_pointer, per_cu_dwarf_call,
6015 sect_variable_value): Add dwarf2_per_objfile parameter.
6016 (class dwarf_evaluate_loc_desc) <dwarf_call,
6017 dwarf_variable_value>: Update.
6018 (fetch_const_value_from_synthetic_pointer): Add
6019 dwarf2_per_objfile parameter.
6020 (fetch_const_value_from_synthetic_pointer): Update.
6021 (coerced_pieced_ref): Update.
6022 (class symbol_needs_eval_context) <dwarf_call,
6023 dwarf_variable_value>: Update.
6024 (dwarf2_compile_expr_to_ax): Update.
6025
6026 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
6027
6028 * dwarf2/loc.c (allocate_piece_closure): Add dwarf2_per_objfile
6029 parameter.
6030 (dwarf2_evaluate_loc_desc_full): Update.
6031
6032 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
6033
6034 * dwarf2/read.h (dwarf2_read_addr_index): Add dwarf2_per_objfile
6035 parameter.
6036 * dwarf2/read.c (dwarf2_read_addr_index): Likewise.
6037 * dwarf2/loc.c (decode_debug_loclists_addresses): Add
6038 dwarf2_per_objfile parameter.
6039 (decode_debug_loc_dwo_addresses): Likewise.
6040 (dwarf2_find_location_expression): Update.
6041 (class dwarf_evaluate_loc_desc) <get_addr_index>: Update.
6042 (locexpr_describe_location_piece): Add dwarf2_per_objfile
6043 parameter.
6044 (disassemble_dwarf_expression): Add dwarf2_per_objfile
6045 parameter.
6046 (locexpr_describe_location_1): Likewise.
6047 (locexpr_describe_location): Update.
6048
6049 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
6050
6051 * dwarf2/read.h (struct dwarf2_per_cu_data) <text_offset>:
6052 Remove.
6053 * dwarf2/read.c (dwarf2_per_cu_data::text_offset): Remove.
6054 * dwarf2/loc.c (dwarf2_find_location_expression): Update.
6055 (dwarf2_compile_property_to_c): Update.
6056 (dwarf2_compile_expr_to_ax): Add dwarf2_per_objfile parameter,
6057 use text offset from objfile.
6058 (locexpr_tracepoint_var_ref): Update.
6059 (locexpr_generate_c_location): Update.
6060 (loclist_describe_location): Update.
6061 (loclist_tracepoint_var_ref): Update.
6062 * dwarf2/compile.h (compile_dwarf_bounds_to_c): Add
6063 dwarf2_per_objfile parameter.
6064 * dwarf2/loc2c.c (do_compile_dwarf_expr_to_c): Likewise,
6065 use text offset from objfile.
6066 (compile_dwarf_expr_to_c): Add dwarf2_per_objfile parameter.
6067
6068 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
6069
6070 * dwarf2/expr.h (struct dwarf_expr_context)
6071 <dwarf_expr_context>: Add dwarf2_per_objfile parameter.
6072 <offset>: Remove.
6073 <per_objfile>: New member.
6074 * dwarf2/expr.c (dwarf_expr_context::dwarf_expr_context): Add
6075 dwarf2_per_objfile parameter. Don't set offset, set
6076 per_objfile.
6077 (dwarf_expr_context::execute_stack_op): Use offset from objfile.
6078 * dwarf2/frame.c (dwarf2_frame_find_fde): Return (by parameter)
6079 a dwarf2_per_objfile object instead of an offset.
6080 (class dwarf_expr_executor) <dwarf_expr_executor>: Add
6081 constructor.
6082 (execute_stack_op): Add dwarf2_per_objfile parameter, pass it
6083 to dwarf2_expr_executor constructor. Don't set offset.
6084 (dwarf2_fetch_cfa_info): Update.
6085 (struct dwarf2_frame_cache) <text_offset>: Remove.
6086 <per_objfile>: New field.
6087 (dwarf2_frame_cache): Update.
6088 (dwarf2_frame_prev_register): Update.
6089 * dwarf2/loc.c (class dwarf_evaluate_loc_desc)
6090 <dwarf_evaluate_loc_desc>: Add constructor.
6091 (dwarf2_evaluate_loc_desc_full): Update.
6092 (dwarf2_locexpr_baton_eval): Update.
6093 (class symbol_needs_eval_context) <symbol_needs_eval_context>:
6094 Add constructor.
6095 (dwarf2_loc_desc_get_symbol_read_needs): Update.
6096
6097 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
6098
6099 * dwarf2/read.h (struct dwarf2_per_cu_data) <addr_type,
6100 addr_sized_int_type>: Move to dwarf2_cu.
6101 <int_type>: Move to dwarf2_per_objfile.
6102 (struct dwarf2_per_objfile) <int_type>: Move here.
6103 * dwarf2/read.c (struct dwarf2_cu) <addr_type,
6104 addr_sized_int_type>: Move here.
6105 (read_func_scope): Update.
6106 (read_array_type): Update.
6107 (read_tag_string_type): Update.
6108 (attr_to_dynamic_prop): Update.
6109 (dwarf2_per_cu_data::int_type): Rename to...
6110 (dwarf2_per_objfile::int_type): ... this.
6111 (dwarf2_per_cu_data::addr_sized_int_type): Rename to...
6112 (dwarf2_cu::addr_sized_int_type): ... this.
6113 (read_subrange_type): Update.
6114 (dwarf2_per_cu_data::addr_type): Rename to...
6115 (dwarf2_cu::addr_type): ... this.
6116 (set_die_type): Update.
6117
6118 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
6119
6120 * dwarf2/read.c (queue_and_load_all_dwo_tus): Access per_objfile
6121 data through per_cu->cu.
6122
6123 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
6124
6125 * dwarf2/read.c (lookup_dwo_comp_unit): Change
6126 dwarf2_per_cu_data parameter fo dwarf2_cu.
6127 (lookup_dwo_type_unit): Likewise.
6128 (read_cutu_die_from_dwo): Likewise.
6129 (lookup_dwo_unit): Likewise.
6130 (open_and_init_dwo_file): Likewise.
6131 (lookup_dwo_cutu): Likewise.
6132 (lookup_dwo_comp_unit): Likewise.
6133 (lookup_dwo_type_unit): Likewise.
6134 (cutu_reader::init_tu_and_read_dwo_dies): Update.
6135 (cutu_reader::cutu_reader): Update.
6136
6137 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
6138
6139 * dwarf2/read.c (process_full_comp_unit): Add dwarf2_per_objfile
6140 parameter.
6141 (process_full_type_unit): Likewise.
6142 (process_queue): Update.
6143
6144 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
6145
6146 * dwarf2/read.c (recursively_compute_inclusions): Add
6147 dwarf2_per_objfile parameter.
6148 (compute_compunit_symtab_includes): Likewise.
6149 (process_cu_includes): Update.
6150
6151 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
6152
6153 * dwarf2/read.c (create_partial_symtab): Add dwarf2_per_objfile
6154 parameter.
6155 (create_type_unit_group): Update.
6156 (process_psymtab_comp_unit_reader): Update.
6157 (build_type_psymtabs_reader): Update.
6158
6159 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
6160
6161 * dwarf2/read.c (cutu_reader::keep): Access dwarf2_per_objfile
6162 object through m_this_cu->cu.
6163
6164 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
6165
6166 * dwarf2/read.c (queue_and_load_dwo_tu): Expect a dwarf2_cu as
6167 the info parameter.
6168 (queue_and_load_all_dwo_tus): Pass per_cu->cu.
6169
6170 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
6171
6172 * dwarf2/read.c (class cutu_reader) <cutu_reader>: Add
6173 per_objfile parameter.
6174 (load_full_type_unit): Add per_objfile parameter.
6175 (read_signatured_type): Likewise.
6176 (load_full_comp_unit): Likewise.
6177 (load_cu): Likewise.
6178 (dw2_do_instantiate_symtab): Likewise.
6179 (dw2_get_file_names): Likewise.
6180 (dw2_map_symtabs_matching_filename): Update.
6181 (dw_expand_symtabs_matching_file_matcher): Update.
6182 (dw2_map_symbol_filenames): Update.
6183 (process_psymtab_comp_unit): Add per_objfile parameter.
6184 (build_type_psymtabs_1): Update.
6185 (process_skeletonless_type_unit): Update.
6186 (dwarf2_build_psymtabs_hard): Update.
6187 (load_partial_comp_unit): Add per_objfile parameter.
6188 (scan_partial_symbols): Update.
6189 (load_full_comp_unit): Add per_objfile parameter.
6190 (process_imported_unit_die): Update.
6191 (create_cus_hash_table): Update.
6192 (find_partial_die): Update.
6193 (dwarf2_read_addr_index): Update.
6194 (follow_die_offset): Update.
6195 (dwarf2_fetch_die_loc_sect_off): Update.
6196 (dwarf2_fetch_constant_bytes): Update.
6197 (dwarf2_fetch_die_type_sect_off): Update.
6198 (follow_die_sig_1): Update.
6199 (load_full_type_unit): Add per_objfile parameter.
6200 (read_signatured_type): Likewise.
6201
6202 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
6203
6204 * dwarf2/read.c (lookup_dwo_unit): Use bfd_get_filename instead
6205 of objfile_name.
6206
6207 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
6208
6209 * dwarf2/read.h (struct dwarf2_per_bfd) <obfd>: New member.
6210 (dwarf2_get_dwz_file): Replace parameter with dwarf2_per_bfd.
6211 * dwarf2/read.c (dwarf2_per_bfd::dwarf2_per_bfd): Assign obfd
6212 field.
6213 (dwarf2_get_dwz_file): Replace parameter with dwarf2_per_bfd.
6214 (create_cus_from_index): Update.
6215 (dwarf2_read_gdb_index): Update.
6216 (create_cus_from_debug_names): Update.
6217 (dwarf2_read_debug_names): Update.
6218 (get_abbrev_section_for_cu): Update.
6219 (create_all_comp_units): Update.
6220 (read_attribute_value): Update.
6221 (get_debug_line_section): Update.
6222 * dwarf2/index-cache.c (index_cache::store): Update.
6223 * dwarf2/index-write.c (save_gdb_index_command): Update.
6224 * dwarf2/macro.c (dwarf_decode_macro_bytes): Update.
6225
6226 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
6227
6228 * dwarf2/read.h (struct dwarf2_per_cu_data) <per_bfd>: New
6229 member.
6230 * dwarf2/read.c (dwarf2_per_bfd::allocate_per_cu): Initialize
6231 dwarf2_per_cu_data::per_bfd.
6232 (dwarf2_per_bfd::allocate_signatured_type): Likewise.
6233 (create_type_unit_group): Likewise.
6234 (queue_comp_unit): Remove reference to
6235 per_cu->dwarf2_per_objfile.
6236 (maybe_queue_comp_unit): Likewise.
6237 (fill_in_sig_entry_from_dwo_entry): Assign new field.
6238 (create_cus_hash_table): Assign new field.
6239
6240 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
6241
6242 * dwarf2/read.c: Replace
6243 dwarf2_cu->per_cu->dwarf2_per_objfile references with
6244 dwarf2_cu->per_objfile throughout.
6245
6246 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
6247
6248 * dwarf2/read.c (dw2_do_instantiate_symtab): Add per_objfile
6249 parameter, don't use per_cu->dwarf2_per_objfile.
6250 (dw2_instantiate_symtab): Likewise.
6251 (dw2_find_last_source_symtab): Update.
6252 (dw2_map_expand_apply): Update.
6253 (dw2_lookup_symbol): Update.
6254 (dw2_expand_symtabs_for_function): Update.
6255 (dw2_expand_all_symtabs): Update.
6256 (dw2_expand_symtabs_with_fullname): Update.
6257 (dw2_expand_symtabs_matching_one): Add per_objfile parameter,
6258 don't use per_cu->dwarf2_per_objfile.
6259 (dw2_expand_marked_cus): Update.
6260 (dw2_find_pc_sect_compunit_symtab): Update.
6261 (dw2_debug_names_lookup_symbol): Update.
6262 (dw2_debug_names_expand_symtabs_for_function): Update.
6263 (dw2_debug_names_map_matching_symbols): Update.
6264 (dwarf2_psymtab::expand_psymtab): Update.
6265
6266 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
6267
6268 * dwarf2/read.c (struct dwarf2_cu) <dwarf2_cu>: Add parameter.
6269 <per_objfile>: New member.
6270 (class cutu_reader) <init_tu_and_read_dwo_dies>: Add parameter.
6271 (cutu_reader::init_tu_and_read_dwo_dies): Add parameter, update
6272 call to dwarf2_cu.
6273 (cutu_reader::cutu_reader): Update.
6274 (dwarf2_cu::dwarf2_cu): Add parameter, initialize per_objfile.
6275
6276 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
6277
6278 * dwarf2/read.h (struct dwarf2_per_bfd) <die_type_hash>: Move to
6279 struct dwarf2_per_objfile.
6280 (struct dwarf2_per_objfile) <die_type_hash>: Move from struct
6281 dwarf2_per_bfd.
6282 * dwarf2/read.c (set_die_type): Update.
6283 (get_die_type_at_offset): Update.
6284
6285 2020-05-27 Tom Tromey <tom@tromey.com>
6286 Simon Marchi <simon.marchi@efficios.com>
6287
6288 * dwarf2/read.h (struct dwarf2_per_bfd) <num_psymtabs>: New
6289 method.
6290 (struct dwarf2_per_objfile) <resize_symtabs, symtab_set_p,
6291 get_symtab, set_symtab>: New methods.
6292 <m_symtabs>: New field.
6293 (struct dwarf2_psymtab): Derive from partial_symtab.
6294 <readin_p, get_compunit_symtab>: Declare methods.
6295 * dwarf2/read.c (dwarf2_per_objfile::symtab_set_p,
6296 dwarf2_per_objfile::get_symtab, dwarf2_per_objfile::set_symtab):
6297 New methods.
6298 (struct dwarf2_per_cu_quick_data) <compunit_symtab>: Remove.
6299 (dw2_do_instantiate_symtab, dw2_instantiate_symtab)
6300 (dw2_map_expand_apply, dw2_map_symtabs_matching_filename)
6301 (dw2_symtab_iter_next, dw2_print_stats)
6302 (dw2_expand_symtabs_with_fullname)
6303 (dw2_expand_symtabs_matching_one)
6304 (dw_expand_symtabs_matching_file_matcher)
6305 (dw2_find_pc_sect_compunit_symtab, dw2_map_symbol_filenames)
6306 (dw2_debug_names_iterator::next)
6307 (dw2_debug_names_map_matching_symbols)
6308 (fill_in_sig_entry_from_dwo_entry, dwarf2_psymtab::read_symtab)
6309 (process_queue, dwarf2_psymtab::expand_psymtab): Update.
6310 (dwarf2_psymtab::readin_p, dwarf2_psymtab::get_compunit_symtab):
6311 New methods.
6312 (get_compunit_symtab, process_full_comp_unit)
6313 (process_full_type_unit): Update.
6314 (dwarf2_build_psymtabs, dwarf2_initialize_objfile, add_type_unit): Call
6315
6316 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
6317
6318 * dwarf2/read.h (dwarf2_per_objfile): Rename to dwarf2_per_bfd,
6319 then introduce a new dwarf2_per_objfile type.
6320 <read_line_string>: Move to the new dwarf2_per_objfile type.
6321 <objfile>: Likewise.
6322 (dwarf2_per_bfd): Rename dwarf2_per_objfile to this.
6323 * dwarf2/read.c: Replace references to dwarf2_per_objfile with
6324 dwarf2_per_objfile->per_bfd.
6325 (dwarf2_per_objfile::dwarf2_per_objfile): Rename to...
6326 (dwarf2_per_bfd::dwarf2_per_bfd): ... this.
6327 (dwarf2_per_objfile::free_cached_comp_units): Rename to...
6328 (dwarf2_per_bfd::free_cached_comp_units): ... this.
6329 (dwarf2_has_info): Allocate dwarf2_per_bfd.
6330 (dwarf2_per_objfile::locate_sections): Rename to...
6331 (dwarf2_per_bfd::locate_sections): ... this.
6332 (dwarf2_per_objfile::get_cutu): Rename to...
6333 (dwarf2_per_bfd::get_cutu): ... this.
6334 (dwarf2_per_objfile::get_cu): Rename to...
6335 (dwarf2_per_bfd::get_cu): ... this.
6336 (dwarf2_per_objfile::get_tu): Rename to...
6337 (dwarf2_per_bfd::get_tu): ... this.
6338 (dwarf2_per_objfile::allocate_per_cu): Rename to...
6339 (dwarf2_per_bfd::allocate_per_cu): ... this.
6340 (dwarf2_per_objfile::allocate_signatured_type): Rename to...
6341 (dwarf2_per_bfd::allocate_signatured_type): ... this.
6342 (get_gdb_index_contents_ftype): Change parameter from
6343 dwarf2_per_objfile to dwarf2_per_bfd.
6344 * dwarf2/macro.c, dwarf2/index-write.c: Replace references to
6345 dwarf2_per_objfile with dwarf2_per_objfile->per_bfd.
6346
6347 2020-05-27 Tom Tromey <tom@tromey.com>
6348 Simon Marchi <simon.marchi@efficios.com>
6349
6350 * dwarf2/loc.c (struct piece_closure) <per_objfile>: New member.
6351 (allocate_piece_closure): Set "per_objfile" member.
6352 (dwarf2_find_location_expression, dwarf2_locexpr_baton_eval)
6353 (locexpr_describe_location, loclist_describe_location): Use new
6354 member.
6355 * dwarf2/read.c (read_call_site_scope)
6356 (mark_common_block_symbol_computed, attr_to_dynamic_prop)
6357 (dwarf2_const_value_attr, dwarf2_fetch_die_loc_sect_off)
6358 (fill_in_loclist_baton, dwarf2_symbol_mark_computed,
6359 handle_data_member_location): Set per_objfile member.
6360 * dwarf2/loc.h (struct dwarf2_locexpr_baton) <per_objfile>: New
6361 member.
6362 (struct dwarf2_loclist_baton) <per_objfile>: New member.
6363
6364 2020-05-27 Tom Tromey <tom@tromey.com>
6365
6366 * dwarf2/read.h (struct dwarf2_per_objfile) <allocate_per_cu,
6367 allocate_signatured_type>: Declare new methods.
6368 <m_num_psymtabs>: New member.
6369 (struct dwarf2_per_cu_data) <index>: New member.
6370 * dwarf2/read.c (dwarf2_per_objfile::allocate_per_cu)
6371 (dwarf2_per_objfile::allocate_signatured_type): New methods.
6372 (create_cu_from_index_list): Use allocate_per_cu.
6373 (create_signatured_type_table_from_index)
6374 (create_signatured_type_table_from_debug_names)
6375 (create_debug_type_hash_table, add_type_unit)
6376 (read_comp_units_from_section): Use allocate_signatured_type.
6377
6378 2020-05-27 Tom Tromey <tom@tromey.com>
6379
6380 * psymtab.c (partial_map_expand_apply)
6381 (psym_find_pc_sect_compunit_symtab, psym_lookup_symbol)
6382 (psym_lookup_global_symbol_language)
6383 (psymtab_to_symtab, psym_find_last_source_symtab, dump_psymtab)
6384 (psym_print_stats, psym_expand_symtabs_for_function)
6385 (psym_map_symbol_filenames, psym_map_matching_symbols)
6386 (psym_expand_symtabs_matching)
6387 (partial_symtab::read_dependencies, maintenance_info_psymtabs)
6388 (maintenance_check_psymtabs): Update.
6389 * psympriv.h (struct partial_symtab) <readin_p,
6390 get_compunit_symtab>: Add objfile parameter.
6391 (struct standard_psymtab) <readin_p, get_compunit_symtab>:
6392 Likewise.
6393 * dwarf2/read.c (struct dwarf2_include_psymtab) <readin_p,
6394 get_compunit_symtab>: Likewise.
6395 (dwarf2_psymtab::expand_psymtab): Pass objfile argument.
6396
6397 2020-05-27 Tom Tromey <tom@tromey.com>
6398
6399 * dwarf2/read.h (struct dwarf2_per_objfile) <obstack>: New
6400 member.
6401 * dwarf2/read.c (delete_file_name_entry): Fix comment.
6402 (create_cu_from_index_list)
6403 (create_signatured_type_table_from_index)
6404 (create_signatured_type_table_from_debug_names)
6405 (dw2_get_file_names_reader, dwarf2_initialize_objfile)
6406 (dwarf2_create_include_psymtab)
6407 (create_debug_type_hash_table, add_type_unit)
6408 (create_type_unit_group, read_comp_units_from_section)
6409 (dwarf2_compute_name, create_cus_hash_table)
6410 (create_dwp_hash_table, create_dwo_unit_in_dwp_v1)
6411 (create_dwo_unit_in_dwp_v2, open_and_init_dwp_file): Use new
6412 obstack.
6413 (dw2_get_real_path): Likewise. Change argument to
6414 dwarf2_per_objfile.
6415
6416 2020-05-27 Luis Machado <luis.machado@linaro.org>
6417
6418 PR tdep/26000
6419 * arm-tdep.c (thumb_analyze_prologue): Fix instruction matching
6420 for ldrd (immediate).
6421
6422 2020-05-26 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6423
6424 * command.h: Add comment giving the name of class_tui.
6425 * cli/cli-cmds.c (_initialize_cli_cmds): If TUI defined,
6426 create the fake command for the help for class_tui.
6427
6428 2020-05-26 Tom Tromey <tromey@adacore.com>
6429
6430 * ada-lang.c (ada_print_array_index): Change type. Call val_atr.
6431 (ada_value_ptr_subscript): Don't call pos_atr on the lower bound.
6432 (val_atr): New function.
6433 (value_val_atr): Use it.
6434 * ada-valprint.c (print_optional_low_bound): Change low bound
6435 handling for enums.
6436 (val_print_packed_array_elements): Don't call discrete_position.
6437 * gdbtypes.c (get_discrete_bounds) <TYPE_CODE_RANGE>: Call
6438 discrete_position for enum types.
6439 * language.c (default_print_array_index): Change type.
6440 * language.h (struct language_defn) <la_print_array_index>: Add
6441 index_type parameter, change type of index_value.
6442 (LA_PRINT_ARRAY_INDEX): Add index_type parameter.
6443 (default_print_array_index): Update.
6444 * valprint.c (maybe_print_array_index): Don't call
6445 value_from_longest. Update.
6446 (value_print_array_elements): Don't call discrete_position.
6447
6448 2020-05-26 Tom Tromey <tromey@adacore.com>
6449
6450 * ada-lang.c (value_val_atr): Handle TYPE_CODE_RANGE.
6451 * gdbtypes.c (discrete_position): Handle TYPE_CODE_RANGE.
6452
6453 2020-05-25 Cristiano De Alti <cristiano_dealti@hotmail.com>
6454
6455 PR gdb/13519
6456 * avr-tdep.c (avr_integer_to_address): Return data or code
6457 address accordingly to the second 'type' argument of the
6458 function.
6459
6460 2020-05-25 Michael Weghorn <m.weghorn@posteo.de>
6461
6462 * infcmd.c, inferior.h: (construct_inferior_arguments):
6463 Moved function from here to gdbsupport/common-inferior.{h,cc}
6464
6465 2020-05-23 Tom Tromey <tom@tromey.com>
6466
6467 Revert commit eca1f90c:
6468 * NEWS: Remove entry for completion styling.
6469 * completer.c (_rl_completion_prefix_display_length): Move
6470 declaration later.
6471 (gdb_fnprint): Revert.
6472 (gdb_display_match_list_1): Likewise.
6473 * cli/cli-style.c (completion_prefix_style)
6474 (completion_difference_style, completion_suffix_style): Remove.
6475 (_initialize_cli_style): Revert.
6476 * cli/cli-style.h (completion_prefix_style)
6477 (completion_difference_style, completion_suffix_style): Don't
6478 declare.
6479
6480 2020-05-24 Pedro Alves <palves@redhat.com>
6481
6482 * symtab.c (completion_list_add_name): Return boolean indication
6483 of whether the symbol matched.
6484 (completion_list_add_symbol): Don't try to remove C++ aliases if
6485 the symbol didn't match in the first place.
6486 * symtab.h (completion_list_add_name): Return bool.
6487
6488 2020-05-23 Simon Marchi <simon.marchi@polymtl.ca>
6489
6490 * gdbtypes.h (TYPE_FIELD): Remove. Replace all uses with
6491 type::field.
6492
6493 2020-05-23 Joel Brobecker <brobecker@adacore.com>
6494
6495 GDB 9.2 released.
6496
6497 2020-05-23 Tom Tromey <tom@tromey.com>
6498
6499 * NEWS: Add entry for completion styling.
6500 * completer.c (_rl_completion_prefix_display_length): Move
6501 declaration earlier.
6502 (gdb_fnprint): Use completion_style.
6503 (gdb_display_match_list_1): Likewise.
6504 * cli/cli-style.c (completion_prefix_style)
6505 (completion_difference_style, completion_suffix_style): New
6506 globals.
6507 (_initialize_cli_style): Register new globals.
6508 * cli/cli-style.h (completion_prefix_style)
6509 (completion_difference_style, completion_suffix_style): Declare.
6510
6511 2020-05-23 Pedro Alves <palves@redhat.com>
6512
6513 * utils.c: Include "gdbsupport/gdb-safe-ctype.h".
6514 (parse_escape): Use ISDIGIT instead of isdigit.
6515 (puts_debug): Use gdb_isprint instead of isprint.
6516 (fprintf_symbol_filtered): Use ISALNUM instead of isalnum.
6517 (cp_skip_operator_token, skip_ws, strncmp_iw_with_mode): Use
6518 ISSPACE instead of isspace.
6519 (strncmp_iw_with_mode): Use TOLOWER instead of tolower and ISSPACE
6520 instead of isspace.
6521 (strcmp_iw_ordered): Use ISSPACE instead of isspace.
6522 (string_to_core_addr): Use TOLOWER instead of tolower, ISXDIGIT
6523 instead of isxdigit and ISDIGIT instead of isdigit.
6524
6525 2020-05-22 Simon Marchi <simon.marchi@efficios.com>
6526
6527 * gdbtypes.h (struct type) <field>: New method.
6528 (TYPE_FIELDS): Remove, replace all uses with either type::fields
6529 or type::field.
6530
6531 2020-05-22 Simon Marchi <simon.marchi@efficios.com>
6532
6533 * gdbtypes.h (struct type) <fields, set_fields>: New methods.
6534 (TYPE_FIELDS): Use type::fields. Change all call sites that
6535 modify the propery to use type::set_fields instead.
6536
6537 2020-05-22 Simon Marchi <simon.marchi@efficios.com>
6538
6539 * gdbtypes.h (TYPE_NFIELDS): Remove. Change all cal sites to use
6540 type::num_fields instead.
6541
6542 2020-05-22 Simon Marchi <simon.marchi@efficios.com>
6543
6544 * gdbtypes.h (struct type) <num_fields, set_num_fields>: New
6545 methods.
6546 (TYPE_NFIELDS): Use type::num_fields. Change all call sites
6547 that modify the number of fields to use type::set_num_fields
6548 instead.
6549
6550 2020-05-22 Tom Tromey <tromey@adacore.com>
6551
6552 * compile/compile-object-load.h (munmap_list_free): Don't
6553 declare.
6554
6555 2020-05-22 Andrew Burgess <andrew.burgess@embecosm.com>
6556
6557 * annotate.c (annotate_source_line): Update return type, add call
6558 to update current symtab and line.
6559 * annotate.h (annotate_source_line): Update return type, and
6560 extend header comment.
6561 * source.c (info_line_command): Check annotation_level before
6562 calling annotate_source_line.
6563 * stack.c (print_frame_info): If calling annotate_source_line
6564 returns true, then don't print any other source line information.
6565
6566 2020-05-21 Simon Marchi <simon.marchi@efficios.com>
6567
6568 * lm32-tdep.c (lm32_register_reggroup_p): Fix condition.
6569
6570 2020-05-21 Simon Marchi <simon.marchi@efficios.com>
6571
6572 * coffread.c (patch_type): Remove NULL check before xfree.
6573 * corefile.c (set_gnutarget): Likewise.
6574 * cp-abi.c (set_cp_abi_as_auto_default): Likewise.
6575 * exec.c (build_section_table): Likewise.
6576 * remote.c (remote_target::pass_signals): Likewise.
6577 * utils.c (n_spaces): Likewise.
6578 * cli/cli-script.c (document_command): Likewise.
6579 * i386-windows-tdep.c (core_process_module_section): Likewise.
6580 * linux-fork.c (struct fork_info) <~fork_info>: Likewise.
6581
6582 2020-05-20 Simon Marchi <simon.marchi@efficios.com>
6583
6584 * symfile.c (reread_symbols): Clear objfile's section_offsets
6585 vector and section indices, re-compute them by calling
6586 sym_offsets.
6587
6588 2020-05-20 Tom Tromey <tromey@adacore.com>
6589
6590 * ada-lang.c (bound_name, MAX_ADA_DIMENS): Remove.
6591 (desc_one_bound, desc_index_type): Compute field name.
6592
6593 2020-05-20 Tom de Vries <tdevries@suse.de>
6594
6595 PR symtab/25833
6596 * dwarf2/read.c (dw2_map_matching_symbols): Handle .gdb_index.
6597
6598 2020-05-20 Alan Modra <amodra@gmail.com>
6599
6600 PR 25993
6601 * solib-darwin.c (darwin_bfd_open): Don't strdup pathname for
6602 bfd_set_filename.
6603 * solib-aix.c (solib_aix_bfd_open): Use std::string for name
6604 passed to bfd_set_filename.
6605 * symfile-mem.c (add_vsyscall_page): Likewise for string
6606 passed to symbol_file_add_from_memory.
6607 (symbol_file_add_from_memory): Make name param a const char* and
6608 don't strdup.
6609
6610 2020-05-20 Alan Modra <amodra@gmail.com>
6611
6612 * coff-pe-read.c (read_pe_exported_syms): Use bfd_get_filename
6613 rather than accessing bfd->filename directly.
6614 * dtrace-probe.c (dtrace_static_probe_ops::get_probes): Likewise,
6615 and use bfd_section_name.
6616 * dwarf2/frame.c (decode_frame_entry): Likewise.
6617 * exec.c (exec_set_section_address): Likewise.
6618 * solib-aix.c (solib_aix_bfd_open): Likewise.
6619 * stap-probe.c (get_stap_base_address): Likewise.
6620 * symfile.c (reread_symbols): Likewise.
6621
6622 2020-05-19 Tom Tromey <tromey@adacore.com>
6623
6624 * sparc64-tdep.c (adi_tag_fd): Update call to target_fileio_open.
6625
6626 2020-05-19 Simon Marchi <simon.marchi@efficios.com>
6627
6628 * dwarf2/read.c (quirk_rust_enum): Allocate enough fields.
6629
6630 2020-05-19 Pedro Alves <palves@redhat.com>
6631
6632 * NEWS (set exec-file-mismatch): Adjust entry.
6633 * exec.c: Include "build-id.h".
6634 (validate_exec_file): Try to match build IDs instead of filenames.
6635 * gdb_bfd.c (struct gdb_bfd_open_closure): New.
6636 (gdb_bfd_iovec_fileio_open): Adjust to use gdb_bfd_open_closure
6637 and pass down 'warn_if_slow'.
6638 (gdb_bfd_open): Add 'warn_if_slow' parameter. Use
6639 gdb_bfd_open_closure to pass it down.
6640 * gdb_bfd.h (gdb_bfd_open): Add 'warn_if_slow' parameter.
6641
6642 2020-05-19 Pedro Alves <palves@redhat.com>
6643
6644 * gdb_bfd.c (gdb_bfd_iovec_fileio_open): Adjust.
6645 * target.c (target_fileio_open_1): Rename to target_fileio_open
6646 and make extern. Use bool.
6647 (target_fileio_open, target_fileio_open_warn_if_slow): Delete.
6648 (target_fileio_read_alloc_1): Adjust.
6649 * target.h (target_fileio_open): Add 'warn_if_slow' parameter.
6650 (target_fileio_open_warn_if_slow): Delete declaration.
6651
6652 2020-05-19 Pedro Alves <palves@redhat.com>
6653
6654 * gdb_bfd.h: (gdb_bfd_open): Default to 'fd' parameter to -1.
6655 Adjust all callers.
6656
6657 2020-05-19 Yoshinori Sato <ysato@users.sourceforge.jp>
6658
6659 * h8300-tdep.c (h8300_is_argument_spill): Change how we check
6660 whether disp is negative.
6661
6662 2020-05-19 Simon Marchi <simon.marchi@efficios.com>
6663
6664 * symfile.h (struct symfile_segment_data)
6665 <~symfile_segment_data>: Remove.
6666 <segment_info>: Change to std::vector.
6667 * symfile.c (default_symfile_segments): Update.
6668 * elfread.c (elf_symfile_segments): Update.
6669
6670 2020-05-19 Simon Marchi <simon.marchi@efficios.com>
6671
6672 * symfile.h (struct symfile_segment_data) <struct segment>: New.
6673 <segments>: New.
6674 <segment_bases, segment_sizes>: Remove.
6675 * symfile.c (default_symfile_segments): Update.
6676 * elfread.c (elf_symfile_segments): Update.
6677 * remote.c (remote_target::get_offsets): Update.
6678 * solib-target.c (solib_target_relocate_section_addresses):
6679 Update.
6680
6681 2020-05-19 Simon Marchi <simon.marchi@efficios.com>
6682
6683 * symfile.h (struct symfile_segment_data): Initialize fields.
6684 <~symfile_segment_data>: Add.
6685 (symfile_segment_data_up): New.
6686 (struct sym_fns) <sym_segments>: Return a
6687 symfile_segment_data_up.
6688 (default_symfile_segments): Return a symfile_segment_data_up.
6689 (free_symfile_segment_data): Remove.
6690 (get_symfile_segment_data): Return a symfile_segment_data_up.
6691 * symfile.c (default_symfile_segments): Likewise.
6692 (get_symfile_segment_data): Likewise.
6693 (free_symfile_segment_data): Remove.
6694 (symfile_find_segment_sections): Update.
6695 * elfread.c (elf_symfile_segments): Return a
6696 symfile_segment_data_up.
6697 * remote.c (remote_target::get_offsets): Update.
6698 * solib-target.c (solib_target_relocate_section_addresses):
6699 Update.
6700 * symfile-debug.c (debug_sym_segments): Return a
6701 symfile_segment_data_up.
6702
6703 2020-05-18 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
6704
6705 PR build/25981
6706 * i386-sol2-nat.c [PR_MODEL_NATIVE != PR_MODEL_LP64] (regmap):
6707 Hardcode register numbers.
6708
6709 PR build/25981
6710 * procfs.c [(__i386__ || __x86_64__) && sun] (proc_get_LDT_entry,
6711 procfs_find_LDT_entry): Remove.
6712 * procfs.h [(__i386__ || __x86_64__) && sun] (struct ssd,
6713 procfs_find_LDT_entry): Remove.
6714 * sol-thread.c [(__i386__ || __x86_64__) && sun] (ps_lgetLDT):
6715 Remove.
6716
6717 2020-05-17 Pedro Alves <palves@redhat.com>
6718 Andrew Burgess <andrew.burgess@embecosm.com>
6719 Keno Fischer <keno@juliacomputing.com>
6720
6721 PR gdb/25741
6722 * breakpoint.c (build_target_condition_list): Update comments.
6723 (build_target_command_list): Update comments and skip matching
6724 locations.
6725 (insert_bp_location): Move "set breakpoint auto-hw on" handling to
6726 a separate function. Simplify "set breakpoint auto-hw off"
6727 handling.
6728 (insert_breakpoints): Update comment.
6729 (tracepoint_locations_match): New parameter. For breakpoints,
6730 compare location types too, if the caller wants to.
6731 (handle_automatic_hardware_breakpoints): New functions.
6732 (bp_location_is_less_than): Also sort by location type and
6733 hardware breakpoint length.
6734 (update_global_location_list): Handle "set breakpoint auto-hw on"
6735 here.
6736 (update_breakpoint_locations): Ask breakpoint_locations_match to
6737 ignore location types.
6738
6739 2020-05-16 Simon Marchi <simon.marchi@efficios.com>
6740
6741 * gdbtypes.h (TYPE_NAME): Remove. Change all cal sites to use
6742 type::name instead.
6743
6744 2020-05-16 Simon Marchi <simon.marchi@efficios.com>
6745
6746 * gdbtypes.h (struct type) <name, set_name>: New methods.
6747 (TYPE_CODE): Use type::name. Change all call sites used to set
6748 the name to use type::set_name instead.
6749
6750 2020-05-16 Tom Tromey <tom@tromey.com>
6751
6752 * top.c (quit_force): Update.
6753 * infrun.c (handle_no_resumed): Update.
6754 * top.h (all_uis): New function.
6755 (ALL_UIS): Remove.
6756
6757 2020-05-16 Simon Marchi <simon.marchi@efficios.com>
6758
6759 * mips-linux-tdep.c (mips_linux_in_dynsym_stub): Fix condition.
6760
6761 2020-05-16 Pedro Alves <palves@redhat.com>
6762
6763 * ia64-linux-nat.c
6764 (ia64_linux_nat_target) <enable_watchpoints_in_psr(ptid_t)>:
6765 Declare method.
6766 (enable_watchpoints_in_psr): Now a method of ia64_linux_nat_target.
6767
6768 2020-05-15 Simon Marchi <simon.marchi@efficios.com>
6769
6770 * sparc64-tdep.c (adi_stat_t): Remove typedef (leaving struct).
6771 (sparc64_adi_info): Likewise.
6772
6773 2020-05-15 Tom Tromey <tom@tromey.com>
6774
6775 * symtab.c (lookup_language_this, lookup_symbol_aux): Use
6776 block_objfile.
6777 (lookup_objfile_from_block): Remove.
6778 (lookup_symbol_in_block, lookup_symbol_in_static_block)
6779 (lookup_global_symbol): Use block_objfile.
6780 * symtab.h (lookup_objfile_from_block): Don't declare.
6781 * printcmd.c (clear_dangling_display_expressions): Use
6782 block_objfile.
6783 * parse.c (operator_check_standard): Use block_objfile.
6784
6785 2020-05-15 Tom Tromey <tom@tromey.com>
6786
6787 * language.c (language_alloc_type_symbol): Set
6788 SYMBOL_SECTION.
6789 * symtab.c (initialize_objfile_symbol): Remove.
6790 (allocate_symbol): Remove.
6791 (allocate_template_symbol): Remove.
6792 * dwarf2/read.c (fixup_go_packaging): Use "new".
6793 (new_symbol): Use "new".
6794 (read_variable): Don't call initialize_objfile_symbol. Use
6795 "new".
6796 (read_func_scope): Use "new".
6797 * xcoffread.c (process_xcoff_symbol): Don't call
6798 initialize_objfile_symbol.
6799 (SYMBOL_DUP): Remove.
6800 * coffread.c (process_coff_symbol, coff_read_enum_type): Use
6801 "new".
6802 * symtab.h (allocate_symbol, initialize_objfile_symbol)
6803 (allocate_template_symbol): Don't declare.
6804 (struct symbol): Add copy constructor. Change defaults.
6805 * jit.c (finalize_symtab): Use "new".
6806 * ctfread.c (ctf_add_enum_member_cb, new_symbol, ctf_add_var_cb):
6807 Use "new".
6808 * stabsread.c (patch_block_stabs, define_symbol, read_enum_type)
6809 (common_block_end): Use "new".
6810 * mdebugread.c (parse_symbol): Use "new".
6811 (new_symbol): Likewise.
6812
6813 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6814
6815 * NEWS: Mention changes to help and apropos.
6816
6817 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6818
6819 * command.h (enum command_class): Improve comments, document
6820 that class_alias is for user-defined aliases, give the class
6821 name for each class, remove unused class_xdb.
6822 * cli/cli-decode.c (add_com_alias): Document THECLASS intended usage.
6823 * breakpoint.c (_initialize_breakpoint): Replace class_alias
6824 by a precise class.
6825 * infcmd.c (_initialize_infcmd): Likewise.
6826 * reverse.c (_initialize_reverse): Likewise.
6827 * stack.c (_initialize_stack): Likewise.
6828 * symfile.c (_initialize_symfile): Likewise.
6829 * tracepoint.c (_initialize_tracepoint): Likewise.
6830
6831 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6832
6833 * cli/cli-decode.c (apropos_cmd): Produce output for aliases
6834 when their aliased command is traversed.
6835 (help_cmd): Add fput_command_names_styled call to
6836 output command name and aliases when command has an alias.
6837
6838 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6839
6840 * cli/cli-decode.h (help_cmd_list): Remove declaration.
6841 * cli/cli-decode.c (help_cmd_list): Declare as static,
6842 remove prefix argument, use bool for recurse arg, rework to show the aliases of
6843 a command together with the command.
6844 (fput_command_name_styled, fput_command_names_styled): New functions.
6845 (print_help_for_command): Remove prefix arg, use bool for recurse arg, use
6846 fput_command_name_styled.
6847 (help_list, help_all): Update callers to remove prefix arg and use bool recurse.
6848 * cli/cli-cmds.c (_initialize_cli_cmds): Update alias_command doc.
6849
6850 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6851
6852 * cli/cli-setshow.h (cmd_show_list): Remove prefix argument.
6853 * cli/cli-decode.c (do_show_prefix_cmd): Likewise.
6854 * command.h (cmd_show_list): Likewise.
6855 * dwarf2/index-cache.c (show_index_cache_command): Likewise.
6856 * cli/cli-setshow.c (cmd_show_list): Use the prefix to produce the output. Skip aliases.
6857
6858 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6859
6860 * unittests/command-def-selftests.c (traverse_command_structure):
6861 Verify all commands of a list have the same prefix command and
6862 that only the top cmdlist commands have a null prefix.
6863
6864 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6865
6866 * cli/cli-decode.c (lookup_cmd_for_prefix): Return the aliased command
6867 as prefix, not one of its aliases.
6868 (set_cmd_prefix): Remove.
6869 (do_add_cmd): Centralize the setting of the prefix of a command, when
6870 command is defined after its full chain of prefix commands.
6871 (add_alias_cmd): Remove call to set_cmd_prefix, as do_add_cmd does it.
6872 (add_setshow_cmd_full): Likewise.
6873 (update_prefix_field_of_prefixed_commands): New function.
6874 (add_prefix_cmd): Replace non working call to set_cmd_prefix by
6875 update_prefix_field_of_prefixed_commands.
6876 * gdb/remote-fileio.c (initialize_remote_fileio): Use the real
6877 addresses of remote_set_cmdlist and remote_show_cmdlist given
6878 as argument, not the address of an argument.
6879 * gdb/remote-fileio.h (initialize_remote_fileio): Likewise.
6880 * gdb/remote.c (_initialize_remote): Likewise.
6881
6882 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6883
6884 * cli/cli-cmds.c (alias_command): Check for an existing alias
6885 using lookup_cmd_composition, as valid_command_p is too strict
6886 and forbids aliases that are the prefix of an existing alias
6887 or command.
6888 * cli/cli-decode.c (lookup_cmd_composition): Ensure a prefix
6889 command is properly recognised as a valid command.
6890
6891 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6892
6893 * unittests/help-doc-selftests.c: Rename to
6894 unittests/command-def-selftests.c
6895 * unittests/command-def-selftests.c (help_doc_tests): Update some
6896 comments.
6897 (command_structure_tests, traverse_command_structure): New namespace
6898 and function.
6899 (command_structure_invariants_tests): New function.
6900 (_initialize_command_def_selftests) Renamed from
6901 _initialize_help_doc_selftests, register command_structure_invariants
6902 selftest.
6903
6904 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6905
6906 * cli/cli-cmds.c (_initialize_cli_cmds): Define 'info set' as
6907 an alias of 'show'.
6908
6909 2020-05-15 Joel Brobecker <brobecker@adacore.com>
6910
6911 * ada-lang.h: (ada_is_gnat_encoded_fixed_point_type): Renames
6912 ada_is_fixed_point_type. Update all callers.
6913 (gnat_encoded_fixed_point_delta): Renames ada_delta. Update
6914 all callers.
6915 * ada-lang.c (gnat_encoded_fixed_type_info): Renames fixed_type_info.
6916 Update all callers.
6917 * ada-typeprint.c (print_gnat_encoded_fixed_point_type): Renames
6918 print_fixed_point_type. Update all callers.
6919 * ada-valprint.c (ada_value_print_num): Replace call to
6920 ada_is_fixed_point_type by ada_is_gnat_encoded_fixed_point_type.
6921
6922 2020-05-14 Kevin Buettner <kevinb@redhat.com>
6923
6924 * nat/linux-btrace.c (btrace_this_cpu): Add check for AMD
6925 processors.
6926 (cpu_supports_bts): Add CV_AMD case.
6927
6928 2020-05-14 Laurent Morichetti <Laurent.Morichetti@amd.com>
6929 Simon Marchi <simon.marchi@efficios.com>
6930
6931 * infrun.c (stop_all_threads): Collect multiple wait events at
6932 each pass.
6933
6934 2020-05-14 Simon Marchi <simon.marchi@efficios.com>
6935
6936 * gdbtypes.h (TYPE_CODE): Remove. Change all call sites to use
6937 type::code instead.
6938
6939 2020-05-14 Simon Marchi <simon.marchi@efficios.com>
6940
6941 * gdbtypes.h (struct type) <code, set_code>: New methods.
6942 (TYPE_CODE): Use type::code. Change all call sites used to set
6943 the code to use type::set_code instead.
6944
6945 2020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
6946 Tom de Vries <tdevries@suse.de>
6947 Pedro Alves <palves@redhat.com>
6948
6949 PR threads/25478
6950 * infrun.c (stop_all_threads): Do NOT ignore
6951 TARGET_WAITKIND_NO_RESUMED, TARGET_WAITKIND_THREAD_EXITED,
6952 TARGET_WAITKIND_EXITED, TARGET_WAITKIND_SIGNALLED wait statuses
6953 received.
6954 (handle_no_resumed): Remove code handling a live inferior with no
6955 threads.
6956 * remote.c (has_single_non_exited_thread): New.
6957 (remote_target::update_thread_list): Do not delete a thread if is
6958 the last thread of the process.
6959 * thread.c (thread_select): Call delete_exited_threads instead of
6960 prune_threads.
6961
6962 2020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
6963
6964 * infrun.c (stop_all_threads): Enable/disable thread events of all
6965 targets. Move a debug message denoting the end of the function
6966 into the SCOPED_EXIT block.
6967
6968 2020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
6969
6970 * process-stratum-target.h: Include <set>.
6971 (all_non_exited_process_targets, switch_to_target_no_thread): New
6972 function declarations.
6973 * process-stratum-target.c (all_non_exited_process_targets)
6974 (switch_to_target_no_thread): New function implementations.
6975
6976 2020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
6977
6978 * infrun.c (handle_inferior_event): Extract out a piece of code
6979 into...
6980 (mark_non_executing_threads): ...this new function.
6981
6982 2020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
6983
6984 * infrun.c (resume_1): Move a 'regcache_read_pc' call down to first
6985 use.
6986
6987 2020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
6988
6989 * regcache.c (regcache_read_pc_protected): New function
6990 implementation that returns 0 if the PC cannot read via
6991 'regcache_read_pc'.
6992 * infrun.c (proceed): Call 'regcache_read_pc_protected'
6993 instead of 'regcache_read_pc'.
6994 (keep_going_pass_signal): Ditto.
6995
6996 2020-05-13 Tom Tromey <tromey@adacore.com>
6997
6998 * ada-lang.c (align_value): Remove.
6999 (ada_template_to_fixed_record_type_1): Use align_up.
7000
7001 2020-05-13 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
7002
7003 * async-event.c: Update the copyright year.
7004 * async-event.h: Update the copyright year.
7005
7006 2020-05-12 Simon Marchi <simon.marchi@efficios.com>
7007
7008 * objfiles.h (is_addr_in_objfile,
7009 shared_objfile_contains_address_p): Return bool.
7010 * objfile.c (is_addr_in_objfile,
7011 shared_objfile_contains_address_p): Return bool.
7012
7013 2020-05-11 Tom Tromey <tromey@adacore.com>
7014
7015 * cli/cli-cmds.c (info_command): Restore.
7016 (_initialize_cli_cmds): Use add_prefix_command for "info".
7017 * gdb-gdb.gdb.in: Restore breakpoint on info_command.
7018
7019 2020-05-11 Tom Tromey <tromey@adacore.com>
7020
7021 * ada-lang.c (ada_value_primitive_field): Now public.
7022 * ada-lang.h (ada_value_primitive_field): Declare.
7023 * ada-valprint.c (print_field_values): Use
7024 ada_value_primitive_field for wrapper fields.
7025
7026 2020-05-11 Tom de Vries <tdevries@suse.de>
7027
7028 * dwarf2/index-write.c (debug_names::psymbol_tag): Handle
7029 MODULE_DOMAIN.
7030
7031 2020-05-11 Tom de Vries <tdevries@suse.de>
7032
7033 PR symtab/25941
7034 * dwarf2/read.c (create_cus_from_debug_names_list): Initialize CUs
7035 with length 0, if not gdb-produced.
7036 (cutu_reader::cutu_reader): Set CU length to actual length if 0.
7037
7038 2020-05-09 Tom de Vries <tdevries@suse.de>
7039
7040 PR gdb/25955
7041 * break-catch-throw.c (check_status_exception_catchpoint): Fix name
7042 calculation.
7043
7044 2020-05-09 Tom Tromey <tom@tromey.com>
7045
7046 * top.c (server_command): Now bool.
7047 * top.h (server_command): Now bool.
7048
7049 2020-05-08 Tom Tromey <tromey@adacore.com>
7050
7051 * dwarf2/read.c (read_lexical_block_scope): Don't process a DIE
7052 already being processed.
7053
7054 2020-05-08 Tom Tromey <tom@tromey.com>
7055
7056 * printcmd.c (struct display) <next>: Remove.
7057 <display>: New constructor.
7058 <exp_string>: Now a std::string.
7059 <enabled_p>: Now a bool.
7060 (display_number): Move definition earlier.
7061 (displays): Rename from display_chain. Now a std::vector.
7062 (ALL_DISPLAYS, ALL_DISPLAYS_SAFE): Remove.
7063 (display_command): Update.
7064 (do_one_display, disable_display)
7065 (enable_disable_display_command, do_enable_disable_display):
7066 Update.
7067 (free_display): Remove.
7068 (clear_displays): Rewrite.
7069 (delete_display): Update.
7070 (map_display_numbers): Use function_view. Remove "data"
7071 parameter. Update.
7072 (do_delete_display): Remove.
7073 (undisplay_command): Update.
7074 (do_one_display, do_displays, disable_display)
7075 (info_display_command): Update.
7076 (do_enable_disable_display): Remove.
7077 (enable_disable_display_command)
7078 (clear_dangling_display_expressions): Update.
7079
7080 2020-05-08 Tom Tromey <tom@tromey.com>
7081
7082 * symtab.c (set_symbol_cache_size)
7083 (maintenance_print_symbol_cache, maintenance_flush_symbol_cache)
7084 (maintenance_print_symbol_cache_statistics): Update.
7085 * symmisc.c (print_symbol_bcache_statistics)
7086 (print_objfile_statistics, maintenance_print_objfiles)
7087 (maintenance_info_symtabs, maintenance_check_symtabs)
7088 (maintenance_expand_symtabs, maintenance_info_line_tables):
7089 Update.
7090 * symfile-debug.c (set_debug_symfile): Update.
7091 * source.c (forget_cached_source_info): Update.
7092 * python/python.c (gdbpy_progspaces): Update.
7093 * psymtab.c (maintenance_info_psymtabs): Update.
7094 * probe.c (parse_probes): Update.
7095 * linespec.c (iterate_over_all_matching_symtabs)
7096 (collect_symtabs_from_filename, search_minsyms_for_name): Update.
7097 * guile/scm-progspace.c (gdbscm_progspaces): Update.
7098 * exec.c (exec_target::close): Update.
7099 * ada-tasks.c (ada_tasks_new_objfile_observer): Update.
7100 * breakpoint.c (print_one_breakpoint_location)
7101 (create_longjmp_master_breakpoint)
7102 (create_std_terminate_master_breakpoint): Update.
7103 * progspace.c (program_spaces): Now a std::vector.
7104 (maybe_new_address_space): Update.
7105 (add_program_space): Remove.
7106 (program_space::program_space): Update.
7107 (remove_program_space): Update.
7108 (number_of_program_spaces): Remove.
7109 (print_program_space, update_address_spaces): Update.
7110 * progspace.h (program_spaces): Change type.
7111 (ALL_PSPACES): Remove.
7112 (number_of_program_spaces): Don't declare.
7113 (struct program_space) <next>: Remove.
7114
7115 2020-05-08 Tom Tromey <tom@tromey.com>
7116
7117 * mi/mi-cmd-file.c (mi_cmd_file_list_shared_libraries): Update.
7118 * solib-svr4.c (svr4_fetch_objfile_link_map): Update.
7119 (enable_break): Update.
7120 * solib-frv.c (frv_fdpic_find_global_pointer): Update.
7121 (frv_fdpic_find_canonical_descriptor): Update.
7122 (frv_fetch_objfile_link_map): Update.
7123 * progspace.c (program_space::free_all_objfiles): Update.
7124 (program_space::solibs): New method.
7125 * progspace.h (struct program_space) <solibs>: New method.
7126 * solist.h (master_so_list): Don't declare.
7127 (ALL_SO_LIBS): Remove.
7128 * solib.h (so_list_head): Remove.
7129 (update_solib_list): Update comment.
7130 * solib.c (master_so_list): Remove.
7131 (solib_used, update_solib_list, solib_add)
7132 (info_sharedlibrary_command, clear_solib)
7133 (reload_shared_libraries_1, remove_user_added_objfile): Update.
7134
7135 2020-05-08 Tom Tromey <tom@tromey.com>
7136
7137 * extension.c (extension_languages): Now a std::array.
7138 (ALL_EXTENSION_LANGUAGES): Remove.
7139 (get_ext_lang_defn, get_ext_lang_of_file)
7140 (eval_ext_lang_from_control_command): Update.
7141 (finish_ext_lang_initialization)
7142 (auto_load_ext_lang_scripts_for_objfile)
7143 (ext_lang_type_printers::ext_lang_type_printers)
7144 (apply_ext_lang_type_printers)
7145 (ext_lang_type_printers::~ext_lang_type_printers)
7146 (apply_ext_lang_val_pretty_printer, apply_ext_lang_frame_filter)
7147 (preserve_ext_lang_values, get_breakpoint_cond_ext_lang)
7148 (breakpoint_ext_lang_cond_says_stop, check_quit_flag)
7149 (get_matching_xmethod_workers, ext_lang_colorize)
7150 (ext_lang_before_prompt): Update.
7151 (ALL_ENABLED_EXTENSION_LANGUAGES): Remove.
7152
7153 2020-05-08 Tom Tromey <tom@tromey.com>
7154
7155 * symtab.h (class demangle_result_storage) <set_malloc_ptr>: New
7156 overload.
7157 <swap_string, m_string>: Remove.
7158 * symtab.c (demangle_for_lookup, completion_list_add_symbol):
7159 Update.
7160 * stabsread.c (define_symbol, read_type): Update.
7161 * linespec.c (find_linespec_symbols): Update.
7162 * gnu-v3-abi.c (gnuv3_get_typeid): Update.
7163 * dwarf2/read.c (dwarf2_canonicalize_name): Update.
7164 * dbxread.c (read_dbx_symtab): Update.
7165 * cp-support.h (cp_canonicalize_string_full)
7166 (cp_canonicalize_string, cp_canonicalize_string_no_typedefs):
7167 Return unique_xmalloc_ptr.
7168 * cp-support.c (inspect_type): Update.
7169 (cp_canonicalize_string_full): Return unique_xmalloc_ptr.
7170 (cp_canonicalize_string_no_typedefs, cp_canonicalize_string):
7171 Likewise.
7172 * c-typeprint.c (print_name_maybe_canonical): Update.
7173 * break-catch-throw.c (check_status_exception_catchpoint):
7174 Update.
7175
7176 2020-05-08 Tom de Vries <tdevries@suse.de>
7177
7178 * infrun.c (follow_fork): Copy current_line and current_symtab to
7179 child thread.
7180
7181 2020-05-07 Simon Marchi <simon.marchi@efficios.com>
7182
7183 * async-event.c (struct async_signal_handler, struct
7184 async_event_handler): Reformat, remove typedef.
7185
7186 2020-05-07 Simon Marchi <simon.marchi@efficios.com>
7187
7188 * gdbtypes.h (TYPE_DYN_PROP_LIST): Remove. Update all users
7189 access thistype->main_type->dyn_prop_list directly.
7190
7191 2020-05-07 Simon Marchi <simon.marchi@efficios.com>
7192
7193 * gdbtypes.h (struct type) <remove_dyn_prop>: New method.
7194 (remove_dyn_prop): Remove. Update all users to use
7195 type::remove_dyn_prop.
7196 * gdbtypes.c (remove_dyn_prop): Rename to...
7197 (type::remove_dyn_prop): ... this.
7198
7199 2020-05-07 Simon Marchi via Gdb-patches <gdb-patches@sourceware.org>
7200
7201 * gdbtypes.h (struct type) <add_dyn_prop>: New method.
7202 (add_dyn_prop): Remove. Update all users to use
7203 type::add_dyn_prop.
7204 * gdbtypes.c (add_dyn_prop): Rename to...
7205 (type::add_dyn_prop): ... this.
7206
7207 2020-05-07 Simon Marchi <simon.marchi@efficios.com>
7208
7209 * gdbtypes.h (struct type) <get_dyn_prop>: New method.
7210 (get_dyn_prop): Remove. Update all users to use
7211 type::dyn_prop.
7212 * gdbtypes.c (get_dyn_prop): Rename to...
7213 (type::dyn_prop): ... this.
7214
7215 2020-05-06 Simon Marchi <simon.marchi@efficios.com>
7216
7217 * gdbtypes.h (struct main_type) <flag_static>: Remove.
7218
7219 2020-05-06 Simon Marchi <simon.marchi@efficios.com>
7220
7221 * amd64-tdep.c (amd64_analyze_prologue): Check for `endbr64`
7222 instruction, skip it if it's there.
7223
7224 2020-05-05 Simon Marchi <simon.marchi@efficios.com>
7225
7226 * gdbtypes.h (struct main_type) <flag_incomplete>: Remove.
7227
7228 2020-05-04 Simon Marchi <simon.marchi@efficios.com>
7229
7230 * gdbtypes.h (TYPE_INCOMPLETE): Remove.
7231 * gdbtypes.c (recursive_dump_type): Remove use of
7232 TYPE_INCOMPLETE.
7233
7234 2020-05-03 Tom Tromey <tom@tromey.com>
7235
7236 * breakpoint.c (catch_command, tcatch_command): Remove.
7237 (_initialize_breakpoint): Use add_basic_prefix_cmd,
7238 add_show_prefix_cmd.
7239 (set_breakpoint_cmd, show_breakpoint_cmd): Remove
7240 * utils.c (set_internal_problem_cmd, show_internal_problem_cmd):
7241 Remove.
7242 (add_internal_problem_command): Use add_basic_prefix_cmd,
7243 add_show_prefix_cmd.
7244 * mips-tdep.c (set_mipsfpu_command): Remove.
7245 (_initialize_mips_tdep): Use add_basic_prefix_cmd.
7246 * dwarf2/index-cache.c (set_index_cache_command): Remove.
7247 (_initialize_index_cache): Use add_basic_prefix_cmd.
7248 * memattr.c (dummy_cmd): Remove.
7249 (_initialize_mem): Use add_basic_prefix_cmd, add_show_prefix_cmd.
7250 * tui/tui-win.c (set_tui_cmd, show_tui_cmd): Remove.
7251 (_initialize_tui_win): Use add_basic_prefix_cmd,
7252 add_show_prefix_cmd.
7253 * cli/cli-logging.c (set_logging_command): Remove.
7254 (_initialize_cli_logging): Use add_basic_prefix_cmd,
7255 add_show_prefix_cmd.
7256 (show_logging_command): Remove.
7257 * target.c (target_command): Remove.
7258 (add_target): Use add_basic_prefix_cmd.
7259
7260 2020-05-02 Hannes Domani <ssbssa@yahoo.de>
7261
7262 * gdbtypes.h (enum dynamic_prop_node_kind): Fix typo.
7263
7264 2020-05-01 Philippe Waroquiers <philippe.waroquiers@skynet.be>
7265
7266 * gdb-gdb.gdb-in: Remove breakpoint on disappeared function
7267 info_command.
7268
7269 2020-04-30 Kamil Rytarowski <n54@gmx.com>
7270
7271 * nbsd-nat.c (nbsd_enable_proc_events)
7272 (nbsd_nat_target::post_startup_inferior): Add.
7273 (nbsd_nat_target::post_attach): Call `nbsd_enable_proc_events'.
7274 (nbsd_nat_target::update_thread_list): Rewrite.
7275 (nbsd_nat_target::wait): Handle "PTRACE_LWP_EXIT" and
7276 "PTRACE_LWP_CREATE".
7277 * nbsd-nat.h (nbsd_nat_target::post_startup_inferior): Add.
7278
7279 2020-04-30 Philippe Waroquiers <philippe.waroquiers@skynet.be>
7280
7281 * stack.c (_initialize_stack): Remove duplicated creation
7282 of "frame" command and "f" alias.
7283
7284 2020-04-30 Hannes Domani <ssbssa@yahoo.de>
7285
7286 PR gdb/18706
7287 * gdbtypes.c (check_typedef): Calculate size of array of
7288 stubbed type.
7289
7290 2020-04-30 Hannes Domani <ssbssa@yahoo.de>
7291
7292 PR gdb/15559
7293 * i386-tdep.c (i386_push_dummy_call): Call
7294 i386_thiscall_push_dummy_call.
7295 (i386_thiscall_push_dummy_call): New function.
7296 * i386-tdep.h (i386_thiscall_push_dummy_call): Declare.
7297 * i386-windows-tdep.c (i386_windows_push_dummy_call): New function.
7298 (i386_windows_init_abi): Call set_gdbarch_push_dummy_call.
7299
7300 2020-04-29 Simon Marchi <simon.marchi@efficios.com>
7301
7302 * gdbarch.sh (do_read): Add shellcheck disable directive for
7303 warning SC2162.
7304
7305 2020-04-29 Simon Marchi <simon.marchi@efficios.com>
7306
7307 * gdbarch.sh: Use ${foo:-} where shellcheck would report a
7308 "referenced but not assigned" warning.
7309
7310 2020-04-29 Simon Marchi <simon.marchi@efficios.com>
7311
7312 * gdbarch.sh: Remove code that sets fallbackdefault.
7313
7314 2020-04-29 Simon Marchi <simon.marchi@efficios.com>
7315
7316 * gdbarch.sh: Use shell operators && and || instead of
7317 -a and -o.
7318
7319 2020-04-29 Simon Marchi <simon.marchi@efficios.com>
7320
7321 * gdbarch.sh: Use $(...) instead of `...`.
7322
7323 2020-04-29 Simon Marchi <simon.marchi@efficios.com>
7324
7325 * gdbarch.sh: Use double quotes around variables.
7326
7327 2020-04-29 Simon Marchi <simon.marchi@efficios.com>
7328
7329 * gdbarch.sh: Use %s with printf, instead of variables in the
7330 format string.
7331
7332 2020-04-29 Tom Tromey <tromey@adacore.com>
7333
7334 PR ada/25875:
7335 * dwarf2/read.c (update_enumeration_type_from_children): Compute
7336 type fields here.
7337 (read_enumeration_type): Call
7338 update_enumeration_type_from_children later. Update comments.
7339 (process_enumeration_scope): Don't create type fields.
7340
7341 2020-04-29 Kamil Rytarowski <n54@gmx.com>
7342
7343 * nbsd-tdep.c: Include "xml-syscall.h".
7344 (nbsd_init_abi): Call `set_xml_syscall_file_name'.
7345
7346 2020-04-29 Kamil Rytarowski <n54@gmx.com>
7347
7348 * nbsd-nat.c: Include "sys/wait.h".
7349 (nbsd_resume, nbsd_nat_target::resume, nbsd_wait)
7350 (nbsd_nat_target::wait, nbsd_nat_target::insert_exec_catchpoint)
7351 (nbsd_nat_target::remove_exec_catchpoint)
7352 (nbsd_nat_target::set_syscall_catchpoint): Add.
7353 * nbsd-nat.h (nbsd_nat_target::resume, nbsd_nat_target::wait)
7354 (nbsd_nat_target::insert_exec_catchpoint)
7355 (nbsd_nat_target::remove_exec_catchpoint)
7356 (nbsd_nat_target::set_syscall_catchpoint): Add.
7357 * nbsd-tdep.c (nbsd_get_syscall_number): Add.
7358 (nbsd_init_abi): Call `set_gdbarch_get_syscall_number' and pass
7359 `nbsd_get_syscall_number'.
7360
7361 2020-04-29 Tom Tromey <tom@tromey.com>
7362
7363 * stack.c (print_block_frame_labels): Remove.
7364
7365 2020-04-29 Hannes Domani <ssbssa@yahoo.de>
7366
7367 PR gdb/17320
7368 * ada-valprint.c (val_print_packed_array_elements): Move array
7369 end bracket to new line.
7370 (ada_val_print_string): Remove extra spaces before first array
7371 element.
7372 * c-valprint.c (c_value_print_array): Likewise.
7373 * m2-valprint.c (m2_print_array_contents): Likewise.
7374 (m2_value_print_inner): Likewise.
7375 * p-valprint.c (pascal_value_print_inner): Likewise.
7376 * valprint.c (generic_val_print_array): Likewise.
7377 (value_print_array_elements): Move first array element and array
7378 end bracket to new line.
7379
7380 2020-04-29 Tom de Vries <tdevries@suse.de>
7381
7382 PR symtab/25889
7383 * linespec.c (find_method): Fix ix calculation.
7384
7385 2020-04-28 Kamil Rytarowski <n54@gmx.com>
7386
7387 * syscalls/update-netbsd.sh: New file.
7388 * syscalls/netbsd.xml: Regenerate.
7389 * data-directory/Makefile.in: Register `netbsd.xml' in
7390 `SYSCALLS_FILES'.
7391
7392 2020-04-28 Simon Marchi <simon.marchi@efficios.com>
7393
7394 * syscalls/update-freebsd.sh: Add double quotes.
7395
7396 2020-04-28 Tom Tromey <tom@tromey.com>
7397
7398 * NEWS: Update.
7399 * python/py-cmd.c (gdbpy_initialize_commands): Add COMMAND_TUI.
7400 (cmdpy_init): Allow class_tui.
7401
7402 2020-04-28 Mark Williams <mark@myosotissp.com>
7403
7404 PR gdb/24480
7405 * dwarf2read.c: Add missing assingments to list_in_scope when
7406 start_symtab was already called.
7407
7408 2020-04-28 Simon Marchi <simon.marchi@efficios.com>
7409
7410 PR gdb/25881
7411 * dwarf2/read.c (offset_map_type): Use
7412 gdb:hash_enum<sect_offset> as hash function.
7413
7414 2020-04-28 Tom de Vries <tdevries@suse.de>
7415
7416 * dwarf2/read.c (process_structure_scope): Add symbol for struct decl
7417 with DW_AT_signature.
7418
7419 2020-04-27 Simon Marchi <simon.marchi@efficios.com>
7420
7421 * configure.ac: Remove check for fs_base/gs_base in
7422 user_regs_struct.
7423 * configure: Re-generate.
7424 * config.in: Re-generate.
7425 * amd64-nat.c (amd64_native_gregset_reg_offset): Adjust.
7426 * amd64-linux-nat.c (amd64_linux_nat_target::fetch_registers,
7427 amd64_linux_nat_target::store_registers, ps_get_thread_area, ): Adjust.
7428
7429 2020-04-27 Luis Machado <luis.machado@linaro.org>
7430
7431 * dwarf2/frame-tailcall.c (dwarf2_tailcall_sniffer_first): Handle
7432 problematic inline frame unwinding situation.
7433 * frame.c (frame_id_computed_p): New function.
7434 * frame.h (frame_id_computed_p): New prototype.
7435
7436 2020-04-26 Tom Tromey <tom@tromey.com>
7437
7438 * command.h (enum command_class) <class_pseudo>: Remove.
7439
7440 2020-04-26 Philippe Waroquiers <philippe.waroquiers@skynet.be>
7441
7442 * cli/cli-decode.c (lookup_cmd_composition): Fix comments
7443 and whitespace.
7444
7445 2020-04-25 Kamil Rytarowski <n54@gmx.com>
7446
7447 * inf-ptrace.c (inf_ptrace_target::wait): Remove
7448 `PT_GET_PROCESS_STATE' block.
7449
7450 2020-04-24 Tom Tromey <tom@tromey.com>
7451
7452 * symtab.h (symbol_get_demangled_name): Don't declare.
7453 * symtab.c (symbol_get_demangled_name): Remove.
7454 (general_symbol_info::natural_name)
7455 (general_symbol_info::demangled_name): Update.
7456
7457 2020-04-24 Tom Tromey <tom@tromey.com>
7458
7459 PR rust/25025:
7460 * dwarf2/read.c (dwarf2_physname): Do not demangle for Rust.
7461
7462 2020-04-24 Tom Tromey <tom@tromey.com>
7463
7464 PR symtab/12707:
7465 * dwarf2/read.c (add_partial_symbol): Use the linkage name if it
7466 exists.
7467 (new_symbol): Likewise.
7468 * compile/compile-object-load.c (get_out_value_type): Use
7469 symbol_matches_search_name.
7470
7471 2020-04-24 Tom Tromey <tom@tromey.com>
7472
7473 * dwarf2/read.c (add_partial_symbol): Do not call
7474 compute_and_set_names.
7475
7476 2020-04-24 Tom Tromey <tom@tromey.com>
7477
7478 * dwarf2/read.c (add_partial_symbol): Use new add_psymbol_to_list
7479 overload.
7480
7481 2020-04-24 Tom Tromey <tom@tromey.com>
7482
7483 * psymtab.c (add_psymbol_to_bcache): Simplify calling convention.
7484 (add_psymbol_to_list): New overload. Make old overload call new
7485 one.
7486 * psympriv.h (add_psymbol_to_list): New overload.
7487
7488 2020-04-24 Tom Tromey <tom@tromey.com>
7489
7490 * dwarf2/read.c (partial_die_info::read) <case
7491 DW_AT_linkage_name>: Use value_as_string.
7492 (dwarf2_string_attr): Use value_as_string.
7493 * dwarf2/attribute.h (struct attribute) <value_as_string>: Declare
7494 method.
7495 * dwarf2/attribute.c (attribute::value_as_string): New method.
7496
7497 2020-04-24 Tom Tromey <tom@tromey.com>
7498
7499 * symtab.c (general_symbol_info::natural_name)
7500 (general_symbol_info::demangled_name): Check for language_rust.
7501
7502 2020-04-24 Tom Tromey <tom@tromey.com>
7503
7504 * dwarf2/read.c (dw2_linkage_name): Move Rust "{" hack here...
7505 (dwarf2_physname): ... from here.
7506 (partial_die_info::read): Add Rust "{" hack.
7507
7508 2020-04-24 Tom Tromey <tom@tromey.com>
7509
7510 * symtab.h (struct general_symbol_info) <set_demangled_name>: New
7511 method.
7512 (symbol_set_demangled_name): Don't declare.
7513 * symtab.c (general_symbol_info::set_demangled_name): Rename from
7514 symbol_set_demangled_name.
7515 (general_symbol_info::set_language)
7516 (general_symbol_info::compute_and_set_names): Update.
7517 * minsyms.c (minimal_symbol_reader::install): Update.
7518 * dwarf2/read.c (new_symbol): Update.
7519
7520 2020-04-24 Tom Tromey <tromey@adacore.com>
7521
7522 PR python/23662:
7523 * python/py-type.c (convert_field): Handle
7524 FIELD_LOC_KIND_DWARF_BLOCK.
7525 (typy_get_sizeof): Handle TYPE_HAS_DYNAMIC_LENGTH.
7526 (typy_get_dynamic): Nw function.
7527 (type_object_getset): Add "dynamic".
7528 * NEWS: Add entry.
7529
7530 2020-04-24 Tom Tromey <tromey@adacore.com>
7531
7532 * ada-typeprint.c (print_choices, print_variant_part)
7533 (print_record_field_types_dynamic): New functions.
7534 (print_record_field_types): Use print_record_field_types_dynamic.
7535
7536 2020-04-24 Tom Tromey <tromey@adacore.com>
7537
7538 * dwarf2/read.c (handle_data_member_location): New overload.
7539 (dwarf2_add_field): Use it.
7540 (decode_locdesc): Add "computed" parameter. Update comment.
7541 * gdbtypes.c (is_dynamic_type_internal): Also look for
7542 FIELD_LOC_KIND_DWARF_BLOCK.
7543 (resolve_dynamic_struct): Handle FIELD_LOC_KIND_DWARF_BLOCK.
7544 * gdbtypes.c (is_dynamic_type_internal): Add special case for C++
7545 virtual base classes.
7546 * gnu-v3-abi.c (gnuv3_baseclass_offset): Handle
7547 FIELD_LOC_KIND_DWARF_BLOCK.
7548
7549 2020-04-24 Tom Tromey <tromey@adacore.com>
7550
7551 * dwarf2/read.c (read_structure_type): Handle dynamic length.
7552 * gdbtypes.c (is_dynamic_type_internal): Check
7553 TYPE_HAS_DYNAMIC_LENGTH.
7554 (resolve_dynamic_type_internal): Use TYPE_DYNAMIC_LENGTH.
7555 * gdbtypes.h (TYPE_HAS_DYNAMIC_LENGTH, TYPE_DYNAMIC_LENGTH):
7556 New macros.
7557 (enum dynamic_prop_node_kind) <DYN_PROP_BYTE_SIZE>: New
7558 constant.
7559
7560 2020-04-24 Tom Tromey <tromey@adacore.com>
7561
7562 * dwarf2/read.c (struct variant_field): Rewrite.
7563 (struct variant_part_builder): New.
7564 (struct nextfield): Remove "variant" field. Add "offset".
7565 (struct field_info): Add "current_variant_part" and
7566 "variant_parts".
7567 (alloc_discriminant_info): Remove.
7568 (alloc_rust_variant): New function.
7569 (quirk_rust_enum): Update.
7570 (dwarf2_add_field): Set "offset" member. Don't handle
7571 DW_TAG_variant_part.
7572 (offset_map_type): New typedef.
7573 (convert_variant_range, create_one_variant)
7574 (create_one_variant_part, create_variant_parts)
7575 (add_variant_property): New functions.
7576 (dwarf2_attach_fields_to_type): Call add_variant_property.
7577 (read_structure_type): Don't handle DW_TAG_variant_part.
7578 (handle_variant_part, handle_variant): New functions.
7579 (handle_struct_member_die): Use them.
7580 (process_structure_scope): Don't handle variant parts.
7581 * gdbtypes.h (TYPE_FLAG_DISCRIMINATED_UNION): Remove.
7582 (struct discriminant_info): Remove.
7583 (enum dynamic_prop_node_kind) <DYN_PROP_DISCRIMINATED>: Remove.
7584 (struct main_type) <flag_discriminated_union>: Remove.
7585 * rust-lang.c (rust_enum_p, rust_empty_enum_p): Rewrite.
7586 (rust_enum_variant): Return int. Remove "contents". Rewrite.
7587 (rust_print_enum, rust_print_struct_def, rust_evaluate_subexp):
7588 Update.
7589 * valops.c (value_union_variant): Remove.
7590 * value.h (value_union_variant): Don't declare.
7591
7592 2020-04-24 Tom Tromey <tromey@adacore.com>
7593
7594 * ada-lang.c (ada_discrete_type_high_bound, ada_discrete_type_low)
7595 (ada_value_primitive_packed_val): Update.
7596 * ada-valprint.c (ada_value_print_1): Update.
7597 * dwarf2/loc.c (evaluate_for_locexpr_baton): New struct.
7598 (dwarf2_locexpr_baton_eval): Take a property_addr_info rather than
7599 just an address. Use evaluate_for_locexpr_baton.
7600 (dwarf2_evaluate_property): Update.
7601 * dwarf2/loc.h (struct property_addr_info) <valaddr>: Now an
7602 array_view.
7603 * findvar.c (default_read_var_value): Update.
7604 * gdbtypes.c (compute_variant_fields_inner)
7605 (resolve_dynamic_type_internal): Update.
7606 (resolve_dynamic_type): Change type of valaddr parameter.
7607 * gdbtypes.h (resolve_dynamic_type): Update.
7608 * valarith.c (value_subscripted_rvalue): Update.
7609 * value.c (value_from_contents_and_address): Update.
7610
7611 2020-04-24 Tom Tromey <tromey@adacore.com>
7612
7613 * dwarf2/loc.c (dwarf2_locexpr_baton_eval): Add
7614 "push_initial_value" parameter.
7615 (dwarf2_evaluate_property): Likewise.
7616 * dwarf2/loc.h (dwarf2_evaluate_property): Update.
7617
7618 2020-04-24 Tom Tromey <tromey@adacore.com>
7619
7620 * gdbtypes.c (is_dynamic_type_internal): Check for variant parts.
7621 (variant::matches, compute_variant_fields_recurse)
7622 (compute_variant_fields_inner, compute_variant_fields): New
7623 functions.
7624 (resolve_dynamic_struct): Check for DYN_PROP_VARIANT_PARTS.
7625 Use resolved_type after type is made.
7626 (operator==): Add new cases.
7627 * gdbtypes.h (TYPE_HAS_VARIANT_PARTS): New macro.
7628 (struct discriminant_range, struct variant, struct variant_part):
7629 New.
7630 (union dynamic_prop_data) <variant_parts, original_type>: New
7631 members.
7632 (enum dynamic_prop_node_kind) <DYN_PROP_VARIANT_PARTS>: New constant.
7633 (enum dynamic_prop_kind) <PROP_TYPE, PROP_VARIANT_PARTS>: New
7634 constants.
7635 * value.c (unpack_bits_as_long): Now public.
7636 * value.h (unpack_bits_as_long): Declare.
7637
7638 2020-04-24 Tom Tromey <tromey@adacore.com>
7639
7640 * rs6000-tdep.c (struct ppc_variant): Rename from "variant".
7641 (variants, find_variant_by_arch, rs6000_gdbarch_init): Update.
7642
7643 2020-04-24 Hannes Domani <ssbssa@yahoo.de>
7644
7645 * windows-tdep.c (exception_values): Add WOW64 exception numbers.
7646
7647 2020-04-24 Kamil Rytarowski <n54@gmx.com>
7648
7649 * inf-ptrace.h (follow_fork, insert_fork_catchpoint)
7650 (remove_fork_catchpoint, post_startup_inferior)
7651 (post_attach): Move...
7652 * obsd-nat.h (follow_fork, insert_fork_catchpoint)
7653 (remove_fork_catchpoint, post_startup_inferior)
7654 (post_attach): ...here.
7655 * inf-ptrace.c (follow_fork, insert_fork_catchpoint)
7656 (remove_fork_catchpoint, post_startup_inferior)
7657 (post_attach): Move...
7658 * obsd-nat.c (follow_fork, insert_fork_catchpoint)
7659 (remove_fork_catchpoint, post_startup_inferior)
7660 (post_attach): ...here.
7661
7662 2020-04-24 Tom Tromey <tromey@adacore.com>
7663
7664 * nat/windows-nat.h (struct windows_thread_info)
7665 <pc_adjusted>: New member.
7666 * windows-nat.c (windows_fetch_one_register): Check
7667 pc_adjusted.
7668 (windows_nat_target::get_windows_debug_event)
7669 (windows_nat_target::wait): Set pc_adjusted.
7670
7671 2020-04-24 Tom de Vries <tdevries@suse.de>
7672
7673 * contrib/cc-with-tweaks.sh: Remove <exec>.gdb-index file handling.
7674 Run gdb-add-index inside temp dir.
7675
7676 2020-04-23 Tom Tromey <tromey@adacore.com>
7677
7678 * windows-tdep.c (is_linked_with_cygwin_dll): Always update "iter"
7679 in loop.
7680
7681 2020-04-23 Luis Machado <luis.machado@linaro.org>
7682
7683 * dwarf2/frame-tailcall.c (dwarf2_tailcall_sniffer_first): Use
7684 get_frame_register instead of gdbarch_unwind_pc.
7685
7686 2020-04-23 Tom de Vries <tdevries@suse.de>
7687
7688 * symtab.c (lookup_global_symbol): Prefer def over decl.
7689
7690 2020-04-23 Tom de Vries <tdevries@suse.de>
7691
7692 PR symtab/25807
7693 * block.c (best_symbol, better_symbol): Promote to external.
7694 * block.h (best_symbol, better_symbol): Declare.
7695 * symtab.c (lookup_symbol_in_objfile_symtabs): Prefer def over
7696 decl.
7697
7698 2020-04-23 Tom Tromey <tromey@adacore.com>
7699
7700 PR ada/25837:
7701 * dwarf2/read.c (dw2_expand_symtabs_matching_symbol): Store a
7702 "const char *", not a "const std::string &".
7703 <name_and_matcher::operator==>: Update.
7704 * unittests/lookup_name_info-selftests.c: Change type of
7705 "result".
7706
7707 2020-04-23 Tom Tromey <tom@tromey.com>
7708
7709 * inferior.h (iterate_over_inferiors): Don't declare.
7710 * inferior.c (iterate_over_inferiors): Remove.
7711 * darwin-nat.c (find_inferior_task_it, find_inferior_pid_it):
7712 Remove.
7713 (darwin_find_inferior_by_task, darwin_find_inferior_by_pid): Don't
7714 use iterate_over_inferiors.
7715 (darwin_resume_inferior_it)
7716 (struct resume_inferior_threads_param)
7717 (darwin_resume_inferior_threads_it): Remove.
7718 (darwin_nat_target::resume): Don't use iterate_over_inferiors.
7719
7720 2020-04-23 Tom de Vries <tdevries@suse.de>
7721
7722 * blockframe.c (find_pc_partial_function): Use
7723 find_pc_sect_compunit_symtab rather than
7724 objfile->sf->qf->find_pc_sect_compunit_symtab.
7725
7726 2020-04-22 Tom de Vries <tdevries@suse.de>
7727
7728 PR symtab/25764
7729 * dwarf2/read.c (scan_partial_symbols): Allow external variable decls
7730 in psymtabs.
7731
7732 2020-04-22 Tom de Vries <tdevries@suse.de>
7733
7734 PR symtab/25801
7735 * psymtab.c (psym_map_symtabs_matching_filename): Don't skip shared
7736 symtabs.
7737
7738 2020-04-22 Tom de Vries <tdevries@suse.de>
7739
7740 PR symtab/25700
7741 * dwarf2/read.c (dwarf2_build_psymtabs_hard): Don't create psymtab for
7742 CU if already created.
7743
7744 2020-04-21 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
7745
7746 * infrun.c (displaced_step_fixup): Switch to the event_thread
7747 before calling displaced_step_restore, not after.
7748
7749 2020-04-21 Markus Metzger <markus.t.metzger@intel.com>
7750
7751 * record-btrace.c (record_btrace_enable_warn): Ignore thread if
7752 its inferior is not recorded by us.
7753 (record_btrace_target_open): Replace call to
7754 all_non_exited_threads () with call to current_inferior
7755 ()->non_exited_threads ().
7756 (record_btrace_target::stop_recording): Likewise.
7757 (record_btrace_target::close): Likewise.
7758 (record_btrace_target::wait): Likewise.
7759 (record_btrace_target::record_stop_replaying): Likewise.
7760
7761 2020-04-21 Markus Metzger <markus.t.metzger@intel.com>
7762
7763 * btrace.c (btrace_enable): Throw an error on double enables and
7764 when enabling recording fails.
7765 (btrace_disable): Throw an error if the thread is not recorded.
7766
7767 2020-04-21 Markus Metzger <markus.t.metzger@intel.com>
7768
7769 * record-btrace.c (record_btrace_target::fetch_registers): Forward
7770 request if we do not have a thread_info.
7771
7772 2020-04-21 Tom de Vries <tdevries@suse.de>
7773
7774 PR gdb/25471
7775 * thread.c
7776 (scoped_restore_current_thread::scoped_restore_current_thread): Catch
7777 exception in get_frame_id.
7778
7779 2020-04-20 Tom Tromey <tromey@adacore.com>
7780
7781 * python/python.c (struct gdbpy_event): Mark move constructor as
7782 noexcept.
7783 * python/py-tui.c (class gdbpy_tui_window_maker): Mark move
7784 constructor as noexcept.
7785 * completer.h (struct completion_result): Mark move constructor as
7786 noexcept.
7787 * completer.c (completion_result::completion_result): Use
7788 initialization style. Don't call reset_match_list.
7789
7790 2020-04-20 Mihails Strasuns <mihails.strasuns@intel.com>
7791
7792 * MAINTAINERS (Write After Approval): Add myself.
7793
7794 2020-04-18 Tom Tromey <tom@tromey.com>
7795
7796 * windows-tdep.c (init_w32_command_list)
7797 (w32_prefix_command_valid): Restore.
7798 (_initialize_windows_tdep): Call init_w32_command_list.
7799
7800 2020-04-18 Tom Tromey <tom@tromey.com>
7801
7802 * xcoffread.c (enter_line_range, scan_xcoff_symtab): Update.
7803 * value.c (value_fn_field): Update.
7804 * valops.c (find_function_in_inferior)
7805 (value_allocate_space_in_inferior): Update.
7806 * tui/tui-winsource.c (tui_update_source_windows_with_line):
7807 Update.
7808 * tui/tui-source.c (tui_source_window::set_contents): Update.
7809 * symtab.c (lookup_global_or_static_symbol)
7810 (find_function_start_sal_1, skip_prologue_sal)
7811 (print_msymbol_info, find_gnu_ifunc, symbol_arch): Update.
7812 * symmisc.c (dump_msymbols, dump_symtab_1)
7813 (maintenance_print_one_line_table): Update.
7814 * symfile.c (init_entry_point_info, section_is_mapped)
7815 (list_overlays_command, simple_read_overlay_table)
7816 (simple_overlay_update_1): Update.
7817 * stap-probe.c (handle_stap_probe): Update.
7818 * stabsread.c (dbx_init_float_type, define_symbol)
7819 (read_one_struct_field, read_enum_type, read_range_type): Update.
7820 * source.c (info_line_command): Update.
7821 * python/python.c (gdbpy_source_objfile_script)
7822 (gdbpy_execute_objfile_script): Update.
7823 * python/py-type.c (save_objfile_types): Update.
7824 * python/py-objfile.c (py_free_objfile): Update.
7825 * python/py-inferior.c (python_new_objfile): Update.
7826 * psymtab.c (psym_find_pc_sect_compunit_symtab, dump_psymtab)
7827 (dump_psymtab_addrmap_1, maintenance_info_psymtabs)
7828 (maintenance_check_psymtabs): Update.
7829 * printcmd.c (info_address_command): Update.
7830 * objfiles.h (struct objfile) <arch>: New method, from
7831 get_objfile_arch.
7832 (get_objfile_arch): Don't declare.
7833 * objfiles.c (get_objfile_arch): Remove.
7834 (filter_overlapping_sections): Update.
7835 * minsyms.c (msymbol_is_function): Update.
7836 * mi/mi-symbol-cmds.c (mi_cmd_symbol_list_lines)
7837 (output_nondebug_symbol): Update.
7838 * mdebugread.c (parse_symbol, basic_type, parse_partial_symbols)
7839 (mdebug_expand_psymtab): Update.
7840 * machoread.c (macho_add_oso_symfile): Update.
7841 * linux-tdep.c (linux_infcall_mmap, linux_infcall_munmap):
7842 Update.
7843 * linux-fork.c (checkpoint_command): Update.
7844 * linespec.c (convert_linespec_to_sals): Update.
7845 * jit.c (finalize_symtab): Update.
7846 * infrun.c (insert_exception_resume_from_probe): Update.
7847 * ia64-tdep.c (ia64_find_unwind_table): Update.
7848 * hppa-tdep.c (internalize_unwinds): Update.
7849 * gdbtypes.c (get_type_arch, init_float_type, objfile_type):
7850 Update.
7851 * gcore.c (call_target_sbrk): Update.
7852 * elfread.c (record_minimal_symbol, elf_symtab_read)
7853 (elf_rel_plt_read, elf_gnu_ifunc_record_cache)
7854 (elf_gnu_ifunc_resolve_by_got): Update.
7855 * dwarf2/read.c (create_addrmap_from_index)
7856 (create_addrmap_from_aranges, dw2_find_pc_sect_compunit_symtab)
7857 (read_debug_names_from_section)
7858 (process_psymtab_comp_unit_reader, add_partial_symbol)
7859 (add_partial_subprogram, process_full_comp_unit)
7860 (read_file_scope, read_func_scope, read_lexical_block_scope)
7861 (read_call_site_scope, dwarf2_ranges_read)
7862 (dwarf2_record_block_ranges, dwarf2_add_field)
7863 (mark_common_block_symbol_computed, read_tag_pointer_type)
7864 (read_tag_string_type, dwarf2_init_float_type)
7865 (dwarf2_init_complex_target_type, read_base_type)
7866 (partial_die_info::read, partial_die_info::read)
7867 (read_attribute_value, dwarf_decode_lines_1, new_symbol)
7868 (dwarf2_fetch_die_loc_sect_off): Update.
7869 * dwarf2/loc.c (dwarf2_find_location_expression)
7870 (class dwarf_evaluate_loc_desc, rw_pieced_value)
7871 (dwarf2_evaluate_loc_desc_full, dwarf2_locexpr_baton_eval)
7872 (dwarf2_loc_desc_get_symbol_read_needs)
7873 (locexpr_describe_location_piece, locexpr_describe_location_1)
7874 (loclist_describe_location): Update.
7875 * dwarf2/index-write.c (write_debug_names): Update.
7876 * dwarf2/frame.c (dwarf2_build_frame_info): Update.
7877 * dtrace-probe.c (dtrace_process_dof): Update.
7878 * dbxread.c (read_dbx_symtab, dbx_end_psymtab)
7879 (process_one_symbol): Update.
7880 * ctfread.c (ctf_init_float_type, read_base_type): Update.
7881 * coffread.c (coff_symtab_read, enter_linenos, decode_base_type)
7882 (coff_read_enum_type): Update.
7883 * cli/cli-cmds.c (edit_command, list_command): Update.
7884 * buildsym.c (buildsym_compunit::finish_block_internal): Update.
7885 * breakpoint.c (create_overlay_event_breakpoint)
7886 (create_longjmp_master_breakpoint)
7887 (create_std_terminate_master_breakpoint)
7888 (create_exception_master_breakpoint, get_sal_arch): Update.
7889 * block.c (block_gdbarch): Update.
7890 * annotate.c (annotate_source_line): Update.
7891
7892 2020-04-17 Tom Tromey <tromey@adacore.com>
7893
7894 * auto-load.c (show_auto_load_cmd): Remove.
7895 (auto_load_show_cmdlist_get): Use add_show_prefix_cmd.
7896 * arc-tdep.c (_initialize_arc_tdep): Use add_show_prefix_cmd.
7897 (maintenance_print_arc_command): Remove.
7898 * tui/tui-win.c (tui_command): Remove.
7899 (tui_get_cmd_list): Use add_basic_prefix_cmd.
7900 * tui/tui-layout.c (tui_layout_command): Remove.
7901 (_initialize_tui_layout): Use add_basic_prefix_cmd.
7902 * python/python.c (user_set_python, user_show_python): Remove.
7903 (_initialize_python): Use add_basic_prefix_cmd,
7904 add_show_prefix_cmd.
7905 * guile/guile.c (set_guile_command, show_guile_command): Remove.
7906 (install_gdb_commands): Use add_basic_prefix_cmd,
7907 add_show_prefix_cmd.
7908 (info_guile_command): Remove.
7909 * dwarf2/read.c (set_dwarf_cmd, show_dwarf_cmd): Remove.
7910 (_initialize_dwarf2_read): Use add_basic_prefix_cmd,
7911 add_show_prefix_cmd.
7912 * cli/cli-style.h (class cli_style_option) <add_setshow_commands>:
7913 Remove do_set and do_show parameters.
7914 * cli/cli-style.c (set_style, show_style): Remove.
7915 (_initialize_cli_style): Use add_basic_prefix_cmd,
7916 add_show_prefix_cmd.
7917 (cli_style_option::add_setshow_commands): Remove do_set and
7918 do_show parameters.
7919 (cli_style_option::add_setshow_commands): Use
7920 add_basic_prefix_cmd, add_show_prefix_cmd.
7921 (STYLE_ADD_SETSHOW_COMMANDS): Remove macro.
7922 (set_style_name): Remove.
7923 * cli/cli-dump.c (dump_command, append_command): Remove.
7924 (srec_dump_command, ihex_dump_command, verilog_dump_command)
7925 (tekhex_dump_command, binary_dump_command)
7926 (binary_append_command): Remove.
7927 (_initialize_cli_dump): Use add_basic_prefix_cmd.
7928 * windows-tdep.c (w32_prefix_command_valid): Remove global.
7929 (init_w32_command_list): Remove; move into ...
7930 (_initialize_windows_tdep): ... here. Use add_basic_prefix_cmd.
7931 * valprint.c (set_print, show_print, set_print_raw)
7932 (show_print_raw): Remove.
7933 (_initialize_valprint): Use add_basic_prefix_cmd,
7934 add_show_prefix_cmd.
7935 * typeprint.c (set_print_type, show_print_type): Remove.
7936 (_initialize_typeprint): Use add_basic_prefix_cmd,
7937 add_show_prefix_cmd.
7938 * record.c (set_record_command, show_record_command): Remove.
7939 (_initialize_record): Use add_basic_prefix_cmd,
7940 add_show_prefix_cmd.
7941 * cli/cli-cmds.c (_initialize_cli_cmds): Use add_basic_prefix_cmd,
7942 add_show_prefix_cmd.
7943 (info_command, show_command, set_debug, show_debug): Remove.
7944 * top.h (set_history, show_history): Don't declare.
7945 * top.c (set_history, show_history): Remove.
7946 * target-descriptions.c (set_tdesc_cmd, show_tdesc_cmd)
7947 (unset_tdesc_cmd): Remove.
7948 (_initialize_target_descriptions): Use add_basic_prefix_cmd,
7949 add_show_prefix_cmd.
7950 * symtab.c (info_module_command): Remove.
7951 (_initialize_symtab): Use add_basic_prefix_cmd.
7952 * symfile.c (overlay_command): Remove.
7953 (_initialize_symfile): Use add_basic_prefix_cmd.
7954 * sparc64-tdep.c (info_adi_command): Remove.
7955 (_initialize_sparc64_adi_tdep): Use add_basic_prefix_cmd.
7956 * sh-tdep.c (show_sh_command, set_sh_command): Remove.
7957 (_initialize_sh_tdep): Use add_basic_prefix_cmd,
7958 add_show_prefix_cmd.
7959 * serial.c (serial_set_cmd, serial_show_cmd): Remove.
7960 (_initialize_serial): Use add_basic_prefix_cmd,
7961 add_show_prefix_cmd.
7962 * ser-tcp.c (set_tcp_cmd, show_tcp_cmd): Remove.
7963 (_initialize_ser_tcp): Use add_basic_prefix_cmd,
7964 add_show_prefix_cmd.
7965 * rs6000-tdep.c (set_powerpc_command, show_powerpc_command)
7966 (_initialize_rs6000_tdep): Use add_basic_prefix_cmd,
7967 add_show_prefix_cmd.
7968 * riscv-tdep.c (show_riscv_command, set_riscv_command)
7969 (show_debug_riscv_command, set_debug_riscv_command): Remove.
7970 (_initialize_riscv_tdep): Use add_basic_prefix_cmd,
7971 add_show_prefix_cmd.
7972 * remote.c (remote_command, set_remote_cmd): Remove.
7973 (_initialize_remote): Use add_basic_prefix_cmd.
7974 * record-full.c (set_record_full_command)
7975 (show_record_full_command): Remove.
7976 (_initialize_record_full): Use add_basic_prefix_cmd,
7977 add_show_prefix_cmd.
7978 * record-btrace.c (cmd_set_record_btrace)
7979 (cmd_show_record_btrace, cmd_set_record_btrace_bts)
7980 (cmd_show_record_btrace_bts, cmd_set_record_btrace_pt)
7981 (cmd_show_record_btrace_pt): Remove.
7982 (_initialize_record_btrace): Use add_basic_prefix_cmd,
7983 add_show_prefix_cmd.
7984 * ravenscar-thread.c (set_ravenscar_command)
7985 (show_ravenscar_command): Remove.
7986 (_initialize_ravenscar): Use add_basic_prefix_cmd,
7987 add_show_prefix_cmd.
7988 * mips-tdep.c (show_mips_command, set_mips_command)
7989 (_initialize_mips_tdep): Use add_basic_prefix_cmd,
7990 add_show_prefix_cmd.
7991 * maint.c (maintenance_command, maintenance_info_command)
7992 (maintenance_check_command, maintenance_print_command)
7993 (maintenance_set_cmd, maintenance_show_cmd): Remove.
7994 (_initialize_maint_cmds): Use add_basic_prefix_cmd,
7995 add_show_prefix_cmd.
7996 (show_per_command_cmd): Remove.
7997 * maint-test-settings.c (maintenance_set_test_settings_cmd):
7998 Remove.
7999 (maintenance_show_test_settings_cmd): Remove.
8000 (_initialize_maint_test_settings): Use add_basic_prefix_cmd,
8001 add_show_prefix_cmd.
8002 * maint-test-options.c (maintenance_test_options_command):
8003 Remove.
8004 (_initialize_maint_test_options): Use add_basic_prefix_cmd.
8005 * macrocmd.c (macro_command): Remove
8006 (_initialize_macrocmd): Use add_basic_prefix_cmd.
8007 * language.c (set_check, show_check): Remove.
8008 (_initialize_language): Use add_basic_prefix_cmd,
8009 add_show_prefix_cmd.
8010 * infcmd.c (unset_command): Remove.
8011 (_initialize_infcmd): Use add_basic_prefix_cmd.
8012 * i386-tdep.c (set_mpx_cmd, show_mpx_cmd): Remove.
8013 (_initialize_i386_tdep): Use add_basic_prefix_cmd,
8014 add_show_prefix_cmd.
8015 * go32-nat.c (go32_info_dos_command): Remove.
8016 (_initialize_go32_nat): Use add_basic_prefix_cmd.
8017 * cli/cli-decode.c (do_prefix_cmd, add_basic_prefix_cmd)
8018 (do_show_prefix_cmd, add_show_prefix_cmd): New functions.
8019 * frame.c (set_backtrace_cmd, show_backtrace_cmd): Remove.
8020 (_initialize_frame): Use add_basic_prefix_cmd,
8021 add_show_prefix_cmd.
8022 * dcache.c (set_dcache_command, show_dcache_command): Remove.
8023 (_initialize_dcache): Use add_basic_prefix_cmd,
8024 add_show_prefix_cmd.
8025 * cp-support.c (maint_cplus_command): Remove.
8026 (_initialize_cp_support): Use add_basic_prefix_cmd.
8027 * btrace.c (maint_btrace_cmd, maint_btrace_set_cmd)
8028 (maint_btrace_show_cmd, maint_btrace_pt_set_cmd)
8029 (maint_btrace_pt_show_cmd, _initialize_btrace): Use
8030 add_basic_prefix_cmd, add_show_prefix_cmd.
8031 * breakpoint.c (save_command): Remove.
8032 (_initialize_breakpoint): Use add_basic_prefix_cmd.
8033 * arm-tdep.c (set_arm_command, show_arm_command): Remove.
8034 (_initialize_arm_tdep): Use add_basic_prefix_cmd,
8035 add_show_prefix_cmd.
8036 * ada-lang.c (maint_set_ada_cmd, maint_show_ada_cmd)
8037 (set_ada_command, show_ada_command): Remove.
8038 (_initialize_ada_language): Use add_basic_prefix_cmd,
8039 add_show_prefix_cmd.
8040 * command.h (add_basic_prefix_cmd, add_show_prefix_cmd): Declare.
8041
8042 2020-04-16 Kamil Rytarowski <n54@gmx.com>
8043
8044 * nbsd-nat.c (inf_ptrace_target::auxv_parse): Remove.
8045 * nbsd-nat.h (inf_ptrace_target::auxv_parse): Likewise.
8046
8047 2020-04-16 Simon Marchi <simon.marchi@polymtl.ca>
8048
8049 * windows-tdep.c (is_linked_with_cygwin_dll): Add filename to
8050 warning messages.
8051
8052 2020-04-16 Simon Marchi <simon.marchi@polymtl.ca>
8053
8054 * windows-tdep.c (is_linked_with_cygwin_dll): Consider case where
8055 import table is not at beginning of .idata section.
8056
8057 2020-04-16 Pedro Alves <palves@redhat.com>
8058
8059 * inferior.c (delete_inferior): Use delete operator directly
8060 instead of delete_program_space.
8061 * progspace.c (add_program_space): New, factored out from
8062 program_space::program_space.
8063 (remove_program_space): New, factored out from
8064 delete_program_space.
8065 (program_space::program_space): Remove intro comment. Rewrite.
8066 (program_space::~program_space): Remove intro comment. Call
8067 remove_program_space.
8068 (delete_program_space): Delete.
8069 * progspace.h (program_space::program_space): Make explicit. Move
8070 intro comment here, adjusted.
8071 (program_space::~program_space): Move intro comment here,
8072 adjusted.
8073 (delete_program_space): Remove.
8074
8075 2020-04-16 Tom Tromey <tromey@adacore.com>
8076
8077 * windows-nat.c (windows_nat::handle_access_violation): New
8078 function.
8079 * nat/windows-nat.h (handle_access_violation): Declare.
8080 * nat/windows-nat.c (handle_exception): Move Cygwin code to
8081 windows-nat.c. Call handle_access_violation.
8082
8083 2020-04-16 Tom de Vries <tdevries@suse.de>
8084
8085 PR symtab/25791
8086 * dwarf2/index-write.c (write_gdbindex): Generate CU table entries for
8087 CUs without psymtab.
8088
8089 2020-04-16 Kevin Buettner <kevinb@redhat.com>
8090
8091 * python/python.c (do_start_initialization): Don't call
8092 PyEval_InitThreads for Python 3.9 and beyond.
8093
8094 2020-04-15 Kamil Rytarowski <n54@gmx.com>
8095
8096 * obsd-nat.c (obsd_nat_target::update_thread_list): Pass "this" to
8097 thread functions.
8098 (obsd_nat_target::wait): Likewise.
8099
8100 2020-04-15 Tom Tromey <tromey@adacore.com>
8101
8102 * windows-nat.c (DEBUG_EXEC, DEBUG_EVENTS, DEBUG_MEM)
8103 (DEBUG_EXCEPT): Use debug_printf.
8104
8105 2020-04-15 Andrew Burgess <andrew.burgess@embecosm.com>
8106
8107 * completer.c (class completion_tracker::completion_hash_entry)
8108 <hash_name>: New member function.
8109 (completion_tracker::discard_completions): New callback to hash a
8110 completion_hash_entry, pass this to htab_create_alloc.
8111
8112 2016-01-20 Jon Turney <jon.turney@dronecode.org.uk>
8113
8114 * windows-nat.c (windows_make_so): Warn rather than stopping with
8115 an error if realpath() fails.
8116
8117 2020-04-14 Kamil Rytarowski <n54@gmx.com>
8118
8119 * nbsd-nat.c (nbsd_pid_to_kinfo_proc2): New.
8120 (nbsd_nat_target::info_proc): Add do_status.
8121
8122 2020-04-14 Simon Marchi <simon.marchi@polymtl.ca>
8123 Tom de Vries <tdevries@suse.de>
8124
8125 PR symtab/25718
8126 * psympriv.h (struct partial_symtab::read_symtab)
8127 (struct partial_symtab::expand_psymtab)
8128 (struct partial_symtab::read_dependencies): Update comments.
8129 * dwarf2/read.c (struct dwarf2_include_psymtab::read_symtab): Call
8130 read_symtab for includer.
8131 (struct dwarf2_include_psymtab::expand_psymtab): Assert false.
8132 (struct dwarf2_include_psymtab::readin_p): Call readin_p () for includer.
8133 (struct dwarf2_include_psymtab::m_readin): Remove.
8134 (struct dwarf2_include_psymtab::includer): New member function.
8135 (dwarf2_psymtab::expand_psymtab): Assert !readin.
8136
8137 2020-04-14 Tom de Vries <tdevries@suse.de>
8138
8139 PR symtab/25720
8140 * symmisc.c (maintenance_expand_symtabs): Call expand_symtabs_matching
8141 with NULL symbol_matcher and lookup_name.
8142 * psymtab.c (psym_expand_symtabs_matching): Handle NULL symbol_matcher
8143 and lookup_name.
8144 * dwarf2/read.c (dw2_expand_symtabs_matching)
8145 (dw2_debug_names_expand_symtabs_matching): Same.
8146 * symfile.h (struct quick_symbol_functions::expand_symtabs_matching):
8147 Make lookup_name a pointer. Update comment.
8148 * symtab.c (global_symbol_searcher::expand_symtabs): Handle
8149 lookup_name being a pointer.
8150 * symfile.c (expand_symtabs_matching): Same.
8151 * symfile-debug.c (debug_qf_expand_symtabs_matching): Same.
8152 * linespec.c (iterate_over_all_matching_symtabs): Same.
8153
8154 2020-04-13 Tom Tromey <tom@tromey.com>
8155
8156 * run-on-main-thread.c: Update include.
8157 * unittests/main-thread-selftests.c: Update include.
8158 * tui/tui-win.c: Update include.
8159 * tui/tui-io.c: Update include.
8160 * tui/tui-interp.c: Update include.
8161 * tui/tui-hooks.c: Update include.
8162 * top.h: Update include.
8163 * top.c: Update include.
8164 * ser-base.c: Update include.
8165 * remote.c: Update include.
8166 * remote-notif.c: Update include.
8167 * remote-fileio.c: Update include.
8168 * record-full.c: Update include.
8169 * record-btrace.c: Update include.
8170 * python/python.c: Update include.
8171 * posix-hdep.c: Update include.
8172 * mingw-hdep.c: Update include.
8173 * mi/mi-main.c: Update include.
8174 * mi/mi-interp.c: Update include.
8175 * main.c: Update include.
8176 * linux-nat.c: Update include.
8177 * interps.c: Update include.
8178 * infrun.c: Update include.
8179 * inf-loop.c: Update include.
8180 * event-top.c: Update include.
8181 * event-loop.c: Move to ../gdbsupport/.
8182 * event-loop.h: Move to ../gdbsupport/.
8183 * async-event.h: Update include.
8184 * Makefile.in (COMMON_SFILES, HFILES_NO_SRCDIR): Update.
8185
8186 2020-04-13 Tom Tromey <tom@tromey.com>
8187
8188 * tui/tui-win.c: Include async-event.h.
8189 * remote.c: Include async-event.h.
8190 * remote-notif.c: Include async-event.h.
8191 * record-full.c: Include async-event.h.
8192 * record-btrace.c: Include async-event.h.
8193 * infrun.c: Include async-event.h.
8194 * event-top.c: Include async-event.h.
8195 * event-loop.h: Move some declarations to async-event.h.
8196 * event-loop.c: Don't include ser-event.h or top.h. Move some
8197 code to async-event.c.
8198 * async-event.h: New file.
8199 * async-event.c: New file.
8200 * Makefile.in (COMMON_SFILES): Add async-event.c.
8201 (HFILES_NO_SRCDIR): Add async-event.h.
8202
8203 2020-04-13 Tom Tromey <tom@tromey.com>
8204
8205 * utils.c (flush_streams): New function.
8206 * event-loop.c (gdb_wait_for_event): Call flush_streams.
8207
8208 2020-04-13 Tom Tromey <tom@tromey.com>
8209
8210 * event-loop.c (handle_file_event): Use warning, not
8211 printf_unfiltered.
8212
8213 2020-04-13 Tom Tromey <tom@tromey.com>
8214
8215 * event-loop.c: Include <chrono>.
8216
8217 2020-04-13 Tom Tromey <tom@tromey.com>
8218
8219 * gdb_select.h: Move to ../gdbsupport/.
8220 * event-loop.c: Update include path.
8221 * top.c: Update include path.
8222 * ser-base.c: Update include path.
8223 * ui-file.c: Update include path.
8224 * ser-tcp.c: Update include path.
8225 * guile/scm-ports.c: Update include path.
8226 * posix-hdep.c: Update include path.
8227 * ser-unix.c: Update include path.
8228 * gdb_usleep.c: Update include path.
8229 * mingw-hdep.c: Update include path.
8230 * inflow.c: Update include path.
8231 * infrun.c: Update include path.
8232 * event-top.c: Update include path.
8233
8234 2020-04-13 Tom Tromey <tom@tromey.com>
8235
8236 * configure: Rebuild.
8237 * configure.ac: Remove checks that are now in GDB_AC_COMMON.
8238
8239 2020-04-13 Tom Tromey <tom@tromey.com>
8240
8241 * event-loop.h (start_event_loop): Don't declare.
8242 * event-loop.c (start_event_loop): Move...
8243 * main.c (start_event_loop): ...here. Now static.
8244
8245 2020-04-13 Sergio Durigan Junior <sergiodj@sergiodj.net>
8246
8247 * MAINTAINERS: Update my email address.
8248
8249 2020-04-12 Kamil Rytarowski <n54@gmx.com>
8250
8251 * nbsd-nat.c (nbsd_nat_target::info_proc): Add IP_MINIMAL and
8252 IP_ALL.
8253
8254 2020-04-12 Kamil Rytarowski <n54@gmx.com>
8255
8256 * nbsd-nat.c (nbsd_pid_to_cmdline): Add.
8257 (nbsd_nat_target::info_proc): Add do_cmdline.
8258
8259 2020-04-12 Kamil Rytarowski <n54@gmx.com>
8260
8261 * nbsd-nat.c (nbsd_pid_to_cwd): Add.
8262 (nbsd_nat_target::info_proc): Add do_cwd.
8263
8264 2020-04-12 Kamil Rytarowski <n54@gmx.com>
8265
8266 * nbsd-nat.c (nbsd_nat_target::info_proc): Add do_exe.
8267
8268 2020-04-11 Kamil Rytarowski <n54@gmx.com>
8269
8270 * nbsd-nat.c; Include "nbsd-tdep.h" and "gdbarch.h".
8271 * nbsd-nat.c (nbsd_nat_target::find_memory_regions)
8272 (nbsd_nat_target::info_proc): New functions.
8273 * nbsd-nat.c (kinfo_get_vmmap): New function.
8274 * nbsd-nat.c (nbsd_nat_target::info_proc) Use
8275 nbsd_info_proc_mappings_header and nbsd_info_proc_mappings_entry.
8276 * nbsd-tdep.c (nbsd_info_proc_mappings_header)
8277 (nbsd_info_proc_mappings_entry, nbsd_vm_map_entry_flags): New
8278 functions.
8279 * nbsd-tdep.c (KINFO_VME_PROT_READ, KINFO_VME_PROT_WRITE)
8280 (KINFO_VME_PROT_EXEC, KINFO_VME_FLAG_COW)
8281 (KINFO_VME_FLAG_NEEDS_COPY, KINFO_VME_FLAG_NOCOREDUMP)
8282 (KINFO_VME_FLAG_PAGEABLE, KINFO_VME_FLAG_GROWS_UP)
8283 (KINFO_VME_FLAG_GROWS_DOWN): New.
8284
8285 2020-04-10 Artur Shepilko <nomadbyte@gmail.com>
8286
8287 * utils.c (copy_bitwise): Use unsigned 0 constant as operand of
8288 bit shift.
8289
8290 2020-04-10 Tom Tromey <tromey@adacore.com>
8291
8292 * symfile.c (symbol_file_add_separate): Preserve OBJF_MAINLINE.
8293
8294 2020-04-10 Tom Tromey <tromey@adacore.com>
8295
8296 * symtab.c (get_symbol_address, get_msymbol_address): Skip
8297 separate debug files.
8298
8299 2020-04-10 Hannes Domani <ssbssa@yahoo.de>
8300
8301 * nat/windows-nat.c (STATUS_WX86_BREAKPOINT, STATUS_WX86_SINGLE_STEP):
8302 Move to...
8303 * nat/windows-nat.h (STATUS_WX86_BREAKPOINT, STATUS_WX86_SINGLE_STEP):
8304 ... here.
8305 * windows-nat.c (windows_nat_target::get_windows_debug_event):
8306 Check for STATUS_WX86_BREAKPOINT.
8307 (windows_nat_target::wait): Same.
8308
8309 2020-04-10 Tom de Vries <tdevries@suse.de>
8310
8311 PR cli/25808
8312 * python/lib/gdb/__init__.py: Initialize lexer with stripnl=False.
8313
8314 2020-04-09 Simon Marchi <simon.marchi@polymtl.ca>
8315
8316 * MAINTAINERS (Global Maintainers): Add Tom de Vries.
8317 (Write After Approval): Remove Tom de Vries.
8318
8319 2020-04-09 Bernd Edlinger <bernd.edlinger@hotmail.de>
8320
8321 revert partially:
8322 2020-04-01 Bernd Edlinger <bernd.edlinger@hotmail.de>
8323
8324 * buildsym.c (record_line): Fix undefined behavior and preserve
8325 lines at eof.
8326
8327 2020-04-09 Kamil Rytarowski <n54@gmx.com>
8328
8329 * auxv.h (svr4_auxv_parse): New.
8330 * auxv.c (default_auxv_parse): Split into default_auxv_parse
8331 and generic_auxv_parse.
8332 (svr4_auxv_parse): Add.
8333 * obsd-tdep.c: Include "auxv.h".
8334 (obsd_auxv_parse): Remove.
8335 (obsd_init_abi): Remove comment.
8336 (obsd_init_abi): Change set_gdbarch_auxv_parse passed argument
8337 from `obsd_auxv_parse' to `svr4_auxv_parse'.
8338 * nbsd-tdep.c: Include "auxv.h".
8339 (nbsd_init_abi): Call set_gdbarch_auxv_parse.
8340
8341 2020-04-08 Tom Tromey <tromey@adacore.com>
8342
8343 * nat/windows-nat.h (last_wait_event): Don't declare.
8344 (wait_for_debug_event): Update comment.
8345 * nat/windows-nat.c (last_wait_event): Now static.
8346
8347 2020-04-08 Tom Tromey <tromey@adacore.com>
8348
8349 * windows-nat.c (wait_for_debug_event): Move to
8350 nat/windows-nat.c.
8351 * nat/windows-nat.h (wait_for_debug_event): Declare.
8352 * nat/windows-nat.c (wait_for_debug_event): Move from
8353 windows-nat.c. No longer static.
8354
8355 2020-04-08 Tom Tromey <tromey@adacore.com>
8356
8357 * windows-nat.c (get_windows_debug_event): Use
8358 fetch_pending_stop.
8359 * nat/windows-nat.h (fetch_pending_stop): Declare.
8360 * nat/windows-nat.c (fetch_pending_stop): New function.
8361
8362 2020-04-08 Tom Tromey <tromey@adacore.com>
8363
8364 * windows-nat.c (windows_continue): Use matching_pending_stop and
8365 continue_last_debug_event.
8366 * nat/windows-nat.h (matching_pending_stop)
8367 (continue_last_debug_event): Declare.
8368 * nat/windows-nat.c (DEBUG_EVENTS): New define.
8369 (matching_pending_stop, continue_last_debug_event): New
8370 functions.
8371
8372 2020-04-08 Tom Tromey <tromey@adacore.com>
8373
8374 * windows-nat.c (MS_VC_EXCEPTION): Move to nat/windows-nat.c.
8375 (handle_exception_result): Move to nat/windows-nat.h.
8376 (DEBUG_EXCEPTION_SIMPLE): Remove.
8377 (windows_nat::handle_ms_vc_exception): New function.
8378 (handle_exception): Move to nat/windows-nat.c.
8379 (get_windows_debug_event): Update.
8380 (STATUS_WX86_BREAKPOINT, STATUS_WX86_SINGLE_STEP): Move to
8381 nat/windows-nat.c.
8382 * nat/windows-nat.h (handle_ms_vc_exception): Declare.
8383 (handle_exception_result): Move from windows-nat.c.
8384 (handle_exception): Declare.
8385 * nat/windows-nat.c (MS_VC_EXCEPTION, handle_exception)
8386 (STATUS_WX86_SINGLE_STEP, STATUS_WX86_BREAKPOINT): Move from
8387 windows-nat.c.
8388
8389 2020-04-08 Tom Tromey <tromey@adacore.com>
8390
8391 * windows-nat.c (exception_count, event_count): Remove.
8392 (handle_exception, get_windows_debug_event)
8393 (do_initial_windows_stuff): Update.
8394
8395 2020-04-08 Tom Tromey <tromey@adacore.com>
8396
8397 * windows-nat.c (windows_nat::handle_load_dll)
8398 (windows_nat::handle_unload_dll): Rename. No longer static.
8399 * nat/windows-nat.h (handle_load_dll, handle_unload_dll):
8400 Declare.
8401
8402 2020-04-08 Tom Tromey <tromey@adacore.com>
8403
8404 * complaints.h (stop_whining): Declare at top-level.
8405 (complaint): Don't declare stop_whining.
8406
8407 2020-04-08 Tom Tromey <tromey@adacore.com>
8408
8409 * windows-nat.c (windows_nat::handle_output_debug_string):
8410 Rename. No longer static.
8411 * nat/windows-nat.h (handle_output_debug_string): Declare.
8412
8413 2020-04-08 Tom Tromey <tromey@adacore.com>
8414
8415 * windows-nat.c (current_process_handle, current_process_id)
8416 (main_thread_id, last_sig, current_event, last_wait_event)
8417 (current_windows_thread, desired_stop_thread_id, pending_stops)
8418 (struct pending_stop, siginfo_er): Move to nat/windows-nat.c.
8419 (display_selectors, fake_create_process)
8420 (get_windows_debug_event): Update.
8421 * nat/windows-nat.h (current_process_handle, current_process_id)
8422 (main_thread_id, last_sig, current_event, last_wait_event)
8423 (current_windows_thread, desired_stop_thread_id, pending_stops)
8424 (struct pending_stop, siginfo_er): Move from windows-nat.c.
8425 * nat/windows-nat.c (current_process_handle, current_process_id)
8426 (main_thread_id, last_sig, current_event, last_wait_event)
8427 (current_windows_thread, desired_stop_thread_id, pending_stops)
8428 (siginfo_er): New globals. Move from windows-nat.c.
8429
8430 2020-04-08 Tom Tromey <tromey@adacore.com>
8431
8432 * windows-nat.c (get_image_name): Move to nat/windows-nat.c.
8433 (handle_load_dll): Update.
8434 * nat/windows-nat.c (get_image_name): Move from windows-nat.c.
8435
8436 2020-04-08 Tom Tromey <tromey@adacore.com>
8437
8438 * windows-nat.c (enum thread_disposition_type): Move to
8439 nat/windows-nat.h.
8440 (windows_nat::thread_rec): Rename from thread_rec. No longer
8441 static.
8442 (windows_add_thread, windows_nat_target::fetch_registers)
8443 (windows_nat_target::store_registers, handle_exception)
8444 (windows_nat_target::resume, get_windows_debug_event)
8445 (windows_nat_target::get_tib_address)
8446 (windows_nat_target::thread_name)
8447 (windows_nat_target::thread_alive): Update.
8448 * nat/windows-nat.h (enum thread_disposition_type): Move from
8449 windows-nat.c.
8450 (thread_rec): Declare.
8451
8452 2020-04-08 Tom Tromey <tromey@adacore.com>
8453
8454 * windows-nat.c: Add "using namespace".
8455 * nat/windows-nat.h: Wrap contents in windows_nat namespace.
8456 * nat/windows-nat.c: Wrap contents in windows_nat namespace.
8457
8458 2020-04-08 Tom Tromey <tromey@adacore.com>
8459
8460 * nat/windows-nat.h (struct windows_thread_info): Declare
8461 destructor.
8462 * nat/windows-nat.c (~windows_thread_info): New.
8463
8464 2020-04-08 Tom Tromey <tromey@adacore.com>
8465
8466 PR gdb/22992
8467 * windows-nat.c (current_event): Update comment.
8468 (last_wait_event, desired_stop_thread_id): New globals.
8469 (struct pending_stop): New.
8470 (pending_stops): New global.
8471 (windows_nat_target) <stopped_by_sw_breakpoint>
8472 <supports_stopped_by_sw_breakpoint>: New methods.
8473 (windows_fetch_one_register): Add assertions. Adjust PC.
8474 (windows_continue): Handle pending stops. Suspend other threads
8475 when stepping. Use last_wait_event
8476 (wait_for_debug_event): New function.
8477 (get_windows_debug_event): Use wait_for_debug_event. Handle
8478 pending stops. Queue spurious stops.
8479 (windows_nat_target::wait): Set stopped_at_software_breakpoint.
8480 (windows_nat_target::kill): Use wait_for_debug_event.
8481 * nat/windows-nat.h (struct windows_thread_info)
8482 <stopped_at_software_breakpoint>: New field.
8483 * nat/windows-nat.c (windows_thread_info::resume): Clear
8484 stopped_at_software_breakpoint.
8485
8486 2020-04-08 Tom Tromey <tromey@adacore.com>
8487
8488 * windows-nat.c (enum thread_disposition_type): New.
8489 (thread_rec): Replace "get_context" parameter with "disposition";
8490 change type.
8491 (windows_add_thread, windows_nat_target::fetch_registers)
8492 (windows_nat_target::store_registers, handle_exception)
8493 (windows_nat_target::resume, get_windows_debug_event)
8494 (windows_nat_target::get_tib_address)
8495 (windows_nat_target::thread_name)
8496 (windows_nat_target::thread_alive): Update.
8497
8498 2020-04-08 Tom Tromey <tromey@adacore.com>
8499
8500 * windows-nat.c (thread_rec): Use windows_thread_info::suspend.
8501 (windows_continue): Use windows_continue::resume.
8502 * nat/windows-nat.h (struct windows_thread_info) <suspend,
8503 resume>: Declare new methods.
8504 * nat/windows-nat.c: New file.
8505 * configure.nat (NATDEPFILES): Add nat/windows-nat.o when needed.
8506
8507 2020-04-08 Tom Tromey <tromey@adacore.com>
8508
8509 * windows-nat.c (windows_add_thread, windows_delete_thread)
8510 (windows_nat_target::fetch_registers)
8511 (windows_nat_target::store_registers, fake_create_process)
8512 (windows_nat_target::resume, windows_nat_target::resume)
8513 (get_windows_debug_event, windows_nat_target::wait)
8514 (windows_nat_target::pid_to_str)
8515 (windows_nat_target::get_tib_address)
8516 (windows_nat_target::get_ada_task_ptid)
8517 (windows_nat_target::thread_name)
8518 (windows_nat_target::thread_alive): Use lwp, not tid.
8519
8520 2020-04-08 Tom Tromey <tromey@adacore.com>
8521
8522 * windows-nat.c (handle_exception)
8523 (windows_nat_target::thread_name): Update.
8524 * nat/windows-nat.h (windows_thread_info): Remove destructor.
8525 <name>: Now unique_xmalloc_ptr.
8526
8527 2020-04-08 Tom Tromey <tromey@adacore.com>
8528
8529 * windows-nat.c (thread_rec)
8530 (windows_nat_target::fetch_registers): Update.
8531 * nat/windows-nat.h (struct windows_thread_info) <suspended>:
8532 Update comment.
8533 <debug_registers_changed, reload_context>: Now bool.
8534
8535 2020-04-08 Tom Tromey <tromey@adacore.com>
8536
8537 * windows-nat.c (windows_add_thread): Use new.
8538 (windows_init_thread_list, windows_delete_thread): Use delete.
8539 (get_windows_debug_event): Update.
8540 * nat/windows-nat.h (struct windows_thread_info): Add constructor,
8541 destructor, and initializers.
8542
8543 2020-04-08 Tom Tromey <tromey@adacore.com>
8544
8545 * windows-nat.c (struct windows_thread_info): Remove.
8546 * nat/windows-nat.h: New file.
8547
8548 2020-04-08 Tom Tromey <tromey@adacore.com>
8549
8550 * windows-nat.c (struct windows_thread_info) <tid>: Rename from "id".
8551 (thread_rec, windows_add_thread, windows_delete_thread)
8552 (windows_continue): Update.
8553
8554 2020-04-08 Tom Tromey <tromey@adacore.com>
8555
8556 * windows-nat.c (struct windows_thread_info): Remove typedef.
8557 (thread_head): Remove.
8558 (thread_list): New global.
8559 (thread_rec, windows_add_thread, windows_init_thread_list)
8560 (windows_delete_thread, windows_continue): Update.
8561
8562 2020-04-08 Simon Marchi <simon.marchi@polymtl.ca>
8563
8564 * windows-tdep.h (windows_init_abi): Add comment.
8565 (cygwin_init_abi): New declaration.
8566 * windows-tdep.c: Split signal enumeration in two, one for
8567 Windows and one for Cygwin.
8568 (windows_gdb_signal_to_target): Only deal with signal of the
8569 Windows OS ABI.
8570 (cygwin_gdb_signal_to_target): New function.
8571 (windows_init_abi): Rename to windows_init_abi_common, don't set
8572 gdb_signal_to_target gdbarch method. Add new new function with
8573 this name.
8574 (cygwin_init_abi): New function.
8575 * amd64-windows-tdep.c (amd64_windows_init_abi_common): Add
8576 comment. Don't call windows_init_abi.
8577 (amd64_windows_init_abi): Add comment, call windows_init_abi.
8578 (amd64_cygwin_init_abi): Add comment, call cygwin_init_abi.
8579 * i386-windows-tdep.c (i386_windows_init_abi): Rename to
8580 i386_windows_init_abi_common, don't call windows_init_abi. Add
8581 a new function of this name.
8582 (i386_cygwin_init_abi): New function.
8583 (_initialize_i386_windows_tdep): Bind i386_cygwin_init_abi to
8584 OS ABI Cygwin.
8585
8586 2020-04-08 Simon Marchi <simon.marchi@polymtl.ca>
8587
8588 * dwarf2/read.c (read_gdb_index_from_buffer): Remove objfile
8589 parameter.c.
8590 (dwarf2_read_gdb_index): Update.
8591
8592 2020-04-07 Kamil Rytarowski <n54@gmx.com>
8593
8594 * nbsd-tdep.c: Include "objfiles.h".
8595 (nbsd_skip_solib_resolver): New.
8596 (nbsd_init_abi): Call set_gdbarch_skip_solib_resolver().
8597
8598 2020-04-07 Nitika Achra <Nitika.Achra@amd.com>
8599
8600 * dwarf2/loc.c (loclist_describe_location): Call the function decode_debug_loclists_
8601 addresses if DWARF version is 5 or more because DW_LLE_start* or DW_LLE_offset_pair
8602 with DW_LLE_base_addressx are being emitted in DWARFv5.
8603 Add the newly added kind DW_LOC_OFFSET_PAIR also.
8604 The length of location description is an unsigned ULEB integer in DWARFv5 instead of
8605 unsigned integer.
8606
8607 2020-04-07 Nitika Achra <Nitika.Achra@amd.com>
8608
8609 * dwarf2/loc.c (enum debug_loc_kind): Add a new kind DEBUG_LOC_OFFSET_PAIR.
8610 (dwarf2_find_location_expression): Call the function decode_debug_loclists_
8611 addresses if DWARF version is 5 or more. DW_LLE_start* or DW_LLE_offset_pair
8612 with DW_LLE_base_addressx are being emitted in DWARFv5 instead of DW_LLE_GNU*.
8613 Add applicable base address if the entry is DW_LLE_offset_pair from DWO.
8614 (decode_debug_loclists_addresses): Return DEBUG_LOC_OFFSET_PAIR instead of
8615 DEBUG_LOC_START_END in case of DW_LLE_offset_pair.
8616
8617
8618 2020-04-07 Nitika Achra <Nitika.Achra@amd.com>
8619
8620 * dwarf2/read.c (cu_debug_loc_section): Added the declaration for the function.
8621 (read_loclist_index): New function definition.
8622 (lookup_loclist_base): New function definition.
8623 (read_loclist_header): New function definition.
8624 (dwarf2_cu): Add loclist_base and loclist_header field.
8625 (dwarf2_locate_dwo_sections): Handle .debug_loclists.dwo section.
8626 (read_full_die_1): Read the value of DW_AT_loclists_base.
8627 (read_attribute_reprocess): Handle DW_FORM_loclistx.
8628 (read_attribute_value): Handle DW_FORM_loclistx.
8629 (skip_one_die): Handle DW_FORM_loclistx.
8630 (loclist_header): New structure declaration.
8631 * dwarf2/attribute.c (form_is_section_offset): Handle DW_FORM_loclistx.
8632
8633 2020-04-07 Simon Marchi <simon.marchi@polymtl.ca>
8634
8635 * dwarf2/read.h (struct dwarf2_psymtab): Remove two-parameters
8636 constructor. Remove `addr` parameter from other constructor and
8637 add `per_cu` parameter.
8638 * dwarf2/read.c (create_partial_symtab): Update.
8639
8640 2020-04-07 Tom de Vries <tdevries@suse.de>
8641
8642 PR symtab/25796
8643 * dwarf2/read.c (can_have_DW_AT_const_value_p): New function.
8644 (partial_die_info::fixup): Inherit has_const_value.
8645
8646 2020-04-07 Tom de Vries <tdevries@suse.de>
8647
8648 * psymtab.c (maintenance_check_psymtabs): Skip static LOC_BLOCK
8649 symbols without address.
8650
8651 2020-04-06 Kamil Rytarowski <n54@gmx.com>
8652
8653 * nbsd-nat.h (struct thread_info): Add forward declaration.
8654 (nbsd_nat_target::thread_alive): Add.
8655 (nbsd_nat_target::thread_name): Likewise.
8656 (nbsd_nat_target::update_thread_list): Likewise.
8657 (update_thread_list::post_attach): Likewise.
8658 (post_attach::pid_to_str): Likewise.
8659 * nbsd-nat.c: Include "gdbthread.h" and "inferior.h".
8660 (nbsd_thread_lister): Add.
8661 (nbsd_nat_target::thread_alive): Likewise.
8662 (nbsd_nat_target::thread_name): Likewise.
8663 (nbsd_add_threads): Likewise.
8664 (update_thread_list::post_attach): Likewise.
8665 (nbsd_nat_target::update_thread_list): Likewise.
8666 (post_attach::pid_to_str): Likewise.
8667
8668 2020-04-06 Tom Tromey <tromey@adacore.com>
8669
8670 * ada-valprint.c (print_variant_part): Extract the variant field.
8671 (print_field_values): Use the field as the outer value when
8672 recursing.
8673
8674 2020-04-06 Tom Tromey <tromey@adacore.com>
8675
8676 * sh-nbsd-tdep.c: Include nbsd-tdep.h.
8677 * ppc-nbsd-tdep.c: Include nbsd-tdep.h.
8678 * mips-nbsd-tdep.c (mipsnbsd_init_abi): Add missing ";".
8679 * arm-nbsd-tdep.c: Include nbsd-tdep.h.
8680 * hppa-nbsd-tdep.c: Include nbsd-tdep.h.
8681
8682 2020-04-06 Tom Tromey <tromey@adacore.com>
8683
8684 * dwarf2/read.c (read_base_type) <DW_ATE_complex_float>: Handle
8685 TYPE_CODE_ERROR.
8686
8687 2020-04-06 Kamil Rytarowski <n54@gmx.com>
8688
8689 * nbsd-tdep.c: Include "gdbarch.h".
8690 Define enum with NetBSD signal numbers.
8691 (nbsd_gdb_signal_from_target, nbsd_gdb_signal_to_target): New.
8692 * alpha-nbsd-tdep.c (alphanbsd_init_abi): Call nbsd_init_abi().
8693 * amd64-nbsd-tdep.c (amd64nbsd_init_abi): Likewise.
8694 * arm-nbsd-tdep.c (arm_netbsd_elf_init_abi): Likewise.
8695 * hppa-nbsd-tdep.c (hppanbsd_init_abi): Likewise.
8696 * i386-nbsd-tdep.c (i386nbsd_init_abi): Likewise.
8697 * mips-nbsd-tdep.c (nbsd_init_abi): Likewise.
8698 * ppc-nbsd-tdep.c (ppcnbsd_init_abi): Likewise.
8699 * sh-nbsd-tdep.c (shnbsd_init_abi): Likewise.
8700 * sparc-nbsd-tdep.c (sparc32nbsd_init_abi): Likewise.
8701 * sparc64-nbsd-tdep.c (sparc64nbsd_init_abi): Likewise.
8702 * vax-nbsd-tdep.c (vaxnbsd_elf_init_abi): Likewise.
8703
8704 2020-04-03 Hannes Domani <ssbssa@yahoo.de>
8705
8706 PR gdb/25325
8707 * dwarf2/read.c (read_enumeration_type): Fix typed enum attributes.
8708
8709 2020-04-03 Tom Tromey <tromey@adacore.com>
8710
8711 * dwarf2/loc.c (disassemble_dwarf_expression) <DW_OP_const_type>:
8712 Read constant block.
8713
8714 2020-04-02 Simon Marchi <simon.marchi@polymtl.ca>
8715
8716 * gdb_bfd.h: Include gdbsupport/byte-vector.h.
8717 (gdb_bfd_get_full_section_contents): New declaration.
8718 * gdb_bfd.c (gdb_bfd_get_full_section_contents): New function.
8719 * windows-tdep.c (is_linked_with_cygwin_dll): Use
8720 gdb_bfd_get_full_section_contents.
8721
8722 2020-04-02 Simon Marchi <simon.marchi@polymtl.ca>
8723
8724 * exec.c (build_section_table): Replace internal_error with
8725 gdb_assert.
8726 (section_table_xfer_memory_partial): Likewise.
8727 * mdebugread.c (parse_partial_symbols): Likewise.
8728 * psymtab.c (lookup_partial_symbol): Likewise.
8729 * utils.c (wrap_here): Likewise.
8730
8731 2020-04-02 Tom Tromey <tromey@adacore.com>
8732
8733 * f-lang.c (build_fortran_types): Use arch_type to initialize
8734 builtin_complex_s32 in the TYPE_CODE_ERROR case.
8735
8736 2020-04-02 Tom Tromey <tromey@adacore.com>
8737
8738 * dwarf2/read.c (partial_die_info::read): Do not create a vector
8739 of attributes.
8740
8741 2020-04-02 Andrew Burgess <andrew.burgess@embecosm.com>
8742 Bernd Edlinger <bernd.edlinger@hotmail.de>
8743 Tom Tromey <tromey@adacore.com>
8744
8745 * buildsym.c (buildsym_compunit::record_line): Remove
8746 deduplication code.
8747
8748 2020-04-02 Tom de Vries <tdevries@suse.de>
8749
8750 PR ada/24671
8751 * dwarf2/read.c (dw2_map_matching_symbols): Handle -readnow.
8752
8753 2020-04-02 Tom de Vries <tdevries@suse.de>
8754
8755 * dwarf2/read.c (dwarf2_gdb_index_functions,
8756 dwarf2_debug_names_functions): Init lookup_global_symbol_language with
8757 NULL.
8758 * psymtab.c (psym_lookup_global_symbol_language): New function.
8759 (psym_functions): Init psym_lookup_global_symbol_language with
8760 psym_lookup_global_symbol_language.
8761 * symfile-debug.c (debug_sym_quick_functions): Init
8762 lookup_global_symbol_language with NULL.
8763 * symfile.c (set_initial_language): Remove fixme comment.
8764 * symfile.h (struct quick_symbol_functions): Add
8765 lookup_global_symbol_language.
8766 * symtab.c (find_quick_global_symbol_language): New function.
8767 (find_main_name): Use find_quick_global_symbol_language.
8768
8769 2020-04-01 Simon Marchi <simon.marchi@polymtl.ca>
8770
8771 * windows-tdep.c (is_linked_with_cygwin_dll): Fix style.
8772
8773 2020-04-01 Bernd Edlinger <bernd.edlinger@hotmail.de>
8774
8775 * buildsym.c (record_line): Fix undefined behavior and preserve
8776 lines at eof.
8777
8778 2020-04-01 Bernd Edlinger <bernd.edlinger@hotmail.de>
8779
8780 * buildsym.c (record_line): Fix the resizing condition.
8781
8782 2020-04-01 Tom Tromey <tom@tromey.com>
8783
8784 * value.h (value_literal_complex): Add comment.
8785 * valops.c (value_literal_complex): Refer to value.h.
8786
8787 2020-04-01 Tom Tromey <tom@tromey.com>
8788
8789 * c-exp.y (FLOAT_KEYWORD, COMPLEX): New tokens.
8790 (scalar_type): New rule, from typebase.
8791 (typebase): Use scalar_type. Recognize complex types.
8792 (field_name): Handle FLOAT_KEYWORD.
8793 (ident_tokens): Add _Complex and __complex__.
8794
8795 2020-04-01 Tom Tromey <tom@tromey.com>
8796
8797 PR exp/25299:
8798 * valarith.c (promotion_type, complex_binop): New functions.
8799 (scalar_binop): Handle complex numbers. Use promotion_type.
8800 (value_pos, value_neg, value_complement): Handle complex numbers.
8801
8802 2020-04-01 Tom Tromey <tom@tromey.com>
8803
8804 * c-exp.y (COMPLEX_INT, COMPLEX_FLOAT): New tokens.
8805 (exp) <COMPLEX_INT, COMPLEX_FLOAT>: New rules.
8806 (parse_number): Handle complex numbers.
8807
8808 2020-04-01 Tom Tromey <tom@tromey.com>
8809
8810 * c-valprint.c (c_decorations): Change complex suffix to "i".
8811
8812 2020-04-01 Tom Tromey <tom@tromey.com>
8813
8814 * valprint.c (generic_value_print_complex): Use accessors.
8815 * value.h (value_real_part, value_imaginary_part): Declare.
8816 * valops.c (value_real_part, value_imaginary_part): New
8817 functions.
8818 * value.c (creal_internal_fn, cimag_internal_fn): Use accessors.
8819
8820 2020-04-01 Tom Tromey <tom@tromey.com>
8821
8822 * stabsread.c (rs6000_builtin_type, read_sun_floating_type)
8823 (read_range_type): Update.
8824 * mdebugread.c (basic_type): Update.
8825 * go-lang.c (build_go_types): Use init_complex_type.
8826 * gdbtypes.h (struct main_type) <complex_type>: New member.
8827 (init_complex_type): Update.
8828 (arch_complex_type): Don't declare.
8829 * gdbtypes.c (init_complex_type): Remove "objfile" parameter.
8830 Make name if none given. Use alloc_type_copy. Look for cached
8831 complex type.
8832 (arch_complex_type): Remove.
8833 (gdbtypes_post_init): Use init_complex_type.
8834 * f-lang.c (build_fortran_types): Use init_complex_type.
8835 * dwarf2/read.c (read_base_type): Update.
8836 * d-lang.c (build_d_types): Use init_complex_type.
8837 * ctfread.c (read_base_type): Update.
8838
8839 2020-04-01 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
8840
8841 * infrun.c (stop_all_threads): Update assertion, plus when
8842 stopping threads, take into account that we might be trying
8843 to stop an all-stop target.
8844 (stop_waiting): Call 'stop_all_threads' if there exists a
8845 non-stop target.
8846
8847 2020-04-01 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
8848
8849 * target.h (exists_non_stop_target): New function declaration.
8850 * target.c (exists_non_stop_target): New function.
8851
8852 2020-04-01 Hannes Domani <ssbssa@yahoo.de>
8853
8854 PR gdb/24789
8855 * eval.c (is_integral_or_integral_reference): New function.
8856 (evaluate_subexp_standard): Allow integer references in
8857 pointer arithmetic.
8858
8859 2020-04-01 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
8860
8861 * remote.c (remote_target::remote_parse_stop_reply): Remove the
8862 check for no ptid in the stop reply when the target is non-stop.
8863
8864 2020-04-01 Tom Tromey <tromey@adacore.com>
8865
8866 * symtab.h (class lookup_name_info) <lookup_name_info>: Change
8867 "name" parameter to rvalue reference. Initialize m_name_holder.
8868 <lookup_name_info>: New overloads.
8869 <name>: Return gdb::string_view.
8870 <c_str>: New method.
8871 <make_ignore_params>: Update.
8872 <search_name_hash>: Update.
8873 <language_lookup_name>: Return const char *.
8874 <m_name>: Change type.
8875 * symtab.c (demangle_for_lookup_info::demangle_for_lookup_info)
8876 (demangle_for_lookup_info::demangle_for_lookup_info): Update.
8877 (lookup_name_info::match_any): Update.
8878 * psymtab.c (match_partial_symbol, lookup_partial_symbol):
8879 Update.
8880 * minsyms.c (linkage_name_str): Update.
8881 * language.c (default_symbol_name_matcher): Update.
8882 * dwarf2/read.c (mapped_index_base::find_name_components_bounds):
8883 Update.
8884 * ada-lang.c (ada_fold_name): Change parameter to string_view.
8885 (ada_lookup_name_info::ada_lookup_name_info): Update.
8886 (literal_symbol_name_matcher): Update.
8887
8888 2020-04-01 Tom Tromey <tromey@adacore.com>
8889
8890 * psymtab.c (psymtab_search_name): Remove function.
8891 (psym_lookup_symbol): Create search name and lookup name here.
8892 (lookup_partial_symbol): Remove "name" parameter; add
8893 lookup_name.
8894 (psym_expand_symtabs_for_function): Update.
8895
8896 2020-03-31 Joel Jones <joelkevinjones@gmail.com>
8897
8898 PR tui/25597:
8899 * python/py-tui.c: Include gdb_curses.h inside of #ifdef TUI.
8900
8901 2020-03-31 Tom Tromey <tromey@adacore.com>
8902
8903 * dwarf2/abbrev.c (abbrev_table::read): Conditionally call
8904 memcpy.
8905
8906 2020-03-30 Nelson Chu <nelson.chu@sifive.com>
8907
8908 * features/riscv/32bit-csr.xml: Regenerated.
8909 * features/riscv/64bit-csr.xml: Regenerated.
8910
8911 2020-03-30 Tom Tromey <tromey@adacore.com>
8912
8913 * ada-valprint.c (print_variant_part): Update.
8914 * ada-lang.h (ada_which_variant_applies): Update.
8915 * ada-lang.c (ada_which_variant_applies): Remove outer_type and
8916 outer_valaddr parameters; replace with "outer" value parameter.
8917 (to_fixed_variant_branch_type): Update.
8918
8919 2020-03-30 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
8920
8921 * ppc-linux-nat.c: Include <algorithm>, <unordered_map>, and
8922 <list>. Remove inclusion of observable.h.
8923 (PPC_DEBUG_CURRENT_VERSION): Move up define.
8924 (struct arch_lwp_info): New struct.
8925 (class ppc_linux_dreg_interface): New class.
8926 (struct ppc_linux_process_info): New struct.
8927 (struct ppc_linux_nat_target) <low_delete_thread, low_new_fork>
8928 <low_new_clone, low_forget_process, low_prepare_to_resume>
8929 <copy_thread_dreg_state, mark_thread_stale>
8930 <mark_debug_registers_changed, register_hw_breakpoint>
8931 <clear_hw_breakpoint, register_wp, clear_wp>
8932 <can_use_watchpoint_cond_accel, calculate_dvc, check_condition>
8933 <num_memory_accesses, get_trigger_type>
8934 <create_watchpoint_request, hwdebug_point_cmp>
8935 <init_arch_lwp_info, get_arch_lwp_info>
8936 <low_stopped_by_watchpoint, low_stopped_data_address>: Declare as
8937 methods.
8938 <struct ptid_hash>: New inner struct.
8939 <m_dreg_interface, m_process_info, m_installed_hw_bps>: Declare
8940 members.
8941 (saved_dabr_value, hwdebug_info, max_slots_number)
8942 (struct hw_break_tuple, struct thread_points, ppc_threads)
8943 (have_ptrace_hwdebug_interface)
8944 (hwdebug_find_thread_points_by_tid)
8945 (hwdebug_insert_point, hwdebug_remove_point): Remove.
8946 (ppc_linux_nat_target::can_use_hw_breakpoint): Use
8947 m_dreg_interface, remove call to PTRACE_SET_DEBUGREG.
8948 (ppc_linux_nat_target::region_ok_for_hw_watchpoint): Add comment,
8949 use m_dreg_interface.
8950 (hwdebug_point_cmp): Change to...
8951 (ppc_linux_nat_target::hwdebug_point_cmp): ...this method. Use
8952 reference arguments instead of pointers.
8953 (ppc_linux_nat_target::ranged_break_num_registers): Use
8954 m_dreg_interface.
8955 (ppc_linux_nat_target::insert_hw_breakpoint): Add comment, use
8956 m_dreg_interface. Call register_hw_breakpoint.
8957 (ppc_linux_nat_target::remove_hw_breakpoint): Add comment, use
8958 m_dreg_interface. Call clear_hw_breakpoint.
8959 (get_trigger_type): Change to...
8960 (ppc_linux_nat_target::get_trigger_type): ...this method. Add
8961 comment.
8962 (ppc_linux_nat_target::insert_mask_watchpoint): Update comment,
8963 use m_dreg_interface. Call register_hw_breakpoint.
8964 (ppc_linux_nat_target::remove_mask_watchpoint): Update comment,
8965 use m_dreg_interface. Call clear_hw_breakpoint.
8966 (can_use_watchpoint_cond_accel): Change to...
8967 (ppc_linux_nat_target::can_use_watchpoint_cond_accel): ...this
8968 method. Update comment, use m_dreg_interface and
8969 m_process_info.
8970 (calculate_dvc): Change to...
8971 (ppc_linux_nat_target::calculate_dvc): ...this method. Use
8972 m_dreg_interface.
8973 (num_memory_accesses): Change to...
8974 (ppc_linux_nat_target::num_memory_accesses): ...this method.
8975 (check_condition): Change to...
8976 (ppc_linux_nat_target::check_condition): ...this method.
8977 (ppc_linux_nat_target::can_accel_watchpoint_condition): Update
8978 comment, use m_dreg_interface.
8979 (create_watchpoint_request): Change to...
8980 (ppc_linux_nat_target::create_watchpoint_request): ...this
8981 method. Use m_dreg_interface.
8982 (ppc_linux_nat_target::insert_watchpoint): Add comment, use
8983 m_dreg_interface. Call register_hw_breakpoint or register_wp.
8984 (ppc_linux_nat_target::remove_watchpoint): Add comment, use
8985 m_dreg_interface. Call clear_hw_breakpoint or clear_wp.
8986 (ppc_linux_nat_target::low_forget_process)
8987 (ppc_linux_nat_target::low_new_fork)
8988 (ppc_linux_nat_target::low_new_clone)
8989 (ppc_linux_nat_target::low_delete_thread)
8990 (ppc_linux_nat_target::low_prepare_to_resume): New methods.
8991 (ppc_linux_nat_target::low_new_thread): Remove previous logic,
8992 only call mark_thread_stale.
8993 (ppc_linux_thread_exit): Remove.
8994 (ppc_linux_nat_target::stopped_data_address): Change to...
8995 (ppc_linux_nat_target::low_stopped_data_address): This. Add
8996 comment, use m_dreg_interface and m_thread_hw_breakpoints.
8997 (ppc_linux_nat_target::stopped_by_watchpoint): Change to...
8998 (ppc_linux_nat_target::stopped_by_watchpoint): This. Add
8999 comment. Call low_stopped_data_address.
9000 (ppc_linux_nat_target::watchpoint_addr_within_range): Use
9001 m_dreg_interface.
9002 (ppc_linux_nat_target::masked_watch_num_registers): Use
9003 m_dreg_interface.
9004 (ppc_linux_nat_target::copy_thread_dreg_state)
9005 (ppc_linux_nat_target::mark_thread_stale)
9006 (ppc_linux_nat_target::mark_debug_registers_changed)
9007 (ppc_linux_nat_target::register_hw_breakpoint)
9008 (ppc_linux_nat_target::clear_hw_breakpoint)
9009 (ppc_linux_nat_target::register_wp)
9010 (ppc_linux_nat_target::clear_wp)
9011 (ppc_linux_nat_target::init_arch_lwp_info)
9012 (ppc_linux_nat_target::get_arch_lwp_info): New methods.
9013 (_initialize_ppc_linux_nat): Remove observer callback.
9014
9015 2020-03-30 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
9016
9017 * ppc-linux-nat.c (ppc_linux_nat_target::store_registers)
9018 (ppc_linux_nat_target::auxv_parse)
9019 (ppc_linux_nat_target::read_description)
9020 (supply_gregset, fill_gregset, supply_fpregset, fill_fpregset):
9021 Move up.
9022
9023 2020-03-30 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
9024
9025 * linux-nat.h (low_new_clone): New method.
9026 * linux-nat.c (linux_handle_extended_wait): Call low_new_clone.
9027
9028 2020-03-29 Simon Marchi <simon.marchi@polymtl.ca>
9029
9030 * dbxread.c (dbx_psymtab_to_symtab_1): Rename to...
9031 (dbx_expand_psymtab): ... this.
9032 (start_psymtab): Update.
9033 * mdebugread.c (psymtab_to_symtab_1): Rename to...
9034 (mdebug_expand_psymtab): ... this.
9035 (parse_partial_symbols): Update.
9036 (new_psymtab): Update.
9037 * xcoffread.c (xcoff_psymtab_to_symtab_1): Rename to...
9038 (xcoff_expand_psymtab): ... this.
9039 (xcoff_start_psymtab): Update.
9040
9041 2020-03-29 Simon Marchi <simon.marchi@polymtl.ca>
9042
9043 * psympriv.h (partial_symtab) <read_dependencies>: Rename to...
9044 <expand_dependencies>: ... this.
9045 * psymtab.c (partial_symtab::read_dependencies): Rename to...
9046 (partial_symtab::expand_dependencies): ... this.
9047 * dwarf2/read.c (dwarf2_include_psymtab) <expand_psymtab>:
9048 Update.
9049 (dwarf2_psymtab::expand_psymtab): Update.
9050 * dbxread.c (dbx_psymtab_to_symtab_1): Update.
9051 * mdebugread.c (psymtab_to_symtab_1): Update.
9052 * xcoffread.c (xcoff_psymtab_to_symtab_1): Update.
9053
9054 2020-03-29 Simon Marchi <simon.marchi@polymtl.ca>
9055
9056 * psympriv.h (discard_psymtab): Remove.
9057 * dbxread.c (dbx_end_psymtab): Update.
9058 * xcoffread.c (xcoff_end_psymtab): Update.
9059
9060 2020-03-28 Tom Tromey <tom@tromey.com>
9061
9062 * dwarf2/attribute.h (struct attribute) <form_is_constant>: Update
9063 comment.
9064
9065 2020-03-28 Tom Tromey <tom@tromey.com>
9066
9067 * dwarf2/read.c (read_attribute_reprocess): Fix formatting.
9068
9069 2020-03-27 Hannes Domani <ssbssa@yahoo.de>
9070
9071 * windows-nat.c (windows_add_all_dlls): Fix system dll paths.
9072
9073 2020-03-26 John Baldwin <jhb@FreeBSD.org>
9074
9075 * fbsd-tdep.c (fbsd_print_auxv_entry): Handle AT_FREEBSD_BSDFLAGS.
9076
9077 2020-03-26 Tom Tromey <tom@tromey.com>
9078
9079 * dwarf2/read.c (handle_data_member_location, dwarf2_add_field)
9080 (mark_common_block_symbol_computed, read_tag_string_type)
9081 (attr_to_dynamic_prop, read_subrange_type): Update.
9082 (dwarf2_get_ref_die_offset, dwarf2_get_attr_constant_value): Move
9083 to be methods on struct attribute.
9084 (skip_one_die, process_imported_unit_die, read_namespace_alias)
9085 (read_call_site_scope, partial_die_info::read)
9086 (partial_die_info::read, lookup_die_type, follow_die_ref):
9087 Update.
9088 * dwarf2/attribute.c (attribute::get_ref_die_offset): New method,
9089 from dwarf2_get_ref_die_offset.
9090 (attribute::constant_value): New method, from
9091 dwarf2_get_attr_constant_value.
9092 * dwarf2/attribute.h (struct attribute) <get_ref_die_offset>:
9093 Declare method.
9094 <constant_value>: New method.
9095
9096 2020-03-26 Tom Tromey <tom@tromey.com>
9097
9098 * dwarf2/read.c (dwarf_unit_type_name, dwarf_tag_name)
9099 (dwarf_attr_name, dwarf_form_name, dwarf_bool_name)
9100 (dwarf_type_encoding_name): Move to stringify.c.
9101 * Makefile.in (COMMON_SFILES): Add dwarf2/stringify.c.
9102 * dwarf2/stringify.c: New file.
9103 * dwarf2/stringify.h: New file.
9104
9105 2020-03-26 Tom Tromey <tom@tromey.com>
9106
9107 * dwarf2/die.h (struct die_info) <addr_base, ranges_base>:
9108 Rewrite.
9109
9110 2020-03-26 Tom Tromey <tom@tromey.com>
9111
9112 * dwarf2/die.h (struct die_info) <addr_base, ranges_base>: New
9113 methods.
9114 * dwarf2/read.c (lookup_addr_base): Move to die.h.
9115 (lookup_ranges_base): Likewise.
9116 (read_cutu_die_from_dwo, read_full_die_1): Update.
9117
9118 2020-03-26 Tom Tromey <tom@tromey.com>
9119
9120 * dwarf2/read.c (read_import_statement, read_file_scope)
9121 (read_type_unit_scope, inherit_abstract_dies, read_func_scope)
9122 (read_lexical_block_scope, read_call_site_scope)
9123 (dwarf2_get_subprogram_pc_bounds, get_scope_pc_bounds)
9124 (handle_struct_member_die, process_structure_scope)
9125 (update_enumeration_type_from_children)
9126 (process_enumeration_scope, read_array_type, read_common_block)
9127 (read_namespace, read_module, read_subroutine_type): Update.
9128 (sibling_die): Remove.
9129
9130 2020-03-26 Tom Tromey <tom@tromey.com>
9131
9132 * dwarf2/read.c (lookup_addr_base, lookup_ranges_base)
9133 (build_type_psymtabs_reader, read_structure_type)
9134 (read_enumeration_type, read_full_die_1): Update.
9135 (dwarf2_attr_no_follow): Move to die.h.
9136 * dwarf2/die.h (struct die_info) <attr>: New method.
9137
9138 2020-03-26 Tom Tromey <tom@tromey.com>
9139
9140 * dwarf2/read.c (struct dwarf2_cu) <base_known>: Remove.
9141 <base_address>: Now an optional.
9142 (dwarf2_find_base_address, dwarf2_rnglists_process)
9143 (dwarf2_ranges_process, fill_in_loclist_baton)
9144 (dwarf2_symbol_mark_computed): Update.
9145
9146 2020-03-26 Tom Tromey <tom@tromey.com>
9147
9148 * dwarf2/read.c (struct die_info): Move to die.h.
9149 * dwarf2/die.h: New file.
9150
9151 2020-03-26 Tom Tromey <tom@tromey.com>
9152
9153 * dwarf2/line-header.h (dwarf_decode_line_header): Declare.
9154 * dwarf2/read.c
9155 (dwarf2_statement_list_fits_in_line_number_section_complaint):
9156 Move to line-header.c.
9157 (read_checked_initial_length_and_offset, read_formatted_entries):
9158 Likewise.
9159 (dwarf_decode_line_header): Split into two.
9160 * dwarf2/line-header.c
9161 (dwarf2_statement_list_fits_in_line_number_section_complaint):
9162 Move from read.c.
9163 (read_checked_initial_length_and_offset, read_formatted_entries):
9164 Likewise.
9165 (dwarf_decode_line_header): New function, split from read.c.
9166
9167 2020-03-26 Tom Tromey <tom@tromey.com>
9168
9169 * dwarf2/read.h (struct dwarf2_per_objfile) <read_line_string>:
9170 Declare method.
9171 * dwarf2/read.c (read_attribute_value): Update.
9172 (dwarf2_per_objfile::read_line_string): Rename from
9173 read_indirect_line_string.
9174 (read_formatted_entries): Update.
9175
9176 2020-03-26 Tom Tromey <tom@tromey.com>
9177
9178 * dwarf2/macro.c (dwarf_decode_macro_bytes): Use objfile local
9179 variable.
9180
9181 2020-03-26 Tom Tromey <tom@tromey.com>
9182
9183 * dwarf2/macro.h (dwarf_decode_macros): Make section parameter
9184 const.
9185 * dwarf2/macro.c (skip_form_bytes, skip_unknown_opcode)
9186 (dwarf_decode_macro_bytes, dwarf_decode_macros): Make section
9187 parameter const.
9188
9189 2020-03-26 Tom Tromey <tom@tromey.com>
9190
9191 * dwarf2/read.c (dwarf_decode_macros): Make "lh" const.
9192 * dwarf2/macro.h (dwarf_decode_macros): Constify "lh" parameter.
9193 * dwarf2/macro.c (macro_start_file): Constify "lh" parameter.
9194 (dwarf_decode_macro_bytes, dwarf_decode_macros): Likewise.
9195
9196 2020-03-26 Tom Tromey <tom@tromey.com>
9197
9198 * dwarf2/line-header.h (struct line_header) <is_valid_file_index,
9199 file_names_size, file_full_name, file_file_name>: Use const.
9200 <file_name_at, file_names>: Add const overload.
9201 * dwarf2/line-header.c (line_header::file_file_name)
9202 (line_header::file_full_name): Update.
9203
9204 2020-03-26 Tom Tromey <tom@tromey.com>
9205
9206 * dwarf2/read.c (dwarf2_macro_malformed_definition_complaint)
9207 (macro_start_file, consume_improper_spaces)
9208 (parse_macro_definition, skip_form_bytes, skip_unknown_opcode)
9209 (dwarf_parse_macro_header, dwarf_decode_macro_bytes)
9210 (dwarf_decode_macros): Move to macro.c.
9211 * dwarf2/macro.c: New file.
9212 * dwarf2/macro.h: New file.
9213 * Makefile.in (COMMON_SFILES): Add dwarf2/macro.c.
9214
9215 2020-03-26 Tom Tromey <tom@tromey.com>
9216
9217 * dwarf2/section.h (struct dwarf2_section_info) <read_string>: New
9218 method.
9219 * dwarf2/section.c: New method. From
9220 read_indirect_string_at_offset_from.
9221 * dwarf2/read.c (mapped_debug_names::namei_to_name): Update.
9222 (read_indirect_string_at_offset_from): Move to section.c.
9223 (read_indirect_string_at_offset): Rewrite.
9224 (read_indirect_line_string_at_offset): Remove.
9225 (read_indirect_string, read_indirect_line_string)
9226 (dwarf_decode_macro_bytes): Update.
9227
9228 2020-03-26 Tom Tromey <tom@tromey.com>
9229
9230 * dwarf2/section.h (struct dwarf2_section_info)
9231 <overload_complaint>: Declare.
9232 (dwarf2_section_buffer_overflow_complaint): Don't declare.
9233 * dwarf2/section.c (dwarf2_section_info::overflow_complaint):
9234 Rename from dwarf2_section_buffer_overflow_complaint.
9235 * dwarf2/read.c (skip_one_die, partial_die_info::read)
9236 (skip_form_bytes, dwarf_decode_macro_bytes): Update.
9237
9238 2020-03-26 Tom Tromey <tom@tromey.com>
9239
9240 * dwarf2/section.h (dwarf2_section_buffer_overflow_complaint):
9241 Declare.
9242 * dwarf2/section.c (dwarf2_section_buffer_overflow_complaint):
9243 Move from read.c.
9244 * dwarf2/read.c (dwarf2_section_buffer_overflow_complaint): Move
9245 to section.c.
9246
9247 2020-03-26 Tom Tromey <tom@tromey.com>
9248
9249 * dwarf2/read.c (dwarf_decode_macros): Split into two overloads.
9250
9251 2020-03-26 Tom Tromey <tom@tromey.com>
9252
9253 * dwarf2/read.c (macro_start_file): Change "cu" parameter to
9254 "builder".
9255 (dwarf_decode_macro_bytes): Likewise. Add dwarf2_per_objfile
9256 parameter.
9257 (dwarf_decode_macros): Update.
9258
9259 2020-03-26 Tom Tromey <tom@tromey.com>
9260
9261 * dwarf2/read.c (read_attribute_value): Update.
9262 (read_indirect_string_from_dwz): Move to dwz.c; change into
9263 method.
9264 (dwarf_decode_macro_bytes): Update.
9265 * dwarf2/dwz.h (struct dwz_file) <read_string>: Declare method.
9266 * dwarf2/dwz.c: New file.
9267 * Makefile.in (COMMON_SFILES): Add dwz.c.
9268
9269 2020-03-26 Tom Tromey <tom@tromey.com>
9270
9271 * dwarf2/read.h (struct dwz_file): Move to dwz.h.
9272 * dwarf2/read.c: Add include.
9273 * dwarf2/index-write.c: Add include.
9274 * dwarf2/index-cache.c: Add include.
9275 * dwarf2/dwz.h: New file.
9276
9277 2020-03-25 Tom Tromey <tom@tromey.com>
9278
9279 * compile/compile-object-load.c (get_out_value_type): Mention
9280 correct symbol name in error message.
9281
9282 2020-03-25 Hannes Domani <ssbssa@yahoo.de>
9283
9284 * windows-nat.c (windows_add_all_dlls): Fix system dll paths.
9285
9286 2020-03-25 Tom de Vries <tdevries@suse.de>
9287
9288 * symtab.h (is_main_symtab_of_compunit_symtab): New function.
9289 * symmisc.c (dump_symtab_1): Print user and includes fields.
9290 (maintenance_info_symtabs): Same.
9291
9292 2020-03-25 Andrew Burgess <andrew.burgess@embecosm.com>
9293
9294 PR gdb/25534
9295 * riscv-tdep.c (riscv_arg_info::c_offset): Update comment.
9296 (riscv_regcache_cooked_write): New function.
9297 (riscv_push_dummy_call): Use new function.
9298 (riscv_return_value): Likewise.
9299
9300 2020-03-24 Simon Marchi <simon.marchi@polymtl.ca>
9301
9302 * fbsd-nat.c (fbsd_nat_target::follow_fork): Change bool to int.
9303 * fbsd-nat.h (class fbsd_nat_target) <follow_fork>: Likewise.
9304 * inf-ptrace.c (inf_ptrace_target::follow_fork): Likewise.
9305 * inf-ptrace.h (struct inf_ptrace_target) <follow_fork>: Likewise.
9306 * infrun.c (follow_fork): Likewise.
9307 (follow_fork_inferior): Likewise.
9308 * linux-nat.c (linux_nat_target::follow_fork): Likewise.
9309 * linux-nat.h (class linux_nat_target): Likewise.
9310 * remote.c (class remote_target) <follow_fork>: Likewise.
9311 (remote_target::follow_fork): Likewise.
9312 * target-delegates.c: Re-generate.
9313 * target.c (default_follow_fork): Likewise.
9314 (target_follow_fork): Likewise.
9315 * target.h (struct target_ops) <follow_fork>: Likewise.
9316 (target_follow_fork): Likewise.
9317
9318 2020-03-24 Tom de Vries <tdevries@suse.de>
9319
9320 * psymtab.c (maintenance_info_psymtabs): Print user field.
9321
9322 2020-03-20 Tom Tromey <tromey@adacore.com>
9323
9324 * dwarf2/loc.h (dwarf2_evaluate_property): Make "addr_stack"
9325 const.
9326 * dwarf2/loc.c (dwarf2_evaluate_property): Make "addr_stack"
9327 const.
9328
9329 2020-03-20 Simon Marchi <simon.marchi@efficios.com>
9330
9331 * ptrace.m4: Don't check for ptrace declaration.
9332 * config.in: Re-generate.
9333 * configure: Re-generate.
9334 * nat/gdb_ptrace.h: Don't declare ptrace if HAVE_DECL_PTRACE is
9335 not defined.
9336
9337 2020-03-20 Kamil Rytarowski <n54@gmx.com>
9338
9339 * amd64-bsd-nat.c (gdb_ptrace): Change return type from `int' to
9340 `PTRACE_TYPE_RET'.
9341 * i386-bsd-nat.c (gdb_ptrace): Likewise.
9342 * sparc-nat.c (gdb_ptrace): Likewise.
9343 * x86-bsd-nat.c (gdb_ptrace): Likewise.
9344
9345 2020-03-20 Tom Tromey <tromey@adacore.com>
9346
9347 * c-exp.y (lex_one_token): Fix assert.
9348
9349 2020-03-20 Tom Tromey <tromey@adacore.com>
9350
9351 * ada-tasks.c (read_atcb): Use smaller length in strncpy call.
9352 * linux-tdep.c (linux_fill_prpsinfo): Use smaller length in
9353 strncpy call.
9354
9355 2020-03-20 Tom Tromey <tromey@adacore.com>
9356
9357 * symmisc.c (maintenance_print_one_line_table): Use ui_out.
9358
9359 2020-03-20 Tom Tromey <tromey@adacore.com>
9360
9361 * ada-valprint.c (print_variant_part): Remove parameters; switch
9362 to value-based API.
9363 (print_field_values): Likewise.
9364 (ada_val_print_struct_union): Likewise.
9365 (ada_value_print_1): Update.
9366
9367 2020-03-20 Kamil Rytarowski <n54@gmx.com>
9368
9369 * ppc-nbsd-nat.c (ppc_nbsd_nat_target): Inherit from
9370 nbsd_nat_target instead of inf_ptrace_target.
9371 * ppc-nbsd-nat.c: Include "nbsd-nat.h", as we are now using
9372 nbsd_nat_target.
9373
9374 2020-03-20 Kamil Rytarowski <n54@gmx.com>
9375
9376 * hppa-nbsd-nat.c (fetch_registers): New variable lwp and pass
9377 it to the ptrace call.
9378 * (store_registers): Likewise.
9379
9380 2020-03-20 Kamil Rytarowski <n54@gmx.com>
9381
9382 * ppc-nbsd-nat.c (fetch_registers): New variable lwp and pass
9383 it to the ptrace call.
9384 * (store_registers): Likewise.
9385
9386 2020-03-19 Luis Machado <luis.machado@linaro.org>
9387
9388 * nat/aarch64-sve-linux-ptrace.c (aarch64_sve_set_vq): If vg is not
9389 valid, fetch vg value from ptrace.
9390
9391 2020-03-19 Kamil Rytarowski <n54@gmx.com>
9392 * inf-ptrace.h: Disable get_ptrace_pid on NetBSD.
9393 * inf-ptrace.c: Likewise.
9394 * (gdb_ptrace): Add.
9395 * (inf_ptrace_target::resume): Update.
9396 * (inf_ptrace_target::xfer_partial): Likewise.
9397 * (inf_ptrace_peek_poke): Change argument `pid' to `ptid'.
9398 * (inf_ptrace_peek_poke): Update.
9399
9400 2020-03-19 Kamil Rytarowski <n54@gmx.com>
9401
9402 * x86-bsd-nat.c (gdb_ptrace): New.
9403 * (x86bsd_dr_set): Add new argument `ptid'.
9404 * (x86bsd_dr_get, x86bsd_dr_set, x86bsd_dr_set_control,
9405 x86bsd_dr_set_addr): Update.
9406
9407 2020-03-19 Andrew Burgess <andrew.burgess@embecosm.com>
9408
9409 * remote.c (remote_target::process_stop_reply): Handle events for
9410 all threads differently.
9411
9412 2020-03-19 Andrew Burgess <andrew.burgess@embecosm.com>
9413
9414 * completer.c (completion_tracker::remove_completion): Define new
9415 function.
9416 * completer.h (completion_tracker::remove_completion): Declare new
9417 function.
9418 * symtab.c (completion_list_add_symbol): Remove aliasing msymbols
9419 when adding a C++ function symbol.
9420
9421 2020-03-19 Andrew Burgess <andrew.burgess@embecosm.com>
9422
9423 * completer.c (completion_tracker::completion_hash_entry): Define
9424 new class.
9425 (advance_to_filename_complete_word_point): Call
9426 recompute_lowest_common_denominator.
9427 (completion_tracker::completion_tracker): Call discard_completions
9428 to setup the hash table.
9429 (completion_tracker::discard_completions): Allow for being called
9430 from the constructor, pass new equal function, and element deleter
9431 when constructing the hash table. Initialise new class member
9432 variables.
9433 (completion_tracker::maybe_add_completion): Remove use of
9434 m_entries_vec, and store more information into m_entries_hash.
9435 (completion_tracker::recompute_lcd_visitor): New function, most
9436 content taken from...
9437 (completion_tracker::recompute_lowest_common_denominator):
9438 ...here, this now just visits each item in the hash calling the
9439 above visitor.
9440 (completion_tracker::build_completion_result): Remove use of
9441 m_entries_vec, call recompute_lowest_common_denominator.
9442 * completer.h (completion_tracker::have_completions): Remove use
9443 of m_entries_vec.
9444 (completion_tracker::completion_hash_entry): Declare new class.
9445 (completion_tracker::recompute_lowest_common_denominator): Change
9446 function signature.
9447 (completion_tracker::recompute_lcd_visitor): Declare new function.
9448 (completion_tracker::m_entries_vec): Delete.
9449 (completion_tracker::m_entries_hash): Initialize to NULL.
9450 (completion_tracker::m_lowest_common_denominator_valid): New
9451 member variable.
9452 (completion_tracker::m_lowest_common_denominator_max_length): New
9453 member variable.
9454
9455 2020-03-17 Kamil Rytarowski <n54@gmx.com>
9456
9457 * regformats/regdef.h: Put reg in gdb namespace.
9458
9459 2020-03-17 Kamil Rytarowski <n54@gmx.com>
9460
9461 * i386-bsd-nat.c (gdb_ptrace): New.
9462 * (i386bsd_fetch_inferior_registers,
9463 i386bsd_store_inferior_registers) Switch from pid_t to ptid_t.
9464 * (i386bsd_fetch_inferior_registers,
9465 i386bsd_store_inferior_registers) Use gdb_ptrace.
9466
9467 2020-03-17 Kamil Rytarowski <n54@gmx.com>
9468
9469 * amd64-bsd-nat.c (gdb_ptrace): New.
9470 * (amd64bsd_fetch_inferior_registers,
9471 amd64bsd_store_inferior_registers) Switch from pid_t to ptid_t.
9472 * (amd64bsd_fetch_inferior_registers,
9473 amd64bsd_store_inferior_registers) Use gdb_ptrace.
9474
9475 2020-03-17 Kamil Rytarowski <n54@gmx.com>
9476
9477 * user-regs.c (user_reg::read): Rename to...
9478 (user_reg::xread): ...this.
9479 * (append_user_reg): Rename argument `read' to `xread'.
9480 * (user_reg_add_builtin): Likewise.
9481 * (user_reg_add): Likewise.
9482 * (value_of_user_reg): Likewise.
9483
9484 2020-03-17 Kamil Rytarowski <n54@gmx.com>
9485
9486 * sparc-nat.c (gdb_ptrace): New.
9487 * sparc-nat.c (sparc_fetch_inferior_registers)
9488 (sparc_store_inferior_registers) Remove obsolete comment.
9489 * sparc-nat.c (sparc_fetch_inferior_registers)
9490 (sparc_store_inferior_registers) Switch from pid_t to ptid_t.
9491 * sparc-nat.c (sparc_fetch_inferior_registers)
9492 (sparc_store_inferior_registers) Use gdb_ptrace.
9493
9494 2020-03-17 Kamil Rytarowski <n54@gmx.com>
9495
9496 * sh-nbsd-nat.c (fetch_registers): New variable lwp and pass
9497 it to the ptrace call.
9498 * sh-nbsd-nat.c (store_registers): Likewise.
9499
9500 2020-03-17 Kamil Rytarowski <n54@gmx.com>
9501
9502 * sh-nbsd-nat.c (sh_nbsd_nat_target): Inherit from
9503 nbsd_nat_target instead of inf_ptrace_target.
9504 * sh-nbsd-nat.c: Include "nbsd-nat.h", as we are now using
9505 nbsd_nat_target.
9506
9507 2020-03-17 Kamil Rytarowski <n54@gmx.com>
9508
9509 * amd64-bsd-nat.c: Include amd64-bsd-nat.h".
9510
9511 2020-03-17 Kamil Rytarowski <n54@gmx.com>
9512
9513 * nbsd-nat.c: Include <sys/types.h>, <sys/ptrace.h> and
9514 <sys/sysctl.h>.
9515 * nbsd-nat.c (nbsd_nat_target::pid_to_exec_file): Rewrite.
9516
9517 2020-03-17 Tom de Vries <tdevries@suse.de>
9518
9519 PR gdb/23710
9520 * dwarf2/read.h (struct dwarf2_per_cu_data): Add unit_type and lang
9521 fields.
9522 * dwarf2/read.c (process_psymtab_comp_unit): Initialize unit_type and lang
9523 fields.
9524 (process_imported_unit_die): Skip import of c++ CUs.
9525
9526 2020-03-16 Tom Tromey <tom@tromey.com>
9527
9528 * p-valprint.c (pascal_object_print_value): Initialize
9529 base_value.
9530
9531 2020-03-16 Anton Kolesov <anton.kolesov@synopsys.com>
9532 Shahab Vahedi <shahab@synopsys.com>
9533
9534 * Makefile.in: Add arch/arc.o
9535 * configure.tgt: Likewise.
9536 * arc-tdep.c (arc_tdesc_init): Use arc_read_description.
9537 (_initialize_arc_tdep): Don't initialize old target descriptions.
9538 (arc_read_description): New function to cache target descriptions.
9539 * arc-tdep.h (arc_read_description): Add proto type.
9540 * arch/arc.c: New file.
9541 * arch/arc.h: Likewise.
9542 * features/Makefile: Replace old target descriptions with new.
9543 * features/arc-arcompact.c: Remove.
9544 * features/arc-arcompact.xml: Likewise.
9545 * features/arc-v2.c: Likewise
9546 * features/arc-v2.xml: Likewise
9547 * features/arc/aux-arcompact.xml: New file.
9548 * features/arc/aux-v2.xml: Likewise.
9549 * features/arc/core-arcompact.xml: Likewise.
9550 * features/arc/core-v2.xml: Likewise.
9551 * features/arc/aux-arcompact.c: Generate.
9552 * features/arc/aux-v2.c: Likewise.
9553 * features/arc/core-arcompact.c: Likewise.
9554 * features/arc/core-v2.c: Likewise.
9555 * target-descriptions (maint_print_c_tdesc_cmd): Support ARC features.
9556
9557 2020-03-16 Tom Tromey <tromey@adacore.com>
9558
9559 PR gdb/25663:
9560 * dwarf2/read.c (dwarf2_name): Strip leading namespaces after
9561 putting value into bcache.
9562
9563 2020-03-16 Simon Marchi <simon.marchi@efficios.com>
9564
9565 PR gdb/21500
9566 * amd64-windows-tdep.c (amd64_windows_init_abi): Rename
9567 to...
9568 (amd64_windows_init_abi_common): ... this. Don't set size of
9569 long type.
9570 (amd64_windows_init_abi): New function.
9571 (amd64_cygwin_init_abi): New function.
9572 (_initialize_amd64_windows_tdep): Use amd64_cygwin_init_abi for
9573 the Cygwin OS ABI.
9574 * i386-windows-tdep.c (_initialize_i386_windows_tdep): Clarify
9575 comment.
9576
9577 2020-03-16 Simon Marchi <simon.marchi@efficios.com>
9578
9579 * windows-tdep.h (is_linked_with_cygwin_dll): New declaration.
9580 * windows-tdep.c (CYGWIN_DLL_NAME): New.
9581 (pe_import_directory_entry): New struct type.
9582 (is_linked_with_cygwin_dll): New function.
9583 * amd64-windows-tdep.c (amd64_windows_osabi_sniffer): Select
9584 GDB_OSABI_CYGWIN if the BFD is linked with the Cygwin DLL.
9585 * i386-windows-tdep.c (i386_windows_osabi_sniffer): Likewise.
9586
9587 2020-03-16 Simon Marchi <simon.marchi@efficios.com>
9588
9589 * i386-windows-tdep.c: Mass-rename "cygwin" to "windows", except
9590 i386_cygwin_core_osabi_sniffer.
9591
9592 2020-03-16 Simon Marchi <simon.marchi@efficios.com>
9593
9594 * i386-cygwin-tdep.c: Rename to...
9595 * i386-windows-tdep.c: ... this.
9596 * Makefile.in (ALL_TARGET_OBS): Rename i386-cygwin-tdep.c to
9597 i386-windows-tdep.c.
9598 * configure.tgt: Likewise.
9599
9600 2020-03-16 Simon Marchi <simon.marchi@efficios.com>
9601
9602 * osabi.h (enum gdb_osabi): Add GDB_OSABI_WINDOWS.
9603 * osabi.c (gdb_osabi_names): Add "Windows".
9604 * i386-cygwin-tdep.c (i386_cygwin_osabi_sniffer): Return
9605 GDB_OSABI_WINDOWS when the binary's target is "pei-i386".
9606 (i386_cygwin_core_osabi_sniffer): New function, extracted from
9607 i386_cygwin_osabi_sniffer.
9608 (_initialize_i386_cygwin_tdep): Register OS ABI
9609 GDB_OSABI_WINDOWS for i386.
9610 * amd64-windows-tdep.c (amd64_windows_osabi_sniffer): Return
9611 GDB_OSABI_WINDOWS when the binary's target is "pei-x86-64".
9612 (_initialize_amd64_windows_tdep): Register OS ABI GDB_OSABI_WINDOWS
9613 for x86-64.
9614 * configure.tgt: Use GDB_OSABI_WINDOWS as the default OS ABI
9615 when the target matches '*-*-mingw*'.
9616
9617 2020-03-16 Simon Marchi <simon.marchi@efficios.com>
9618
9619 * defs.h (enum gdb_osabi): Move to...
9620 * osabi.h (enum gdb_osabi): ... here.
9621 * gdbarch.sh: Include osabi.h in gdbarch.h.
9622 * gdbarch.h: Re-generate.
9623
9624 2020-03-16 Simon Marchi <simon.marchi@efficios.com>
9625
9626 * amd64-windows-tdep.c (amd64_windows_osabi_sniffer): New
9627 function.
9628 (_initialize_amd64_windows_tdep): Register osabi sniffer.
9629
9630 2020-03-14 Tom Tromey <tom@tromey.com>
9631
9632 * c-typeprint.c (cp_type_print_method_args): Print "__restrict__"
9633 for C++.
9634 (c_type_print_modifier): Likewise. Add "language" parameter.
9635 (c_type_print_varspec_prefix, c_type_print_base_struct_union)
9636 (c_type_print_base_1): Update.
9637 * type-stack.h (enum type_pieces) <tp_atomic, tp_restrict>: New
9638 constants.
9639 * type-stack.c (type_stack::insert): Handle tp_atomic and
9640 tp_restrict.
9641 (type_stack::follow_type_instance_flags): Likewise.
9642 (type_stack::follow_types): Likewise. Merge type-following code.
9643 * c-exp.y (RESTRICT, ATOMIC): New tokens.
9644 (space_identifier, cv_with_space_id)
9645 (const_or_volatile_or_space_identifier_noopt)
9646 (const_or_volatile_or_space_identifier): Remove.
9647 (single_qualifier, qualifier_seq_noopt, qualifier_seq): New
9648 rules.
9649 (ptr_operator, typebase): Update.
9650 (enum token_flag) <FLAG_C>: New constant.
9651 (ident_tokens): Add "restrict", "__restrict__", "__restrict", and
9652 "_Atomic".
9653 (lex_one_token): Handle FLAG_C.
9654
9655 2020-03-14 Kamil Rytarowski <n54@gmx.com>
9656
9657 * m68k-bsd-nat.c (fetch_registers): New variable lwp and pass
9658 it to the ptrace call.
9659 * m68k-bsd-nat.c (store_registers): Likewise.
9660
9661 2020-03-14 Kamil Rytarowski <n54@gmx.com>
9662
9663 * m68k-bsd-nat.c (m68kbsd_supply_gregset): Change type of regs to
9664 gdb_byte *.
9665 * m68k-bsd-nat.c (m68kbsd_supply_fpregset): Likewise.
9666 * m68k-bsd-nat.c (m68kbsd_collect_gregset): Likewise.
9667 * m68k-bsd-nat.c (m68kbsd_supply_pcb): Cast &tmp to gdb_byte *.
9668
9669 2020-03-14 Kamil Rytarowski <n54@gmx.com>
9670
9671 * m68k-bsd-nat.c (m68k_bsd_nat_target): Inherit from
9672 nbsd_nat_target instead of inf_ptrace_target.
9673 * m68k-bsd-nat.c: Include "nbsd-nat.h", as we are now using
9674 nbsd_nat_target.
9675
9676 2020-03-14 Kamil Rytarowski <n54@gmx.com>
9677
9678 * m68k-bsd-nat.c: Define _KERNTYPES to get the declaration of
9679 register_t.
9680
9681 2020-03-14 Kamil Rytarowski <n54@gmx.com>
9682
9683 * alpha-bsd-nat.c (fetch_registers): New variable lwp and pass
9684 it to the ptrace call.
9685 * alpha-bsd-nat.c (store_registers): Likewise.
9686
9687 2020-03-14 Kamil Rytarowski <n54@gmx.com>
9688
9689 * alpha-bsd-nat.c: Remove <sys/procfs.h> and "gregset.h" from
9690 includes.
9691 * alpha-bsd-nat.c (gregset_t, fpregset_t): Remove.
9692 * alpha-bsd-nat.c (supply_gregset, fill_gregset, supply_fpregset,
9693 fill_fpregset): Likewise.
9694
9695 2020-03-14 Kamil Rytarowski <n54@gmx.com>
9696
9697 * alpha-bsd-nat.c (alpha_netbsd_nat_target): Inherit from
9698 nbsd_nat_target instead of inf_ptrace_target.
9699 * alpha-bsd-nat.c: Include "nbsd-nat.h", as we are now using
9700 nbsd_nat_target.
9701
9702 2020-03-14 Kamil Rytarowski <n54@gmx.com>
9703
9704 * alpha-bsd-nat.c: Define _KERNTYPES to get the declaration of
9705 register_t.
9706
9707 2020-03-14 Kamil Rytarowski <n54@gmx.com>
9708
9709 * arm-nbsd-nat.c (fetch_register): New variable lwp and pass
9710 it to the ptrace call.
9711 * arm-nbsd-nat.c (fetch_fp_register): Likewise.
9712 * arm-nbsd-nat.c (fetch_fp_regs): Likewise.
9713 * arm-nbsd-nat.c (store_register): Likewise.
9714 * arm-nbsd-nat.c (store_regs): Likewise.
9715 * arm-nbsd-nat.c (store_fp_register): Likewise.
9716 * arm-nbsd-nat.c (store_fp_regs): Likewise.
9717
9718 2020-03-14 Kamil Rytarowski <n54@gmx.com>
9719
9720 * arm-nbsd-nat.c (arm_netbsd_nat_target): Inherit from
9721 nbsd_nat_target instead of inf_ptrace_target.
9722 * arm-nbsd-nat.c: Include "nbsd-nat.h", as we are now using
9723 nbsd_nat_target.
9724
9725 2020-03-14 Kamil Rytarowski <n54@gmx.com>
9726
9727 * x86-bsd-nat.c (x86bsd_dr_get): New variable lwp and pass
9728 it to the ptrace call.
9729 * x86-bsd-nat.c (x86bsd_dr_set): Likewise.
9730
9731 2020-03-14 Kamil Rytarowski <n54@gmx.com>
9732
9733 * vax-bsd-nat.c (vaxbsd_supply_gregset): New variable lwp and pass
9734 it to the ptrace call.
9735 * vax-bsd-nat.c (vaxbsd_collect_gregset): Likewise.
9736
9737 2020-03-14 Kamil Rytarowski <n54@gmx.com>
9738
9739 * vax-bsd-nat.c (vaxbsd_supply_gregset): Cast gregs to const
9740 gdb_byte *.
9741 * vax-bsd-nat.c (vaxbsd_collect_gregset): Cast gregs to void *.
9742
9743 2020-03-14 Kamil Rytarowski <n54@gmx.com>
9744
9745 * vax-bsd-nat.c (vax_bsd_nat_target): Inherit from nbsd_nat_target
9746 instead of inf_ptrace_target.
9747 * vax-bsd-nat.c: Include "nbsd-nat.h", as we are now using
9748 nbsd_nat_target.
9749
9750 2020-03-14 Kamil Rytarowski <n54@gmx.com>
9751
9752 * mips-nbsd-nat.c: Define _KERNTYPES to get the declaration of
9753 register_t.
9754
9755 2020-03-14 Kamil Rytarowski <n54@gmx.com>
9756
9757 * ppc-nbsd-nat.c: Define _KERNTYPES to get the declaration of
9758 register_t.
9759
9760 2020-03-14 Kamil Rytarowski <n54@gmx.com>
9761
9762 * vax-bsd-nat.c: Define _KERNTYPES to get the declaration of
9763 register_t.
9764
9765 2020-03-13 Tom Tromey <tom@tromey.com>
9766
9767 * value.h (val_print): Don't declare.
9768 * valprint.h (val_print_array_elements)
9769 (val_print_scalar_formatted, generic_val_print): Don't declare.
9770 * valprint.c (generic_val_print_array): Take a struct value.
9771 (generic_val_print_ptr, generic_val_print_memberptr)
9772 (generic_val_print_bool, generic_val_print_int)
9773 (generic_val_print_char, generic_val_print_complex)
9774 (generic_val_print): Remove.
9775 (generic_value_print): Update.
9776 (do_val_print): Remove unused parameters. Don't call
9777 la_val_print.
9778 (val_print): Remove.
9779 (common_val_print): Update. Don't call value_check_printable.
9780 (val_print_scalar_formatted, val_print_array_elements): Remove.
9781 * rust-lang.c (rust_val_print): Remove.
9782 (rust_language_defn): Update.
9783 * p-valprint.c (pascal_val_print): Remove.
9784 (pascal_value_print_inner): Update.
9785 (pascal_object_print_val_fields, pascal_object_print_val):
9786 Remove.
9787 (pascal_object_print_static_field): Update.
9788 * p-lang.h (pascal_val_print): Don't declare.
9789 * p-lang.c (pascal_language_defn): Update.
9790 * opencl-lang.c (opencl_language_defn): Update.
9791 * objc-lang.c (objc_language_defn): Update.
9792 * m2-valprint.c (m2_print_unbounded_array, m2_val_print): Remove.
9793 * m2-lang.h (m2_val_print): Don't declare.
9794 * m2-lang.c (m2_language_defn): Update.
9795 * language.h (struct language_defn) <la_val_print>: Remove.
9796 * language.c (unk_lang_value_print_inner): Rename. Change
9797 argument types.
9798 (unknown_language_defn, auto_language_defn): Update.
9799 * go-valprint.c (go_val_print): Remove.
9800 * go-lang.h (go_val_print): Don't declare.
9801 * go-lang.c (go_language_defn): Update.
9802 * f-valprint.c (f_val_print): Remove.
9803 * f-lang.h (f_value_print): Don't declare.
9804 * f-lang.c (f_language_defn): Update.
9805 * d-valprint.c (d_val_print): Remove.
9806 * d-lang.h (d_value_print): Don't declare.
9807 * d-lang.c (d_language_defn): Update.
9808 * cp-valprint.c (cp_print_value_fields)
9809 (cp_print_value_fields_rtti, cp_print_value): Remove.
9810 (cp_print_static_field): Update.
9811 * c-valprint.c (c_val_print_array, c_val_print_ptr)
9812 (c_val_print_struct, c_val_print_union, c_val_print_int)
9813 (c_val_print_memberptr, c_val_print): Remove.
9814 * c-lang.h (c_val_print_array, cp_print_value_fields)
9815 (cp_print_value_fields_rtti): Don't declare.
9816 * c-lang.c (c_language_defn, cplus_language_defn)
9817 (asm_language_defn, minimal_language_defn): Update.
9818 * ada-valprint.c (ada_val_print_ptr, ada_val_print_num): Remove.
9819 (ada_val_print_enum): Take a struct value.
9820 (ada_val_print_flt, ada_val_print_array, ada_val_print_1)
9821 (ada_val_print): Remove.
9822 (ada_value_print_1): Update.
9823 (printable_val_type): Remove.
9824 * ada-lang.h (ada_val_print): Don't declare.
9825 * ada-lang.c (ada_language_defn): Update.
9826
9827 2020-03-13 Tom Tromey <tom@tromey.com>
9828
9829 * valprint.c (do_val_print): Update.
9830 * python/python-internal.h (gdbpy_apply_val_pretty_printer): Take
9831 a struct value.
9832 (value_to_value_object_no_release): Declare.
9833 * python/py-value.c (value_to_value_object_no_release): New
9834 function.
9835 * python/py-prettyprint.c (gdbpy_apply_val_pretty_printer): Take a
9836 struct value.
9837 * guile/scm-value.c (vlscm_scm_from_value_no_release): New
9838 function.
9839 * guile/scm-pretty-print.c (gdbscm_apply_val_pretty_printer): Take
9840 a struct value.
9841 * guile/guile-internal.h (vlscm_scm_from_value_no_release):
9842 Declare.
9843 (gdbscm_apply_val_pretty_printer): Take a struct value.
9844 * extension.h (apply_ext_lang_val_pretty_printer): Take a struct
9845 value.
9846 * extension.c (apply_ext_lang_val_pretty_printer): Take a struct
9847 value.
9848 * extension-priv.h (struct extension_language_ops)
9849 <apply_val_pretty_printer>: Take a struct value.
9850 * cp-valprint.c (cp_print_value): Create a struct value.
9851 (cp_print_value): Update.
9852
9853 2020-03-13 Tom Tromey <tom@tromey.com>
9854
9855 * ada-valprint.c (print_field_values): Call common_val_print.
9856
9857 2020-03-13 Tom Tromey <tom@tromey.com>
9858
9859 * ada-valprint.c (val_print_packed_array_elements): Remove
9860 bitoffset and val parameters. Call common_val_print.
9861 (ada_val_print_string): Remove offset, address, and original_value
9862 parameters.
9863 (ada_val_print_array): Update.
9864 (ada_value_print_array): New function.
9865 (ada_value_print_1): Call it.
9866
9867 2020-03-13 Tom Tromey <tom@tromey.com>
9868
9869 * ada-valprint.c (ada_value_print): Use common_val_print.
9870
9871 2020-03-13 Tom Tromey <tom@tromey.com>
9872
9873 * ada-valprint.c (ada_val_print_ref): Use common_val_print.
9874
9875 2020-03-13 Tom Tromey <tom@tromey.com>
9876
9877 * ada-valprint.c (ada_value_print_num): New function.
9878 (ada_value_print_1): Use it.
9879
9880 2020-03-13 Tom Tromey <tom@tromey.com>
9881
9882 * ada-valprint.c (ada_value_print_1) <TYPE_CODE_FLT>: Rewrite.
9883
9884 2020-03-13 Tom Tromey <tom@tromey.com>
9885
9886 * ada-valprint.c (ada_value_print_ptr): New function.
9887 (ada_value_print_1): Use it.
9888
9889 2020-03-13 Tom Tromey <tom@tromey.com>
9890
9891 * ada-valprint.c (ada_val_print_gnat_array): Take a struct value;
9892 call common_val_print.
9893 (ada_val_print_1): Update.
9894 (ada_value_print_1): New function.
9895 (ada_value_print_inner): Rewrite.
9896
9897 2020-03-13 Tom Tromey <tom@tromey.com>
9898
9899 * cp-valprint.c (cp_print_value_fields): Update.
9900 (cp_print_value): New function.
9901
9902 2020-03-13 Tom Tromey <tom@tromey.com>
9903
9904 * m2-valprint.c (m2_value_print_inner): Use
9905 cp_print_value_fields.
9906 * cp-valprint.c (cp_print_value_fields): New function.
9907 * c-valprint.c (c_value_print_struct): New function.
9908 (c_value_print_inner): Use c_value_print_struct.
9909 * c-lang.h (cp_print_value_fields): Declare.
9910
9911 2020-03-13 Tom Tromey <tom@tromey.com>
9912
9913 * c-valprint.c (c_value_print_array): New function.
9914 (c_value_print_inner): Use it.
9915
9916 2020-03-13 Tom Tromey <tom@tromey.com>
9917
9918 * c-valprint.c (c_value_print_memberptr): New function.
9919 (c_value_print_inner): Use it.
9920
9921 2020-03-13 Tom Tromey <tom@tromey.com>
9922
9923 * c-valprint.c (c_value_print_int): New function.
9924 (c_value_print_inner): Use it.
9925
9926 2020-03-13 Tom Tromey <tom@tromey.com>
9927
9928 * c-valprint.c (c_value_print_ptr): New function.
9929 (c_value_print_inner): Use it.
9930
9931 2020-03-13 Tom Tromey <tom@tromey.com>
9932
9933 * c-valprint.c (c_value_print_inner): Rewrite.
9934
9935 2020-03-13 Tom Tromey <tom@tromey.com>
9936
9937 * valprint.c (generic_value_print_complex): New function.
9938 (generic_value_print): Use it.
9939
9940 2020-03-13 Tom Tromey <tom@tromey.com>
9941
9942 * valprint.c (generic_val_print_float): Don't call
9943 val_print_scalar_formatted.
9944 (generic_val_print, generic_value_print): Update.
9945
9946 2020-03-13 Tom Tromey <tom@tromey.com>
9947
9948 * valprint.c (generic_value_print_char): New function
9949 (generic_value_print): Use it.
9950
9951 2020-03-13 Tom Tromey <tom@tromey.com>
9952
9953 * valprint.c (generic_value_print_int): New function.
9954 (generic_value_print): Use it.
9955
9956 2020-03-13 Tom Tromey <tom@tromey.com>
9957
9958 * valprint.c (generic_value_print_bool): New function.
9959 (generic_value_print): Use it.
9960
9961 2020-03-13 Tom Tromey <tom@tromey.com>
9962
9963 * valprint.c (generic_val_print_func): Simplify.
9964 (generic_val_print, generic_value_print): Update.
9965
9966 2020-03-13 Tom Tromey <tom@tromey.com>
9967
9968 * valprint.c (generic_val_print_flags): Remove.
9969 (generic_val_print, generic_value_print): Update.
9970 (val_print_type_code_flags): Add original_value parameter.
9971
9972 2020-03-13 Tom Tromey <tom@tromey.com>
9973
9974 * valprint.c (generic_val_print): Update.
9975 (generic_value_print): Update.
9976 * valprint.c (generic_val_print_enum): Don't call
9977 val_print_scalar_formatted.
9978
9979 2020-03-13 Tom Tromey <tom@tromey.com>
9980
9981 * valprint.c (generic_value_print): Call generic_value_print_ptr.
9982 * valprint.c (generic_value_print_ptr): New function.
9983
9984 2020-03-13 Tom Tromey <tom@tromey.com>
9985
9986 * valprint.c (generic_value_print): Rewrite.
9987
9988 2020-03-13 Tom Tromey <tom@tromey.com>
9989
9990 * p-valprint.c (pascal_object_print_value_fields)
9991 (pascal_object_print_value): New functions.
9992
9993 2020-03-13 Tom Tromey <tom@tromey.com>
9994
9995 * p-valprint.c (pascal_value_print_inner): Rewrite.
9996
9997 2020-03-13 Tom Tromey <tom@tromey.com>
9998
9999 * f-valprint.c (f_value_print_innner): Rewrite.
10000
10001 2020-03-13 Tom Tromey <tom@tromey.com>
10002
10003 * m2-valprint.c (m2_print_unbounded_array): New overload.
10004 (m2_print_unbounded_array): Update.
10005 (m2_print_array_contents): Take a struct value.
10006 (m2_value_print_inner): Rewrite.
10007
10008 2020-03-13 Tom Tromey <tom@tromey.com>
10009
10010 * d-valprint.c (dynamic_array_type): Call d_value_print_inner.
10011 (d_value_print_inner): New function.
10012 * d-lang.h (d_value_print_inner): Declare.
10013 * d-lang.c (d_language_defn): Use d_value_print_inner.
10014
10015 2020-03-13 Tom Tromey <tom@tromey.com>
10016
10017 * go-valprint.c (go_value_print_inner): New function.
10018 * go-lang.h (go_value_print_inner): Declare.
10019 * go-lang.c (go_language_defn): Use go_value_print_inner.
10020
10021 2020-03-13 Tom Tromey <tom@tromey.com>
10022
10023 * rust-lang.c (val_print_struct, rust_print_enum): Use the value
10024 API.
10025 (rust_val_print): Rewrite.
10026 (rust_value_print_inner): New function, from rust_val_print.
10027 (rust_language_defn): Use rust_value_print_inner.
10028
10029 2020-03-13 Tom Tromey <tom@tromey.com>
10030
10031 * ada-valprint.c (ada_value_print_inner): New function.
10032 * ada-lang.h (ada_value_print_inner): Declare.
10033 * ada-lang.c (ada_language_defn): Use ada_value_print_inner.
10034
10035 2020-03-13 Tom Tromey <tom@tromey.com>
10036
10037 * f-valprint.c (f_value_print_innner): New function.
10038 * f-lang.h (f_value_print_innner): Declare.
10039 * f-lang.c (f_language_defn): Use f_value_print_innner.
10040
10041 2020-03-13 Tom Tromey <tom@tromey.com>
10042
10043 * p-valprint.c (pascal_value_print_inner): New function.
10044 * p-lang.h (pascal_value_print_inner): Declare.
10045 * p-lang.c (pascal_language_defn): Use pascal_value_print_inner.
10046
10047 2020-03-13 Tom Tromey <tom@tromey.com>
10048
10049 * m2-valprint.c (m2_value_print_inner): New function.
10050 * m2-lang.h (m2_value_print_inner): Declare.
10051 * m2-lang.c (m2_language_defn): Use m2_value_print_inner.
10052
10053 2020-03-13 Tom Tromey <tom@tromey.com>
10054
10055 * opencl-lang.c (opencl_language_defn): Use c_value_print_inner.
10056 * objc-lang.c (objc_language_defn): Use c_value_print_inner.
10057 * c-valprint.c (c_value_print_inner): New function.
10058 * c-lang.h (c_value_print_inner): Declare.
10059 * c-lang.c (c_language_defn, cplus_language_defn)
10060 (asm_language_defn, minimal_language_defn): Use
10061 c_value_print_inner.
10062
10063 2020-03-13 Tom Tromey <tom@tromey.com>
10064
10065 * p-valprint.c (pascal_object_print_value_fields): Now static.
10066 * p-lang.h (pascal_object_print_value_fields): Don't declare.
10067
10068 2020-03-13 Tom Tromey <tom@tromey.com>
10069
10070 * c-valprint.c (c_val_print_array): Simplify.
10071
10072 2020-03-13 Tom Tromey <tom@tromey.com>
10073
10074 * valprint.c (value_print_array_elements): New function.
10075 * valprint.h (value_print_array_elements): Declare.
10076
10077 2020-03-13 Tom Tromey <tom@tromey.com>
10078
10079 * printcmd.c (print_formatted): Use value_print_scalar_formatted.
10080 * mips-tdep.c (mips_print_register): Use
10081 value_print_scalar_formatted.
10082
10083 2020-03-13 Tom Tromey <tom@tromey.com>
10084
10085 * valprint.h (value_print_scalar_formatted): Declare.
10086 * valprint.c (value_print_scalar_formatted): New function.
10087
10088 2020-03-13 Tom Tromey <tom@tromey.com>
10089
10090 * valprint.h (generic_value_print): Declare.
10091 * valprint.c (generic_value_print): New function.
10092
10093 2020-03-13 Tom Tromey <tom@tromey.com>
10094
10095 * valprint.c (do_val_print): Call la_value_print_inner, if
10096 available.
10097 * rust-lang.c (rust_language_defn): Update.
10098 * p-lang.c (pascal_language_defn): Update.
10099 * opencl-lang.c (opencl_language_defn): Update.
10100 * objc-lang.c (objc_language_defn): Update.
10101 * m2-lang.c (m2_language_defn): Update.
10102 * language.h (struct language_defn) <la_value_print_inner>: New
10103 member.
10104 * language.c (unknown_language_defn, auto_language_defn): Update.
10105 * go-lang.c (go_language_defn): Update.
10106 * f-lang.c (f_language_defn): Update.
10107 * d-lang.c (d_language_defn): Update.
10108 * c-lang.c (c_language_defn, cplus_language_defn)
10109 (asm_language_defn, minimal_language_defn): Update.
10110 * ada-lang.c (ada_language_defn): Update.
10111
10112 2020-03-13 Tom Tromey <tom@tromey.com>
10113
10114 * c-valprint.c (c_value_print): Use common_val_print.
10115
10116 2020-03-13 Tom Tromey <tom@tromey.com>
10117
10118 * cp-valprint.c (cp_print_static_field): Use common_val_print.
10119
10120 2020-03-13 Tom Tromey <tom@tromey.com>
10121
10122 * f-valprint.c (f77_print_array_1, f_val_print): Use
10123 common_val_print.
10124
10125 2020-03-13 Tom Tromey <tom@tromey.com>
10126
10127 * riscv-tdep.c (riscv_print_one_register_info): Use
10128 common_val_print.
10129
10130 2020-03-13 Tom Tromey <tom@tromey.com>
10131
10132 * mi/mi-main.c (output_register): Use common_val_print.
10133
10134 2020-03-13 Tom Tromey <tom@tromey.com>
10135
10136 * infcmd.c (default_print_one_register_info): Use
10137 common_val_print.
10138
10139 2020-03-13 Tom Tromey <tom@tromey.com>
10140
10141 * valprint.h (common_val_print_checked): Declare.
10142 * valprint.c (common_val_print_checked): New function.
10143 * stack.c (print_frame_arg): Use common_val_print_checked.
10144
10145 2020-03-13 Tom Tromey <tom@tromey.com>
10146
10147 * valprint.c (do_val_print): New function, from val_print.
10148 (val_print): Use do_val_print.
10149 (common_val_print): Use do_val_print.
10150
10151 2020-03-13 Tom Tromey <tom@tromey.com>
10152
10153 * valprint.c (value_print): Use scoped_value_mark.
10154
10155 2020-03-13 Tom de Vries <tdevries@suse.de>
10156
10157 PR symtab/25646
10158 * psymtab.c (partial_symtab::partial_symtab): Don't set
10159 globals_offset and statics_offset. Push element onto
10160 current_global_psymbols and current_static_psymbols stacks.
10161 (concat): New function.
10162 (end_psymtab_common): Set globals_offset and statics_offset. Pop
10163 element from current_global_psymbols and current_static_psymbols
10164 stacks. Concat popped elements to global_psymbols and
10165 static_symbols.
10166 (add_psymbol_to_list): Use current_global_psymbols and
10167 current_static_psymbols stacks.
10168 * psymtab.h (class psymtab_storage): Add current_global_psymbols and
10169 current_static_psymbols fields.
10170
10171 2020-03-12 Christian Biesinger <cbiesinger@google.com>
10172
10173 * corelow.c (sniff_core_bfd): Remove.
10174 (class core_target) <m_core_vec>: Remove.
10175 (core_target::core_target): Update.
10176 (core_file_fns): Remove.
10177 (deprecated_add_core_fns): Remove.
10178 (default_core_sniffer): Remove.
10179 (sniff_core_bfd): Remove.
10180 (default_check_format): Remove.
10181 (gdb_check_format): Remove.
10182 (core_target_open): Update.
10183 (core_target::get_core_register_section): Update.
10184 (get_core_registers_cb): Update.
10185 (core_target::fetch_registers): Update.
10186 * gdbcore.h (struct core_fns): Remove.
10187 (deprecated_add_core_fns): Remove.
10188 (default_core_sniffer): Remove.
10189 (default_check_format): Remove.
10190
10191 2020-03-12 Tom Tromey <tom@tromey.com>
10192
10193 * arm-tdep.c (struct arm_mapping_symbol) <value>: Now a
10194 CORE_ADDR.
10195 (struct arm_exidx_entry) <addr>: Now a CORE_ADDR.
10196
10197 2020-03-12 Tom Tromey <tom@tromey.com>
10198
10199 * remote.c (remote_target::download_tracepoint)
10200 (remote_target::enable_tracepoint)
10201 (remote_target::disable_tracepoint): Use phex, not sprintf_vma.
10202 * breakpoint.c (print_recreate_masked_watchpoint): Use phex, not
10203 sprintf_vma.
10204
10205 2020-03-12 Tom Tromey <tom@tromey.com>
10206
10207 * symfile-mem.c: Update CORE_ADDR size assert.
10208
10209 2020-03-12 Simon Marchi <simon.marchi@efficios.com>
10210
10211 * selftest.m4: Move to gdbsupport/.
10212 * acinclude.m4: Update path to selftest.m4.
10213
10214 2020-03-12 Simon Marchi <simon.marchi@efficios.com>
10215
10216 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Rename to...
10217 (SELFTESTS_SRCS): ... this. Add disasm-selftests.c,
10218 gdbarch-selfselftests.c and selftest-arch.c.
10219 (SUBDIR_UNITTESTS_OBS): Rename to...
10220 (SELFTESTS_OBS): ... this.
10221 (COMMON_SFILES): Remove disasm-selftests.c and
10222 gdbarch-selftests.c.
10223 * configure.ac: Don't add selftest-arch.{c,o} to
10224 CONFIG_{SRCS,OBS}.
10225 * disasm-selftests.c, gdbarch-selftests.c: Remove GDB_SELF_TEST
10226 preprocessor conditions.
10227
10228 2020-03-12 Simon Marchi <simon.marchi@efficios.com>
10229
10230 * configure.ac: Don't source bfd/development.sh.
10231 * selftest.m4: Modify comment.
10232 * configure: Re-generate.
10233
10234 2020-03-12 Simon Marchi <simon.marchi@efficios.com>
10235
10236 * selftest.m4 (GDB_AC_SELFTEST): Error out if $development is
10237 not "true" or "false".
10238 * configure: Re-generate.
10239
10240 2020-03-12 Christian Biesinger <cbiesinger@google.com>
10241
10242 * Makefile.in (HFILES_NO_SRCDIR): Add new arm-nbsd-tdep.h file.
10243 * arm-nbsd-nat.c (arm_supply_gregset): Moved to arm-nbsd-tdep and
10244 renamed to arm_nbsd_supply_gregset.
10245 (fetch_register): Update to call arm_nbsd_supply_gregset.
10246 (fetch_regs): Remove in favor of fetch_register with a -1 regno.
10247 (arm_netbsd_nat_target::fetch_registers): Update.
10248 (fetch_elfcore_registers): Removed.
10249 (_initialize_arm_netbsd_nat): Removed call to deprecated_add_core_fns.
10250 * arm-nbsd-tdep.c (struct arm_nbsd_reg): New struct.
10251 (arm_nbsd_supply_gregset): Moved from arm-nbsd-nat.c and updated to
10252 not require NetBSD system headers.
10253 (arm_nbsd_regset): New struct.
10254 (arm_nbsd_iterate_over_regset_sections): New function.
10255 (arm_netbsd_init_abi_common): Updated to call
10256 set_gdbarch_iterate_over_regset_sections.
10257 * arm-nbsd-tdep.h: New file.
10258
10259 2020-03-11 Kevin Buettner <kevinb@redhat.com>
10260
10261 * symtab.c (find_pc_sect_line): Add check which prevents infinite
10262 recursion.
10263
10264 2020-03-11 Simon Marchi <simon.marchi@efficios.com>
10265
10266 * configure: Re-generate.
10267
10268 2020-03-11 Tom Tromey <tromey@adacore.com>
10269
10270 * ada-typeprint.c (print_choices): Fix comment.
10271
10272 2020-03-11 Andrew Burgess <andrew.burgess@embecosm.com>
10273
10274 * buildsyms.c (buildsym_compunit::record_line): Avoid accessing
10275 previous item in the list, when the list has no items.
10276
10277 2020-03-11 Tom de Vries <tdevries@suse.de>
10278
10279 * dwarf2/loc.c (dwarf2_evaluate_property): Handle NULL frame in
10280 PROP_LOCLIST handling code.
10281
10282 2020-03-10 Andrew Burgess <andrew.burgess@embecosm.com>
10283
10284 * buildsym-legacy.c (record_line): Pass extra parameter to
10285 record_line.
10286 * buildsym.c (buildsym_compunit::record_line): Take an extra
10287 parameter, reduce duplication in the line table, and record the
10288 is_stmt flag in the line table.
10289 * buildsym.h (buildsym_compunit::record_line): Add extra
10290 parameter.
10291 * disasm.c (do_mixed_source_and_assembly_deprecated): Ignore
10292 non-statement lines.
10293 * dwarf2/read.c (dwarf_record_line_1): Add extra parameter, pass
10294 this to the symtab builder.
10295 (dwarf_finish_line): Pass extra parameter to dwarf_record_line_1.
10296 (lnp_state_machine::record_line): Pass a suitable is_stmt flag
10297 through to dwarf_record_line_1.
10298 * infrun.c (process_event_stop_test): When stepping, don't stop at
10299 a non-statement instruction, and only refresh the step info when
10300 we land in the middle of a line's range. Also add an extra
10301 comment.
10302 * jit.c (jit_symtab_line_mapping_add_impl): Initialise is_stmt
10303 field.
10304 * record-btrace.c (btrace_find_line_range): Only record lines
10305 marked as is-statement.
10306 * stack.c (frame_show_address): Show the frame address if we are
10307 in a non-statement sal.
10308 * symmisc.c (dump_symtab_1): Print the is_stmt flag.
10309 (maintenance_print_one_line_table): Print a header for the is_stmt
10310 column, and include is_stmt information in the output.
10311 * symtab.c (find_pc_sect_line): Find lines marked as statements in
10312 preference to non-statements.
10313 (find_pcs_for_symtab_line): Prefer is-statement entries.
10314 (find_line_common): Likewise.
10315 * symtab.h (struct linetable_entry): Add is_stmt field.
10316 (struct symtab_and_line): Likewise.
10317 * xcoffread.c (arrange_linetable): Initialise is_stmt field when
10318 arranging the line table.
10319
10320 2020-03-07 Tom de Vries <tdevries@suse.de>
10321
10322 * dwarf2/read.c (read_typedef): Treat anonymous typedef as forwarder
10323 DIE.
10324
10325 2020-03-07 Tom Tromey <tom@tromey.com>
10326
10327 * valops.c (value_literal_complex): Remove obsolete comment.
10328 * gdbtypes.h (enum type_code) <TYPE_CODE_FLT>: Remove obsolete
10329 comment.
10330
10331 2020-03-06 Simon Marchi <simon.marchi@polymtl.ca>
10332
10333 * infrun.h: Forward-declare thread_info.
10334 (set_step_info): Add thread_info parameter, add doc.
10335 * infrun.c (set_step_info): Add thread_info parameter, move doc
10336 to header.
10337 * infrun.c (process_event_stop_test): Pass thread to
10338 set_step_info call.
10339 * infcmd.c (set_step_frame): Add thread_info pointer, pass it to
10340 set_step_info.
10341 (prepare_one_step): Add thread_info parameter, pass it to
10342 set_step_frame and prepare_one_step (recursive) call.
10343 (step_1): Pass thread to prepare_one_step call.
10344 (step_command_fsm::should_stop): Pass thread to
10345 prepare_one_step.
10346 (until_next_fsm): Pass thread to set_step_frame call.
10347 (finish_command): Pass thread to set_step_info call.
10348
10349 2020-03-06 Hannes Domani <ssbssa@yahoo.de>
10350
10351 * windows-tdep.c (windows_solib_create_inferior_hook):
10352 Check if inferior is running.
10353
10354 2020-03-06 Tom de Vries <tdevries@suse.de>
10355
10356 * NEWS: Fix "the the".
10357 * ctfread.c: Same.
10358
10359 2020-03-06 Tom de Vries <tdevries@suse.de>
10360
10361 * psymtab.c (psymtab_to_symtab): Don't print "done.".
10362
10363 2020-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
10364
10365 * .dir-locals.el: Add a comment referencing the other copies of
10366 this file.
10367
10368 2020-03-05 John Baldwin <jhb@FreeBSD.org>
10369
10370 * fbsd-tdep.c (fbsd_make_corefile_notes): Use std::string for
10371 psargs.
10372
10373 2020-03-05 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
10374
10375 * .gitattributes: New file.
10376
10377 2020-03-04 Tom Tromey <tom@tromey.com>
10378
10379 * symmisc.c (print_symbol_bcache_statistics)
10380 (print_objfile_statistics): Update.
10381 * symfile.c (allocate_symtab): Use intern.
10382 * psymtab.c (partial_symtab::partial_symtab): Use intern.
10383 * objfiles.h (struct objfile_per_bfd_storage) <filename_cache,
10384 macro_cache>: Remove.
10385 <string_cache>: New member.
10386 (struct objfile) <intern>: New methods.
10387 * elfread.c (elf_symtab_read): Use intern.
10388 * dwarf2/read.c (fixup_go_packaging): Intern package name.
10389 (dwarf2_compute_name, dwarf2_physname)
10390 (create_dwo_unit_in_dwp_v1, create_dwo_unit_in_dwp_v2): Intern
10391 names.
10392 (guess_partial_die_structure_name): Update.
10393 (partial_die_info::fixup): Intern name.
10394 (dwarf2_canonicalize_name): Change parameter to objfile. Intern
10395 name.
10396 (dwarf2_name): Intern name. Update.
10397 * buildsym.c (buildsym_compunit::get_macro_table): Use
10398 string_cache.
10399
10400 2020-03-04 Tom Tromey <tom@tromey.com>
10401
10402 * jit.c (bfd_open_from_target_memory): Make "target" const.
10403 * corefile.c (gnutarget): Now const.
10404 * gdbcore.h (gnutarget): Now const.
10405
10406 2020-03-04 Hannes Domani <ssbssa@yahoo.de>
10407
10408 * NEWS: Mention support for WOW64 processes.
10409 * amd64-windows-nat.c (amd64_mappings): Rename and remove static.
10410 (amd64_windows_segment_register_p): Remove static.
10411 (_initialize_amd64_windows_nat): Update.
10412 * configure.nat <windows> (NATDEPFILES): Add i386-windows-nat.o.
10413 * i386-windows-nat.c (context_offset): Update.
10414 (i386_mappings): Rename and remove static.
10415 (i386_windows_segment_register_p): Remove static.
10416 (_initialize_i386_windows_nat): Update.
10417 * windows-nat.c (STATUS_WX86_BREAKPOINT): New macro.
10418 (STATUS_WX86_SINGLE_STEP): New macro.
10419 (EnumProcessModulesEx): New macro.
10420 (Wow64SuspendThread): New macro.
10421 (Wow64GetThreadContext): New macro.
10422 (Wow64SetThreadContext): New macro.
10423 (Wow64GetThreadSelectorEntry): New macro.
10424 (windows_set_context_register_offsets): Add static.
10425 (windows_set_segment_register_p): Likewise.
10426 (windows_add_thread): Adapt for WOW64 processes.
10427 (windows_fetch_one_register): Likewise.
10428 (windows_nat_target::fetch_registers): Likewise.
10429 (windows_store_one_register): Likewise.
10430 (display_selector): Likewise.
10431 (display_selectors): Likewise.
10432 (handle_exception): Likewise.
10433 (windows_continue): Likewise.
10434 (windows_nat_target::resume): Likewise.
10435 (windows_add_all_dlls): Likewise.
10436 (do_initial_windows_stuff): Likewise.
10437 (windows_nat_target::attach): Likewise.
10438 (windows_get_exec_module_filename): Likewise.
10439 (windows_nat_target::create_inferior): Likewise.
10440 (windows_xfer_siginfo): Likewise.
10441 (_initialize_loadable): Initialize Wow64SuspendThread,
10442 Wow64GetThreadContext, Wow64SetThreadContext,
10443 Wow64GetThreadSelectorEntry and EnumProcessModulesEx.
10444 * windows-nat.h (windows_set_context_register_offsets):
10445 Remove declaration.
10446 (windows_set_segment_register_p): Likewise.
10447 (i386_windows_segment_register_p): Add declaration.
10448 (amd64_windows_segment_register_p): Likewise.
10449
10450 2020-03-04 Luis Machado <luis.machado@linaro.org>
10451
10452 Revert aa66aac47b4dd38f9524ddb5546c08cc09930d37 due to regressions
10453 in "info registers" for AArch64/ARM.
10454
10455 The change caused "info registers" to not print GPR's.
10456
10457 gdb/ChangeLog:
10458
10459 2020-02-01 Shahab Vahedi <shahab@synopsys.com>
10460
10461 * target-descriptions.c (tdesc_register_in_reggroup_p): Return 0
10462 when reg->group is empty and reggroup is not.
10463
10464 2020-03-03 Tom Tromey <tromey@adacore.com>
10465
10466 * dwarf2/frame.c (struct dwarf2_frame_cache)
10467 <checked_tailcall_bottom, entry_cfa_sp_offset,
10468 entry_cfa_sp_offset_p>: Remove members.
10469 (dwarf2_frame_cache): Call dwarf2_tailcall_sniffer_first.
10470 (dwarf2_frame_prev_register): Don't call
10471 dwarf2_tailcall_sniffer_first.
10472 (dwarf2_append_unwinders): Don't append tailcall unwinder.
10473 * frame-unwind.c (add_unwinder): New fuction.
10474 (frame_unwind_init): Use it. Add tailcall unwinder.
10475
10476 2020-03-03 Andrew Burgess <andrew.burgess@embecosm.com>
10477 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
10478
10479 * f-valprint.c (f_val_print): Handle TYPE_CODE_BOOL, any non-zero
10480 value should be printed as true.
10481
10482 2020-03-03 Hannes Domani <ssbssa@yahoo.de>
10483
10484 * windows-tdep.c (windows_solib_create_inferior_hook): New function.
10485 (windows_init_abi): Set and use windows_so_ops.
10486
10487 2020-03-03 Sergio Durigan Junior <sergiodj@redhat.com>
10488
10489 * printcmd.c (print_c_string): Check also for TYPE_CODE_PTR
10490 when verifying if dealing with a convenience variable.
10491
10492 2020-03-03 Luis Machado <luis.machado@linaro.org>
10493
10494 * auxv.c (default_print_auxv_entry): Add new AUXV entries.
10495
10496 2020-03-02 Simon Marchi <simon.marchi@polymtl.ca>
10497
10498 * infrun.c (gdbarch_supports_displaced_stepping): New.
10499 (use_displaced_stepping): Break up conditions in smaller pieces.
10500 Use gdbarch_supports_displaced_stepping.
10501 (displaced_step_prepare_throw): Use
10502 gdbarch_supports_displaced_stepping.
10503
10504 2020-03-02 Andrew Burgess <andrew.burgess@embecosm.com>
10505
10506 * NEWS: Mention new behaviour of the history filename.
10507 * top.c (write_history_p): Add comment.
10508 (show_write_history_p): Add header comment, give a different
10509 message when history writing is on, but the history filename is
10510 empty.
10511 (history_filename): Add comment.
10512 (history_filename_empty): New function.
10513 (show_history_filename): Add header comment, give a different
10514 message when the filename is empty.
10515 (init_history): Compare history_filename against nullptr, and only
10516 read history if the filename is not empty.
10517 (set_history_filename): Add header comment, and only make
10518 non-empty filenames absolute.
10519 (init_main): Make the filename argument to 'set history filename'
10520 optional.
10521
10522 2020-03-02 Christian Biesinger <cbiesinger@google.com>
10523
10524 * arm-nbsd-nat.c (arm_supply_fparegset): Rename to...
10525 (arm_supply_vfpregset): ...this, and update to use VFP registers.
10526 (fetch_fp_register): Update.
10527 (fetch_fp_regs): Update.
10528 (store_fp_register): Update.
10529 (store_fp_regs): Update.
10530 (arm_netbsd_nat_target::read_description): New function.
10531 (fetch_elfcore_registers): Update.
10532
10533 2020-03-02 Andrew Burgess <andrew.burgess@embecosm.com>
10534
10535 * remote.c (remote_target::remote_parse_stop_reply): Don't use the
10536 general_thread if the stop reply is missing a thread-id.
10537 (remote_target::process_stop_reply): Use the first non-exited
10538 thread if the target didn't pass a thread-id.
10539 * infrun.c (do_target_wait): Move call to
10540 switch_to_inferior_no_thread to ....
10541 (do_target_wait_1): ... here.
10542
10543 2020-02-29 Jon Turney <jon.turney@dronecode.org.uk>
10544
10545 * debuginfod-support.c: Include defs.h first.
10546
10547 2020-02-28 Tom de Vries <tdevries@suse.de>
10548
10549 * symfile.c (set_initial_language): Use default language for lookup.
10550
10551 2020-02-28 Simon Marchi <simon.marchi@efficios.com>
10552
10553 * dwarf2/read.c (cutu_reader::init_tu_and_read_dwo_dies): Remove
10554 reader variable, pass `this` to read_cutu_die_from_dwo.
10555
10556 2020-02-27 Aaron Merey <amerey@redhat.com>
10557
10558 * source.c (open_source_file): Check for nullptr when computing
10559 srcpath.
10560
10561 2020-02-27 Tom Tromey <tromey@adacore.com>
10562
10563 * dwarf2/read.c (struct field_info) <nfields>: Now a method, not a
10564 member.
10565 (dwarf2_add_field): Don't update nfields.
10566 (dwarf2_attach_fields_to_type, process_structure_scope): Update.
10567
10568 2020-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
10569
10570 * gdbtypes.c (create_array_type_with_stride): Use std::abs not
10571 abs.
10572
10573 2020-02-26 Tom Tromey <tom@tromey.com>
10574
10575 * dwarf2/read.c (struct dwarf2_include_psymtab): New.
10576 (dwarf2_create_include_psymtab): Use dwarf2_include_psymtab.
10577 (dwarf2_psymtab::expand_psymtab, dwarf2_psymtab::readin_p)
10578 (dwarf2_psymtab::get_compunit_symtab): Remove null checks for
10579 per_cu_data.
10580
10581 2020-02-26 Tom Tromey <tom@tromey.com>
10582
10583 * dwarf2/index-write.c (psym_index_map): Change type.
10584 (add_address_entry_worker, write_one_signatured_type)
10585 (recursively_count_psymbols, recursively_write_psymbols)
10586 (class debug_names, psyms_seen_size, write_gdbindex)
10587 (write_debug_names): Use partial_symtab, not dwarf2_psymtab.
10588
10589 2020-02-26 Aaron Merey <amerey@redhat.com>
10590
10591 * Makefile.in: Handle optional debuginfod support.
10592 * NEWS: Update.
10593 * README: Add --with-debuginfod summary.
10594 * config.in: Regenerate.
10595 * configure: Regenerate.
10596 * configure.ac: Handle optional debuginfod support.
10597 * debuginfod-support.c: debuginfod helper functions.
10598 * debuginfod-support.h: Ditto.
10599 * doc/gdb.texinfo: Add --with-debuginfod to configure options
10600 summary.
10601 * dwarf2/read.c (dwarf2_get_dwz_file): Query debuginfod servers
10602 when a dwz file cannot be found.
10603 * elfread.c (elf_symfile_read): Query debuginfod servers when a
10604 debuginfo file cannot be found.
10605 * source.c (open_source_file): Query debuginfod servers when a
10606 source file cannot be found.
10607 * top.c (print_gdb_configuration): Include
10608 --{with,without}-debuginfod in the output.
10609
10610 2020-02-26 Jérémie Galarneau <jeremie.galarneau@efficios.com>
10611
10612 * thread.c (thr_try_catch_cmd): Print thread name.
10613
10614 2020-02-26 Simon Marchi <simon.marchi@efficios.com>
10615
10616 * dwarf2/loc.h (dwarf2_fetch_die_loc_sect_off,
10617 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
10618 dwarf2_fetch_die_type_sect_off): Move to...
10619 * dwarf2/read.h (dwarf2_fetch_die_loc_sect_off,
10620 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
10621 dwarf2_fetch_die_type_sect_off): ... here.
10622 * dwarf2/read.c (dwarf2_fetch_die_loc_sect_off,
10623 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
10624 dwarf2_fetch_die_type_sect_off): Move doc to header file.
10625
10626 2020-02-26 Tom de Vries <tdevries@suse.de>
10627
10628 PR gdb/25603
10629 * symfile.c (set_initial_language): Exit-early if
10630 language_mode == language_mode_manual.
10631
10632 2020-02-25 Simon Marchi <simon.marchi@polymtl.ca>
10633
10634 * dwarf2/loc.h (dwarf2_read_addr_index): Move...
10635 * dwarf2/read.h (dwarf2_read_addr_index): ... here.
10636 * dwarf2/read.c (dwarf2_read_addr_index): Move doc to header.
10637
10638 2020-02-25 Andrew Burgess <andrew.burgess@embecosm.com>
10639
10640 * gdbtypes.c (create_array_type_with_stride): Handle negative
10641 array strides.
10642 * valarith.c (value_subscripted_rvalue): Likewise.
10643
10644 2020-02-25 Luis Machado <luis.machado@linaro.org>
10645
10646 * aarch64-tdep.c (aarch64_vnv_type): Fix comment typo.
10647
10648 2020-02-25 Simon Marchi <simon.marchi@polymtl.ca>
10649
10650 * loc.h (dwarf2_get_die_type): Move to...
10651 * read.h (dwarf2_get_die_type): ... here.
10652 * read.c (dwarf2_get_die_type): Move doc to header.
10653
10654 2020-02-25 Joel Brobecker <brobecker@adacore.com>
10655
10656 * copypright.py (EXCLUDE_LIST): Add 'gnulib/config.in' and
10657 'gnulib/Makefile.in' to the list.
10658
10659 2020-02-24 Tom Tromey <tom@tromey.com>
10660
10661 * dwarf2/read.h (struct type_unit_unshareable) <num_symtabs>:
10662 Remove.
10663 * dwarf2/read.c (dwarf2_cu::setup_type_unit_groups): Use
10664 XOBNEWVEC.
10665
10666 2020-02-24 Tom Tromey <tom@tromey.com>
10667
10668 * dwarf2/read.h (struct dwarf2_per_cu_data) <type_unit_group_p>:
10669 New method.
10670 * dwarf2/read.c (IS_TYPE_UNIT_GROUP): Remove.
10671 (dw2_do_instantiate_symtab, dw2_get_file_names)
10672 (build_type_psymtab_dependencies, load_full_type_unit): Update.
10673
10674 2020-02-24 Tom Tromey <tom@tromey.com>
10675
10676 * dwarf2read.c (dwarf2_build_psymtabs_hard): Use
10677 make_scoped_restore.
10678 (dwarf2_psymtab::read_symtab): Don't clear
10679 reading_partial_symbols.
10680
10681 2020-02-24 Tom de Vries <tdevries@suse.de>
10682
10683 PR gdb/25592
10684 * stack.c (iterate_over_block_locals): Handle LOC_CONST.
10685
10686 2020-02-24 Tom de Vries <tdevries@suse.de>
10687
10688 * tui/tui-layout.c (_initialize_tui_layout): Fix help messages for
10689 commands layout next/prev/regs.
10690
10691 2020-02-22 Tom Tromey <tom@tromey.com>
10692
10693 * dwarf2/loc.h (dwarf2_compile_expr_to_ax): Don't declare.
10694 * dwarf2/loc.c (dwarf2_compile_expr_to_ax): Now static.
10695
10696 2020-02-22 Tom Tromey <tom@tromey.com>
10697
10698 * tui/tui-data.h (TUI_DISASM_WIN): Cast to tui_disasm_window.
10699
10700 2020-02-22 Tom Tromey <tom@tromey.com>
10701
10702 * tui/tui-win.c (_initialize_tui_win): Add usage text.
10703 * tui/tui-stack.c (_initialize_tui_stack): Add usage text.
10704 * tui/tui-regs.c (_initialize_tui_regs): Add usage text.
10705 * tui/tui.c (_initialize_tui): Add usage text.
10706
10707 2020-02-22 Tom Tromey <tom@tromey.com>
10708
10709 * tui/tui-win.c (tui_set_focus_command)
10710 (tui_set_win_height_command): Use error_no_arg.
10711 (_initialize_tui_win): Update help text.
10712 (FOCUS_USAGE, WIN_HEIGHT_USAGE): Don't define.
10713
10714 2020-02-22 Tom Tromey <tom@tromey.com>
10715
10716 * tui/tui-layout.c (extract_display_start_addr): Rewrite.
10717 * tui/tui-disasm.h (struct tui_disasm_window)
10718 <display_start_addr>: Declare.
10719 * tui/tui-source.h (struct tui_source_window)
10720 <display_start_addr>: Declare.
10721 * tui/tui-winsource.h (struct tui_source_window_base)
10722 <show_source_line, display_start_addr>: New methods.
10723 <m_horizontal_offset, m_start_line_or_addr, m_gdbarch, m_content>:
10724 Rename and move to protected section.
10725 * tui/tui-winsource.c (tui_source_window_base::update_source_window)
10726 (tui_source_window_base::do_erase_source_content): Update.
10727 (tui_source_window_base::show_source_line): Now a method.
10728 (tui_source_window_base::show_source_content)
10729 (tui_source_window_base::tui_source_window_base)
10730 (tui_source_window_base::rerender)
10731 (tui_source_window_base::refill)
10732 (tui_source_window_base::do_scroll_horizontal)
10733 (tui_source_window_base::set_is_exec_point_at)
10734 (tui_source_window_base::update_breakpoint_info)
10735 (tui_source_window_base::update_exec_info): Update.
10736 * tui/tui-source.c (tui_source_window::set_contents)
10737 (tui_source_window::showing_source_p)
10738 (tui_source_window::do_scroll_vertical)
10739 (tui_source_window::location_matches_p)
10740 (tui_source_window::line_is_displayed): Update.
10741 (tui_source_window::display_start_addr): New method.
10742 * tui/tui-disasm.c (tui_disasm_window::set_contents)
10743 (tui_disasm_window::do_scroll_vertical)
10744 (tui_disasm_window::location_matches_p): Update.
10745 (tui_disasm_window::display_start_addr): New method.
10746
10747 2020-02-22 Tom Tromey <tom@tromey.com>
10748
10749 * NEWS: Add entry for gdb.register_window_type.
10750 * tui/tui-layout.h (window_factory): New typedef.
10751 (tui_register_window): Declare.
10752 * tui/tui-layout.c (saved_tui_windows): New global.
10753 (tui_apply_current_layout): Use it.
10754 (tui_register_window): New function.
10755 * python/python.c (do_start_initialization): Call
10756 gdbpy_initialize_tui.
10757 (python_GdbMethods): Add "register_window_type" function.
10758 * python/python-internal.h (gdbpy_register_tui_window)
10759 (gdbpy_initialize_tui): Declare.
10760 * python/py-tui.c: New file.
10761 * Makefile.in (SUBDIR_PYTHON_SRCS): Add py-tui.c.
10762
10763 2020-02-22 Tom Tromey <tom@tromey.com>
10764
10765 * tui/tui-io.c (do_tui_putc): Don't omit annotations.
10766
10767 2020-02-22 Tom Tromey <tom@tromey.com>
10768
10769 * tui/tui-win.c (tui_set_win_focus_to): Move to tui-data.c.
10770 * tui/tui-data.h (tui_set_win_with_focus): Don't declare.
10771 * tui/tui-data.c (tui_set_win_with_focus): Remove.
10772 (tui_set_win_focus_to): Move from tui-win.c.
10773
10774 2020-02-22 Tom Tromey <tom@tromey.com>
10775
10776 * tui/tui-layout.c (make_standard_window, get_locator_window): New
10777 functions.
10778 (known_window_types): New global.
10779 (tui_get_window_by_name): Reimplement.
10780 (initialize_known_windows): New function.
10781 (validate_window_name): Rewrite.
10782 (_initialize_tui_layout): Call initialize_known_windows.
10783
10784 2020-02-22 Tom Tromey <tom@tromey.com>
10785
10786 * tui/tui.h (enum tui_win_type) <LOCATOR_WIN, DATA_ITEM_WIN>:
10787 Remove constants.
10788 * tui/tui-winsource.h (struct tui_source_window_base)
10789 <tui_source_window_base>: Remove parameter.
10790 * tui/tui-winsource.c
10791 (tui_source_window_base::tui_source_window_base): Remove
10792 parameter.
10793 (tui_source_window_base::refill): Update.
10794 * tui/tui-stack.h (struct tui_locator_window)
10795 <tui_locator_window>: Update.
10796 * tui/tui-source.h (struct tui_source_window) <tui_source_window>:
10797 Default the constructor.
10798 * tui/tui-regs.h (struct tui_data_item_window)
10799 <tui_data_item_window>: Default the constructor.
10800 (struct tui_data_window) <tui_data_window>: Likewise.
10801 * tui/tui-disasm.h (struct tui_disasm_window) <tui_disasm_window>:
10802 Default the constructor.
10803 * tui/tui-data.h (struct tui_gen_win_info) <tui_gen_win_info>:
10804 Default the constructor.
10805 <type>: Remove.
10806 (struct tui_win_info) <tui_win_info>: Default the constructor.
10807 * tui/tui-data.c (tui_win_info::tui_win_info): Remove.
10808 * tui/tui-command.h (struct tui_cmd_window) <tui_cmd_window>:
10809 Default the constructor.
10810
10811 2020-02-22 Tom Tromey <tom@tromey.com>
10812
10813 * tui/tui-wingeneral.h (tui_make_all_invisible): Don't declare.
10814 * tui/tui-wingeneral.c (tui_make_all_invisible): Remove.
10815 * tui/tui-win.c (tui_resize_all): Don't call
10816 tui_delete_invisible_windows.
10817 * tui/tui-layout.c (tui_apply_current_layout): Delete windows when
10818 done.
10819 (tui_set_layout): Update.
10820 (tui_add_win_to_layout): Don't call tui_delete_invisible_windows.
10821 * tui/tui-data.h (tui_delete_invisible_windows): Don't declare.
10822 * tui/tui-data.c (tui_delete_invisible_windows): Remove.
10823
10824 2020-02-22 Tom Tromey <tom@tromey.com>
10825
10826 * tui/tui-win.c (tui_partial_win_by_name): Handle ambiguity
10827 correctly.
10828
10829 2020-02-22 Tom Tromey <tom@tromey.com>
10830
10831 * tui/tui-data.c (tui_next_win, tui_prev_win): Reimplement.
10832
10833 2020-02-22 Tom Tromey <tom@tromey.com>
10834
10835 * tui/tui-winsource.h (struct tui_source_window_iterator)
10836 <inner_iterator>: New etytypedef.
10837 <tui_source_window_iterator>: Take "end" parameter.
10838 <tui_source_window_iterator>: Take iterator.
10839 <operator*, advance>: Update.
10840 <m_iter>: Change type.
10841 <m_end>: New field.
10842 (struct tui_source_windows) <begin, end>: Update.
10843 * tui/tui-layout.c (tui_windows): New global.
10844 (tui_apply_current_layout): Clear tui_windows.
10845 (tui_layout_window::apply): Update tui_windows.
10846 * tui/tui-data.h (tui_windows): Declare.
10847 (all_tui_windows): Now inline function.
10848 (class tui_window_iterator, struct all_tui_windows): Remove.
10849
10850 2020-02-22 Tom Tromey <tom@tromey.com>
10851
10852 PR tui/17850:
10853 * tui/tui-win.c (tui_gen_win_info::max_width): New method.
10854 * tui/tui-layout.h (class tui_layout_base) <get_sizes>: Add
10855 "height" argument.
10856 (class tui_layout_window) <get_sizes>: Likewise.
10857 (class tui_layout_split) <tui_layout_split>: Add "vertical"
10858 argument.
10859 <get_sizes>: Add "height" argument.
10860 <m_vertical>: New field.
10861 * tui/tui-layout.c (tui_layout_split::clone): Update.
10862 (tui_layout_split::get_sizes): Add "height" argument.
10863 (tui_layout_split::adjust_size, tui_layout_split::apply): Update.
10864 (tui_new_layout_command): Parse "-horizontal".
10865 (_initialize_tui_layout): Update help string.
10866 (tui_layout_split::specification): Add "-horizontal" when needed.
10867 * tui/tui-layout.c (tui_layout_window::get_sizes): Add "height"
10868 argument.
10869 * tui/tui-data.h (struct tui_gen_win_info) <max_width, min_width>:
10870 New methods.
10871
10872 2020-02-22 Tom Tromey <tom@tromey.com>
10873
10874 * tui/tui-layout.h (enum tui_adjust_result): New.
10875 (class tui_layout_base) <adjust_size>: Return tui_adjust_result.
10876 (class tui_layout_window) <adjust_size>: Return
10877 tui_adjust_result. Rewrite.
10878 (class tui_layout_split) <adjust_size>: Return tui_adjust_result.
10879 * tui/tui-layout.c (tui_layout_split::adjust_size): Update.
10880
10881 2020-02-22 Tom Tromey <tom@tromey.com>
10882
10883 * tui/tui-layout.h (class tui_layout_split) <add_split>: Change
10884 parameter and return types.
10885 (class tui_layout_base) <specification>: Add "depth".
10886 (class tui_layout_window) <specification>: Add "depth".
10887 (class tui_layout_split) <specification>: Add "depth".
10888 * tui/tui-layout.c (tui_layout_split::add_split): Change parameter
10889 and return types.
10890 (tui_new_layout_command): Parse sub-layouts.
10891 (_initialize_tui_layout): Update help string.
10892 (tui_layout_window::specification): Add "depth".
10893 (add_layout_command): Update.
10894
10895 2020-02-22 Tom Tromey <tom@tromey.com>
10896
10897 * NEWS: Add "tui new-layout" item.
10898 * tui/tui-layout.c (add_layout_command): Return cmd_list_element.
10899 Add new-layout command to help text.
10900 (validate_window_name): New function.
10901 (tui_new_layout_command): New function.
10902 (_initialize_tui_layout): Register "new-layout".
10903 (tui_layout_window::specification): New method.
10904 (tui_layout_window::specification): New method.
10905 * tui/tui-layout.h (class tui_layout_base) <specification>: New
10906 method.
10907 (class tui_layout_window) <specification>: New method.
10908 (class tui_layout_split) <specification>: New method.
10909
10910 2020-02-22 Tom Tromey <tom@tromey.com>
10911
10912 * tui/tui.c (tui_enable): Call tui_set_initial_layout.
10913 * tui/tui-win.c (window_name_completer): Update comment.
10914 * tui/tui-layout.h (class tui_layout_base) <replace_window>:
10915 Declare method.
10916 (class tui_layout_window) <replace_window>: Likewise.
10917 (class tui_layout_split) <replace_window>: Likewise.
10918 (tui_set_layout): Don't declare.
10919 (tui_set_initial_layout): Declare function.
10920 * tui/tui-layout.c (layouts, applied_skeleton, src_regs_layout)
10921 (asm_regs_layout): New globals.
10922 (tui_current_layout, show_layout): Remove.
10923 (tui_set_layout, tui_add_win_to_layout): Rewrite.
10924 (find_layout, tui_apply_layout): New function.
10925 (layout_completer): Remove.
10926 (tui_next_layout): Reimplement.
10927 (tui_next_layout_command): New function.
10928 (tui_set_initial_layout, tui_prev_layout_command): New functions.
10929 (tui_regs_layout): Reimplement.
10930 (tui_regs_layout_command): New function.
10931 (extract_display_start_addr): Rewrite.
10932 (next_layout, prev_layout): Remove.
10933 (tui_layout_window::replace_window): New method.
10934 (tui_layout_split::replace_window): New method.
10935 (destroy_layout): New function.
10936 (layout_list): New global.
10937 (add_layout_command): New function.
10938 (initialize_layouts): Update.
10939 (tui_layout_command): New function.
10940 (_initialize_tui_layout): Install "layout" commands.
10941 * tui/tui-data.h (enum tui_layout_type): Remove.
10942 (tui_current_layout): Don't declare.
10943
10944 2020-02-22 Tom Tromey <tom@tromey.com>
10945
10946 * tui/tui-regs.c (tui_reg_layout): Remove.
10947 (tui_reg_command): Use tui_regs_layout.
10948 * tui/tui-layout.h (tui_reg_command): Declare.
10949 * tui/tui-layout.c (tui_reg_command): New function.
10950
10951 2020-02-22 Tom Tromey <tom@tromey.com>
10952
10953 * tui/tui.c (tui_rl_delete_other_windows): Call
10954 tui_remove_some_windows.
10955 * tui/tui-layout.h (class tui_layout_base) <remove_windows>:
10956 Declare method.
10957 (class tui_layout_window) <remove_windows>: New method.
10958 (class tui_layout_split) <remove_windows>: Declare.
10959 (tui_remove_some_windows): Declare.
10960 * tui/tui-layout.c (tui_remove_some_windows): New function.
10961 (tui_layout_split::remove_windows): New method.
10962
10963 2020-02-22 Tom Tromey <tom@tromey.com>
10964
10965 * tui/tui.c (tui_rl_change_windows): Call tui_next_layout.
10966 * tui/tui-layout.h (tui_next_layout): Declare.
10967 * tui/tui-layout.c (tui_next_layout): New function.
10968
10969 2020-02-22 Tom Tromey <tom@tromey.com>
10970
10971 * tui/tui-regs.c (tui_data_window::display_registers_from): Use
10972 correct coordinates.
10973
10974 2020-02-22 Tom Tromey <tom@tromey.com>
10975
10976 * tui/tui-layout.h (tui_add_win_to_layout): Add comment.
10977 * tui/tui-layout.c (tui_add_win_to_layout): Add assert. Remove
10978 DATA_WIN case.
10979
10980 2020-02-22 Tom Tromey <tom@tromey.com>
10981
10982 * tui/tui-disasm.c (tui_get_low_disassembly_address): Use
10983 TUI_DISASM_WIN, not tui_win_list.
10984
10985 2020-02-22 Tom Tromey <tom@tromey.com>
10986
10987 * valprint.c (generic_val_print_enum_1)
10988 (val_print_type_code_flags): Style member names.
10989 * rust-lang.c (val_print_struct, rust_print_enum)
10990 (rust_print_struct_def, rust_internal_print_type): Style member
10991 names.
10992 * p-valprint.c (pascal_object_print_value_fields): Style member
10993 names. Only call fprintf_symbol_filtered for static members.
10994 * m2-typeprint.c (m2_record_fields, m2_enum): Style member names.
10995 * f-valprint.c (f_val_print): Style member names.
10996 * f-typeprint.c (f_type_print_base): Style member names.
10997 * cp-valprint.c (cp_print_value_fields): Style member names. Only
10998 call fprintf_symbol_filtered for static members.
10999 (cp_print_class_member): Style member names.
11000 * c-typeprint.c (c_print_type_1, c_type_print_base_1): Style
11001 member names.
11002 * ada-valprint.c (ada_print_scalar): Style enum names.
11003 (ada_val_print_enum): Likewise.
11004 * ada-typeprint.c (print_enum_type): Style enum names.
11005
11006 2020-02-21 Tom Tromey <tom@tromey.com>
11007
11008 * psympriv.h (struct partial_symtab): Update comment.
11009
11010 2020-02-21 Tom Tromey <tromey@adacore.com>
11011
11012 * mips-tdep.h (mips_pc_is_mips16, mips_pc_is_micromips): Parameter
11013 type is CORE_ADDR.
11014
11015 2020-02-21 Tom de Vries <tdevries@suse.de>
11016
11017 PR gdb/25534
11018 * psymtab.c (partial_symtab::read_dependencies): Don't read dependency
11019 if dependencies[i]->user != NULL.
11020
11021 2020-02-21 Ali Tamur <tamur@google.com>
11022
11023 * dwarf2/read.c (dwarf2_name): Add null check.
11024
11025 2020-02-20 Tom Tromey <tom@tromey.com>
11026
11027 * dwarf2/read.c (dwarf2_find_containing_comp_unit): Use ">", not
11028 ">=", in binary search.
11029 (dwarf2_find_containing_comp_unit): New overload.
11030 (run_test): New self-test.
11031 (_initialize_dwarf2_read): Register new test.
11032
11033 2020-02-20 Nelson Chu <nelson.chu@sifive.com>
11034
11035 * riscv-tdep.c: Updated since the DECLARE_CSR is changed.
11036 * riscv-tdep.h: Likewise.
11037 * features/riscv/rebuild-csr-xml.sh: Generate the 64bit-csr.xml without
11038 rv32-only CSR.
11039 * features/riscv/64bit-csr.xml: Regenerated.
11040
11041 2020-02-20 Sergio Durigan Junior <sergiodj@redhat.com>
11042 Tom Tromey <tom@tromey.com>
11043
11044 * utils.c (fputs_maybe_filtered): Call 'stream->puts' instead
11045 of 'fputc_unfiltered'.
11046 (putchar_unfiltered): Call 'fputc_unfiltered'.
11047 (fputc_unfiltered): Call 'fputs_unfiltered'.
11048
11049 2020-02-20 Andrew Burgess <andrew.burgess@embecosm.com>
11050
11051 * config.in: Regenerate.
11052 * configure: Regenerate.
11053 * configure.ac: Add --with-python-libdir option.
11054 * main.c: Use WITH_PYTHON_LIBDIR.
11055
11056 2020-02-19 Tom Tromey <tom@tromey.com>
11057
11058 * symtab.c (general_symbol_info::compute_and_set_names): Use
11059 obstack_strndup. Simplify call to symbol_set_demangled_name.
11060
11061 2020-02-19 Simon Marchi <simon.marchi@efficios.com>
11062
11063 * dwarf2/read.c (allocate_signatured_type_table,
11064 allocate_dwo_unit_table, allocate_type_unit_groups_table,
11065 allocate_dwo_file_hash_table, allocate_dwp_loaded_cutus_table):
11066 Remove objfile parameter, update all callers.
11067
11068 2020-02-19 Doug Evans <dje@google.com>
11069
11070 PR rust/25535
11071 * rust-lang.c (rust_print_enum): Apply embedded_offset to
11072 rust_enum_variant calculation.
11073
11074 2020-02-19 Tom Tromey <tromey@adacore.com>
11075
11076 * mips-tdep.h (mips_pc_is_mips): Parameter type is CORE_ADDR.
11077
11078 2020-02-19 Tom Tromey <tromey@adacore.com>
11079
11080 * ada-lang.c (cache_symbol): Use obstack_strdup.
11081
11082 2020-02-19 Andrew Burgess <andrew.burgess@embecosm.com>
11083
11084 * configure: Regenerate.
11085
11086 2020-02-19 Tom Tromey <tromey@adacore.com>
11087
11088 * python/python.c (do_start_initialization): Use XNEWVEC. Remove
11089 NULL check.
11090
11091 2020-02-19 Maciej W. Rozycki <macro@wdc.com>
11092
11093 * NEWS: Mention RISC-V GNU/Linux GDBserver support.
11094
11095 2020-02-19 Andrew Burgess <andrew.burgess@embecosm.com>
11096
11097 * arch/riscv.c (struct riscv_gdbarch_features_hasher): Only define
11098 if GDBSERVER is not defined.
11099 (riscv_tdesc_cache): Likewise, also store const target_desc.
11100 (STATIC_IN_GDB): Define.
11101 (riscv_create_target_description): Update declaration with
11102 STATIC_IN_GDB.
11103 (riscv_lookup_target_description): New function, only define if
11104 GDBSERVER is not defined.
11105 * arch/riscv.h (riscv_create_target_description): Declare only
11106 when GDBSERVER is defined.
11107 (riscv_lookup_target_description): New declaration when GDBSERVER
11108 is not defined.
11109 * nat/riscv-linux-tdesc.c (riscv_linux_read_description): Rename to...
11110 (riscv_linux_read_features): ...this, and return
11111 riscv_gdbarch_features instead of target_desc.
11112 * nat/riscv-linux-tdesc.h: Include 'arch/riscv.h'.
11113 (riscv_linux_read_description): Rename to...
11114 (riscv_linux_read_features): ...this.
11115 * riscv-linux-nat.c (riscv_linux_nat_target::read_description):
11116 Update to use riscv_gdbarch_features and
11117 riscv_lookup_target_description.
11118 * riscv-tdep.c (riscv_find_default_target_description): Use
11119 riscv_lookup_target_description instead of
11120 riscv_create_target_description.
11121
11122 2020-02-18 Simon Marchi <simon.marchi@efficios.com>
11123
11124 * valprint.c (generic_val_print_enum_1): When printing a flag
11125 enum with value 0 and there is no enumerator with value 0, print
11126 just "0" instead of "(unknown: 0x0)".
11127
11128 2020-02-18 Simon Marchi <simon.marchi@efficios.com>
11129
11130 * valprint.c (generic_val_print_enum_1): Print unknown part of
11131 flag enum in hex.
11132
11133 2020-02-18 Simon Marchi <simon.marchi@efficios.com>
11134
11135 * dwarf2/read.c (update_enumeration_type_from_children): Allow
11136 flag enums to contain duplicate enumerators.
11137 * valprint.c (generic_val_print_enum_1): Update comment.
11138
11139 2020-02-18 Simon Marchi <simon.marchi@efficios.com>
11140
11141 * dwarf2/read.c: Include "count-one-bits.h".
11142 (update_enumeration_type_from_children): If an enumerator has
11143 multiple bits set, don't treat the enumeration as a "flag enum".
11144 * valprint.c (generic_val_print_enum_1): Assert that enumerators
11145 of flag enums have 0 or 1 bit set.
11146
11147 2020-02-18 Bernd Edlinger <bernd.edlinger@hotmail.de>
11148
11149 * aarch64-tdep.c (aarch64_displaced_step_copy_insn): Use an explicit
11150 conversion.
11151 * amd64-tdep.c (amd64_displaced_step_copy_insn): Likewise.
11152 * arm-linux-tdep.c (arm_linux_displaced_step_copy_insn): Likewise.
11153 * i386-tdep.c (i386_displaced_step_copy_insn): Likewise.
11154 * rs6000-tdep.c (ppc_displaced_step_copy_insn): Likewise.
11155 * s390-tdep.c (s390_displaced_step_copy_insn): Likewise.
11156
11157 2020-02-18 Simon Marchi <simon.marchi@efficios.com>
11158
11159 * MAINTAINERS: Change palmer@sifive.com to palmer@dabbelt.com.
11160
11161 2020-02-14 Simon Marchi <simon.marchi@efficios.com>
11162
11163 * aarch64-tdep.c (aarch64_displaced_step_copy_insn): Use
11164 displaced_step_closure_up.
11165 * aarch64-tdep.h (aarch64_displaced_step_copy_insn): Likewise.
11166 (struct displaced_step_closure_up):
11167 * amd64-tdep.c (amd64_displaced_step_copy_insn): Likewise.
11168 * amd64-tdep.h (amd64_displaced_step_copy_insn): Likewise.
11169 * arm-linux-tdep.c (arm_linux_displaced_step_copy_insn):
11170 Likewise.
11171 * gdbarch.sh (displaced_step_copy_insn): Likewise.
11172 * gdbarch.c, gdbarch.h: Re-generate.
11173 * i386-linux-tdep.c (i386_linux_displaced_step_copy_insn): Use
11174 displaced_step_closure_up.
11175 * i386-tdep.c (i386_displaced_step_copy_insn): Likewise.
11176 * i386-tdep.h (i386_displaced_step_copy_insn): Likewise.
11177 * infrun.h (displaced_step_closure_up): New type alias.
11178 (struct displaced_step_inferior_state) <step_closure>: Change
11179 type to displaced_step_closure_up.
11180 * rs6000-tdep.c (ppc_displaced_step_copy_insn): Use
11181 displaced_step_closure_up.
11182 * s390-tdep.c (s390_displaced_step_copy_insn): Likewise.
11183
11184 2020-02-14 Tom Tromey <tom@tromey.com>
11185
11186 * minidebug.c (gnu_debug_key): New global.
11187 (find_separate_debug_file_in_section): Use it.
11188
11189 2020-02-14 Simon Marchi <simon.marchi@efficios.com>
11190
11191 * gdbarch.sh (displaced_step_copy_insn): Change return type to an
11192 std::unique_ptr.
11193 * gdbarch.c: Re-generate.
11194 * gdbarch.h: Re-generate.
11195 * infrun.c (displaced_step_prepare_throw): Adjust to std::unique_ptr
11196 change.
11197 * aarch64-tdep.c (aarch64_displaced_step_copy_insn): Change return
11198 type to std::unique_ptr.
11199 * aarch64-tdep.h (aarch64_displaced_step_copy_insn): Likewise.
11200 * amd64-tdep.c (amd64_displaced_step_copy_insn): Likewise.
11201 * amd64-tdep.h (amd64_displaced_step_copy_insn): Likewise.
11202 * arm-linux-tdep.c (arm_linux_displaced_step_copy_insn): Likewise.
11203 * i386-linux-tdep.c (i386_linux_displaced_step_copy_insn): Likewise.
11204 * i386-tdep.c (i386_displaced_step_copy_insn): Likewise.
11205 * i386-tdep.h (i386_displaced_step_copy_insn): Likewise.
11206 * rs6000-tdep.c (ppc_displaced_step_copy_insn): Likewise.
11207 * s390-tdep.c (s390_displaced_step_copy_insn): Likewise.
11208
11209 2020-02-14 Simon Marchi <simon.marchi@efficios.com>
11210
11211 * infrun.c (get_displaced_step_closure_by_addr): Adjust to
11212 std::unique_ptr.
11213 (displaced_step_clear): Rename to...
11214 (displaced_step_reset): ... this. Just call displaced->reset ().
11215 (displaced_step_clear_cleanup): Rename to...
11216 (displaced_step_reset_cleanup): ... this.
11217 (displaced_step_prepare_throw): Adjust to std::unique_ptr.
11218 (displaced_step_fixup): Likewise.
11219 (resume_1): Likewise.
11220 (handle_inferior_event): Restore child's memory before calling
11221 displaced_step_fixup on the parent.
11222 * infrun.h (displaced_step_inferior_state) <reset>: Adjust
11223 to std::unique_ptr.
11224 <step_closure>: Change type to std::unique_ptr.
11225
11226 2020-02-14 Simon Marchi <simon.marchi@efficios.com>
11227
11228 * arm-tdep.c: Include count-one-bits.h.
11229 (cleanup_block_store_pc): Use count_one_bits.
11230 (cleanup_block_load_pc): Use count_one_bits.
11231 (arm_copy_block_xfer): Use count_one_bits.
11232 (thumb2_copy_block_xfer): Use count_one_bits.
11233 (thumb_copy_pop_pc_16bit): Use count_one_bits.
11234 * arch/arm-get-next-pcs.c: Include count-one-bits.h.
11235 (thumb_get_next_pcs_raw): Use count_one_bits.
11236 (arm_get_next_pcs_raw): Use count_one_bits_l.
11237 * arch/arm.c (bitcount): Remove.
11238 * arch/arm.h (bitcount): Remove.
11239
11240 2020-02-14 Tom Tromey <tromey@adacore.com>
11241
11242 * dwarf2/frame-tailcall.c (dwarf2_tailcall_sniffer_first):
11243 Update.
11244 * dwarf2/loc.h (call_site_find_chain): Return unique_xmalloc_ptr.
11245 * dwarf2/loc.c (call_site_find_chain_1): Return
11246 unique_xmalloc_ptr.
11247 (call_site_find_chain): Likewise.
11248
11249 2020-02-14 Richard Biener <rguenther@suse.de>
11250
11251 * dwarf2/read.c (lnp_state_machine::handle_special_opcode): Apply CSE
11252 on expression with division operators.
11253
11254 2020-02-13 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
11255
11256 * MAINTAINERS (Write After Approval): Adding myself.
11257
11258 2020-02-12 Tom Tromey <tom@tromey.com>
11259
11260 * event-loop.c (event_data, gdb_event, event_handler_func):
11261 Remove.
11262
11263 2020-02-12 Tom Tromey <tom@tromey.com>
11264
11265 * dwarf2/frame.c (dwarf2_frame_bfd_data): New global.
11266 (dwarf2_frame_objfile_data): Add comment.
11267 (find_comp_unit, set_comp_unit): New functions.
11268 (dwarf2_frame_find_fde): Use find_comp_unit.
11269 (dwarf2_build_frame_info): Use set_comp_unit.
11270
11271 2020-02-12 Tom Tromey <tom@tromey.com>
11272
11273 * dwarf2/frame.c (struct comp_unit) <objfile>: Remove.
11274 (comp_unit): Don't initialize objfile.
11275 (execute_cfa_program): Add text_offset parameter.
11276 (execute_cfa_program_test, dwarf2_fetch_cfa_info)
11277 (dwarf2_frame_cache): Update.
11278 (dwarf2_build_frame_info): Don't set "objfile" member.
11279
11280 2020-02-12 Tom Tromey <tom@tromey.com>
11281
11282 * dwarf2/frame.c (decode_frame_entry_1): Add gdbarch parameter.
11283 (decode_frame_entry): Likewise.
11284 (dwarf2_build_frame_info): Update.
11285
11286 2020-02-12 Tom Tromey <tom@tromey.com>
11287
11288 * dwarf2/frame.c (struct comp_unit) <obstack>: New member.
11289 (decode_frame_entry_1): Use the comp_unit obstack.
11290
11291 2020-02-12 Tom Tromey <tom@tromey.com>
11292
11293 * dwarf2/frame.c (struct comp_unit): Add initializers and
11294 constructor.
11295 (dwarf2_frame_objfile_data): Store a comp_unit.
11296 (dwarf2_frame_find_fde): Update.
11297 (dwarf2_build_frame_info): Use "new".
11298
11299 2020-02-12 Tom Tromey <tom@tromey.com>
11300
11301 * dwarf2/frame.c (struct dwarf2_fde_table): Remove.
11302 (dwarf2_fde_table): Typedef for std::vector.
11303 (dwarf2_frame_objfile_data): Remove the deleter. Now static.
11304 (dwarf2_frame_find_fde, add_fde, decode_frame_entry_1)
11305 (decode_frame_entry): Update.
11306 (dwarf2_build_frame_info): Use "new".
11307
11308 2020-02-12 Christian Biesinger <cbiesinger@google.com>
11309
11310 * arm-tdep.c (arm_gdbarch_init): Update.
11311 * arm-tdep.h (struct gdbarch_tdep) <have_fpa_registers,
11312 have_wmmx_registers, have_vfp_pseudos, have_neon_pseudos,
11313 have_neon, is_m>: Change to bool.
11314
11315 2020-02-12 Christian Biesinger <cbiesinger@google.com>
11316
11317 * arm-tdep.c (arm_dump_tdep): Print more fields of tdep.
11318
11319 2020-02-12 Tom Tromey <tom@tromey.com>
11320
11321 * dwarf2/loc.c (struct dwarf_expr_baton): Remove.
11322
11323 2020-02-12 Hannes Domani <ssbssa@yahoo.de>
11324
11325 * windows-tdep.c (struct windows_gdbarch_data): Add tib_ptr_type.
11326 (windows_get_tlb_type): Use windows_gdbarch_data->tib_ptr_type.
11327
11328 2020-02-11 Tom Tromey <tom@tromey.com>
11329
11330 * psymtab.h: Update comment.
11331
11332 2020-02-11 Tom Tromey <tom@tromey.com>
11333
11334 * gdb_obstack.h (struct auto_obstack): Use
11335 DISABLE_COPY_AND_ASSIGN.
11336
11337 2020-02-11 Tom Tromey <tom@tromey.com>
11338
11339 * dwarf2/frame.h (struct objfile): Don't forward declare.
11340
11341 2020-02-11 Christian Biesinger <cbiesinger@google.com>
11342
11343 * cris-tdep.c (cris_supply_gregset): Change signature to match
11344 what struct regset expects.
11345 (cris_regset): New struct.
11346 (fetch_core_registers): Remove.
11347 (cris_iterate_over_regset_sections): New function.
11348 (_initialize_cris_tdep): Don't call deprecated_add_core_fns.
11349 (cris_gdbarch_init): Call set_gdbarch_iterate_over_regset_sections.
11350
11351 2020-02-11 Christian Biesinger <cbiesinger@google.com>
11352
11353 * arch/arm.h (enum gdb_regnum): Add comment for the FP0..7
11354 registers.
11355
11356 2020-02-11 Christian Biesinger <cbiesinger@google.com>
11357
11358 * arm-tdep.c (arm_dump_tdep): Add \n in fprintf.
11359
11360 2020-02-11 Simon Marchi <simon.marchi@efficios.com>
11361
11362 * configure: Re-generate.
11363
11364 2020-02-11 Simon Marchi <simon.marchi@efficios.com>
11365
11366 * configure: Re-generate.
11367
11368 2020-02-11 Simon Marchi <simon.marchi@efficios.com>
11369
11370 * acinclude: Update warning.m4 path.
11371 * warning.m4: Move to gdbsupport.
11372
11373 2020-02-11 Tom Tromey <tromey@adacore.com>
11374
11375 * remote.c (remote_console_output): Update.
11376 * printcmd.c (printf_command): Update.
11377 * event-loop.c (gdb_wait_for_event): Update.
11378 * linux-nat.c (sigchld_handler): Update.
11379 * remote-sim.c (gdb_os_write_stdout): Update.
11380 (gdb_os_flush_stdout): Update.
11381 (gdb_os_flush_stderr): Update.
11382 (gdb_os_write_stderr): Update.
11383 * exceptions.c (print_exception): Update.
11384 * remote-fileio.c (remote_fileio_func_read): Update.
11385 (remote_fileio_func_write): Update.
11386 * tui/tui.c (tui_enable): Update.
11387 * tui/tui-interp.c (tui_interp::init): Update.
11388 * utils.c (init_page_info): Update.
11389 (putchar_unfiltered, fputc_unfiltered): Update.
11390 (gdb_flush): Update.
11391 (emit_style_escape): Update.
11392 (flush_wrap_buffer, fputs_maybe_filtered): Update.
11393 * ui-file.c (ui_file_isatty, ui_file_read, ui_file_write)
11394 (ui_file_write_async_safe, ui_file_flush, ui_file_puts): Remove.
11395 (stderr_file::write): Update.
11396 (stderr_file::puts): Update.
11397 * ui-file.h (ui_file_isatty, ui_file_write)
11398 (ui_file_write_async_safe, ui_file_read, ui_file_flush)
11399 (ui_file_puts): Don't declare.
11400
11401 2020-02-10 Tom de Vries <tdevries@suse.de>
11402
11403 * dwarf2/read.c (process_psymtab_comp_unit_reader): Cast concat NULL
11404 sentinel to char *.
11405
11406 2020-02-09 Tom de Vries <tdevries@suse.de>
11407
11408 * dwarf2read.c (process_psymtab_comp_unit_reader): Append CU offset to
11409 filename if it matches "<artificial>".
11410
11411 2020-02-09 Hannes Domani <ssbssa@yahoo.de>
11412
11413 * windows-tdep.c (struct enum_value_name): New struct.
11414 (create_enum): New function.
11415 (windows_get_siginfo_type): Create and use enum types.
11416
11417 2020-02-09 Hannes Domani <ssbssa@yahoo.de>
11418
11419 * NEWS: Mention $_siginfo support for Windows.
11420 * windows-nat.c (handle_exception): Set siginfo_er.
11421 (windows_nat_target::mourn_inferior): Reset siginfo_er.
11422 (windows_xfer_siginfo): New function.
11423 (windows_nat_target::xfer_partial): Call windows_xfer_siginfo.
11424 * windows-tdep.c (struct windows_gdbarch_data): New struct.
11425 (init_windows_gdbarch_data): New function.
11426 (get_windows_gdbarch_data): New function.
11427 (windows_get_siginfo_type): New function.
11428 (windows_init_abi): Register windows_get_siginfo_type.
11429 (_initialize_windows_tdep): Register init_windows_gdbarch_data.
11430
11431 2020-02-08 Tom Tromey <tom@tromey.com>
11432
11433 * dwarf2/read.c (class cutu_reader) <cutu_reader,
11434 init_tu_and_read_dwo_dies>: Remove "keep" parameter.
11435 <keep>: Declare method.
11436 <m_keep>: Remove member.
11437 <~cutu_reader>: Remove.
11438 (cutu_reader::init_tu_and_read_dwo_dies): Update.
11439 (cutu_reader::cutu_reader): Update.
11440 (cutu_reader::keep): Rename from ~cutu_reader.
11441 (process_psymtab_comp_unit, build_type_psymtabs_1)
11442 (process_skeletonless_type_unit, load_partial_comp_unit)
11443 (load_full_comp_unit, dwarf2_read_addr_index)
11444 (read_signatured_type): Update.
11445
11446 2020-02-08 Tom Tromey <tom@tromey.com>
11447
11448 * dwarf2/read.c (process_psymtab_comp_unit_reader): Remove
11449 "want_partial_unit" parameter.
11450 (process_psymtab_comp_unit): Change want_partial_unit to bool.
11451 Inline check for DW_TAG_partial_unit.
11452 (dwarf2_build_psymtabs_hard, scan_partial_symbols): Update.
11453
11454 2020-02-08 Tom Tromey <tom@tromey.com>
11455
11456 * dwarf2/read.c (read_n_bytes, read_direct_string): Move to
11457 read.c.
11458 * dwarf2/leb.h (read_n_bytes, read_direct_string): Move from
11459 read.c.
11460
11461 2020-02-08 Tom Tromey <tom@tromey.com>
11462
11463 * dwarf2/read.c (read_address): Move to comp-unit.c.
11464 (dwarf2_rnglists_process, dwarf2_ranges_process)
11465 (read_attribute_value, dwarf_decode_lines_1)
11466 (var_decode_location, decode_locdesc): Update.
11467 * dwarf2/comp-unit.c (comp_unit_head::read_address): Move from
11468 read.c. Remove "cu" parameter.
11469 * dwarf2/comp-unit.h (struct comp_unit_head) <read_address>: New
11470 method.
11471
11472 2020-02-08 Tom Tromey <tom@tromey.com>
11473
11474 * dwarf2/read.c (read_attribute_value, read_indirect_string)
11475 (read_indirect_line_string): Update.
11476 * dwarf2/comp-unit.c (read_offset): Remove.
11477 (read_comp_unit_head): Update.
11478 * dwarf2/comp-unit.h (struct comp_unit_head) <read_offset>: New
11479 method.
11480 (read_offset): Don't declare.
11481
11482 2020-02-08 Tom Tromey <tom@tromey.com>
11483
11484 * Makefile.in (COMMON_SFILES): Add dwarf2/comp-unit.c.
11485 * dwarf2/read.c (struct comp_unit_head): Move to
11486 dwarf2/comp-unit.h.
11487 (enum class rcuh_kind): Move to comp-unit.h.
11488 (get_cu_length, offset_in_cu_p): Now methods on comp_unit_head.
11489 (read_comp_unit_head, error_check_comp_unit_head)
11490 (read_and_check_comp_unit_head): Move to comp-unit.c.
11491 (read_offset, dwarf_unit_type_name): Likewise.
11492 (create_debug_type_hash_table, read_cutu_die_from_dwo)
11493 (cutu_reader::cutu_reader, read_call_site_scope)
11494 (find_partial_die, follow_die_offset): Update.
11495 * dwarf2/comp-unit.h: New file, from dwarf2read.c.
11496
11497 2020-02-08 Tom Tromey <tom@tromey.com>
11498
11499 * dwarf2/read.c (read_offset_1): Move to leb.c.
11500 (read_abbrev_offset, read_offset, dwarf_decode_line_header)
11501 (dwarf_decode_macro_bytes): Update.
11502 * dwarf2/leb.c (read_offset): Rename; move from read.c.
11503 * dwarf2/leb.h (read_offset): Declare.
11504
11505 2020-02-08 Tom Tromey <tom@tromey.com>
11506
11507 * dwarf2/read.c (dwarf2_section_size): Remove.
11508 (error_check_comp_unit_head, dwarf2_symbol_mark_computed):
11509 Update.
11510 * dwarf2/section.h (struct dwarf2_section_info) <get_size>: New method.
11511
11512 2020-02-08 Tom Tromey <tom@tromey.com>
11513
11514 * dwarf2/read.c (read_initial_length): Move to leb.c.
11515 * dwarf2/leb.h (read_initial_length): Declare.
11516 * dwarf2/leb.c (read_initial_length): Move from read.c. Add
11517 handle_nonstd parameter.
11518 * dwarf2/frame.c (read_initial_length): Remove.
11519 (decode_frame_entry_1): Update.
11520
11521 2020-02-08 Tom Tromey <tom@tromey.com>
11522
11523 * dwarf2/loc.c (dwarf2_find_location_expression)
11524 (dwarf_evaluate_loc_desc::get_tls_address)
11525 (dwarf_evaluate_loc_desc::push_dwarf_reg_entry_value)
11526 (rw_pieced_value, dwarf2_evaluate_loc_desc_full)
11527 (dwarf2_locexpr_baton_eval, dwarf2_evaluate_property)
11528 (dwarf2_compile_property_to_c)
11529 (dwarf2_loc_desc_get_symbol_read_needs)
11530 (dwarf2_compile_expr_to_ax, locexpr_describe_location)
11531 (locexpr_tracepoint_var_ref, locexpr_generate_c_location)
11532 (loclist_describe_location, loclist_tracepoint_var_ref)
11533 (loclist_generate_c_location): Update.
11534 * compile/compile-loc2c.c (do_compile_dwarf_expr_to_c): Update.
11535 * dwarf2/loc.h (dwarf2_per_cu_objfile, dwarf2_per_cu_addr_size)
11536 (dwarf2_per_cu_ref_addr_size, dwarf2_per_cu_offset_size)
11537 (dwarf2_per_cu_text_offset, dwarf2_version): Don't declare.
11538 * dwarf2/read.c (dwarf2_per_cu_data::objfile)
11539 (dwarf2_per_cu_data::addr_size)
11540 (dwarf2_per_cu_data::ref_addr_size)
11541 (dwarf2_per_cu_data::text_offset)
11542 (dwarf2_per_cu_data::addr_type): Now methods.
11543 (per_cu_header_read_in): Make per_cu "const".
11544 (dwarf2_version): Remove.
11545 (dwarf2_per_cu_data::int_type): Now a method.
11546 (dwarf2_per_cu_data::_addr_sized_int_type): Likewise.
11547 (set_die_type, read_array_type, read_subrange_index_type)
11548 (read_tag_string_type, read_subrange_type): Update.
11549 * dwarf2/read.h (struct dwarf2_per_cu_data) <addr_size,
11550 offset_size, ref_addr_size, text_offset, addr_type, version,
11551 objfile, int_type, addr_sized_int_type>: Declare methods.
11552
11553 2020-02-08 Tom Tromey <tom@tromey.com>
11554
11555 * dwarf2/read.h (struct dwarf2_per_cu_data) <imported_symtabs>:
11556 Move earlier.
11557
11558 2020-02-08 Tom Tromey <tom@tromey.com>
11559
11560 * dwarf2/read.h (dwarf_line_debug): Declare.
11561 * Makefile.in (COMMON_SFILES): Add dwarf2/line-header.c.
11562 * dwarf2/read.c: Move line_header code to new files.
11563 (dwarf_line_debug): No longer static.
11564 * dwarf2/line-header.c: New file.
11565 * dwarf2/line-header.h: New file.
11566
11567 2020-02-08 Tom Tromey <tom@tromey.com>
11568
11569 * dwarf2/read.c (struct line_header) <file_full_name,
11570 file_file_name>: Return unique_xmalloc_ptr.
11571 (line_header::file_file_name): Update.
11572 (line_header::file_full_name): Update.
11573 (dw2_get_file_names_reader): Update.
11574 (macro_start_file): Update.
11575
11576 2020-02-08 Tom Tromey <tom@tromey.com>
11577
11578 * dwarf2/read.c (struct line_header) <file_full_name,
11579 file_file_name>: Declare methods.
11580 (dw2_get_file_names_reader): Update.
11581 (file_file_name): Now a method.
11582 (file_full_name): Likewise.
11583 (macro_start_file): Update.
11584
11585 2020-02-08 Tom Tromey <tom@tromey.com>
11586
11587 * dwarf2/read.c (dwarf_always_disassemble)
11588 (show_dwarf_always_disassemble): Move to loc.c.
11589 (_initialize_dwarf2_read): Move "always-disassemble" registration
11590 to loc.c.
11591 * dwarf2/read.h (dwarf_always_disassemble): Don't declare.
11592 * dwarf2/loc.c (dwarf_always_disassemble): Move from read.c. Now
11593 static.
11594 (show_dwarf_always_disassemble): Move from read.c.
11595 (_initialize_dwarf2loc): Move always-disassemble from read.c.
11596
11597 2020-02-08 Tom Tromey <tom@tromey.com>
11598
11599 * dwarf2/read.c (~dwarf2_per_objfile): Update.
11600 (create_quick_file_names_table): Return htab_up.
11601 (dw2_get_file_names_reader, dw2_forget_cached_source_info):
11602 Update.
11603 * dwarf2/read.h (struct dwarf2_per_objfile)
11604 <quick_file_names_table>: Now htab_up.
11605
11606 2020-02-08 Tom Tromey <tom@tromey.com>
11607
11608 * dwarf2/abbrev.c (abbrev_table::read): Simplify.
11609
11610 2020-02-08 Tom Tromey <tom@tromey.com>
11611
11612 * dwarf2/abbrev.c (abbrev_table): Move constructor from header.
11613 Rewrite.
11614 (abbrev_table::add_abbrev, abbrev_table::lookup_abbrev): Rewrite.
11615 * dwarf2/abbrev.h (struct abbrev_info) <next>: Remove.
11616 (abbrev_table::abbrev_table): No longer inline.
11617 (ABBREV_HASH_SIZE): Remove.
11618 (abbrev_table::m_abbrevs): Now an htab_up.
11619
11620 2020-02-08 Tom Tromey <tom@tromey.com>
11621
11622 * dwarf2/read.c (read_cutu_die_from_dwo): Update.
11623 (cutu_reader): Update.
11624 (build_type_psymtabs_1): Update.
11625 * dwarf2/abbrev.c (abbrev_table::read): Rename.
11626 (abbrev_table::alloc_abbrev): Update.
11627 * dwarf2/abbrev.h (abbrev_table_up): Move earlier.
11628 (abbrev_table::read): New static method, renamed from
11629 abbrev_table_read_table.
11630 (abbrev_table::alloc_abbrev)
11631 (abbrev_table::add_abbrev): Now private.
11632 (abbrev_table::abbrev_table): Now private.
11633 (abbrev_table::m_abbrev_obstack): Now private. Rename.
11634
11635 2020-02-08 Tom Tromey <tom@tromey.com>
11636
11637 * dwarf2/read.c (set_die_type, get_die_type_at_offset): Update.
11638 * dwarf2/read.h (struct dwarf2_per_objfile) <die_type_hash>: Now
11639 htab_up.
11640
11641 2020-02-08 Tom Tromey <tom@tromey.com>
11642
11643 * dwarf2/read.c (struct dwp_file) <loaded_cus, loaded_tus>: Now
11644 htab_up.
11645 (lookup_dwo_unit_in_dwp): Update.
11646 (allocate_dwp_loaded_cutus_table): Return htab_up. Don't allocate
11647 on obstack.
11648
11649 2020-02-08 Tom Tromey <tom@tromey.com>
11650
11651 * dwarf2/read.c (allocate_dwo_file_hash_table): Don't allocate on
11652 obstack.
11653
11654 2020-02-08 Tom Tromey <tom@tromey.com>
11655
11656 * dwarf2/read.c (~dwarf2_per_objfile): Don't delete
11657 line_header_hash.
11658 (handle_DW_AT_stmt_list): Update. Don't allocate on obstack.
11659 * dwarf2/read.h (struct dwarf2_per_objfile) <line_header_hash>:
11660 Change type to htab_up.
11661
11662 2020-02-08 Tom Tromey <tom@tromey.com>
11663
11664 * dwarf2/read.c (allocate_type_unit_groups_table): Return
11665 htab_up. Don't allocate on obstack.
11666 (get_type_unit_group, dwarf2_build_psymtabs_hard): Update.
11667 * dwarf2/read.h (struct dwarf2_per_objfile) <type_unit_groups>:
11668 Change type to htab_up.
11669
11670 2020-02-08 Tom Tromey <tom@tromey.com>
11671
11672 * dwarf2/read.h (struct dwarf2_per_objfile) <signatured_types>:
11673 Change type to htab_up.
11674 * dwarf2/read.c (create_signatured_type_table_from_index)
11675 (create_signatured_type_table_from_debug_names)
11676 (create_all_type_units, add_type_unit)
11677 (lookup_dwo_signatured_type, lookup_signatured_type)
11678 (process_skeletonless_type_unit): Update.
11679 (create_debug_type_hash_table, create_debug_types_hash_table):
11680 Change type of types_htab.
11681 (allocate_signatured_type_table, allocate_dwo_unit_table): Return
11682 htab_up. Don't allocate on obstack.
11683 (create_cus_hash_table): Change type of cus_htab parameter.
11684 (struct dwo_file) <cus, tus>: Now htab_up.
11685 (lookup_dwo_signatured_type, lookup_dwo_cutu)
11686 (process_dwo_file_for_skeletonless_type_units, lookup_dwo_cutu)
11687 (queue_and_load_all_dwo_tus): Update.
11688 * dwarf2/index-write.c (write_gdbindex): Update.
11689 (write_debug_names): Update.
11690
11691 2020-02-08 Tom Tromey <tom@tromey.com>
11692
11693 * dwarf2/read.h (struct dwarf2_queue_item): Move from
11694 dwarf2/read.c. Remove "next" member. Add constructor ntad
11695 destructor.
11696 (struct dwarf2_per_objfile) <queue>: New member.
11697 * dwarf2/read.c (struct dwarf2_queue_item): Move to
11698 dwarf2/read.h.
11699 (dwarf2_queue, dwarf2_queue_tail): Remove.
11700 (class dwarf2_queue_guard): Add parameter to constructor. Use
11701 DISABLE_COPY_AND_ASSIGN.
11702 <m_per_objfile>: New member.
11703 <~dwarf2_queue_guard>: Rewrite.
11704 (dw2_do_instantiate_symtab, queue_comp_unit, process_queue):
11705 Update.
11706 (~dwarf2_queue_item): New.
11707
11708 2020-02-08 Tom Tromey <tom@tromey.com>
11709
11710 * dwarf2/read.c (struct die_info) <has_children>: New member.
11711 (dw2_get_file_names_reader): Remove has_children.
11712 (dw2_get_file_names): Update.
11713 (read_cutu_die_from_dwo): Remove has_children.
11714 (cutu_reader::init_tu_and_read_dwo_dies)
11715 (cutu_reader::cutu_reader): Update.
11716 (process_psymtab_comp_unit_reader, build_type_psymtabs_reader):
11717 Remove has_children.
11718 (build_type_psymtabs_1, process_skeletonless_type_unit)
11719 (load_partial_comp_unit, load_full_comp_unit): Update.
11720 (create_dwo_cu_reader): Remove has_children.
11721 (create_cus_hash_table, read_die_and_children): Update.
11722 (read_full_die_1,read_full_die): Remove has_children.
11723 (read_signatured_type): Update.
11724 (class cutu_reader) <has_children>: Remove.
11725
11726 2020-02-08 Tom Tromey <tom@tromey.com>
11727
11728 * dwarf2/expr.c: Rename from dwarf2expr.c.
11729 * dwarf2/expr.h: Rename from dwarf2expr.h.
11730 * dwarf2/frame-tailcall.c: Rename from dwarf2-frame-tailcall.c.
11731 * dwarf2/frame-tailcall.h: Rename from dwarf2-frame-tailcall.h.
11732 * dwarf2/frame.c: Rename from dwarf2-frame.c.
11733 * dwarf2/frame.h: Rename from dwarf2-frame.h.
11734 * dwarf2/index-cache.c: Rename from dwarf-index-cache.c.
11735 * dwarf2/index-cache.h: Rename from dwarf-index-cache.h.
11736 * dwarf2/index-common.c: Rename from dwarf-index-common.c.
11737 * dwarf2/index-common.h: Rename from dwarf-index-common.h.
11738 * dwarf2/index-write.c: Rename from dwarf-index-write.c.
11739 * dwarf2/index-write.h: Rename from dwarf-index-write.h.
11740 * dwarf2/loc.c: Rename from dwarf2loc.c.
11741 * dwarf2/loc.h: Rename from dwarf2loc.h.
11742 * dwarf2/read.c: Rename from dwarf2read.c.
11743 * dwarf2/read.h: Rename from dwarf2read.h.
11744 * dwarf2/abbrev.c, aarch64-tdep.c, alpha-tdep.c,
11745 amd64-darwin-tdep.c, arc-tdep.c, arm-tdep.c, bfin-tdep.c,
11746 compile/compile-c-symbols.c, compile/compile-cplus-symbols.c,
11747 compile/compile-loc2c.c, cris-tdep.c, csky-tdep.c, findvar.c,
11748 gdbtypes.c, guile/scm-type.c, h8300-tdep.c, hppa-bsd-tdep.c,
11749 hppa-linux-tdep.c, i386-darwin-tdep.c, i386-linux-tdep.c,
11750 i386-tdep.c, iq2000-tdep.c, m32c-tdep.c, m68hc11-tdep.c,
11751 m68k-tdep.c, microblaze-tdep.c, mips-tdep.c, mn10300-tdep.c,
11752 msp430-tdep.c, nds32-tdep.c, nios2-tdep.c, or1k-tdep.c,
11753 riscv-tdep.c, rl78-tdep.c, rs6000-tdep.c, rx-tdep.c, s12z-tdep.c,
11754 s390-tdep.c, score-tdep.c, sh-tdep.c, sparc-linux-tdep.c,
11755 sparc-tdep.c, sparc64-linux-tdep.c, sparc64-tdep.c, tic6x-tdep.c,
11756 tilegx-tdep.c, v850-tdep.c, xstormy16-tdep.c, xtensa-tdep.c:
11757 Update.
11758 * Makefile.in (COMMON_SFILES): Update.
11759 (HFILES_NO_SRCDIR): Update.
11760
11761 2020-02-08 Tom Tromey <tom@tromey.com>
11762
11763 * dwarf2read.c (struct die_reader_specs) <comp_dir>: Remove.
11764 (init_cu_die_reader, read_cutu_die_from_dwo): Update.
11765
11766 2020-02-08 Tom Tromey <tom@tromey.com>
11767
11768 * dwarf2read.h (struct die_info): Don't declare.
11769
11770 2020-02-08 Tom Tromey <tom@tromey.com>
11771
11772 * dwarf2read.h (die_info_ptr): Remove typedef.
11773
11774 2020-02-08 Tom Tromey <tom@tromey.com>
11775
11776 * dwarf2read.c (read_call_site_scope)
11777 (handle_data_member_location, dwarf2_add_member_fn)
11778 (mark_common_block_symbol_computed, read_common_block)
11779 (attr_to_dynamic_prop, partial_die_info::read)
11780 (var_decode_location, dwarf2_fetch_die_loc_sect_off)
11781 (dwarf2_symbol_mark_computed, set_die_type): Update.
11782 * dwarf2/attribute.h (struct attribute) <form_is_block>: Declare
11783 method.
11784 (attr_form_is_block): Don't declare.
11785 * dwarf2/attribute.c (attribute::form_is_block): Now a method.
11786
11787 2020-02-08 Tom Tromey <tom@tromey.com>
11788
11789 * dwarf2read.c (dwarf2_find_base_address, )
11790 (read_call_site_scope, rust_containing_type)
11791 (dwarf2_get_pc_bounds, dwarf2_record_block_ranges)
11792 (handle_data_member_location, dwarf2_add_member_fn)
11793 (get_alignment, read_structure_type, process_structure_scope)
11794 (mark_common_block_symbol_computed, read_common_block)
11795 (read_tag_string_type, attr_to_dynamic_prop, read_subrange_type)
11796 (partial_die_info::read, read_attribute_value, new_symbol)
11797 (lookup_die_type, dwarf2_get_ref_die_offset)
11798 (dwarf2_get_attr_constant_value, follow_die_ref_or_sig)
11799 (dwarf2_fetch_die_loc_sect_off, get_DW_AT_signature_type)
11800 (dwarf2_symbol_mark_computed): Update.
11801 * dwarf2/attribute.h (struct attribute) <value_as_address,
11802 form_is_section_offset, form_is_constant, form_is_ref>: Declare
11803 methods.
11804 (value_as_address, attr_form_is_section_offset)
11805 (attr_form_is_constant, attr_form_is_ref): Don't declare.
11806 * dwarf2/attribute.c (attribute::value_as_address)
11807 (attribute::form_is_section_offset, attribute::form_is_constant)
11808 (attribute::form_is_ref): Now methods.
11809
11810 2020-02-08 Tom Tromey <tom@tromey.com>
11811
11812 * dwarf2read.c (struct attribute, DW_STRING)
11813 (DW_STRING_IS_CANONICAL, DW_UNSND, DW_BLOCK, DW_SND, DW_ADDR)
11814 (DW_SIGNATURE, struct dwarf_block, attr_value_as_address)
11815 (attr_form_is_block, attr_form_is_section_offset)
11816 (attr_form_is_constant, attr_form_is_ref): Move.
11817 * dwarf2/attribute.h: New file.
11818 * dwarf2/attribute.c: New file, from dwarf2read.c.
11819 * Makefile.in (COMMON_SFILES): Add dwarf2/attribute.c.
11820
11821 2020-02-08 Tom Tromey <tom@tromey.com>
11822
11823 * dwarf2read.c (abbrev_table_up, struct abbrev_info)
11824 (struct attr_abbrev, ABBREV_HASH_SIZE, struct abbrev_table):
11825 Move.
11826 (read_cutu_die_from_dwo, build_type_psymtabs_1): Update.
11827 (abbrev_table::alloc_abbrev, abbrev_table::add_abbrev)
11828 (abbrev_table::lookup_abbrev, abbrev_table_read_table): Move to
11829 abbrev.c.
11830 * dwarf2/abbrev.h: New file.
11831 * dwarf2/abbrev.c: New file, from dwarf2read.c.
11832 * Makefile.in (COMMON_SFILES): Add dwarf2/abbrev.c.
11833
11834 2020-02-08 Tom Tromey <tom@tromey.com>
11835
11836 * dwarf2read.c (dwarf2_section_buffer_overflow_complaint)
11837 (dwarf2_section_size, dwarf2_get_section_info)
11838 (create_signatured_type_table_from_debug_names)
11839 (create_addrmap_from_aranges, read_debug_names_from_section)
11840 (get_gdb_index_contents_from_section, read_comp_unit_head)
11841 (error_check_comp_unit_head, read_abbrev_offset)
11842 (create_debug_type_hash_table, init_cu_die_reader)
11843 (read_cutu_die_from_dwo, dwarf2_build_psymtabs_hard)
11844 (read_comp_units_from_section, create_cus_hash_table)
11845 (create_dwp_hash_table, create_dwo_unit_in_dwp_v1)
11846 (create_dwp_v2_section, dwarf2_rnglists_process)
11847 (dwarf2_ranges_process, read_die_and_siblings, read_full_die)
11848 (abbrev_table_read_table, read_indirect_string_at_offset_from)
11849 (read_indirect_string_from_dwz, read_addr_index_1)
11850 (read_str_index, dwarf_decode_line_header, skip_form_bytes)
11851 (dwarf_decode_macro_bytes, dwarf_decode_macros)
11852 (fill_in_loclist_baton): Update.
11853 * dwarf2/section.h (struct dwarf2_section_info) <get_name,
11854 get_containing_section, get_bfd_owner, get_bfd_section,
11855 get_file_name, get_id, get_flags, empty, read>: Declare methods.
11856 (dwarf2_read_section, get_section_name, get_section_file_name)
11857 (get_containing_section, get_section_bfd_owner)
11858 (get_section_bfd_section, get_section_name, get_section_file_name)
11859 (get_section_id, get_section_flags, dwarf2_section_empty_p): Don't
11860 declare.
11861 * dwarf2/section.c (dwarf2_section_info::get_containing_section)
11862 (dwarf2_section_info::get_bfd_owner)
11863 (dwarf2_section_info::get_bfd_section)
11864 (dwarf2_section_info::get_name)
11865 (dwarf2_section_info::get_file_name, dwarf2_section_info::get_id)
11866 (dwarf2_section_info::get_flags, dwarf2_section_info::empty)
11867 (dwarf2_section_info::read): Now methods.
11868 * dwarf-index-write.c (class debug_names): Update.
11869
11870 2020-02-08 Tom Tromey <tom@tromey.com>
11871
11872 * dwarf2read.h (struct dwarf2_section_info, dwarf2_read_section):
11873 Move to dwarf2/section.h.
11874 * dwarf2read.c (get_containing_section, get_section_bfd_owner)
11875 (get_section_bfd_section, get_section_name)
11876 (get_section_file_name, get_section_id, get_section_flags)
11877 (dwarf2_section_empty_p, dwarf2_read_section): Moe to
11878 dwarf2/section.c.
11879 * dwarf2/section.h: New file.
11880 * dwarf2/section.c: New file, from dwarf2read.c.
11881 * Makefile.in (COMMON_SFILES): Add dwarf2/section.c.
11882
11883 2020-02-08 Tom Tromey <tom@tromey.com>
11884
11885 * dwarf2read.h (read_unsigned_leb128): Don't declare.
11886 * dwarf2read.c (read_1_byte, read_1_signed_byte, read_2_bytes)
11887 (read_2_signed_bytes, read_3_bytes, read_4_bytes)
11888 (read_4_signed_bytes, read_8_bytes): Move to dwarf2/leb.h.
11889 (read_unsigned_leb128, read_signed_leb128): Move to dwarf2/leb.c.
11890 * dwarf2/leb.h: New file, from dwarf2read.c.
11891 * dwarf2/leb.c: New file, from dwarf2read.c.
11892 * dwarf2-frame.c (read_1_byte, read_4_bytes, read_8_bytes):
11893 Remove.
11894 * Makefile.in (CONFIG_SRC_SUBDIR): Add dwarf2.
11895 (COMMON_SFILES): Add dwarf2/leb.c.
11896
11897 2020-02-08 Joel Brobecker <brobecker@adacore.com>
11898
11899 GDB 9.1 released.
11900
11901 2020-02-05 Iain Buclaw <ibuclaw@gdcproject.org>
11902
11903 PR gdb/25190:
11904 * gdb/remote-sim.c (gdb_os_write_stderr): Update.
11905 * gdb/remote.c (remote_console_output): Update.
11906 * gdb/ui-file.c (fputs_unfiltered): Rename to...
11907 (ui_file_puts): ...this.
11908 * gdb/ui-file.h (ui_file_puts): Add declaration.
11909 * gdb/utils.c (emit_style_escape): Update.
11910 (flush_wrap_buffer): Update.
11911 (fputs_maybe_filtered): Update.
11912 (fputs_unfiltered): Add function.
11913
11914 2020-02-05 Iain Buclaw <ibuclaw@gdcproject.org>
11915
11916 * gdb/event-loop.c (gdb_wait_for_event): Update.
11917 * gdb/printcmd.c (printf_command): Update.
11918 * gdb/remote-fileio.c (remote_fileio_func_write): Update.
11919 * gdb/remote-sim.c (gdb_os_flush_stdout): Update.
11920 (gdb_os_flush_stderr): Update.
11921 * gdb/remote.c (remote_console_output): Update.
11922 * gdb/ui-file.c (gdb_flush): Rename to...
11923 (ui_file_flush): ...this.
11924 (stderr_file::write): Update.
11925 (stderr_file::puts): Update.
11926 * gdb/ui-file.h (gdb_flush): Rename to...
11927 (ui_file_flush): ...this.
11928 * gdb/utils.c (gdb_flush): Add function.
11929 * gdb/utils.h (gdb_flush): Add declaration.
11930
11931 2020-02-07 Tom Tromey <tromey@adacore.com>
11932
11933 PR breakpoints/24915:
11934 * source.c (find_and_open_source): Do not check basenames_may_differ.
11935
11936 2020-02-07 Tom Tromey <tom@tromey.com>
11937
11938 * README: Update gdbserver documentation.
11939 * gdbserver: Move to top level.
11940 * configure.tgt (build_gdbserver): Remove.
11941 * configure.ac: Remove --enable-gdbserver.
11942 * configure: Rebuild.
11943 * Makefile.in (distclean): Don't mention gdbserver.
11944
11945 2020-02-06 Shahab Vahedi <shahab@synopsys.com>
11946
11947 * source-cache.c (source_cache::ensure): Surround
11948 get_plain_source_lines with a try/catch.
11949 (source_cache::get_line_charpos): Get rid of try/catch
11950 and only check for the return value of "ensure".
11951 * tui/tui-source.c (tui_source_window::set_contents):
11952 Simplify "nlines" calculation.
11953
11954 2020-02-06 Shahab Vahedi <shahab@synopsys.com>
11955
11956 * MAINTAINERS (Write After Approval): Add myself.
11957
11958 2020-02-05 Christian Biesinger <cbiesinger@google.com>
11959
11960 * sparc-nat.h (struct sparc_target) <xfer_partial>: Fix base class
11961 function call.
11962
11963 2020-02-05 Christian Biesinger <cbiesinger@google.com>
11964
11965 * ppc-nbsd-tdep.h: Fix macro name in #endif comment.
11966
11967 2020-02-05 Maciej W. Rozycki <macro@wdc.com>
11968
11969 * nat/riscv-linux-tdesc.h: New file.
11970 * nat/riscv-linux-tdesc.c: New file, taking code from...
11971 * riscv-linux-nat.c (riscv_linux_nat_target::read_description):
11972 ... here.
11973 * configure.nat <linux> <riscv*>: Add nat/riscv-linux-tdesc.o to
11974 NATDEPFILES.
11975
11976 2020-02-04 Andrew Burgess <andrew.burgess@embecosm.com>
11977
11978 * remote-sim.c (sim_inferior_data::sim_inferior_data): Assert that
11979 we don't set the fake simulator ptid to the null_ptid.
11980
11981 2020-02-03 Simon Marchi <simon.marchi@efficios.com>
11982
11983 * fork-child.c (gdb_startup_inferior): Use bool instead of int.
11984 * gdbthread.h (class thread_info) <resumed>: Likewise.
11985 * infrun.c (resume_1): Likewise.
11986 (proceed): Likewise.
11987 (infrun_thread_stop_requested): Likewise.
11988 (stop_all_threads): Likewise.
11989 (handle_inferior_event): Likewise.
11990 (restart_threads): Likewise.
11991 (finish_step_over): Likewise.
11992 (keep_going_stepped_thread): Likewise.
11993 * linux-nat.c (attach_proc_task_lwp_callback): Likewise.
11994 (linux_handle_extended_wait): Likewise.
11995 * record-btrace.c (get_thread_current_frame_id): Likewise.
11996 * record-full.c (record_full_wait_1): Likewise.
11997 * remote.c (remote_target::process_initial_stop_replies): Likewise.
11998 * target.c (target_resume): Likewise.
11999 * thread.c (set_running_thread): Likewise.
12000
12001 2020-02-03 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
12002
12003 * f-valprint.c (f77_print_array_1): Changed datatype of index
12004 variable to LONGEST from int to enable it to contain bound
12005 values correctly.
12006
12007 2020-02-03 Maciej W. Rozycki <macro@wdc.com>
12008
12009 * riscv-linux-nat.c [!NFPREG] (NFPREG): New macro.
12010 (supply_fpregset_regnum, fill_fpregset): Handle regset buffer
12011 offsets according to FLEN determined.
12012 (riscv_linux_nat_target::read_description): Determine FLEN
12013 dynamically.
12014 (riscv_linux_nat_target::fetch_registers): Size regset buffer
12015 according to FLEN determined.
12016 (riscv_linux_nat_target::store_registers): Likewise.
12017
12018 2020-02-01 Shahab Vahedi <shahab@synopsys.com>
12019
12020 * target-descriptions.c (tdesc_register_in_reggroup_p): Return 0
12021 when reg->group is empty and reggroup is not.
12022
12023 2020-01-31 Tom Tromey <tromey@adacore.com>
12024
12025 * ravenscar-thread.c (ravenscar_thread_target::mourn_inferior):
12026 Call beneath target's mourn_inferior after unpushing.
12027
12028 2020-01-31 Andrew Burgess <andrew.burgess@embecosm.com>
12029
12030 PR tui/9765
12031 * tui/tui-disasm.c (tui_find_disassembly_address): If we don't
12032 have enough lines to fill the screen, still return the lowest
12033 address we found.
12034
12035 2020-01-31 Andrew Burgess <andrew.burgess@embecosm.com>
12036
12037 * tui/tui-win.c (_initialize_tui_win): Update help text for '+',
12038 '-', '<', and '>' commands.
12039
12040 2020-01-29 Pedro Alves <palves@redhat.com>
12041 Sergio Durigan Junior <sergiodj@redhat.com>
12042
12043 * infcmd.c (construct_inferior_arguments): Assert that
12044 'argc' is greater than 0.
12045
12046 2020-01-29 Luis Machado <luis.machado@linaro.org>
12047
12048 * aarch64-tdep.c (BRK_INSN_MASK): Define to 0xffe0001f.
12049 (BRK_INSN_MASK): Define to 0xd4200000.
12050 (aarch64_program_breakpoint_here_p): New function.
12051 (aarch64_gdbarch_init): Set gdbarch_program_breakpoint_here_p hook.
12052 * arch-utils.c (default_program_breakpoint_here_p): Moved from
12053 breakpoint.c.
12054 * arch-utils.h (default_program_breakpoint_here_p): Moved from
12055 breakpoint.h
12056 * breakpoint.c (bp_loc_is_permanent): Changed return type to bool and
12057 call gdbarch_program_breakpoint_here_p.
12058 (program_breakpoint_here): Moved to arch-utils.c, renamed to
12059 default_program_breakpoint_here_p, changed return type to bool and
12060 simplified.
12061 * breakpoint.h (program_breakpoint_here): Moved prototype to
12062 arch-utils.h, renamed to default_program_breakpoint_here_p and changed
12063 return type to bool.
12064 * gdbarch.c: Regenerate.
12065 * gdbarch.h: Regenerate.
12066 * gdbarch.sh (program_breakpoint_here_p): New method.
12067 * infrun.c (handle_signal_stop): Call
12068 gdbarch_program_breakpoint_here_p.
12069
12070 2020-01-26 Tom Tromey <tom@tromey.com>
12071
12072 * ctfread.c (struct ctf_fp_info): Reindent.
12073 (_initialize_ctfread): Remove.
12074
12075 2020-01-26 Tom Tromey <tom@tromey.com>
12076
12077 * psymtab.c (partial_map_expand_apply)
12078 (psym_find_pc_sect_compunit_symtab, psym_lookup_symbol)
12079 (psymtab_to_symtab, psym_find_last_source_symtab, dump_psymtab)
12080 (psym_print_stats, psym_expand_symtabs_for_function)
12081 (psym_map_symbol_filenames, psym_map_matching_symbols)
12082 (psym_expand_symtabs_matching)
12083 (partial_symtab::read_dependencies, maintenance_info_psymtabs)
12084 (maintenance_check_psymtabs): Use new methods.
12085 * psympriv.h (struct partial_symtab) <readin_p,
12086 get_compunit_symtab>: New methods.
12087 <readin, compunit_symtab>: Remove members.
12088 (struct standard_psymtab): New.
12089 (struct legacy_psymtab): Derive from standard_psymtab.
12090 * dwarf2read.h (struct dwarf2_psymtab): Derive from
12091 standard_psymtab.
12092 * ctfread.c (struct ctf_psymtab): Derive from standard_psymtab.
12093
12094 2020-01-26 Tom Tromey <tom@tromey.com>
12095
12096 * xcoffread.c (xcoff_psymtab_to_symtab_1): Call
12097 read_dependencies. Add assert.
12098 * psymtab.c (partial_symtab::read_dependencies): New method.
12099 * psympriv.h (struct partial_symtab) <read_dependencies>: New
12100 method.
12101 * mdebugread.c (psymtab_to_symtab_1): Call read_dependencies.
12102 * dwarf2read.c (dwarf2_psymtab::expand_psymtab): Call
12103 read_dependencies.
12104 * dbxread.c (dbx_psymtab_to_symtab_1): Call read_dependencies.
12105 Add assert.
12106
12107 2020-01-26 Tom Tromey <tom@tromey.com>
12108
12109 * xcoffread.c (xcoff_psymtab_to_symtab_1): Change argument order.
12110 Call expand_psymtab.
12111 (xcoff_read_symtab): Call expand_psymtab.
12112 (xcoff_start_psymtab, xcoff_end_psymtab): Set
12113 legacy_expand_psymtab.
12114 * psympriv.h (struct partial_symtab) <expand_psymtab>: New
12115 method.
12116 (struct legacy_psymtab) <expand_psymtab>: Implement.
12117 <legacy_expand_psymtab>: New member.
12118 * mdebugread.c (mdebug_read_symtab): Call expand_psymtab.
12119 (parse_partial_symbols): Set legacy_expand_psymtab.
12120 (psymtab_to_symtab_1): Change argument order. Call
12121 expand_psymtab.
12122 (new_psymtab): Set legacy_expand_psymtab.
12123 * dwarf2read.h (struct dwarf2_psymtab) <expand_psymtab>: Declare.
12124 * dwarf2read.c (dwarf2_psymtab::read_symtab): Call
12125 expand_psymtab.
12126 (dwarf2_psymtab::expand_psymtab): Rename from
12127 psymtab_to_symtab_1. Call expand_psymtab.
12128 * dbxread.c (start_psymtab): Set legacy_expand_psymtab.
12129 (dbx_end_psymtab): Likewise.
12130 (dbx_psymtab_to_symtab_1): Change argument order. Call
12131 expand_psymtab.
12132 (dbx_read_symtab): Call expand_psymtab.
12133 * ctfread.c (struct ctf_psymtab) <expand_psymtab>: Declare.
12134 (ctf_psymtab::expand_psymtab): Rename from psymtab_to_symtab.
12135 (ctf_psymtab::read_symtab): Call expand_psymtab.
12136
12137 2020-01-26 Tom Tromey <tom@tromey.com>
12138
12139 * xcoffread.c (xcoff_read_symtab): Remove prints. Add assert.
12140 * psymtab.c (psymtab_to_symtab): Print verbose "Reading"
12141 messages.
12142 * mdebugread.c (mdebug_read_symtab): Remove prints.
12143 * dwarf2read.c (dwarf2_psymtab::read_symtab): Remove prints. Add
12144 assert.
12145 * dbxread.c (dbx_read_symtab): Remove prints. Add assert.
12146
12147 2020-01-26 Tom Tromey <tom@tromey.com>
12148
12149 * xcoffread.c (this_symtab_psymtab, read_xcoff_symtab)
12150 (xcoff_psymtab_to_symtab_1, xcoff_read_symtab)
12151 (xcoff_start_psymtab, xcoff_end_psymtab, scan_xcoff_symtab): Use
12152 legacy_symtab.
12153 * stabsread.h (dbx_end_psymtab): Use legacy_symtab.
12154 * psymtab.c (psymtab_to_symtab): Call method.
12155 (dump_psymtab): Update.
12156 * psympriv.h (struct partial_symtab): Add virtual destructor.
12157 <read_symtab>: New method.
12158 (struct legacy_symtab): New.
12159 * mdebugread.c (mdebug_read_symtab): Use legacy_psymtab.
12160 (struct pst_map) <pst>: Now a legacy_psymtab.
12161 (parse_procedure, parse_partial_symbols, psymtab_to_symtab_1)
12162 (new_psymtab): Use legacy_psymtab.
12163 * dwarf2read.h (struct dwarf2_psymtab): New.
12164 (struct dwarf2_per_cu_data) <psymtab>: Use it.
12165 * dwarf2read.c (dwarf2_create_include_psymtab)
12166 (dwarf2_build_include_psymtabs, create_type_unit_group)
12167 (create_partial_symtab, process_psymtab_comp_unit_reader)
12168 (build_type_psymtabs_reader, build_type_psymtab_dependencies)
12169 (set_partial_user): Use dwarf2_psymtab.
12170 (dwarf2_psymtab::read_symtab): Rename from dwarf2_read_symtab.
12171 (psymtab_to_symtab_1, process_full_comp_unit)
12172 (process_full_type_unit, dwarf2_ranges_read)
12173 (dwarf2_get_pc_bounds, psymtab_include_file_name)
12174 (dwarf_decode_lines): Use dwarf2_psymtab.
12175 * dwarf-index-write.c (psym_index_map): Use dwarf2_psymtab.
12176 (add_address_entry_worker, write_one_signatured_type)
12177 (recursively_count_psymbols, recursively_write_psymbols)
12178 (write_one_signatured_type, psyms_seen_size, write_gdbindex)
12179 (write_debug_names): Likewise.
12180 * dbxread.c (struct header_file_location): Take a legacy_psymtab.
12181 <pst>: Now a legacy_psymtab.
12182 (find_corresponding_bincl_psymtab): Return a legacy_psymtab.
12183 (read_dbx_symtab, start_psymtab, dbx_end_psymtab)
12184 (dbx_psymtab_to_symtab_1, read_ofile_symtab): Use legacy_psymtab.
12185 * ctfread.c (struct ctf_psymtab): New.
12186 (ctf_start_symtab, ctf_end_symtab, psymtab_to_symtab): Take a
12187 ctf_psymtab.
12188 (ctf_psymtab::read_symtab): Rename from ctf_read_symtab.
12189 (create_partial_symtab): Return a ctf_psymtab.
12190 (scan_partial_symbols): Update.
12191
12192 2020-01-26 Tom Tromey <tom@tromey.com>
12193
12194 * xcoffread.c (xcoff_start_psymtab): Use new.
12195 * psymtab.c (partial_symtab::partial_symtab): New constructor,
12196 renamed from start_psymtab_common.
12197 * psympriv.h (struct partial_symtab): Add new constructor.
12198 (start_psymtab_common): Don't declare.
12199 * mdebugread.c (parse_partial_symbols): Use new.
12200 * dwarf2read.c (create_partial_symtab): Use new.
12201 * dbxread.c (start_psymtab): Use new.
12202 * ctfread.c (create_partial_symtab): Use new.
12203
12204 2020-01-26 Tom Tromey <tom@tromey.com>
12205
12206 * xcoffread.c (xcoff_end_psymtab): Use new.
12207 * psymtab.c (start_psymtab_common): Use new.
12208 (partial_symtab::partial_symtab): Rename from allocate_psymtab.
12209 Update.
12210 * psympriv.h (struct partial_symtab): Add parameters to
12211 constructor. Don't inline.
12212 (allocate_psymtab): Don't declare.
12213 * mdebugread.c (new_psymtab): Use new.
12214 * dwarf2read.c (dwarf2_create_include_psymtab): Use new.
12215 * dbxread.c (dbx_end_psymtab): Use new.
12216
12217 2020-01-26 Tom Tromey <tom@tromey.com>
12218
12219 * psymtab.h (class psymtab_storage) <install_psymtab>: Rename from
12220 allocate_psymtab. Update documentation.
12221 * psymtab.c (psymtab_storage::install_psymtab): Rename from
12222 allocate_psymtab. Do not use new.
12223 (allocate_psymtab): Use new. Update.
12224
12225 2020-01-26 Tom Tromey <tom@tromey.com>
12226
12227 * xcoffread.c (xcoff_psymtab_to_symtab_1): Update.
12228 * psymtab.c (psym_print_stats): Update.
12229 * psympriv.h (struct partial_symtab) <readin,
12230 psymtabs_addrmap_supported, anonymous>: Now bool.
12231 * mdebugread.c (psymtab_to_symtab_1): Update.
12232 * dwarf2read.c (create_type_unit_group, create_partial_symtab)
12233 (build_type_psymtabs_reader, psymtab_to_symtab_1)
12234 (process_full_comp_unit, process_full_type_unit): Update.
12235 * dbxread.c (dbx_psymtab_to_symtab_1): Update.
12236 * ctfread.c (psymtab_to_symtab): Update.
12237
12238 2020-01-26 Tom Tromey <tom@tromey.com>
12239
12240 * mdebugread.c (parse_partial_symbols): Use discard_psymtab.
12241 * psymtab.h (class psymtab_storage) <free_psymtabs>: Remove.
12242 * psymtab.c (psymtab_storage): Delete psymtabs.
12243 (psymtab_storage::allocate_psymtab): Use new.
12244 (psymtab_storage::discard_psymtab): Use delete.
12245 * psympriv.h (struct partial_symtab): Add constructor and
12246 initializers.
12247
12248 2020-01-26 Tom Tromey <tom@tromey.com>
12249
12250 * machoread.c: Do not include psympriv.h.
12251
12252 2020-01-25 Philippe Waroquiers <philippe.waroquiers@skynet.be>
12253
12254 * NEWS: Mention the new option and the set/show commands.
12255
12256 2020-01-25 Philippe Waroquiers <philippe.waroquiers@skynet.be>
12257
12258 * exec.c (exec_file_mismatch_names, exec_file_mismatch_mode)
12259 (show_exec_file_mismatch_command, set_exec_file_mismatch_command)
12260 (validate_exec_file): New variables, enums, functions.
12261 (exec_file_locate_attach, print_section_info): Style the filenames.
12262 (_initialize_exec): Install show_exec_file_mismatch_command and
12263 set_exec_file_mismatch_command.
12264 * gdbcore.h (validate_exec_file): Declare.
12265 * infcmd.c (attach_command): Call validate_exec_file.
12266 * remote.c ( remote_target::remote_add_inferior): Likewise.
12267
12268 2020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
12269
12270 * frame.c (find_frame_sal): Move call to get_next_frame into more
12271 inner scope.
12272 * inline-frame.c (inilne_state) <inline_state>: Update argument
12273 types.
12274 (inilne_state) <skipped_symbol>: Rename to...
12275 (inilne_state) <skipped_symbols>: ...this, and change to a vector.
12276 (skip_inline_frames): Build vector of skipped symbols and use this
12277 to reate the inline_state.
12278 (inline_skipped_symbol): Add a comment and some assertions, fetch
12279 skipped symbol from the list.
12280
12281 2020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
12282
12283 * buildsym.c (lte_is_less_than): Delete.
12284 (buildsym_compunit::end_symtab_with_blockvector): Create local
12285 lambda function to sort line table entries, and use
12286 std::stable_sort instead of std::sort.
12287 * symtab.c (find_pc_sect_line): Skip backward over end of sequence
12288 markers when looking for a previous line.
12289
12290 2020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
12291
12292 * dwarf2read.c (lnp_state_machine::record_line): Include
12293 end_sequence parameter in debug print out. Record the line if we
12294 are at an end_sequence marker even if it's not the start of a
12295 statement.
12296 * symmisc.c (maintenance_print_one_line_table): Print end of
12297 sequence markers with 'END' not '0'.
12298
12299 2020-01-24 Pedro Alves <palves@redhat.com>
12300
12301 PR gdb/25410
12302 * thread.c (scoped_restore_current_thread::restore): Use
12303 switch_to_inferior_no_thread.
12304 * exec.c: Include "progspace-and-thread.h".
12305 (add_target_sections, remove_target_sections):
12306 scoped_restore_current_pspace_and_thread instead of
12307 scoped_restore_current_thread.
12308 * infrun.c (handle_vfork_child_exec_or_exit): Assign the pspace
12309 and aspace to the inferior before calling clone_program_space.
12310 Remove stale comment.
12311
12312 2020-01-24 Christian Biesinger <cbiesinger@google.com>
12313
12314 * arm-nbsd-nat.c (arm_nbsd_nat_target::fetch_registers): Rename to...
12315 (arm_netbsd_nat_target::fetch_registers): ...this.
12316 (arm_nbsd_nat_target::store_registers): Rename to...
12317 (arm_netbsd_nat_target::store_registers): ...this.
12318
12319 2020-01-24 Christian Biesinger <cbiesinger@google.com>
12320
12321 * arm-nbsd-nat.c: Define _KERNTYPES to get the declaration of
12322 register_t.
12323
12324 2020-01-24 Christian Biesinger <cbiesinger@google.com>
12325
12326 * aarch64-fbsd-tdep.c (aarch64_fbsd_iterate_over_regset_sections):
12327 Update comment.
12328 * aarch64-linux-tdep.c (aarch64_linux_iterate_over_regset_sections):
12329 Likewise.
12330 * arm-fbsd-tdep.c (arm_fbsd_iterate_over_regset_sections): Likewise.
12331 * gdbcore.h (deprecated_add_core_fns): Update comment to point to
12332 the correct replacement (iterate_over_regset_sections).
12333 * riscv-fbsd-tdep.c (riscv_fbsd_iterate_over_regset_sections):
12334 Update comment.
12335
12336 2020-01-24 Graham Markall <graham.markall@embecosm.com>
12337
12338 PR gdb/23718
12339 * gdb/python/python.c (execute_gdb_command): Call
12340 async_enable_stdin in catch block.
12341
12342 2020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
12343
12344 * event-loop.c (start_event_loop): Wrap async_enable_stdin with
12345 SWITCH_THRU_ALL_UIS.
12346
12347 2020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
12348
12349 PR tui/9765
12350 * minsyms.c (lookup_minimal_symbol_by_pc_section): Update header
12351 comment, add extra parameter, and update to store previous symbol
12352 when appropriate.
12353 * minsyms.h (lookup_minimal_symbol_by_pc_section): Update comment,
12354 add extra parameter.
12355 * tui/tui-disasm.c (tui_disassemble): Update header comment,
12356 remove unneeded parameter, add try/catch around gdb_print_insn,
12357 rewrite to add items to asm_lines vector.
12358 (tui_find_backward_disassembly_start_address): New function.
12359 (tui_find_disassembly_address): Updated throughout.
12360 (tui_disasm_window::set_contents): Update for changes to
12361 tui_disassemble.
12362 (tui_disasm_window::do_scroll_vertical): No need to adjust the
12363 number of lines to scroll.
12364
12365 2020-01-23 Simon Marchi <simon.marchi@polymtl.ca>
12366
12367 * objfiles.h (ALL_OBJFILE_OSECTIONS): Move up.
12368 (SECT_OFF_DATA): Likewise.
12369 (SECT_OFF_RODATA): Likewise.
12370 (SECT_OFF_TEXT): Likewise.
12371 (SECT_OFF_BSS): Likewise.
12372 (struct objfile) <text_section_offset, data_section_offset>: New
12373 methods.
12374 * amd64-windows-tdep.c (amd64_windows_find_unwind_info): Use
12375 objfile::text_section_offset.
12376 * coff-pe-read.c (add_pe_forwarded_sym): Likewise.
12377 * coffread.c (coff_symtab_read): Likewise.
12378 (enter_linenos): Likewise.
12379 (process_coff_symbol): Likewise.
12380 * ctfread.c (get_objfile_text_range): Likewise.
12381 * dtrace-probe.c (dtrace_probe::get_relocated_address):
12382 Use objfile::data_section_offset.
12383 * dwarf2-frame.c (execute_cfa_program): Use
12384 objfile::text_section_offset.
12385 (dwarf2_frame_find_fde): Likewise.
12386 * dwarf2read.c (create_addrmap_from_index): Likewise.
12387 (create_addrmap_from_aranges): Likewise.
12388 (dw2_find_pc_sect_compunit_symtab): Likewise.
12389 (process_psymtab_comp_unit_reader): Likewise.
12390 (add_partial_symbol): Likewise.
12391 (add_partial_subprogram): Likewise.
12392 (process_full_comp_unit): Likewise.
12393 (read_file_scope): Likewise.
12394 (read_func_scope): Likewise.
12395 (read_lexical_block_scope): Likewise.
12396 (read_call_site_scope): Likewise.
12397 (dwarf2_rnglists_process): Likewise.
12398 (dwarf2_ranges_process): Likewise.
12399 (dwarf2_ranges_read): Likewise.
12400 (dwarf_decode_lines_1): Likewise.
12401 (new_symbol): Likewise.
12402 (dwarf2_fetch_die_loc_sect_off): Likewise.
12403 (dwarf2_per_cu_text_offset): Likewise.
12404 * hppa-bsd-tdep.c (hppabsd_find_global_pointer): Likewise.
12405 * hppa-tdep.c (read_unwind_info): Likewise.
12406 * ia64-tdep.c (ia64_find_unwind_table): Likewise.
12407 * psympriv.h (struct partial_symtab): Likewise.
12408 * psymtab.c (find_pc_sect_psymtab): Likewise.
12409 * solib-svr4.c (enable_break): Likewise.
12410 * stap-probe.c (relocate_address): Use
12411 objfile::data_section_offset.
12412 * xcoffread.c (enter_line_range): Use
12413 objfile::text_section_offset.
12414 (read_xcoff_symtab): Likewise.
12415
12416 2020-01-23 Simon Marchi <simon.marchi@efficios.com>
12417
12418 * darwin-nat.c (darwin_nat_target::wait_1): Move `inf`
12419 declaration to narrower scopes.
12420
12421 2020-01-23 Simon Marchi <simon.marchi@efficios.com>
12422
12423 * darwin-nat.h (struct darwin_exception_msg, enum
12424 darwin_msg_state, struct darwin_thread_info, darwin_thread_t):
12425 Move up.
12426 (class darwin_nat_target) <wait_1, check_new_threads,
12427 decode_exception_message, decode_message, stop_inferior,
12428 init_thread_list, ptrace_him, cancel_breakpoint>: Declare.
12429 * darwin-nat.c (darwin_check_new_threads): Rename to...
12430 (darwin_nat_target::check_new_threads): ... this.
12431 (darwin_suspend_inferior_it): Remove.
12432 (darwin_decode_exception_message): Rename to...
12433 (darwin_nat_target::decode_exception_message): ... this.
12434 (darwin_nat_target::resume): Pass target to find_inferior_ptid.
12435 (darwin_decode_message): Rename to...
12436 (darwin_nat_target::decode_message): ... this.
12437 (cancel_breakpoint): Rename to...
12438 (darwin_nat_target::cancel_breakpoint): ... this.
12439 (darwin_wait): Rename to...
12440 (darwin_nat_target::wait_1): ... this. Use range-based for loop
12441 instead of iterate_over_inferiors.
12442 (darwin_nat_target::wait): Call wait_1 instead of darwin_wait.
12443 (darwin_stop_inferior): Rename to...
12444 (darwin_nat_target::stop_inferior): ... this.
12445 (darwin_nat_target::kill): Call wait_1 instead of darwin_wait.
12446 (darwin_init_thread_list): Rename to...
12447 (darwin_nat_target::init_thread_list): ... this.
12448 (darwin_ptrace_him): Rename to...
12449 (darwin_nat_target::ptrace_him): ... this.
12450 (darwin_nat_target::create_inferior): Pass lambda function to
12451 fork_inferior.
12452 (darwin_nat_target::detach): Call stop_inferior instead of
12453 darwin_stop_inferior.
12454 * fork-inferior.h (fork_inferior): Change init_trace_fun
12455 parameter to gdb::function_view.
12456 * fork-inferior.c (fork_inferior): Likewise.
12457
12458 2020-01-23 Hannes Domani <ssbssa@yahoo.de>
12459
12460 * i386-cygwin-tdep.c (core_process_module_section): Update.
12461 * windows-nat.c (struct lm_info_windows): Add text_offset.
12462 (windows_xfer_shared_libraries): Update.
12463 * windows-tdep.c (windows_xfer_shared_library):
12464 Add text_offset_cached argument.
12465 * windows-tdep.h (windows_xfer_shared_library): Update.
12466
12467 2020-01-21 Simon Marchi <simon.marchi@efficios.com>
12468
12469 * gdbarch.sh: Add declaration for _initialize_gdbarch.
12470
12471 2020-01-21 Simon Marchi <simon.marchi@efficios.com>
12472
12473 * remote-sim.c (check_for_duplicate_sim_descriptor): Remove.
12474 (get_sim_inferior_data): Remove use of iterate_over_inferiors,
12475 replace with range-based for.
12476 (gdbsim_interrupt_inferior): Remove.
12477 (gdbsim_target::interrupt): Replace iterate_over_inferiors use
12478 with a range-based for. Inline code from
12479 gdbsim_interrupt_inferior.
12480
12481 2020-01-21 Simon Marchi <simon.marchi@efficios.com>
12482
12483 * infrun.c (proceed): Fix indentation.
12484
12485 2020-01-21 Tom Tromey <tromey@adacore.com>
12486
12487 * source-cache.c (source_cache::ensure): Call ext_lang_colorize.
12488 * python/python.c (python_extension_ops): Update.
12489 (gdbpy_colorize): New function.
12490 * python/lib/gdb/__init__.py (colorize): New function.
12491 * extension.h (ext_lang_colorize): Declare.
12492 * extension.c (ext_lang_colorize): New function.
12493 * extension-priv.h (struct extension_language_ops) <colorize>: New
12494 member.
12495 * cli/cli-style.c (_initialize_cli_style): Update help text.
12496
12497 2020-01-21 Luis Machado <luis.machado@linaro.org>
12498
12499 * aarch64-tdep.c (struct aarch64_displaced_step_closure)
12500 <cond>: Change type to bool.
12501 (aarch64_displaced_step_b_cond): Update cond to use bool type.
12502 (aarch64_displaced_step_cb): Likewise.
12503 (aarch64_displaced_step_tb): Likewise.
12504
12505 2020-01-21 Luis Machado <luis.machado@linaro.org>
12506
12507 * aarch64-tdep.c (aarch64_displaced_step_fixup): Add more debugging
12508 output.
12509
12510 2020-01-21 Luis Machado <luis.machado@linaro.org>
12511
12512 * aarch64-tdep.c (struct aarch64_displaced_step_closure )
12513 <pc_adjust>: Adjust the documentation.
12514 (aarch64_displaced_step_fixup): Check if PC really moved before
12515 adjusting it.
12516
12517 2020-01-19 Tom Tromey <tom@tromey.com>
12518
12519 * disasm.c (~gdb_disassembler): New destructor.
12520 (gdb_buffered_insn_length): Call disassemble_free_target.
12521 * disasm.h (class gdb_disassembler): Declare destructor. Use
12522 DISABLE_COPY_AND_ASSIGN.
12523
12524 2020-01-19 Tom Tromey <tom@tromey.com>
12525
12526 * dwarf2read.c (abbrev_table_up): Move typedef earlier.
12527 (die_reader_func_ftype): Remove.
12528 (cutu_reader): New class.
12529 (dw2_get_file_names_reader): Remove "data" parameter.
12530 (dw2_get_file_names): Use cutu_reader.
12531 (create_debug_type_hash_table): Update.
12532 (read_cutu_die_from_dwo): Update comment.
12533 (lookup_dwo_unit): Add dwo_name parameter.
12534 (cutu_reader::init_tu_and_read_dwo_dies): Now a method. Remove
12535 die_reader_func_ftype and data parameters.
12536 (cutu_reader::cutu_reader): Rename from init_cutu_and_read_dies.
12537 Remove die_reader_func_ftype and data parameters.
12538 (~cutu_reader): New; from init_cutu_and_read_dies.
12539 (cutu_reader::cutu_reader): Rename from
12540 init_cutu_and_read_dies_no_follow. Remove die_reader_func_ftype
12541 and data parameters.
12542 (init_cutu_and_read_dies_simple): Remove.
12543 (struct process_psymtab_comp_unit_data): Remove.
12544 (process_psymtab_comp_unit_reader): Remove data parameter; add
12545 want_partial_unit and pretend_language parameters.
12546 (process_psymtab_comp_unit): Use cutu_reader.
12547 (build_type_psymtabs_reader): Remove data parameter.
12548 (build_type_psymtabs_1): Use cutu_reader.
12549 (process_skeletonless_type_unit): Likewise.
12550 (load_partial_comp_unit_reader): Remove.
12551 (load_partial_comp_unit): Use cutu_reader.
12552 (load_full_comp_unit_reader): Remove.
12553 (load_full_comp_unit): Use cutu_reader.
12554 (struct create_dwo_cu_data): Remove.
12555 (create_dwo_cu_reader): Remove datap parameter; add dwo_file and
12556 dwo_unit parameters.
12557 (create_cus_hash_table): Use cutu_reader.
12558 (struct dwarf2_read_addr_index_data): Remove.
12559 (dwarf2_read_addr_index_reader): Remove.
12560 (dwarf2_read_addr_index): Use cutu_reader.
12561 (read_signatured_type_reader): Remove.
12562 (read_signatured_type): Use cutu_reader.
12563
12564 2020-01-19 Tom Tromey <tom@tromey.com>
12565
12566 * tui/tui.c (tui_show_assembly): Use tui_suppress_output.
12567 * tui/tui-wingeneral.h (class tui_suppress_output): New.
12568 (tui_wrefresh): Declare.
12569 * tui/tui-wingeneral.c (suppress_output): New global.
12570 (tui_suppress_output, ~tui_suppress_output): New constructor and
12571 destructor.
12572 (tui_wrefresh): New function.
12573 (tui_gen_win_info::refresh_window): Use tui_wrefresh.
12574 (tui_gen_win_info::make_window): Call wnoutrefresh when needed.
12575 * tui/tui-regs.h (struct tui_data_window) <no_refresh>: Declare
12576 method.
12577 * tui/tui-regs.c (tui_data_window::erase_data_content): Call
12578 tui_wrefresh.
12579 (tui_data_window::no_refresh): New method.
12580 (tui_data_item_window::refresh_window): Call tui_wrefresh.
12581 (tui_reg_command): Use tui_suppress_output
12582 * tui/tui-layout.c (tui_set_layout): Use tui_suppress_output.
12583 * tui/tui-data.h (struct tui_gen_win_info) <no_refresh>: New
12584 method.
12585 * tui/tui-command.c (tui_refresh_cmd_win): Call tui_wrefresh.
12586
12587 2020-01-19 Tom Tromey <tom@tromey.com>
12588
12589 * tui/tui-winsource.c (tui_update_source_windows_with_line):
12590 Handle case where symtab is null.
12591
12592 2020-01-19 Simon Marchi <simon.marchi@polymtl.ca>
12593
12594 * linux-fork.c (one_fork_p): Simplify.
12595
12596 2020-01-17 Simon Marchi <simon.marchi@efficios.com>
12597
12598 * top.c (struct qt_args): Remove.
12599 (kill_or_detach): Change return type to void, replace `void *`
12600 parameter with a proper one.
12601 (print_inferior_quit_action): Likewise.
12602 (quit_confirm): Use range-based for loop to iterate over inferiors.
12603 (quit_force): Likewise.
12604
12605 2020-01-17 Simon Marchi <simon.marchi@efficios.com>
12606
12607 * mi/mi-main.c (run_one_inferior): Change return type to void, replace
12608 `void *` parameter with proper parameters.
12609 (mi_cmd_exec_run): Use range-based loop to iterate over inferiors.
12610 (print_one_inferior): Change return type to void, replace `void *`
12611 parameter with proper parameters.
12612 (mi_cmd_list_thread_groups): Use range-based loop to iterate over
12613 inferiors.
12614 (get_other_inferior): Remove.
12615 (mi_cmd_remove_inferior): Use range-based loop to iterate over
12616 inferiors.
12617
12618 2020-01-17 Simon Marchi <simon.marchi@efficios.com>
12619
12620 * mi/mi-interp.c (report_initial_inferior): Remove.
12621 (mi_interp::init): Use range-based for to iterate over inferiors.
12622
12623 2020-01-17 Simon Marchi <simon.marchi@efficios.com>
12624
12625 * python/py-inferior.c (build_inferior_list): Remove.
12626 (gdbpy_ref): Use range-based for loop to iterate over inferiors.
12627
12628 2020-01-16 Christian Biesinger <cbiesinger@google.com>
12629
12630 * btrace.c (btrace_compute_ftrace_1): Fix spelling error (Unkown).
12631 (btrace_stitch_trace): Likewise.
12632 * charset.c (intermediate_encoding): Likewise (vaild).
12633 * nat/linux-btrace.c (linux_read_pt): Likewise (Unkown).
12634 * python/py-record-btrace.c (struct PyMethodDef): Likewise (occurences).
12635 * record-btrace.c (record_btrace_print_conf): Likewise (unkown).
12636
12637 2020-01-16 Hannes Domani <ssbssa@yahoo.de>
12638
12639 * windows-tdep.c (windows_get_tlb_type):
12640 Add rtl_user_process_parameters type.
12641
12642 2020-01-16 Pedro Alves <palves@redhat.com>
12643 Norbert Lange <nolange79@gmail.com>
12644
12645 PR build/24805
12646 * gdbsupport/gdb_proc_service.h (PS_EXPORT): New.
12647 (ps_get_thread_area, ps_getpid, ps_lcontinue, ps_lgetfpregs)
12648 (ps_lgetregs, ps_lsetfpregs, ps_lsetregs, ps_lstop, ps_pcontinue)
12649 (ps_pdread, ps_pdwrite, ps_pglobal_lookup, ps_pstop, ps_ptread)
12650 (ps_ptwrite, ps_lgetxregs, ps_lgetxregsize, ps_lsetxregs)
12651 (ps_plog): Redeclare exported functions with default visibility.
12652
12653 2020-01-16 Nitika Achra <Nitika.Achra@amd.com>
12654
12655 * dwarf2loc.c (decode_debug_loclists_addresses): Handle
12656 DW_LLE_base_addressx, DW_LLE_startx_length, DW_LLE_start_length.
12657
12658 2020-01-15 Simon Marchi <simon.marchi@efficios.com>
12659
12660 * infcmd.c (post_create_inferior): Use get_thread_regcache
12661 instead of get_current_regcache.
12662
12663 2020-01-14 Tom Tromey <tom@tromey.com>
12664
12665 PR symtab/12535:
12666 * python/python.c (gdbpy_decode_line): Treat empty string the same
12667 as no argument.
12668
12669 2020-01-14 Tom Tromey <tom@tromey.com>
12670
12671 * Makefile.in (CLIBS): Remove second use of $(LIBIBERTY).
12672
12673 2020-01-14 Tom Tromey <tom@tromey.com>
12674
12675 * nat/linux-btrace.c: Don't include <config.h>.
12676 * nat/linux-ptrace.c: Don't include <config.h>.
12677 * nat/x86-linux-dregs.c: Don't include <config.h>.
12678
12679 2020-01-14 Tom Tromey <tom@tromey.com>
12680
12681 * configure: Rebuild.
12682 * configure.ac: Move many checks to ../gdbsupport/common.m4.
12683
12684 2020-01-14 Tom Tromey <tom@tromey.com>
12685
12686 * nat/x86-linux-dregs.c: Include configh.h.
12687 * nat/linux-ptrace.c: Include configh.h.
12688 * nat/linux-btrace.c: Include configh.h.
12689 * defs.h: Include config.h, bfd.h.
12690 * configure.ac: Don't source common.host.
12691 (CONFIG_OBS, CONFIG_SRCS): Remove gdbsupport files.
12692 * configure: Rebuild.
12693 * acinclude.m4: Update path.
12694 * Makefile.in (SUPPORT, LIBSUPPORT, INCSUPPORT): New variables.
12695 (CONFIG_SRC_SUBDIR): Remove gdbsupport.
12696 (INTERNAL_CFLAGS_BASE): Add INCSUPPORT.
12697 (CLIBS): Add LIBSUPPORT.
12698 (CDEPS): Likewise.
12699 (COMMON_SFILES): Remove gdbsupport files.
12700 (HFILES_NO_SRCDIR): Likewise.
12701 (stamp-version): Update path to create-version.sh.
12702 (ALLDEPFILES): Remove gdbsupport files.
12703
12704 2020-01-14 Tom Tromey <tom@tromey.com>
12705
12706 * gdbsupport/common.m4 (GDB_AC_COMMON): Define WIN32APILIBS and
12707 USE_WIN32API when needed.
12708 * configure.ac (USE_WIN32API): Don't define.
12709 (WIN32LIBS): Use WIN32APILIBS.
12710 * configure: Rebuild.
12711
12712 2020-01-14 Tom Tromey <tom@tromey.com>
12713
12714 * configure: Rebuild.
12715 * gdbsupport/common.m4 (GDB_AC_COMMON): Fix indentation.
12716
12717 2020-01-14 Bernd Edlinger <bernd.edlinger@hotmail.de>
12718
12719 * skip.c (skip_function_command): Make skip w/o arguments use the
12720 name of the inlined function if pc is inside any inlined function.
12721
12722 2020-01-14 Luis Machado <luis.machado@linaro.org>
12723
12724 * inf-ptrace.c (inf_ptrace_target::resume): Update comments.
12725 * infrun.c (resume_1): Likewise.
12726 (handle_inferior_event): Remove stale comment.
12727 * linux-nat.c (linux_nat_target::resume): Update comments.
12728 (save_stop_reason): Likewise.
12729 (linux_nat_filter_event): Likewise.
12730 * linux-nat.h (struct lwp_info) <stop_pc>, <stop_reason>: Likewise.
12731
12732 2020-01-13 Andrew Burgess <andrew.burgess@embecosm.com>
12733
12734 * elfread.c (record_minimal_symbol): Set section index to 0 for
12735 non-allocatable sections.
12736
12737
12738 2020-01-13 Ali Tamur <tamur@google.com>
12739
12740 * dwarf2read.c (dwarf2_debug_sections): Add debug_str_offsets sections.
12741 (dwarf2_cu): Add str_offsets_base field. Change the type of addr_base
12742 to gdb::optional. Update comments.
12743 (dwo_file): Update comments.
12744 (read_attribute): Update API to take an additional out parameter,
12745 need_reprocess. This is used to mark attributes that need other
12746 attributes (e.g. str_offsets_base) for correct computation which may not
12747 have been read yet.
12748 (read_attribute_reprocess): New function declaration.
12749 (read_addr_index): Likewise.
12750 (read_dwo_str_index): Likewise.
12751 (read_stub_str_index): Likewise.
12752 (dwarf2_per_objfile::locate_sections): Handle debug_str_offsets section.
12753 (lookup_addr_base): New function definition.
12754 (lookup_ranges_base): Likewise.
12755 (read_cutu_die_from_dwo): Use the new functions: lookup_addr_base,
12756 lookup_ranges_base.
12757 (init_cutu_and_read_dies): Update comments.
12758 (init_cutu_and_read_dies_no_follow): Change API to take parent compile
12759 unit. This is used to inherit parent's str_offsets_base and addr_base.
12760 Update comments.
12761 (init_cutu_and_read_dies_simple): Reflect API changes.
12762 (skip_one_die): Reflect API changes. Handle DW_FORM_rnglistx.
12763 (create_cus_hash_table): Change API to take parent compile unit.
12764 Reflect API changes.
12765 (open_and_init_dwo_file): Reflect API changes.
12766 (dwarf2_get_pc_bounds): Update comments.
12767 (dwarf2_record_block_ranges): Likewise.
12768 (read_full_die_1): Change implementation to reprocess attributes that
12769 need str_offsets_base and addr_base.
12770 (partial_die_info::read): Likewise.
12771 (read_attribute_reprocess): New function definition.
12772 (read_attribute_value): Change API to take an additional out parameter,
12773 need_reprocess. Handle DW_FORM_rnglistx. No longer trigger an error
12774 when a non-dwo compile unit has index based attributes.
12775 (read_attribute): Reflect API changes.
12776 (read_addr_index_1): Reflect API changes. Update comments.
12777 (dwarf2_read_addr_index_data): Reflect API changes.
12778 (dwarf2_read_addr_index): Likewise.
12779 (read_str_index): Change API and implementation. This becomes a helper
12780 to be used by the new string index related methods. Update error
12781 message and comments.
12782 (read_dwo_str_index): New function definition.
12783 (read_stub_str_index): Likewise.
12784 * dwarf2read.h (dwarf2_per_objfile): Add str_offsets field.
12785 * symfile.h (dwarf2_debug_sections): Likewise.
12786 * xcoffread.c (dwarf2_debug_sections): Likewise.
12787
12788 2020-01-13 Simon Marchi <simon.marchi@efficios.com>
12789
12790 * gdbcore.h (struct core_fns) <core_read_registers>: Change
12791 core_reg_sect type to gdb_byte *.
12792 * arm-nbsd-nat.c (fetch_elfcore_registers): Likewise.
12793 * cris-tdep.c (fetch_core_registers): Likewise.
12794 * corelow.c (core_target::get_core_register_section): Change
12795 type of `contents` to gdb::byte_vector.
12796
12797 2020-01-13 Andrew Burgess <andrew.burgess@embecosm.com>
12798
12799 * tui/tui-wingeneral.c (box_win): Position the title in the center
12800 of the border.
12801
12802 2020-01-13 Simon Marchi <simon.marchi@polymtl.ca>
12803
12804 * corelow.c (core_target::get_core_register_section): Use
12805 std::vector instead of alloca.
12806
12807 2020-01-13 Simon Marchi <simon.marchi@efficios.com>
12808
12809 * warning.m4: Add -Wmissing-declarations to build_warnings.
12810 * configure: Re-generate.
12811
12812 2020-01-13 Simon Marchi <simon.marchi@efficios.com>
12813
12814 * python/python.c (init__gdb_module): Add declaration.
12815
12816 2020-01-13 Simon Marchi <simon.marchi@efficios.com>
12817
12818 * aarch64-fbsd-nat.c (_initialize_aarch64_fbsd_nat): Add declaration.
12819 * aarch64-fbsd-tdep.c (_initialize_aarch64_fbsd_tdep): Add declaration.
12820 * aarch64-linux-nat.c (_initialize_aarch64_linux_nat): Add declaration.
12821 * aarch64-linux-tdep.c (_initialize_aarch64_linux_tdep): Add declaration.
12822 * aarch64-newlib-tdep.c (_initialize_aarch64_newlib_tdep): Add declaration.
12823 * aarch64-tdep.c (_initialize_aarch64_tdep): Add declaration.
12824 * ada-exp.y (_initialize_ada_exp): Add declaration.
12825 * ada-lang.c (_initialize_ada_language): Add declaration.
12826 * ada-tasks.c (_initialize_tasks): Add declaration.
12827 * agent.c (_initialize_agent): Add declaration.
12828 * aix-thread.c (_initialize_aix_thread): Add declaration.
12829 * alpha-bsd-nat.c (_initialize_alphabsd_nat): Add declaration.
12830 * alpha-linux-nat.c (_initialize_alpha_linux_nat): Add declaration.
12831 * alpha-linux-tdep.c (_initialize_alpha_linux_tdep): Add declaration.
12832 * alpha-nbsd-tdep.c (_initialize_alphanbsd_tdep): Add declaration.
12833 * alpha-obsd-tdep.c (_initialize_alphaobsd_tdep): Add declaration.
12834 * alpha-tdep.c (_initialize_alpha_tdep): Add declaration.
12835 * amd64-darwin-tdep.c (_initialize_amd64_darwin_tdep): Add declaration.
12836 * amd64-dicos-tdep.c (_initialize_amd64_dicos_tdep): Add declaration.
12837 * amd64-fbsd-nat.c (_initialize_amd64fbsd_nat): Add declaration.
12838 * amd64-fbsd-tdep.c (_initialize_amd64fbsd_tdep): Add declaration.
12839 * amd64-linux-nat.c (_initialize_amd64_linux_nat): Add declaration.
12840 * amd64-linux-tdep.c (_initialize_amd64_linux_tdep): Add declaration.
12841 * amd64-nbsd-nat.c (_initialize_amd64nbsd_nat): Add declaration.
12842 * amd64-nbsd-tdep.c (_initialize_amd64nbsd_tdep): Add declaration.
12843 * amd64-obsd-nat.c (_initialize_amd64obsd_nat): Add declaration.
12844 * amd64-obsd-tdep.c (_initialize_amd64obsd_tdep): Add declaration.
12845 * amd64-sol2-tdep.c (_initialize_amd64_sol2_tdep): Add declaration.
12846 * amd64-tdep.c (_initialize_amd64_tdep): Add declaration.
12847 * amd64-windows-nat.c (_initialize_amd64_windows_nat): Add declaration.
12848 * amd64-windows-tdep.c (_initialize_amd64_windows_tdep): Add declaration.
12849 * annotate.c (_initialize_annotate): Add declaration.
12850 * arc-newlib-tdep.c (_initialize_arc_newlib_tdep): Add declaration.
12851 * arc-tdep.c (_initialize_arc_tdep): Add declaration.
12852 * arch-utils.c (_initialize_gdbarch_utils): Add declaration.
12853 * arm-fbsd-nat.c (_initialize_arm_fbsd_nat): Add declaration.
12854 * arm-fbsd-tdep.c (_initialize_arm_fbsd_tdep): Add declaration.
12855 * arm-linux-nat.c (_initialize_arm_linux_nat): Add declaration.
12856 * arm-linux-tdep.c (_initialize_arm_linux_tdep): Add declaration.
12857 * arm-nbsd-nat.c (_initialize_arm_netbsd_nat): Add declaration.
12858 * arm-nbsd-tdep.c (_initialize_arm_netbsd_tdep): Add declaration.
12859 * arm-obsd-tdep.c (_initialize_armobsd_tdep): Add declaration.
12860 * arm-pikeos-tdep.c (_initialize_arm_pikeos_tdep): Add declaration.
12861 * arm-symbian-tdep.c (_initialize_arm_symbian_tdep): Add declaration.
12862 * arm-tdep.c (_initialize_arm_tdep): Add declaration.
12863 * arm-wince-tdep.c (_initialize_arm_wince_tdep): Add declaration.
12864 * auto-load.c (_initialize_auto_load): Add declaration.
12865 * auxv.c (_initialize_auxv): Add declaration.
12866 * avr-tdep.c (_initialize_avr_tdep): Add declaration.
12867 * ax-gdb.c (_initialize_ax_gdb): Add declaration.
12868 * bfin-linux-tdep.c (_initialize_bfin_linux_tdep): Add declaration.
12869 * bfin-tdep.c (_initialize_bfin_tdep): Add declaration.
12870 * break-catch-sig.c (_initialize_break_catch_sig): Add declaration.
12871 * break-catch-syscall.c (_initialize_break_catch_syscall): Add declaration.
12872 * break-catch-throw.c (_initialize_break_catch_throw): Add declaration.
12873 * breakpoint.c (_initialize_breakpoint): Add declaration.
12874 * bsd-uthread.c (_initialize_bsd_uthread): Add declaration.
12875 * btrace.c (_initialize_btrace): Add declaration.
12876 * charset.c (_initialize_charset): Add declaration.
12877 * cli/cli-cmds.c (_initialize_cli_cmds): Add declaration.
12878 * cli/cli-dump.c (_initialize_cli_dump): Add declaration.
12879 * cli/cli-interp.c (_initialize_cli_interp): Add declaration.
12880 * cli/cli-logging.c (_initialize_cli_logging): Add declaration.
12881 * cli/cli-script.c (_initialize_cli_script): Add declaration.
12882 * cli/cli-style.c (_initialize_cli_style): Add declaration.
12883 * coff-pe-read.c (_initialize_coff_pe_read): Add declaration.
12884 * coffread.c (_initialize_coffread): Add declaration.
12885 * compile/compile-cplus-types.c (_initialize_compile_cplus_types): Add declaration.
12886 * compile/compile.c (_initialize_compile): Add declaration.
12887 * complaints.c (_initialize_complaints): Add declaration.
12888 * completer.c (_initialize_completer): Add declaration.
12889 * copying.c (_initialize_copying): Add declaration.
12890 * corefile.c (_initialize_core): Add declaration.
12891 * corelow.c (_initialize_corelow): Add declaration.
12892 * cp-abi.c (_initialize_cp_abi): Add declaration.
12893 * cp-namespace.c (_initialize_cp_namespace): Add declaration.
12894 * cp-support.c (_initialize_cp_support): Add declaration.
12895 * cp-valprint.c (_initialize_cp_valprint): Add declaration.
12896 * cris-linux-tdep.c (_initialize_cris_linux_tdep): Add declaration.
12897 * cris-tdep.c (_initialize_cris_tdep): Add declaration.
12898 * csky-linux-tdep.c (_initialize_csky_linux_tdep): Add declaration.
12899 * csky-tdep.c (_initialize_csky_tdep): Add declaration.
12900 * ctfread.c (_initialize_ctfread): Add declaration.
12901 * d-lang.c (_initialize_d_language): Add declaration.
12902 * darwin-nat-info.c (_initialize_darwin_info_commands): Add declaration.
12903 * darwin-nat.c (_initialize_darwin_nat): Add declaration.
12904 * dbxread.c (_initialize_dbxread): Add declaration.
12905 * dcache.c (_initialize_dcache): Add declaration.
12906 * disasm-selftests.c (_initialize_disasm_selftests): Add declaration.
12907 * disasm.c (_initialize_disasm): Add declaration.
12908 * dtrace-probe.c (_initialize_dtrace_probe): Add declaration.
12909 * dummy-frame.c (_initialize_dummy_frame): Add declaration.
12910 * dwarf-index-cache.c (_initialize_index_cache): Add declaration.
12911 * dwarf-index-write.c (_initialize_dwarf_index_write): Add declaration.
12912 * dwarf2-frame-tailcall.c (_initialize_tailcall_frame): Add declaration.
12913 * dwarf2-frame.c (_initialize_dwarf2_frame): Add declaration.
12914 * dwarf2expr.c (_initialize_dwarf2expr): Add declaration.
12915 * dwarf2loc.c (_initialize_dwarf2loc): Add declaration.
12916 * dwarf2read.c (_initialize_dwarf2_read): Add declaration.
12917 * elfread.c (_initialize_elfread): Add declaration.
12918 * exec.c (_initialize_exec): Add declaration.
12919 * extension.c (_initialize_extension): Add declaration.
12920 * f-lang.c (_initialize_f_language): Add declaration.
12921 * f-valprint.c (_initialize_f_valprint): Add declaration.
12922 * fbsd-nat.c (_initialize_fbsd_nat): Add declaration.
12923 * fbsd-tdep.c (_initialize_fbsd_tdep): Add declaration.
12924 * filesystem.c (_initialize_filesystem): Add declaration.
12925 * findcmd.c (_initialize_mem_search): Add declaration.
12926 * findvar.c (_initialize_findvar): Add declaration.
12927 * fork-child.c (_initialize_fork_child): Add declaration.
12928 * frame-base.c (_initialize_frame_base): Add declaration.
12929 * frame-unwind.c (_initialize_frame_unwind): Add declaration.
12930 * frame.c (_initialize_frame): Add declaration.
12931 * frv-linux-tdep.c (_initialize_frv_linux_tdep): Add declaration.
12932 * frv-tdep.c (_initialize_frv_tdep): Add declaration.
12933 * ft32-tdep.c (_initialize_ft32_tdep): Add declaration.
12934 * gcore.c (_initialize_gcore): Add declaration.
12935 * gdb-demangle.c (_initialize_gdb_demangle): Add declaration.
12936 * gdb_bfd.c (_initialize_gdb_bfd): Add declaration.
12937 * gdbarch-selftests.c (_initialize_gdbarch_selftests): Add declaration.
12938 * gdbarch.c (_initialize_gdbarch): Add declaration.
12939 * gdbtypes.c (_initialize_gdbtypes): Add declaration.
12940 * gnu-nat.c (_initialize_gnu_nat): Add declaration.
12941 * gnu-v2-abi.c (_initialize_gnu_v2_abi): Add declaration.
12942 * gnu-v3-abi.c (_initialize_gnu_v3_abi): Add declaration.
12943 * go-lang.c (_initialize_go_language): Add declaration.
12944 * go32-nat.c (_initialize_go32_nat): Add declaration.
12945 * guile/guile.c (_initialize_guile): Add declaration.
12946 * h8300-tdep.c (_initialize_h8300_tdep): Add declaration.
12947 * hppa-linux-nat.c (_initialize_hppa_linux_nat): Add declaration.
12948 * hppa-linux-tdep.c (_initialize_hppa_linux_tdep): Add declaration.
12949 * hppa-nbsd-nat.c (_initialize_hppanbsd_nat): Add declaration.
12950 * hppa-nbsd-tdep.c (_initialize_hppanbsd_tdep): Add declaration.
12951 * hppa-obsd-nat.c (_initialize_hppaobsd_nat): Add declaration.
12952 * hppa-obsd-tdep.c (_initialize_hppabsd_tdep): Add declaration.
12953 * hppa-tdep.c (_initialize_hppa_tdep): Add declaration.
12954 * i386-bsd-nat.c (_initialize_i386bsd_nat): Add declaration.
12955 * i386-cygwin-tdep.c (_initialize_i386_cygwin_tdep): Add declaration.
12956 * i386-darwin-nat.c (_initialize_i386_darwin_nat): Add declaration.
12957 * i386-darwin-tdep.c (_initialize_i386_darwin_tdep): Add declaration.
12958 * i386-dicos-tdep.c (_initialize_i386_dicos_tdep): Add declaration.
12959 * i386-fbsd-nat.c (_initialize_i386fbsd_nat): Add declaration.
12960 * i386-fbsd-tdep.c (_initialize_i386fbsd_tdep): Add declaration.
12961 * i386-gnu-nat.c (_initialize_i386gnu_nat): Add declaration.
12962 * i386-gnu-tdep.c (_initialize_i386gnu_tdep): Add declaration.
12963 * i386-go32-tdep.c (_initialize_i386_go32_tdep): Add declaration.
12964 * i386-linux-nat.c (_initialize_i386_linux_nat): Add declaration.
12965 * i386-linux-tdep.c (_initialize_i386_linux_tdep): Add declaration.
12966 * i386-nbsd-nat.c (_initialize_i386nbsd_nat): Add declaration.
12967 * i386-nbsd-tdep.c (_initialize_i386nbsd_tdep): Add declaration.
12968 * i386-nto-tdep.c (_initialize_i386nto_tdep): Add declaration.
12969 * i386-obsd-nat.c (_initialize_i386obsd_nat): Add declaration.
12970 * i386-obsd-tdep.c (_initialize_i386obsd_tdep): Add declaration.
12971 * i386-sol2-nat.c (_initialize_amd64_sol2_nat): Add declaration.
12972 * i386-sol2-tdep.c (_initialize_i386_sol2_tdep): Add declaration.
12973 * i386-tdep.c (_initialize_i386_tdep): Add declaration.
12974 * i386-windows-nat.c (_initialize_i386_windows_nat): Add declaration.
12975 * ia64-libunwind-tdep.c (_initialize_libunwind_frame): Add declaration.
12976 * ia64-linux-nat.c (_initialize_ia64_linux_nat): Add declaration.
12977 * ia64-linux-tdep.c (_initialize_ia64_linux_tdep): Add declaration.
12978 * ia64-tdep.c (_initialize_ia64_tdep): Add declaration.
12979 * ia64-vms-tdep.c (_initialize_ia64_vms_tdep): Add declaration.
12980 * infcall.c (_initialize_infcall): Add declaration.
12981 * infcmd.c (_initialize_infcmd): Add declaration.
12982 * inflow.c (_initialize_inflow): Add declaration.
12983 * infrun.c (_initialize_infrun): Add declaration.
12984 * interps.c (_initialize_interpreter): Add declaration.
12985 * iq2000-tdep.c (_initialize_iq2000_tdep): Add declaration.
12986 * jit.c (_initialize_jit): Add declaration.
12987 * language.c (_initialize_language): Add declaration.
12988 * linux-fork.c (_initialize_linux_fork): Add declaration.
12989 * linux-nat.c (_initialize_linux_nat): Add declaration.
12990 * linux-tdep.c (_initialize_linux_tdep): Add declaration.
12991 * linux-thread-db.c (_initialize_thread_db): Add declaration.
12992 * lm32-tdep.c (_initialize_lm32_tdep): Add declaration.
12993 * m2-lang.c (_initialize_m2_language): Add declaration.
12994 * m32c-tdep.c (_initialize_m32c_tdep): Add declaration.
12995 * m32r-linux-nat.c (_initialize_m32r_linux_nat): Add declaration.
12996 * m32r-linux-tdep.c (_initialize_m32r_linux_tdep): Add declaration.
12997 * m32r-tdep.c (_initialize_m32r_tdep): Add declaration.
12998 * m68hc11-tdep.c (_initialize_m68hc11_tdep): Add declaration.
12999 * m68k-bsd-nat.c (_initialize_m68kbsd_nat): Add declaration.
13000 * m68k-bsd-tdep.c (_initialize_m68kbsd_tdep): Add declaration.
13001 * m68k-linux-nat.c (_initialize_m68k_linux_nat): Add declaration.
13002 * m68k-linux-tdep.c (_initialize_m68k_linux_tdep): Add declaration.
13003 * m68k-tdep.c (_initialize_m68k_tdep): Add declaration.
13004 * machoread.c (_initialize_machoread): Add declaration.
13005 * macrocmd.c (_initialize_macrocmd): Add declaration.
13006 * macroscope.c (_initialize_macroscope): Add declaration.
13007 * maint-test-options.c (_initialize_maint_test_options): Add declaration.
13008 * maint-test-settings.c (_initialize_maint_test_settings): Add declaration.
13009 * maint.c (_initialize_maint_cmds): Add declaration.
13010 * mdebugread.c (_initialize_mdebugread): Add declaration.
13011 * memattr.c (_initialize_mem): Add declaration.
13012 * mep-tdep.c (_initialize_mep_tdep): Add declaration.
13013 * mi/mi-cmd-env.c (_initialize_mi_cmd_env): Add declaration.
13014 * mi/mi-cmds.c (_initialize_mi_cmds): Add declaration.
13015 * mi/mi-interp.c (_initialize_mi_interp): Add declaration.
13016 * mi/mi-main.c (_initialize_mi_main): Add declaration.
13017 * microblaze-linux-tdep.c (_initialize_microblaze_linux_tdep): Add declaration.
13018 * microblaze-tdep.c (_initialize_microblaze_tdep): Add declaration.
13019 * mips-fbsd-nat.c (_initialize_mips_fbsd_nat): Add declaration.
13020 * mips-fbsd-tdep.c (_initialize_mips_fbsd_tdep): Add declaration.
13021 * mips-linux-nat.c (_initialize_mips_linux_nat): Add declaration.
13022 * mips-linux-tdep.c (_initialize_mips_linux_tdep): Add declaration.
13023 * mips-nbsd-nat.c (_initialize_mipsnbsd_nat): Add declaration.
13024 * mips-nbsd-tdep.c (_initialize_mipsnbsd_tdep): Add declaration.
13025 * mips-sde-tdep.c (_initialize_mips_sde_tdep): Add declaration.
13026 * mips-tdep.c (_initialize_mips_tdep): Add declaration.
13027 * mips64-obsd-nat.c (_initialize_mips64obsd_nat): Add declaration.
13028 * mips64-obsd-tdep.c (_initialize_mips64obsd_tdep): Add declaration.
13029 * mipsread.c (_initialize_mipsread): Add declaration.
13030 * mn10300-linux-tdep.c (_initialize_mn10300_linux_tdep): Add declaration.
13031 * mn10300-tdep.c (_initialize_mn10300_tdep): Add declaration.
13032 * moxie-tdep.c (_initialize_moxie_tdep): Add declaration.
13033 * msp430-tdep.c (_initialize_msp430_tdep): Add declaration.
13034 * nds32-tdep.c (_initialize_nds32_tdep): Add declaration.
13035 * nios2-linux-tdep.c (_initialize_nios2_linux_tdep): Add declaration.
13036 * nios2-tdep.c (_initialize_nios2_tdep): Add declaration.
13037 * nto-procfs.c (_initialize_procfs): Add declaration.
13038 * objc-lang.c (_initialize_objc_language): Add declaration.
13039 * observable.c (_initialize_observer): Add declaration.
13040 * opencl-lang.c (_initialize_opencl_language): Add declaration.
13041 * or1k-linux-tdep.c (_initialize_or1k_linux_tdep): Add declaration.
13042 * or1k-tdep.c (_initialize_or1k_tdep): Add declaration.
13043 * osabi.c (_initialize_gdb_osabi): Add declaration.
13044 * osdata.c (_initialize_osdata): Add declaration.
13045 * p-valprint.c (_initialize_pascal_valprint): Add declaration.
13046 * parse.c (_initialize_parse): Add declaration.
13047 * ppc-fbsd-nat.c (_initialize_ppcfbsd_nat): Add declaration.
13048 * ppc-fbsd-tdep.c (_initialize_ppcfbsd_tdep): Add declaration.
13049 * ppc-linux-nat.c (_initialize_ppc_linux_nat): Add declaration.
13050 * ppc-linux-tdep.c (_initialize_ppc_linux_tdep): Add declaration.
13051 * ppc-nbsd-nat.c (_initialize_ppcnbsd_nat): Add declaration.
13052 * ppc-nbsd-tdep.c (_initialize_ppcnbsd_tdep): Add declaration.
13053 * ppc-obsd-nat.c (_initialize_ppcobsd_nat): Add declaration.
13054 * ppc-obsd-tdep.c (_initialize_ppcobsd_tdep): Add declaration.
13055 * printcmd.c (_initialize_printcmd): Add declaration.
13056 * probe.c (_initialize_probe): Add declaration.
13057 * proc-api.c (_initialize_proc_api): Add declaration.
13058 * proc-events.c (_initialize_proc_events): Add declaration.
13059 * proc-service.c (_initialize_proc_service): Add declaration.
13060 * procfs.c (_initialize_procfs): Add declaration.
13061 * producer.c (_initialize_producer): Add declaration.
13062 * psymtab.c (_initialize_psymtab): Add declaration.
13063 * python/python.c (_initialize_python): Add declaration.
13064 * ravenscar-thread.c (_initialize_ravenscar): Add declaration.
13065 * record-btrace.c (_initialize_record_btrace): Add declaration.
13066 * record-full.c (_initialize_record_full): Add declaration.
13067 * record.c (_initialize_record): Add declaration.
13068 * regcache-dump.c (_initialize_regcache_dump): Add declaration.
13069 * regcache.c (_initialize_regcache): Add declaration.
13070 * reggroups.c (_initialize_reggroup): Add declaration.
13071 * remote-notif.c (_initialize_notif): Add declaration.
13072 * remote-sim.c (_initialize_remote_sim): Add declaration.
13073 * remote.c (_initialize_remote): Add declaration.
13074 * reverse.c (_initialize_reverse): Add declaration.
13075 * riscv-fbsd-nat.c (_initialize_riscv_fbsd_nat): Add declaration.
13076 * riscv-fbsd-tdep.c (_initialize_riscv_fbsd_tdep): Add declaration.
13077 * riscv-linux-nat.c (_initialize_riscv_linux_nat): Add declaration.
13078 * riscv-linux-tdep.c (_initialize_riscv_linux_tdep): Add declaration.
13079 * riscv-tdep.c (_initialize_riscv_tdep): Add declaration.
13080 * rl78-tdep.c (_initialize_rl78_tdep): Add declaration.
13081 * rs6000-aix-tdep.c (_initialize_rs6000_aix_tdep): Add declaration.
13082 * rs6000-lynx178-tdep.c (_initialize_rs6000_lynx178_tdep):
13083 Add declaration.
13084 * rs6000-nat.c (_initialize_rs6000_nat): Add declaration.
13085 * rs6000-tdep.c (_initialize_rs6000_tdep): Add declaration.
13086 * run-on-main-thread.c (_initialize_run_on_main_thread): Add declaration.
13087 * rust-exp.y (_initialize_rust_exp): Add declaration.
13088 * rx-tdep.c (_initialize_rx_tdep): Add declaration.
13089 * s12z-tdep.c (_initialize_s12z_tdep): Add declaration.
13090 * s390-linux-nat.c (_initialize_s390_nat): Add declaration.
13091 * s390-linux-tdep.c (_initialize_s390_linux_tdep): Add declaration.
13092 * s390-tdep.c (_initialize_s390_tdep): Add declaration.
13093 * score-tdep.c (_initialize_score_tdep): Add declaration.
13094 * ser-go32.c (_initialize_ser_dos): Add declaration.
13095 * ser-mingw.c (_initialize_ser_windows): Add declaration.
13096 * ser-pipe.c (_initialize_ser_pipe): Add declaration.
13097 * ser-tcp.c (_initialize_ser_tcp): Add declaration.
13098 * ser-uds.c (_initialize_ser_socket): Add declaration.
13099 * ser-unix.c (_initialize_ser_hardwire): Add declaration.
13100 * serial.c (_initialize_serial): Add declaration.
13101 * sh-linux-tdep.c (_initialize_sh_linux_tdep): Add declaration.
13102 * sh-nbsd-nat.c (_initialize_shnbsd_nat): Add declaration.
13103 * sh-nbsd-tdep.c (_initialize_shnbsd_tdep): Add declaration.
13104 * sh-tdep.c (_initialize_sh_tdep): Add declaration.
13105 * skip.c (_initialize_step_skip): Add declaration.
13106 * sol-thread.c (_initialize_sol_thread): Add declaration.
13107 * solib-aix.c (_initialize_solib_aix): Add declaration.
13108 * solib-darwin.c (_initialize_darwin_solib): Add declaration.
13109 * solib-dsbt.c (_initialize_dsbt_solib): Add declaration.
13110 * solib-frv.c (_initialize_frv_solib): Add declaration.
13111 * solib-svr4.c (_initialize_svr4_solib): Add declaration.
13112 * solib-target.c (_initialize_solib_target): Add declaration.
13113 * solib.c (_initialize_solib): Add declaration.
13114 * source-cache.c (_initialize_source_cache): Add declaration.
13115 * source.c (_initialize_source): Add declaration.
13116 * sparc-linux-nat.c (_initialize_sparc_linux_nat): Add declaration.
13117 * sparc-linux-tdep.c (_initialize_sparc_linux_tdep): Add declaration.
13118 * sparc-nat.c (_initialize_sparc_nat): Add declaration.
13119 * sparc-nbsd-nat.c (_initialize_sparcnbsd_nat): Add declaration.
13120 * sparc-nbsd-tdep.c (_initialize_sparcnbsd_tdep): Add declaration.
13121 * sparc-obsd-tdep.c (_initialize_sparc32obsd_tdep): Add declaration.
13122 * sparc-sol2-tdep.c (_initialize_sparc_sol2_tdep): Add declaration.
13123 * sparc-tdep.c (_initialize_sparc_tdep): Add declaration.
13124 * sparc64-fbsd-nat.c (_initialize_sparc64fbsd_nat): Add declaration.
13125 * sparc64-fbsd-tdep.c (_initialize_sparc64fbsd_tdep): Add declaration.
13126 * sparc64-linux-nat.c (_initialize_sparc64_linux_nat): Add declaration.
13127 * sparc64-linux-tdep.c (_initialize_sparc64_linux_tdep): Add declaration.
13128 * sparc64-nat.c (_initialize_sparc64_nat): Add declaration.
13129 * sparc64-nbsd-nat.c (_initialize_sparc64nbsd_nat): Add declaration.
13130 * sparc64-nbsd-tdep.c (_initialize_sparc64nbsd_tdep): Add declaration.
13131 * sparc64-obsd-nat.c (_initialize_sparc64obsd_nat): Add declaration.
13132 * sparc64-obsd-tdep.c (_initialize_sparc64obsd_tdep): Add declaration.
13133 * sparc64-sol2-tdep.c (_initialize_sparc64_sol2_tdep): Add declaration.
13134 * sparc64-tdep.c (_initialize_sparc64_adi_tdep): Add declaration.
13135 * stabsread.c (_initialize_stabsread): Add declaration.
13136 * stack.c (_initialize_stack): Add declaration.
13137 * stap-probe.c (_initialize_stap_probe): Add declaration.
13138 * std-regs.c (_initialize_frame_reg): Add declaration.
13139 * symfile-debug.c (_initialize_symfile_debug): Add declaration.
13140 * symfile-mem.c (_initialize_symfile_mem): Add declaration.
13141 * symfile.c (_initialize_symfile): Add declaration.
13142 * symmisc.c (_initialize_symmisc): Add declaration.
13143 * symtab.c (_initialize_symtab): Add declaration.
13144 * target.c (_initialize_target): Add declaration.
13145 * target-connection.c (_initialize_target_connection): Add
13146 declaration.
13147 * target-dcache.c (_initialize_target_dcache): Add declaration.
13148 * target-descriptions.c (_initialize_target_descriptions): Add declaration.
13149 * thread.c (_initialize_thread): Add declaration.
13150 * tic6x-linux-tdep.c (_initialize_tic6x_linux_tdep): Add declaration.
13151 * tic6x-tdep.c (_initialize_tic6x_tdep): Add declaration.
13152 * tilegx-linux-nat.c (_initialize_tile_linux_nat): Add declaration.
13153 * tilegx-linux-tdep.c (_initialize_tilegx_linux_tdep): Add declaration.
13154 * tilegx-tdep.c (_initialize_tilegx_tdep): Add declaration.
13155 * tracectf.c (_initialize_ctf): Add declaration.
13156 * tracefile-tfile.c (_initialize_tracefile_tfile): Add declaration.
13157 * tracefile.c (_initialize_tracefile): Add declaration.
13158 * tracepoint.c (_initialize_tracepoint): Add declaration.
13159 * tui/tui-hooks.c (_initialize_tui_hooks): Add declaration.
13160 * tui/tui-interp.c (_initialize_tui_interp): Add declaration.
13161 * tui/tui-layout.c (_initialize_tui_layout): Add declaration.
13162 * tui/tui-regs.c (_initialize_tui_regs): Add declaration.
13163 * tui/tui-stack.c (_initialize_tui_stack): Add declaration.
13164 * tui/tui-win.c (_initialize_tui_win): Add declaration.
13165 * tui/tui.c (_initialize_tui): Add declaration.
13166 * typeprint.c (_initialize_typeprint): Add declaration.
13167 * ui-style.c (_initialize_ui_style): Add declaration.
13168 * unittests/array-view-selftests.c (_initialize_array_view_selftests): Add declaration.
13169 * unittests/child-path-selftests.c (_initialize_child_path_selftests): Add declaration.
13170 * unittests/cli-utils-selftests.c (_initialize_cli_utils_selftests): Add declaration.
13171 * unittests/common-utils-selftests.c (_initialize_common_utils_selftests): Add declaration.
13172 * unittests/copy_bitwise-selftests.c (_initialize_copy_bitwise_utils_selftests): Add declaration.
13173 * unittests/environ-selftests.c (_initialize_environ_selftests): Add declaration.
13174 * unittests/filtered_iterator-selftests.c
13175 (_initialize_filtered_iterator_selftests): Add declaration.
13176 * unittests/format_pieces-selftests.c (_initialize_format_pieces_selftests): Add declaration.
13177 * unittests/function-view-selftests.c (_initialize_function_view_selftests): Add declaration.
13178 * unittests/help-doc-selftests.c (_initialize_help_doc_selftests): Add declaration.
13179 * unittests/lookup_name_info-selftests.c (_initialize_lookup_name_info_selftests): Add declaration.
13180 * unittests/main-thread-selftests.c
13181 (_initialize_main_thread_selftests): Add declaration.
13182 * unittests/memory-map-selftests.c (_initialize_memory_map_selftests): Add declaration.
13183 * unittests/memrange-selftests.c (_initialize_memrange_selftests): Add declaration.
13184 * unittests/mkdir-recursive-selftests.c (_initialize_mkdir_recursive_selftests): Add declaration.
13185 * unittests/observable-selftests.c (_initialize_observer_selftest): Add declaration.
13186 * unittests/offset-type-selftests.c (_initialize_offset_type_selftests): Add declaration.
13187 * unittests/optional-selftests.c (_initialize_optional_selftests): Add declaration.
13188 * unittests/parse-connection-spec-selftests.c (_initialize_parse_connection_spec_selftests): Add declaration.
13189 * unittests/rsp-low-selftests.c (_initialize_rsp_low_selftests): Add declaration.
13190 * unittests/scoped_fd-selftests.c (_initialize_scoped_fd_selftests): Add declaration.
13191 * unittests/scoped_mmap-selftests.c (_initialize_scoped_mmap_selftests): Add declaration.
13192 * unittests/scoped_restore-selftests.c (_initialize_scoped_restore_selftests): Add declaration.
13193 * unittests/string_view-selftests.c (_initialize_string_view_selftests): Add declaration.
13194 * unittests/style-selftests.c (_initialize_style_selftest): Add declaration.
13195 * unittests/tracepoint-selftests.c (_initialize_tracepoint_selftests): Add declaration.
13196 * unittests/tui-selftests.c (_initialize_tui_selftest): Add
13197 declaration.
13198 * unittests/unpack-selftests.c (_initialize_unpack_selftests): Add declaration.
13199 * unittests/utils-selftests.c (_initialize_utils_selftests): Add declaration.
13200 * unittests/vec-utils-selftests.c (_initialize_vec_utils_selftests): Add declaration.
13201 * unittests/xml-utils-selftests.c (_initialize_xml_utils): Add declaration.
13202 * user-regs.c (_initialize_user_regs): Add declaration.
13203 * utils.c (_initialize_utils): Add declaration.
13204 * v850-tdep.c (_initialize_v850_tdep): Add declaration.
13205 * valops.c (_initialize_valops): Add declaration.
13206 * valprint.c (_initialize_valprint): Add declaration.
13207 * value.c (_initialize_values): Add declaration.
13208 * varobj.c (_initialize_varobj): Add declaration.
13209 * vax-bsd-nat.c (_initialize_vaxbsd_nat): Add declaration.
13210 * vax-nbsd-tdep.c (_initialize_vaxnbsd_tdep): Add declaration.
13211 * vax-tdep.c (_initialize_vax_tdep): Add declaration.
13212 * windows-nat.c (_initialize_windows_nat): Add declaration.
13213 (_initialize_check_for_gdb_ini): Add declaration.
13214 (_initialize_loadable): Add declaration.
13215 * windows-tdep.c (_initialize_windows_tdep): Add declaration.
13216 * x86-bsd-nat.c (_initialize_x86_bsd_nat): Add declaration.
13217 * x86-linux-nat.c (_initialize_x86_linux_nat): Add declaration.
13218 * xcoffread.c (_initialize_xcoffread): Add declaration.
13219 * xml-support.c (_initialize_xml_support): Add declaration.
13220 * xstormy16-tdep.c (_initialize_xstormy16_tdep): Add declaration.
13221 * xtensa-linux-nat.c (_initialize_xtensa_linux_nat): Add declaration.
13222 * xtensa-linux-tdep.c (_initialize_xtensa_linux_tdep): Add declaration.
13223 * xtensa-tdep.c (_initialize_xtensa_tdep): Add declaration.
13224
13225 2020-01-13 Simon Marchi <simon.marchi@polymtl.ca>
13226
13227 * regformats/regdat.sh: Generate declaration for init function.
13228
13229 2020-01-13 Simon Marchi <simon.marchi@polymtl.ca>
13230
13231 * remote-sim.c (next_pid, INITIAL_PID, sim_inferior_data): Move
13232 up.
13233 (gdbsim_target) <get_inferior_data_by_ptid, resume_one_inferior,
13234 close_one_inferior>: New methods.
13235 (get_sim_inferior_data_by_ptid): Move to gdbsim_target,
13236 pass down target to find_inferior_pid.
13237 (gdbsim_target::fetch_registers, gdbsim_target::store_registers):
13238 Pass down target to find_inferior_ptid.
13239 (gdbsim_target::create_inferior): Pass down target to
13240 add_thread_silent.
13241 (gdbsim_close_inferior): Move to gdbsim_close_inferior, pass
13242 target down to find_inferior_ptid and switch_to_thread.
13243 (gdbsim_target::close): Update to call close_one_inferior.
13244 (struct resume_data): Remove.
13245 (gdbsim_resume_inferior): Move to gdbsim_target. Take arguments
13246 directly, rather than through a void pointer.
13247 (gdbsim_target::resume): Update to call resume_one_inferior.
13248
13249 2020-01-12 Simon Marchi <simon.marchi@polymtl.ca>
13250
13251 * gdbsupport/gdb_wait.c: Include gdb_wait.h.
13252
13253 2020-01-12 Pedro Alves <palves@redhat.com>
13254
13255 * bsd-kvm.c (bsd_kvm_target::close): Call exit_inferior_silent
13256 directly for the current inferior instead of
13257 discard_all_inferiors.
13258 (discard_all_inferiors): Delete.
13259
13260 2020-01-11 Tom Tromey <tom@tromey.com>
13261
13262 * tui/tui-wingeneral.c (box_win): Check cli_styling.
13263 * tui/tui-winsource.c (tui_source_window_base::refill): Use
13264 deprecated_safe_get_selected_frame.
13265
13266 2020-01-10 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
13267
13268 * inferior.c (print_inferior): Switch inferior before printing it.
13269
13270 2020-01-10 Aleksandar Paunovic <aleksandar.paunovic@intel.com>
13271 Pedro Alves <palves@redhat.com>
13272
13273 * progspace-and-thread.c (switch_to_program_space_and_thread):
13274 Assert there's an inferior for PSPACE. Use
13275 switch_to_inferior_no_thread to switch the inferior too.
13276 * progspace.c (program_space::~program_space): Call
13277 clear_symtab_users here, with SYMFILE_DEFER_BP_RESET.
13278 (program_space::free_all_objfiles): Don't call clear_symtab_users
13279 here.
13280 * symfile.c (symbol_file_clear): Call clear_symtab_users here.
13281
13282 2020-01-10 Pedro Alves <palves@redhat.com>
13283
13284 * NEWS: Mention multi-target debugging, "info connections", and
13285 "add-inferior -no-connection".
13286
13287 2020-01-10 Pedro Alves <palves@redhat.com>
13288
13289 * infrun.c: Include "target-connection.h".
13290 (check_multi_target_resumption): New.
13291 (proceed): Call it.
13292 * target-connection.c (make_target_connection_string): Make
13293 extern.
13294 * target-connection.h (make_target_connection_string): Declare.
13295
13296 2020-01-10 Pedro Alves <palves@redhat.com>
13297
13298 * Makefile.in (COMMON_SFILES): Add target-connection.c.
13299 * inferior.c (uiout_field_connection): New function.
13300 (print_inferior): Add new "connection-id" column.
13301 (add_inferior_command): Show connection number/string of added
13302 inferior.
13303 * process-stratum-target.h
13304 (process_stratum_target::connection_string): New virtual method.
13305 (process_stratum_target::connection_number): New field.
13306 * remote.c (remote_target::connection_string): New override.
13307 * target-connection.c: New file.
13308 * target-connection.h: New file.
13309 * target.c (decref_target): Remove process_stratum targets from
13310 the connection list.
13311 (target_stack::push): Add process_stratum targets to the
13312 connection list.
13313
13314 2020-01-10 Pedro Alves <palves@redhat.com>
13315
13316 Revert:
13317 2016-04-12 Pedro Alves <palves@redhat.com>
13318 * serial.c (serial_open, serial_fdopen_ops, do_serial_close):
13319 Remove references to name.
13320 * serial.h (struct serial) <name>: Delete.
13321
13322 2020-01-10 Pedro Alves <palves@redhat.com>
13323
13324 * gdbarch-selftests.c (register_to_value_test): Remove "target
13325 already pushed" check.
13326
13327 2020-01-10 Pedro Alves <palves@redhat.com>
13328 John Baldwin <jhb@FreeBSD.org>
13329
13330 * aarch64-linux-nat.c
13331 (aarch64_linux_nat_target::thread_architecture): Adjust.
13332 * ada-tasks.c (print_ada_task_info): Adjust find_thread_ptid call.
13333 (task_command_1): Likewise.
13334 * aix-thread.c (sync_threadlists, aix_thread_target::resume)
13335 (aix_thread_target::wait, aix_thread_target::fetch_registers)
13336 (aix_thread_target::store_registers)
13337 (aix_thread_target::thread_alive): Adjust.
13338 * amd64-fbsd-tdep.c: Include "inferior.h".
13339 (amd64fbsd_get_thread_local_address): Pass down target.
13340 * amd64-linux-nat.c (ps_get_thread_area): Use ps_prochandle
13341 thread's gdbarch instead of target_gdbarch.
13342 * break-catch-sig.c (signal_catchpoint_print_it): Adjust call to
13343 get_last_target_status.
13344 * break-catch-syscall.c (print_it_catch_syscall): Likewise.
13345 * breakpoint.c (breakpoints_should_be_inserted_now): Consider all
13346 inferiors.
13347 (update_inserted_breakpoint_locations): Skip if inferiors with no
13348 execution.
13349 (update_global_location_list): When handling moribund locations,
13350 find representative inferior for location's pspace, and use thread
13351 count of its process_stratum target.
13352 * bsd-kvm.c (bsd_kvm_target_open): Pass target down.
13353 * bsd-uthread.c (bsd_uthread_target::wait): Use
13354 as_process_stratum_target and adjust thread_change_ptid and
13355 add_thread calls.
13356 (bsd_uthread_target::update_thread_list): Use
13357 as_process_stratum_target and adjust find_thread_ptid,
13358 thread_change_ptid and add_thread calls.
13359 * btrace.c (maint_btrace_packet_history_cmd): Adjust
13360 find_thread_ptid call.
13361 * corelow.c (add_to_thread_list): Adjust add_thread call.
13362 (core_target_open): Adjust add_thread_silent and thread_count
13363 calls.
13364 (core_target::pid_to_str): Adjust find_inferior_ptid call.
13365 * ctf.c (ctf_target_open): Adjust add_thread_silent call.
13366 * event-top.c (async_disconnect): Pop targets from all inferiors.
13367 * exec.c (add_target_sections): Push exec target on all inferiors
13368 sharing the program space.
13369 (remove_target_sections): Remove the exec target from all
13370 inferiors sharing the program space.
13371 (exec_on_vfork): New.
13372 * exec.h (exec_on_vfork): Declare.
13373 * fbsd-nat.c (fbsd_add_threads): Add fbsd_nat_target parameter.
13374 Pass it down.
13375 (fbsd_nat_target::update_thread_list): Adjust.
13376 (fbsd_nat_target::resume): Adjust.
13377 (fbsd_handle_debug_trap): Add fbsd_nat_target parameter. Pass it
13378 down.
13379 (fbsd_nat_target::wait, fbsd_nat_target::post_attach): Adjust.
13380 * fbsd-tdep.c (fbsd_corefile_thread): Adjust
13381 get_thread_arch_regcache call.
13382 * fork-child.c (gdb_startup_inferior): Pass target down to
13383 startup_inferior and set_executing.
13384 * gdbthread.h (struct process_stratum_target): Forward declare.
13385 (add_thread, add_thread_silent, add_thread_with_info)
13386 (in_thread_list): Add process_stratum_target parameter.
13387 (find_thread_ptid(inferior*, ptid_t)): New overload.
13388 (find_thread_ptid, thread_change_ptid): Add process_stratum_target
13389 parameter.
13390 (all_threads()): Delete overload.
13391 (all_threads, all_non_exited_threads): Add process_stratum_target
13392 parameter.
13393 (all_threads_safe): Use brace initialization.
13394 (thread_count): Add process_stratum_target parameter.
13395 (set_resumed, set_running, set_stop_requested, set_executing)
13396 (threads_are_executing, finish_thread_state): Add
13397 process_stratum_target parameter.
13398 (switch_to_thread): Use is_current_thread.
13399 * i386-fbsd-tdep.c: Include "inferior.h".
13400 (i386fbsd_get_thread_local_address): Pass down target.
13401 * i386-linux-nat.c (i386_linux_nat_target::low_resume): Adjust.
13402 * inf-child.c (inf_child_target::maybe_unpush_target): Remove
13403 have_inferiors check.
13404 * inf-ptrace.c (inf_ptrace_target::create_inferior)
13405 (inf_ptrace_target::attach): Adjust.
13406 * infcall.c (run_inferior_call): Adjust.
13407 * infcmd.c (run_command_1): Pass target to
13408 scoped_finish_thread_state.
13409 (proceed_thread_callback): Skip inferiors with no execution.
13410 (continue_command): Rename 'all_threads' local to avoid hiding
13411 'all_threads' function. Adjust get_last_target_status call.
13412 (prepare_one_step): Adjust set_running call.
13413 (signal_command): Use user_visible_resume_target. Compare thread
13414 pointers instead of inferior_ptid.
13415 (info_program_command): Adjust to pass down target.
13416 (attach_command): Mark target's 'thread_executing' flag.
13417 (stop_current_target_threads_ns): New, factored out from ...
13418 (interrupt_target_1): ... this. Switch inferior before making
13419 target calls.
13420 * inferior-iter.h
13421 (struct all_inferiors_iterator, struct all_inferiors_range)
13422 (struct all_inferiors_safe_range)
13423 (struct all_non_exited_inferiors_range): Filter on
13424 process_stratum_target too. Remove explicit.
13425 * inferior.c (inferior::inferior): Push dummy target on target
13426 stack.
13427 (find_inferior_pid, find_inferior_ptid, number_of_live_inferiors):
13428 Add process_stratum_target parameter, and pass it down.
13429 (have_live_inferiors): Adjust.
13430 (switch_to_inferior_and_push_target): New.
13431 (add_inferior_command, clone_inferior_command): Handle
13432 "-no-connection" parameter. Use
13433 switch_to_inferior_and_push_target.
13434 (_initialize_inferior): Mention "-no-connection" option in
13435 the help of "add-inferior" and "clone-inferior" commands.
13436 * inferior.h: Include "process-stratum-target.h".
13437 (interrupt_target_1): Use bool.
13438 (struct inferior) <push_target, unpush_target, target_is_pushed,
13439 find_target_beneath, top_target, process_target, target_at,
13440 m_stack>: New.
13441 (discard_all_inferiors): Delete.
13442 (find_inferior_pid, find_inferior_ptid, number_of_live_inferiors)
13443 (all_inferiors, all_non_exited_inferiors): Add
13444 process_stratum_target parameter.
13445 * infrun.c: Include "gdb_select.h" and <unordered_map>.
13446 (target_last_proc_target): New global.
13447 (follow_fork_inferior): Push target on new inferior. Pass target
13448 to add_thread_silent. Call exec_on_vfork. Handle target's
13449 reference count.
13450 (follow_fork): Adjust get_last_target_status call. Also consider
13451 target.
13452 (follow_exec): Push target on new inferior.
13453 (struct execution_control_state) <target>: New field.
13454 (user_visible_resume_target): New.
13455 (do_target_resume): Call target_async.
13456 (resume_1): Set target's threads_executing flag. Consider resume
13457 target.
13458 (commit_resume_all_targets): New.
13459 (proceed): Also consider resume target. Skip threads of inferiors
13460 with no execution. Commit resumtion in all targets.
13461 (start_remote): Pass current inferior to wait_for_inferior.
13462 (infrun_thread_stop_requested): Consider target as well. Pass
13463 thread_info pointer to clear_inline_frame_state instead of ptid.
13464 (infrun_thread_thread_exit): Consider target as well.
13465 (random_pending_event_thread): New inferior parameter. Use it.
13466 (do_target_wait): Rename to ...
13467 (do_target_wait_1): ... this. Add inferior parameter, and pass it
13468 down.
13469 (threads_are_resumed_pending_p, do_target_wait): New.
13470 (prepare_for_detach): Adjust calls.
13471 (wait_for_inferior): New inferior parameter. Handle it. Use
13472 do_target_wait_1 instead of do_target_wait.
13473 (fetch_inferior_event): Adjust. Switch to representative
13474 inferior. Pass target down.
13475 (set_last_target_status): Add process_stratum_target parameter.
13476 Save target in global.
13477 (get_last_target_status): Add process_stratum_target parameter and
13478 handle it.
13479 (nullify_last_target_wait_ptid): Clear 'target_last_proc_target'.
13480 (context_switch): Check inferior_ptid == null_ptid before calling
13481 inferior_thread().
13482 (get_inferior_stop_soon): Pass down target.
13483 (wait_one): Rename to ...
13484 (poll_one_curr_target): ... this.
13485 (struct wait_one_event): New.
13486 (wait_one): New.
13487 (stop_all_threads): Adjust.
13488 (handle_no_resumed, handle_inferior_event): Adjust to consider the
13489 event's target.
13490 (switch_back_to_stepped_thread): Also consider target.
13491 (print_stop_event): Update.
13492 (normal_stop): Update. Also consider the resume target.
13493 * infrun.h (wait_for_inferior): Remove declaration.
13494 (user_visible_resume_target): New declaration.
13495 (get_last_target_status, set_last_target_status): New
13496 process_stratum_target parameter.
13497 * inline-frame.c (clear_inline_frame_state(ptid_t)): Add
13498 process_stratum_target parameter, and use it.
13499 (clear_inline_frame_state (thread_info*)): New.
13500 * inline-frame.c (clear_inline_frame_state(ptid_t)): Add
13501 process_stratum_target parameter.
13502 (clear_inline_frame_state (thread_info*)): Declare.
13503 * linux-fork.c (delete_checkpoint_command): Pass target down to
13504 find_thread_ptid.
13505 (checkpoint_command): Adjust.
13506 * linux-nat.c (linux_nat_target::follow_fork): Switch to thread
13507 instead of just tweaking inferior_ptid.
13508 (linux_nat_switch_fork): Pass target down to thread_change_ptid.
13509 (exit_lwp): Pass target down to find_thread_ptid.
13510 (attach_proc_task_lwp_callback): Pass target down to
13511 add_thread/set_running/set_executing.
13512 (linux_nat_target::attach): Pass target down to
13513 thread_change_ptid.
13514 (get_detach_signal): Pass target down to find_thread_ptid.
13515 Consider last target status's target.
13516 (linux_resume_one_lwp_throw, resume_lwp)
13517 (linux_handle_syscall_trap, linux_handle_extended_wait, wait_lwp)
13518 (stop_wait_callback, save_stop_reason, linux_nat_filter_event)
13519 (linux_nat_wait_1, resume_stopped_resumed_lwps): Pass target down.
13520 (linux_nat_target::async_wait_fd): New.
13521 (linux_nat_stop_lwp, linux_nat_target::thread_address_space): Pass
13522 target down.
13523 * linux-nat.h (linux_nat_target::async_wait_fd): Declare.
13524 * linux-tdep.c (get_thread_arch_regcache): Pass target down.
13525 * linux-thread-db.c (struct thread_db_info::process_target): New
13526 field.
13527 (add_thread_db_info): Save target.
13528 (get_thread_db_info): New process_stratum_target parameter. Also
13529 match target.
13530 (delete_thread_db_info): New process_stratum_target parameter.
13531 Also match target.
13532 (thread_from_lwp): Adjust to pass down target.
13533 (thread_db_notice_clone): Pass down target.
13534 (check_thread_db_callback): Pass down target.
13535 (try_thread_db_load_1): Always push the thread_db target.
13536 (try_thread_db_load, record_thread): Pass target down.
13537 (thread_db_target::detach): Pass target down. Always unpush the
13538 thread_db target.
13539 (thread_db_target::wait, thread_db_target::mourn_inferior): Pass
13540 target down. Always unpush the thread_db target.
13541 (find_new_threads_callback, thread_db_find_new_threads_2)
13542 (thread_db_target::update_thread_list): Pass target down.
13543 (thread_db_target::pid_to_str): Pass current inferior down.
13544 (thread_db_target::get_thread_local_address): Pass target down.
13545 (thread_db_target::resume, maintenance_check_libthread_db): Pass
13546 target down.
13547 * nto-procfs.c (nto_procfs_target::update_thread_list): Adjust.
13548 * procfs.c (procfs_target::procfs_init_inferior): Declare.
13549 (proc_set_current_signal, do_attach, procfs_target::wait): Adjust.
13550 (procfs_init_inferior): Rename to ...
13551 (procfs_target::procfs_init_inferior): ... this and adjust.
13552 (procfs_target::create_inferior, procfs_notice_thread)
13553 (procfs_do_thread_registers): Adjust.
13554 * ppc-fbsd-tdep.c: Include "inferior.h".
13555 (ppcfbsd_get_thread_local_address): Pass down target.
13556 * proc-service.c (ps_xfer_memory): Switch current inferior and
13557 program space as well.
13558 (get_ps_regcache): Pass target down.
13559 * process-stratum-target.c
13560 (process_stratum_target::thread_address_space)
13561 (process_stratum_target::thread_architecture): Pass target down.
13562 * process-stratum-target.h
13563 (process_stratum_target::threads_executing): New field.
13564 (as_process_stratum_target): New.
13565 * ravenscar-thread.c
13566 (ravenscar_thread_target::update_inferior_ptid): Pass target down.
13567 (ravenscar_thread_target::wait, ravenscar_add_thread): Pass target
13568 down.
13569 * record-btrace.c (record_btrace_target::info_record): Adjust.
13570 (record_btrace_target::record_method)
13571 (record_btrace_target::record_is_replaying)
13572 (record_btrace_target::fetch_registers)
13573 (get_thread_current_frame_id, record_btrace_target::resume)
13574 (record_btrace_target::wait, record_btrace_target::stop): Pass
13575 target down.
13576 * record-full.c (record_full_wait_1): Switch to event thread.
13577 Pass target down.
13578 * regcache.c (regcache::regcache)
13579 (get_thread_arch_aspace_regcache, get_thread_arch_regcache): Add
13580 process_stratum_target parameter and handle it.
13581 (current_thread_target): New global.
13582 (get_thread_regcache): Add process_stratum_target parameter and
13583 handle it. Switch inferior before calling target method.
13584 (get_thread_regcache): Pass target down.
13585 (get_thread_regcache_for_ptid): Pass target down.
13586 (registers_changed_ptid): Add process_stratum_target parameter and
13587 handle it.
13588 (registers_changed_thread, registers_changed): Pass target down.
13589 (test_get_thread_arch_aspace_regcache): New.
13590 (current_regcache_test): Define a couple local test_target_ops
13591 instances and use them for testing.
13592 (readwrite_regcache): Pass process_stratum_target parameter.
13593 (cooked_read_test, cooked_write_test): Pass mock_target down.
13594 * regcache.h (get_thread_regcache, get_thread_arch_regcache)
13595 (get_thread_arch_aspace_regcache): Add process_stratum_target
13596 parameter.
13597 (regcache::target): New method.
13598 (regcache::regcache, regcache::get_thread_arch_aspace_regcache)
13599 (regcache::registers_changed_ptid): Add process_stratum_target
13600 parameter.
13601 (regcache::m_target): New field.
13602 (registers_changed_ptid): Add process_stratum_target parameter.
13603 * remote.c (remote_state::supports_vCont_probed): New field.
13604 (remote_target::async_wait_fd): New method.
13605 (remote_unpush_and_throw): Add remote_target parameter.
13606 (get_current_remote_target): Adjust.
13607 (remote_target::remote_add_inferior): Push target.
13608 (remote_target::remote_add_thread)
13609 (remote_target::remote_notice_new_inferior)
13610 (get_remote_thread_info): Pass target down.
13611 (remote_target::update_thread_list): Skip threads of inferiors
13612 bound to other targets. (remote_target::close): Don't discard
13613 inferiors. (remote_target::add_current_inferior_and_thread)
13614 (remote_target::process_initial_stop_replies)
13615 (remote_target::start_remote)
13616 (remote_target::remote_serial_quit_handler): Pass down target.
13617 (remote_target::remote_unpush_target): New remote_target
13618 parameter. Unpush the target from all inferiors.
13619 (remote_target::remote_unpush_and_throw): New remote_target
13620 parameter. Pass it down.
13621 (remote_target::open_1): Check whether the current inferior has
13622 execution instead of checking whether any inferior is live. Pass
13623 target down.
13624 (remote_target::remote_detach_1): Pass down target. Use
13625 remote_unpush_target.
13626 (extended_remote_target::attach): Pass down target.
13627 (remote_target::remote_vcont_probe): Set supports_vCont_probed.
13628 (remote_target::append_resumption): Pass down target.
13629 (remote_target::append_pending_thread_resumptions)
13630 (remote_target::remote_resume_with_hc, remote_target::resume)
13631 (remote_target::commit_resume): Pass down target.
13632 (remote_target::remote_stop_ns): Check supports_vCont_probed.
13633 (remote_target::interrupt_query)
13634 (remote_target::remove_new_fork_children)
13635 (remote_target::check_pending_events_prevent_wildcard_vcont)
13636 (remote_target::remote_parse_stop_reply)
13637 (remote_target::process_stop_reply): Pass down target.
13638 (first_remote_resumed_thread): New remote_target parameter. Pass
13639 it down.
13640 (remote_target::wait_as): Pass down target.
13641 (unpush_and_perror): New remote_target parameter. Pass it down.
13642 (remote_target::readchar, remote_target::remote_serial_write)
13643 (remote_target::getpkt_or_notif_sane_1)
13644 (remote_target::kill_new_fork_children, remote_target::kill): Pass
13645 down target.
13646 (remote_target::mourn_inferior): Pass down target. Use
13647 remote_unpush_target.
13648 (remote_target::core_of_thread)
13649 (remote_target::remote_btrace_maybe_reopen): Pass down target.
13650 (remote_target::pid_to_exec_file)
13651 (remote_target::thread_handle_to_thread_info): Pass down target.
13652 (remote_target::async_wait_fd): New.
13653 * riscv-fbsd-tdep.c: Include "inferior.h".
13654 (riscv_fbsd_get_thread_local_address): Pass down target.
13655 * sol2-tdep.c (sol2_core_pid_to_str): Pass down target.
13656 * sol-thread.c (sol_thread_target::wait, ps_lgetregs, ps_lsetregs)
13657 (ps_lgetfpregs, ps_lsetfpregs, sol_update_thread_list_callback):
13658 Adjust.
13659 * solib-spu.c (spu_skip_standalone_loader): Pass down target.
13660 * solib-svr4.c (enable_break): Pass down target.
13661 * spu-multiarch.c (parse_spufs_run): Pass down target.
13662 * spu-tdep.c (spu2ppu_sniffer): Pass down target.
13663 * target-delegates.c: Regenerate.
13664 * target.c (g_target_stack): Delete.
13665 (current_top_target): Return the current inferior's top target.
13666 (target_has_execution_1): Refer to the passed-in inferior's top
13667 target.
13668 (target_supports_terminal_ours): Check whether the initial
13669 inferior was already created.
13670 (decref_target): New.
13671 (target_stack::push): Incref/decref the target.
13672 (push_target, push_target, unpush_target): Adjust.
13673 (target_stack::unpush): Defref target.
13674 (target_is_pushed): Return bool. Adjust to refer to the current
13675 inferior's target stack.
13676 (dispose_inferior): Delete, and inline parts ...
13677 (target_preopen): ... here. Only dispose of the current inferior.
13678 (target_detach): Hold strong target reference while detaching.
13679 Pass target down.
13680 (target_thread_name): Add assertion.
13681 (target_resume): Pass down target.
13682 (target_ops::beneath, find_target_at): Adjust to refer to the
13683 current inferior's target stack.
13684 (get_dummy_target): New.
13685 (target_pass_ctrlc): Pass the Ctrl-C to the first inferior that
13686 has a thread running.
13687 (initialize_targets): Rename to ...
13688 (_initialize_target): ... this.
13689 * target.h: Include "gdbsupport/refcounted-object.h".
13690 (struct target_ops): Inherit refcounted_object.
13691 (target_ops::shortname, target_ops::longname): Make const.
13692 (target_ops::async_wait_fd): New method.
13693 (decref_target): Declare.
13694 (struct target_ops_ref_policy): New.
13695 (target_ops_ref): New typedef.
13696 (get_dummy_target): Declare function.
13697 (target_is_pushed): Return bool.
13698 * thread-iter.c (all_matching_threads_iterator::m_inf_matches)
13699 (all_matching_threads_iterator::all_matching_threads_iterator):
13700 Handle filter target.
13701 * thread-iter.h (struct all_matching_threads_iterator, struct
13702 all_matching_threads_range, class all_non_exited_threads_range):
13703 Filter by target too. Remove explicit.
13704 * thread.c (threads_executing): Delete.
13705 (inferior_thread): Pass down current inferior.
13706 (clear_thread_inferior_resources): Pass down thread pointer
13707 instead of ptid_t.
13708 (add_thread_silent, add_thread_with_info, add_thread): Add
13709 process_stratum_target parameter. Use it for thread and inferior
13710 searches.
13711 (is_current_thread): New.
13712 (thread_info::deletable): Use it.
13713 (find_thread_ptid, thread_count, in_thread_list)
13714 (thread_change_ptid, set_resumed, set_running): New
13715 process_stratum_target parameter. Pass it down.
13716 (set_executing): New process_stratum_target parameter. Pass it
13717 down. Adjust reference to 'threads_executing'.
13718 (threads_are_executing): New process_stratum_target parameter.
13719 Adjust reference to 'threads_executing'.
13720 (set_stop_requested, finish_thread_state): New
13721 process_stratum_target parameter. Pass it down.
13722 (switch_to_thread): Also match inferior.
13723 (switch_to_thread): New process_stratum_target parameter. Pass it
13724 down.
13725 (update_threads_executing): Reimplement.
13726 * top.c (quit_force): Pop targets from all inferior.
13727 (gdb_init): Don't call initialize_targets.
13728 * windows-nat.c (windows_nat_target) <get_windows_debug_event>:
13729 Declare.
13730 (windows_add_thread, windows_delete_thread): Adjust.
13731 (get_windows_debug_event): Rename to ...
13732 (windows_nat_target::get_windows_debug_event): ... this. Adjust.
13733 * tracefile-tfile.c (tfile_target_open): Pass down target.
13734 * gdbsupport/common-gdbthread.h (struct process_stratum_target):
13735 Forward declare.
13736 (switch_to_thread): Add process_stratum_target parameter.
13737 * mi/mi-interp.c (mi_on_resume_1): Add process_stratum_target
13738 parameter. Use it.
13739 (mi_on_resume): Pass target down.
13740 * nat/fork-inferior.c (startup_inferior): Add
13741 process_stratum_target parameter. Pass it down.
13742 * nat/fork-inferior.h (startup_inferior): Add
13743 process_stratum_target parameter.
13744 * python/py-threadevent.c (py_get_event_thread): Pass target down.
13745
13746 2020-01-10 Pedro Alves <palves@redhat.com>
13747
13748 * remote.c (remote_target::start_remote): Don't set inferior_ptid
13749 directly. Instead find the first thread in the thread list and
13750 use switch_to_thread.
13751
13752 2020-01-10 Pedro Alves <palves@redhat.com>
13753
13754 * remote.c (remote_target::remote_add_inferior): Don't bind a
13755 process to the current inferior if the current inferior is already
13756 bound to a process.
13757
13758 2020-01-10 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
13759 Pedro Alves <palves@redhat.com>
13760
13761 * remote.c (remote_target::remote_parse_stop_reply) <W/X packets>:
13762 If no process is specified, return null_ptid instead of
13763 inferior_ptid.
13764 (remote_target::wait_as): Handle TARGET_WAITKIND_EXITED /
13765 TARGET_WAITKIND_SIGNALLED with no pid.
13766
13767 2020-01-10 Pedro Alves <palves@redhat.com>
13768
13769 * remote.c (first_remote_resumed_thread): New.
13770 (remote_target::wait_as): Use it as default event_ptid instead of
13771 inferior_ptid.
13772
13773 2020-01-10 Pedro Alves <palves@redhat.com>
13774
13775 * infrun.c (handle_no_resumed): Use all_non_exited_inferiors.
13776
13777 2020-01-10 Pedro Alves <palves@redhat.com>
13778
13779 * tracefile-tfile.c (tfile_target::close): Assert that trace_fd is
13780 not -1.
13781
13782 2020-01-10 Pedro Alves <palves@redhat.com>
13783
13784 * break-catch-sig.c (signal_catchpoint_print_it): Don't pass a
13785 ptid to get_last_target_status.
13786 * break-catch-syscall.c (print_it_catch_syscall): Don't pass a
13787 ptid to get_last_target_status.
13788 * infcmd.c (continue_command): Don't pass a target_waitstatus to
13789 get_last_target_status.
13790 (info_program_command): Don't pass a target_waitstatus to
13791 get_last_target_status.
13792 * infrun.c (init_wait_for_inferior): Use
13793 nullify_last_target_wait_ptid.
13794 (get_last_target_status): Handle nullptr arguments.
13795 (nullify_last_target_wait_ptid): Clear target_last_waitstatus.
13796 (print_stop_event): Don't pass a ptid to get_last_target_status.
13797 (normal_stop): Don't pass a ptid to get_last_target_status.
13798 * infrun.h (get_last_target_status, set_last_target_status): Move
13799 comments here and update.
13800 (nullify_last_target_wait_ptid): Declare.
13801 * linux-fork.c (fork_load_infrun_state): Remove local extern
13802 declaration of nullify_last_target_wait_ptid.
13803 * linux-nat.c (get_detach_signal): Don't pass a target_waitstatus
13804 to get_last_target_status.
13805
13806 2020-01-10 Pedro Alves <palves@redhat.com>
13807
13808 * gdbthread.h (scoped_restore_current_thread)
13809 <dont_restore, restore, m_dont_restore>: Declare.
13810 * thread.c (thread_alive): Add assertion. Return bool.
13811 (switch_to_thread_if_alive): New.
13812 (prune_threads): Switch inferior/thread.
13813 (print_thread_info_1): Switch thread before calling target methods.
13814 (scoped_restore_current_thread::restore): New, factored out from
13815 ...
13816 (scoped_restore_current_thread::~scoped_restore_current_thread):
13817 ... this.
13818 (scoped_restore_current_thread::scoped_restore_current_thread):
13819 Add assertion.
13820 (thread_apply_all_command, thread_select): Use
13821 switch_to_thread_if_alive.
13822 * infrun.c (proceed, restart_threads, handle_signal_stop)
13823 (switch_back_to_stepped_thread): Switch current thread before
13824 calling target methods.
13825
13826 2020-01-10 Pedro Alves <palves@redhat.com>
13827
13828 * inferior.c (switch_to_inferior_no_thread): New function,
13829 factored out from ...
13830 (inferior_command): ... here.
13831 * inferior.h (switch_to_inferior_no_thread): Declare.
13832 * mi/mi-main.c (run_one_inferior): Use
13833 switch_to_inferior_no_thread.
13834
13835 2020-01-10 Pedro Alves <palves@redhat.com>
13836
13837 * infcmd.c (kill_command): Remove dead code.
13838
13839 2020-01-10 Pedro Alves <palves@redhat.com>
13840
13841 * remote.c (remote_target::mourn_inferior): No longer check
13842 whether the target is running.
13843
13844 2020-01-10 Pedro Alves <palves@redhat.com>
13845
13846 * corelow.c (core_target::has_execution): Change parameter type to
13847 inferior pointer.
13848 * inferior.c (number_of_live_inferiors): Use
13849 inferior::has_execution instead of target_has_execution_1.
13850 * inferior.h (inferior::has_execution): New.
13851 * linux-thread-db.c (thread_db_target::update_thread_list): Use
13852 inferior::has_execution instead of target_has_execution_1.
13853 * process-stratum-target.c
13854 (process_stratum_target::has_execution): Change parameter type to
13855 inferior pointer. Check the inferior's PID instead of
13856 inferior_ptid.
13857 * process-stratum-target.h
13858 (process_stratum_target::has_execution): Change parameter type to
13859 inferior pointer.
13860 * record-full.c (record_full_core_target::has_execution): Change
13861 parameter type to inferior pointer.
13862 * target.c (target_has_execution_1): Change parameter type to
13863 inferior pointer.
13864 (target_has_execution_current): Adjust.
13865 * target.h (target_ops::has_execution): Change parameter type to
13866 inferior pointer.
13867 (target_has_execution_1): Change parameter type to inferior
13868 pointer. Change return type to bool.
13869 * tracefile.h (tracefile_target::has_execution): Change parameter
13870 type to inferior pointer.
13871
13872 2020-01-10 Pedro Alves <palves@redhat.com>
13873
13874 * exceptions.c (print_flush): Remove current_top_target() check.
13875
13876 2020-01-10 Pedro Alves <palves@redhat.com>
13877
13878 * remote.c (show_remote_exec_file): Show the current inferior's
13879 exec-file instead of the command variable's value.
13880
13881 2020-01-10 Pedro Alves <palves@redhat.com>
13882
13883 * record-full.c (record_full_resume_ptid): New global.
13884 (record_full_target::resume): Set it.
13885 (record_full_wait_1): Use record_full_resume_ptid instead of
13886 inferior_ptid.
13887
13888 2020-01-10 Pedro Alves <palves@redhat.com>
13889
13890 * gdbthread.h (scoped_restore_current_thread)
13891 <dont_restore, restore, m_dont_restore>: Declare.
13892 * thread.c (thread_alive): Add assertion. Return bool.
13893 (switch_to_thread_if_alive): New.
13894 (prune_threads): Switch inferior/thread.
13895 (print_thread_info_1): Switch thread before calling target methods.
13896 (scoped_restore_current_thread::restore): New, factored out from
13897 ...
13898 (scoped_restore_current_thread::~scoped_restore_current_thread):
13899 ... this.
13900 (scoped_restore_current_thread::scoped_restore_current_thread):
13901 Add assertion.
13902 (thread_apply_all_command, thread_select): Use
13903 switch_to_thread_if_alive.
13904
13905 2020-01-10 George Barrett <bob@bob131.so>
13906
13907 * stap-probe.c (stap_modify_semaphore): Don't check for null
13908 semaphores.
13909 (stap_probe::set_semaphore, stap_probe::clear_semaphore): Check
13910 for null semaphores.
13911
13912 2020-01-09 Andrew Burgess <andrew.burgess@embecosm.com>
13913
13914 * tui/tui-source.c (tui_source_window::do_scroll_vertical): Update
13915 all source windows, and maintain horizontal scroll status while
13916 doing so.
13917
13918 2020-01-09 Tom Tromey <tom@tromey.com>
13919
13920 PR tui/18932:
13921 * tui/tui-source.c (tui_source_window::do_scroll_vertical): Call
13922 update_source_window, not print_source_lines.
13923
13924 2020-01-09 Andrew Burgess <andrew.burgess@embecosm.com>
13925
13926 * tui/tui.c (tui_enable): Register tui hooks after calling
13927 tui_display_main.
13928
13929 2020-01-09 Christian Biesinger <cbiesinger@google.com>
13930
13931 * gdbsupport/common-defs.h: Don't define _FORTIFY_SOURCE on MinGW.
13932
13933 2020-01-08 Simon Marchi <simon.marchi@efficios.com>
13934
13935 * thread.c (print_thread_info_1): Fix indentation.
13936
13937 2020-01-09 Christian Biesinger <cbiesinger@google.com>
13938
13939 * symtab.c (general_symbol_info::compute_and_set_names): Move the
13940 unique_xmalloc_ptr outside the if to always free the demangled name.
13941
13942 2020-01-08 Tom Tromey <tromey@adacore.com>
13943
13944 * xcoffread.c (enter_line_range, read_xcoff_symtab)
13945 (process_xcoff_symbol, xcoff_symfile_offsets): Update.
13946 * symtab.h (MSYMBOL_VALUE_ADDRESS): Update.
13947 (struct section_offsets, ANOFFSET, SIZEOF_N_SECTION_OFFSETS):
13948 Remove.
13949 (section_offsets): New typedef.
13950 * symtab.c (fixup_section, get_msymbol_address): Update.
13951 * symmisc.c (dump_msymbols): Update.
13952 * symfile.h (relative_addr_info_to_section_offsets)
13953 (symfile_map_offsets_to_segments): Update.
13954 * symfile.c (build_section_addr_info_from_objfile)
13955 (init_objfile_sect_indices): Update.
13956 (struct place_section_arg): Change type of "offsets".
13957 (place_section): Update.
13958 (relative_addr_info_to_section_offsets): Change type of
13959 "section_offsets". Remove "num_sections" parameter.
13960 (default_symfile_offsets, syms_from_objfile_1)
13961 (set_objfile_default_section_offset): Update.
13962 (reread_symbols): No need to preserve section offsets by hand.
13963 (symfile_map_offsets_to_segments): Change type of "offsets".
13964 * stap-probe.c (relocate_address): Update.
13965 * stabsread.h (process_one_symbol): Update.
13966 * solib-target.c (struct lm_info_target) <offsets>: Change type.
13967 (solib_target_relocate_section_addresses): Update.
13968 * solib-svr4.c (enable_break, svr4_relocate_main_executable):
13969 Update.
13970 * solib-frv.c (frv_relocate_main_executable): Update.
13971 * solib-dsbt.c (dsbt_relocate_main_executable): Update.
13972 * solib-aix.c (solib_aix_get_section_offsets): Change return
13973 type.
13974 (solib_aix_solib_create_inferior_hook): Update.
13975 * remote.c (remote_target::get_offsets): Update.
13976 * psymtab.c (find_pc_sect_psymtab): Update.
13977 * psympriv.h (struct partial_symbol) <address, text_low,
13978 text_high>: Update.
13979 * objfiles.h (obj_section_offset): Update.
13980 (struct objfile) <section_offsets>: Change type.
13981 <num_sections>: Remove.
13982 (objfile_relocate): Update.
13983 * objfiles.c (entry_point_address_query): Update
13984 (relocate_one_symbol): Change type of "section_offsets".
13985 (objfile_relocate1, objfile_relocate1): Change type of
13986 "new_offsets".
13987 (objfile_rebase1): Update.
13988 * mipsread.c (mipscoff_symfile_read): Update.
13989 (read_alphacoff_dynamic_symtab): Remove "section_offsets"
13990 parameter.
13991 * mdebugread.c (parse_symbol): Change type of "section_offsets".
13992 (parse_external, psymtab_to_symtab_1): Update.
13993 * machoread.c (macho_symfile_offsets): Update.
13994 * ia64-tdep.c (ia64_find_unwind_table): Update.
13995 * hppa-tdep.c (read_unwind_info): Update.
13996 * hppa-bsd-tdep.c (hppabsd_find_global_pointer): Update.
13997 * dwarf2read.c (create_addrmap_from_index)
13998 (create_addrmap_from_aranges, dw2_find_pc_sect_compunit_symtab)
13999 (process_psymtab_comp_unit_reader, add_partial_symbol)
14000 (add_partial_subprogram, process_full_comp_unit)
14001 (read_file_scope, read_func_scope, read_lexical_block_scope)
14002 (read_call_site_scope, dwarf2_rnglists_process)
14003 (dwarf2_ranges_process, dwarf2_ranges_read)
14004 (dwarf_decode_lines_1, var_decode_location, new_symbol)
14005 (dwarf2_fetch_die_loc_sect_off, dwarf2_per_cu_text_offset):
14006 Update.
14007 * dwarf2-frame.c (execute_cfa_program, dwarf2_frame_find_fde):
14008 Update.
14009 * dtrace-probe.c (dtrace_probe::get_relocated_address): Update.
14010 * dbxread.c (read_dbx_symtab, read_ofile_symtab): Update.
14011 (process_one_symbol): Change type of "section_offsets".
14012 * ctfread.c (get_objfile_text_range): Update.
14013 * coffread.c (coff_symtab_read, enter_linenos)
14014 (process_coff_symbol): Update.
14015 * coff-pe-read.c (add_pe_forwarded_sym): Update.
14016 * amd64-windows-tdep.c (amd64_windows_find_unwind_info): Update.
14017
14018 2020-01-08 Tom Tromey <tromey@adacore.com>
14019
14020 * dwarf2read.c (parse_macro_definition): Use std::string.
14021 (parse_macro_definition): Likewise.
14022
14023 2020-01-08 Tom Tromey <tromey@adacore.com>
14024
14025 * dwarf2read.c (abbrev_table_read_table): Use std::vector.
14026 (ATTR_ALLOC_CHUNK): Remove.
14027
14028 2020-01-08 Tom Tromey <tromey@adacore.com>
14029
14030 * dwarf2read.c (fixup_go_packaging): Use unique_xmalloc_ptr.
14031
14032 2020-01-08 Tom Tromey <tromey@adacore.com>
14033
14034 * dwarf2read.c (add_partial_symbol): Use unique_xmalloc_ptr.
14035 (dwarf2_compute_name, open_dwo_file): Likewise.
14036 (process_enumeration_scope): Use std::vector.
14037 (guess_partial_die_structure_name): Use unique_xmalloc_ptr.
14038 (partial_die_info::fixup, dwarf2_start_subfile)
14039 (guess_full_die_structure_name, dwarf2_name): Likewise.
14040 (determine_prefix): Update.
14041 (guess_full_die_structure_name): Make return type const.
14042 (partial_die_full_name): Return unique_xmalloc_ptr.
14043 (DW_FIELD_ALLOC_CHUNK): Remove.
14044
14045 2020-01-07 Tom Tromey <tromey@adacore.com>
14046
14047 PR build/24937:
14048 * stap-probe.c (class stap_static_probe_ops): Add constructor.
14049
14050 2020-01-02 Jon Turney <jon.turney@dronecode.org.uk>
14051
14052 * cli/cli-style.c: Set cli_styling to 'true' in the Cygwin build.
14053
14054 2020-01-06 Andrew Burgess <andrew.burgess@embecosm.com>
14055
14056 * stack.c (print_frame_info): Move disassemble_next_line code
14057 inside source_print block.
14058
14059 2020-01-06 Eli Zaretskii <eliz@gnu.org>
14060
14061 * gdbsupport/gdb_wait.c: Include <signal.h> instead of
14062 gdb/signals.h, as we are now using native signal symbols.
14063
14064 2020-01-06 Shahab Vahedi <shahab@synopsys.com>
14065
14066 * tui/tui-disasm.c (tui_disasm_window::addr_is_displayed): Avoid
14067 overflow by an early check of content vs threshold.
14068 * tui/tui-source.c (tui_source_window::line_is_displayed):
14069 Likewise.
14070
14071 2020-01-06 Eli Zaretskii <eliz@gnu.org>
14072
14073 * NEWS: Mention the recent fix of $_exitsignal on MS-Windows.
14074
14075 2020-01-02 Jon Turney <jon.turney@dronecode.org.uk>
14076
14077 * coff-pe-read.c (read_pe_exported_syms): Don't try to read the
14078 export table if no section contains it's RVA.
14079
14080 2020-01-06 Eli Zaretskii <eliz@gnu.org>
14081
14082 * windows-tdep.c: Fix a typo in WINDOWS_SIGABRT.
14083
14084 2020-01-06 Hannes Domani <ssbssa@yahoo.de>
14085
14086 * source.c (print_source_lines_base): Set last_line_listed.
14087
14088 2020-01-06 Shahab Vahedi <shahab@synopsys.com>
14089
14090 * tui/tui-disasm.c: Remove trailing spaces.
14091
14092 2020-01-06 Eli Zaretskii <eliz@gnu.org>
14093 Pedro Alves <palves@redhat.com>
14094
14095 * Makefile.in (COMMON_SFILES): Add gdbsupport/gdb_wait.c.
14096 * windows-tdep.c: New enumeration of WINDOWS_SIG* signals.
14097 (windows_gdb_signal_to_target): New function, uses the above
14098 enumeration to convert GDB internal signal codes to equivalent
14099 Windows codes.
14100 (windows_init_abi): Call set_gdbarch_gdb_signal_to_target.
14101 * windows-nat.c: Include "gdb_wait.h".
14102 (get_windows_debug_event): Extract the fatal exception from the
14103 exit status and convert to the equivalent Posix signal number.
14104 * cli/cli-cmds.c (exit_status_set_internal_vars): Account for the
14105 possibility that WTERMSIG returns GDB_SIGNAL_UNKNOWN.
14106 * gdbsupport/gdb_wait.c: New file, implements
14107 windows_status_to_termsig.
14108 * gdbsupport/gdb_wait.h (WIFEXITED, WIFSIGNALED, WEXITSTATUS)
14109 (WTERMSIG) [__MINGW32__]: Separate definitions for MinGW.
14110
14111 2020-01-05 Andrew Burgess <andrew.burgess@embecosm.com>
14112
14113 * tui/tui-layout.c (tui_add_win_to_layout): Use tui_set_layout not
14114 show_layout.
14115
14116 2020-01-05 Luis Machado <luis.machado@linaro.org>
14117
14118 * aarch64-linux-nat.c
14119 (aarch64_linux_nat_target::thread_architecture): Use bfd_arch_aarch64
14120 and bfd_mach_aarch64.
14121
14122 2020-01-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
14123
14124 * ui-file.c (stdio_file::can_emit_style_escape)
14125 (tee_file::can_emit_style_escape): Ensure style is used also on
14126 gdb_stderr when gdb_stderr is a tty supporting styling, similarly
14127 to gdb_stdout.
14128 * main.c (set_gdb_data_directory): Use file style to output the
14129 warning that the given pathname is not a directory.
14130 * top.c (show_history_filename, gdb_safe_append_history)
14131 (show_gdb_datadir): Use file style.
14132
14133 2020-01-03 Hannes Domani <ssbssa@yahoo.de>
14134
14135 * solib-target.c (struct lm_info_target):
14136 Change offsets to be a unique_xmalloc_ptr.
14137 (solib_target_relocate_section_addresses): Update.
14138
14139 2020-01-03 Hannes Domani <ssbssa@yahoo.de>
14140
14141 * windows-nat.c (windows_clear_solib): Free so_list linked list.
14142
14143 2020-01-03 Bernd Edlinger <bernd.edlinger@hotmail.de>
14144
14145 * MAINTAINERS (Write After Approval): Add myself.
14146
14147 2020-01-02 Luis Machado <luis.machado@linaro.org>
14148
14149 * proc-service.c (get_ps_regcache): Remove reference to obsolete
14150 Cell BE architecture.
14151 * target.h (struct target_ops) <thread_architecture>: Likewise.
14152
14153 2020-01-01 Hannes Domani <ssbssa@yahoo.de>
14154
14155 * Makefile.in: Use INSTALL_PROGRAM_ENV.
14156
14157 2020-01-01 Hannes Domani <ssbssa@yahoo.de>
14158
14159 * MAINTAINERS (Write After Approval): Add myself.
14160
14161 2020-01-01 Joel Brobecker <brobecker@adacore.com>
14162
14163 * gdbarch.sh: Update copyright year range of generated files.
14164
14165 2020-01-01 Joel Brobecker <brobecker@adacore.com>
14166
14167 Update copyright year range in all GDB files.
14168
14169 2020-01-01 Joel Brobecker <brobecker@adacore.com>
14170
14171 * copyright.py: Convert to Python 3.
14172
14173 2020-01-01 Joel Brobecker <brobecker@adacore.com>
14174
14175 * copyright.py: Adapt after move of gnulib directory from gdb
14176 directory to toplevel directory.
14177
14178 2020-01-01 Joel Brobecker <brobecker@adacore.com>
14179
14180 * copyright.py (main): Exit if run from the wrong directory.
14181
14182 2020-01-01 Joel Brobecker <brobecker@adacore.com>
14183
14184 * top.c (print_gdb_version): Change copyright year to 2020.
14185
14186 2020-01-01 Joel Brobecker <brobecker@adacore.com>
14187
14188 * config/djgpp/fnchange.lst: Add entry for gdb/ChangeLog-2019.
14189
14190 For older changes see ChangeLog-2019.
14191 \f
14192 Local Variables:
14193 mode: change-log
14194 left-margin: 8
14195 fill-column: 74
14196 version-control: never
14197 coding: utf-8
14198 End:
This page took 0.29668 seconds and 5 git commands to generate.