Enable support to Intel Keylocker instructions
[deliverable/binutils-gdb.git] / gdb / ChangeLog
CommitLineData
5dd918d9
TT
12020-09-21 Tom Tromey <tromey@adacore.com>
2
3 * sparc-tdep.c (sparc32_skip_prologue): Use
4 skip_prologue_using_sal.
5
5486c517
TT
62020-09-19 Tom Tromey <tom@tromey.com>
7
8 * symfile.c (add_section_size_callback): Remove.
9 (load_one_section): Rename from load_section_callback. Change
10 parameters.
11 (generic_load): Use foreach.
12
8a6bb1d1
TT
132020-09-19 Tom Tromey <tom@tromey.com>
14
15 * exec.c (add_to_section_table): Remove.
16 (build_section_table): Use foreach.
17
08f93a1a
TT
182020-09-19 Tom Tromey <tom@tromey.com>
19
20 * elfread.c (elf_locate_sections): Change parameters.
21 (elf_symfile_read): Use foreach.
22
03cd72b8
TT
232020-09-19 Tom Tromey <tom@tromey.com>
24
25 * cli/cli-dump.c (struct callback_data): Remove.
26 (restore_one_section): Rename from restore_section_callback.
27 Change parameters.
28 (restore_binary_file): Change parameters.
29 (restore_command): Use foreach.
30
f4f2b85f
TT
312020-09-19 Tom Tromey <tom@tromey.com>
32
33 * gcore.c (make_output_phdrs): Remove 'ignored' parameter.
34 (gcore_copy_callback): Likewise.
35 (gcore_memory_sections): Use foreach.
36
b35c1d1c
TT
372020-09-19 Tom Tromey <tom@tromey.com>
38
39 * osabi.h (generic_elf_osabi_sniff_abi_tag_sections): Update.
40 * osabi.c (generic_elf_osabi_sniff_abi_tag_sections): Change
41 parameters.
42 (generic_elf_osabi_sniffer): Use foreach.
43 * mips-sde-tdep.c (mips_sde_elf_osabi_sniffer): Use foreach.
44 * arm-tdep.c (arm_elf_osabi_sniffer): Use foreach.
45
5bb6e9dd
TT
462020-09-19 Tom Tromey <tom@tromey.com>
47
48 * dwarf2/read.c (locate_dwz_sections): Change parameters.
49 (dwarf2_get_dwz_file): Use foreach.
50 (dwarf2_locate_dwo_sections): Change parameters.
51 (open_and_init_dwo_file): Use foreach.
52 (dwarf2_locate_common_dwp_sections): Change parameters.
53 (open_and_init_dwp_file): Use foreach.
54
ad7277da
TT
552020-09-19 Tom Tromey <tom@tromey.com>
56
57 * symfile.h: (find_lowest_section): Don't declare.
58 * symfile.c (find_lowest_section): Now static. Change
59 parameters.
60 (struct place_section_arg): Remove.
61 (place_section): Change parameters.
62 (addr_info_make_relative): Use foreach.
63 (symfile_dummy_outputs): Remove.
64 (default_symfile_relocate): Use foreach.
65
cb814f2e
TT
662020-09-19 Tom Tromey <tom@tromey.com>
67
68 * objfiles.c (add_to_objfile_sections): Rename from
69 add_to_objfile_sections_full.
70 (add_to_objfile_sections): Remove.
71 (build_objfile_section_table): Use foreach.
72
3cabfd26
TT
732020-09-19 Tom Tromey <tom@tromey.com>
74
75 * stap-probe.c (get_stap_base_address_1): Remove.
76 (get_stap_base_address): Use foreach.
77
1ce51eb5
TT
782020-09-19 Tom Tromey <tom@tromey.com>
79
80 * gdb_bfd.c (free_one_bfd_section): Remove 'abfd' and 'ignore'
81 parameters.
82 (gdb_bfd_close_or_warn): Use foreach.
83
a190fabb
TT
842020-09-19 Tom Tromey <tom@tromey.com>
85
86 * corelow.c (add_to_thread_list): Change parameters.
87 (core_target_open): Use foreach.
88
cafb0d81
TT
892020-09-19 Tom Tromey <tom@tromey.com>
90
91 * gdb_bfd.h (gdb_bfd_sections): New overload. Fix formatting of
92 existing function.
93
c8d5abea
AB
942020-09-19 Andrew Burgess <andrew.burgess@embecosm.com>
95
96 * f-valprint.c (f77_print_array_1): Adjust printing of whitespace
97 for arrays.
98
6d816919
AB
992020-09-19 Andrew Burgess <andrew.burgess@embecosm.com>
100
101 * eval.c: Remove 'f-lang.h' include.
102 (value_f90_subarray): Moved to f-lang.c.
103 (eval_call): Renamed to...
104 (evaluate_subexp_do_call): ...this, is no longer static, header
105 comment moved into header file.
106 (evaluate_funcall): Update call to eval_call.
107 (skip_undetermined_arglist): Moved to f-lang.c.
108 (fortran_value_subarray): Likewise.
109 (evaluate_subexp_standard): OP_F77_UNDETERMINED_ARGLIST handling
110 moved to evaluate_subexp_f.
111 (calc_f77_array_dims): Moved to f-lang.c
112 * expprint.c (print_subexp_funcall): New function.
113 (print_subexp_standard): OP_F77_UNDETERMINED_ARGLIST handling
114 moved to print_subexp_f, OP_FUNCALL uses new function.
115 (dump_subexp_body_funcall): New function.
116 (dump_subexp_body_standard): OP_F77_UNDETERMINED_ARGLIST handling
117 moved to dump_subexp_f, OP_FUNCALL uses new function.
118 * expression.h (evaluate_subexp_do_call): Declare.
119 * f-lang.c (value_f90_subarray): Moved from eval.c.
120 (skip_undetermined_arglist): Likewise.
121 (calc_f77_array_dims): Likewise.
122 (fortran_value_subarray): Likewise.
123 (evaluate_subexp_f): Add OP_F77_UNDETERMINED_ARGLIST support.
124 (operator_length_f): Likewise.
125 (print_subexp_f): Likewise.
126 (dump_subexp_body_f): Likewise.
127 * fortran-operator.def (OP_F77_UNDETERMINED_ARGLIST): Move
128 declaration of this operation to here.
129 * parse.c (operator_length_standard): OP_F77_UNDETERMINED_ARGLIST
130 support moved to operator_length_f.
131 * parser-defs.h (dump_subexp_body_funcall): Declare.
132 (print_subexp_funcall): Declare.
133 * std-operator.def (OP_F77_UNDETERMINED_ARGLIST): Moved to
134 fortran-operator.def.
135
8c37706a
AB
1362020-09-19 Andrew Burgess <andrew.burgess@embecosm.com>
137
138 * eval.c (fortran_value_subarray): New function, content is taken
139 from...
140 (evaluate_subexp_standard): ...here, in two places. Now arrays
141 and strings both call the new function.
142 (calc_f77_array_dims): Add header comment, handle strings.
143
14f9473c
VC
1442020-09-18 Victor Collod <vcollod@nvidia.com>
145
146 PR gdb/26635
147 * i386-tdep.c (i386_skip_endbr): Add a helper function to skip endbr.
148 (i386_analyze_prologue): Call i386_skip_endbr.
149
b60cea74
TT
1502020-09-18 Tom Tromey <tromey@adacore.com>
151
152 * windows-nat.c (struct windows_nat_target) <wait>: Update.
153 (windows_nat_target::wait): Update.
154 * target/wait.h (enum target_wait_flag): New. Use
155 DEF_ENUM_FLAGS_TYPE.
156 * target/target.h (target_wait): Change type of options.
157 * target.h (target_options_to_string, default_target_wait):
158 Update.
159 (struct target_ops) <wait>: Change type of options.
160 * target.c (target_wait, default_target_wait, do_option): Change
161 type of "options".
162 (target_options_to_string): Likewise.
163 * target-delegates.c: Rebuild.
164 * target-debug.h (target_debug_print_target_wait_flags): Rename
165 from target_debug_print_options.
166 * sol-thread.c (class sol_thread_target) <wait>: Update.
167 (sol_thread_target::wait): Update.
168 * rs6000-nat.c (class rs6000_nat_target) <wait>: Update.
169 (rs6000_nat_target::wait): Update.
170 * remote.c (class remote_target) <wait, wait_ns, wait_as>:
171 Update.
172 (remote_target::wait_ns, remote_target::wait_as): Change type of
173 "options".
174 (remote_target::wait): Update.
175 * remote-sim.c (struct gdbsim_target) <wait>: Update.
176 (gdbsim_target::wait): Update.
177 * record-full.c (class record_full_base_target) <wait>: Update.
178 (record_full_wait_1): Change type of "options".
179 (record_full_base_target::wait): Update.
180 * record-btrace.c (class record_btrace_target) <wait>: Update.
181 (record_btrace_target::wait): Update.
182 * ravenscar-thread.c (struct ravenscar_thread_target) <wait>:
183 Update.
184 (ravenscar_thread_target::wait): Update.
185 * procfs.c (class procfs_target) <wait>: Update.
186 (procfs_target::wait): Update.
187 * obsd-nat.h (class obsd_nat_target) <wait>: Update.
188 * obsd-nat.c (obsd_nat_target::wait): Update.
189 * nto-procfs.c (struct nto_procfs_target) <wait>: Update.
190 (nto_procfs_target::wait): Update.
191 * nbsd-nat.h (struct nbsd_nat_target) <wait>: Update.
192 * nbsd-nat.c (nbsd_wait): Change type of "options".
193 (nbsd_nat_target::wait): Update.
194 * linux-thread-db.c (class thread_db_target) <wait>: Update.
195 (thread_db_target::wait): Update.
196 * linux-nat.h (class linux_nat_target) <wait>: Update.
197 * linux-nat.c (linux_nat_target::wait): Update.
198 (linux_nat_wait_1): Update.
199 * infrun.c (do_target_wait_1, do_target_wait): Change type of
200 "options".
201 * inf-ptrace.h (struct inf_ptrace_target) <wait>: Update.
202 * inf-ptrace.c (inf_ptrace_target::wait): Update.
203 * go32-nat.c (struct go32_nat_target) <wait>: Update.
204 (go32_nat_target::wait): Update.
205 * gnu-nat.h (struct gnu_nat_target) <wait>: Update.
206 * gnu-nat.c (gnu_nat_target::wait): Update.
207 * fbsd-nat.h (class fbsd_nat_target) <wait>: Update.
208 * fbsd-nat.c (fbsd_nat_target::wait): Update.
209 * darwin-nat.h (class darwin_nat_target) <wait>: Update.
210 * darwin-nat.c (darwin_nat_target::wait): Update.
211 * bsd-uthread.c (struct bsd_uthread_target) <wait>: Update.
212 (bsd_uthread_target::wait): Update.
213 * aix-thread.c (class aix_thread_target) <wait>: Update.
214 (aix_thread_target::wait): Update.
215
0295dde6
AB
2162020-09-18 Andrew Burgess <andrew.burgess@embecosm.com>
217
218 * compile/compile-object-run.c (create_copied_type_recursive): New
219 function.
220 (compile_object_run): Use new function.
221
d3483b43
JT
2222020-08-21 Jon Turney <jon.turney@dronecode.org.uk>
223
224 * NEWS: Mention x86_64 Cygwin core file support.
225
e7d612ad
JT
2262020-07-01 Jon Turney <jon.turney@dronecode.org.uk>
227
228 * windows-tdep.c (NOTE_INFO_MODULE, NOTE_INFO_MODULE64): Define.
229 (core_process_module_section): Handle NOTE_INFO_MODULE64.
230
aff9d387
JT
2312020-07-01 Jon Turney <jon.turney@dronecode.org.uk>
232
62a5151b
JT
233 * windows-tdep.h: Add prototypes.
234 * i386-windows-tdep.c(windows_core_xfer_shared_libraries): Move.
235 (i386_windows_core_pid_to_str): Move and rename ...
236 * windows-tdep.c (windows_core_xfer_shared_libraries): ... to here
237 (windows_core_pid_to_str): ... and here.
238 * amd64-windows-tdep.c (amd64_windows_init_abi_common): Register here.
239
2402020-07-01 Jon Turney <jon.turney@dronecode.org.uk>
aff9d387
JT
241 * amd64-windows-tdep.c(amd64_windows_gregset_reg_offset): Add.
242 (amd64_windows_init_abi_common): ... and register.
243
7d155da3
JT
2442020-07-01 Jon Turney <jon.turney@dronecode.org.uk>
245
246 * amd64-windows-tdep.c (amd64_cygwin_core_osabi_sniffer): New.
247 (_initialize_amd64_windows_tdep): Register amd64_cygwin_core_osabi_sniffer.
248
e8ef12b9
PA
2492020-09-18 Pedro Alves <pedro@palves.net>
250
251 PR gdb/26631
252 * thread.c (thread_find_command): Switch inferior before calling
253 target methods.
254
c1e1314d
TT
2552020-09-17 Tom Tromey <tromey@adacore.com>
256
257 * tic6x-tdep.c (tic6x_gdbarch_init): Update.
258 * target-descriptions.h (struct tdesc_arch_data_deleter): New.
259 (tdesc_arch_data_up): New typedef.
260 (tdesc_use_registers, tdesc_data_alloc): Update.
261 (tdesc_data_cleanup): Don't declare.
262 * target-descriptions.c (tdesc_data_alloc): Return a
263 tdesc_arch_data_up.
264 (tdesc_arch_data_deleter::operator()): Rename from
265 tdesc_data_cleanup. Change argument type.
266 (tdesc_use_registers): Change early_data to an rvalue reference.
267 (tdesc_use_registers): Don't use delete.
268 * sparc-tdep.c (sparc32_gdbarch_init): Update.
269 * s390-tdep.c (s390_gdbarch_init): Update.
270 * rx-tdep.c (rx_gdbarch_init): Update.
271 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
272 * riscv-tdep.c (riscv_gdbarch_init): Update.
273 * or1k-tdep.c (or1k_gdbarch_init): Update.
274 * nios2-tdep.c (nios2_gdbarch_init): Update.
275 * nds32-tdep.c (nds32_gdbarch_init): Update.
276 * mips-tdep.c (mips_gdbarch_init): Update.
277 * microblaze-tdep.c (microblaze_gdbarch_init): Update.
278 * m68k-tdep.c (m68k_gdbarch_init): Update.
279 * i386-tdep.c (i386_gdbarch_init): Update.
280 * arm-tdep.c (arm_gdbarch_init): Update.
281 * arc-tdep.c (arc_tdesc_init): Update.
282 (arc_gdbarch_init): Update.
283 * aarch64-tdep.c (aarch64_gdbarch_init): Update.
284
0363df3d
HD
2852020-09-17 Hannes Domani <ssbssa@yahoo.de>
286
287 * windows-nat.c (ctrl_c_handler): Use 32bit DbgUiRemoteBreakin
288 for WOW64 processes.
289
280a9412
TT
2902020-09-17 Tom Tromey <tom@tromey.com>
291
292 * dwarf2/read.c (compute_compunit_symtab_includes): Use htab_up.
293
6108fd18
TT
2942020-09-17 Tom Tromey <tom@tromey.com>
295
296 * value.c (preserve_values): Update.
297 * python/py-type.c (save_objfile_types): Update.
298 * guile/scm-type.c (save_objfile_types): Update.
299 * gdbtypes.h (create_copied_types_hash): Return htab_up.
300 * gdbtypes.c (create_copied_types_hash): Return htab_up.
301 * compile/compile-object-run.c (compile_object_run): Update.
302
fa9b1164
TT
3032020-09-17 Tom Tromey <tom@tromey.com>
304
305 * typeprint.h (class typedef_hash_table) <~typedef_hash_table>:
306 Remove.
307 <m_table>: Now htab_up.
308 * typeprint.c (typedef_hash_table::recursively_update)
309 (typedef_hash_table::add_template_parameters)
310 (typedef_hash_table::typedef_hash_table): Update.
311 (typedef_hash_table::~typedef_hash_table): Remove.
312 (typedef_hash_table::typedef_hash_table)
313 (typedef_hash_table::find_global_typedef)
314 (typedef_hash_table::find_typedef): Update.
315
eb53f105
TT
3162020-09-17 Tom Tromey <tom@tromey.com>
317
318 * target-descriptions.c (tdesc_use_registers): Use htab_up.
319
7a8a5d47
TT
3202020-09-17 Tom Tromey <tom@tromey.com>
321
322 * linespec.c (class decode_compound_collector)
323 <~decode_compound_collector>: Remove.
324 <m_unique_syms>: Now htab_up.
325 (decode_compound_collector::operator ()): Update.
326 (class symtab_collector) <~symtab_collector>: Remove.
327 <m_symtab_table>: Now htab_up.
328 (symtab_collector::operator ()): Update.
329
99032cfc
TT
3302020-09-17 Tom Tromey <tom@tromey.com>
331
332 * filename-seen-cache.c (filename_seen_cache::filename_seen_cache)
333 (filename_seen_cache::clear): Update.
334 (~filename_seen_cache): Remove.
335 (filename_seen_cache::seen): Update.
336 * filename-seen-cache.h (class filename_seen_cache) <m_tab>: Now
337 htab_up.
338 <~filename_seen_cache>: Remove.
339 <traverse>: Update.
340
32580f6d
TT
3412020-09-17 Tom Tromey <tom@tromey.com>
342
343 * completer.c (completion_tracker::discard_completions)
344 (completion_tracker::~completion_tracker)
345 (completion_tracker::maybe_add_completion)
346 (completion_tracker::remove_completion)
347 (completion_tracker::recompute_lowest_common_denominator)
348 (completion_tracker::build_completion_result): Update.
349 * completer.h (class completion_tracker) <have_completions>:
350 Update.
351 <m_entries_hash>: Now htab_up.
352
c1fb9836
TT
3532020-09-17 Tom Tromey <tom@tromey.com>
354
355 * breakpoint.c (ambiguous_names_p): Use htab_up.
356
88f07206
TT
3572020-09-17 Tom Tromey <tom@tromey.com>
358
359 * auto-load.c (struct auto_load_pspace_info)
360 <~auto_load_pspace_info, auto_load_pspace_info>: Remove.
361 <loaded_script_files, loaded_script_texts>: Change type to
362 htab_up.
363 (~auto_load_pspace_info) Remove.
364 (init_loaded_scripts_info, maybe_add_script_file)
365 (maybe_add_script_text, auto_load_info_scripts): Update.
366
9519b2ee
TT
3672020-09-17 Tom Tromey <tromey@adacore.com>
368
369 * c-exp.y (name_obstack): Now static.
370
d2cd4113
CC
3712020-09-17 Chungyi Chi <demonic@csie.io>
372
373 * riscv-tdep.c (riscv-insn::decode): Fix recorded insn type.
374
b650a282
SM
3752020-09-16 Simon Marchi <simon.marchi@efficios.com>
376
377 * breakpoint.h (init_catchpoint): Change int parameter to bool.
378 (add_solib_catchpoint): Likewise.
379 * breakpoint.c (struct solib_catchpoint) <is_load>: Change type
380 to bool.
381 (add_solib_catchpoint): Change int parameter/variable to bool.
382 (catch_load_or_unload): Likewise.
383 (init_catchpoint): Likewise.
384 (create_fork_vfork_event_catchpoint): Likewise.
385 (catch_fork_command_1): Likewise.
386 (catch_exec_command_1): Likewise.
387
4d0bcfcf
SM
3882020-09-16 Simon Marchi <simon.marchi@efficios.com>
389
390 * gdb-gdb.py.in (class StructTypePrettyPrinter) <to_string>:
391 Change instance_flags to m_instance_flags.
392
fe830662
TT
3932020-09-16 Tom Tromey <tromey@adacore.com>
394
395 PR gdb/26598:
396 * infrun.c (fill_in_stop_func): Use find_pc_partial_function_sym.
397
fe5ddfc3
JB
3982020-09-16 John Baldwin <jhb@FreeBSD.org>
399
400 * fbsd-nat.c (fbsd_nat_target::wait): Always check for
401 PL_FLAG_EXEC.
402 (fbsd_nat_target::insert_exec_catchpoint)
403 (fbsd_nat_target::remove_exec_catchpoint): Always define.
404 * fbsd-nat.h (fbsd_nat_target::insert_exec_catchpoint)
405 (fbsd_nat_target::remove_exec_catchpoint): Always declare.
406
e911c666
JB
4072020-09-16 John Baldwin <jhb@FreeBSD.org>
408
409 * configure.ac: Remove check for kinfo_getvmmap().
410 * configure, config.in: Regenerate.
411 * fbsd-nat.c (fbsd_read_mapping): Remove
412 (fbsd_nat_target::find_memory_regions): Remove the procfs version.
413 (fbsd_nat_target::info_proc): Assume kinfo_getfile() and
414 kinfo_get_vmmap() are always present.
415
1f17d372
JB
4162020-09-16 John Baldwin <jhb@FreeBSD.org>
417
418 * fbsd-nat.c: Always include support for
419 TARGET_OBJECT_SIGNAL_INFO.
420
bcb1da7f
JB
4212020-09-16 John Baldwin <jhb@FreeBSD.org>
422
423 * fbsd-nat.c (fbsd_nat_target::pid_to_exec_file): Always use
424 sysctl and remove procfs fallback.
425
5515f729
JB
4262020-09-16 John Baldwin <jhb@FreeBSD.org>
427
428 * fbsd-nat.c: Assume PT_LWPINFO is always defined.
429 * fbsd-nat.h: Likewise.
430
da1df1db
TBA
4312020-09-16 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
432
433 * breakpoint.c (commands_command_1): Make a copy of the 'arg'
434 argument.
435
0e25e767
AB
4362020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
437
438 * ada-lang.c (ada_language_data): Delete.
439 (ada_language): Remove references to ada_language_data.
440 * c-lang.c (c_language_data): Delete.
441 (c_language): Remove references to c_language_data.
442 (cplus_language_data): Delete.
443 (cplus_language): Remove references to cplus_language_data.
444 (asm_language_data): Delete.
445 (asm_language): Remove references to asm_language_data.
446 (minimal_language_data): Delete.
447 (minimal_language): Remove references to minimal_language_data.
448 * d-lang.c (d_language_data): Delete.
449 (d_language): Remove references to d_language_data.
450 * f-lang.c (f_language_data): Delete.
451 (f_language): Remove references to f_language_data.
452 * go-lang.c (go_language_data): Delete.
453 (go_language): Remove references to go_language_data.
454 * language.c (unknown_language_data): Delete.
455 (unknown_language): Remove references to unknown_language_data.
456 (auto_language_data): Delete.
457 (auto_language): Remove references to auto_language_data.
458 * language.h (language_data): Delete struct.
459 (language_defn): No longer inherit from language_data.
460 * m2-lang.c (m2_language_data): Delete.
461 (m2_language): Remove references to m2_language_data.
462 * objc-lang.c (objc_language_data): Delete.
463 (objc_language): Remove references to objc_language_data.
464 * opencl-lang.c (opencl_language_data): Delete.
465 (opencl_language): Remove references to opencl_language_data.
466 * p-lang.c (pascal_language_data): Delete.
467 (pascal_language): Remove references to pascal_language_data.
468 * rust-lang.c (rust_language_data): Delete.
469 (rust_language): Remove references to rust_language_data.
470
b7c6e27d
AB
4712020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
472
473 * ada-lang.c (ada_language_data): Remove la_op_print_tab
474 initializer.
475 (ada_language::opcode_print_table): New member function.
476 * c-lang.c (c_language_data): Remove la_op_print_tab initializer.
477 (c_language::opcode_print_table): New member function.
478 (cplus_language_data): Remove la_op_print_tab initializer.
479 (cplus_language::opcode_print_table): New member function.
480 (asm_language_data): Remove la_op_print_tab initializer.
481 (asm_language::opcode_print_table): New member function.
482 (minimal_language_data): Remove la_op_print_tab initializer.
483 (minimal_language::opcode_print_table): New member function.
484 * d-lang.c (d_language_data): Remove la_op_print_tab initializer.
485 (d_language::opcode_print_table): New member function.
486 * expprint.c (print_subexp_standard): Update call to
487 opcode_print_table.
488 (op_string): Likewise.
489 * f-lang.c (f_language_data): Remove la_op_print_tab initializer.
490 (f_language::opcode_print_table): New member function.
491 * go-lang.c (go_language_data): Remove la_op_print_tab
492 initializer.
493 (go_language::opcode_print_table): New member function.
494 * language.c (unknown_language_data): Remove la_op_print_tab
495 initializer.
496 (unknown_language::opcode_print_table): New member function.
497 (auto_language_data): Remove la_op_print_tab initializer.
498 (auto_language::opcode_print_table): New member function.
499 * language.h (language_data): Remove la_op_print_tab field.
500 (language_defn::opcode_print_table): Declare new member function.
501 * m2-lang.c (m2_language_data): Remove la_op_print_tab
502 initializer.
503 (m2_language::opcode_print_table): New member function.
504 * objc-lang.c (objc_language_data): Remove la_op_print_tab
505 initializer.
506 (objc_language::opcode_print_table): New member function.
507 * opencl-lang.c (opencl_language_data): Remove la_op_print_tab
508 initializer.
509 (opencl_language::opcode_print_table): New member function.
510 * p-lang.c (pascal_language_data): Remove la_op_print_tab
511 initializer.
512 (pascal_language::opcode_print_table): New member function.
513 * rust-lang.c (rust_language_data): Remove la_op_print_tab
514 initializer.
515 (rust_language::opcode_print_table): New member function.
516
5aba6ebe
AB
5172020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
518
519 * ada-lang.c (ada_language_data): Remove la_exp_desc initializer.
520 (ada_language::expression_ops): New member function.
521 * c-lang.c (c_language_data): Remove la_exp_desc initializer.
522 (c_language::expression_ops): New member function.
523 (cplus_language_data): Remove la_exp_desc initializer.
524 (cplus_language::expression_ops): New member function.
525 (asm_language_data): Remove la_exp_desc initializer.
526 (asm_language::expression_ops): New member function.
527 (minimal_language_data): Remove la_exp_desc initializer.
528 (minimal_language::expression_ops): New member function.
529 * d-lang.c (d_language_data): Remove la_exp_desc initializer.
530 (d_language::expression_ops): New member function.
531 * eval.c (evaluate_subexp): Update call to expression_ops.
532 * expprint.c (print_subexp): Likewise.
533 (op_name): Likewise.
534 (dump_subexp_body): Likewise.
535 * f-lang.c (f_language_data): Remove la_exp_desc initializer.
536 (f_language::expression_ops): New member function.
537 * go-lang.c (go_language_data): Remove la_exp_desc initializer.
538 (go_language::expression_ops): New member function.
539 * language.c (language_defn::expression_ops): New function.
540 (unknown_language_data): Remove la_exp_desc initializer.
541 (auto_language_data): Likewise.
542 * language.h (language_data): Remove la_exp_desc field.
543 (language_defn::expression_ops): Declare new member function.
544 * m2-lang.c (m2_language_data): Remove la_exp_desc initializer.
545 (m2_language::expression_ops): New member function.
546 * objc-lang.c (objc_language_data): Remove la_exp_desc
547 initializer.
548 * opencl-lang.c (opencl_language_data): Remove la_exp_desc
549 initializer.
550 (opencl_language::expression_ops): New member function.
551 * p-lang.c (pascal_language_data): Remove la_exp_desc initializer.
552 * parse.c (operator_length): Update call to expression_ops.
553 (exp_iterate): Likewise.
554 * rust-lang.c (rust_language_data): Remove la_exp_desc
555 initializer.
556 (ruse_language::expression_ops): New member function.
557
b63a3f3f
AB
5582020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
559
560 * ada-lang.c (ada_language_data): Remove la_varobj_ops
561 initializer.
562 (ada_language::varobj_ops): New member function.
563 * c-lang.c (c_language_data): Remove la_varobj_ops
564 initializer.
565 (cplus_language_data): Likewise.
566 (cplus_language::varobj_ops): New member function.
567 (asm_language_data): Remove la_varobj_ops initializer.
568 (minimal_language_data): Likewise.
569 * d-lang.c (d_language_data): Likewise.
570 * f-lang.c (f_language_data): Likewise.
571 * go-lang.c (go_language_data): Likewise.
572 * language.c (language_defn::varobj_ops): New function.
573 (unknown_language_data): Remove la_varobj_ops
574 initializer.
575 (auto_language_data): Likewise.
576 * language.h (language_data): Remove la_varobj_ops field.
577 (language_defn::varobj_ops): Declare new member function.
578 * m2-lang.c (m2_language_data): Remove la_varobj_ops initializer.
579 * objc-lang.c (objc_language_data): Likewise.
580 * opencl-lang.c (opencl_language_data): Likewise.
581 * p-lang.c (pascal_language_data): Likewise.
582 * rust-lang.c (rust_language_data): Likewise.
583 * varobj.c (varobj_create): Update call to varobj_ops.
584 * varobj.h (default_varobj_ops): Delete define.
585
1ac14a04
AB
5862020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
587
588 * ada-lang.c (ada_language_data): Remove la_macro_expansion
589 initializer.
590 * c-lang.c (c_language_data): Likewise.
591 (c_language::macro_expansion): New member function.
592 (cplus_language_data): Likewise.
593 (cplus_language::macro_expansion): New member function.
594 (asm_language_data): Likewise.
595 (asm_language::macro_expansion): New member function.
596 (minimal_language_data): Likewise.
597 (minimal_language::macro_expansion): New member function.
598 * d-lang.c (d_language_data): Remove la_macro_expansion
599 initializer.
600 * f-lang.c (f_language_data): Likewise.
601 * go-lang.c (go_language_data): Likewise.
602 * language.c (unknown_language_data): Likewise.
603 (auto_language_data): Likewise.
604 * language.h (language_data): Remove la_macro_expansion field.
605 (language_defn::macro_expansion): New member function.
606 * m2-lang.c (m2_language_data): Remove la_macro_expansion
607 initializer.
608 * objc-lang.c (objc_language_data): Likewise.
609 (objc_language::macro_expansion): New member function.
610 * opencl-lang.c (opencl_language_data): Likewise.
611 (opencl_language::macro_expansion): New member function.
612 * p-lang.c (pascal_language_data): Remove la_macro_expansion
613 initializer.
614 * rust-lang.c (rust_language_data): Likewise.
615 * symtab.c (default_collect_symbol_completion_matches_break_on):
616 Update call to macro_expansion.
617
3a3440fb
AB
6182020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
619
620 * ada-lang.c (ada_language_data): Remove la_array_ordering
621 initializer.
622 * c-lang.c (c_language_data): Likewise.
623 (cplus_language_data): Likewise.
624 (asm_language_data): Likewise.
625 (minimal_language_data): Likewise.
626 * d-lang.c (d_language_data): Likewise.
627 * dwarf2/read.c (read_array_order): Update for call to
628 array_ordering.
629 * f-lang.c (f_language_data): Remove la_array_ordering
630 initializer.
631 (f_language::array_ordering): New member function.
632 * go-lang.c (go_language_data): Remove la_array_ordering
633 initializer.
634 * language.c (unknown_language_data): Likewise.
635 (auto_language_data): Likewise.
636 * language.h (language_data): Delete la_array_ordering field.
637 (language_defn::array_ordering): New member function.
638 * m2-lang.c (m2_language_data): Remove la_array_ordering
639 initializer.
640 * objc-lang.c (objc_language_data): Likewise.
641 * opencl-lang.c (opencl_language_data): Likewise.
642 * p-lang.c (pascal_language_data): Likewise.
643 * rust-lang.c (rust_language_data): Likewise.
644
0d201fa4
AB
6452020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
646
647 * ada-lang.c (ada_language_data): Remove la_case_sensitivity
648 initializer.
649 * c-lang.c (c_language_data): Likewise.
650 (cplus_language_data): Likewise.
651 (asm_language_data): Likewise.
652 (minimal_language_data): Likewise.
653 * d-lang.c (d_language_data): Likewise.
654 * f-lang.c (f_language_data): Likewise.
655 (f_language::case_sensitivity): New member function.
656 * go-lang.c (go_language_data): Remove la_case_sensitivity
657 initializer.
658 * language.c (enum case_mode): Moved here from language.h.
659 (case_mode): Make static.
660 (show_case_command): Update for case_sensitivity being a method.
661 (set_case_command): Likewise.
662 (set_range_case): Likewise.
663 (unknown_language_data): Remove la_case_sensitivity initializer.
664 (auto_language_data): Likewise.
665 * language.h (case_mode): Delete, move enum declaration to
666 language.c.
667 (language_data): Delete la_case_sensitivity field.
668 (language_defn::case_sensitivity): New member function.
669 * m2-lang.c (m2_language_data): Remove la_case_sensitivity
670 initializer.
671 * objc-lang.c (objc_language_data): Likewise.
672 * opencl-lang.c (opencl_language_data): Likewise.
673 * p-lang.c (pascal_language_data): Likewise.
674 * rust-lang.c (rust_language_data): Likewise.
675
efdf6a73
AB
6762020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
677
678 * ada-lang.c (ada_language_data): Remove la_range_check
679 initializer.
680 * c-lang.c (c_language_data): Likewise.
681 (cplus_language_data): Likewise.
682 (asm_language_data): Likewise.
683 (minimal_language_data): Likewise.
684 * d-lang.c (d_language_data): Likewise.
685 * f-lang.c (f_language_data): Likewise.
686 (f_language::range_checking_on_by_default): New member function.
687 * go-lang.c (go_language_data): Remove la_range_check initializer.
688 * language.c (enum range_mode): Moved here from language.h.
689 (range_mode): Made static.
690 (show_range_command): Update to use
691 range_checking_on_by_default.
692 (set_range_command): Likewise.
693 (set_range_case): Likewise.
694 (unknown_language_data): Remove la_range_check initializer.
695 (auto_language_data): Likewise.
696 * language.h (range_mode): Delete. Enum definition moved to
697 language.c.
698 (language_data): Remove la_range_check field.
699 (language_defn::range_checking_on_by_default): New member
700 function.
701 * m2-lang.c (m2_language_data): Remove la_range_check initializer.
702 (m2_language::range_checking_on_by_default): New member function.
703 * objc-lang.c (objc_language_data): Remove la_range_check
704 initializer.
705 * opencl-lang.c (opencl_language_data): Likewise.
706 * p-lang.c (pascal_language_data): Likewise.
707 (pascal_language::range_checking_on_by_default): New member
708 function.
709 * rust-lang.c (rust_language_data): Remove la_range_check
710 initializer.
711 (rust_language::range_checking_on_by_default): New member
712 function.
713
bf92aec5
AB
7142020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
715
716 * dwarf2/read.c (dwarf2_physname): Remove special case for
717 language_go.
718 * go-lang.c (go_language::store_sym_names_in_linkage_form_p): New
719 member function.
720
d3355e4d
AB
7212020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
722
723 * ada-lang.c (ada_language_data): Remove
724 la_store_sym_names_in_linkage_form_p initializer.
725 (ada_language::store_sym_names_in_linkage_form_p): New member
726 function.
727 * c-lang.c (c_language_data): Remove
728 la_store_sym_names_in_linkage_form_p initializer.
729 (c_language::store_sym_names_in_linkage_form_p): New member
730 function.
731 (cplus_language_data): Remove la_store_sym_names_in_linkage_form_p
732 initializer.
733 (asm_language_data): Likewise.
734 (asm_language::store_sym_names_in_linkage_form_p): New member
735 function.
736 (minimal_language_data): Remove
737 la_store_sym_names_in_linkage_form_p initializer.
738 (minimal_language::store_sym_names_in_linkage_form_p): New member
739 function.
740 * d-lang.c (d_language_data): Remove
741 la_store_sym_names_in_linkage_form_p initializer.
742 * dwarf2/read.c (dwarf2_physname): Update call to
743 store_sym_names_in_linkage_form_p.
744 * f-lang.c (f_language_data): Remove
745 la_store_sym_names_in_linkage_form_p initializer.
746 * go-lang.c (go_language_data): Remove
747 la_store_sym_names_in_linkage_form_p initializer.
748 * language.c (unknown_language_data): Remove
749 la_store_sym_names_in_linkage_form_p initializer.
750 (unknown_language::store_sym_names_in_linkage_form_p): New member
751 function.
752 (auto_language_data): Remove la_store_sym_names_in_linkage_form_p
753 initializer.
754 (auto_language::store_sym_names_in_linkage_form_p): New member
755 function.
756 * language.h (language_data): Remove
757 la_store_sym_names_in_linkage_form_p member variable.
758 (language_defn::store_sym_names_in_linkage_form_p): New member
759 function.
760 * m2-lang.c (m2_language_data): Remove
761 la_store_sym_names_in_linkage_form_p initializer.
762 * objc-lang.c (objc_language_data): Likewise.
763 * opencl-lang.c (opencl_language_data): Likewise.
764 * p-lang.c (pascal_language_data): Likewise.
765 * rust-lang.c (rust_language_data): Likewise.
766
22c12a6c
AB
7672020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
768
769 * ada-lang.c (ada_language_data): Remove string_lower_bound
770 initializer.
771 * c-lang.c (c_language_data): Likewise.
772 (cplus_language_data): Likewise.
773 (asm_language_data): Likewise.
774 (minimal_language_data): Likewise.
775 * d-lang.c (d_language_data): Likewise.
776 * f-lang.c (f_language_data): Likewise.
777 * go-lang.c (go_language_data): Likewise.
778 * language.c (unknown_language_data): Likewise.
779 (auto_language_data): Likewise.
780 * language.h (language_data): Remove string_lower_bound field.
781 (language_defn::string_lower_bound): New member function.
782 * m2-lang.c (m2_language_data): Remove string_lower_bound
783 initializer.
784 (m2_language::string_lower_bound): New member function.
785 * objc-lang.c (objc_language_data): Remove string_lower_bound
786 initializer.
787 * opencl-lang.c (opencl_language_data): Likewise.
788 * p-lang.c (pascal_language_data): Likewise.
789 * rust-lang.c (rust_language_data): Likewise.
790 * valops.c (value_cstring): Update call to string_lower_bound.
791 (value_string): Likewise.
792 * value.c (allocate_repeated_value): Likewise.
793
1c236ddd
AB
7942020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
795
796 * valops.c (value_repeat): Fix incorrect argument name in comment.
797
67bd3fd5
AB
7982020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
799
800 * ada-lang.c (ada_language_data): Remove c_style_arrays
801 initializer.
802 (ada_language::c_style_arrays_p): New member fuction.
803 * c-lang.c (c_language_data): Remove c_style_arrays
804 initializer.
805 (cplus_language_data): Likewise.
806 (asm_language_data): Likewise.
807 (minimal_language_data): Likewise.
808 * d-lang.c (d_language_data): Likewise.
809 * eval.c (ptrmath_type_p): Update call to c_style_arrays_p.
810 * f-lang.c (f_language_data): Remove c_style_arrays initializer.
811 (f_language::c_style_arrays_p): New member function.
812 * go-lang.c (go_language_data): Remove c_style_arrays initializer.
813 * infcall.c (value_arg_coerce): Update call to c_style_arrays_p.
814 * language.c (unknown_language_data): Remove c_style_arrays
815 initializer.
816 (auto_language_data): Likewise.
817 * language.h (language_data): Remove c_style_arrays field.
818 (language_defn::c_style_arrays_p): New member function.
819 * m2-lang.c (m2_language_data): Remove c_style_arrays initializer.
820 (m2_language::c_style_arrays_p): New member function.
821 * objc-lang.c (objc_language_data): Remove c_style_arrays
822 initializer.
823 * opencl-lang.c (opencl_language_data): Likewise.
824 * p-lang.c (pascal_language_data): Likewise.
825 * rust-lang.c (rust_language_data): Likewise.
826 * valarith.c (value_subscript): Update call to c_style_arrays_p,
827 and update local variable to a bool.
828 * valops.c (value_cast): Update call to c_style_arrays_p.
829 (value_array): Likewise.
830 * value.c (coerce_array): Likewise.
831
85967615
AB
8322020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
833
834 * ada-lang.c (ada_language_data): Remove la_language initializer.
835 * c-lang.c (c_language_data): Likewise.
836 (cplus_language_data): Likewise.
837 (asm_language_data): Likewise.
838 (minimal_language_data): Likewise.
839 * d-lang.c (d_language_data): Likewise.
840 * f-lang.c (f_language_data): Likewise.
841 * go-lang.c (go_language_data): Likewise.
842 * language.c (unknown_language_data): Likewise.
843 (auto_language_data): Likewise.
844 * language.h (language_data): Remove la_language field.
845 (language_defn::language_defn): Initialise la_language field.
846 (language_defn::la_language): New member variable.
847 * m2-lang.c (m2_language_data): Remove la_language field.
848 * objc-lang.c (objc_language_data): Likewise.
849 * opencl-lang.c (opencl_language_data): Likewise.
850 * p-lang.c (pascal_language_data): Likewise.
851 * rust-lang.c (rust_language_data): Likewise.
852
e171d6f1
AB
8532020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
854
855 * ada-lang.c (ada_extensions): Delete, moved into
856 ada_language::filename_extensions.
857 (ada_language_data): Remove la_filename_extensions initializer.
858 (ada_language::filename_extensions): New member function.
859 * c-lang.c (c_extensions): Delete, moved into
860 c_language::filename_extensions.
861 (c_language_data): Remove la_filename_extensions initializer.
862 (c_language::filename_extensions): New member function.
863 (cplus_extensions): Delete, moved into
864 cplus_language::filename_extensions.
865 (cplus_language_data): Remove la_filename_extensions initializer.
866 (cplus_language::filename_extensions): New member function.
867 (asm_extensions): Delete, moved into
868 asm_language::filename_extensions.
869 (asm_language_data): Remove la_filename_extensions initializer.
870 (asm_language::filename_extensions): New member function.
871 (minimal_language_data): Remove la_filename_extensions
872 initializer.
873 * d-lang.c (d_extensions): Delete, moved into
874 d_language::filename_extensions.
875 (d_language_data): Remove la_filename_extensions initializer.
876 (d_language::filename_extensions): New member function.
877 * f-lang.c (f_extensions): Delete, moved into
878 f_language::filename_extensions.
879 (f_language_data): Remove la_filename_extensions initializer.
880 (f_language::filename_extensions): New member function.
881 * go-lang.c (go_language_data): Remove la_filename_extensions
882 initializer.
883 * language.c (add_set_language_command): Update now that
884 filename_extensions returns a vector.
885 (unknown_language_data): Remove la_filename_extensions
886 initializer.
887 (auto_language_data): Likewise.
888 * language.h (language_data): Remove la_filename_extensions field.
889 (language_defn::filename_extensions): New member function.
890 * m2-lang.c (m2_language_data): Remove la_filename_extensions
891 initializer.
892 * objc-lang.c (objc_extensions): Delete, moved into
893 objc_language::filename_extensions.
894 (objc_language_data): Remove la_filename_extensions initializer.
895 (objc_language::filename_extensions): New member function.
896 * opencl-lang.c (opencl_language_data): Remove
897 la_filename_extensions initializer.
898 * p-lang.c (pascal_extensions): Delete, moved into
899 pascal_language::filename_extensions.
900 (pascal_language_data): Remove la_filename_extensions initializer.
901 (pascal_language::filename_extensions): New member function.
902 * rust-lang.c (rust_extensions): Delete, moved into
903 rust_language::filename_extensions.
904 (rust_language_data): Remove la_filename_extensions initializer.
905 (rust_language::filename_extensions): New member function.
906 * symfile.c (add_filename_language): Add new assert.
907
6f7664a9
AB
9082020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
909
910 * ada-lang.c (ada_language_data): Remove la_name and
911 la_natural_name initializers.
912 (ada_language::name): New member function.
913 (ada_language::natural_name): New member function.
914 * c-lang.c (c_language_data): Remove la_name and
915 la_natural_name initializers.
916 (c_language::name): New member function.
917 (c_language::natural_name): New member function.
918 (cplus_language_data): Remove la_name and
919 la_natural_name initializers.
920 (cplus_language::name): New member function.
921 (cplus_language::natural_name): New member function.
922 (asm_language_data): Remove la_name and
923 la_natural_name initializers.
924 (asm_language::name): New member function.
925 (asm_language::natural_name): New member function.
926 (minimal_language_data): Remove la_name and
927 la_natural_name initializers.
928 (minimal_language::name): New member function.
929 (minimal_language::natural_name): New member function.
930 * compile/compile.c (compile_to_object): Update call to
931 lanugage_defn::name.
932 * d-lang.c (d_language_data): Remove la_name and
933 la_natural_name initializers.
934 (d_language::name): New member function.
935 (d_language::natural_name): New member function.
936 * expprint.c (print_subexp_standard): Update call to
937 language_defn::name.
938 (dump_raw_expression): Likewise
939 (dump_prefix_expression): Likewise.
940 * f-lang.c (f_language_data): Remove la_name and
941 la_natural_name initializers.
942 (f_language::name): New member function.
943 (f_language::natural_name): New member function.
944 * go-lang.c (go_language_data): Remove la_name and
945 la_natural_name initializers.
946 (go_language::name): New member function.
947 (go_language::natural_name): New member function.
948 * language.c (show_language_command): Update call to
949 language_defn::name.
950 (set_language_command): Likewise.
951 (language_enum): Likewise.
952 (language_str): Likewise.
953 (add_set_language_command): Likewise, use
954 language_defn::natural_name in the doc string.
955 (unknown_language_data): Remove la_name and
956 la_natural_name initializers.
957 (unknown_language::name): New member function.
958 (unknown_language::natural_name): New member function.
959 (auto_language_data): Remove la_name and
960 la_natural_name initializers.
961 (auto_language::name): New member function.
962 (auto_language::natural_name): New member function.
963 (language_lookup_primitive_type_as_symbol): Update call to
964 language_defn::name.
965 * language.h (language_data): Remove la_name and la_natural_name
966 member variables.
967 (language_defn::name): New member function.
968 (language_defn::natural_name): New member function.
969 * m2-lang.c (m2_language_data): Remove la_name and
970 la_natural_name initializers.
971 (m2_language::name): New member function.
972 (m2_language::natural_name): New member function.
973 * mi/mi-cmd-var.c (mi_cmd_var_info_expression): Update call to
974 language_defn::natural_name.
975 * objc-lang.c (objc_language_data): Remove la_name and
976 la_natural_name initializers.
977 (objc_language::name): New member function.
978 (objc_language::natural_name): New member function.
979 * opencl-lang.c (opencl_language_data): Remove la_name and
980 la_natural_name initializers.
981 (opencl_language::name): New member function.
982 (opencl_language::natural_name): New member function.
983 * p-lang.c (pascal_language_data): Remove la_name and
984 la_natural_name initializers.
985 (pascal_language::name): New member function.
986 (pascal_language::natural_name): New member function.
987 * rust-lang.c (rust_language_data): Remove la_name and
988 la_natural_name initializers.
989 (rust_language::name): New member function.
990 (rust_language::natural_name): New member function.
991 * symtab.c (lookup_language_this): Update call to
992 language_defn::name.
993
5bae7c4e
AB
9942020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
995
996 * ada-lang.c (ada_language_data): Remove la_name_of_this
997 initializer.
998 * ax-gdb.c (gen_expr): Update call to name_of_this.
999 * c-exp.y (classify_name): Likewise.
1000 * c-lang.c (c_language_data): Remove la_name_of_this initializer.
1001 (cplus_language_data): Likewise.
1002 (cplus_language::name_of_this): New member function.
1003 (asm_language_data): Remove la_name_of_this initializer.
1004 (minimal_language_data): Likewise.
1005 * d-lang.c (d_language_data): Likewise.
1006 (d_language::name_of_this): New member function.
1007 * expprint.c (print_subexp_standard): Update call to name_of_this.
1008 * f-lang.c (f_language_data): Remove la_name_of_this initializer.
1009 * go-lang.c (go_language_data): Likewise.
1010 * language.c (unknown_language_data): Likewise.
1011 (unknown_language::name_of_this): New member function.
1012 (auto_language_data): Remove la_name_of_this initializer.
1013 (auto_language::name_of_this): New member function.
1014 * language.h (language_data): Delete la_name_of_this member
1015 variable.
1016 (language_defn::name_of_this): New member function.
1017 * m2-lang.c (m2_language_data): Remove la_name_of_this
1018 initializer.
1019 * objc-lang.c (objc_language_data): Likewise.
1020 (objc_language::name_of_this): New member function.
1021 * opencl-lang.c (opencl_language_data): Remove la_name_of_this
1022 initializer.
1023 * p-lang.c (pascal_language_data): Likewise.
1024 (pascal_language::name_of_this): New member function.
1025 * rust-lang.c (rust_language_data): Remove la_name_of_this
1026 initializer.
1027 * symtab.c (lookup_language_this): Update call to name_of_this.
1028 (lookup_symbol_aux): Likewise.
1029 * valops.c (value_of_this): Likewise.
1030
22e3f3ed
AB
10312020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
1032
1033 * ada-lang.c (ada_language_data): Remove
1034 la_struct_too_deep_ellipsis initializer.
1035 (ada_language::struct_too_deep_ellipsis): New member function.
1036 * c-lang.c (c_language_data): Remove la_struct_too_deep_ellipsis
1037 initializer.
1038 (cplus_language_data): Likewise.
1039 (asm_language_data): Likewise.
1040 (minimal_language_data): Likewise.
1041 * cp-valprint.c (cp_print_value): Update call to
1042 struct_too_deep_ellipsis.
1043 * d-lang.c (d_language_data): Remove la_struct_too_deep_ellipsis
1044 initializer.
1045 * f-lang.c (f_language_data): Likewise.
1046 (f_language::struct_too_deep_ellipsis): New member function.
1047 * go-lang.c (go_language_data): Remove la_struct_too_deep_ellipsis
1048 initializer.
1049 * language.c (unknown_language_data): Likewise.
1050 (auto_language_data): Likewise.
1051 * language.h (language_data): Delete la_struct_too_deep_ellipsis
1052 member variable.
1053 (language_defn::struct_too_deep_ellipsis): New member function.
1054 * m2-lang.c (m2_language_data): Remove la_struct_too_deep_ellipsis
1055 initializer.Q
1056 * objc-lang.c (objc_language_data): Likewise.
1057 * opencl-lang.c (opencl_language_data): Likewise.
1058 * p-lang.c (pascal_language_data): Likewise.
1059 * rust-lang.c (rust_language_data): Likewise.
1060 * valprint.c (val_print_check_max_depth): Update call to
1061 struct_too_deep_ellipsis.
1062
ed29e1c7
FW
10632020-09-16 Felix Willgerodt <felix.willgerodt@intel.com>
1064
1065 * MAINTAINERS (Write After Approval): Add myself.
1066
12d8f940
TT
10672020-09-15 Tom Tromey <tom@tromey.com>
1068
1069 * f-valprint.c (f_value_print_inner) <case TYPE_CODE_INT>:
1070 Remove.
1071
6b5a7bc7
TT
10722020-09-15 Tom Tromey <tom@tromey.com>
1073
1074 * rust-lang.c (rust_value_print_inner): Remove TYPE_CODE_MEMBERPTR
1075 and TYPE_CODE_METHODPTR cases.
1076 * c-valprint.c (c_value_print_memberptr): Move to valprint.c.
1077 (c_value_print_inner): Update.
1078 * valprint.c (generic_value_print_memberptr): New function, from
1079 c_value_print_memberptr.
1080 (generic_value_print): Use it. Call cplus_print_method_ptr.
1081
47f0e2ff
TT
10822020-09-15 Tom Tromey <tromey@adacore.com>
1083
1084 * python/python-internal.h (PyInt_FromLong): Remove define.
1085 * python/py-value.c (convert_value_from_python): Use
1086 gdb_py_object_from_longest.
1087 * python/py-type.c (typy_get_code): Use
1088 gdb_py_object_from_longest.
1089 * python/py-symtab.c (salpy_get_line): Use
1090 gdb_py_object_from_longest.
1091 * python/py-symbol.c (sympy_get_addr_class, sympy_line): Use
1092 gdb_py_object_from_longest.
1093 * python/py-record.c (recpy_gap_reason_code): Use
1094 gdb_py_object_from_longest.
1095 * python/py-record-btrace.c (recpy_bt_insn_size)
1096 (recpy_bt_func_level, btpy_list_count): Use
1097 gdb_py_object_from_longest.
1098 * python/py-infthread.c (gdbpy_create_ptid_object): Use
1099 gdb_py_object_from_longest. Fix error handling.
1100 * python/py-framefilter.c (bootstrap_python_frame_filters): Use
1101 gdb_py_object_from_longest.
1102 * python/py-frame.c (frapy_type, frapy_unwind_stop_reason): Use
1103 gdb_py_object_from_longest.
1104 * python/py-breakpoint.c (bppy_get_type, bppy_get_number)
1105 (bppy_get_thread, bppy_get_task, bppy_get_hit_count)
1106 (bppy_get_ignore_count): Use gdb_py_object_from_longest.
1107
512116ce
TT
11082020-09-15 Tom Tromey <tromey@adacore.com>
1109
1110 * python/python.c (gdbpy_parameter_value): Use
1111 gdb_py_object_from_ulongest.
1112
4ab1029c
TT
11132020-09-15 Tom Tromey <tromey@adacore.com>
1114
1115 * python/py-infevents.c (create_register_changed_event_object):
1116 Use gdb_py_object_from_longest.
1117 * python/py-exitedevent.c (create_exited_event_object): Use
1118 gdb_py_object_from_longest.
1119
062534d4
TT
11202020-09-15 Tom Tromey <tromey@adacore.com>
1121
1122 * python/python.c (gdbpy_parameter_value): Use
1123 gdb_py_object_from_longest.
1124 * python/py-type.c (convert_field, typy_range): Use
1125 gdb_py_object_from_longest.
1126 * python/py-tui.c (gdbpy_tui_width, gdbpy_tui_height): Use
1127 gdb_py_object_from_longest.
1128 * python/py-lazy-string.c (stpy_get_length): Use
1129 gdb_py_object_from_longest.
1130 * python/py-infthread.c (thpy_get_num, thpy_get_global_num): Use
1131 gdb_py_object_from_longest.
1132 * python/py-infevents.c (create_memory_changed_event_object): Use
1133 gdb_py_object_from_longest.
1134 * python/py-inferior.c (infpy_get_num): Use
1135 gdb_py_object_from_longest.
1136 (infpy_get_pid): Likewise.
1137
d1cab987
TT
11382020-09-15 Tom Tromey <tromey@adacore.com>
1139
1140 * python/python-internal.h (gdb_py_long_from_ulongest): Remove
1141 defines.
1142 * python/py-value.c (valpy_long): Use
1143 gdb_py_object_from_ulongest.
1144 * python/py-symtab.c (salpy_get_pc): Use
1145 gdb_py_object_from_ulongest.
1146 (salpy_get_last): Likewise.
1147 * python/py-record-btrace.c (recpy_bt_insn_pc): Use
1148 gdb_py_object_from_ulongest.
1149 * python/py-lazy-string.c (stpy_get_address): Use
1150 gdb_py_object_from_ulongest.
1151 * python/py-frame.c (frapy_pc): Use gdb_py_object_from_ulongest.
1152 * python/py-arch.c (archpy_disassemble): Use
1153 gdb_py_object_from_ulongest and gdb_py_object_from_longest. Fix
1154 error handling.
1155
4bde49dc
TT
11562020-09-15 Tom Tromey <tromey@adacore.com>
1157
1158 * python/python-internal.h (gdb_py_long_from_longest): Remove
1159 defines.
1160 * python/py-value.c (valpy_long): Use gdb_py_object_from_longest.
1161 * python/py-type.c (convert_field, typy_get_sizeof): Use
1162 gdb_py_object_from_longest.
1163 * python/py-record-btrace.c (btpy_list_index): Use
1164 gdb_py_object_from_longest.
1165
37431074
TT
11662020-09-15 Tom Tromey <tromey@adacore.com>
1167
1168 * python/python-internal.h (PyInt_FromSsize_t): Remove define.
1169 * python/py-record.c (recpy_element_number): Use
1170 gdb_py_object_from_longest.
1171 (recpy_gap_number): Likewise.
1172
cbe25684
TT
11732020-09-15 Tom Tromey <tromey@adacore.com>
1174
1175 * top.c (ui::ui): Update.
1176 (highest_ui_num): Remove.
1177 * top.h (struct ui) <num>: Remove.
1178
db92ac45
TT
11792020-09-15 Tom Tromey <tromey@adacore.com>
1180
1181 * unittests/memory-map-selftests.c (valid_mem_map): Now array.
1182 * ui-style.c (ansi_regex_text): Now array.
1183 * rust-exp.y (number_regex_text): Now array.
1184 * linespec.c (linespec_quote_characters): Now array.
1185 * jit.c (jit_break_name, jit_descriptor_name, reader_init_fn_sym):
1186 Now arrays.
1187
d2b31b67
SM
11882020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
1189
1190 * debuginfod-support.c (debuginfod_client_deleter): New.
1191 (debuginfod_client_up): New.
1192 (debuginfod_init): Return debuginfod_client_up.
1193 (debuginfod_source_query): Adjust.
1194 (debuginfod_debuginfo_query): Adjust.
1195
3246bd8e
SM
11962020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
1197
1198 * debuginfod-support.c (debuginfod_source_query): Use
1199 make_unique_xstrdup.
1200
10242f36
SM
12012020-09-14 Simon Marchi <simon.marchi@efficios.com>
1202
1203 * gdbtypes.h (TYPE_INSTANCE_FLAGS): Remove, replace all uses
1204 with `type::instance_flags`.
1205
e1044e6a
MM
12062020-09-14 Michael Mullin <masmullin@gmail.com>
1207
1208 * xml-tdesc.c [!defined(HAVE_LIBEXPAT)] (tdesc_parse_xml):
1209 Remove baton parameter.
1210
04902b09
PA
12112020-09-14 Pedro Alves <pedro@palves.net>
1212
1213 * Makefile.in (SELFTESTS_SRCS): Add
1214 unittests/enum-flags-selftests.c.
1215 * btrace.c (ftrace_update_caller, ftrace_fixup_calle): Use
1216 btrace_function_flags instead of enum btrace_function_flag.
1217 * compile/compile-c-types.c (convert_qualified): Use
1218 enum_flags::raw.
1219 * compile/compile-cplus-symbols.c (convert_one_symbol)
1220 (convert_symbol_bmsym):
1221 * compile/compile-cplus-types.c (compile_cplus_convert_method)
1222 (compile_cplus_convert_struct_or_union_methods)
1223 (compile_cplus_instance::convert_qualified_base):
1224 * go-exp.y (parse_string_or_char): Add cast to int.
1225 * unittests/enum-flags-selftests.c: New file.
1226 * record-btrace.c (btrace_thread_flag_to_str): Change parameter's
1227 type to btrace_thread_flags from btrace_thread_flag.
1228 (record_btrace_cancel_resume, record_btrace_step_thread): Change
1229 local's type to btrace_thread_flags from btrace_thread_flag. Add
1230 cast in DEBUG call.
1231
69896a2c
PA
12322020-09-14 Pedro Alves <pedro@palves.net>
1233
1234 * c-typeprint.c (c_type_print_modifier): Adjust to rename.
1235 * gdbtypes.c (address_space_name_to_int): Rename to ...
1236 (address_space_name_to_type_instance_flags): ... this.
1237 (address_space_int_to_name): Rename to ...
1238 (address_space_type_instance_flags_to_name): ... this.
1239 * gdbtypes.h (address_space_name_to_int): Rename to ...
1240 (address_space_name_to_type_instance_flags): ... this.
1241 (address_space_int_to_name): Rename to ...
1242 (address_space_type_instance_flags_to_name): ... this.
1243 * type-stack.c (type_stack::insert): Adjust to rename.
1244 * type-stack.h (type_stack::insert): Likewise.
1245
314ad88d
PA
12462020-09-14 Pedro Alves <pedro@palves.net>
1247 Andrew Burgess <andrew.burgess@embecosm.com>
1248
1249 * avr-tdep.c (avr_address_class_type_flags): Return
1250 type_instance_flags.
1251 (avr_address_class_type_flags_to_name): Take a
1252 type_instance_flags.
1253 (avr_address_class_name_to_type_flags): Return bool and take a
1254 type_instance_flags.
1255 * d-lang.c (build_d_types): Use type::set_instance_flags.
1256 * ft32-tdep.c (ft32_address_class_type_flags): Return
1257 type_instance_flags.
1258 (ft32_address_class_type_flags_to_name): Take a
1259 type_instance_flags.
1260 (ft32_address_class_name_to_type_flags): Return bool and take a
1261 type_instance_flags.
1262 (ft32_gdbarch_init): Use type::set_instance_flags.
1263 * eval.c (fake_method::fake_method): Use type::set_instance_flags.
1264 * gdbarch.h, gdbarch.c: Regenerate.
1265 * gdbarch.sh (address_class_type_flags): Use type_instance_flags.
1266 (address_class_name_to_type_flags): Use type_instance_flags and
1267 bool.
1268 * gdbtypes.c (address_space_name_to_int)
1269 (address_space_int_to_name, make_qualified_type): Use
1270 type_instance_flags.
1271 (make_qualified_type): Use type_instance_flags and
1272 type::set_instance_flags.
1273 (make_type_with_address_space, make_cv_type, make_vector_type)
1274 (check_typedef): Use type_instance_flags.
1275 (recursive_dump_type): Cast type_instance_flags to unsigned for
1276 printing.
1277 (copy_type_recursive): Use type::set_instance_flags.
1278 (gdbtypes_post_init): Use type::set_instance_flags.
1279 * gdbtypes.h (struct type) <instance_flags>: Rename to ...
1280 <m_instance_flags>: ... this.
1281 <instance_flags, set_instance_flags>: New methods.
1282 (TYPE_INSTANCE_FLAGS): Use the instance_flags method.
1283 (SET_TYPE_INSTANCE_FLAGS): New.
1284 (address_space_name_to_int, address_space_int_to_name)
1285 (make_type_with_address_space): Pass flags using
1286 type_instance_flags instead of int.
1287 * stabsread.c (cleanup_undefined_types_noname): Use
1288 type::set_instance_flags.
1289 * s390-tdep.c (s390_address_class_type_flags): Return
1290 type_instance_flags.
1291 (s390_address_class_type_flags_to_name): Take a
1292 type_instance_flags.
1293 (s390_address_class_name_to_type_flags): Return bool and take a
1294 type_instance_flags.
1295 * type-stack.c (type_stack::follow_types): Use
1296 type_instance_flags.
1297 * dwarf2/read.c (read_tag_pointer_type): Use type_instance_flags.
1298
27087b7f
TT
12992020-09-14 Tom Tromey <tromey@adacore.com>
1300
1301 * x86-tdep.h (x86_in_indirect_branch_thunk): Update.
1302 * x86-tdep.c (x86_is_thunk_register_name)
1303 (x86_in_indirect_branch_thunk): Update.
1304 * sparc64-tdep.c (sparc64_fpu_register_names)
1305 (sparc64_cp0_register_names, sparc64_register_names)
1306 (sparc64_pseudo_register_names): Now const.
1307 * sparc-tdep.h (struct gdbarch_tdep) <fpu_register_names,
1308 cp0_registers_num>: Now const.
1309 * sparc-tdep.c (sparc_core_register_names)
1310 (sparc32_fpu_register_names, sparc32_cp0_register_names)
1311 (sparc32_pseudo_register_names): Now const.
1312 (validate_tdesc_registers): Update.
1313 * rust-lang.c (rust_extensions): Now const.
1314 * p-lang.c (p_extensions): Now const.
1315 * objc-lang.c (objc_extensions): Now const.
1316 * nto-tdep.c (nto_thread_state_str): Now const.
1317 * moxie-tdep.c (moxie_register_names): Now const.
1318 * mips-tdep.h (struct gdbarch_tdep) <mips_processor_reg_names>:
1319 Now const.
1320 * mips-tdep.c (mips_generic_reg_names, mips_tx39_reg_names)
1321 (mips_linux_reg_names): Now const.
1322 (mips_gdbarch_init): Update.
1323 * microblaze-tdep.c (microblaze_register_names): Now const.
1324 * m68k-tdep.c (m68k_register_names): Now const.
1325 * m32r-tdep.c (m32r_register_names): Now const.
1326 * ia64-tdep.c (ia64_register_names): Now const.
1327 * i386-tdep.h (struct gdbarch_tdep) <register_names,
1328 ymmh_register_names, ymm16h_regnum, mpx_register_names,
1329 k_register_names, zmmh_register_names, xmm_avx512_register_names,
1330 ymm_avx512_register_names, pkeys_register_names>: Now const.
1331 * i386-tdep.c (i386_register_names, i386_zmm_names)
1332 (i386_zmmh_names, i386_k_names, i386_ymm_names, i386_ymmh_names)
1333 (i386_mpx_names, i386_pkeys_names, i386_bnd_names)
1334 (i386_mmx_names, i386_byte_names, i386_word_names): Now const.
1335 * f-lang.c (f_extensions): Now const.
1336 * d-lang.c (d_extensions): Now const.
1337 * csky-tdep.c (csky_register_names): Now const.
1338 * charset.c (default_charset_names, charset_enum): Now const.
1339 (_initialize_charset): Update.
1340 * c-lang.c (c_extensions, cplus_extensions, asm_extensions): Now
1341 const.
1342 * bsd-uthread.c (bsd_uthread_solib_names): Now const.
1343 (bsd_uthread_solib_loaded): Update.
1344 (bsd_uthread_state): Now const.
1345 * amd64-tdep.c (amd64_register_names, amd64_ymm_names)
1346 (amd64_ymm_avx512_names, amd64_ymmh_names)
1347 (amd64_ymmh_avx512_names, amd64_mpx_names, amd64_k_names)
1348 (amd64_zmmh_names, amd64_zmm_names, amd64_xmm_avx512_names)
1349 (amd64_pkeys_names, amd64_byte_names, amd64_word_names)
1350 (amd64_dword_names): Now const.
1351 * agent.c (can_use_agent_enum): Now const.
1352 * ada-tasks.c (task_states, long_task_states): Now const.
1353 * ada-lang.c (known_runtime_file_name_patterns)
1354 (known_auxiliary_function_name_patterns, attribute_names)
1355 (standard_exc, ada_extensions): Now const.
1356
89806626
SM
13572020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
1358
1359 * bcache.h (struct bcache) <bcache>: Remove constructor.
1360 <m_hash_function, m_compare_function>: Remove.
1361 <~bcache>: Make virtual.
1362 <compare>: Remove static method, introduce virtual method.
1363 <default_hash>: Remove.
1364 <hash>: New virtual method.
1365 * bcache.c (bcache::expand_hash_table): Update.
1366 (bcache::insert): Update.
1367 (bcache::hash): New.
1368 (bcache::compare): Update comment and parameter names.
1369 * gdbtypes.c (types_deeply_equal): Update.
1370 * psymtab.h (struct psymbol_bcache): New struct.
1371 (class psymtab_storage) <psymtab_storage>: Make default.
1372 <psymbol_cache>: Change type to psymbol_bcache.
1373 * psymtab.c (psymtab_storage::psymtab_storage): Remove.
1374 (psymbol_hash): Change to...
1375 (psymbol_bcache::hash): ... this.
1376 (psymbol_compare): Change to...
1377 (psymbol_bcache::compare): ... this.
1378
677c92fe
SM
13792020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
1380
1381 * linux-nat.c (linux_nat_wait_1): Don't use inferior_ptid when
1382 checking for initial lwp.
1383
3eba3a01
TT
13842020-09-14 Tom Tromey <tromey@adacore.com>
1385
1386 * m68k-tdep.c (m68k_extract_return_value): Use
1387 pointer_result_regnum.
1388 (m68k_store_return_value): Likewise.
1389 (m68k_reg_struct_return_p): Handle vectors and arrays.
1390 (m68k_return_value): Handle arrays.
1391 (m68k_svr4_return_value): Fix single-element aggregate handling.
1392 Handle long double. Adjust for embedded ABI.
1393 (m68k_svr4_init_abi): Set pointer_result_regnum.
1394 (m68k_embedded_init_abi): New function.
1395 (m68k_gdbarch_init): Handle Tag_GNU_M68K_ABI_FP.
1396 (m68k_osabi_sniffer): New function.
1397 (_initialize_m68k_tdep): Register osabi sniffer.
1398 * m68k-tdep.h (struct gdbarch_tdep) <pointer_result_regnum>: New
1399 member.
1400
33f4dd48
SM
14012020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
1402
1403 * xml-support.c (xml_fetch_content_from_file): Replace xfree
1404 with gdb::unique_xmalloc_ptr<char>.
1405
8400a90d
SM
14062020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
1407
1408 * xml-support.h (xml_fetch_another): Change type to be a
1409 function_view.
1410 (xml_process_xincludes): Remove baton parameter.
1411 (xml_fetch_content_from_file): Change baton parameter to
1412 dirname.
1413 * xml-support.c (struct xinclude_parsing_data)
1414 <xinclude_parsing_data>: Remove baton parameter.
1415 <fetcher_baton>: Remove.
1416 (xinclude_start_include): Adjust.
1417 (xml_process_xincludes): Adjust.
1418 (xml_fetch_content_from_file): Replace baton parameter with
1419 dirname.
1420 * xml-syscall.c (syscall_parse_xml): Remove baton parameter.
1421 (xml_init_syscalls_info): Use a lambda.
1422 * xml-tdesc.c (tdesc_parse_xml): Remove baton parameter.
1423 (file_read_description_xml): Use a lambda.
1424 (fetch_available_features_from_target): Change baton parameter
1425 to target_ops.
1426 (target_read_description_xml): Use a lambda.
1427 (target_fetch_description_xml): Use a lambda.
1428 (string_read_description_xml): Update.
1429
04f5bab2
SM
14302020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
1431
1432 * gdbtypes.h (TYPE_ENDIANITY_NOT_DEFAULT): Remove, replace all
1433 uses with type::endianity_is_not_default.
1434
db558e34
SM
14352020-09-14 Simon Marchi <simon.marchi@efficios.com>
1436
1437 * gdbtypes.h (struct type) <endianity_is_not_default,
1438 set_endianity_is_not_default>: New methods.
1439 (TYPE_ENDIANITY_NOT_DEFAULT): Use
1440 type::endianity_is_not_default, change all write call sites to
1441 use type::set_endianity_is_not_default.
1442
22c4c60c
SM
14432020-09-14 Simon Marchi <simon.marchi@efficios.com>
1444
1445 * gdbtypes.h (TYPE_FIXED_INSTANCE): Remove, replace all
1446 uses with type::is_fixed_instance.
1447
9cdd0d12
SM
14482020-09-14 Simon Marchi <simon.marchi@efficios.com>
1449
1450 * gdbtypes.h (struct type) <is_fixed_instance,
1451 set_is_fixed_instance>: New methods.
1452 (TYPE_FIXED_INSTANCE): Use type::is_fixed_instance, change all
1453 write call sites to use type::set_is_fixed_instance.
1454
0becda7a
SM
14552020-09-14 Simon Marchi <simon.marchi@efficios.com>
1456
1457 * gdbtypes.h (TYPE_GNU_IFUNC): Remove, replace all
1458 uses with type::is_gnu_ifunc.
1459
03cc7249
SM
14602020-09-14 Simon Marchi <simon.marchi@efficios.com>
1461
1462 * gdbtypes.h (struct type) <is_gnu_ifunc, set_is_gnu_ifunc>: New methods.
1463 (TYPE_GNU_IFUNC): Use type::is_gnu_ifunc, change all write call sites to
1464 use type::set_is_gnu_ifunc.
1465
3f46044c
SM
14662020-09-14 Simon Marchi <simon.marchi@efficios.com>
1467
1468 * gdbtypes.h (TYPE_STUB_SUPPORTED): Remove, replace all
1469 uses with type::stub_is_supported.
1470
9baccff6
SM
14712020-09-14 Simon Marchi <simon.marchi@efficios.com>
1472
1473 * gdbtypes.h (struct type) <stub_is_supported, set_stub_is_supported>: New methods.
1474 (TYPE_STUB_SUPPORTED): Use type::stub_is_supported, change all write call sites to
1475 use type::set_stub_is_supported.
1476
bd63c870
SM
14772020-09-14 Simon Marchi <simon.marchi@efficios.com>
1478
1479 * gdbtypes.h (TYPE_VECTOR): Remove, replace all
1480 uses with type::is_vector.
1481
2062087b
SM
14822020-09-14 Simon Marchi <simon.marchi@efficios.com>
1483
1484 * gdbtypes.h (struct type) <is_vector, set_is_vector>: New methods.
1485 (TYPE_VECTOR): Use type::is_vector, change all write call sites to
1486 use type::set_is_vector.
1487
a409645d
SM
14882020-09-14 Simon Marchi <simon.marchi@efficios.com>
1489
1490 * gdbtypes.h (TYPE_VARARGS): Remove, replace all
1491 uses with type::has_varargs.
1492
1d6286ed
SM
14932020-09-14 Simon Marchi <simon.marchi@efficios.com>
1494
1495 * gdbtypes.h (struct type) <has_varargs, set_has_varargs>: New methods.
1496 (TYPE_VARARGS): Use type::has_varargs, change all write call sites to
1497 use type::set_has_varargs.
1498
7f9f399b
SM
14992020-09-14 Simon Marchi <simon.marchi@efficios.com>
1500
1501 * gdbtypes.h (TYPE_PROTOTYPED): Remove, replace all
1502 uses with type::is_prototyped.
1503
27e69b7a
SM
15042020-09-14 Simon Marchi <simon.marchi@efficios.com>
1505
1506 * gdbtypes.h (struct type) <is_prototyped, set_is_prototyped>:
1507 New methods.
1508 (TYPE_PROTOTYPED): Use type::is_prototyped, change all write
1509 call sites to use type::set_is_prototyped.
1510
d2183968
SM
15112020-09-14 Simon Marchi <simon.marchi@efficios.com>
1512
1513 * gdbtypes.h (TYPE_TARGET_STUB): Remove, replace all
1514 uses with type::target_is_stub.
1515
8f53807e
SM
15162020-09-14 Simon Marchi <simon.marchi@efficios.com>
1517
1518 * gdbtypes.h (struct type) <target_is_stub, set_target_is_stub>:
1519 New methods.
1520 (TYPE_TARGET_STUB): Use type::is_stub, change all write call
1521 sites to use type::set_target_is_stub.
1522
e46d3488
SM
15232020-09-14 Simon Marchi <simon.marchi@efficios.com>
1524
1525 * gdbtypes.h (TYPE_STUB): Remove, replace all
1526 uses with type::is_stub.
1527
b4b73759
SM
15282020-09-14 Simon Marchi <simon.marchi@efficios.com>
1529
1530 * gdbtypes.h (struct type) <is_stub, set_is_stub>: New methods.
1531 (TYPE_STUB): Use type::is_stub, change all write call sites to
1532 use type::set_is_stub.
1533
20ce4123
SM
15342020-09-14 Simon Marchi <simon.marchi@efficios.com>
1535
1536 * gdbtypes.h (TYPE_NOSIGN): Remove, replace all uses with
1537 type::has_no_signedness.
1538
15152a54
SM
15392020-09-14 Simon Marchi <simon.marchi@efficios.com>
1540
1541 * gdbtypes.h (struct type) <has_no_signedness,
1542 set_has_no_signedness>: New methods.
1543 (TYPE_NOSIGN): Use type::has_no_signedness, change all write
1544 call sites to use type::set_has_no_signedness.
1545
c6d940a9
SM
15462020-09-14 Simon Marchi <simon.marchi@efficios.com>
1547
1548 * gdbtypes.h (TYPE_UNSIGNED): Remove, replace all uses with
1549 type::is_unsigned.
1550
653223d3
SM
15512020-09-14 Simon Marchi <simon.marchi@efficios.com>
1552
1553 * gdbtypes.h (struct type) <is_unsigned, set_is_unsigned>: New
1554 methods.
1555 (TYPE_UNSIGNED): Use type::is_unsigned. Change all write call
1556 sites to use type::set_is_unsigned.
1557
55ea94da
FH
15582020-09-14 Fredrik Hederstierna <fredrik.hederstierna@verisure.com>
1559 Adam Renquinha <arenquinha@cimeq.qc.ca>
1560
1561 * arm-tdep.c (arm_m_exception_cache): Try use correct stack
1562 pointer and stack frame offset when unwinding.
1563
6791b117
PA
15642020-09-13 Pedro Alves <pedro@palves.net>
1565
1566 * NEWS: Document "-break-insert --qualified".
1567 * mi/mi-cmd-break.c (mi_cmd_break_insert_1): Handle "--qualified".
1568
77f2120b
PA
15692020-09-13 Pedro Alves <pedro@palves.net>
1570
1571 * linespec.c (classify_mtype, compare_msyms): Delete.
1572 (search_minsyms_for_name): Remove classification logic. Instead
1573 filter out trampoline symbols if we also found an external
1574 function of the same name.
1575
ed6a896c
JB
15762020-09-13 Joel Brobecker <brobecker@adacore.com>
1577
1578 * NEWS: Create a new section for the next release branch.
1579 Rename the section of the current branch, now that it has
1580 been cut.
1581
32aea73e
JB
15822020-09-13 Joel Brobecker <brobecker@adacore.com>
1583
1584 GDB 10 branch created (8087c3fa8b5d695e3e29e69d70d0b35ec902ac59):
1585 * version.in: Bump version to 11.0.50.DATE-git.
1586
8087c3fa
JB
15872020-09-12 Joel Brobecker <brobecker@adacore.com>
1588
1589 * infrun.c (namespace selftests): Only define #if GDB_SELF_TEST.
1590
2a67f09d
FW
15912020-09-11 Moritz Riesterer <moritz.riesterer@intel.com>
1592 Felix Willgerodt <Felix.Willgerodt@intel.com>
1593
1594 * gdbarch.sh: Added bfloat16 type.
1595 * gdbarch.c: Regenerated.
1596 * gdbarch.h: Regenerated.
1597 * gdbtypes.c (floatformats_bfloat16): New struct.
1598 (gdbtypes_post_init): Add builtin_bfloat16.
1599 * gdbtypes.h (struct builtin_type) <builtin_bfloat16>: New member.
1600 (floatformats_bfloat16): New struct.
1601 * i386-tdep.c (i386_zmm_type): Add field "v32_bfloat16"
1602 (i386_ymm_type): Add field "v16_bfloat16"
1603 (i386_gdbarch_init): Add set_gdbarch_bfloat16_format.
1604 * target-descriptions.c (make_gdb_type): Add case TDESC_TYPE_BFLOAT16.
1605 * gdbsupport/tdesc.cc (tdesc_predefined_types): New member bfloat16.
1606 * gdbsupport/tdesc.h (tdesc_type_kind): New member TDESC_TYPE_BFLOAT16.
1607 * features/i386/64bit-avx512.xml: Add bfloat16 type.
1608 * features/i386/64bit-avx512.c: Regenerated.
1609 * features/i386/64bit-sse.xml: Add bfloat16 type.
1610 * features/i386/64bit-sse.c: Regenerated.
1611
1347d111
FW
16122020-09-11 Felix Willgerodt <felix.willgerodt@intel.com>
1613
1614 * i386-tdep.c (i386_zmm_type): Fix field names.
1615 (i386_ymm_type): Fix field names.
1616
7a4e8e7d
TBA
16172020-09-11 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1618
1619 * breakpoint.c: Fix typo in the help message of the
1620 "set breakpoint condition-evaluation" command.
1621
cf4ac4be
KR
16222020-09-10 Kamil Rytarowski <n54@gmx.com>
1623
1624 * nbsd-nat.c: Include "nat/netbsd-nat.h".
1625 * (nbsd_nat_target::pid_to_exec_file)
1626 (nbsd_nat_target::thread_alive, nbsd_nat_target::thread_name)
1627 (nbsd_nat_target::post_startup_inferior)
1628 (nbsd_nat_target::post_attach, nbsd_nat_target::xfer_partial)
1629 (nbsd_add_threads): Switch local code to common gdb/nat functions.
1630 * (nbsd_pid_to_cmdline): Call sysctl from the global namespace.
1631 * (nbsd_thread_lister): Remove.
1632
f404573e
KR
16332020-09-10 Kamil Rytarowski <n54@gmx.com>
1634
1635 * fork-inferior.c (startup_inferior): Avoid double free.
1636
1ccb2c17
KR
16372020-09-10 Kamil Rytarowski <n54@gmx.com>
1638
1639 * netbsd-nat.h (netbsd_nat::qxfer_siginfo): Add.
1640 * netbsd-nat.c (netbsd_nat::qxfer_siginfo): Likewise.
1641
feedfcc7
KR
16422020-09-10 Kamil Rytarowski <n54@gmx.com>
1643
1644 * netbsd-nat.h (netbsd_nat::enable_proc_events): Add.
1645 * netbsd-nat.c: Include <sys/ptrace.h>.
1646 * (netbsd_nat::enable_proc_events): Add.
1647
c489f8c6
KR
16482020-09-10 Kamil Rytarowski <n54@gmx.com>
1649
1650 * netbsd-nat.h: Include "gdbsupport/function-view.h".
1651 * (netbsd_nat::thread_alive, netbsd_nat::thread_name)
1652 (netbsd_nat::for_each_thread): Add.
1653 * netbsd-nat.c: Include "gdbsupport/common-defs.h" and
1654 "gdbsupport/common-debug.h".
1655 * (netbsd_nat::netbsd_thread_lister)
1656 (netbsd_nat::thread_alive, netbsd_nat::thread_name)
1657 (netbsd_nat::for_each_thread): Add.
1658
330662f6
KR
16592020-09-10 Kamil Rytarowski <n54@gmx.com>
1660
1661 * netbsd-nat.h: Include <unistd.h>.
1662 * (netbsd_nat::pid_to_exec_file): Add.
1663 * netbsd-nat.c: Include <sys/types.h> and <sys/sysctl.h>.
1664 * (netbsd_nat::pid_to_exec_file) Add.
1665
70b67307
KR
16662020-09-10 Kamil Rytarowski <n54@gmx.com>
1667
1668 * configure.nat (NATDEPFILES): Add nat/netbsd-nat.o when needed.
1669
99cf6da6
KR
16702020-09-10 Kamil Rytarowski <n54@gmx.com>
1671
1672 * netbsd-nat.h: New file.
1673 * netbsd-nat.c: Likewise.
1674
1b788fb6
TT
16752020-09-09 Tom Tromey <tromey@adacore.com>
1676
1677 * ada-lang.c (remove_extra_symbols): Do not increment when
1678 removing an element
1679
03b0a45f
TT
16802020-09-08 Tom Tromey <tromey@adacore.com>
1681
1682 * gdb_bfd.c (gdb_bfd_open): Call bfd_fopen when fstat fails.
1683
3cae4447
TT
16842020-09-08 Tom Tromey <tromey@adacore.com>
1685
1686 PR win32/25302:
1687 * gdb_bfd.c (gdb_bfd_data): Add "st" parameter.
1688 (gdb_bfd_init_data): New function.
1689 (gdb_bfd_open, gdb_bfd_ref): Use gdb_bfd_init_data.
1690
7f08fd51
TBA
16912020-09-07 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1692
1693 * infrun.c (fetch_inferior_event): Use
1694 `switch_to_target_no_thread` to switch the target.
1695
3e6ff933
TT
16962020-09-06 Tom Tromey <tom@tromey.com>
1697
1698 * symfile.h (dwarf2_free_objfile): Don't declare.
1699
e56798df
AKS
17002020-09-03 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
1701
1702 * gdb/i386-tdep.c (i386_floatformat_for_type): Added conditions
1703 to match 16 byte real/complex type generated by Flang compiler.
1704
8f5c6526
TV
17052020-09-03 Tom de Vries <tdevries@suse.de>
1706
1707 PR breakpoint/26546
1708 * dwarf2/read.c (new_symbol): Tag label symbol without DW_AT_low_pc as
1709 LOC_OPTIMIZED_OUT instead of LOC_LABEL.
1710
c5065df0
SM
17112020-09-02 Simon Marchi <simon.marchi@polymtl.ca>
1712
1713 * maint.c (index_digits): New function.
1714 (struct maint_print_section_data): Remove.
1715 (print_bfd_section_info): Remove print_data parameter, add arg
1716 and index_digits.
1717 (print_objfile_section_info): Likewise.
1718 (print_bfd_section_info_maybe_relocated): Likewise (plus
1719 objfile).
1720 (maintenance_info_sections): Adjust calls.
1721
02c6f3f1
TT
17222020-09-02 Tom Tromey <tromey@adacore.com>
1723
1724 * ada-varobj.c (ada_varobj_get_ptr_number_of_children): Return 0
1725 for null pointers.
1726 (ada_varobj_adjust_for_child_access): Special-case null pointers.
1727
ef5e5b0b
SM
17282020-09-01 Simon Marchi <simon.marchi@polymtl.ca>
1729
1730 * bcache.h (struct bcache) <insert>: Change type of `added` to
1731 pointer to bool.
1732 * bcache.c (bcache::insert): Likewise.
1733 * gdbtypes.c (check_types_worklist): Adjust.
1734 * psymtab.c (add_psymbol_to_bcache): Adjust.
1735
973695d6
KB
17362020-08-31 Kevin Buettner <kevinb@redhat.com>
1737
1738 * corelow.c (unordered_set): Include.
1739 (class core_target): Add field 'm_core_unavailable_mappings'.
1740 (core_target::build_file_mappings): Print only one warning
1741 per inaccessible file. Add unavailable/broken mappings
1742 to m_core_unavailable_mappings.
1743 (core_target::xfer_partial): Call...
1744 (core_target::xfer_memory_via_mappings): New method.
1745
264fc0e2
SM
17462020-08-31 Simon Marchi <simon.marchi@polymtl.ca>
1747
1748 * dwarf2/read.c (struct field_info) <non_public_fields>: Change
1749 type to bool.
1750
2de01bdb
SM
17512020-08-31 Simon Marchi <simon.marchi@polymtl.ca>
1752
1753 * dwarf2/read.c (struct field_info): Fix indentation.
1754
f3bd50f1
SM
17552020-08-31 Simon Marchi <simon.marchi@efficios.com>
1756
1757 * frame-unwind.h (frame_prev_register_ftype): Fix adjective
1758 ordering in comment.
1759 * frame.c (frame_id_eq): Fix indentation.
1760
22b9b4b0
SL
17612020-08-31 Scott Linder <scott@scottlinder.com>
1762 Simon Marchi <simon.marchi@efficios.com>
1763
1764 * inline-frame.c (inline_frame_this_id): Remove assert that prevents
1765 inline frame ids in outer frame.
1766
84154d16
SM
17672020-08-31 Simon Marchi <simon.marchi@efficios.com>
1768
1769 * frame.h (enum frame_id_stack_status) <FID_STACK_OUTER>: New.
1770 * frame.c (fprint_frame_id): Handle FID_STACK_OUTER.
1771 (outer_frame_id): Use FID_STACK_OUTER instead of
1772 FID_STACK_INVALID.
1773 (frame_id_p): Don't check for outer_frame_id.
1774
8efaf6b3
SM
17752020-08-31 Simon Marchi <simon.marchi@efficios.com>
1776
1777 * frame-unwind.c (frame_unwind_got_optimized): Don't set
1778 regnum/frame in value. Call allocate_value_lazy.
1779 * frame.c (frame_unwind_register_value): Use
1780 val_print_not_saved.
1781
fe1fe7ea
SM
17822020-08-31 Simon Marchi <simon.marchi@efficios.com>
1783
1784 * gdbtypes.h (NULL_TYPE): Remove, change all uses to nullptr.
1785
f7c7700d
PA
17862020-08-29 Pedro Alves <pedro@palves.net>
1787
1788 * progspace.c (print_program_space): Use all_inferiors. Switch to
1789 the inferior before calling target_pid_to_str.
1790
e0814aae
TT
17912020-08-28 Tom Tromey <tom@tromey.com>
1792
1793 * xcoffread.c (xcoff_end_psymtab): Update comment.
1794 * dbxread.c (dbx_end_psymtab): Update comment.
1795
626d2320
TV
17962020-08-28 Tom de Vries <tdevries@suse.de>
1797
1798 PR breakpoint/26544
1799 * breakpoint.c (parse_breakpoint_sals): Remove const from struct
1800 event_location.
1801 (create_breakpoint): Same.
1802 (base_breakpoint_decode_location): Same.
1803 (bkpt_create_sals_from_location): Same.
1804 (bkpt_decode_location): Same.
1805 (bkpt_probe_create_sals_from_location): Same.
1806 (bkpt_probe_decode_location): Same.
1807 (tracepoint_create_sals_from_location): Same.
1808 (tracepoint_decode_location): Same.
1809 (tracepoint_probe_decode_location): Same.
1810 (strace_marker_create_sals_from_location): Same.
1811 (strace_marker_decode_location): Same.
1812 (create_sals_from_location_default): Same.
1813 (decode_location_default): Same.
1814 * breakpoint.h (struct breakpoint_ops): Same.
1815 (create_breakpoint): Same.
1816 * linespec.h (decode_line_full): Same.
1817 * linespec.c (decode_line_full): Same. Throw error if
1818 result.size () == 0.
1819
df631783
PA
18202020-08-27 Pedro Alves <pedro@palves.net>
1821
1822 PR gdb/26524
1823 * breakpoint.c (until_break_fsm) <location_breakpoint,
1824 caller_breakpoint>: Delete fields.
1825 <breakpoints>: New field.
1826 <until_break_fsm>: Adjust to save a breakpoint vector instead of
1827 two individual breakpoints.
1828 (until_break_fsm::should_stop): Loop over breakpoints in the
1829 breakpoint vector.
1830 (until_break_fsm::clean_up): Adjust to clear the breakpoints
1831 vector.
1832 (until_break_command): Handle location expanding into multiple
1833 sals.
1834
b2b38aa4
PA
18352020-08-27 Pedro Alves <pedro@palves.net>
1836
1837 PR gdb/26523
1838 * inline-frame.c (stopped_by_user_bp_inline_frame): Also consider
1839 bp_until breakpoints user-specified locations. Update intro
1840 comment.
1841
b886559f
SM
18422020-08-27 Simon Marchi <simon.marchi@polymtl.ca>
1843
1844 * gdb_bfd.h (gdb_bfd_section_iterator, gdb_bfd_section_range,
1845 gdb_bfd_sections): New.
1846 * maint.c (print_bfd_section_info): Change param type to
1847 maint_print_section_data.
1848 (print_objfile_section_info): Likewise.
1849 (print_bfd_section_info_maybe_relocated): Likewise.
1850 (maintenance_info_sections): Use gdb_bfd_sections.
1851
4c6e63bf
SV
18522020-08-25 Shahab Vahedi <shahab@synopsys.com>
1853
1854 * MAINTAINERS: Add ARC target and maintainer.
1855
8d7f0635
AK
18562020-08-25 Anton Kolesov <anton.kolesov@synopsys.com>
1857
1858 * configure.tgt: ARC support for GNU/Linux.
1859 * Makefile.in (ALL_TARGET_OBJS): Likewise.
1860 * arc-linux-tdep.c: New file.
1861 * arc-tdep.h (ARC_STATUS32_L_MASK, ARC_STATUS32_DE_MASK): Declare.
1862 * arc-tdep.c (arc_write_pc): Use it.
1863
fdd8731b
SV
18642020-08-25 Shahab Vahedi <shahab@synopsys.com>
1865
1866 * arc-tdep.c (arc_check_for_hardware_loop): New.
1867 * arc-tdep.h (gdbarch_tdep): New field has_hw_loops.
1868
22459524
SV
18692020-08-25 Shahab Vahedi <shahab@synopsys.com>
1870
1871 * arc-tdep.h: Include "gdbarch.h".
1872
995d3a19
SV
18732020-08-25 Shahab Vahedi <shahab@synopsys.com>
1874
1875 * arch/arc.h
1876 (arc_gdbarch_features): New class to stir the selection of target XML.
1877 (arc_create_target_description): Use FEATURES to choose XML target.
1878 (arc_lookup_target_description): Use arc_create_target_description
1879 to create _new_ target descriptions or return the already created
1880 ones if the FEATURES is the same.
1881 * arch/arc.c: Implementation of prototypes described above.
1882 * gdb/arc-tdep.h (arc_regnum enum): Add more registers.
1883 (arc_gdbarch_features_init): Initialize the FEATURES struct.
1884 * arc-tdep.c (*_feature_name): Make feature names consistent.
1885 (arc_register_feature): A new struct to hold information about
1886 registers of a particular target/feature.
1887 (arc_check_tdesc_feature): Check if XML provides registers in
1888 compliance with ARC_REGISTER_FEATURE structs.
1889 (arc_update_acc_reg_names): Add aliases for r58 and r59.
1890 (determine_*_reg_feature_set): Which feature name to look for.
1891 (arc_gdbarch_features_init): Given MACH and ABFD, initialize FEATURES.
1892 (mach_type_to_arc_isa): Convert from a set of binutils machine types
1893 to expected ISA enums to be used in arc_gdbarch_features structs.
1894 * features/Makefile (FEATURE_XMLFILES): Add new files.
1895 * gdb/features/arc/v1-aux.c: New file.
1896 * gdb/features/arc/v1-aux.xml: Likewise.
1897 * gdb/features/arc/v1-core.c: Likewise.
1898 * gdb/features/arc/v1-core.xml: Likewise.
1899 * gdb/features/arc/v2-aux.c: Likewise.
1900 * gdb/features/arc/v2-aux.xml: Likewise.
1901 * gdb/features/arc/v2-core.c: Likewise.
1902 * gdb/features/arc/v2-core.xml: Likewise.
1903 * NEWS (Changes since GDB 9): Announce obsolence of old feature names.
1904
3945d2d7
GM
19052020-08-25 Gaius Mulley <gaiusmod2@gmail.com>
1906 Andrew Burgess <andrew.burgess@embecosm.com>
1907
1908 PR m2/26372
fc5d6901 1909 * m2-exp.y (exp): Improve comment for non_empty_arglist case, add
3945d2d7
GM
1910 an assert. Remove single element array indexing pattern as the
1911 MULTI_SUBSCRIPT support will handle this case too.
1912
2677f2d3
SM
19132020-08-24 Simon Marchi <simon.marchi@polymtl.ca>
1914
1915 * value.h (valprint_check_validity): Move declaration from
1916 here...
1917 * valprint.h (valprint_check_validity): ... to here.
1918
c426fddb
SM
19192020-08-24 Simon Marchi <simon.marchi@efficios.com>
1920
1921 * debug.h: New file.
1922 * debug.c (debug_prefixed_vprintf): New function.
1923 * infrun.c (infrun_debug_printf_1): Use debug_prefixed_vprintf.
1924 * linux-nat.c (linux_nat_debug_printf_1): Likewise.
1925
1eb8556f
SM
19262020-08-24 Simon Marchi <simon.marchi@efficios.com>
1927
1928 * infrun.h (infrun_debug_printf_1): New function declaration.
1929 (infrun_debug_printf): New macro.
1930 * infrun.c (infrun_debug_printf_1): Use infrun_debug_printf
1931 throughout.
1932 (infrun_debug_printf): New function.
1933 * breakpoint.c (should_be_inserted): Use infrun_debug_printf.
1934 (handle_jit_event): Likewise.
1935
b8fff44e
MW
19362020-08-21 Mark Wielaard <mark@klomp.org>
1937
1938 * ada-lex.l: Extend register warnings diagnostics comment for g++.
1939
d19c3068
SM
19402020-08-22 Simon Marchi <simon.marchi@efficios.com>
1941
1942 * frame.c (enum class frame_id_status): New.
1943 (struct frame_info) <this_id::p>: Change type to frame_id_status.
1944 (fprintf_frame): Update.
1945 (compute_frame_id): Set frame id status to "computing" on entry.
1946 Set it back to "not_computed" on failure and to "computed" on
1947 success.
1948 (get_frame_id): Assert the frame id is not being computed.
1949 (create_sentinel_frame): Use frame_id_status::COMPUTED.
1950 (create_new_frame): Likewise.
1951 (frame_cleanup_after_sniffer): Update assert.
1952
b70e516e
SM
19532020-08-20 Simon Marchi <simon.marchi@polymtl.ca>
1954
1955 * regcache.c (pid_ptid_regcache_map): New type.
1956 (target_ptid_regcache_map): Remove.
1957 (target_pid_ptid_regcache_map): New type.
1958 (regcaches): Change type to target_pid_ptid_regcache_map.
1959 (get_thread_arch_aspace_regcache): Update.
1960 (regcache_thread_ptid_changed): Update, handle pid-like ptid
1961 case.
1962 (regcaches_size): Update.
1963 (regcache_count): Update.
1964 (registers_changed_ptid_target_pid_test): New.
1965 (_initialize_regcache): Register new test.
1966
cdd9148a
SM
19672020-08-20 Simon Marchi <simon.marchi@polymtl.ca>
1968
1969 * regcache.c (regcache_count): New.
1970 (struct regcache_test_data): New.
1971 (regcache_test_data_up): New.
1972 (populate_regcaches_for_test): New.
1973 (regcaches_test): Remove.
1974 (get_thread_arch_aspace_regcache_test): New.
1975 (registers_changed_ptid_all_test): New.
1976 (registers_changed_ptid_target_test): New.
1977 (registers_changed_ptid_target_ptid_test): New.
1978 (regcache_thread_ptid_changed): Remove regcache_count lambda.
1979 (_initialize_regcache): Register new tests.
1980
dd125343
SM
19812020-08-20 Simon Marchi <simon.marchi@polymtl.ca>
1982
1983 * regcache.c (test_get_thread_arch_aspace_regcache): Rename to...
1984 (get_thread_arch_aspace_regcache_and_check): ... this. Remove
1985 gdbarch and aspace parameter. Use current inferior's aspace.
1986 Validate regcache's arch value.
1987 (regcaches_test): Update.
1988
3ee93972
SM
19892020-08-20 Simon Marchi <simon.marchi@polymtl.ca>
1990
1991 * regcache.c (regcaches_test): Call registers_changed.
1992
33bf4c5c
TBA
19932020-08-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1994
1995 * infrun.c (process_event_stop_test): Fix typo "breapoint".
1996
c2fd7fae
AKS
19972020-08-19 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
1998
1999 * amd64-tdep.c (amd64_skip_prologue): Using symbol table
2000 to find the end of prologue for flang compiled binaries.
2001 * arm-tdep.c (arm_skip_prologue): Likewise.
2002 * i386-tdep.c (i386_skip_prologue): Likewise.
2003 * producer.c (producer_is_llvm): New function.
2004 (producer_parsing_tests): Added new tests for clang/flang.
2005 * producer.h (producer_is_llvm): New declaration.
2006
9327494e
SM
20072020-08-18 Simon Marchi <simon.marchi@efficios.com>
2008
2009 * linux-nat.c (linux_nat_debug_printf): New function.
2010 (linux_nat_debug_printf_1): New macro. Use throughout the file.
2011
d138725a
AM
20122020-08-18 Aaron Merey <amerey@redhat.com>
2013
2014 * Makefile.in (DEBUGINFOD_CFLAGS, DEBUGINFOD_LIBS): New variables.
2015 (INTERNAL_CFLAGS_BASE): Add DEBUGINFOD_CFLAGS.
2016 (CLIBS): Add DEBUGINFOD_LIBS.
2017
f9b11e6b
ST
20182020-08-17 Sergei Trofimovich <siarheit@google.com>
2019
2020 * ia64-linux-nat.c: Include "gdbarch.h" to declare used
2021 'gdbarch_num_regs'.
2022
3ae7ab99
TT
20232020-08-17 Tom Tromey <tromey@adacore.com>
2024
2025 * ada-varobj.c (ada_varobj_decode_var): Handle case where
2026 ada_get_decoded_value returns NULL.
2027
b017825f
TT
20282020-08-17 Tom Tromey <tromey@adacore.com>
2029
2030 * python/py-inferior.c (infpy_search_memory): Use
2031 gdb_py_object_from_ulongest.
2032 * python/py-infevents.c (create_inferior_call_event_object)
2033 (create_memory_changed_event_object): Use
2034 gdb_py_object_from_ulongest.
2035 * python/py-linetable.c (ltpy_entry_get_pc): Use
2036 gdb_py_object_from_ulongest.
2037
7635cf79
SM
20382020-08-17 Simon Marchi <simon.marchi@polymtl.ca>
2039
2040 * loc.c (class symbol_needs_eval_context): Fix indentation.
2041
f54be24b
SM
20422020-08-17 Simon Marchi <simon.marchi@polymtl.ca>
2043
2044 * dwarf2/loc.c (dwarf2_loc_desc_get_symbol_read_needs): Use
2045 bool.
2046
53d5a2a5
TV
20472020-08-17 Tom de Vries <tdevries@suse.de>
2048
2049 PR gdb/26393
2050 * gdbtypes.c (dump_dynamic_prop): New function.
2051 (recursive_dump_type): Use dump_dynamic_prop for TYPE_CODE_RANGE.
2052
547ce8f0
TV
20532020-08-15 Tom de Vries <tdevries@suse.de>
2054
2055 PR backtrace/26390
2056 * stack.c (print_frame_args): Temporarily set the selected
2057 frame to FRAME while printing the frame's arguments.
2058
6ea815e7
PFC
20592020-08-14 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
2060
2061 PR breakpoints/26385
2062 * ppc-linux-nat.c (ppc_linux_nat_target::low_prepare_to_resume):
2063 Always clear watchpoint with PTRACE_SET_DEBUGREG.
2064
6e562fa3
PFC
20652020-08-14 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
2066
2067 * ppc-linux-nat.c (ppc_linux_dreg_interface::detect)
2068 (ppc_linux_nat_target::low_prepare_to_resume): Use ptrace () < 0
2069 and >= to check return value instead of == -1 and != -1.
2070
d369b608
SM
20712020-08-14 Simon Marchi <simon.marchi@polymtl.ca>
2072
2073 * utils.h (class gdb_argv) <as_array_view>: New method.
2074 * utils.c (gdb_argv_as_array_view_test): New.
2075 (_initialize_utils): Register selftest.
2076 * maint.c (maintenance_selftest): Use the new method.
2077
b31488a3
KR
20782020-08-13 Kamil Rytarowski <n54@gmx.com>
2079
2080 * target.h (supports_dumpcore, dumpcore): New
2081 function declarations.
2082 * target.c (supports_dumpcore, dumpcore): New
2083 functions.
2084 * target-delegates.c: Rebuild.
2085 * gcore.c (gcore_command): Use target_supports_dumpcore ()
2086 and target_dumpcore ().
2087
002a3166
AM
20882020-08-13 Aaron Merey <amerey@redhat.com>
2089
2090 * debuginfod-support.c: Replace global variables with user_data.
2091
ece5bc8a
SM
20922020-08-13 Simon Marchi <simon.marchi@polymtl.ca>
2093
2094 * maint.c (maintenance_selftest): Split args and pass array_view
2095 to run_tests.
2096
6d8a0a5e
LM
20972020-08-12 Luis Machado <luis.machado@linaro.org>
2098
2099 * value.c (check_type_length_before_alloc): Use ULONGEST to store a
2100 type's length.
2101 Use %s and pulongest to print the length.
2102
7cf663a9
PA
21032020-08-12 Pedro Alves <palves@redhat.com>
2104
2105 * NEWS: Move "Multi-target debugging support" item to the
2106 "Changes since GDB 9" section.
2107
27c7b875
PA
21082020-08-12 Pedro Alves <palves@redhat.com>
2109
2110 PR gdb/26336
2111 * progspace.c (program_space::remove_objfile): Invalidate the
2112 frame cache.
2113
1796a2a1
TV
21142020-08-11 Tom de Vries <tdevries@suse.de>
2115
2116 * MAINTAINERS: Mark ms1 as deleted.
2117
f8e3fe0d
LM
21182020-08-10 Luis Machado <luis.machado@linaro.org>
2119
2120 PR gdb/26310
2121
2122 * aarch64-tdep.c (aarch64_analyze_prologue): Track use of SP/FP and
2123 act accordingly.
2124 (aarch64_analyze_prologue_test): Add more unit tests to exercise
2125 movz/str/stur/stp skipping behavior.
2126
cc308722
LM
21272020-08-10 Luis Machado <luis.machado@linaro.org>
2128
2129 * nat/aarch64-sve-linux-sigcontext.h (SVE_PT_REGS_OFFSET): Use
2130 struct user_sve_header instead of struct sve_context.
2131
041d9819
SM
21322020-08-09 Simon Marchi <simon.marchi@polymtl.ca>
2133
2134 * read.h (dwarf2_fetch_die_loc_sect_off,
2135 dwarf2_fetch_die_loc_cu_off): Replace function pointer +
2136 `void *` parameter with function_view.
2137 * read.c (dwarf2_fetch_die_loc_sect_off,
2138 dwarf2_fetch_die_loc_cu_off): Likewise.
2139 * loc.c (get_frame_pc_for_per_cu_dwarf_call): Remove.
2140 (per_cu_dwarf_call): Adjust.
2141 (get_frame_address_in_block_wrapper): Remove.
2142 (indirect_synthetic_pointer): Adjust.
2143 (get_ax_pc): Remove.
2144 (dwarf2_compile_expr_to_ax): Adjust.
2145
38f8aa06
TV
21462020-08-08 Tom de Vries <tdevries@suse.de>
2147
2148 PR build/26344
2149 * arch/riscv.c (riscv_lookup_target_description): Use an explicit
2150 constructor.
2151 * regcache.c (get_thread_arch_aspace_regcache): Same.
2152
a52b3ae2
TT
21532020-08-07 Tom Tromey <tromey@adacore.com>
2154
2155 * ravenscar-thread.c
2156 (ravenscar_thread_target::set_base_thread_from_ravenscar_task):
2157 New method.
2158 (ravenscar_thread_target::wait): Check
2159 runtime_initialized.
2160 (ravenscar_thread_target::prepare_to_store)
2161 (ravenscar_thread_target::stopped_by_sw_breakpoint)
2162 (ravenscar_thread_target::stopped_by_hw_breakpoint)
2163 (ravenscar_thread_target::stopped_by_watchpoint)
2164 (ravenscar_thread_target::stopped_data_address)
2165 (ravenscar_thread_target::core_of_thread): Use
2166 scoped_restore_current_thread and
2167 set_base_thread_from_ravenscar_task.
2168
0e29517d
TT
21692020-08-07 Tom Tromey <tromey@adacore.com>
2170
2171 * ravenscar-thread.c (update_thread_list): Set inferior_ptid.
2172
592f9bd7
TT
21732020-08-07 Tom Tromey <tromey@adacore.com>
2174
2175 * ravenscar-thread.c (ravenscar_thread_target::wait): Call
2176 update_inferior_ptid before update_thread_list.
2177 (temporarily_change_regcache_ptid): New class.
2178 (ravenscar_thread_target::fetch_registers)
2179 (ravenscar_thread_target::store_registers)
2180 (ravenscar_thread_target::prepare_to_store): Use base thread when
2181 forwarding operation.
2182
39e2018a
TT
21832020-08-07 Tom Tromey <tromey@adacore.com>
2184
2185 * ravenscar-thread.c (ravenscar_thread_target::resume): Handle
2186 "is_pid" case.
2187
2080266b
TT
21882020-08-07 Tom Tromey <tromey@adacore.com>
2189
2190 * ravenscar-thread.c (xfer_partial, enable_btrace, add_thread):
2191 New methods.
2192 (ravenscar_thread_target::get_thread_base_cpu): Check m_cpu_map
2193 first.
2194 (ravenscar_thread_target::add_thread): Rename from
2195 ravenscar_add_thread.
2196 (ravenscar_thread_target::update_thread_list): Use a lambda.
2197 (ravenscar_thread_target::xfer_partial): New method.
2198
78c02f21
TT
21992020-08-07 Tom Tromey <tromey@adacore.com>
2200
2201 * ada-lang.h (ada_task_list_iterator_ftype): Now a
2202 gdb::function_view.
2203 (iterate_over_live_ada_tasks): Change type of argument.
2204 * ada-tasks.c (iterate_over_live_ada_tasks): Change type
2205 of argument.
2206
d5d833af
TT
22072020-08-07 Tom Tromey <tromey@adacore.com>
2208
2209 * ravenscar-thread.c (ravenscar_thread_target) <extra_thread_info>:
2210 Remove.
2211 (ravenscar_thread_target::extra_thread_info): Remove.
2212 (ravenscar_thread_target::pid_to_str): Mention Ravenscar in result;
2213 defer to target beneath for non-Ravenscar threads.
2214
a8ac85bb
TT
22152020-08-07 Tom Tromey <tromey@adacore.com>
2216
2217 * ravenscar-thread.c (ravenscar_thread_target) <get_base_cpu,
2218 get_base_thread_from_ravenscar_task>: Now methods.
2219 <m_cpu_map>: New member.
2220 (ravenscar_thread_target::get_thread_base_cpu): Rename from
2221 ravenscar_get_thread_base_cpu. Check m_cpu_map.
2222 (ravenscar_thread_target::task_is_currently_active): Update.
2223 (ravenscar_thread_target::get_base_thread_from_ravenscar_task):
2224 Now a method.
2225 (ravenscar_thread_target::add_active_thread): Put initial thread
2226 into the m_cpu_map.
2227
550ab58d
TT
22282020-08-07 Tom Tromey <tromey@adacore.com>
2229
2230 * ravenscar-thread.c (ravenscar_thread_target::wait): Return
2231 event_ptid.
2232
e9546579
TT
22332020-08-07 Tom Tromey <tromey@adacore.com>
2234
2235 * ravenscar-thread.c (ravenscar_thread_target::wait): Check
2236 runtime_initialized.
2237
3d4470e5
TT
22382020-08-07 Tom Tromey <tromey@adacore.com>
2239
2240 * ravenscar-thread.c (ravenscar_thread_target): Don't call
2241 add_active_thread.
2242 (ravenscar_thread_target::add_active_thread): Now public.
2243 (ravenscar_inferior_created): Call add_active_thread after pushing
2244 the target.
2245
888bdb2b
SM
22462020-08-07 Simon Marchi <simon.marchi@polymtl.ca>
2247
2248 * regcache.c (ptid_regcache_map): New type.
2249 (target_ptid_regcache_map): New type.
2250 (regcaches): Change type to target_ptid_regcache_map.
2251 (get_thread_arch_aspace_regcache): Update to regcaches' new
2252 type.
2253 (regcache_thread_ptid_changed): Likewise.
2254 (registers_changed_ptid): Likewise.
2255 (regcaches_size): Likewise.
2256 (regcaches_test): Update.
2257 (regcache_thread_ptid_changed): Update.
2258 * regcache.h (regcache_up): New type.
2259 * gdbsupport/ptid.h (hash_ptid): New struct.
2260
b161a60d
SM
22612020-08-07 Simon Marchi <simon.marchi@efficios.com>
2262
2263 * observable.h (thread_ptid_changed): Add parameter
2264 `process_stratum_target *`.
2265 * infrun.c (infrun_thread_ptid_changed): Add parameter
2266 `process_stratum_target *` and use it.
2267 (selftests): New namespace.
2268 (infrun_thread_ptid_changed): New function.
2269 (_initialize_infrun): Register selftest.
2270 * regcache.c (regcache_thread_ptid_changed): Add parameter
2271 `process_stratum_target *` and use it.
2272 (regcache_thread_ptid_changed): New function.
2273 (_initialize_regcache): Register selftest.
2274 * thread.c (thread_change_ptid): Pass target to
2275 thread_ptid_changed observable.
2276
d2854d8d
CT
22772020-08-06 Caroline Tice <cmtice@google.com>
2278
fe4c3d43
SM
2279 * dwarf2/read.c (struct dwo_file): Update comment on 'sections' field.
2280 (struct dwp_sections): Update field comments. Add loclists and
2281 rnglists fields.
2282 (struct virtual_v2_dwo_sections): Rename struct to
2283 'virtual_v2_or_v5_dwo_sections'; update comments at top of struct; add
2284 size & offset fields for loclists and rnglists.
2285 (struct dwp_hash_table): Add a 'v5' struct field to the union section.
2286 (create_debug_type_hash_table): Add 'DW_UT_split_type' to the check for
2287 skipping dummy type units.
2288 (create_dwp_hash_table): Update the large comment above the function to
2289 discuss Version 5 DWP files as well, with references. Update all the
2290 version checks in the function to check for version 5 as well. Add new
2291 section at the end to create dwp hash table for version 5.
2292 (create_dwp_v2_section): Rename function to
2293 'create_dwp_v2_or_v5_section'. Update function comment appropriately.
2294 Add V5 to error message text.
2295 (create_dwo_unit_in_dwp_v2): Change calls to create_dwp_v2_section
2296 into calls to create_dwp_v2_or_v5_section.
2297 (create_dwo_unit_in_dwp_v5): New function.
2298 (lookup_dwo_unit_in_dwp): Update conditional statement to explicitly
2299 check for version2; add else clause to handle version 5.
2300 (open_and_init_dwo_file): Add code to check dwarf version & only call
2301 create_debug_types_hash_table (with sections.types) if version is not 5;
2302 else call create_debug_type_hash_table, with sections.info.
2303 (dwarf2_locate_v2_dwp_sections): Update function comment to mention
2304 version 5.
2305 (dwarf2_locate_v5_dwp_sections): New function.
2306 (open_and_init_dwp_file): Add else-if clause for version 5 to call
2307 bfd_map_over_sections with dwarf2_locate_v5_dwp_sections.
d2854d8d 2308
159ed7d9
SM
23092020-08-06 Simon Marchi <simon.marchi@efficios.com>
2310
2311 * regcache.h (class regcache): Remove friend
2312 registers_changed_ptid.
2313 <regcache_thread_ptid_changed>: Remove.
2314 <regcaches>: Remove.
2315 * regcache.c (regcache::regcaches): Rename to...
2316 (regcaches): ... this. Make static.
2317 (get_thread_arch_aspace_regcache): Update.
2318 (regcache::regcache_thread_ptid_changed): Rename to...
2319 (regcache_thread_ptid_changed): ... this. Update.
2320 (class regcache_access): Remove.
2321 (regcaches_test): Update.
2322 (_initialize_regcache): Update.
2323 * sparc64-tdep.c, dwarf2/index-write.c, record-btrace.c: Include
2324 <forward_list>.
2325
174981ae
SM
23262020-08-06 Simon Marchi <simon.marchi@efficios.com>
2327
2328 * regcache.h (class regcache) <current_regcache>: Rename to...
2329 <regcaches>: ... this. Move doc here.
2330 * regcache.c (regcache::current_regcache) Rename to...
2331 (regcache::regcaches): ... this. Move doc to header.
2332 (get_thread_arch_aspace_regcache): Update.
2333 (regcache::regcache_thread_ptid_changed): Update.
2334 (registers_changed_ptid): Update.
2335 (class regcache_access) <current_regcache_size>: Rename to...
2336 <regcaches_size>: ... this.
2337 (current_regcache_test): Rename to...
2338 (regcaches_test): ... this.
2339 (_initialize_regcache): Update.
2340
ed908db6
VC
23412020-08-06 Victor Collod <vcollod@nvidia.com>
2342
2343 * amd64-tdep.c (amd64_analyze_prologue): Fix incorrect comment.
2344
b5582ab7
KB
23452020-08-05 Kevin Buettner <kevinb@redhat.com>
2346
2347 * corelow.c (core_target::build_file_mappings): Don't output
2348 null pathname in warning.
2349
ea946b86
SM
23502020-08-05 Simon Marchi <simon.marchi@polymtl.ca>
2351
2352 * gdb.dwarf2/clztest.exp, gdb.dwarf2/dw2-common-block.exp,
2353 gdb.dwarf2/dw2-dup-frame.exp, gdb.dwarf2/dw2-reg-undefined.exp,
2354 gdb.dwarf2/dw2-single-line-discriminators.exp,
2355 dw2-undefined-ret-addr.exp: Pass nopie to compilation options.
2356
57d02173
TT
23572020-08-05 Tom Tromey <tromey@adacore.com>
2358
2359 PR rust/26197:
2360 * dwarf2/read.c (alloc_rust_variant): Handle univariant case.
2361 (quirk_rust_enum): Call alloc_rust_variant for univariant case.
2362 Fix off-by-one and type size errors in ordinary case.
2363
5555c86d
TV
23642020-08-05 Tom de Vries <tdevries@suse.de>
2365
2366 * gdbtypes.c (type_not_allocated, type_not_associated): Use
2367 "prop->const_val () == 0" instead of "prop->const_val () != 0".
2368
97916bfe
SM
23692020-08-04 Simon Marchi <simon.marchi@efficios.com>
2370
2371 * frame.h (frame_id_p): Return bool.
2372 (frame_id_artificial_p): Return bool.
2373 (frame_id_eq): Return bool.
2374 (has_stack_frames): Return bool.
2375 (get_selected_frame): Fix typo in comment.
2376 (get_frame_pc_if_available): Return bool.
2377 (get_frame_address_in_block_if_available): Return bool.
2378 (get_frame_func_if_available): Return bool.
2379 (read_frame_register_unsigned): Return bool.
2380 (get_frame_register_bytes): Return bool.
2381 (safe_frame_unwind_memory): Return bool.
2382 (deprecated_frame_register_read): Return bool.
2383 (frame_unwinder_is): Return bool.
2384 * frame.c (struct frame_info) <prev_arch::p>: Change type to
2385 bool.
2386 <this_id::p>: Likewise.
2387 <prev_p>: Likewise.
2388 (frame_stash_add): Return bool.
2389 (get_frame_id): Use bool.
2390 (frame_id_build_special) Use bool.
2391 (frame_id_build_unavailable_stack): Use bool.
2392 (frame_id_build): Use bool.
2393 (frame_id_p): Return bool, use true/false instead of 1/0.
2394 (frame_id_artificial_p): Likewise.
2395 (frame_id_eq): Likewise.
2396 (frame_id_inner): Likewise.
2397 (get_frame_func_if_available): Likewise.
2398 (read_frame_register_unsigned): Likewise.
2399 (deprecated_frame_register_read): Likewise.
2400 (get_frame_register_bytes): Likewise.
2401 (has_stack_frames): Likewise.
2402 (inside_main_func): Likewise.
2403 (inside_entry_func): Likewise.
2404 (get_frame_pc_if_available): Likewise.
2405 (get_frame_address_in_block_if_available): Likewise.
2406 (frame_unwinder_is): Likewise.
2407 (safe_frame_unwind_memory): Likewise.
2408 (frame_unwind_arch): Likewise.
2409
fedfee88
SM
24102020-08-04 Simon Marchi <simon.marchi@efficios.com>
2411
2412 * frame.c (frame_info) <prev_func> <p>: Rename to status, change
2413 type to cached_copy_status.
2414 (fprintf_frame): Adjust.
2415 (get_frame_func_if_available): Adjust.
2416 (frame_cleanup_after_sniffer): Adjust.
2417
6cfa9b59
MW
24182020-08-04 Mark Wielaard <mark@klomp.org>
2419
2420 * MAINTAINERS (Write After Approval): Update email address.
2421
66d6346b
SM
24222020-08-04 Simon Marchi <simon.marchi@polymtl.ca>
2423
2424 * gdbtypes.h (TYPE_DYN_PROP_ADDR): Remove, replace uses with
2425 dynamic_prop::const_val.
2426
8a6d5e35
SM
24272020-08-04 Simon Marchi <simon.marchi@polymtl.ca>
2428
2429 * gdbtypes.h (TYPE_DYN_PROP_KIND): Remove, replace uses with
2430 dynamic_prop::kind.
2431
51d6067d
SM
24322020-08-04 Simon Marchi <simon.marchi@polymtl.ca>
2433
2434 * gdbtypes.h (TYPE_DYN_PROP_BATON): Remove.
2435
b26e2ae7
JM
24362020-08-04 Jose E. Marchesi <jose.marchesi@oracle.com>
2437
2438 * configure.tgt: Set gdb_sim for bpf-*-* targets.
2439
39791af2
JM
24402020-08-04 Weimin Pan <weimin.pan@oracle.com>
2441 Jose E. Marchesi <jose.marchesi@oracle.com>
2442
2443 * configure.tgt: Add entry for bpf-*-*.
2444 * Makefile.in (ALL_TARGET_OBS): Add bpf-tdep.o
2445 (ALLDEPFILES): Add bpf-tdep.c.
2446 * bpf-tdep.c: New file.
2447 * MAINTAINERS: Add bpf target and maintainer.
2448 * NEWS: Mention the support for the new target.
2449
521894aa
TV
24502020-08-04 Tom de Vries <tdevries@suse.de>
2451
2452 PR symtab/23270
2453 * dwarf2/read.c (find_partial_die): Change internal error into Dwarf
2454 Error.
2455
5d6356e9
JB
24562020-08-03 John Baldwin <jhb@FreeBSD.org>
2457
2458 * syscalls/freebsd.xml: Regenerate.
2459
0cf82b81
JB
24602020-08-03 John Baldwin <jhb@FreeBSD.org>
2461
2462 * syscalls/update-freebsd.sh: Fix usage and year range.
2463
8f34b746
TV
24642020-08-03 Tom de Vries <tdevries@suse.de>
2465
2466 PR symtab/26333
2467 * dwarf2/read.c (dwarf_decode_lines_1): Ignore
2468 DW_LNE_lo_user/DW_LNE_hi_user range.
2469
5e500d33
SM
24702020-07-30 Simon Marchi <simon.marchi@polymtl.ca>
2471
2472 PR ada/26318
2473 * ada-lang.c (ada_modulus): Return 0 if property is not of const
2474 kind.
2475
78319c15
TBA
24762020-07-30 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2477
2478 * breakpoint.c (set_breakpoint_condition): Do minor refactoring.
2479
4c55e970
TBA
24802020-07-30 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2481
2482 * breakpoint.c (set_breakpoint_condition): Update the condition
2483 expressions after checking that the input condition string parses
2484 successfully and does not contain junk at the end.
2485
1e620590
TBA
24862020-07-30 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2487
2488 * breakpoint.c (set_breakpoint_condition): Update the
2489 condition string after parsing the new condition successfully.
2490
c8693053
RO
24912020-07-30 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
2492
2493 * proc-api.c (_STRUCTURED_PROC): Don't define.
2494 * proc-events.c: Likewise.
2495 * proc-flags.c: Likewise.
2496 * proc-why.c: Likewise.
2497 * procfs.c: Likewise.
2498
2499 * Makefile.in (INTERNAL_CPPFLAGS): Add LARGEFILE_CPPFLAGS.
2500 * configure, config.in: Regenerate.
2501
5a99adb8
TV
25022020-07-30 Tom de Vries <tdevries@suse.de>
2503
2504 PR build/26320
2505 * ui-style.h (struct ui_file_style::color): Wrap m_value and
2506 m_red/m_green/m_blue in a union.
2507
8ba83e91
TV
25082020-07-29 Tom de Vries <tdevries@suse.de>
2509
2510 PR tdep/26280
2511 * s390-tdep.c (s390_displaced_step_fixup): Fix Wmaybe-uninitialized.
2512
f75a0693
AB
25132020-07-28 Tom Tromey <tromey@adacore.com>
2514
2515 PR symtab/26270:
2516 * symtab.h (find_pc_partial_function_sym): Declare.
2517 * cli/cli-cmds.c (disassemble_command): Use
2518 find_pc_partial_function_sym. Check asm_demangle.
2519 * blockframe.c (cache_pc_function_sym): New global.
2520 (cache_pc_function_name): Remove.
2521 (clear_pc_function_cache): Update.
2522 (find_pc_partial_function_sym): New function, from
2523 find_pc_partial_function.
2524 (find_pc_partial_function): Rewrite using
2525 find_pc_partial_function_sym.
2526
16f3242c
TT
25272020-07-28 Tom Tromey <tromey@adacore.com>
2528
2529 * cli/cli-cmds.c (_initialize_cli_cmds): Rearrange "disassemble"
2530 help. Add usage.
2531
4888741a
TT
25322020-07-28 Tom Tromey <tromey@adacore.com>
2533
2534 * dwarf2/expr.c (dwarf_expr_context::execute_stack_op)
2535 <DW_OP_GNU_variable_value>: Cast to address type.
2536
4d46f402
KR
25372020-07-28 Kamil Rytarowski <n54@gmx.com>
2538
2539 * nbsd-nat.h (nbsd_nat_target::xfer_partial): New declaration.
2540 * nbsd-nat.c (nbsd_nat_target::xfer_partial): New function.
2541 * nbsd-tdep.c (nbsd_gdbarch_data_handle, struct nbsd_gdbarch_data)
2542 (init_nbsd_gdbarch_data, get_nbsd_gdbarch_data)
2543 (nbsd_get_siginfo_type): New.
2544 (nbsd_init_abi): Install gdbarch "get_siginfo_type" method.
2545 (_initialize_nbsd_tdep): New.
2546
d70f978b
L
25472020-07-28 H.J. Lu <hongjiu.lu@intel.com>
2548
2549 PR binutils/26301
2550 * configure: Regenerated.
2551
377170fa
L
25522020-07-28 H.J. Lu <hongjiu.lu@intel.com>
2553
2554 PR binutils/26301
2555 * configure: Regenerated.
2556
43d5901d
AB
25572020-07-28 Andrew Burgess <andrew.burgess@embecosm.com>
2558
2559 * python/py-frame.c: Remove 'user-regs.h' include.
2560 (frapy_read_register): Rewrite to make use of
2561 gdbpy_parse_register_id.
2562 * python/py-registers.c (gdbpy_parse_register_id): New function,
2563 moved here from python/py-unwind.c. Updated the return type, and
2564 also accepts register descriptor objects.
2565 * python/py-unwind.c: Remove 'user-regs.h' include.
2566 (pyuw_parse_register_id): Moved to python/py-registers.c.
2567 (unwind_infopy_add_saved_register): Update to use
2568 gdbpy_parse_register_id.
2569 (pending_framepy_read_register): Likewise.
2570 * python/python-internal.h (gdbpy_parse_register_id): Declare.
2571
14fa8fb3
AB
25722020-07-28 Andrew Burgess <andrew.burgess@embecosm.com>
2573
2574 * python/py-registers.c: Add 'user-regs.h' include.
2575 (register_descriptor_iter_find): New function.
2576 (register_descriptor_iterator_object_methods): New static global
2577 methods array.
2578 (register_descriptor_iterator_object_type): Add pointer to methods
2579 array.
2580
ddce1758
JB
25812020-07-27 John Baldwin <jhb@FreeBSD.org>
2582
2583 * fbsd-nat.h: Include <osreldate.h>. Define USE_SIGTRAP_SIGINFO
2584 for all architectures on FreeBSD 11.3 and later.
2585
a4089f52
TT
25862020-07-27 Tom Tromey <tromey@adacore.com>
2587
2588 * gcore.h (load_corefile): Don't declare.
2589
95420d30
TV
25902020-07-27 Tom de Vries <tdevries@suse.de>
2591
2592 * configure.ac: Fix sys/sockets.h -> sys/socket.h typo.
2593 * config.in: Regenerate.
2594 * configure: Regenerate.
2595
05a6b8c2
EZ
25962020-07-26 Eli Zaretskii <eliz@gnu.org>
2597
2598 * configure.ac (AC_CHECK_HEADERS): Check for sys/socket.h and
2599 ws2tcpip.h. When checking whether socklen_t type is defined, use
2600 ws2tcpip.h if it is available and sys/socket.h isn't.
2601 * configure: Regenerate.
2602 * config.in: Regenerate.
2603
e79eb02f
AB
26042020-07-25 Andrew Burgess <andrew.burgess@embecosm.com>
2605
2606 PR fortran/23051
2607 PR fortran/26139
2608 * valops.c (value_ind): Pass address to
2609 readjust_indirect_value_type.
2610 * value.c (readjust_indirect_value_type): Make parameter
2611 non-const, and add extra address parameter. Resolve original type
2612 before using it.
2613 * value.h (readjust_indirect_value_type): Update function
2614 signature and comment.
2615
876518dd
TV
26162020-07-25 Tom de Vries <tdevries@suse.de>
2617
2618 PR symtab/26243
2619 * dwarf2/read.c (lnp_state_machine::record_line): Ignore zero line
2620 entries.
2621
f6720b1c
AM
26222020-07-24 Aaron Merey <amerey@redhat.com>
2623
2624 * Makefile.in: Replace LIBDEBUGINFOD with DEBUGINFOD_LIBS.
2625 * configure: Rebuild.
2626
513487e1
KB
26272020-07-23 Kevin Buettner <kevinb@redhat.com>
2628
2629 PR corefiles/26294
2630 * corelow.c (_initialize_corelow): Add period to help text
2631 for "maintenance print core-file-backed-mappings".
2632
e7bc9db8
PA
26332020-07-23 Pedro Alves <pedro@palves.net>
2634
2635 * frame-unwind.c (frame_unwind_try_unwinder): On exception, don't
2636 touch THIS_CACHE/THIS_FRAME if the frame cache was cleared
2637 meanwhile.
2638 * frame.c (frame_cache_generation, get_frame_cache_generation):
2639 New.
2640 (reinit_frame_cache): Increment FRAME_CACHE_GENERATION.
2641 (get_prev_frame_if_no_cycle): On exception, don't touch
2642 PREV_FRAME/THIS_FRAME if the frame cache was cleared meanwhile.
2643 * frame.h (get_frame_cache_generation): Declare.
2644
90fcc466
TV
26452020-07-23 Tom de Vries <tdevries@suse.de>
2646
2647 PR tui/26282
2648 * tui/tui-winsource.h (struct tui_source_windows::tui_source_windows):
2649 New default constructor.
2650
78344df7
AB
26512020-07-23 Andrew Burgess <andrew.burgess@embecosm.com>
2652
2653 * disasm.c (do_mixed_source_and_assembly_deprecated): Don't
2654 exclude non-statement entries.
2655
b089853a
KB
26562020-07-22 Kevin Buettner <kevinb@redhat.com>
2657
2658 * NEWS (New commands): Mention new command
2659 "maintenance print core-file-backed-mappings".
2660
09c2f5d4
KB
26612020-07-22 Kevin Buettner <kevinb@redhat.com>
2662
2663 * corelow.c (gdbcmd.h): Include.
2664 (core_target::info_proc_mappings): New method.
2665 (get_current_core_target): New function.
2666 (maintenance_print_core_file_backed_mappings): New function.
2667 (_initialize_corelow): Add core-file-backed-mappings to
2668 "maint print" commands.
2669
9c5ec5c2 26702020-07-22 Kevin Buettner <kevinb@redhat.com>
fe4c3d43 2671
9c5ec5c2
KB
2672 * linux-tdep.c (dump_note_entry_p): New function.
2673 (linux_dump_mapping_p_ftype): New typedef.
2674 (linux_find_memory_regions_full): Add new parameter,
2675 should_dump_mapping_p.
2676 (linux_find_memory_regions): Adjust call to
2677 linux_find_memory_regions_full.
2678 (linux_make_mappings_core_file_notes): Use dump_note_entry_p in
2679 call to linux_find_memory_regions_full.
2680
db082f59
KB
26812020-07-22 Kevin Buettner <kevinb@redhat.com>
2682
2683 * corelow.c (solist.h, unordered_map): Include.
2684 (class core_target): Add field m_core_file_mappings and
2685 method build_file_mappings.
2686 (core_target::core_target): Call build_file_mappings.
2687 (core_target::~core_target): Free memory associated with
2688 m_core_file_mappings.
2689 (core_target::build_file_mappings): New method.
2690 (core_target::xfer_partial): Use m_core_file_mappings
2691 for memory transfers.
2692 * linux-tdep.c (linux_read_core_file_mappings): New
2693 function.
2694 (linux_core_info_proc_mappings): Rewrite to use
2695 linux_read_core_file_mappings.
2696 (linux_init_abi): Register linux_read_core_file_mappings.
2697
7e183d27
KB
26982020-07-22 Kevin Buettner <kevinb@redhat.com>
2699
2700 * arch-utils.c (default_read_core_file_mappings): New function.
2701 * arch-utils.c (default_read_core_file_mappings): Declare.
2702 * gdbarch.sh (read_core_file_mappings): New gdbarch method.
2703 * gdbarch.h, gdbarch.c: Regenerate.
2704
2735d421
KB
27052020-07-22 Kevin Buettner <kevinb@redhat.com>
2706
2707 PR corefiles/25631
2708 * corelow.c (core_target:xfer_partial): Revise
2709 TARGET_OBJECT_MEMORY case to consider non-SEC_HAS_CONTENTS
2710 case after first checking the stratum beneath the core
2711 target.
2712 (has_all_memory): Return true.
2713 * target.c (raw_memory_xfer_partial): Revise comment
2714 regarding use of has_all_memory.
2715
e56cb451
KB
27162020-07-22 Kevin Buettner <kevinb@redhat.com>
2717
2718 * exec.h (section_table_xfer_memory): Revise declaration,
2719 replacing section name parameter with an optional callback
2720 predicate.
2721 * exec.c (section_table_xfer_memory): Likewise.
2722 * bfd-target.c, exec.c, target.c, corelow.c: Adjust all callers
2723 of section_table_xfer_memory.
2724
32fa152e
TT
27252020-07-22 Tom Tromey <tromey@adacore.com>
2726
2727 * mi/mi-cmd-stack.c (list_args_or_locals): Use
2728 lookup_symbol_search_name.
2729
a67a1c41
AB
27302020-07-22 Andrew Burgess <andrew.burgess@embecosm.com>
2731
2732 * python/py-registers.c (gdbpy_register_object_data_init): Remove
2733 redundant local variable.
2734 (gdbpy_get_register_descriptor): Extract descriptor vector as a
2735 reference, not pointer, update code accordingly.
2736
a7b4ff4f
SM
27372020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
2738 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2739
2740 * objfiles.h (struct objfile) <skip_jit_symbol_lookup>: New field.
2741 * jit.c (jit_breakpoint_re_set_internal): Use the
2742 `skip_jit_symbol_lookup` field.
2743
2340e834
SM
27442020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
2745 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2746
2747 * jit.c (jit_read_descriptor): Define the descriptor address once,
2748 use twice.
2749 (jit_breakpoint_deleted): Move the declaration of the loop variable
2750 `iter` into the loop header.
2751 (jit_breakpoint_re_set_internal): Move the declaration of the local
2752 variable `objf_data` to the first point of definition.
2753 (jit_event_handler): Move the declaration of local variables
2754 `code_entry`, `entry_addr`, and `objf` to their first point of use.
2755 Rename `objf` to `jited`.
2756
c1072906
SM
27572020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
2758
2759 * jit.h (struct jiter_objfile_data) <jiter_objfile_data, objfile>:
2760 Remove.
2761 * jit.c (get_jiter_objfile_data): Update.
2762
c8474dc3
TBA
27632020-07-22 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2764 Simon Marchi <simon.marchi@polymtl.ca>
2765
2766 * jit.c (struct jit_program_space_data): Remove.
2767 (jit_program_space_key): Remove.
2768 (jiter_objfile_data::~jiter_objfile_data): Remove program space
2769 stuff.
2770 (get_jit_program_space_data): Remove.
2771 (jit_breakpoint_deleted): Iterate on all of the program space's
2772 objfiles.
2773 (jit_inferior_init): Likewise.
2774 (jit_breakpoint_re_set_internal): Likewise. Also change return
2775 type to void.
2776 (jit_breakpoint_re_set): Pass current_program_space to
2777 jit_breakpoint_re_set_internal.
2778
77208eb7
SM
27792020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
2780
2781 * jit.h (struct jiter_objfile_data) <cached_code_address,
2782 jit_breakpoint>: Move to here from ...
2783 * jit.c (jit_program_space_data): ... here.
2784 (jiter_objfile_data::~jiter_objfile_data): Update.
2785 (jit_breakpoint_deleted): Update.
2786 (jit_breakpoint_re_set_internal): Update.
2787
8c1c720f
SM
27882020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
2789
2790 * jit.c (jiter_objfile_data::~jiter_objfile_data): Remove some
2791 checks.
2792 (jit_read_descriptor): Remove NULL check.
2793 (jit_event_handler): Add an assertion.
2794
0e74a041
SM
27952020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
2796
2797 * jit.h (struct jit_objfile_data): Split into...
2798 (struct jiter_objfile_data): ... this ...
2799 (struct jited_objfile_data): ... and this.
2800 * objfiles.h (struct objfile) <jit_data>: Remove.
2801 <jiter_data, jited_data>: New fields.
2802 * jit.c (jit_objfile_data::~jit_objfile_data): Rename to ...
2803 (jiter_objfile_data::~jiter_objfile_data): ... this.
2804 (get_jit_objfile_data): Rename to ...
2805 (get_jiter_objfile_data): ... this.
2806 (add_objfile_entry): Update.
2807 (jit_read_descriptor): Use get_jiter_objfile_data.
2808 (jit_find_objf_with_entry_addr): Use objfile's jited_data field.
2809 (jit_breakpoint_re_set_internal): Use get_jiter_objfile_data.
2810 (jit_inferior_exit_hook): Use objfile's jited_data field.
2811
238b5c9f
SM
28122020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
2813
2814 * jit.h: Forward-declare `struct minimal_symbol`.
2815 (struct jit_objfile_data): Migrate to here from jit.c; also add a
2816 constructor, destructor, and an objfile* field.
2817 * jit.c (jit_objfile_data): Remove.
2818 (struct jit_objfile_data): Migrate from here to jit.h.
2819 (jit_objfile_data::~jit_objfile_data): New destructor
2820 implementation with code moved from free_objfile_data.
2821 (free_objfile_data): Delete.
2822 (get_jit_objfile_data): Update to use the jit_data field of objfile.
2823 (jit_find_objf_with_entry_addr): Ditto.
2824 (jit_inferior_exit_hook): Ditto.
2825 (_initialize_jit): Remove the call to
2826 register_objfile_data_with_cleanup.
2827 * objfiles.h (struct objfile) <jit_data>: New field.
2828
fe053b9e
TBA
28292020-07-22 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2830
2831 * jit.h: Forward-declare `struct objfile`.
2832 (jit_event_handler): Add a second parameter, the JITer objfile.
2833 * jit.c (jit_read_descriptor): Change the signature to take the
2834 JITer objfile as an argument instead of the jit_program_space_data.
2835 (jit_inferior_init): Update the call to jit_read_descriptor.
2836 (jit_event_handler): Use the new JITer objfile argument when calling
2837 jit_read_descriptor.
2838 * breakpoint.c (handle_jit_event): Update the call to
2839 jit_event_handler to pass the JITer objfile.
2840
4cec0c66
JB
28412020-07-21 John Baldwin <jhb@FreeBSD.org>
2842
2843 * gdbarch.c: Regenerate.
2844 * gdbarch.h: Regenerate.
2845 * gdbarch.sh (handle_segmentation_fault): Remove method.
2846 * infrun.c (handle_segmentation_fault): Remove.
2847 (print_signal_received_reason): Remove call to
2848 handle_segmentation_fault.
2849
0e42f66a
JB
28502020-07-21 John Baldwin <jhb@FreeBSD.org>
2851
2852 * sparc64-linux-tdep.c (sparc64_linux_handle_segmentation_fault):
2853 Rename to sparc64_linux_report_signal_info and add siggnal
2854 argument.
2855 (sparc64_linux_init_abi): Use sparc64_linux_report_signal_info
2856 instead of sparc64_linux_handle_segmentation_fault.
2857
77bdfeb2
JB
28582020-07-21 John Baldwin <jhb@FreeBSD.org>
2859
2860 * amd64-linux-tdep.c (amd64_linux_init_abi_common): Use
2861 i386_linux_report_signal_info instead of
2862 i386_linux_handle_segmentation_fault.
2863 * i386-linux-tdep.c (i386_linux_handle_segmentation_fault): Rename
2864 to i386_linux_report_signal_info and add siggnal argument.
2865 (i386_linux_init_abi): Use i386_linux_report_signal_info instead
2866 of i386_linux_handle_segmentation_fault.
2867 * i386-linux-tdep.h (i386_linux_handle_segmentation_fault): Rename
2868 to i386_linux_report_signal_info and add siggnal argument.
2869
ad97bfc5
JB
28702020-07-21 John Baldwin <jhb@FreeBSD.org>
2871
2872 * corelow.c (core_target_open): Invoke gdbarch report_signal_info
2873 hook if present.
2874
272bb05c
JB
28752020-07-21 John Baldwin <jhb@FreeBSD.org>
2876
2877 * gdbarch.c: Regenerate.
2878 * gdbarch.h: Regenerate.
2879 * gdbarch.sh (report_signal_info): New method.
2880 * infrun.c (print_signal_received_reason): Invoke gdbarch
2881 report_signal_info hook if present.
2882
baf8791e
AB
28832020-07-21 Andrew Burgess <andrew.burgess@embecosm.com>
2884
2885 * python/py-registers.c : Add 'unordered_map' include.
2886 (gdbpy_new_reggroup): Renamed to...
2887 (gdbpy_get_reggroup): ...this. Update to only create register
2888 group descriptors when needed.
2889 (gdbpy_reggroup_iter_next): Update.
2890
f7306dac
AB
28912020-07-21 Andrew Burgess <andrew.burgess@embecosm.com>
2892
2893 * python/py-registers.c (gdbpy_register_object_data): New static
2894 global.
2895 (gdbpy_register_object_data_init): New function.
2896 (gdbpy_new_register_descriptor): Renamed to...
2897 (gdbpy_get_register_descriptor): ...this, and update to reuse
2898 existing register descriptors where possible.
2899 (gdbpy_register_descriptor_iter_next): Update.
2900 (gdbpy_initialize_registers): Register new gdbarch data.
2901
05c309a8
SM
29022020-07-21 Simon Marchi <simon.marchi@efficios.com>
2903
2904 * linux-nat.c (stopped_pids): Make static.
2905
d1fd641e
SM
29062020-07-21 Simon Marchi <simon.marchi@polymtl.ca>
2907
2908 PR ada/26235
2909 * gdbtypes.c (ada_discrete_type_low_bound,
2910 ada_discrete_type_high_bound): Handle undefined bounds.
2911
1de14d77
KR
29122020-07-21 Kamil Rytarowski <n54@gmx.com>
2913
2914 * nbsd-nat.h (nbsd_nat_target::supports_multi_process): New
2915 declaration.
2916 * nbsd-nat.c (nbsd_nat_target::supports_multi_process): New
2917 function.
2918
ed810cc7
JB
29192020-07-20 John Baldwin <jhb@FreeBSD.org>
2920
2921 * fbsd-tdep.c (fbsd_skip_solib_resolver): New function.
2922 (fbsd_init_abi): Install gdbarch "skip_solib_resolver" method.
2923 * fbsd-tdep.h (fbsd_skip_solib_resolver): New prototype.
2924 * mips-fbsd-tdep.c (mips_fbsd_skip_solib_resolver): New function.
2925 (mips_fbsd_init_abi): Install gdbarch "skip_solib_resolver"
2926 method.
2927
ae5369e7
LC
29282020-07-20 Ludovic Courtès <ludo@gnu.org>
2929
2930 * guile/scm-math.c (vlscm_integer_fits_p): Use 'uintmax_t'
2931 and 'intmax_t' instead of 'scm_t_uintmax' and 'scm_t_intmax',
2932 which are deprecated in Guile 3.0.
2933 * configure.ac (try_guile_versions): Add "guile-3.0".
2934 * configure (try_guile_versions): Regenerate.
2935 * NEWS: Update entry.
2936
68cf161c
LC
29372020-07-20 Ludovic Courtès <ludo@gnu.org>
2938 Doug Evans <dje@google.com>
2939
2940 PR gdb/21104
2941 * guile/scm-ports.c (USING_GUILE_BEFORE_2_2): New macro.
2942 (ioscm_memory_port)[read_buf_size, write_buf_size]: Wrap in #if
2943 USING_GUILE_BEFORE_2_2.
2944 (stdio_port_desc, memory_port_desc) [!USING_GUILE_BEFORE_2_2]:
2945 Change type to 'scm_t_port_type *'.
2946 (natural_buffer_size) [!USING_GUILE_BEFORE_2_2]: New variable.
2947 (ioscm_open_port) [USING_GUILE_BEFORE_2_2]: Add 'stream'
2948 parameter and honor it. Update callers.
2949 (ioscm_open_port) [!USING_GUILE_BEFORE_2_2]: New function.
2950 (ioscm_read_from_port, ioscm_write) [!USING_GUILE_BEFORE_2_2]: New
2951 functions.
2952 (ioscm_fill_input, ioscm_input_waiting, ioscm_flush): Wrap in #if
2953 USING_GUILE_BEFORE_2_2.
2954 (ioscm_init_gdb_stdio_port) [!USING_GUILE_BEFORE_2_2]: Use
2955 'ioscm_read_from_port'. Call 'scm_set_port_read_wait_fd'.
2956 (ioscm_init_stdio_buffers) [!USING_GUILE_BEFORE_2_2]: New function.
2957 (gdbscm_stdio_port_p) [!USING_GUILE_BEFORE_2_2]: Use 'SCM_PORTP'
2958 and 'SCM_PORT_TYPE'.
2959 (gdbscm_memory_port_end_input, gdbscm_memory_port_seek)
2960 (ioscm_reinit_memory_port): Wrap in #if USING_GUILE_BEFORE_2_2.
2961 (gdbscm_memory_port_read, gdbscm_memory_port_write)
2962 (gdbscm_memory_port_seek, gdbscm_memory_port_close)
2963 [!USING_GUILE_BEFORE_2_2]: New functions.
2964 (gdbscm_memory_port_print): Remove use of 'SCM_PTOB_NAME'.
2965 (ioscm_init_memory_port_type) [!USING_GUILE_BEFORE_2_2]: Use
2966 'gdbscm_memory_port_read'.
2967 Wrap 'scm_set_port_end_input', 'scm_set_port_flush', and
2968 'scm_set_port_free' calls in #if USING_GUILE_BEFORE_2_2.
2969 (gdbscm_get_natural_buffer_sizes) [!USING_GUILE_BEFORE_2_2]: New
2970 function.
2971 (ioscm_init_memory_port): Remove.
2972 (ioscm_init_memory_port_stream): New function
2973 (ioscm_init_memory_port_buffers) [USING_GUILE_BEFORE_2_2]: New
2974 function.
2975 (gdbscm_memory_port_read_buffer_size) [!USING_GUILE_BEFORE_2_2]:
2976 Return scm_from_uint (0).
2977 (gdbscm_set_memory_port_read_buffer_size_x)
2978 [!USING_GUILE_BEFORE_2_2]: Call 'scm_setvbuf'.
2979 (gdbscm_memory_port_write_buffer_size) [!USING_GUILE_BEFORE_2_2]:
2980 Return scm_from_uint (0).
2981 (gdbscm_set_memory_port_write_buffer_size_x)
2982 [!USING_GUILE_BEFORE_2_2]: Call 'scm_setvbuf'.
2983 * configure.ac (try_guile_versions): Add "guile-2.2".
2984 * configure: Regenerate.
2985 * NEWS: Add entry.
2986
aee91db3
TT
29872020-07-18 Tom Tromey <tom@tromey.com>
2988
2989 * linux-nat.c (linux_multi_process): Remove.
2990 (linux_nat_target::supports_multi_process): Return true.
2991
0e267416
AB
29922020-07-17 Andrew Burgess <andrew.burgess@embecosm.com>
2993
2994 * arch/riscv.c (riscv_tdesc_cache): Change map type.
2995 (riscv_lookup_target_description): Return pointer out of
2996 unique_ptr.
2997 * target-descriptions.c (allocate_target_description): Add
2998 comment.
2999 (target_desc_deleter::operator()): Likewise.
3000 * target-descriptions.h (struct target_desc_deleter): Moved to
3001 gdbsupport/tdesc.h.
3002 (target_desc_up): Likewise.
3003
f80c8ec4
TT
30042020-07-17 Tom Tromey <tromey@adacore.com>
3005
3006 * linux-nat.c (linux_nat_target::supports_non_stop)
3007 (linux_nat_target::always_non_stop_p): Use "true".
3008 (linux_nat_target::supports_disable_randomization): Use "true" and
3009 "false".
3010
d0ce17d8
CT
30112020-07-16 Caroline Tice <cmtice@google.com>
3012
3013 * dwarf2/read.c (RNGLIST_HEADER_SIZE32) New constant definition.
3014 (RNGLIST_HEADER_SIZE64): New constant definition.
3015 (struct dwop_section_names): Add rnglists_dwo.
3016 (dwop_section_names): Add .debug_rnglists.dwo, .zdebug_rnglists.dwo.
3017 (struct loclist_header): Rename to 'loclists_rnglists_header'.
3018 (struct dwo_sections): Add rnglists field.
3019 (read_attribut_reprocess): Add tag parameter.
3020 (dwarf2_ranges_read): Add tag parameter & remove forward function decl.
3021 (cu_debug_rnglists_section): New function (decl & definition).
3022 (dwarf2_locate_dwo_sections): Add code to read rnglists_dwo section.
3023 (dwarf2_rnglists_process): Add a dwarf_tag parameter, for the kind of
3024 die whose range is being checked; get rnglist section from
3025 cu_debug_rnglists_section, to get from either objfile or dwo file as
3026 appropriate. Add cases for DW_RLE_base_addressx,
3027 DW_RLE_startx_length, DW_RLE_startx_endx. Also, update to only add
3028 the base address to DW_RLE_offset_pairs (not to all ranges), moving
3029 test inside if-condition and updating complaint message.
3030 (dwarf2_ranges_process): Add dwarf tag parameter and pass it to
3031 dwarf2_rnglists_process.
3032 (dwarf2_ranges_read): Add dwarf tag parameter and pass it to
3033 dwarf2_ranges_process.
3034 (dwarf2_get_pc_bounds): Check for DW_FORM_rnglistx when setting
3035 need_ranges_base and update comment appropriately. Also pass die tag
3036 to dwarf2_ranges_read.
3037 (dwarf2_record_block_ranges): Check for DW_FORM_rnglistx when setting
3038 need_ranges_base and update comment appropriately. Also pass die tag
3039 to dwarf2_ranges_process.
3040 (read_full_die_1): Add code to read DW_AT_rnglists_base and assign to
3041 cu->ranges_base. Also pass die tag to read_attribute_reprocess.
3042 (partial_die_info::read): Check for DW_FORM_rnglistx when setting
3043 need_ranges_base and update comment appropriately. Also pass die tag
3044 to read_attribute_reprocess and dwarf2_ranges_read.
3045 (read_loclist_header): Rename function to read_loclists_rnglists_header,
3046 and update function comment appropriately.
3047 (read_loclist_index): Call read_loclists_rnglists_header instead of
3048 read_loclist_header.
3049 (read_rnglist_index): New function.
3050 (read_attribute_reprocess): Add tag parameter. Add code for
3051 DW_FORM_rnglistx, passing tag to read_rnglist_index.
3052 (read_attribute_value): Mark DW_FORM_rnglistx with need_reprocess.
3053
3dcc261c
AB
30542020-07-15 Andrew Burgess <andrew.burgess@embecosm.com>
3055
3056 * f-typeprint.c (f_type_print_base): Allow for dynamic types not
3057 being resolved.
3058
ccb9eba6
AB
30592020-07-14 Andrew Burgess <andrew.burgess@embecosm.com>
3060
3061 * arch-utils.c (show_architecture): Update formatting of messages.
3062
cf88be68
SM
30632020-07-12 Simon Marchi <simon.marchi@efficios.com>
3064
3065 * gdbtypes.h (struct type) <bounds>: Handle array and string
3066 types.
3067 * ada-lang.c (assign_aggregate): Use type::bounds on
3068 array/string type.
3069 * c-typeprint.c (c_type_print_varspec_suffix): Likewise.
3070 * c-varobj.c (c_number_of_children): Likewise.
3071 (c_describe_child): Likewise.
3072 * eval.c (evaluate_subexp_for_sizeof): Likewise.
3073 * f-typeprint.c (f_type_print_varspec_suffix): Likewise.
3074 (f_type_print_base): Likewise.
3075 * f-valprint.c (f77_array_offset_tbl): Likewise.
3076 (f77_get_upperbound): Likewise.
3077 (f77_print_array_1): Likewise.
3078 * guile/scm-type.c (gdbscm_type_range): Likewise.
3079 * m2-typeprint.c (m2_array): Likewise.
3080 (m2_is_long_set_of_type): Likewise.
3081 * m2-valprint.c (get_long_set_bounds): Likewise.
3082 * p-typeprint.c (pascal_type_print_varspec_prefix): Likewise.
3083 * python/py-type.c (typy_range): Likewise.
3084 * rust-lang.c (rust_internal_print_type): Likewise.
3085 * type-stack.c (type_stack::follow_types): Likewise.
3086 * valarith.c (value_subscripted_rvalue): Likewise.
3087 * valops.c (value_cast): Likewise.
3088
509971ae
SM
30892020-07-12 Simon Marchi <simon.marchi@efficios.com>
3090
3091 * gdbtypes.c (TYPE_ARRAY_BIT_STRIDE): Remove. Update all
3092 callers to use the equivalent accessor methods.
3093
107406b7
SM
30942020-07-12 Simon Marchi <simon.marchi@efficios.com>
3095
3096 * gdbtypes.h (struct range_bounds) <bit_stride>: New method.
3097 (struct type) <bit_stride>: New method.
3098 (TYPE_BIT_STRIDE): Remove.
3099 * gdbtypes.c (update_static_array_size): Use type::bit_stride.
3100
bb789949
SM
31012020-07-12 Simon Marchi <simon.marchi@efficios.com>
3102
3103 * gdbtypes.h (TYPE_ARRAY_LOWER_BOUND_VALUE,
3104 TYPE_ARRAY_UPPER_BOUND_VALUE): Remove. Update all
3105 callers to use the equivalent accessor methods instead.
3106
39498edb
SM
31072020-07-12 Simon Marchi <simon.marchi@efficios.com>
3108
3109 * gdbtypes.h (TYPE_ARRAY_UPPER_BOUND_IS_UNDEFINED,
3110 TYPE_ARRAY_LOWER_BOUND_IS_UNDEFINED): Remove. Update all
3111 callers to use the equivalent accessor methods instead.
3112
3b606f38
SM
31132020-07-12 Simon Marchi <simon.marchi@efficios.com>
3114
3115 * gdbtypes.h (TYPE_LOW_BOUND_KIND,
3116 TYPE_HIGH_BOUND_KIND): Remove. Update all callers
3117 to use dynamic_prop::kind.
3118
064d9cb9
SM
31192020-07-12 Simon Marchi <simon.marchi@efficios.com>
3120
3121 * gdbtypes.h (TYPE_LOW_BOUND_UNDEFINED,
3122 TYPE_HIGH_BOUND_UNDEFINED): Remove. Update all callers
3123 to get the bound property's kind and check against
3124 PROP_UNDEFINED.
3125
5537ddd0
SM
31262020-07-12 Simon Marchi <simon.marchi@efficios.com>
3127
3128 * gdbtypes.h (TYPE_LOW_BOUND, TYPE_HIGH_BOUND): Remove. Update
3129 all callers to use type::range_bounds followed by
3130 dynamic_prop::{low,high}.
3131
8c2e4e06
SM
31322020-07-12 Simon Marchi <simon.marchi@polymtl.ca>
3133
3134 * gdbtypes.h (struct dynamic_prop) <kind, set_undefined,
3135 const_val, set_const_val, baton, set_locexpr, set_loclist,
3136 set_addr_offset, variant_parts, set_variant_parts,
3137 original_type, set_original_type>: New methods.
3138 <kind>: Rename to...
3139 <m_kind>: ... this. Update all users to use the new methods
3140 instead.
3141 <data>: Rename to...
3142 <m_data>: ... this. Update all users to use the new methods
3143 instead.
3144
7c6f2712
SM
31452020-07-12 Simon Marchi <simon.marchi@efficios.com>
3146
3147 * gdbtypes.c (get_discrete_bounds): Return failure if
3148 the range type's bounds are not both defined and constant
3149 values.
3150 (get_array_bounds): Update comment. Remove undefined bound check.
3151
599088e3
SM
31522020-07-12 Simon Marchi <simon.marchi@polymtl.ca>
3153
3154 * gdbtypes.h (TYPE_RANGE_DATA): Remove. Update callers to use
3155 the type::bounds method directly.
3156
c4dfcb36
SM
31572020-07-12 Simon Marchi <simon.marchi@efficios.com>
3158
3159 * gdbtypes.h (struct type) <bounds, set_bounds>: New methods.
3160 (TYPE_RANGE_DATA): Use type::bounds. Change all uses that
3161 are used to set the range type's bounds to use set_bounds.
3162
0a278aa7
PW
31632020-07-11 Philippe Waroquiers <philippe.waroquiers@skynet.be>
3164
3165 * exec.c (_initialize_exec): Update exec-file-mismatch help.
3166
cce20f10
PA
31672020-07-10 Pedro Alves <pedro@palves.net>
3168
3169 * gdbthread.h (inferior_ref): Define.
3170 (scoped_restore_current_thread) <m_thread>: Now a thread_info_ref.
3171 (scoped_restore_current_thread) <m_inf>: Now an inferior_ref.
3172 * thread.c
3173 (scoped_restore_current_thread::restore):
3174 Adjust to gdb::ref_ptr.
3175 (scoped_restore_current_thread::~scoped_restore_current_thread):
3176 Remove manual decref handling.
3177 (scoped_restore_current_thread::scoped_restore_current_thread):
3178 Adjust to use
3179 inferior_ref::new_reference/thread_info_ref::new_reference.
3180 Incref the thread before calling get_frame_id instead of after.
3181 Let TARGET_CLOSE_ERROR propagate.
3182
6d7aa592
PA
31832020-07-10 Pedro Alves <pedro@palves.net>
3184
3185 * frame-tailcall.c (dwarf2_tailcall_sniffer_first): Only swallow
3186 NO_ENTRY_VALUE_ERROR / MEMORY_ERROR / OPTIMIZED_OUT_ERROR /
3187 NOT_AVAILABLE_ERROR.
3188 * value.c (value_optimized_out): Only swallow MEMORY_ERROR /
3189 OPTIMIZED_OUT_ERROR / NOT_AVAILABLE_ERROR.
3190
b3e3a4c1
SM
31912020-07-10 Simon Marchi <simon.marchi@polymtl.ca>
3192 Pedro Alves <pedro@palves.net>
3193
3194 PR gdb/26199
3195 * infrun.c (threads_are_resumed_pending_p): Delete.
3196 (do_target_wait): Remove threads_are_executing and
3197 threads_are_resumed_pending_p checks from the inferior_matches
3198 lambda. Update comments.
3199
d6cc5d98
PA
32002020-07-10 Pedro Alves <pedro@palves.net>
3201
3202 PR gdb/26199
3203 * infrun.c (handle_no_resumed): Transfer terminal to inferior with
3204 executing threads.
3205
7d3badc6
PA
32062020-07-10 Pedro Alves <pedro@palves.net>
3207
3208 PR gdb/26199
3209 * infrun.c (handle_no_resumed): Handle multiple targets.
3210
42bd97a6
PA
32112020-07-10 Pedro Alves <pedro@palves.net>
3212
3213 PR gdb/26199
3214 * infrun.c (prepare_to_wait): Check target_can_async_p instead of
3215 target_is_async_p.
3216
43667cc6
PA
32172020-07-10 Pedro Alves <pedro@palves.net>
3218
3219 PR gdb/26199
3220 * target.c (target_pass_ctrlc): Look at the inferior's non-exited
3221 threads, not all threads.
3222
96118d11
PA
32232020-07-10 Pedro Alves <pedro@palves.net>
3224
3225 PR gdb/26199
3226 * remote.c (remote_target::open_1): Pass remote target pointer as
3227 data to create_async_event_handler.
3228 (remote_async_inferior_event_handler): Mark async event handler
3229 before returning if the remote target still has either pending
3230 events or unacknowledged notifications.
3231
54904d81
JB
32322020-07-10 John Baldwin <jhb@FreeBSD.org>
3233
3234 * fbsd-nat.h (fbsd_nat_target::supports_multi_process): New
3235 declaration.
3236 * fbsd-nat.c (fbsd_nat_target::supports_multi_process): New
3237 function.
3238
f37e5866
JB
32392020-07-09 John Baldwin <jhb@FreeBSD.org>
3240
3241 * inf-ptrace.c (inf_ptrace_target::wait): Don't compare against
3242 inferior_ptid.
3243
fc238d4a
JB
32442020-07-09 John Baldwin <jhb@FreeBSD.org>
3245
3246 * fbsd-tdep.c (fbsd_print_auxv_entry): Handle AT_FREEBSD_ARGC,
3247 AT_FREEBSD_ARGV, AT_FREEBSD_ENVC, AT_FREEBSD_ENVV,
3248 AT_FREEBSD_PS_STRINGS.
3249
6e2469ff
HD
32502020-07-08 Hannes Domani <ssbssa@yahoo.de>
3251
3252 * auto-load.c (auto_load_objfile_script_1): Convert drive part
3253 of debugfile path on Windows.
3254
d1076c41
JB
32552020-07-08 John Baldwin <jhb@FreeBSD.org>
3256
3257 * fbsd-nat.c (fbsd_nat_target::find_memory_regions): Rename 'obfd'
3258 argument to 'data'.
3259
15f3b077
TT
32602020-07-08 Tom Tromey <tromey@adacore.com>
3261
3262 * ada-lang.c (ada_exception_message_1): Use read_memory.
3263
9fc501fd
AB
32642020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
3265
3266 PR python/22748
3267 * dwarf2/frame-tailcall.c (dwarf2_tailcall_sniffer_first): Remove
3268 special handling for inline frames.
3269 * findvar.c (value_of_register_lazy): Skip inline frames when
3270 creating lazy register values.
3271 * frame.c (frame_id_computed_p): Delete definition.
3272 * frame.h (frame_id_computed_p): Delete declaration.
3273
64cb3757
AB
32742020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
3275
3276 * NEWS: Mention additions to Python API.
3277 * python/py-arch.c (archpy_register_groups): New function.
3278 (arch_object_methods): Add 'register_groups' method.
3279 * python/py-registers.c (reggroup_iterator_object): New struct.
3280 (reggroup_object): New struct.
3281 (gdbpy_new_reggroup): New function.
3282 (gdbpy_reggroup_to_string): New function.
3283 (gdbpy_reggroup_name): New function.
3284 (gdbpy_reggroup_iter): New function.
3285 (gdbpy_reggroup_iter_next): New function.
3286 (gdbpy_new_reggroup_iterator): New function
3287 (gdbpy_initialize_registers): Register new types.
3288 (reggroup_iterator_object_type): Define new Python type.
3289 (gdbpy_reggroup_getset): New static global.
3290 (reggroup_object_type): Define new Python type.
3291 * python/python-internal.h
3292
0f767f94
AB
32932020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
3294
3295 * Makefile.in (SUBDIR_PYTHON_SRCS): Add py-registers.c
3296 * python/py-arch.c (archpy_registers): New function.
3297 (arch_object_methods): Add 'registers' method.
3298 * python/py-registers.c: New file.
3299 * python/python-internal.h
3300 (gdbpy_new_register_descriptor_iterator): Declare.
3301 (gdbpy_initialize_registers): Declare.
3302 * python/python.c (do_start_initialization): Call
3303 gdbpy_initialize_registers.
3304 * NEWS: Mention additions to the Python API.
3305
87dbc774
AB
33062020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
3307
3308 * NEWS: Mention new Python API method.
3309 * python/py-unwind.c (pending_framepy_architecture): New function.
3310 (pending_frame_object_methods): Add architecture method.
3311
3bc98c0c
AB
33122020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
3313
3314 * gdbarch.c: Regenerate.
3315 * gdbarch.h: Regenerate.
3316 * gdbarch.sh (deprecated_set_gdbarch_data): Delete.
3317 (gdbarch_data): Use internal_error for the case where
3318 deprecated_set_gdbarch_data was originally needed.
3319 * ia64-libunwind-tdep.c (libunwind_descr_init): Update parameters,
3320 and use passed in obstack.
3321 (libunwind_frame_set_descr): Should no longer get back NULL from
3322 gdbarch_data.
3323 (_initialize_libunwind_frame): Register as a pre-init gdbarch data
3324 type.
3325 * user-regs.c (user_regs_init): Update parameters, and use passed
3326 in obstack.
3327 (user_reg_add): Should no longer get back NULL from gdbarch_data.
3328 (_initialize_user_regs): Register as a pre-init gdbarch data type.
3329
d8cc8af6
TV
33302020-07-06 Tom de Vries <tdevries@suse.de>
3331
3332 * buildsym.c (buildsym_compunit::end_symtab_with_blockvector): Handle
3333 End-Of-Sequence in lte_is_less_than.
3334 * symtab.c (find_pc_sect_line): Revert change from commit 3d92a3e313
3335 "gdb: Don't reorder line table entries too much when sorting".
3336
947f7597
TV
33372020-07-06 Tom de Vries <tdevries@suse.de>
3338
3339 PR tui/26205
3340 * tui/tui-win.c (tui_partial_win_by_name): Don't test for NULL name.
3341
1e7c1b22
TV
33422020-07-05 Tom de Vries <tdevries@suse.de>
3343
3344 PR build/26187
3345 * inferior.h (struct infcall_suspend_state_deleter): If available, use
3346 std::uncaught_exceptions instead of deprecated
3347 std::uncaught_exception.
3348
a36158ec
SM
33492020-07-02 Simon Marchi <simon.marchi@polymtl.ca>
3350
3351 * macroexp.h (macro_stringify): Return
3352 gdb::unique_xmalloc_ptr<char>.
3353 * macroexp.c (macro_stringify): Likewise.
3354 * macrotab.c (fixup_definition): Update.
3355
14d960c8
SM
33562020-07-02 Simon Marchi <simon.marchi@polymtl.ca>
3357
3358 * c-exp.y (scan_macro_expansion): Don't free `expansion`.
3359 (lex_one_token): Update.
3360 * macroexp.c (struct macro_buffer) <release>: Return
3361 gdb::unique_xmalloc_ptr<char>.
3362 (macro_stringify): Update.
3363 (macro_expand): Update.
3364 (macro_expand_next): Return gdb::unique_xmalloc_ptr<char>.
3365 * macroexp.h (macro_expand_next): Likewise.
3366
211d5b1c
SM
33672020-07-02 Simon Marchi <simon.marchi@efficios.com>
3368
3369 * macroexp.h (macro_lookup_ftype): Remove.
3370 (macro_expand, macro_expand_once, macro_expand_next): Remove
3371 lookup function parameters, add scope parameter.
3372 * macroexp.c (scan, substitute_args, expand, maybe_expand,
3373 macro_expand, macro_expand_once, macro_expand_next): Likewise.
3374 * macroscope.h (standard_macro_lookup): Change parameter type
3375 to macro_scope.
3376 * macroscope.c (standard_macro_lookup): Likewise.
3377 * c-exp.y (lex_one_token): Update.
3378 * macrocmd.c (macro_expand_command): Likewise.
3379 (macro_expand_once_command): Likewise.
3380
b1a35af2
SM
33812020-07-02 Simon Marchi <simon.marchi@polymtl.ca>
3382
3383 * inf-loop.c (inferior_event_handler): Remove client_data param.
3384 * inf-loop.h (inferior_event_handler): Likewise.
3385 * infcmd.c (step_1): Adjust.
3386 * infrun.c (proceed): Adjust.
3387 (fetch_inferior_event): Remove client_data param.
3388 (infrun_async_inferior_event_handler): Adjust.
3389 * infrun.h (fetch_inferior_event): Remove `void *` param.
3390 * linux-nat.c (handle_target_event): Adjust.
3391 * record-btrace.c (record_btrace_handle_async_inferior_event):
3392 Adjust.
3393 * record-full.c (record_full_async_inferior_event_handler):
3394 Adjust.
3395 * remote.c (remote_async_inferior_event_handler): Adjust.
3396
1cdf9e33
TT
33972020-07-01 Tom Tromey <tom@tromey.com>
3398
3399 * tui/tui-data.h (struct tui_win_info) <name>: Now pure virtual.
3400 * tui/tui-stack.h (struct tui_locator_window) <name>: New method.
3401
32c1e210
TT
34022020-07-01 Tom Tromey <tom@tromey.com>
3403
3404 * tui/tui-wingeneral.c (tui_win_info::refresh_window): Move from
3405 tui_gen_win_info.
3406 (tui_win_info::make_window): Merge with
3407 tui_gen_win_info::make_window.
3408 (tui_win_info::make_visible): Move from tui_gen_win_info.
3409 * tui/tui-win.c (tui_win_info::max_width): Move from
3410 tui_gen_win_info.
3411 * tui/tui-layout.h (class tui_layout_window) <m_window>: Change
3412 type.
3413 <window_factory>: Likewise.
3414 * tui/tui-layout.c (tui_win_info::resize): Move from
3415 tui_gen_win_info.
3416 (make_standard_window): Change return type.
3417 (get_locator_window, tui_get_window_by_name): Likewise.
3418 (tui_layout_window::apply): Remove a cast.
3419 * tui/tui-data.h (MIN_WIN_HEIGHT): Move earlier.
3420 (struct tui_win_info): Merge with tui_gen_win_info.
3421 (struct tui_gen_win_info): Remove.
3422
a30cb6da
TT
34232020-07-01 Tom Tromey <tom@tromey.com>
3424
3425 * tui/tui-stack.h (struct tui_locator_window): Derive from
3426 tui_win_info.
3427 <do_scroll_horizontal, do_scroll_vertical>: New methods.
3428 <can_box>: New method.
3429
1eb2161f
TT
34302020-07-01 Tom Tromey <tom@tromey.com>
3431
3432 * tui/tui-stack.h (struct tui_locator_window): Remove body.
3433
7134f2eb
TT
34342020-07-01 Tom Tromey <tom@tromey.com>
3435
3436 * tui/tui-regs.c (tui_data_window::display_registers_from)
3437 (tui_data_window::display_registers_from)
3438 (tui_data_window::first_data_item_displayed)
3439 (tui_data_window::delete_data_content_windows): Update.
3440 (tui_data_window::refresh_window, tui_data_window::no_refresh):
3441 Remove.
3442 (tui_data_window::check_register_values): Update.
3443 (tui_data_item_window::rerender): Add parameters. Update.
3444 (tui_data_item_window::refresh_window): Remove.
3445 * tui/tui-data.h (struct tui_gen_win_info) <no_refresh>: No longer
3446 virtual.
3447 * tui/tui-regs.h (struct tui_data_item_window): Don't derive from
3448 tui_gen_win_info.
3449 <refresh_window, max_height, min_height>: Remove.
3450 <rerender>: Add parameters.
3451 <x, y, visible>: New members.
3452 (struct tui_data_window) <refresh_window, no_refresh>: Remove.
3453 <m_item_width>: New member.
3454
22b7b041
TT
34552020-07-01 Tom Tromey <tom@tromey.com>
3456
3457 * tui/tui-regs.c (tui_data_window::show_register_group)
3458 (tui_data_window::check_register_values): Update.
3459 * tui/tui-regs.h (struct tui_data_item_window) <regno>: Rename
3460 from item_no.
3461
c9753adb
TT
34622020-07-01 Tom Tromey <tom@tromey.com>
3463
3464 * tui/tui-regs.c (tui_data_window::show_register_group): Remove
3465 useless "if".
3466
9ab26b4a
TT
34672020-07-01 Tom Tromey <tom@tromey.com>
3468
3469 * tui/tui-regs.c (tui_data_window::show_register_group): Update.
3470 * tui/tui-regs.h (struct tui_data_item_window) <name>: Remove.
3471
e555083f
TT
34722020-07-01 Tom Tromey <tom@tromey.com>
3473
3474 * tui/tui-stack.c (SINGLE_KEY): Move from tui-data.h
3475 * tui/tui-winsource.h (enum tui_line_or_address_kind)
3476 (struct tui_line_or_address): Move from tui-data.h.
3477 * tui/tui-win.c (DEFAULT_TAB_LEN): Move from tui-data.h.
3478 * tui/tui-data.h (DEFAULT_TAB_LEN): Move to tui-win.c.
3479 (tui_cmd_window, tui_source_window_base, tui_source_window)
3480 (tui_disasm_window): Don't declare.
3481 (enum tui_line_or_address_kind, struct tui_line_or_address): Move
3482 to tui-winsource.h.
3483 (SINGLE_KEY): Move to tui-stack.c.
3484
7a02bab7
TT
34852020-07-01 Tom Tromey <tom@tromey.com>
3486
3487 * tui/tui-regs.h (struct tui_data_item_window) <content>: Now a
3488 std::string.
3489 * tui/tui-regs.c (class tab_expansion_file): New.
3490 (tab_expansion_file::write): New method.
3491 (tui_register_format): Change return type. Use
3492 tab_expansion_file.
3493 (tui_get_register, tui_data_window::display_registers_from)
3494 (tui_data_item_window::rerender): Update.
3495 * tui/tui-io.h (tui_expand_tabs): Don't declare.
3496 * tui/tui-io.c (tui_expand_tabs): Remove.
3497
ea68593b
TT
34982020-07-01 Tom Tromey <tom@tromey.com>
3499
3500 * tui/tui-regs.c (tui_reggroup_completer): Use complete_on_enum.
3501
a8caed5d
FS
35022020-07-01 Fangrui Song <maskray@google.com>
3503
3504 * dwarf2/read.c (lnp_state_machine::check_line_address): Test -1.
3505
9cdf9820
AKS
35062020-07-01 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
3507
3508 * dwarf2/read.c (set_die_type): Removed conditions to restrict
3509 forms for DW_AT_associated and DW_AT_allocated attributes,
3510 which is already checked in function attr_to_dynamic_prop.
3511
a1520ad8
TT
35122020-06-30 Tom Tromey <tromey@adacore.com>
3513
3514 * dwarf2/read.c (quirk_rust_enum): Correctly call
3515 alloc_rust_variant for default-less enum.
3516
5ac58899
TT
35172020-06-30 Tom Tromey <tromey@adacore.com>
3518
3519 PR build/26183:
3520 * ada-lang.c (ada_lookup_name_info::ada_lookup_name_info): Use
3521 gdb::to_string.
3522
19b187a9
SM
35232020-06-29 Simon Marchi <simon.marchi@efficios.com>
3524
3525 * gdbarch.sh (displaced_step_copy_insn): Update doc.
3526 * gdbarch.h: Re-generate.
3527
cd4c4c07
TT
35282020-06-28 Tom Tromey <tom@tromey.com>
3529
3530 * command.h (cmd_types): Remove.
3531 (cmd_type): Don't declare.
3532 * cli/cli-decode.h (enum cmd_types): Uncomment. No longer a
3533 typedef.
3534 * cli/cli-cmds.c (setting_cmd): Use cmd->type directly.
3535 * cli/cli-decode.c (cmd_type): Remove.
3536
05779d57
PA
35372020-06-27 Pedro Alves <palves@redhat.com>
3538
3539 * fork-child.c (prefork_hook): Adjust.
3540 * infcmd.c (set_inferior_io_terminal, get_inferior_io_terminal):
3541 Delete.
3542 (set_inferior_tty_command, show_inferior_tty_command): Adjust.
3543 * inferior.c (inferior::set_tty, inferior::tty): New methods.
3544 * inferior.h (set_inferior_io_terminal, get_inferior_io_terminal):
3545 Remove declarations.
3546 (struct inferior) <set_tty, tty>: New methods.
3547 (struct inferior) <terminal>: Rename to ...
3548 (struct inferior) <m_terminal>: ... this and make private.
3549 * main.c (captured_main_1): Adjust.
3550 * mi/mi-cmd-env.c (mi_cmd_inferior_tty_set): Adjust.
3551 (mi_cmd_inferior_tty_show): Adjust.
3552 * nto-procfs.c (nto_procfs_target::create_inferior): Adjust.
3553 * windows-nat.c (windows_nat_target::create_inferior): Adjust.
3554
1776e3e5
NA
35552020-06-26 Nick Alcock <nick.alcock@oracle.com>
3556
3557 * configure.ac: Add --enable-libctf: handle --disable-static
3558 properly.
3559 * acinclude.m4: sinclude ../config/enable.m4.
3560 * Makefile.in (aclocal_m4_deps): Adjust accordingly.
3561 (LIBCTF): Substitute in.
3562 (CTF_DEPS): New, likewise.
3563 (CLIBS): libctf needs symbols from libbfd: move earlier.
3564 (CDEPS): Use CTF_DEPS, not LIBCTF, now LIBCTF can include rpath
3565 flags.
3566 * ctfread.c: Surround in ENABLE_LIBCTF.
3567 (elfctf_build_psymtabs) [!ENABLE_LIBCTF]: New stub.
3568 * configure: Regenerate.
3569 * config.in: Likewise.
3570
58373b80
SM
35712020-06-25 Simon Marchi <simon.marchi@efficios.com>
3572
3573 * infcmd.c (set_inferior_io_terminal): Use make_unique_xstrdup.
3574
277474ee
SM
35752020-06-25 Simon Marchi <simon.marchi@efficios.com>
3576
3577 * inferior.h (struct inferior) <terminal>: Change type to
3578 gdb::unique_xmalloc_ptr<char>.
3579 * inferior.c (inferior::~inferior): Don't free inf->terminal.
3580 * infcmd.c (set_inferior_io_terminal): Don't free terminal
3581 field, adjust to unique pointer.
3582 (get_inferior_io_terminal): Adjust to unique pointer.
3583
6d74da72
AB
35842020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
3585
3586 * riscv-tdep.c (riscv_print_registers_info): Loop over all
3587 registers, not just the known core set of registers.
3588
2e52d038
AB
35892020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
3590
3591 * riscv-tdep.c (riscv_register_name): Return NULL for duplicate
3592 fflags, frm, and fcsr registers.
3593 (riscv_register_reggroup_p): Remove unknown CSRs from save and
3594 restore groups.
3595 (riscv_tdesc_unknown_reg): New function.
3596 (riscv_gdbarch_init): Pass riscv_tdesc_unknown_reg to
3597 tdesc_use_registers.
3598 * riscv-tdep.h (struct gdbarch_tdep): Add
3599 unknown_csrs_first_regnum, unknown_csrs_count,
3600 duplicate_fflags_regnum, duplicate_frm_regnum, and
3601 duplicate_fcsr_regnum fields.
3602
be64fd07
AB
36032020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
3604
3605 * target-descriptions.c (tdesc_use_registers): Add new parameter a
3606 callback, use the callback (when not null) to help number unknown
3607 registers.
3608 * target-descriptions.h (tdesc_unknown_register_ftype): New typedef.
3609 (tdesc_use_registers): Add extra parameter to declaration.
3610
3b9fce96
AB
36112020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
3612
3613 * riscv-tdep.c (value_of_riscv_user_reg): Moved to here from later
3614 in the file.
3615 (class riscv_pending_register_alias): Likewise.
3616 (riscv_register_feature::register_info): Change 'required_p' field
3617 to 'required', and change its type. Add 'check' member function.
3618 (riscv_register_feature::register_info::check): Define new member
3619 function.
3620 (riscv_xreg_feature): Change initialisation of 'required' field.
3621 (riscv_freg_feature): Likewise.
3622 (riscv_virtual_feature): Likewise.
3623 (riscv_csr_feature): Likewise.
3624 (riscv_check_tdesc_feature): Take extra parameter, the csr
3625 tdesc_feature, rewrite the function to use the new
3626 riscv_register_feature::register_info::check function.
3627 (riscv_gdbarch_init): Pass the csr tdesc_feature where needed.
3628
865bad26
AB
36292020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
3630
3631 * features/Makefile: Remove all references to the deleted files
3632 below.
3633 * features/riscv/32bit-csr.c: Deleted.
3634 * features/riscv/32bit-csr.xml: Deleted.
3635 * features/riscv/64bit-csr.c: Deleted.
3636 * features/riscv/64bit-csr.xml: Deleted.
3637 * features/riscv/rebuild-csr-xml.sh: Deleted.
3638
ed69cbc8
AB
36392020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
3640
3641 * riscv-tdep.c (struct riscv_register_feature::register_info): Fix
3642 whitespace error for declaration of names member variable.
3643 (struct riscv_register_feature): Add new prefer_first_name member
3644 variable, and fix whitespace error in declaration of registers.
3645 (riscv_xreg_feature): Initialize prefer_first_name field.
3646 (riscv_freg_feature): Likewise.
3647 (riscv_virtual_feature): Likewise.
3648 (riscv_csr_feature): Likewise.
3649 (riscv_register_name): Expand on comments. Remove register name
3650 modifications for CSR and virtual registers.
3651
4445e8f5
AB
36522020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
3653
3654 * riscv-tdep.c (struct riscv_register_feature): Fix whitespace
3655 errors.
3656
767a879e
AB
36572020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
3658
3659 * riscv-tdep.c (riscv_create_csr_aliases): Handle csr aliases from
3660 riscv-opc.h.
3661 (class riscv_pending_register_alias): New class.
3662 (riscv_check_tdesc_feature): Take vector of pending aliases and
3663 populate it as appropriate.
3664 (riscv_setup_register_aliases): Delete.
3665 (riscv_gdbarch_init): Create vector of pending aliases and pass it
3666 to riscv_check_tdesc_feature in all cases. Use the vector to
3667 create the register aliases.
3668
bb6e55f3
RO
36692020-06-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
3670
3671 * sol2-tdep.c (sol2_static_transform_name): Remove.
3672 (sol2_init_abi): Don't register it.
3673 * gdbarch.sh (static_transform_name): Remove.
3674 * gdbarch.c, gdbarch.h: Regenerate.
3675
3676 * dbxread.c (read_dbx_symtab) <'S'>: Remove call to
3677 gdbarch_static_transform_name.
3678 * mdebugread.c (parse_partial_symbols) <'S'>: Likewise.
3679 * stabsread.c (define_symbol) <'X'>: Remove.
3680 (define_symbol) <'S'>: Remove gdbarch_static_transform_name
3681 handling.
3682 <'V'>: Likewise.
3683 * xcoffread.c (scan_xcoff_symtab): Remove gdbarch.
3684 <'S'>: Remove call to gdbarch_static_transform_name.
3685
c6d36836
RO
36862020-06-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
3687
3688 * procfs.c (procfs_pre_trace): New function.
3689 (procfs_target::create_inferior): Pass it to fork_inferior.
3690
a7e6196b
RO
36912020-06-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
3692
3693 * configure.tgt <sparc-*-linux*> (gdb_target_obs): Remove
3694 sparc-sol2-tdep.o, sol2-tdep.o, sparc64-sol2-tdep.o.
3695 <sparc64-*-linux*> (gdb_target_obs): Remove sparc64-sol2-tdep.o,
3696 sol2-tdep.o, sparc-sol2-tdep.o.
3697 * sparc-sol2-tdep.c (sparc32_sol2_init_abi): Make static.
3698 * sparc-tdep.h (sparc32_sol2_init_abi): Remove.
3699 * sparc64-sol2-tdep.c (sparc64_sol2_init_abi): Make static.
3700 * sparc64-tdep.h (sparc64_sol2_init_abi): Remove.
3701
d412e696
RO
37022020-06-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
3703
3704 * amd64-sol2-tdep.c (amd64_sol2_sigtramp_p): Remove.
3705 (amd64_sol2_init_abi): Use sol2_sigtramp_p.
3706 Call sol2_init_abi.
3707 Remove calls to set_gdbarch_skip_solib_resolver,
3708 set_gdbarch_core_pid_to_str.
3709 * i386-sol2-tdep.c (i386_sol2_sigtramp_p): Remove.
3710 (i386_sol2_static_transform_name): Remove.
3711 (i386_sol2_init_abi): Call sol2_init_abi.
3712 Remove calls to set_gdbarch_sofun_address_maybe_missing,
3713 set_gdbarch_static_transform_name,
3714 set_gdbarch_skip_solib_resolver, set_gdbarch_core_pid_to_str.
3715 Use sol2_sigtramp_p.
3716 * sol2-tdep.c (sol2_pc_in_sigtramp): New function.
3717 (sol2_sigtramp_p): New function.
3718 (sol2_static_transform_name): New function.
3719 (sol2_skip_solib_resolver, sol2_core_pid_to_str): Make static.
3720 (sol2_init_abi): New function.
3721 * sol2-tdep.h (sol2_sigtramp_p, sol2_init_abi): Declare.
3722 (sol2_skip_solib_resolver, sol2_core_pid_to_str): Remove.
3723 * sparc-sol2-tdep.c (sparc_sol2_pc_in_sigtramp): Remove.
3724 (sparc32_sol2_sigtramp_frame_sniffer): Just call sol2_sigtramp_p.
3725 (sparc_sol2_static_transform_name): Remove.
3726 (sparc32_sol2_init_abi): Call sol2_init_abi.
3727 Remove calls to set_gdbarch_sofun_address_maybe_missing,
3728 set_gdbarch_static_transform_name,
3729 set_gdbarch_skip_solib_resolver,
3730 set_gdbarch_core_pid_to_str.
3731 * sparc-tdep.h (sparc_sol2_pc_in_sigtramp)
3732 (sparc_sol2_static_transform_name): Remove
3733 * sparc64-sol2-tdep.c (sparc64_sol2_sigtramp_frame_sniffer): Just
3734 call sol2_sigtramp_p.
3735 (sparc64_sol2_init_abi): Call sol2_init_abi.
3736 Remove calls to set_gdbarch_sofun_address_maybe_missing,
3737 set_gdbarch_static_transform_name,
3738 set_gdbarch_skip_solib_resolver, set_gdbarch_core_pid_to_str.
3739
a8654e7d
PW
37402020-06-24 Philippe Waroquiers <philippe.waroquiers@skynet.be>
3741
3742 * symfile-add-flags.h: New flag SYMFILE_ALWAYS_CONFIRM.
3743 * exec.c (validate_exec_file): If from_tty, set both
3744 SYMFILE_VERBOSE (== from_tty) and SYMFILE_ALWAYS_CONFIRM.
3745 * symfile.c (symbol_file_add_with_addrs): if always_confirm
3746 and from_tty, unconditionally ask a confirmation.
3747
caa7fd04
AB
37482020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
3749
3750 * target-descriptions.c (tdesc_architecture_name): Protect against
3751 NULL pointer dereference.
3752 (maint_print_xml_tdesc_cmd): New function.
3753 (_initialize_target_descriptions): Register new 'maint print
3754 xml-tdesc' command and give it the filename completer.
3755 * NEWS: Mention new 'maint print xml-tdesc' command.
3756
fbf42f4e
AB
37572020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
3758
3759 * target-descriptions.c (class tdesc_compatible_info): New class.
3760 (struct target_desc): Change type of compatible vector.
3761 (tdesc_compatible_p): Update for change in type of
3762 target_desc::compatible.
3763 (tdesc_compatible_info_list): New function.
3764 (tdesc_compatible_info_arch_name): New function.
3765 (tdesc_add_compatible): Update for change in type of
3766 target_desc::compatible.
3767 (print_c_tdesc::visit_pre): Likewise.
3768
20821f4e
AB
37692020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
3770
3771 * target-descriptions.c (print_c_tdesc::print_c_tdesc): Change
3772 whitespace to underscore.
3773 (maint_print_c_tdesc_cmd): Use fake filename for target
3774 descriptions that came from the target.
3775 (_initialize_target_descriptions): Add filename command completion
3776 for 'maint print c-tdesc'.
3777
1fb5ee62
SM
37782020-06-23 Simon Marchi <simon.marchi@efficios.com>
3779
3780 * dwarf2/loc.c (decode_debug_loclists_addresses): Add empty
3781 lines.
3782
fc3ecb3e
SM
37832020-06-23 Simon Marchi <simon.marchi@efficios.com>
3784
3785 * dwarf2/loc.c (decode_debug_loc_dwo_addresses): Add empty
3786 lines.
3787 (dwarf2_find_location_expression): Likewise.
3788 (call_site_parameter_matches): Likewise.
3789 (dwarf2_compile_expr_to_ax): Likewise.
3790 (disassemble_dwarf_expression): Likewise.
3791 (loclist_describe_location): Likewise.
3792
236ef034
PA
37932020-06-23 Pedro Alves <palves@redhat.com>
3794
3795 * gdbarch-selftests.c: Don't include inferior.h, gdbthread.h or
3796 progspace-and-thread.h. Include scoped-mock-context.h instead.
3797 (register_to_value_test): Use scoped_mock_context.
3798 * regcache.c: Include "scoped-mock-context.h".
3799 (cooked_read_test): Don't error out if a target is already pushed.
3800 Use scoped_mock_context. Adjust.
3801 * scoped-mock-context.h: New file.
3802
39e7ecca
AB
38032020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
3804
3805 * ada-lang.c (ada_language_data): Delete la_is_string_type_p
3806 initializer.
3807 (ada_language::is_string_type_p): New member function.
3808 * c-lang.c (c_language_data): Delete la_is_string_type_p
3809 initializer.
3810 (cplus_language_data): Likewise.
3811 (asm_language_data): Likewise.
3812 (minimal_language_data): Likewise.
3813 * d-lang.c (d_language_data): Likewise.
3814 * f-lang.c (f_is_string_type_p): Delete function, implementation
3815 moved to f_language::is_string_type_p.
3816 (f_language_data): Delete la_is_string_type_p initializer.
3817 (f_language::is_string_type_p): New member function,
3818 implementation from f_is_string_type_p.
3819 * go-lang.c (go_is_string_type_p): Delete function, implementation
3820 moved to go_language::is_string_type_p.
3821 (go_language_data): Delete la_is_string_type_p initializer.
3822 (go_language::is_string_type_p): New member function,
3823 implementation from go_is_string_type_p.
3824 * language.c (language_defn::is_string_type_p): Define new member
3825 function.
3826 (default_is_string_type_p): Make static, add comment copied from
3827 header file.
3828 (unknown_language_data): Delete la_is_string_type_p initializer.
3829 (unknown_language::is_string_type_p): New member function.
3830 (auto_language_data): Delete la_is_string_type_p initializer.
3831 (auto_language::is_string_type_p): New member function.
3832 * language.h (language_data): Delete la_is_string_type_p field.
3833 (language_defn::is_string_type_p): Declare new function.
3834 (default_is_string_type_p): Delete desclaration, move comment to
3835 definition.
3836 * m2-lang.c (m2_is_string_type_p): Delete function, implementation
3837 moved to m2_language::is_string_type_p.
3838 (m2_language_data): Delete la_is_string_type_p initializer.
3839 (m2_language::is_string_type_p): New member function,
3840 implementation from m2_is_string_type_p.
3841 * objc-lang.c (objc_language_data): Delete la_is_string_type_p
3842 initializer.
3843 * opencl-lang.c (opencl_language_data): Likewise.
3844 * p-lang.c (pascal_is_string_type_p): Delete function,
3845 implementation moved to pascal_language::is_string_type_p.
3846 (pascal_language_data): Delete la_is_string_type_p initializer.
3847 (pascal_language::is_string_type_p): New member function,
3848 implementation from pascal_is_string_type_p.
3849 * rust-lang.c (rust_is_string_type_p): Delete function,
3850 implementation moved to rust_language::is_string_type_p.
3851 (rust_language_data): Delete la_is_string_type_p initializer.
3852 (rust_language::is_string_type_p): New member function,
3853 implementation from rust_is_string_type_p.
3854 * valprint.c (val_print_scalar_or_string_type_p): Update call to
3855 is_string_type_p.
3856
4ffc13fb
AB
38572020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
3858
3859 * ada-lang.c (ada_language_data): Delete la_print_typedef
3860 initializer.
3861 (ada_language::print_typedef): New member function.
3862 * c-lang.c (c_language_data): Delete la_print_typedef initializer.
3863 (cplus_language_data): Likewise.
3864 (asm_language_data): Likewise.
3865 (minimal_language_data): Likewise.
3866 * d-lang.c (d_language_data): Likewise.
3867 * f-lang.c (f_language_data): Likewise.
3868 (f_language::print_typedef): New member function.
3869 * go-lang.c (go_language_data): Delete la_print_typedef
3870 initializer.
3871 * language.c (language_defn::print_typedef): Define member
3872 function.
3873 (unknown_language_data): Delete la_print_typedef initializer.
3874 (unknown_language::print_typedef): New member function.
3875 (auto_language_data): Delete la_print_typedef initializer.
3876 (auto_language::print_typedef): New member function.
3877 * language.h (language_data): Delete la_print_typedef field.
3878 (language_defn::print_typedef): Declare new member function.
3879 (LA_PRINT_TYPEDEF): Update call to print_typedef.
3880 (default_print_typedef): Delete declaration.
3881 * m2-lang.c (m2_language_data): Delete la_print_typedef
3882 initializer.
3883 (m2_language::print_typedef): New member function.
3884 * objc-lang.c (objc_language_data): Delete la_print_typedef
3885 initializer.
3886 * opencl-lang.c (opencl_language_data): Likewise.
3887 * p-lang.c (pascal_language_data): Likewise.
3888 (pascal_language::print_typedef): New member function.
3889 * rust-lang.c (rust_print_typedef): Delete function,
3890 implementation moved to rust_language::print_typedef.
3891 (rust_language): Delete la_print_typedef initializer.
3892 (rust_language::print_typedef): New member function,
3893 implementation from rust_print_typedef.
3894 * typeprint.c (default_print_typedef): Delete.
3895
d711ee67
AB
38962020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
3897
3898 * ada-lang.c (ada_language_data): Delete la_printstr initializer.
3899 (ada_language::printstr): New member function.
3900 * c-lang.c (c_language_data): Delete la_printstr initializer.
3901 (cplus_language_data): Likewise.
3902 (asm_language_data): Likewise.
3903 (minimal_language_data): Likewise.
3904 * d-lang.c (d_language_data): Likewise.
3905 * f-lang.c (f_printstr): Rename to f_language::printstr.
3906 (f_language_data): Delete la_printstr initializer.
3907 (f_language::printstr): New member function, implementation from
3908 f_printstr.
3909 * go-lang.c (go_language_data): Delete la_printstr initializer.
3910 * language.c (language_defn::printstr): Define new member
3911 function.
3912 (unk_lang_printstr): Delete.
3913 (unknown_language_data): Delete la_printstr initializer.
3914 (unknown_language::printstr): New member function.
3915 (auto_language_data): Delete la_printstr initializer.
3916 (auto_language::printstr): New member function.
3917 * language.h (language_data): Delete la_printstr field.
3918 (language_defn::printstr): Declare new member function.
3919 (LA_PRINT_STRING): Update call to printstr.
3920 * m2-lang.c (m2_printstr): Rename to m2_language::printstr.
3921 (m2_language_data): Delete la_printstr initializer.
3922 (m2_language::printstr): New member function, implementation from
3923 m2_printstr.
3924 * objc-lang.c (objc_language_data): Delete la_printstr
3925 initializer.
3926 * opencl-lang.c (opencl_language_data): Likewise.
3927 * p-lang.c (pascal_printstr): Rename to pascal_language::printstr.
3928 (pascal_language_data): Delete la_printstr initializer.
3929 (pascal_language::printstr): New member function, implementation
3930 from pascal_printstr.
3931 * p-lang.h (pascal_printstr): Delete declaration.
3932 * rust-lang.c (rust_printstr): Update header comment.
3933 (rust_language_data): Delete la_printstr initializer.
3934 (rust_language::printstr): New member function.
3935
52b50f2c
AB
39362020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
3937
3938 * ada-lang.c (ada_language_data): Delete la_printchar initializer.
3939 (ada_language::printchar): New member function.
3940 * c-lang.c (c_language_data): Delete la_printchar initializer.
3941 (cplus_language_data): Likewise.
3942 (asm_language_data): Likewise.
3943 (minimal_language_data): Likewise.
3944 * d-lang.c (d_language_data): Likewise.
3945 * f-lang.c (f_printchar): Rename to f_language::printchar.
3946 (f_language_data): Delete la_printchar initializer.
3947 (f_language::printchar): New member function, implementation from
3948 f_printchar.
3949 * go-lang.c (go_language_data): Delete la_printchar initializer.
3950 * language.c (unk_lang_printchar): Delete.
3951 (language_defn::printchar): Define new member function.
3952 (unknown_language_data): Delete la_printchar initializer.
3953 (unknown_language::printchar): New member function.
3954 (auto_language_data): Delete la_printchar initializer.
3955 (auto_language::printchar): New member function.
3956 * language.h (language_data): Delete la_printchar field.
3957 (language_defn::printchar): Declare new member function.
3958 (LA_PRINT_CHAR): Update call to printchar.
3959 * m2-lang.c (m2_language_data): Delete la_printchar initializer.
3960 (m2_language::printchar): New member function.
3961 * objc-lang.c (objc_language_data): Delete la_printchar
3962 initializer.
3963 * opencl-lang.c (opencl_language_data): Likewise.
3964 * p-lang.c (pascal_language_data): Delete la_printchar
3965 initializer.
3966 (pascal_language::printchar): New member function.
3967 * rust-lang.c (rust_printchar): Rename to
3968 rust_language::printchar.
3969 (rust_language_data): Delete la_printchar initializer.
3970 (rust_language::printchar): New member function, implementation
3971 from rust_printchar.
3972
ec8cec5b
AB
39732020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
3974
3975 * ada-lang.c (emit_char): Renamed to ada_language::emitchar.
3976 (ada_language_data): Delete la_emitchar initializer.
3977 (ada_language::emitchar): New member function, implementation from
3978 emit_char.
3979 * c-lang.c (c_language_data): Delete la_emitchar initializer.
3980 (cplus_language_data): Likewise.
3981 (asm_language_data): Likewise.
3982 (minimal_language_data): Likewise.
3983 * d-lang.c (d_language_data): Likewise.
3984 * f-lang.c (f_emit_char): Rename to f_language::emitchar.
3985 (f_language_data): Delete la_emitchar initializer.
3986 (f_language::emitchar): New member function, implementation from
3987 f_emit_char.
3988 * go-lang.c (go_language_data): Delete la_emitchar initializer.
3989 * language.c (unk_lang_emit_char): Delete.
3990 (language_defn::emitchar): New member function definition.
3991 (unknown_language_data): Delete la_emitchar initializer.
3992 (unknown_language::emitchar): New member function.
3993 (auto_language_data): Delete la_emitchar initializer.
3994 (auto_language::emitchar): New member function.
3995 * language.h (language_data): Delete la_emitchar field.
3996 (language_defn::emitchar): New member field declaration.
3997 (LA_EMIT_CHAR): Update call to emitchar.
3998 * m2-lang.c (m2_emit_char): Rename to m2_language::emitchar.
3999 (m2_language_data): Delete la_emitchar initializer.
4000 (m2_language::emitchar): New member function, implementation from
4001 m2_emit_char.
4002 * objc-lang.c (objc_language_data): Delete la_emitchar
4003 initializer.
4004 * opencl-lang.c (opencl_language_data): Likewise.
4005 * p-lang.c (pascal_emit_char): Rename to pascal_language::emitchar.
4006 (pascal_language_data): Delete la_emitchar initializer.
4007 (pascal_language::emitchar): New member function, implementation
4008 from pascal_emit_char.
4009 * rust-lang.c (rust_emitchar): Rename to rust_language::emitchar.
4010 (rust_language_data): Delete la_emitchar initializer.
4011 (rust_language::emitchar): New member function, implementation
4012 from rust_emitchar.
4013
1bf9c363
AB
40142020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
4015
4016 * ada-lang.c (resolve): Rename to ada_language::post_parser.
4017 (ada_language_data): Delete la_post_parser initializer.
4018 (ada_language::post_parser): New member function.
4019 * c-lang.c (c_language_data): Delete la_post_parser initializer.
4020 (cplus_language_data): Likewise.
4021 (asm_language_data): Likewise.
4022 (minimal_language_data): Likewise.
4023 * d-lang.c (d_language_data): Likewise.
4024 * f-lang.c (f_language_data): Likewise.
4025 * go-lang.c (go_language_data): Likewise.
4026 * language.c (unknown_language_data): Likewise.
4027 (auto_language_data): Likewise.
4028 * language.h (language_data): Delete la_post_parser field.
4029 (language_defn::post_parser): New member function.
4030 * m2-lang.c (m2_language_data): Delete la_post_parser initializer.
4031 * objc-lang.c (objc_language_data): Likewise.
4032 * opencl-lang.c (opencl_language_data): Likewise.
4033 * p-lang.c (pascal_language_data): Likewise.
4034 * parse.c (parse_exp_in_context): Update call to post_parser.
4035 (null_post_parser): Delete definition.
4036 * parser-defs.h (null_post_parser): Delete declaration.
4037 * rust-lang.c (rust_language_data): Delete la_post_parser
4038 initializer.
4039
87afa652
AB
40402020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
4041
4042 * ada-lang.c (parse): Rename to ada_language::parser.
4043 (ada_language_data): Delete la_parser initializer.
4044 (ada_language::parser): New member function, implementation from
4045 parse.
4046 * c-lang.c (c_language_data): Delete la_parser initializer.
4047 (cplus_language_data): Likewise.
4048 (asm_language_data): Likewise.
4049 (minimal_language_data): Likewise.
4050 * d-lang.c (d_language_data): Likewise.
4051 (d_language::parser): New member function.
4052 * f-lang.c (f_language_data): Delete la_parser initializer.
4053 (f_language::parser): New member function.
4054 * go-lang.c (go_language_data): Delete la_parser initializer.
4055 (go_language::parser): New member function.
4056 * language.c (unk_lang_parser): Delete.
4057 (language_defn::parser): Define new member function.
4058 (unknown_language_data): Delete la_parser initializer.
4059 (unknown_language::parser): New member function.
4060 (auto_language_data): Delete la_parser initializer.
4061 (auto_language::parser): New member function.
4062 * language.h (language_data): Delete la_parser field.
4063 (language_defn::parser): Declare new member function.
4064 * m2-lang.c (m2_language_data): Delete la_parser initializer.
4065 (m2_language::parser): New member function.
4066 * objc-lang.c (objc_language_data): Delete la_parser initializer.
4067 * opencl-lang.c (opencl_language_data): Likewise.
4068 * p-lang.c (pascal_language_data): Likewise.
4069 (pascal_language::parser): New member function.
4070 * parse.c (parse_exp_in_context): Update call to parser.
4071 * rust-lang.c (rust_language_data): Delete la_parser initializer.
4072 (rust_language::parser): New member function.
4073
37825800
AB
40742020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
4075
4076 * top.c (print_gdb_configuration): Print --with-python-libdir
4077 configuration value.
4078
5b860c93
PW
40792020-06-22 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4080
4081 * NEWS: Mention change to the alias command.
4082
cf00cd6f
PW
40832020-06-22 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4084
4085 * cli/cli-cmds.c (lookup_cmd_for_default_args)
4086 (alias_command_completer)
4087 (make_alias_options_def_group): New functions.
4088 (alias_opts, alias_option_defs): New struct and array.
4089 (alias_usage_error): Update usage.
4090 (alias_command): Handles optional DEFAULT-ARGS... arguments.
4091 Use option framework.
4092 (_initialize_cli_cmds): Update alias command help.
4093 Update aliases command help.
4094 (show_user):
4095 Add NULL for new default_args lookup_cmd argument.
4096 (valid_command_p): Rename to validate_aliased_command.
4097 Add NULL for new default_args lookup_cmd argument. Verify that the
4098 aliased_command has no default args.
4099 * cli/cli-decode.c (help_cmd): Show aliases definitions.
4100 (lookup_cmd_1, lookup_cmd): New argument default_args.
4101 (add_alias_cmd):
4102 Add NULL for new default_args lookup_cmd argument.
4103 (print_help_for_command): Show default args under the layout
4104 alias some_alias = some_aliased_cmd some_alias_default_arg.
4105 * cli/cli-decode.h (struct cmd_list_element): New member default_args.
4106 xfree default_args in destructor.
4107 * cli/cli-script.c (process_next_line, do_define_command):
4108 Add NULL for new default_args lookup_cmd argument.
4109 * command.h: Declare new default_args argument in lookup_cmd
4110 and lookup_cmd_1.
4111 * completer.c (complete_line_internal_1):
4112 Add NULL for new default_args lookup_cmd or lookup_cmd_1 argument.
4113 * guile/scm-cmd.c (gdbscm_parse_command_name): Likewise.
4114 * guile/scm-param.c (add_setshow_generic, pascm_parameter_defined_p):
4115 Likewise.
4116 * infcmd.c (_initialize_infcmd): Likewise.
4117 * python/py-auto-load.c (gdbpy_initialize_auto_load): Likewise.
4118 * python/py-cmd.c (gdbpy_parse_command_name): Likewise.
4119 * python/py-param.c (add_setshow_generic): Likewise.
4120 * remote.c (_initialize_remote): Likewise.
4121 * top.c (execute_command): Prepend default_args if command has some.
4122 (set_verbose):
4123 Add NULL for new default_args lookup_cmd or lookup_cmd_1 argument.
4124 * tracepoint.c (validate_actionline, encode_actions_1):
4125 Add NULL for new default_args lookup_cmd or lookup_cmd_1 argument.
4126
bd920864
TBA
41272020-06-22 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4128
4129 * jit.c (jit_read_descriptor): Use bool as the return type.
4130 (jit_breakpoint_re_set_internal): Use bool as the return type.
4131 Invert the return value logic; return true if the jit breakpoint
4132 has been successfully initialized.
4133 (jit_inferior_init): Update the call to
4134 jit_breakpoint_re_set_internal.
4135
f8098322
PA
41362020-06-22 Pedro Alves <palves@redhat.com>
4137
4138 PR gdb/25939
4139 * procfs.c (procfs_target::wait): Don't reference inferior_ptid.
4140 Use the current inferior instead. Don't return
4141 TARGET_WAITKIND_SPURIOUS/inferior_ptid -- instead continue and
4142 wait again.
4143 * sol-thread.c (sol_thread_target::wait): Don't reference
4144 inferior_ptid.
4145 (ps_lgetregs, ps_lsetregs, ps_lgetfpregs, ps_lsetfpregs)
4146 (sol_update_thread_list_callback): Use the current inferior's pid
4147 instead of inferior_ptid.
4148
196535a6
RO
41492020-06-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
4150
4151 * procfs.c: Cleanup many comments.
4152
4153 (READ_WATCHFLAG, WRITE_WATCHFLAG, EXEC_WATCHFLAG)
4154 (AFTER_WATCHFLAG): Replace by value.
4155
4156 (MAIN_PROC_NAME_FORMAT): Inline ...
4157 (create_procinfo): ... here.
4158
4159 (procfs_debug_inferior): Remove SYS_exec handling.
4160 (syscall_is_exec): Likewise.
4161 (procfs_set_exec_trap): Likewise.
4162
4163 (syscall_is_lwp_exit): Inline in callers.
4164 (syscall_is_exit): Likewise.
4165 (syscall_is_exec): Likewise.
4166 (syscall_is_lwp_create): Likewise.
4167
4168 (invalidate_cache): Remove #if 0 code.
4169
4170 (make_signal_thread_runnable): Remove.
4171 (procfs_target::resume): Remove #if 0 code.
4172
cf6f3e86
RO
41732020-06-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
4174
4175 PR gdb/25939
4176 * procfs.c (procfs_target::procfs_init_inferior): Move push_target
4177 call ...
4178 (procfs_target::create_inferior): ... here.
4179
48e9cc84
PW
41802020-06-21 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4181
4182 * exec.c (validate_exec_file): Ensure the build-id is up to
4183 date by calling reopen_exec_file (that checks file timestamp
4184 to decide to re-read the file).
4185
3922b302
PA
41862020-06-18 Pedro Alves <palves@redhat.com>
4187
4188 PR gdb/25412
4189 * gdbthread.h (delete_thread, delete_thread_silent)
4190 (find_thread_ptid): Update comments.
4191 * thread.c (current_thread_): New global.
4192 (is_current_thread): Move higher, and reimplement.
4193 (inferior_thread): Reimplement.
4194 (set_thread_exited): Use bool. Add assertions.
4195 (add_thread_silent): Simplify thread-reuse handling by always
4196 calling delete_thread.
4197 (delete_thread): Remove intro comment.
4198 (find_thread_ptid): Skip exited threads.
4199 (switch_to_thread_no_regs): Write to current_thread_.
4200 (switch_to_no_thread): Check CURRENT_THREAD_ instead of
4201 INFERIOR_PTID. Clear current_thread_.
4202
6dbdab44
PA
42032020-06-18 Pedro Alves <palves@redhat.com>
4204
4205 * aix-thread.c (pd_update): Use switch_to_thread.
4206
2da4b788
PA
42072020-06-18 Pedro Alves <palves@redhat.com>
4208
4209 * ravenscar-thread.c (ravenscar_thread_target): Update.
4210 (ravenscar_thread_target::update_inferior_ptid): Rename to ...
4211 (ravenscar_thread_target::add_active_thread): ... this. Don't
4212 set m_base_ptid here. Update to avoid referencing inferior_ptid.
4213 (ravenscar_thread_target::wait): Don't write to inferior_ptid.
4214
50838d1b
PA
42152020-06-18 Pedro Alves <palves@redhat.com>
4216
4217 * nat/windows-nat.c (current_windows_thread): Remove.
4218 * nat/windows-nat.h (current_windows_thread): Remove.
4219 * windows-nat.c (windows_nat_target::stopped_by_sw_breakpoint):
4220 Adjust.
4221 (display_selectors): Adjust to fetch the current
4222 windows_thread_info based on inferior_ptid.
4223 (fake_create_process): No longer write to current_windows_thread.
4224 (windows_nat_target::get_windows_debug_event):
4225 Don't set inferior_ptid or current_windows_thread.
4226 (windows_nat_target::wait): Adjust to not rely on
4227 current_windows_thread.
4228 (do_initial_windows_stuff): Now a method of windows_nat_target.
4229 Switch to the last_ptid thread.
4230 (windows_nat_target::attach): Adjust.
4231 (windows_nat_target::detach): Use switch_to_no_thread instead of
4232 writing to inferior_ptid directly.
4233 (windows_nat_target::create_inferior): Adjust.
4234
31ce04e9
PA
42352020-06-18 Pedro Alves <palves@redhat.com>
4236
4237 * windows-nat.c (do_initial_windows_stuff): No longer set inferior_ptid.
4238
1ee1a363
PA
42392020-06-18 Pedro Alves <palves@redhat.com>
4240
4241 * go32-nat.c (go32_nat_target::create_inferior): Switch to thread
4242 after creating it, instead of writing to inferior_ptid. Don't
4243 write to inferior_ptid.
4244
6d350754
PA
42452020-06-18 Pedro Alves <palves@redhat.com>
4246
4247 * fork-child.c (postfork_hook): Don't write to inferior_ptid.
4248
5d971d48
PA
42492020-06-18 Pedro Alves <palves@redhat.com>
4250
4251 * bsd-kvm.c (bsd_kvm_target_open): Switch to thread after adding
4252 it, instead of writing to inferior_ptid.
4253
86e57d1b
PA
42542020-06-18 Pedro Alves <palves@redhat.com>
4255
4256 * btrace.c (btrace_fetch): Use switch_to_thread instead of writing
4257 to inferior_ptid.
4258
f2e1c129
PA
42592020-06-18 Pedro Alves <palves@redhat.com>
4260
4261 * bsd-kvm.c (bsd_kvm_target::close): Use switch_to_no_thread
4262 instead of writing to inferior_ptid directly.
4263
60db1b85
PA
42642020-06-18 Pedro Alves <palves@redhat.com>
4265
4266 * corelow.c (core_target::close): Use switch_to_no_thread instead
4267 of writing to inferior_ptid directly.
4268 (add_to_thread_list, core_target_open): Use switch_to_thread
4269 instead of writing to inferior_ptid directly.
4270
fe7d6a8d
PA
42712020-06-18 Pedro Alves <palves@redhat.com>
4272
4273 * darwin-nat.c (darwin_nat_target::decode_message): Don't write to
4274 inferior_ptid.
4275 (darwin_nat_target::stop_inferior, darwin_nat_target::kill): Avoid
4276 inferior_ptid.
4277 (darwin_attach_pid): Use switch_to_no_thread instead of writing to
4278 inferior_ptid directly.
4279 (darwin_nat_target::init_thread_list): Switch to thread, instead
4280 of writing to inferior_ptid.
4281 (darwin_nat_target::attach): Don't write to inferior_ptid.
4282 (darwin_nat_target::get_ada_task_ptid): Avoid inferior_ptid.
4283
975f8708
PA
42842020-06-18 Pedro Alves <palves@redhat.com>
4285
4286 * gnu-nat.c (gnu_nat_target::create_inferior): Switch to the added
4287 thread.
4288 (gnu_nat_target::attach): Don't write to inferior_ptid directly.
4289 Instead use switch_to_thread.
4290 (gnu_nat_target::detach): Use switch_to_no_thread
4291 instead of writing to inferior_ptid directly. Used passed-in
4292 inferior instead of looking up the inferior by pid.
4293
1a204730
PA
42942020-06-18 Pedro Alves <palves@redhat.com>
4295
4296 * go32-nat.c (go32_nat_target::create_inferior): Don't write to
4297 inferior_ptid.
4298
ebe84f23
PA
42992020-06-18 Pedro Alves <palves@redhat.com>
4300
4301 * nto-procfs.c (nto_procfs_target::update_thread_list): Avoid
4302 inferior_ptid.
4303 (nto_procfs_target::attach): Avoid inferior_ptid. Switch to
4304 thread.
4305 (nto_procfs_target::detach): Avoid referencing
4306 inferior_ptid. Use switch_to_no_thread instead of writing to
4307 inferior_ptid directly.
4308 (nto_procfs_target::mourn_inferior): Use switch_to_no_thread
4309 instead of writing to inferior_ptid directly.
4310 (nto_procfs_target::create_inferior): Avoid inferior_ptid. Switch
4311 to thread.
4312
191f02e5
PA
43132020-06-18 Pedro Alves <palves@redhat.com>
4314
4315 * remote-sim.c (gdbsim_target::create_inferior): Switch to thread
4316 after creating it, instead of writing to inferior_ptid.
4317 (gdbsim_target_open): Use switch_to_no_thread instead of writing
4318 to inferior_ptid directly.
4319 (gdbsim_target::wait): Don't write to inferior_ptid.
4320
0ac55310
PA
43212020-06-18 Pedro Alves <palves@redhat.com>
4322
4323 * remote.c (remote_target::remote_notice_new_inferior): Use
4324 switch_to_thread instead of writing to inferior_ptid directly.
4325 (remote_target::add_current_inferior_and_thread): Use
4326 switch_to_no_thread instead of writing to inferior_ptid directly.
4327 (extended_remote_target::attach): Use switch_to_inferior_no_thread
4328 and switch_to_thread instead of using set_current_inferior or
4329 writing to inferior_ptid directly.
4330
5233f39b
PA
43312020-06-18 Pedro Alves <palves@redhat.com>
4332
4333 * tracectf.c (ctf_target_open): Switch to added thread instead of
4334 writing to inferior_ptid directly.
4335 (ctf_target::close): Use switch_to_no_thread instead of writing to
4336 inferior_ptid directly.
4337
087e161b
PA
43382020-06-18 Pedro Alves <palves@redhat.com>
4339
4340 * tracefile-tfile.c (tfile_target_open): Don't write to
4341 inferior_ptid directly, instead switch to added thread.
4342 (tfile_target::close): Use switch_to_no_thread instead of writing
4343 to inferior_ptid directly.
4344
7fb43e53
PA
43452020-06-18 Pedro Alves <palves@redhat.com>
4346
4347 * procfs.c (procfs_target::attach): Don't write to inferior_ptid.
4348 (procfs_target::detach): Use switch_to_no_thread
4349 instead of writing to inferior_ptid directly.
4350 (do_attach): Change return type to void. Switch to the added
4351 thread.
4352 (procfs_target::create_inferior): Switch to the added thread.
4353 (procfs_do_thread_registers): Don't write to inferior_ptid.
4354
18493a00
PA
43552020-06-18 Pedro Alves <palves@redhat.com>
4356
4357 * infrun.c (generic_mourn_inferior): Use switch_to_thread instead
4358 of writing to inferior_ptid.
4359 (scoped_restore_exited_inferior): Delete.
4360 (handle_vfork_child_exec_or_exit): Simplify using
4361 scoped_restore_current_pspace_and_thread. Use switch_to_thread
4362 instead of writing to inferior_ptid.
4363 (THREAD_STOPPED_BY): Delete.
4364 (thread_stopped_by_watchpoint, thread_stopped_by_sw_breakpoint)
4365 (thread_stopped_by_hw_breakpoint): Delete.
4366 (save_waitstatus): Use
4367 scoped_restore_current_thread+switch_to_thread, and call
4368 target_stopped_by_watchpoint instead of
4369 thread_stopped_by_watchpoint, target_stopped_by_sw_breakpoint
4370 instead of thread_stopped_by_sw_breakpoint, and
4371 target_stopped_by_hw_breakpoint instead of
4372 thread_stopped_by_hw_breakpoint.
4373 (handle_inferior_event)
4374 <TARGET_WAITKIND_EXITED/TARGET_WAITKIND_SIGNALLED>: Don't write to
4375 inferior_ptid directly, nor
4376 set_current_inferior/set_current_program_space. Use
4377 switch_to_thread / switch_to_inferior_no_thread instead.
4378
a0776b13
PA
43792020-06-18 Pedro Alves <palves@redhat.com>
4380
4381 * target.c (generic_mourn_inferior): Use switch_to_no_thread
4382 instead of writing to inferior_ptid.
4383
6155c136
PA
43842020-06-18 Pedro Alves <palves@redhat.com>
4385
4386 * inf-ptrace.c (inf_ptrace_target::create_inferior): Switch to the
4387 added thread.
4388 (inf_ptrace_target::attach): Don't write to inferior_ptid. Switch
4389 to the added thread.
4390 (inf_ptrace_target::detach_success): Use switch_to_no_thread
4391 instead of writing to inferior_ptid.
4392
c5316fc6
PA
43932020-06-18 Pedro Alves <palves@redhat.com>
4394
4395 * gdbarch-selftests.c: Include "progspace-and-thread.h".
4396 (register_to_value_test): Mock a program_space too. Heap-allocate
4397 the address space. Don't write to inferior_ptid. Use
4398 switch_to_thread instead.
4399
8df01799
PA
44002020-06-18 Pedro Alves <palves@redhat.com>
4401
4402 * linux-tdep.c (find_signalled_thread(thread_info *,void *)):
4403 Delete.
4404 (find_signalled_thread()): New, factored out from
4405 linux_make_corefile_notes and adjusted to handle exited threads.
4406 (linux_make_corefile_notes): Adjust to use the new
4407 find_signalled_thread.
4408
41792d68
PA
44092020-06-18 Pedro Alves <palves@redhat.com>
4410
4411 * linux-tdep.c (btrace_fetch): Save/restore current thread instead
4412 of saving/restoring inferior_ptid.
4413
612f258a
TT
44142020-06-17 Tom Tromey <tom@tromey.com>
4415
4416 * tui/tui-win.h (tui_scroll_forward, tui_scroll_backward)
4417 (tui_scroll_left, tui_scroll_right, struct tui_win_info): Don't
4418 declare.
4419 * tui/tui-data.h (MIN_CMD_WIN_HEIGHT): Remove.
4420
efb763a5
SM
44212020-06-15 Simon Marchi <simon.marchi@efficios.com>
4422
4423 * dwarf2/read.c (dwarf2_initialize_objfile): Check for presence
4424 of partial symtabs.
4425
2951f6c0
SM
44262020-06-17 Simon Marchi <simon.marchi@efficios.com>
4427
4428 * regformats/reg-arm.dat: Remove.
4429 * regformats/reg-bfin.dat: Remove.
4430 * regformats/reg-cris.dat: Remove.
4431 * regformats/reg-crisv32.dat: Remove.
4432 * regformats/reg-m32r.dat: Remove.
4433 * regformats/reg-tilegx.dat: Remove.
4434 * regformats/reg-tilegx32.dat: Remove.
4435
7d458ea5
SM
44362020-06-17 Simon Marchi <simon.marchi@efficios.com>
4437
4438 * features/Makefile (WHICH): Remove arm files.
4439 * regformats/arm/arm-with-iwmmxt.dat: Remove.
4440 * regformats/arm/arm-with-neon.dat: Remove.
4441 * regformats/arm/arm-with-vfpv2.dat: Remove.
4442 * regformats/arm/arm-with-vfpv3.dat: Remove.
4443
3af96c0d
SM
44442020-06-17 Simon Marchi <simon.marchi@efficios.com>
4445
4446 * features/Makefile (XMLTOC): Remove rx.xml.
4447
b25e22fd
PA
44482020-06-17 Pedro Alves <palves@redhat.com>
4449
4450 * gdbthread.h (thread_control_state) <trap_expected> Update
4451 comments.
4452
a78a19b1
AB
44532020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
4454
4455 * ada-lang.c (ada_lookup_symbol_nonlocal): Rename to
4456 ada_language::lookup_symbol_nonlocal.
4457 (ada_language_data): Delete la_lookup_symbol_nonlocal initializer.
4458 (ada_language::lookup_symbol_nonlocal): New member function,
4459 implementation from ada_lookup_symbol_nonlocal.
4460 * c-lang.c (c_language_data): Delete la_lookup_symbol_nonlocal
4461 initializer.
4462 (cplus_language_data): Delete la_lookup_symbol_nonlocal
4463 initializer.
4464 (cplus_language::lookup_symbol_nonlocal): New member function.
4465 (asm_language_data): Delete la_lookup_symbol_nonlocal initializer.
4466 (minimal_language_data) Likewise.
4467 * cp-namespace.c (cp_lookup_nested_symbol): Update comment.
4468 * d-lang.c (d_language_data): Delete la_lookup_symbol_nonlocal
4469 initializer.
4470 (d_language::lookup_symbol_nonlocal): New member function.
4471 * f-lang.c (f_language_data): Delete la_lookup_symbol_nonlocal
4472 initializer.
4473 (f_language::lookup_symbol_nonlocal): New member function.
4474 * go-lang.c (go_language_data): Delete la_lookup_symbol_nonlocal
4475 initializer.
4476 * language.c (unknown_language_data): Likewise.
4477 (auto_language_data): Likewise.
4478 * language.h (language_data): Delete la_lookup_symbol_nonlocal
4479 field.
4480 (language_defn::lookup_symbol_nonlocal): New member function.
4481 * m2-lang.c (m2_language_data): Delete la_lookup_symbol_nonlocal
4482 initializer.
4483 * objc-lang.c (objc_language_data): Likewise.
4484 * opencl-lang.c (opencl_language_data): Likewise.
4485 * p-lang.c (pascal_language_data): Likewise.
4486 * rust-lang.c (rust_lookup_symbol_nonlocal): Rename to
4487 rust_language::lookup_symbol_nonlocal.
4488 (rust_language_data): Delete la_lookup_symbol_nonlocal
4489 initializer.
4490 (rust_language::lookup_symbol_nonlocal): New member function,
4491 implementation from rust_lookup_symbol_nonlocal.
4492 * symtab.c (lookup_symbol_aux): Update call to
4493 lookup_symbol_nonlocal.
4494 (basic_lookup_symbol_nonlocal): Rename to...
4495 (language_defn::lookup_symbol_nonlocal): ...this, and update
4496 header comment. Remove language_defn parameter, and replace with
4497 uses of `this'.
4498 * symtab.h (basic_lookup_symbol_nonlocal): Delete declaration.
4499
ebe2334e
AB
45002020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
4501
4502 * ada-lang.c (ada_language_data): Delete la_value_print_inner
4503 initializer.
4504 (ada_language::value_print_inner): New member function.
4505 * c-lang.c (c_language_data): Delete la_value_print_inner
4506 initializer.
4507 (cplus_language_data): Likewise.
4508 (asm_language_data): Likewise.
4509 (minimal_language_data): Likewise.
4510 * d-lang.c (d_language_data): Likewise.
4511 (d_language::value_print_inner): New member function.
4512 * f-lang.c (f_language_data): Delete la_value_print_inner
4513 initializer.
4514 (f_language::value_print_inner): New member function.
4515 * f-lang.h (f_value_print_innner): Rename to...
4516 (f_value_print_inner): ...this (note spelling of 'inner').
4517 * f-valprint.c (f_value_print_innner): Rename to...
4518 (f_value_print_inner): ...this (note spelling of 'inner').
4519 * go-lang.c (go_language_data): Delete la_value_print_inner
4520 initializer.
4521 (go_language::value_print_inner): New member function.
4522 * language.c (language_defn::value_print_inner): Define new member
4523 function.
4524 (unk_lang_value_print_inner): Delete.
4525 (unknown_language_data): Delete la_value_print_inner initializer.
4526 (unknown_language::value_print_inner): New member function.
4527 (auto_language_data): Delete la_value_print_inner initializer.
4528 (auto_language::value_print_inner): New member function.
4529 * language.h (language_data): Delete la_value_print_inner field.
4530 (language_defn::value_print_inner): Delcare new member function.
4531 * m2-lang.c (m2_language_data): Delete la_value_print_inner
4532 initializer.
4533 (m2_language::value_print_inner): New member function.
4534 * objc-lang.c (objc_language_data): Delete la_value_print_inner
4535 initializer.
4536 * opencl-lang.c (opencl_language_data): Likewise.
4537 * p-lang.c (pascal_language_data): Likewise.
4538 (pascal_language::value_print_inner): New member function.
4539 * rust-lang.c (rust_language_data): Delete la_value_print_inner
4540 initializer.
4541 (rust_language::value_print_inner): New member function.
4542 * valprint.c (do_val_print): Update call to value_print_inner.
4543
a1d1fa3e
AB
45442020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
4545
4546 * ada-lang.c (ada_language_data): Delete la_value_print
4547 initializer.
4548 (ada_language::value_print): New member function.
4549 * c-lang.c (c_language_data): Delete la_value_print initializer.
4550 (cplus_language_data): Likewise.
4551 (asm_language_data): Likewise.
4552 (minimal_language_data): Likewise.
4553 * d-lang.c (d_language_data): Likewise.
4554 * f-lang.c (f_language_data): Likewise.
4555 * go-lang.c (go_language_data): Likewise.
4556 * language.c (unk_lang_value_print): Delete.
4557 (language_defn::value_print): Define new member function.
4558 (unknown_language_data): Delete la_value_print initializer.
4559 (unknown_language::value_print): New member function.
4560 (auto_language_data): Delete la_value_print initializer.
4561 (auto_language::value_print): New member function.
4562 * language.h (language_data): Delete la_value_print field.
4563 (language_defn::value_print): Declare new member function.
4564 (LA_VALUE_PRINT): Update call to value_print.
4565 * m2-lang.c (m2_language_data): Delete la_value_print initializer.
4566 * objc-lang.c (objc_language_data): Likewise.
4567 * opencl-lang.c (opencl_language_data): Likewise.
4568 * p-lang.c (pascal_language_data): Likewise.
4569 (pascal_language::value_print): New member function.
4570 * rust-lang.c (rust_language_data): Delete la_value_print
4571 initializer.
4572
f16a9f57
AB
45732020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
4574
4575 * ada-lang.c (ada_watch_location_expression): Rename to
4576 ada_language::watch_location_expression.
4577 (ada_language_data): Delete la_watch_location_expression
4578 initializer.
4579 (ada_language::watch_location_expression): New member function,
4580 implementation from ada_watch_location_expression.
4581 * breakpoint.c (watch_command_1): Update call to
4582 watch_location_expression.
4583 * c-lang.c (c_watch_location_expression): Rename to
4584 language_defn::watch_location_expression.
4585 (c_language_data): Delete la_watch_location_expression
4586 initializer.
4587 (cplus_language_data): Likewise.
4588 (asm_language_data): Likewise.
4589 (minimal_language_data): Likewise.
4590 * c-lang.h (c_watch_location_expression): Delete declaration.
4591 * d-lang.c (d_language_data): Delete la_watch_location_expression
4592 initializer.
4593 * f-lang.c (f_language_data): Likewise.
4594 * go-lang.c (go_language_data): Likewise.
4595 * language.c (language_defn::watch_location_expression): Member
4596 function implementation from c_watch_location_expression.
4597 (unknown_language_data): Delete la_watch_location_expression
4598 initializer.
4599 (auto_language_data): Likewise.
4600 * language.h (language_data): Delete la_watch_location_expression
4601 field.
4602 (language_defn::watch_location_expression): Declare new member
4603 function.
4604 * m2-lang.c (m2_language_data): Delete
4605 la_watch_location_expression initializer.
4606 * objc-lang.c (objc_language_data): Likewise.
4607 * opencl-lang.c (opencl_language_data): Likewise.
4608 * p-lang.c (pascal_language_data): Likewise.
4609 * rust-lang.c (rust_watch_location_expression): Rename to
4610 rust_language::watch_location_expression.
4611 (rust_language_data): Delete la_watch_location_expression
4612 initializer.
4613 (rust_language::watch_location_expression): New member function,
4614 implementation from rust_watch_location_expression.
4615
7e56227d
AB
46162020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
4617
4618 * ada-lang.c (ada_collect_symbol_completion_matches): Rename to
4619 ada_language::collect_symbol_completion_matches.
4620 (ada_language_data): Delete la_collect_symbol_completion_matches
4621 initializer.
4622 (ada_language::collect_symbol_completion_matches): New member
4623 function, implementation from
4624 ada_collect_symbol_completion_matches.
4625 * c-lang.c (c_language_data): Delete
4626 la_collect_symbol_completion_matches initializer.
4627 (cplus_language_data): Likewise.
4628 (asm_language_data): Likewise.
4629 (minimal_language_data): Likewise.
4630 * d-lang.c (d_language_data): Likewise.
4631 * f-lang.c (f_collect_symbol_completion_matches): Rename to
4632 f_language::collect_symbol_completion_matches.
4633 (f_language_data): Delete la_collect_symbol_completion_matches
4634 initializer.
4635 (f_language::collect_symbol_completion_matches) New member
4636 function, implementation from f_collect_symbol_completion_matches.
4637 * go-lang.c (go_language_data): Delete
4638 la_collect_symbol_completion_matches initializer.
4639 * language.c (unknown_language_data): Likewise.
4640 (auto_language_data): Likewise.
4641 * language.h (language_data): Delete
4642 la_collect_symbol_completion_matches field.
4643 (language_defn::collect_symbol_completion_matches): New member
4644 function.
4645 * m2-lang.c (m2_language_data): Delete
4646 la_collect_symbol_completion_matches initializer.
4647 * objc-lang.c (objc_language_data): Likewise.
4648 * opencl-lang.c (opencl_language_data): Likewise.
4649 * p-lang.c (pascal_language_data): Likewise.
4650 * rust-lang.c (rust_language_data): Likewise.
4651 * symtab.c (default_collect_symbol_completion_matches): Delete.
4652 (collect_symbol_completion_matches): Update call to
4653 collect_symbol_completion_matches.
4654 (collect_symbol_completion_matches_type): Likewise.
4655 * symtab.h (default_collect_symbol_completion_matches): Delete
4656 declaration.
4657
53fc67f8
AB
46582020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
4659
4660 * ada-lang.c (ada_get_gdb_completer_word_break_characters): Delete.
4661 (ada_language_data): Delete la_word_break_characters initializer.
4662 (ada_language::word_break_characters): New member function.
4663 * c-lang.c (c_language_data): Delete la_word_break_characters
4664 initializer.
4665 (cplus_language_data): Likewise.
4666 (asm_language_data): Likewise.
4667 (minimal_language_data): Likewise.
4668 * completer.c: Update global comment.
4669 (advance_to_expression_complete_word_point): Update call to
4670 word_break_characters.
4671 (complete_files_symbols): Likewise.
4672 (complete_line_internal_1): Likewise.
4673 (default_completer_handle_brkchars): Likewise.
4674 (skip_quoted_chars): Likewise.
4675 * d-lang.c (d_language_data): Delete la_word_break_characters
4676 initializer.
4677 * f-lang.c (f_word_break_characters): Delete.
4678 (f_language_data): Delete la_word_break_characters initializer.
4679 (f_language::word_break_characters): New member function.
4680 * go-lang.c (go_language_data): Delete la_word_break_characters
4681 initializer.
4682 * language.c (unknown_language_data): Likewise.
4683 (auto_language_data): Likewise.
4684 * language.h (default_word_break_characters): Move declaration to
4685 earlier in the file.
4686 (language_data): Delete la_word_break_characters field.
4687 (language_defn::word_break_characters): New member function.
4688 * m2-lang.c (m2_language_data): Delete la_word_break_characters
4689 initializer.
4690 * objc-lang.c (objc_language_data): Likewise.
4691 * opencl-lang.c (opencl_language_data): Likewise.
4692 * p-lang.c (pascal_language_data): Likewise.
4693 * rust-lang.c (rust_language_data): Likewise.
4694
c9debfb9
AB
46952020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
4696
4697 * ada-lang.c (ada_get_symbol_name_matcher): Update header comment.
4698 (ada_language_data): Delete la_get_symbol_name_matcher
4699 initializer.
4700 (language_defn::get_symbol_name_matcher_inner): New member
4701 function.
4702 * c-lang.c (c_language_data): Delete la_get_symbol_name_matcher
4703 initializer.
4704 (cplus_language_data): Likewise.
4705 (cplus_language::get_symbol_name_matcher_inner): New member
4706 function.
4707 (asm_language_data): Delete la_get_symbol_name_matcher initializer.
4708 (minimal_language_data): Likewise.
4709 * cp-support.h (cp_get_symbol_name_matcher): Update header comment.
4710 * d-lang.c (d_language_data): Delete la_get_symbol_name_matcher
4711 initializer.
4712 * dictionary.c (iter_match_first_hashed): Update call to
4713 get_symbol_name_matcher.
4714 (iter_match_next_hashed): Likewise.
4715 (iter_match_next_linear): Likewise.
4716 * dwarf2/read.c (dw2_expand_symtabs_matching_symbol): Likewise.
4717 * f-lang.c (f_language_data): Delete la_get_symbol_name_matcher
4718 initializer.
4719 (f_language::get_symbol_name_matcher_inner): New member function.
4720 * go-lang.c (go_language_data): Delete la_get_symbol_name_matcher
4721 initializer.
4722 * language.c (default_symbol_name_matcher): Update header comment,
4723 make static.
4724 (language_defn::get_symbol_name_matcher): New definition.
4725 (language_defn::get_symbol_name_matcher_inner): Likewise.
4726 (get_symbol_name_matcher): Delete.
4727 (unknown_language_data): Delete la_get_symbol_name_matcher
4728 initializer.
4729 (auto_language_data): Likewise.
4730 * language.h (language_data): Delete la_get_symbol_name_matcher
4731 field.
4732 (language_defn::get_symbol_name_matcher): New member function.
4733 (language_defn::get_symbol_name_matcher_inner): Likewise.
4734 (default_symbol_name_matcher): Delete declaration.
4735 * linespec.c (find_methods): Update call to
4736 get_symbol_name_matcher.
4737 * m2-lang.c (m2_language_data): Delete la_get_symbol_name_matcher
4738 initializer.
4739 * minsyms.c (lookup_minimal_symbol): Update call to
4740 get_symbol_name_matcher.
4741 (iterate_over_minimal_symbols): Likewise.
4742 * objc-lang.c (objc_language_data): Delete
4743 la_get_symbol_name_matcher initializer.
4744 * opencl-lang.c (opencl_language_data): Likewise.
4745 * p-lang.c (pascal_language_data): Likewise.
4746 * psymtab.c (psymbol_name_matches): Update call to
4747 get_symbol_name_matcher.
4748 * rust-lang.c (rust_language_data): Delete
4749 la_get_symbol_name_matcher initializer.
4750 * symtab.c (symbol_matches_search_name): Update call to
4751 get_symbol_name_matcher.
4752 (compare_symbol_name): Likewise.
4753
9a49ad8c
AB
47542020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
4755
4756 * ada-lang.c (ada_language_data): Delete la_compute_program
4757 initializer.
4758 * c-lang.c (c_language_data): Likewise.
4759 (c_language::compute_program): New member function.
4760 (cplus_language_data): Delete la_compute_program initializer.
4761 (cplus_language::compute_program): New member function.
4762 (asm_language_data): Delete la_compute_program initializer.
4763 (minimal_language_data): Likewise.
4764 * c-lang.h (c_compute_program): Update comment.
4765 (cplus_compute_program): Likewise.
4766 * compile/compile-c-support.c (c_compute_program): Likewise.
4767 (cplus_compute_program): Likewise.
4768 * compile/compile.c (compile_to_object): Update call to
4769 la_compute_program.
4770 * d-lang.c (d_language_data): Delete la_compute_program
4771 initializer.
4772 * f-lang.c (f_language_data): Likewise.
4773 * go-lang.c (go_language_data): Likewise.
4774 * language.c (unknown_language_data): Likewise.
4775 (auto_language_data): Likewise.
4776 * language.h (language_data): Delete la_compute_program field.
4777 (language_defn::compute_program): New member function.
4778 * m2-lang.c (m2_language_data): Delete la_compute_program
4779 initializer.
4780 * objc-lang.c (objc_language_data): Likewise.
4781 * opencl-lang.c (opencl_language_data): Likewise.
4782 * p-lang.c (pascal_language_data): Likewise.
4783 * rust-lang.c (rust_language_data): Likewise.
4784
eff93b4d
AB
47852020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
4786
4787 * ada-lang.c (ada_language_data) Delete
4788 la_class_name_from_physname initializer.
4789 * c-lang.c (c_language_data): Likewise.
4790 (cplus_language_data): Likewise.
4791 (cplus_language::class_name_from_physname): New member function.
4792 (asm_language_data): Delete la_class_name_from_physname
4793 initializer.
4794 (minimal_language_data): Likewise.
4795 * d-lang.c (d_language_data): Likewise.
4796 * dwarf2/read.c (guess_partial_die_structure_name): Update to call
4797 method on language_defn class.
4798 (guess_full_die_structure_name): Likewise.
4799 * f-lang.c (f_language_data): Delete la_class_name_from_physname
4800 initializer.
4801 * go-lang.c (go_language_data): Likewise.
4802 * language.c (language_class_name_from_physname): Delete.
4803 (unk_lang_class_name): Delete.
4804 (unknown_language_data): Delete la_class_name_from_physname
4805 initializer.
4806 (auto_language_data): Likewise.
4807 * language.h (language_data): Delete la_class_name_from_physname
4808 field.
4809 (language_defn::class_name_from_physname): New function.
4810 (language_class_name_from_physname): Delete declaration.
4811 * m2-lang.c (m2_language_data): Delete la_class_name_from_physname
4812 initializer.
4813 * objc-lang.c (objc_language_data): Likewise.
4814 * opencl-lang.c (opencl_language_data): Likewise.
4815 * p-lang.c (pascal_language_data): Likewise.
4816 * rust-lang.c (rust_language_data): Likewise.
4817
de543742
TT
48182020-06-16 Tom Tromey <tom@tromey.com>
4819
4820 * tui/tui-data.h (STATUS_NAME): New macro.
4821 * tui/tui-layout.c (tui_remove_some_windows)
4822 (initialize_known_windows, tui_register_window)
4823 (tui_layout_split::remove_windows, initialize_layouts)
4824 (tui_new_layout_command): Don't use hard-coded window names.
4825
a350efd4
TT
48262020-06-16 Tom Tromey <tom@tromey.com>
4827
4828 PR tui/25348:
4829 * tui/tui.c (tui_ensure_readline_initialized): Rename from
4830 tui_initialize_readline. Only run once. Call rl_initialize.
4831 * tui/tui.h (tui_ensure_readline_initialized): Rename from
4832 tui_initialize_readline.
4833 * tui/tui-io.c (tui_setup_io): Call
4834 tui_ensure_readline_initialized.
4835 * tui/tui-interp.c (tui_interp::init): Update.
4836
39ec0490
TT
48372020-06-16 Tom Tromey <tom@tromey.com>
4838
4839 * tui/tui-layout.c (tui_layout_split::remove_windows): Fix logic.
4840 Also preserve the status window.
4841
d2d1ea20
TT
48422020-06-16 Tom Tromey <tom@tromey.com>
4843
4844 * python/py-tui.c (tui_py_window::~tui_py_window): Handle case
4845 where m_window==nullptr.
4846
66920317
TT
48472020-06-15 Tom Tromey <tromey@adacore.com>
4848
4849 * windows-nat.c (windows_nat::handle_output_debug_string):
4850 Update.
4851 (windows_nat::handle_ms_vc_exception): Update.
4852 * target.h (target_read_string): Change API.
4853 * target.c (target_read_string): Change API.
4854 * solib-svr4.c (open_symbol_file_object, svr4_read_so_list):
4855 Update.
4856 * solib-frv.c (frv_current_sos): Update.
4857 * solib-dsbt.c (dsbt_current_sos): Update.
4858 * solib-darwin.c (darwin_current_sos): Update.
4859 * linux-thread-db.c (inferior_has_bug): Update.
4860 * expprint.c (print_subexp_standard): Update.
4861 * ada-lang.c (ada_main_name, ada_tag_name_from_tsd)
4862 (ada_exception_message_1): Update.
4863
a5d871dd
TT
48642020-06-15 Tom Tromey <tromey@adacore.com>
4865
4866 * linux-tdep.c (dump_mapping_p): Use target_read_memory.
4867
670e35fa
TT
48682020-06-15 Tom Tromey <tromey@adacore.com>
4869
4870 * valprint.c (read_string): Update comment.
4871 * target.c (MIN): Remove.
4872 (target_read_string): Rewrite.
4873
f5272a3b
TT
48742020-06-15 Tom Tromey <tromey@adacore.com>
4875
4876 * corefile.c (read_memory_string): Remove.
4877 * ada-valprint.c (ada_value_print_ptr): Update.
4878 * ada-lang.h (ada_tag_name): Change return type.
4879 * ada-lang.c (type_from_tag): Update.
4880 (ada_tag_name_from_tsd): Change return type. Use
4881 target_read_string.
4882 (ada_tag_name): Likewise.
4883 * gdbcore.h (read_memory_string): Don't declare.
4884
2c074f49
HD
48852020-06-14 Hannes Domani <ssbssa@yahoo.de>
4886
4887 * symtab.c (rbreak_command): Ignore Windows drive colon.
4888
6a17d503
SM
48892020-06-12 Simon Marchi <simon.marchi@efficios.com>
4890
4891 * NEWS: Mention removed GDBserver host support.
4892
453c733f
NC
48932020-06-12 Nelson Chu <nelson.chu@sifive.com>
4894
4895 * features/riscv/rebuild-csr-xml.sh: Updated.
4896
2b4e6a3f
TT
48972020-06-11 Tom Tromey <tom@tromey.com>
4898
4899 PR gdb/18318:
4900 * c-exp.y (lex_one_token): Handle 'p' like 'e'.
4901
4412332f
JG
49022020-06-09 Jonny Grant <jg@jguk.org>
49032020-06-09 Simon Marchi <simon.marchi@polymtl.ca>
4904
4905 * main.c (captured_main_1): Don't print new line after help.
4906 (print_gdb_help): add mailing list and IRC channel information
4907 to --help. Add new lines between items in the footer. Remove
4908 quotes around bug url.
4909
2f33032a
KS
49102020-06-11 Keith Seitz <keiths@redhat.com>
4911
4912 PR gdb/21356
4913 * gdbtypes.c (resolve_dynamic_union, resolve_dynamic_struct):
4914 Resolve typedefs for type length calculations.
4915
7ab96794
TV
49162020-06-10 Tom de Vries <tdevries@suse.de>
4917
4918 PR ada/24713
4919 * dwarf2/index-write.c (struct mapped_symtab): Add m_string_obstack.
4920 (write_psymbols): Enable .gdb_index for ada.
4921 * dwarf2/read.c: Remove comment stating .gdb_index is unsupported for
4922 ada.
4923
e5f3ece2
TV
49242020-06-10 Tom de Vries <tdevries@suse.de>
4925
4926 * dwarf2/read.c (dw2_symtab_iter_init_common): Factor out of ...
4927 (dw2_symtab_iter_init): ... here. Add variant with "offset_type
4928 namei" instead of "const char *name" argument.
4929 (dw2_map_matching_symbols): Use "offset_type namei" variant of
4930 dw2_symtab_iter_init.
4931
940da03e
SM
49322020-06-08 Simon Marchi <simon.marchi@efficios.com>
4933
4934 * gdbtypes.h (TYPE_FIELD_TYPE): Remove. Change all call sites
4935 to use type::field and field::type instead.
4936
b6cdac4b
SM
49372020-06-08 Simon Marchi <simon.marchi@efficios.com>
4938
4939 * gdbtypes.h (FIELD_TYPE): Remove. Change all call sites
4940 to use field::type instead.
4941
5d14b6e5
SM
49422020-06-08 Simon Marchi <simon.marchi@efficios.com>
4943
4944 * gdbtypes.h (struct field) <type, set_type>: New methods.
4945 Rename `type` field to...
4946 <m_type>: ... this. Change references throughout to use type or
4947 set_type methods.
4948 (FIELD_TYPE): Use field::type. Change call sites that modify
4949 the field's type to use field::set_type instead.
4950
3d967001
SM
49512020-06-08 Simon Marchi <simon.marchi@efficios.com>
4952
4953 * gdbtypes.h (TYPE_INDEX_TYPE): Remove. Change all call sites
4954 to use type::index_type instead.
4955
262abc0d
SM
49562020-06-08 Simon Marchi <simon.marchi@efficios.com>
4957
4958 * gdbtypes.h (struct type) <index_type, set_index_type>: New
4959 methods.
4960 (TYPE_INDEX_TYPE): Use type::index_type.
4961 * gdbtypes.c (create_array_type_with_stride): Likewise.
4962
82836c92
TT
49632020-06-07 Tom Tromey <tom@tromey.com>
4964
4965 * valprint.c (generic_val_print_float): Remove "embedded_offset"
4966 parameter.
4967 (generic_value_print): Update.
4968
940dace9
AB
49692020-06-05 Andrew Burgess <andrew.burgess@embecosm.com>
4970
4971 Revert commit 982a38f60b0.
4972 * python/py-tui.c (gdbpy_tui_set_title): Restore use of get.
4973
982a38f6
AB
49742020-06-05 Andrew Burgess <andrew.burgess@embecosm.com>
4975
4976 * python/py-tui.c (gdbpy_tui_set_title): Use release, not get, to
4977 avoid use after free.
4978
82f06518
TV
49792020-06-05 Tom de Vries <tdevries@suse.de>
4980
4981 * NEWS: Fix typos.
4982
f8c41851
SM
49832020-06-04 Simon Marchi <simon.marchi@efficios.com>
4984
4985 * dwarf2/read.c (dwarf2_read_gdb_index): Save partial_symtabs in
4986 the per_bfd object.
4987 (dwarf2_read_debug_names): Likewise.
4988 (dwarf2_initialize_objfile): Use partial_symtabs from per_bfd
4989 object when re-using a per_bfd object with an index.
4990
f9b5d5ea
TV
49912020-06-03 Tom de Vries <tdevries@suse.de>
4992
4993 PR symtab/26046
4994 * dwarf2/read.c (scan_partial_symbols): Recurse into DW_TAG_subprogram
4995 children for C++.
4996 (load_partial_dies): Don't skip DW_TAG_inlined_subroutine child of
4997 DW_TAG_subprogram.
4998
f6eee2d0
AB
49992020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
5000
5001 * ada-lang.c (ada_language_data): Delete skip_trampoline
5002 initializer.
5003 * c-lang.c (c_language_data): Likewise.
5004 (cplus_language_data): Likewise.
5005 (cplus_language::skip_trampoline): New member function.
5006 (asm_language_data): Delete skip_trampoline initializer.
5007 (minimal_language_data): Likewise.
5008 * d-lang.c (d_language_data): Likewise.
5009 * f-lang.c (f_language_data): Likewise.
5010 * go-lang.c (go_language_data): Likewise.
5011 * language.c (unk_lang_trampoline): Delete function.
5012 (skip_language_trampoline): Update.
5013 (unknown_language_data): Delete skip_trampoline initializer.
5014 (auto_language_data): Likewise.
5015 * language.h (language_data): Delete skip_trampoline field.
5016 (language_defn::skip_trampoline): New function.
5017 * m2-lang.c (m2_language_data): Delete skip_trampoline
5018 initializer.
5019 * objc-lang.c (objc_skip_trampoline): Delete function, move
5020 implementation to objc_language::skip_trampoline.
5021 (objc_language_data): Delete skip_trampoline initializer.
5022 (objc_language::skip_trampoline): New member function with
5023 implementation from objc_skip_trampoline.
5024 * opencl-lang.c (opencl_language_data): Delete skip_trampoline
5025 initializer.
5026 * p-lang.c (pascal_language_data): Likewise.
5027 * rust-lang.c (rust_language_data): Likewise.
5028
0a50df5d
AB
50292020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
5030
5031 * ada-lang.c (ada_language_data): Delete la_demangle initializer.
5032 (ada_language::demangle): New member function.
5033 * c-lang.c (c_language_data): Delete la_demangle initializer.
5034 (cplus_language_data): Delete la_demangle initializer.
5035 (cplus_language::demangle): New member function.
5036 (asm_language_data): Delete la_demangle initializer.
5037 (minimal_language_data): Delete la_demangle initializer.
5038 * d-lang.c (d_language_data): Delete la_demangle initializer.
5039 (d_language::demangle): New member function.
5040 * f-lang.c (f_language_data): Delete la_demangle initializer.
5041 (f_language::demangle): New member function.
5042 * go-lang.c (go_language_data): Delete la_demangle initializer.
5043 (go_language::demangle): New member function.
5044 * language.c (language_demangle): Update.
5045 (unk_lang_demangle): Delete.
5046 (unknown_language_data): Delete la_demangle initializer.
5047 (unknown_language::demangle): New member function.
5048 (auto_language_data): Delete la_demangle initializer.
5049 (auto_language::demangle): New member function.
5050 * language.h (language_data): Delete la_demangle field.
5051 (language_defn::demangle): New function.
5052 * m2-lang.c (m2_language_data): Delete la_demangle initializer.
5053 * objc-lang.c (objc_language_data): Delete la_demangle
5054 initializer.
5055 (objc_language::demangle): New member function.
5056 * opencl-lang.c (opencl_language_data): Delete la_demangle
5057 initializer.
5058 * p-lang.c (pascal_language_data): Likewise.
5059 * rust-lang.c (rust_language_data): Likewise.
5060 (rust_language::demangle): New member function.
5061
fbfb0a46
AB
50622020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
5063
5064 * ada-lang.c (ada_language_data): Delete la_print_type
5065 initializer.
5066 (ada_language::print_type): New member function.
5067 * c-lang.c (c_language_data): Delete la_print_type initializer.
5068 (c_language::print_type): New member function.
5069 (cplus_language_data): Delete la_print_type initializer.
5070 (cplus_language::print_type): New member function.
5071 (asm_language_data): Delete la_print_type initializer.
5072 (asm_language::print_type): New member function.
5073 (minimal_language_data): Delete la_print_type initializer.
5074 (minimal_language::print_type): New member function.
5075 * d-lang.c (d_language_data): Delete la_print_type initializer.
5076 (d_language::print_type): New member function.
5077 * f-lang.c (f_language_data): Delete la_print_type initializer.
5078 (f_language::print_type): New member function.
5079 * go-lang.c (go_language_data): Delete la_print_type initializer.
5080 (go_language::print_type): New member function.
5081 * language.c (unk_lang_print_type): Delete.
5082 (unknown_language_data): Delete la_print_type initializer.
5083 (unknown_language::print_type): New member function.
5084 (auto_language_data): Delete la_print_type initializer.
5085 (auto_language::print_type): New member function.
5086 * language.h (language_data): Delete la_print_type field.
5087 (language_defn::print_type): New function.
5088 (LA_PRINT_TYPE): Update.
5089 * m2-lang.c (m2_language_data): Delete la_print_type initializer.
5090 (m2_language::print_type): New member function.
5091 * objc-lang.c (objc_language_data): Delete la_print_type
5092 initializer.
5093 (objc_language::print_type): New member function.
5094 * opencl-lang.c (opencl_print_type): Delete, implementation moved
5095 to opencl_language::print_type.
5096 (opencl_language_data): Delete la_print_type initializer.
5097 (opencl_language::print_type): New member function, implementation
5098 from opencl_print_type.
5099 * p-lang.c (pascal_language_data): Delete la_print_type
5100 initializer.
5101 (pascal_language::print_type): New member function.
5102 * rust-lang.c (rust_print_type): Delete, implementation moved to
5103 rust_language::print_type.
5104 (rust_language_data): Delete la_print_type initializer.
5105 (rust_language::print_type): New member function, implementation
5106 from rust_print_type.
5107
6f827019
AB
51082020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
5109
5110 * ada-lang.c (ada_sniff_from_mangled_name): Delete function,
5111 implementation moves to...
5112 (ada_language::sniff_from_mangled_name): ...here. Update return
5113 type.
5114 (ada_language_data): Delete la_sniff_from_mangled_name
5115 initializer.
5116 * c-lang.c (c_language_data): Likewise.
5117 (cplus_language_data): Likewise.
5118 (cplus_language::sniff_from_mangled_name): New member function,
5119 implementation taken from gdb_sniff_from_mangled_name.
5120 (asm_language_data): Delete la_sniff_from_mangled_name
5121 initializer.
5122 (minimal_language_data): Likewise.
5123 * cp-support.c (gdb_sniff_from_mangled_name): Delete,
5124 implementation moves to cplus_language::sniff_from_mangled_name.
5125 * cp-support.h (gdb_sniff_from_mangled_name): Delete declaration.
5126 * d-lang.c (d_sniff_from_mangled_name): Delete, implementation
5127 moves to...
5128 (d_language::sniff_from_mangled_name): ...here.
5129 (d_language_data): Delete la_sniff_from_mangled_name initializer.
5130 * f-lang.c (f_language_data): Likewise.
5131 * go-lang.c (go_sniff_from_mangled_name): Delete, implementation
5132 moves to...
5133 (go_language::sniff_from_mangled_name): ...here.
5134 (go_language_data): Delete la_sniff_from_mangled_name initializer.
5135 * language.c (language_sniff_from_mangled_name): Delete.
5136 (unknown_language_data): Delete la_sniff_from_mangled_name
5137 initializer.
5138 (auto_language_data): Likewise.
5139 * language.h (language_data): Delete la_sniff_from_mangled_name
5140 field.
5141 (language_defn::sniff_from_mangled_name): New function.
5142 (language_sniff_from_mangled_name): Delete declaration.
5143 * m2-lang.c (m2_language_data): Delete la_sniff_from_mangled_name
5144 field.
5145 * objc-lang.c (objc_sniff_from_mangled_name): Delete,
5146 implementation moves to...
5147 (objc_language::sniff_from_mangled_name): ...here.
5148 (objc_language_data): Delete la_sniff_from_mangled_name initializer.
5149 * opencl-lang.c (opencl_language_data): Likewise.
5150 * p-lang.c (pascal_language_data): Likewise.
5151 * rust-lang.c (rust_sniff_from_mangled_name): Delete,
5152 implementation moves to...
5153 (rust_language::sniff_from_mangled_name): ...here.
5154 (rust_language_data): Delete la_sniff_from_mangled_name
5155 initializer.
5156 * symtab.c (symbol_find_demangled_name): Call
5157 sniff_from_mangled_name member function.
5158
fb8006fd
AB
51592020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
5160
5161 * ada-lang.c (ada_language_data): Delete la_search_name_hash
5162 initializer.
5163 * c-lang.c (c_language_data): Likewise.
5164 (cplus_language_data): Likewise.
5165 (cplus_language::search_name_hash): New member function.
5166 (asm_language_data): Delete la_search_name_hash initializer.
5167 (minimal_language_data): Likewise.
5168 * d-lang.c (d_language_data): Likewise.
5169 * dictionary.c (default_search_name_hash): Rename to...
5170 (language_defn::search_name_hash): ...this.
5171 * f-lang.c (f_language_data): Likewise.
5172 (f_language::search_name_hash): New member function.
5173 * go-lang.c (go_language_data): Delete la_search_name_hash
5174 initializer.
5175 * language.c (unknown_language_data): Likewise.
5176 (auto_language_data): Likewise.
5177 * language.h (struct language_data): Delete la_search_name_hash
5178 field.
5179 (language_defn::search_name_hash): Declare new member function.
5180 (default_search_name_hash): Delete declaration.
5181 * m2-lang.c (m2_language_data): Delete la_search_name_hash
5182 initializer.
5183 * objc-lang.c (objc_language_data): Likewise.
5184 * opencl-lang.c (opencl_language_data): Likewise.
5185 * p-lang.c (pascal_language_data): Likewise.
5186 * rust-lang.c (rust_language_data): Likewise.
5187 * symtab.c (search_name_hash): Update call.
5188
8e25bafe
AB
51892020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
5190
5191 * ada-lang.c (ada_language_data): Delete la_get_compile_instance
5192 initializer.
5193 * c-lang.c (class compile_instance): Declare.
5194 (c_language_data): Delete la_get_compile_instance initializer.
5195 (c_language::get_compile_instance): New member function.
5196 (cplus_language_data): Delete la_get_compile_instance initializer.
5197 (cplus_language::get_compile_instance): New member function.
5198 (asm_language_data): Delete la_get_compile_instance initializer.
5199 (minimal_language_data): Likewise.
5200 * c-lang.h (c_get_compile_context): Update comment.
5201 (cplus_get_compile_context): Update comment.
5202 * compile/compile.c (compile_to_object): Update calls, don't rely
5203 on function pointer being NULL.
5204 * d-lang.c (d_language_data): Delete la_get_compile_instance
5205 initializer.
5206 * f-lang.c (f_language_data): Likewise.
5207 * go-lang.c (go_language_data): Likewise.
5208 * language.c (unknown_language_data): Likewise.
5209 (auto_language_data): Likewise.
5210 * language.h (language_data): Delete la_get_compile_instance field.
5211 (language_defn::get_compile_instance): New member function.
5212 * m2-lang.c (m2_language_data): Delete la_get_compile_instance
5213 initializer.
5214 * objc-lang.c (objc_language_data): Likewise.
5215 * opencl-lang.c (opencl_language_data): Likewise.
5216 * p-lang.c (pascal_language_data): Likewise.
5217 * rust-lang.c (rust_language_data): Likewise.
5218
4009ee92
AB
52192020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
5220
5221 * ada-lang.c (ada_add_all_symbols): Update comment.
5222 (ada_iterate_over_symbols): Delete, move implementation to...
5223 (ada_language::iterate_over_symbols): ...here, a new member
5224 function, rewrite to use range based for loop.
5225 (ada_language_data): Delete la_iterate_over_symbols initializer.
5226 * c-lang.c (c_language_data): Likewise.
5227 (cplus_language_data): Likewise.
5228 (asm_language_data): Likewise.
5229 (minimal_language_data): Likewise.
5230 * d-lang.c (d_language_data): Likewise.
5231 * f-lang.c (f_language_data): Likewise.
5232 * go-lang.c (go_language_data): Likewise.
5233 * language.c (unknown_language_data): Likewise.
5234 (auto_language_data): Likewise.
5235 * language.h (language_data): Delete la_iterate_over_symbols field.
5236 (language_defn::iterate_over_symbols): New member function.
5237 (LA_ITERATE_OVER_SYMBOLS): Update.
5238 * linespec.c (iterate_over_all_matching_symtabs): Update.
5239 * m2-lang.c (m2_language_data): Delete la_iterate_over_symbols
5240 initializer.
5241 * objc-lang.c (objc_language_data): Likewise.
5242 * opencl-lang.c (opencl_language_data): Likewise.
5243 * p-lang.c (pascal_language_data): Likewise.
5244 * rust-lang.c (rust_language_data): Likewise.
5245
54f4ca46
AB
52462020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
5247
5248 * ada-lang.c (ada_language_data): Delete
5249 la_lookup_transparent_type initializer.
5250 * c-lang.c (c_language_data): Likewise.
5251 (cplus_language_data): Likewise.
5252 (cplus_language::lookup_transparent_type): New member function.
5253 (asm_language_data): Delete la_lookup_transparent_type
5254 initializer.
5255 (minimal_language_data): Likewise.
5256 * d-lang.c (d_language_data): Likewise.
5257 * f-lang.c (f_language_data): Likewise.
5258 * go-lang.c (go_language_data): Likewise.
5259 * language.c (unknown_language_data): Likewise.
5260 (auto_language_data): Likewise.
5261 * language.h (struct language_data): Delete
5262 la_lookup_transparent_type field.
5263 (language_defn::lookup_transparent_type): New member function.
5264 * m2-lang.c (m2_language_data): Delete la_lookup_transparent_type
5265 initializer.
5266 * objc-lang.c (objc_language_data): Likewise.
5267 * opencl-lang.c (opencl_language_data): Likewise.
5268 * p-lang.c (pascal_language_data): Likewise.
5269 * rust-lang.c (rust_language_data): Likewise.
5270 * symtab.c (symbol_matches_domain): Update call.
5271
1fb314aa
AB
52722020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
5273
5274 * ada-lang.c (ada_language_arch_info): Delete function, move
5275 implementation to...
5276 (ada_language::language_arch_info): ...here, a new member
5277 function.
5278 (ada_language_data): Delete la_language_arch_info.
5279 * c-lang.c (c_language_data): Likewise.
5280 (c_language::language_arch_info): New member function.
5281 (cplus_language_arch_info): Delete function, move
5282 implementation to...
5283 (cplus_language::language_arch_info): ...here, a new member
5284 function.
5285 (cplus_language_data): Delete la_language_arch_info.
5286 (asm_language_data): Likewise.
5287 (asm_language::language_arch_info): New member function.
5288 (minimal_language_data): Delete la_language_arch_info.
5289 (minimal_language::language_arch_info): New member function.
5290 * d-lang.c (d_language_arch_info): Delete function, move
5291 implementation to...
5292 (d_language::language_arch_info): ...here, a new member
5293 function.
5294 (d_language_data): Delete la_language_arch_info.
5295 * f-lang.c (f_language_arch_info): Delete function, move
5296 implementation to...
5297 (f_language::language_arch_info): ...here, a new member
5298 function.
5299 (f_language_data): Delete la_language_arch_info.
5300 * go-lang.c (go_language_arch_info): Delete function, move
5301 implementation to...
5302 (go_language::language_arch_info): ...here, a new member
5303 function.
5304 (go_language_data): Delete la_language_arch_info.
5305 * language.c (unknown_language_data): Likewise.
5306 (unknown_language::language_arch_info): New member function.
5307 (auto_language_data): Delete la_language_arch_info.
5308 (auto_language::language_arch_info): New member function.
5309 (language_gdbarch_post_init): Update call to
5310 la_language_arch_info.
5311 * language.h (language_data): Delete la_language_arch_info
5312 function pointer.
5313 (language_defn::language_arch_info): New function.
5314 * m2-lang.c (m2_language_arch_info): Delete function, move
5315 implementation to...
5316 (m2_language::language_arch_info): ...here, a new member
5317 function.
5318 (m2_language_data): Delete la_language_arch_info.
5319 * objc-lang.c (objc_language_arch_info): Delete function, move
5320 implementation to...
5321 (objc_language::language_arch_info): ...here, a new member
5322 function.
5323 (objc_language_data): Delete la_language_arch_info.
5324 * opencl-lang.c (opencl_language_arch_info): Delete function, move
5325 implementation to...
5326 (opencl_language::language_arch_info): ...here, a new member
5327 function.
5328 (opencl_language_data): Delete la_language_arch_info.
5329 * p-lang.c (pascal_language_arch_info): Delete function, move
5330 implementation to...
5331 (pascal_language::language_arch_info): ...here, a new member
5332 function.
5333 (pascal_language_data): Delete la_language_arch_info.
5334 * rust-lang.c (rust_language_arch_info): Delete function, move
5335 implementation to...
5336 (rust_language::language_arch_info): ...here, a new member
5337 function.
5338 (rust_language_data): Delete la_language_arch_info.
5339
48448202
AB
53402020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
5341
5342 * ada-lang.c (ada_language_data): Delete la_pass_by_reference
5343 initializer.
5344 * c-lang.c (c_language_data): Likewise.
5345 (cplus_language_data): Likewise.
5346 (cplus_language::pass_by_reference_info): New method.
5347 (asm_language_data): Delete la_pass_by_reference initializer.
5348 (minimal_language_data): Likewise.
5349 * cp-abi.c (cp_pass_by_reference): Remove use of
5350 default_pass_by_reference.
5351 * d-lang.c (d_language_data): Likewise.
5352 * f-lang.c (f_language_data): Likewise.
5353 * gnu-v3-abi.c (gnuv3_pass_by_reference): Remove use of
5354 default_pass_by_reference.
5355 * go-lang.c (go_language_data): Likewise.
5356 * language.c (language_pass_by_reference): Update.
5357 (default_pass_by_reference): Delete.
5358 (unknown_language_data): Delete la_pass_by_reference
5359 initializer.
5360 (auto_language_data): Likewise.
5361 * language.h (struct language_data): Delete la_pass_by_reference
5362 field.
5363 (language_defn::pass_by_reference_info): New member function.
5364 (default_pass_by_reference): Delete declaration.
5365 * m2-lang.c (m2_language_data): Delete la_pass_by_reference
5366 initializer.
5367 * objc-lang.c (objc_language_data): Likewise.
5368 * opencl-lang.c (opencl_language_data): Likewise.
5369 * p-lang.c (pascal_language_data): Likewise.
5370 * rust-lang.c (rust_language_data): Likewise.
5371
15e5fd35
AB
53722020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
5373
5374 * ada-lang.c (ada_read_var_value): Delete function, move
5375 implementation to...
5376 (ada_language::read_var_value): ...here.
5377 (ada_language_data): Delete la_read_var_value initializer.
5378 * c-lang.c (c_language_data): Likewise.
5379 (cplus_language_data): Likewise.
5380 (minimal_language_data): Likewise.
5381 * d-lang.c (d_language_data): Likewise.
5382 * f-lang.c (f_language_data): Likewise.
5383 * findvar.c (default_read_var_value): Rename to...
5384 (language_defn::read_var_value): ...this.
5385 * findvar.c (read_var_value): Update header comment, and change to
5386 call member function instead of function pointer.
5387 * go-lang.c (go_language_data): Likewise.
5388 * language.c (unknown_language_data): Delete la_read_var_value
5389 initializer.
5390 (auto_language_data): Likewise.
5391 * language.h (struct language_data): Delete la_read_var_value
5392 field.
5393 (language_defn::read_var_value): New member function.
5394 (default_read_var_value): Delete declaration.
5395 * m2-lang.c (m2_language_data): Delete la_read_var_value
5396 initializer.
5397 * objc-lang.c (objc_language_data): Likewise.
5398 * opencl-lang.c (opencl_language_data): Likewise.
5399 * p-lang.c (pascal_language_data): Likewise.
5400 * rust-lang.c (rust_language_data): Likewise.
5401 * value.h (default_read_var_value): Delete declaration.
5402
5bd40f2a
AB
54032020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
5404
5405 * ada-lang.c (ada_print_array_index): Delete function, move
5406 implementation to...
5407 (ada_language::print_array_index): ...here.
5408 (ada_language_data): Delete la_print_array_index initializer.
5409 * c-lang.c (c_language_data): Likewise.
5410 (cplus_language_data): Likewise.
5411 (minimal_language_data): Likewise.
5412 * d-lang.c (d_language_data): Likewise.
5413 * f-lang.c (f_language_data): Likewise.
5414 * go-lang.c (go_language_data): Likewise.
5415 * language.c (default_print_array_index): Delete function, move
5416 implementation to...
5417 (language_defn::print_array_index): ...here.
5418 (unknown_language_data): Delete la_print_array_index initializer.
5419 (auto_language_data): Likewise.
5420 * language.h (struct language_data): Delete la_print_array_index
5421 field.
5422 (language_defn::print_array_index): New member function.
5423 (LA_PRINT_ARRAY_INDEX): Update.
5424 (default_print_array_index): Delete declaration.
5425 * m2-lang.c (m2_language_data): Delete la_print_array_index
5426 initializer.
5427 * objc-lang.c (objc_language_data): Likewise.
5428 * opencl-lang.c (opencl_language_data): Likewise.
5429 * p-lang.c (pascal_language_data): Likewise.
5430 * rust-lang.c (rust_language_data): Likewise.
5431
0874fd07
AB
54322020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
5433
5434 * gdb/ada-lang.c (ada_language_defn): Convert to...
5435 (ada_language_data): ...this.
5436 (class ada_language): New class.
5437 (ada_language_defn): New static global.
5438 * gdb/c-lang.c (c_language_defn): Convert to...
5439 (c_language_data): ...this.
5440 (class c_language): New class.
5441 (c_language_defn): New static global.
5442 (cplus_language_defn): Convert to...
5443 (cplus_language_data): ...this.
5444 (class cplus_language): New class.
5445 (cplus_language_defn): New static global.
5446 (asm_language_defn): Convert to...
5447 (asm_language_data): ...this.
5448 (class asm_language): New class.
5449 (asm_language_defn): New static global.
5450 (minimal_language_defn): Convert to...
5451 (minimal_language_data): ...this.
5452 (class minimal_language): New class.
5453 (minimal_language_defn): New static global.
5454 * gdb/d-lang.c (d_language_defn): Convert to...
5455 (d_language_data): ...this.
5456 (class d_language): New class.
5457 (d_language_defn): New static global.
5458 * gdb/f-lang.c (f_language_defn): Convert to...
5459 (f_language_data): ...this.
5460 (class f_language): New class.
5461 (f_language_defn): New static global.
5462 * gdb/go-lang.c (go_language_defn): Convert to...
5463 (go_language_data): ...this.
5464 (class go_language): New class.
5465 (go_language_defn): New static global.
5466 * gdb/language.c (unknown_language_defn): Remove declaration.
5467 (current_language): Initialize to nullptr, real initialization is
5468 moved to _initialize_language.
5469 (languages): Delete global.
5470 (language_defn::languages): Define.
5471 (set_language_command): Use language_defn::languages.
5472 (set_language): Likewise.
5473 (range_error): Likewise.
5474 (language_enum): Likewise.
5475 (language_def): Likewise.
5476 (add_set_language_command): Use language_def::languages for the
5477 language list, and language_def to lookup language pointers.
5478 (skip_language_trampoline): Use language_defn::languages.
5479 (unknown_language_defn): Convert to...
5480 (unknown_language_data): ...this.
5481 (class unknown_language): New class.
5482 (unknown_language_defn): New static global.
5483 (auto_language_defn): Convert to...
5484 (auto_language_data): ...this.
5485 (class auto_language): New class.
5486 (auto_language_defn): New static global.
5487 (language_gdbarch_post_init): Use language_defn::languages.
5488 (_initialize_language): Initialize current_language.
5489 * gdb/language.h (struct language_defn): Rename to...
5490 (struct language_data): ...this.
5491 (struct language_defn): New.
5492 (auto_language_defn): Delete.
5493 (unknown_language_defn): Delete.
5494 (minimal_language_defn): Delete.
5495 (ada_language_defn): Delete.
5496 (asm_language_defn): Delete.
5497 (c_language_defn): Delete.
5498 (cplus_language_defn): Delete.
5499 (d_language_defn): Delete.
5500 (f_language_defn): Delete.
5501 (go_language_defn): Delete.
5502 (m2_language_defn): Delete.
5503 (objc_language_defn): Delete.
5504 (opencl_language_defn): Delete.
5505 (pascal_language_defn): Delete.
5506 (rust_language_defn): Delete.
5507 * gdb/m2-lang.c (m2_language_defn): Convert to...
5508 (m2_language_data): ...this.
5509 (class m2_language): New class.
5510 (m2_language_defn): New static global.
5511 * gdb/objc-lang.c (objc_language_defn): Convert to...
5512 (objc_language_data): ...this.
5513 (class objc_language): New class.
5514 (objc_language_defn): New static global.
5515 * gdb/opencl-lang.c (opencl_language_defn): Convert to...
5516 (opencl_language_data): ...this.
5517 (class opencl_language): New class.
5518 (opencl_language_defn): New static global.
5519 * gdb/p-lang.c (pascal_language_defn): Convert to...
5520 (pascal_language_data): ...this.
5521 (class pascal_language): New class.
5522 (pascal_language_defn): New static global.
5523 * gdb/rust-exp.y (rust_lex_tests): Use language_def to find
5524 language pointer, update comment format.
5525 * gdb/rust-lang.c (rust_language_defn): Convert to...
5526 (rust_language_data): ...this.
5527 (class rust_language): New class.
5528 (rust_language_defn): New static global.
5529
1313c56e
AB
55302020-06-01 Andrew Burgess <andrew.burgess@embecosm.com>
5531
5532 * dwarf2/read.c (class lnp_state_machine) <m_last_address>: New
5533 member variable.
5534 <m_stmt_at_address>: New member variable.
5535 (lnp_state_machine::record_line): Don't record some lines, update
5536 tracking of is_stmt at the same address.
5537 (lnp_state_machine::lnp_state_machine): Initialise new member
5538 variables.
5539
b7ed9f3d
ST
55402020-06-01 Samuel Thibault <samuel.thibault@ens-lyon.org>
5541
5542 * config/i386/i386gnu.mn [%_S.o %_U.o] (COMPILE.post): Add
5543 "-include gnu-nat-mig.h".
5544 * gnu-nat-mig.h: New file.
5545 * gnu-nat.c: Include "gnu-nat-mig.h".
5546 (exc_server, msg_reply_server, notify_server,
5547 process_reply_server): Remove declarations.
5548
14a8ad62
ST
55492020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
5550
5551 * gnu-nat.h (inf_validate_procs, inf_suspend, inf_set_traced,
5552 steal_exc_port, proc_get_state, inf_clear_wait, inf_cleanup,
5553 inf_startup, inf_update_suspends, inf_set_pid, inf_steal_exc_ports,
5554 inf_validate_procinfo, inf_validate_task_sc, inf_restore_exc_ports,
5555 inf_set_threads_resume_sc, inf_set_threads_resume_sc_for_signal_thread,
5556 inf_resume, inf_set_step_thread, inf_detach, inf_attach, inf_signal,
5557 inf_continue, make_proc, proc_abort, _proc_free, proc_update_sc,
5558 proc_get_exception_port, proc_set_exception_port, _proc_get_exc_port,
5559 proc_steal_exc_port, proc_restore_exc_port, proc_trace): Move functions
5560 to gnu_nat_target class.
5561 * gnu-nat.c: Likewise.
5562 (inf_update_procs, S_proc_wait_reply, set_task_pause_cmd,
5563 set_task_exc_port_cmd, set_signals_cmd, set_thread_pause_cmd,
5564 set_thread_exc_port_cmd): Call inf_validate_procs through gnu_target
5565 object.
5566 (gnu_nat_target::create_inferior, gnu_nat_target::detach): Pass `this'
5567 instead of `gnu_target'.
5568
0af5e106
ST
55692020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
5570
5571 * i386-gnu-tdep.c: Include "gdbcore.h"
5572 (gnu_sigtramp_code, i386_gnu_sc_reg_offset): New arrays.
5573 (GNU_SIGTRAMP_LEN, GNU_SIGTRAMP_TAIL,
5574 I386_GNU_SIGCONTEXT_THREAD_STATE_OFFSET): New macros
5575 (i386_gnu_sigtramp_start, i386_gnu_sigtramp_p,
5576 i386_gnu_sigcontext_addr): New functions
5577 (i386gnu_init_abi): Register i386_gnu_sigtramp_p,
5578 i386_gnu_sigcontext_addr, and i386_gnu_sc_reg_offset in the gdbarch
5579 tdep.
5580
078f2fc9
ST
55812020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
5582
5583 * gnu-nat.c (gnu_nat_target::create_inferior): Move push_target call
5584 before fork_inferior call. Avoid calling it if target_is_pushed returns
5585 true.
5586
53dff92c
ST
55872020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
5588
5589 * gnu-nat.h (gnu_target): New variable declaration.
5590 * i386-gnu-nat.c (_initialize_i386gnu_nat): Initialize
5591 gnu_target.
5592 * gnu-nat.c (gnu_target): New variable.
5593 (inf_validate_procs): Pass gnu_target to thread_change_ptid,
5594 add_thread_silent, and add_thread calls.
5595 (gnu_nat_target::create_inferior): Pass gnu_target to
5596 add_thread_silent, thread_change_ptid call.
5597 (gnu_nat_target::detach): Pass gnu_target to detach_inferior
5598 call.
5599
5a8b8627
ST
56002020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
5601
5602 * gnu-nat.c (gnu_xfer_auxv): Remove unused `res' variable.
5603 (gnu_nat_target::find_memory_regions): Remove unused
5604 `old_address' variable.
5605
366f550a
ST
56062020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
5607
5608 * gnu-nat.c: Include "gdbarch.h".
5609
f14871bf
ST
56102020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
5611
5612 * reply_mig_hack.awk (Error return): Cast function through
5613 void *, to bypass compiler function call check.
5614
c6887cfb
ST
56152020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
5616
5617 * config/i386/i386gnu.mn (%_reply_S.c): Add dependency on
5618 $(srcdir)/reply_mig_hack.awk.
5619
6930bffe
ST
56202020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
5621
5622 * gnu-nat.h (gnu_debug_flag): Set type to bool.
5623
112c22ed
JG
56242020-05-30 Jonny Grant <jg@jguk.org>
5625
5626 * configure.ac (ACX_BUGURL): change bug URL to https.
5627
f68f85b5
PA
56282020-05-30 Pedro Alves <palves@redhat.com>
5629
5630 * cp-support.c (replace_typedefs_template): New.
5631 (replace_typedefs_qualified_name): Handle
5632 DEMANGLE_COMPONENT_TEMPLATE.
5633
976ca316
SM
56342020-05-29 Simon Marchi <simon.marchi@efficios.com>
5635
5636 * dwarf2/comp-unit.c, dwarf2/comp-unit.h, dwarf2/index-cache.c,
5637 dwarf2/index-cache.h, dwarf2/index-write.c,
5638 dwarf2/index-write.h, dwarf2/line-header.c,
5639 dwarf2/line-header.h, dwarf2/macro.c, dwarf2/macro.h,
5640 dwarf2/read.c, dwarf2/read.h: Rename struct dwarf2_per_objfile
5641 variables and fields from `dwarf2_per_objfile` to just
5642 `per_objfile` throughout.
5643
989ade05
SM
56442020-05-28 Simon Marchi <simon.marchi@polymtl.ca>
5645
5646 * dwarf2/loc.c (class dwarf_evaluate_loc_desc)
5647 <push_dwarf_reg_entry_value>: Add comment.
5648
c47bae85
KB
56492020-05-28 Kevin Buettner <kevinb@redhat.com>
5650 Keith Seitz <keiths@redhat.com>
5651
5652 * python/python.c (do_start_initialization): Call PyEval_SaveThread
5653 instead of PyEval_ReleaseLock.
5654 (class gdbpy_gil): Move to earlier in file.
5655 (finalize_python): Set gdb_python_initialized.
5656 (gdbpy_check_quit_flag): Acquire GIL via gdbpy_gil. Return early
5657 when not initialized.
5658
44486dcf
SM
56592020-05-28 Simon Marchi <simon.marchi@efficios.com>
5660
5661 * dwarf2/loc.c (class dwarf_evaluate_loc_desc)
5662 <push_dwarf_reg_entry_value>: Remove assert. Override
5663 per_objfile with caller_per_objfile.
5664
f030440d
TV
56652020-05-28 Tom de Vries <tdevries@suse.de>
5666
5667 * dwarf2/read.c (dw2_symtab_iter_next, dw2_expand_marked_cus): Limit
5668 PR gold/15646 workaround to symbol kind "type".
5669
f0fbb768
TT
56702020-05-27 Tom Tromey <tromey@adacore.com>
5671
5672 * dwarf2/read.c (load_partial_dies): Use add_partial_symbol.
5673
af0b2a3e
TT
56742020-05-27 Tom Tromey <tromey@adacore.com>
5675
5676 * dwarf2/abbrev.h (struct abbrev_table) <lookup_abbrev>: Inline.
5677 Use htab_find_with_hash.
5678 <add_abbrev>: Remove "abbrev_number" parameter.
5679 * dwarf2/abbrev.c (abbrev_table::add_abbrev): Remove
5680 "abbrev_number" parameter. Use htab_find_slot_with_hash.
5681 (hash_abbrev): Add comment.
5682 (abbrev_table::lookup_abbrev): Move to header file.
5683 (abbrev_table::read): Update.
5684
7d00ffec
TT
56852020-05-27 Tom Tromey <tromey@adacore.com>
5686
5687 * dwarf2/read.c (struct partial_die_info) <name>: Declare new
5688 method.
5689 <canonical_name>: New member.
5690 <raw_name>: Rename from "name".
5691 (partial_die_info): Initialize canonical_name.
5692 (scan_partial_symbols): Check raw_name.
5693 (partial_die_parent_scope, partial_die_full_name)
5694 (add_partial_symbol, add_partial_subprogram)
5695 (add_partial_enumeration, load_partial_dies): Use "name" method.
5696 (partial_die_info::name): New method.
5697 (partial_die_info::read, guess_partial_die_structure_name)
5698 (partial_die_info::fixup): Update.
5699
697bba18
TT
57002020-05-27 Tom Tromey <tromey@adacore.com>
5701
5702 * dwarf2/attribute.h (struct attribute) <form_is_ref>: Inline.
5703 <get_ref_die_offset>: Inline.
5704 <get_ref_die_offset_complaint>: New method.
5705 * dwarf2/attribute.c (attribute::form_is_ref): Move to header.
5706 (attribute::get_ref_die_offset_complaint): Rename from
5707 get_ref_die_offset. Just issue complaint.
5708
c17ace43
HD
57092020-05-27 Hannes Domani <ssbssa@yahoo.de>
5710
5711 * cli/cli-cmds.c (shell_escape): Move exit_status_set_internal_vars.
5712
96445f0b
HD
57132020-05-27 Hannes Domani <ssbssa@yahoo.de>
5714
5715 * exec.c (exec_file_attach): Use errno value of first openp failure.
5716
ac637ec3
HD
57172020-05-27 Hannes Domani <ssbssa@yahoo.de>
5718
5719 * nat/windows-nat.c (windows_thread_info::~windows_thread_info):
5720 Don't close thread handle.
5721
17ee85fc
TT
57222020-05-27 Tom Tromey <tom@tromey.com>
5723 Simon Marchi <simon.marchi@efficios.com>
5724
5725 * objfiles.h (struct objfile) <partial_symtabs>: Now a
5726 shared_ptr.
5727 * dwarf2/read.h (struct dwarf2_per_objfile) <partial_symtabs>: New
5728 member.
5729 * dwarf2/read.c (dwarf2_per_bfd_bfd_data_key,
5730 dwarf2_per_bfd_objfile_data_key>: New globals.
5731 (dwarf2_has_info): Use shared dwarf2_per_bfd if possible.
5732 (dwarf2_get_section_info): Use get_dwarf2_per_objfile.
5733 (dwarf2_initialize_objfile): Consider cases where per_bfd can be
5734 shared.
5735 (dwarf2_build_psymtabs): Set objfile::partial_symtabs and
5736 short-circuit when sharing.
5737 (dwarf2_build_psymtabs): Set dwarf2_per_objfile::partial_symtabs.
5738 (dwarf2_psymtab::expand_psymtab): Use free_cached_comp_units.
5739
39b16f87
SM
57402020-05-27 Simon Marchi <simon.marchi@efficios.com>
5741
5742 * dwarf2/read.h (struct dwarf2_per_bfd) <line_header_hash>: Move
5743 to...
5744 (struct dwarf2_per_objfile) <line_header_hash>: ... here.
5745 * dwarf2/read.c (handle_DW_AT_stmt_list): Update.
5746
fcf23d5b
SM
57472020-05-27 Simon Marchi <simon.marchi@efficios.com>
5748
5749 * dwarf2/read.c (struct mapped_index_base) <symbol_name_at,
5750 build_name_components, find_name_components_bounds>:
5751 Add per_objfile parameter.
5752 (struct mapped_index) <symbol_name_at>: Likewise.
5753 (struct mapped_debug_names): Remove constructor.
5754 <dwarf2_per_objfile>: Remove field.
5755 <namei_to_name, symbol_name_at>: Add per_objfile parameter.
5756 (mapped_index_base::find_name_components_bounds,
5757 mapped_index_base::build_name_components,
5758 dw2_expand_symtabs_matching_symbol): Likewise.
5759 (class mock_mapped_index) <symbol_name_at>: Likewise.
5760 (check_match): Likewise.
5761 (check_find_bounds_finds): Likewise.
5762 (test_mapped_index_find_name_component_bounds): Update.
5763 (CHECK_MATCH): Update.
5764 (dw2_expand_symtabs_matching): Update.
5765 (class dw2_debug_names_iterator) <dw2_debug_names_iterator>: Add
5766 per_objfile parameter.
5767 <find_vec_in_debug_names>: Likewise.
5768 <m_per_objfile>: New field.
5769 (mapped_debug_names::namei_to_name): Add dwarf2_per_objfile
5770 parameter.
5771 (dw2_debug_names_iterator::find_vec_in_debug_names): Likewise.
5772 (dw2_debug_names_iterator::next): Update.
5773 (dw2_debug_names_lookup_symbol): Update.
5774 (dw2_debug_names_expand_symtabs_for_function): Update.
5775 (dw2_debug_names_map_matching_symbols): Update.
5776 (dw2_debug_names_expand_symtabs_matching): Update.
5777 (dwarf2_read_debug_names): Update.
5778
7188ed02
SM
57792020-05-27 Simon Marchi <simon.marchi@efficios.com>
5780
5781 * dwarf2/read.h (struct dwarf2_cu): Forward-declare.
5782 (struct dwarf2_per_bfd) <free_cached_comp_units>: Remove,
5783 move to dwarf2_per_objfile.
5784 <read_in_chain>: Remove.
5785 (struct dwarf2_per_objfile) <get_cu, set_cu, remove_cu,
5786 remove_all_cus, age_comp_units>: New methods.
5787 <m_dwarf2_cus>: New member.
5788 (struct dwarf2_per_cu_data) <cu>: Remove.
5789 * dwarf2/read.c (struct dwarf2_cu) <read_in_chain>: Remove.
5790 (age_cached_comp_units, free_one_cached_comp_unit): Remove,
5791 moved to methods of dwarf2_per_objfile.
5792 (dwarf2_clear_marks): Remove.
5793 (dwarf2_queue_item::~dwarf2_queue_item): Update.
5794 (dwarf2_per_bfd::~dwarf2_per_bfd): Don't free dwarf2_cus.
5795 (dwarf2_per_bfd::free_cached_comp_units): Remove.
5796 (dwarf2_per_objfile::remove_all_cus): New.
5797 (class free_cached_comp_units) <~free_cached_comp_units>:
5798 Update.
5799 (load_cu): Update.
5800 (dw2_do_instantiate_symtab): Adjust.
5801 (fill_in_sig_entry_from_dwo_entry): Adjust.
5802 (cutu_reader::init_tu_and_read_dwo_dies): Update.
5803 (cutu_reader::cutu_reader): Likewise.
5804 (cutu_reader::keep): Use dwarf2_per_objfile::set_cu.
5805 (cutu_reader::cutu_reader): Use dwarf2_per_objfile::get_cu.
5806 (process_psymtab_comp_unit): Use dwarf2_per_objfile::remove_cu
5807 and dwarf2_per_objfile::age_comp_units.
5808 (load_partial_comp_unit): Update.
5809 (maybe_queue_comp_unit): Use dwarf2_per_objfile::get_cu.
5810 (process_queue): Likewise.
5811 (find_partial_die): Use dwarf2_per_objfile::get_cu instead of cu
5812 backlink.
5813 (dwarf2_read_addr_index): Likewise.
5814 (follow_die_offset): Likewise.
5815 (dwarf2_fetch_die_loc_sect_off): Likewise.
5816 (dwarf2_fetch_constant_bytes): Likewise.
5817 (dwarf2_fetch_die_type_sect_off): Likewise.
5818 (follow_die_sig_1): Likewise.
5819 (load_full_type_unit): Likewise.
5820 (read_signatured_type): Likewise.
5821 (dwarf2_cu::dwarf2_cu): Don't set cu field.
5822 (dwarf2_cu::~dwarf2_cu): Remove.
5823 (dwarf2_per_objfile::get_cu): New.
5824 (dwarf2_per_objfile::set_cu): New.
5825 (age_cached_comp_units): Rename to...
5826 (dwarf2_per_objfile::age_comp_units): ... this. Adjust
5827 to std::unordered_map.
5828 (free_one_cached_comp_unit): Rename to...
5829 (dwarf2_per_objfile::remove_cu): ... this. Adjust
5830 to std::unordered_map.
5831 (dwarf2_per_objfile::~dwarf2_per_objfile): New.
5832 (dwarf2_mark_helper): Use dwarf2_per_objfile::get_cu, expect
5833 a dwarf2_per_objfile in data.
5834 (dwarf2_mark): Pass dwarf2_per_objfile in data to htab_traverse.
5835 (dwarf2_clear_marks): Remove.
5836
2e671100
SM
58372020-05-27 Simon Marchi <simon.marchi@efficios.com>
5838
5839 * dwarf2/read.c (class cutu_reader) <cutu_reader>: Replace
5840 `int use_existing_cu` parameter with `dwarf2_cu *existing_cu`.
5841 (init_tu_and_read_dwo_dies): Likewise.
5842 (cutu_reader::init_tu_and_read_dwo_dies): Likewise.
5843 (cutu_reader::cutu_reader): Likewise.
5844 (load_partial_comp_unit): Likewise.
5845 (process_psymtab_comp_unit): Update.
5846 (build_type_psymtabs_1): Update.
5847 (process_skeletonless_type_unit): Update.
5848 (load_full_comp_unit): Update.
5849 (find_partial_die): Update.
5850 (dwarf2_read_addr_index): Update.
5851 (read_signatured_type): Update.
5852
2e6a9f79
SM
58532020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
5854
5855 * dwarf2/read.h (struct dwarf2_per_cu_data) <m_header,
5856 m_header_read_in>: New fields.
5857 <get_header>: New method.
5858 * dwarf2/read.c (per_cu_header_read_in): Remove.
5859 (dwarf2_per_cu_data::get_header): New.
5860 (dwarf2_per_cu_data::addr_size): Update.
5861 (dwarf2_per_cu_data::offset_size): Update.
5862 (dwarf2_per_cu_data::ref_addr_size): Update.
5863
1b555f17
SM
58642020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
5865
5866 * dwarf2/read.c (load_cu): Return dwarf2_cu.
5867 (dw2_do_instantiate_symtab): Update.
5868 (queue_and_load_all_dwo_tus): Change parameter from
5869 dwarf2_per_cu_data to dwarf2_cu.
5870 (dwarf2_fetch_die_loc_sect_off): Update.
5871 (dwarf2_fetch_constant_bytes): Update.
5872 (dwarf2_fetch_die_type_sect_off): Update.
5873
8fc0b21d
SM
58742020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
5875
5876 * dwarf2/read.c (process_full_comp_unit,
5877 process_full_type_unit): Remove per_cu, per_objfile paramters.
5878 Add dwarf2_cu parameter.
5879 (process_queue): Update.
5880
168c9250
SM
58812020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
5882
5883 * dwarf2/read.c (create_cu_from_index_list): Replace
5884 dwarf2_per_objfile parameter with dwarf2_per_bfd.
5885 (create_cus_from_index_list): Likewise.
5886 (create_cus_from_index): Likewise.
5887 (create_signatured_type_table_from_index): Likewise.
5888 (create_cus_from_debug_names_list): Likewise.
5889 (create_cus_from_debug_names): Likewise.
5890 (dwarf2_read_gdb_index): Update.
5891 (dwarf2_read_debug_names): Update.
5892
e286671b
TT
58932020-05-27 Tom Tromey <tom@tromey.com>
5894 Simon Marchi <simon.marchi@efficios.com>
5895
5896 * dwarf2/read.h (struct dwarf2_per_objfile)
5897 <get_type_for_signatured_type, set_type_for_signatured_type>:
5898 New methods.
5899 <m_type_map>: New member.
5900 (struct signatured_type) <type>: Remove.
5901 * dwarf2/read.c
5902 (dwarf2_per_objfile::get_type_for_signatured_type,
5903 dwarf2_per_objfile::set_type_for_signatured_type): New.
5904 (get_signatured_type): Use new methods.
5905
8adb8487
TT
59062020-05-27 Tom Tromey <tom@tromey.com>
5907 Simon Marchi <simon.marchi@efficios.com>
5908
5909 * dwarf2/read.h (struct type_unit_group_unshareable): New.
5910 (struct dwarf2_per_objfile) <type_units>: New member.
5911 <get_type_unit_group_unshareable>: New method.
5912 * dwarf2/read.c (struct type_unit_group) <compunit_symtab,
5913 num_symtabs, symtabs>: Remove; move to
5914 type_unit_group_unshareable.
5915 (dwarf2_per_objfile::get_type_unit_group_unshareable): New.
5916 (process_full_type_unit, dwarf2_cu::setup_type_unit_groups)
5917 (dwarf2_cu::setup_type_unit_groups): Use type_unit_group_unshareable.
5918
127bbf4b
SM
59192020-05-27 Simon Marchi <simon.marchi@efficios.com>
5920
5921 * dwarf2/read.h (struct dwarf2_per_cu_data):
5922 <dwarf2_per_objfile>: Remove.
5923 * dwarf2/read.c (create_cu_from_index_list): Don't assign
5924 dwarf2_per_objfile.
5925 (create_signatured_type_table_from_index): Likewise.
5926 (create_signatured_type_table_from_debug_names): Likewise.
5927 (create_debug_type_hash_table): Likewise.
5928 (fill_in_sig_entry_from_dwo_entry): Likewise.
5929 (create_type_unit_group): Likewise.
5930 (read_comp_units_from_section): Likewise.
5931 (create_cus_hash_table): Likewise.
5932
f6e649dd
SM
59332020-05-27 Simon Marchi <simon.marchi@efficios.com>
5934
5935 * dwarf2/read.c (process_psymtab_comp_unit): Remove reference to
5936 dwarf2_per_cu_data::dwarf2_per_objfile.
5937 (compute_compunit_symtab_includes): Likewise.
5938 (dwarf2_cu::start_symtab): Likewise.
5939
aa66c379
SM
59402020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
5941
5942 * dwarf2/read.h (dwarf2_get_die_type): Add dwarf2_per_objfile
5943 parameter.
5944 * dwarf2/read.c (get_die_type_at_offset): Likewise.
5945 (read_namespace_alias): Update.
5946 (lookup_die_type): Update.
5947 (dwarf2_get_die_type): Add dwarf2_per_objfile parameter.
5948 * dwarf2/loc.c (class dwarf_evaluate_loc_desc) <get_base_type>:
5949 Update.
5950 (disassemble_dwarf_expression): Update.
5951
120ce1b5
SM
59522020-05-27 Simon Marchi <simon.marchi@efficios.com>
5953
5954 * dwarf2/read.h (struct dwarf2_queue_item): Add
5955 dwarf2_per_objfile parameter, assign new parameter.
5956 <per_objfile>: New field.
5957 * dwarf2/read.c (free_one_cached_comp_unit): Add
5958 dwarf2_per_objfile parameter.
5959 (queue_comp_unit): Likewise.
5960 (dw2_do_instantiate_symtab): Update.
5961 (process_psymtab_comp_unit): Update.
5962 (maybe_queue_comp_unit): Add dwarf2_per_objfile parameter.
5963 (process_imported_unit_die): Update.
5964 (queue_and_load_dwo_tu): Update.
5965 (follow_die_offset): Update.
5966 (follow_die_sig_1): Update.
5967
9f47c707
SM
59682020-05-27 Simon Marchi <simon.marchi@efficios.com>
5969
5970 * dwarf2/read.h (struct dwarf2_per_cu_data) <objfile>: Remove.
5971 * dwarf2/read.c (dwarf2_compute_name): Pass per_objfile down.
5972 (read_call_site_scope): Assign per_objfile.
5973 (dwarf2_per_cu_data::objfile): Remove.
5974 * gdbtypes.h (struct call_site) <per_objfile>: New member.
5975 * dwarf2/loc.h (dwarf2_evaluate_loc_desc): Add
5976 dwarf2_per_objfile parameter.
5977 * dwarf2/loc.c (dwarf2_evaluate_loc_desc_full): Add
5978 dwarf2_per_objfile parameter.
5979 (dwarf_expr_reg_to_entry_parameter): Add output
5980 dwarf2_per_objfile parameter.
5981 (locexpr_get_frame_base): Update.
5982 (class dwarf_evaluate_loc_desc) <get_tls_address>: Update.
5983 <push_dwarf_reg_entry_value>: Update.
5984 <call_site_to_target_addr>: Update.
5985 (dwarf_entry_parameter_to_value): Add dwarf2_per_objfile
5986 parameter.
5987 (value_of_dwarf_reg_entry): Update.
5988 (rw_pieced_value): Update.
5989 (indirect_synthetic_pointer): Update.
5990 (dwarf2_evaluate_property): Update.
5991 (dwarf2_loc_desc_get_symbol_read_needs): Add dwarf2_per_objfile
5992 parameter.
5993 (locexpr_read_variable): Update.
5994 (locexpr_get_symbol_read_needs): Update.
5995 (loclist_read_variable): Update.
5996
14095eb3
SM
59972020-05-27 Simon Marchi <simon.marchi@efficios.com>
5998
5999 * dwarf2/read.h (dwarf2_fetch_die_loc_sect_off,
6000 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
6001 dwarf2_fetch_die_type_sect_off): Add dwarf2_per_objfile
6002 parameter.
6003 * dwarf2/read.c (dwarf2_fetch_die_loc_sect_off,
6004 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
6005 dwarf2_fetch_die_type_sect_off): Add dwarf2_per_objfile
6006 parameter.
6007 * dwarf2/loc.c (indirect_synthetic_pointer, per_cu_dwarf_call,
6008 sect_variable_value): Add dwarf2_per_objfile parameter.
6009 (class dwarf_evaluate_loc_desc) <dwarf_call,
6010 dwarf_variable_value>: Update.
6011 (fetch_const_value_from_synthetic_pointer): Add
6012 dwarf2_per_objfile parameter.
6013 (fetch_const_value_from_synthetic_pointer): Update.
6014 (coerced_pieced_ref): Update.
6015 (class symbol_needs_eval_context) <dwarf_call,
6016 dwarf_variable_value>: Update.
6017 (dwarf2_compile_expr_to_ax): Update.
6018
3c3cd3d4
SM
60192020-05-27 Simon Marchi <simon.marchi@efficios.com>
6020
6021 * dwarf2/loc.c (allocate_piece_closure): Add dwarf2_per_objfile
6022 parameter.
6023 (dwarf2_evaluate_loc_desc_full): Update.
6024
82ca3f51
SM
60252020-05-27 Simon Marchi <simon.marchi@efficios.com>
6026
6027 * dwarf2/read.h (dwarf2_read_addr_index): Add dwarf2_per_objfile
6028 parameter.
6029 * dwarf2/read.c (dwarf2_read_addr_index): Likewise.
6030 * dwarf2/loc.c (decode_debug_loclists_addresses): Add
6031 dwarf2_per_objfile parameter.
6032 (decode_debug_loc_dwo_addresses): Likewise.
6033 (dwarf2_find_location_expression): Update.
6034 (class dwarf_evaluate_loc_desc) <get_addr_index>: Update.
6035 (locexpr_describe_location_piece): Add dwarf2_per_objfile
6036 parameter.
6037 (disassemble_dwarf_expression): Add dwarf2_per_objfile
6038 parameter.
6039 (locexpr_describe_location_1): Likewise.
6040 (locexpr_describe_location): Update.
6041
4b167ea1
SM
60422020-05-27 Simon Marchi <simon.marchi@efficios.com>
6043
6044 * dwarf2/read.h (struct dwarf2_per_cu_data) <text_offset>:
6045 Remove.
6046 * dwarf2/read.c (dwarf2_per_cu_data::text_offset): Remove.
6047 * dwarf2/loc.c (dwarf2_find_location_expression): Update.
6048 (dwarf2_compile_property_to_c): Update.
6049 (dwarf2_compile_expr_to_ax): Add dwarf2_per_objfile parameter,
6050 use text offset from objfile.
6051 (locexpr_tracepoint_var_ref): Update.
6052 (locexpr_generate_c_location): Update.
6053 (loclist_describe_location): Update.
6054 (loclist_tracepoint_var_ref): Update.
6055 * dwarf2/compile.h (compile_dwarf_bounds_to_c): Add
6056 dwarf2_per_objfile parameter.
6057 * dwarf2/loc2c.c (do_compile_dwarf_expr_to_c): Likewise,
6058 use text offset from objfile.
6059 (compile_dwarf_expr_to_c): Add dwarf2_per_objfile parameter.
6060
89b07335
SM
60612020-05-27 Simon Marchi <simon.marchi@efficios.com>
6062
6063 * dwarf2/expr.h (struct dwarf_expr_context)
6064 <dwarf_expr_context>: Add dwarf2_per_objfile parameter.
6065 <offset>: Remove.
6066 <per_objfile>: New member.
6067 * dwarf2/expr.c (dwarf_expr_context::dwarf_expr_context): Add
6068 dwarf2_per_objfile parameter. Don't set offset, set
6069 per_objfile.
6070 (dwarf_expr_context::execute_stack_op): Use offset from objfile.
6071 * dwarf2/frame.c (dwarf2_frame_find_fde): Return (by parameter)
6072 a dwarf2_per_objfile object instead of an offset.
6073 (class dwarf_expr_executor) <dwarf_expr_executor>: Add
6074 constructor.
6075 (execute_stack_op): Add dwarf2_per_objfile parameter, pass it
6076 to dwarf2_expr_executor constructor. Don't set offset.
6077 (dwarf2_fetch_cfa_info): Update.
6078 (struct dwarf2_frame_cache) <text_offset>: Remove.
6079 <per_objfile>: New field.
6080 (dwarf2_frame_cache): Update.
6081 (dwarf2_frame_prev_register): Update.
6082 * dwarf2/loc.c (class dwarf_evaluate_loc_desc)
6083 <dwarf_evaluate_loc_desc>: Add constructor.
6084 (dwarf2_evaluate_loc_desc_full): Update.
6085 (dwarf2_locexpr_baton_eval): Update.
6086 (class symbol_needs_eval_context) <symbol_needs_eval_context>:
6087 Add constructor.
6088 (dwarf2_loc_desc_get_symbol_read_needs): Update.
6089
293e7e51
SM
60902020-05-27 Simon Marchi <simon.marchi@efficios.com>
6091
6092 * dwarf2/read.h (struct dwarf2_per_cu_data) <addr_type,
6093 addr_sized_int_type>: Move to dwarf2_cu.
6094 <int_type>: Move to dwarf2_per_objfile.
6095 (struct dwarf2_per_objfile) <int_type>: Move here.
6096 * dwarf2/read.c (struct dwarf2_cu) <addr_type,
6097 addr_sized_int_type>: Move here.
6098 (read_func_scope): Update.
6099 (read_array_type): Update.
6100 (read_tag_string_type): Update.
6101 (attr_to_dynamic_prop): Update.
6102 (dwarf2_per_cu_data::int_type): Rename to...
6103 (dwarf2_per_objfile::int_type): ... this.
6104 (dwarf2_per_cu_data::addr_sized_int_type): Rename to...
6105 (dwarf2_cu::addr_sized_int_type): ... this.
6106 (read_subrange_type): Update.
6107 (dwarf2_per_cu_data::addr_type): Rename to...
6108 (dwarf2_cu::addr_type): ... this.
6109 (set_die_type): Update.
6110
64874a40
SM
61112020-05-27 Simon Marchi <simon.marchi@efficios.com>
6112
6113 * dwarf2/read.c (queue_and_load_all_dwo_tus): Access per_objfile
6114 data through per_cu->cu.
6115
4ab09049
SM
61162020-05-27 Simon Marchi <simon.marchi@efficios.com>
6117
6118 * dwarf2/read.c (lookup_dwo_comp_unit): Change
6119 dwarf2_per_cu_data parameter fo dwarf2_cu.
6120 (lookup_dwo_type_unit): Likewise.
6121 (read_cutu_die_from_dwo): Likewise.
6122 (lookup_dwo_unit): Likewise.
6123 (open_and_init_dwo_file): Likewise.
6124 (lookup_dwo_cutu): Likewise.
6125 (lookup_dwo_comp_unit): Likewise.
6126 (lookup_dwo_type_unit): Likewise.
6127 (cutu_reader::init_tu_and_read_dwo_dies): Update.
6128 (cutu_reader::cutu_reader): Update.
6129
47b14e86
SM
61302020-05-27 Simon Marchi <simon.marchi@efficios.com>
6131
6132 * dwarf2/read.c (process_full_comp_unit): Add dwarf2_per_objfile
6133 parameter.
6134 (process_full_type_unit): Likewise.
6135 (process_queue): Update.
6136
43182c09
SM
61372020-05-27 Simon Marchi <simon.marchi@efficios.com>
6138
6139 * dwarf2/read.c (recursively_compute_inclusions): Add
6140 dwarf2_per_objfile parameter.
6141 (compute_compunit_symtab_includes): Likewise.
6142 (process_cu_includes): Update.
6143
7aa104c4
SM
61442020-05-27 Simon Marchi <simon.marchi@efficios.com>
6145
6146 * dwarf2/read.c (create_partial_symtab): Add dwarf2_per_objfile
6147 parameter.
6148 (create_type_unit_group): Update.
6149 (process_psymtab_comp_unit_reader): Update.
6150 (build_type_psymtabs_reader): Update.
6151
e3beb21d
SM
61522020-05-27 Simon Marchi <simon.marchi@efficios.com>
6153
6154 * dwarf2/read.c (cutu_reader::keep): Access dwarf2_per_objfile
6155 object through m_this_cu->cu.
6156
d460f660
SM
61572020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
6158
6159 * dwarf2/read.c (queue_and_load_dwo_tu): Expect a dwarf2_cu as
6160 the info parameter.
6161 (queue_and_load_all_dwo_tus): Pass per_cu->cu.
6162
ab432490
SM
61632020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
6164
6165 * dwarf2/read.c (class cutu_reader) <cutu_reader>: Add
6166 per_objfile parameter.
6167 (load_full_type_unit): Add per_objfile parameter.
6168 (read_signatured_type): Likewise.
6169 (load_full_comp_unit): Likewise.
6170 (load_cu): Likewise.
6171 (dw2_do_instantiate_symtab): Likewise.
6172 (dw2_get_file_names): Likewise.
6173 (dw2_map_symtabs_matching_filename): Update.
6174 (dw_expand_symtabs_matching_file_matcher): Update.
6175 (dw2_map_symbol_filenames): Update.
6176 (process_psymtab_comp_unit): Add per_objfile parameter.
6177 (build_type_psymtabs_1): Update.
6178 (process_skeletonless_type_unit): Update.
6179 (dwarf2_build_psymtabs_hard): Update.
6180 (load_partial_comp_unit): Add per_objfile parameter.
6181 (scan_partial_symbols): Update.
6182 (load_full_comp_unit): Add per_objfile parameter.
6183 (process_imported_unit_die): Update.
6184 (create_cus_hash_table): Update.
6185 (find_partial_die): Update.
6186 (dwarf2_read_addr_index): Update.
6187 (follow_die_offset): Update.
6188 (dwarf2_fetch_die_loc_sect_off): Update.
6189 (dwarf2_fetch_constant_bytes): Update.
6190 (dwarf2_fetch_die_type_sect_off): Update.
6191 (follow_die_sig_1): Update.
6192 (load_full_type_unit): Add per_objfile parameter.
6193 (read_signatured_type): Likewise.
6194
313bad1b
SM
61952020-05-27 Simon Marchi <simon.marchi@efficios.com>
6196
6197 * dwarf2/read.c (lookup_dwo_unit): Use bfd_get_filename instead
6198 of objfile_name.
6199
c3699833
SM
62002020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
6201
6202 * dwarf2/read.h (struct dwarf2_per_bfd) <obfd>: New member.
6203 (dwarf2_get_dwz_file): Replace parameter with dwarf2_per_bfd.
6204 * dwarf2/read.c (dwarf2_per_bfd::dwarf2_per_bfd): Assign obfd
6205 field.
6206 (dwarf2_get_dwz_file): Replace parameter with dwarf2_per_bfd.
6207 (create_cus_from_index): Update.
6208 (dwarf2_read_gdb_index): Update.
6209 (create_cus_from_debug_names): Update.
6210 (dwarf2_read_debug_names): Update.
6211 (get_abbrev_section_for_cu): Update.
6212 (create_all_comp_units): Update.
6213 (read_attribute_value): Update.
6214 (get_debug_line_section): Update.
6215 * dwarf2/index-cache.c (index_cache::store): Update.
6216 * dwarf2/index-write.c (save_gdb_index_command): Update.
6217 * dwarf2/macro.c (dwarf_decode_macro_bytes): Update.
6218
1859c670
SM
62192020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
6220
6221 * dwarf2/read.h (struct dwarf2_per_cu_data) <per_bfd>: New
6222 member.
6223 * dwarf2/read.c (dwarf2_per_bfd::allocate_per_cu): Initialize
6224 dwarf2_per_cu_data::per_bfd.
6225 (dwarf2_per_bfd::allocate_signatured_type): Likewise.
6226 (create_type_unit_group): Likewise.
6227 (queue_comp_unit): Remove reference to
6228 per_cu->dwarf2_per_objfile.
6229 (maybe_queue_comp_unit): Likewise.
6230 (fill_in_sig_entry_from_dwo_entry): Assign new field.
6231 (create_cus_hash_table): Assign new field.
6232
5e22e966
SM
62332020-05-27 Simon Marchi <simon.marchi@efficios.com>
6234
6235 * dwarf2/read.c: Replace
6236 dwarf2_cu->per_cu->dwarf2_per_objfile references with
6237 dwarf2_cu->per_objfile throughout.
6238
97a1449a
SM
62392020-05-27 Simon Marchi <simon.marchi@efficios.com>
6240
6241 * dwarf2/read.c (dw2_do_instantiate_symtab): Add per_objfile
6242 parameter, don't use per_cu->dwarf2_per_objfile.
6243 (dw2_instantiate_symtab): Likewise.
6244 (dw2_find_last_source_symtab): Update.
6245 (dw2_map_expand_apply): Update.
6246 (dw2_lookup_symbol): Update.
6247 (dw2_expand_symtabs_for_function): Update.
6248 (dw2_expand_all_symtabs): Update.
6249 (dw2_expand_symtabs_with_fullname): Update.
6250 (dw2_expand_symtabs_matching_one): Add per_objfile parameter,
6251 don't use per_cu->dwarf2_per_objfile.
6252 (dw2_expand_marked_cus): Update.
6253 (dw2_find_pc_sect_compunit_symtab): Update.
6254 (dw2_debug_names_lookup_symbol): Update.
6255 (dw2_debug_names_expand_symtabs_for_function): Update.
6256 (dw2_debug_names_map_matching_symbols): Update.
6257 (dwarf2_psymtab::expand_psymtab): Update.
6258
9e021579
SM
62592020-05-27 Simon Marchi <simon.marchi@efficios.com>
6260
6261 * dwarf2/read.c (struct dwarf2_cu) <dwarf2_cu>: Add parameter.
6262 <per_objfile>: New member.
6263 (class cutu_reader) <init_tu_and_read_dwo_dies>: Add parameter.
6264 (cutu_reader::init_tu_and_read_dwo_dies): Add parameter, update
6265 call to dwarf2_cu.
6266 (cutu_reader::cutu_reader): Update.
6267 (dwarf2_cu::dwarf2_cu): Add parameter, initialize per_objfile.
6268
ae090bdb
SM
62692020-05-27 Simon Marchi <simon.marchi@efficios.com>
6270
6271 * dwarf2/read.h (struct dwarf2_per_bfd) <die_type_hash>: Move to
6272 struct dwarf2_per_objfile.
6273 (struct dwarf2_per_objfile) <die_type_hash>: Move from struct
6274 dwarf2_per_bfd.
6275 * dwarf2/read.c (set_die_type): Update.
6276 (get_die_type_at_offset): Update.
6277
af758d11
SM
62782020-05-27 Tom Tromey <tom@tromey.com>
6279 Simon Marchi <simon.marchi@efficios.com>
6280
6281 * dwarf2/read.h (struct dwarf2_per_bfd) <num_psymtabs>: New
6282 method.
6283 (struct dwarf2_per_objfile) <resize_symtabs, symtab_set_p,
6284 get_symtab, set_symtab>: New methods.
6285 <m_symtabs>: New field.
6286 (struct dwarf2_psymtab): Derive from partial_symtab.
6287 <readin_p, get_compunit_symtab>: Declare methods.
6288 * dwarf2/read.c (dwarf2_per_objfile::symtab_set_p,
6289 dwarf2_per_objfile::get_symtab, dwarf2_per_objfile::set_symtab):
6290 New methods.
6291 (struct dwarf2_per_cu_quick_data) <compunit_symtab>: Remove.
6292 (dw2_do_instantiate_symtab, dw2_instantiate_symtab)
6293 (dw2_map_expand_apply, dw2_map_symtabs_matching_filename)
6294 (dw2_symtab_iter_next, dw2_print_stats)
6295 (dw2_expand_symtabs_with_fullname)
6296 (dw2_expand_symtabs_matching_one)
6297 (dw_expand_symtabs_matching_file_matcher)
6298 (dw2_find_pc_sect_compunit_symtab, dw2_map_symbol_filenames)
6299 (dw2_debug_names_iterator::next)
6300 (dw2_debug_names_map_matching_symbols)
6301 (fill_in_sig_entry_from_dwo_entry, dwarf2_psymtab::read_symtab)
6302 (process_queue, dwarf2_psymtab::expand_psymtab): Update.
6303 (dwarf2_psymtab::readin_p, dwarf2_psymtab::get_compunit_symtab):
6304 New methods.
6305 (get_compunit_symtab, process_full_comp_unit)
6306 (process_full_type_unit): Update.
6307 (dwarf2_build_psymtabs, dwarf2_initialize_objfile, add_type_unit): Call
6308
5989a64e
SM
63092020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
6310
6311 * dwarf2/read.h (dwarf2_per_objfile): Rename to dwarf2_per_bfd,
6312 then introduce a new dwarf2_per_objfile type.
6313 <read_line_string>: Move to the new dwarf2_per_objfile type.
6314 <objfile>: Likewise.
6315 (dwarf2_per_bfd): Rename dwarf2_per_objfile to this.
6316 * dwarf2/read.c: Replace references to dwarf2_per_objfile with
6317 dwarf2_per_objfile->per_bfd.
6318 (dwarf2_per_objfile::dwarf2_per_objfile): Rename to...
6319 (dwarf2_per_bfd::dwarf2_per_bfd): ... this.
6320 (dwarf2_per_objfile::free_cached_comp_units): Rename to...
6321 (dwarf2_per_bfd::free_cached_comp_units): ... this.
6322 (dwarf2_has_info): Allocate dwarf2_per_bfd.
6323 (dwarf2_per_objfile::locate_sections): Rename to...
6324 (dwarf2_per_bfd::locate_sections): ... this.
6325 (dwarf2_per_objfile::get_cutu): Rename to...
6326 (dwarf2_per_bfd::get_cutu): ... this.
6327 (dwarf2_per_objfile::get_cu): Rename to...
6328 (dwarf2_per_bfd::get_cu): ... this.
6329 (dwarf2_per_objfile::get_tu): Rename to...
6330 (dwarf2_per_bfd::get_tu): ... this.
6331 (dwarf2_per_objfile::allocate_per_cu): Rename to...
6332 (dwarf2_per_bfd::allocate_per_cu): ... this.
6333 (dwarf2_per_objfile::allocate_signatured_type): Rename to...
6334 (dwarf2_per_bfd::allocate_signatured_type): ... this.
6335 (get_gdb_index_contents_ftype): Change parameter from
6336 dwarf2_per_objfile to dwarf2_per_bfd.
6337 * dwarf2/macro.c, dwarf2/index-write.c: Replace references to
6338 dwarf2_per_objfile with dwarf2_per_objfile->per_bfd.
6339
a50264ba
TT
63402020-05-27 Tom Tromey <tom@tromey.com>
6341 Simon Marchi <simon.marchi@efficios.com>
6342
6343 * dwarf2/loc.c (struct piece_closure) <per_objfile>: New member.
6344 (allocate_piece_closure): Set "per_objfile" member.
6345 (dwarf2_find_location_expression, dwarf2_locexpr_baton_eval)
6346 (locexpr_describe_location, loclist_describe_location): Use new
6347 member.
6348 * dwarf2/read.c (read_call_site_scope)
6349 (mark_common_block_symbol_computed, attr_to_dynamic_prop)
6350 (dwarf2_const_value_attr, dwarf2_fetch_die_loc_sect_off)
6351 (fill_in_loclist_baton, dwarf2_symbol_mark_computed,
6352 handle_data_member_location): Set per_objfile member.
6353 * dwarf2/loc.h (struct dwarf2_locexpr_baton) <per_objfile>: New
6354 member.
6355 (struct dwarf2_loclist_baton) <per_objfile>: New member.
6356
d3473f0c
TT
63572020-05-27 Tom Tromey <tom@tromey.com>
6358
6359 * dwarf2/read.h (struct dwarf2_per_objfile) <allocate_per_cu,
6360 allocate_signatured_type>: Declare new methods.
6361 <m_num_psymtabs>: New member.
6362 (struct dwarf2_per_cu_data) <index>: New member.
6363 * dwarf2/read.c (dwarf2_per_objfile::allocate_per_cu)
6364 (dwarf2_per_objfile::allocate_signatured_type): New methods.
6365 (create_cu_from_index_list): Use allocate_per_cu.
6366 (create_signatured_type_table_from_index)
6367 (create_signatured_type_table_from_debug_names)
6368 (create_debug_type_hash_table, add_type_unit)
6369 (read_comp_units_from_section): Use allocate_signatured_type.
6370
5717c425
TT
63712020-05-27 Tom Tromey <tom@tromey.com>
6372
6373 * psymtab.c (partial_map_expand_apply)
6374 (psym_find_pc_sect_compunit_symtab, psym_lookup_symbol)
6375 (psym_lookup_global_symbol_language)
6376 (psymtab_to_symtab, psym_find_last_source_symtab, dump_psymtab)
6377 (psym_print_stats, psym_expand_symtabs_for_function)
6378 (psym_map_symbol_filenames, psym_map_matching_symbols)
6379 (psym_expand_symtabs_matching)
6380 (partial_symtab::read_dependencies, maintenance_info_psymtabs)
6381 (maintenance_check_psymtabs): Update.
6382 * psympriv.h (struct partial_symtab) <readin_p,
6383 get_compunit_symtab>: Add objfile parameter.
6384 (struct standard_psymtab) <readin_p, get_compunit_symtab>:
6385 Likewise.
6386 * dwarf2/read.c (struct dwarf2_include_psymtab) <readin_p,
6387 get_compunit_symtab>: Likewise.
6388 (dwarf2_psymtab::expand_psymtab): Pass objfile argument.
6389
45940949
TT
63902020-05-27 Tom Tromey <tom@tromey.com>
6391
6392 * dwarf2/read.h (struct dwarf2_per_objfile) <obstack>: New
6393 member.
6394 * dwarf2/read.c (delete_file_name_entry): Fix comment.
6395 (create_cu_from_index_list)
6396 (create_signatured_type_table_from_index)
6397 (create_signatured_type_table_from_debug_names)
6398 (dw2_get_file_names_reader, dwarf2_initialize_objfile)
6399 (dwarf2_create_include_psymtab)
6400 (create_debug_type_hash_table, add_type_unit)
6401 (create_type_unit_group, read_comp_units_from_section)
6402 (dwarf2_compute_name, create_cus_hash_table)
6403 (create_dwp_hash_table, create_dwo_unit_in_dwp_v1)
6404 (create_dwo_unit_in_dwp_v2, open_and_init_dwp_file): Use new
6405 obstack.
6406 (dw2_get_real_path): Likewise. Change argument to
6407 dwarf2_per_objfile.
6408
f8c6d152
LM
64092020-05-27 Luis Machado <luis.machado@linaro.org>
6410
6411 PR tdep/26000
6412 * arm-tdep.c (thumb_analyze_prologue): Fix instruction matching
6413 for ldrd (immediate).
6414
e98d2e6d
PW
64152020-05-26 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6416
6417 * command.h: Add comment giving the name of class_tui.
6418 * cli/cli-cmds.c (_initialize_cli_cmds): If TUI defined,
6419 create the fake command for the help for class_tui.
6420
53a47a3e
TT
64212020-05-26 Tom Tromey <tromey@adacore.com>
6422
6423 * ada-lang.c (ada_print_array_index): Change type. Call val_atr.
6424 (ada_value_ptr_subscript): Don't call pos_atr on the lower bound.
6425 (val_atr): New function.
6426 (value_val_atr): Use it.
6427 * ada-valprint.c (print_optional_low_bound): Change low bound
6428 handling for enums.
6429 (val_print_packed_array_elements): Don't call discrete_position.
6430 * gdbtypes.c (get_discrete_bounds) <TYPE_CODE_RANGE>: Call
6431 discrete_position for enum types.
6432 * language.c (default_print_array_index): Change type.
6433 * language.h (struct language_defn) <la_print_array_index>: Add
6434 index_type parameter, change type of index_value.
6435 (LA_PRINT_ARRAY_INDEX): Add index_type parameter.
6436 (default_print_array_index): Update.
6437 * valprint.c (maybe_print_array_index): Don't call
6438 value_from_longest. Update.
6439 (value_print_array_elements): Don't call discrete_position.
6440
0bc2354b
TT
64412020-05-26 Tom Tromey <tromey@adacore.com>
6442
6443 * ada-lang.c (value_val_atr): Handle TYPE_CODE_RANGE.
6444 * gdbtypes.c (discrete_position): Handle TYPE_CODE_RANGE.
6445
1218a4bf
CDA
64462020-05-25 Cristiano De Alti <cristiano_dealti@hotmail.com>
6447
6448 PR gdb/13519
6449 * avr-tdep.c (avr_integer_to_address): Return data or code
6450 address accordingly to the second 'type' argument of the
6451 function.
6452
92651b1d
MW
64532020-05-25 Michael Weghorn <m.weghorn@posteo.de>
6454
6455 * infcmd.c, inferior.h: (construct_inferior_arguments):
6456 Moved function from here to gdbsupport/common-inferior.{h,cc}
6457
0a4f5f8c
TT
64582020-05-23 Tom Tromey <tom@tromey.com>
6459
6460 Revert commit eca1f90c:
6461 * NEWS: Remove entry for completion styling.
6462 * completer.c (_rl_completion_prefix_display_length): Move
6463 declaration later.
6464 (gdb_fnprint): Revert.
6465 (gdb_display_match_list_1): Likewise.
6466 * cli/cli-style.c (completion_prefix_style)
6467 (completion_difference_style, completion_suffix_style): Remove.
6468 (_initialize_cli_style): Revert.
6469 * cli/cli-style.h (completion_prefix_style)
6470 (completion_difference_style, completion_suffix_style): Don't
6471 declare.
6472
e08bd6c5
PA
64732020-05-24 Pedro Alves <palves@redhat.com>
6474
6475 * symtab.c (completion_list_add_name): Return boolean indication
6476 of whether the symbol matched.
6477 (completion_list_add_symbol): Don't try to remove C++ aliases if
6478 the symbol didn't match in the first place.
6479 * symtab.h (completion_list_add_name): Return bool.
6480
ceacbf6e
SM
64812020-05-23 Simon Marchi <simon.marchi@polymtl.ca>
6482
6483 * gdbtypes.h (TYPE_FIELD): Remove. Replace all uses with
6484 type::field.
6485
26f16254
JB
64862020-05-23 Joel Brobecker <brobecker@adacore.com>
6487
6488 GDB 9.2 released.
6489
eca1f90c
TT
64902020-05-23 Tom Tromey <tom@tromey.com>
6491
6492 * NEWS: Add entry for completion styling.
6493 * completer.c (_rl_completion_prefix_display_length): Move
6494 declaration earlier.
6495 (gdb_fnprint): Use completion_style.
6496 (gdb_display_match_list_1): Likewise.
6497 * cli/cli-style.c (completion_prefix_style)
6498 (completion_difference_style, completion_suffix_style): New
6499 globals.
6500 (_initialize_cli_style): Register new globals.
6501 * cli/cli-style.h (completion_prefix_style)
6502 (completion_difference_style, completion_suffix_style): Declare.
6503
51e2cfa2
PA
65042020-05-23 Pedro Alves <palves@redhat.com>
6505
6506 * utils.c: Include "gdbsupport/gdb-safe-ctype.h".
6507 (parse_escape): Use ISDIGIT instead of isdigit.
6508 (puts_debug): Use gdb_isprint instead of isprint.
6509 (fprintf_symbol_filtered): Use ISALNUM instead of isalnum.
6510 (cp_skip_operator_token, skip_ws, strncmp_iw_with_mode): Use
6511 ISSPACE instead of isspace.
6512 (strncmp_iw_with_mode): Use TOLOWER instead of tolower and ISSPACE
6513 instead of isspace.
6514 (strcmp_iw_ordered): Use ISSPACE instead of isspace.
6515 (string_to_core_addr): Use TOLOWER instead of tolower, ISXDIGIT
6516 instead of isxdigit and ISDIGIT instead of isdigit.
6517
80fc5e77
SM
65182020-05-22 Simon Marchi <simon.marchi@efficios.com>
6519
6520 * gdbtypes.h (struct type) <field>: New method.
6521 (TYPE_FIELDS): Remove, replace all uses with either type::fields
6522 or type::field.
6523
3cabb6b0
SM
65242020-05-22 Simon Marchi <simon.marchi@efficios.com>
6525
6526 * gdbtypes.h (struct type) <fields, set_fields>: New methods.
6527 (TYPE_FIELDS): Use type::fields. Change all call sites that
6528 modify the propery to use type::set_fields instead.
6529
1f704f76
SM
65302020-05-22 Simon Marchi <simon.marchi@efficios.com>
6531
6532 * gdbtypes.h (TYPE_NFIELDS): Remove. Change all cal sites to use
6533 type::num_fields instead.
6534
5e33d5f4
SM
65352020-05-22 Simon Marchi <simon.marchi@efficios.com>
6536
6537 * gdbtypes.h (struct type) <num_fields, set_num_fields>: New
6538 methods.
6539 (TYPE_NFIELDS): Use type::num_fields. Change all call sites
6540 that modify the number of fields to use type::set_num_fields
6541 instead.
6542
9392ebb3
TT
65432020-05-22 Tom Tromey <tromey@adacore.com>
6544
6545 * compile/compile-object-load.h (munmap_list_free): Don't
6546 declare.
6547
7c13f4e8
AB
65482020-05-22 Andrew Burgess <andrew.burgess@embecosm.com>
6549
6550 * annotate.c (annotate_source_line): Update return type, add call
6551 to update current symtab and line.
6552 * annotate.h (annotate_source_line): Update return type, and
6553 extend header comment.
6554 * source.c (info_line_command): Check annotation_level before
6555 calling annotate_source_line.
6556 * stack.c (print_frame_info): If calling annotate_source_line
6557 returns true, then don't print any other source line information.
6558
aa370940
SM
65592020-05-21 Simon Marchi <simon.marchi@efficios.com>
6560
6561 * lm32-tdep.c (lm32_register_reggroup_p): Fix condition.
6562
84d53fa9
SM
65632020-05-21 Simon Marchi <simon.marchi@efficios.com>
6564
6565 * coffread.c (patch_type): Remove NULL check before xfree.
6566 * corefile.c (set_gnutarget): Likewise.
6567 * cp-abi.c (set_cp_abi_as_auto_default): Likewise.
6568 * exec.c (build_section_table): Likewise.
6569 * remote.c (remote_target::pass_signals): Likewise.
6570 * utils.c (n_spaces): Likewise.
6571 * cli/cli-script.c (document_command): Likewise.
6572 * i386-windows-tdep.c (core_process_module_section): Likewise.
6573 * linux-fork.c (struct fork_info) <~fork_info>: Likewise.
6574
9d428aae
SM
65752020-05-20 Simon Marchi <simon.marchi@efficios.com>
6576
6577 * symfile.c (reread_symbols): Clear objfile's section_offsets
6578 vector and section indices, re-compute them by calling
6579 sym_offsets.
6580
250106a7
TT
65812020-05-20 Tom Tromey <tromey@adacore.com>
6582
6583 * ada-lang.c (bound_name, MAX_ADA_DIMENS): Remove.
ec16513e 6584 (desc_one_bound, desc_index_type): Compute field name.
250106a7 6585
9a0bacfb
TV
65862020-05-20 Tom de Vries <tdevries@suse.de>
6587
6588 PR symtab/25833
6589 * dwarf2/read.c (dw2_map_matching_symbols): Handle .gdb_index.
6590
7b958a48
AM
65912020-05-20 Alan Modra <amodra@gmail.com>
6592
6593 PR 25993
6594 * solib-darwin.c (darwin_bfd_open): Don't strdup pathname for
6595 bfd_set_filename.
6596 * solib-aix.c (solib_aix_bfd_open): Use std::string for name
6597 passed to bfd_set_filename.
6598 * symfile-mem.c (add_vsyscall_page): Likewise for string
6599 passed to symbol_file_add_from_memory.
6600 (symbol_file_add_from_memory): Make name param a const char* and
6601 don't strdup.
6602
c7e97679
AM
66032020-05-20 Alan Modra <amodra@gmail.com>
6604
6605 * coff-pe-read.c (read_pe_exported_syms): Use bfd_get_filename
6606 rather than accessing bfd->filename directly.
6607 * dtrace-probe.c (dtrace_static_probe_ops::get_probes): Likewise,
6608 and use bfd_section_name.
6609 * dwarf2/frame.c (decode_frame_entry): Likewise.
6610 * exec.c (exec_set_section_address): Likewise.
6611 * solib-aix.c (solib_aix_bfd_open): Likewise.
6612 * stap-probe.c (get_stap_base_address): Likewise.
6613 * symfile.c (reread_symbols): Likewise.
6614
563c591b
TT
66152020-05-19 Tom Tromey <tromey@adacore.com>
6616
6617 * sparc64-tdep.c (adi_tag_fd): Update call to target_fileio_open.
6618
f408d82c
SM
66192020-05-19 Simon Marchi <simon.marchi@efficios.com>
6620
6621 * dwarf2/read.c (quirk_rust_enum): Allocate enough fields.
6622
98c59b52
PA
66232020-05-19 Pedro Alves <palves@redhat.com>
6624
6625 * NEWS (set exec-file-mismatch): Adjust entry.
6626 * exec.c: Include "build-id.h".
6627 (validate_exec_file): Try to match build IDs instead of filenames.
6628 * gdb_bfd.c (struct gdb_bfd_open_closure): New.
6629 (gdb_bfd_iovec_fileio_open): Adjust to use gdb_bfd_open_closure
6630 and pass down 'warn_if_slow'.
6631 (gdb_bfd_open): Add 'warn_if_slow' parameter. Use
6632 gdb_bfd_open_closure to pass it down.
6633 * gdb_bfd.h (gdb_bfd_open): Add 'warn_if_slow' parameter.
6634
4111f652
PA
66352020-05-19 Pedro Alves <palves@redhat.com>
6636
6637 * gdb_bfd.c (gdb_bfd_iovec_fileio_open): Adjust.
6638 * target.c (target_fileio_open_1): Rename to target_fileio_open
6639 and make extern. Use bool.
6640 (target_fileio_open, target_fileio_open_warn_if_slow): Delete.
6641 (target_fileio_read_alloc_1): Adjust.
6642 * target.h (target_fileio_open): Add 'warn_if_slow' parameter.
6643 (target_fileio_open_warn_if_slow): Delete declaration.
6644
ad80db5b
PA
66452020-05-19 Pedro Alves <palves@redhat.com>
6646
6647 * gdb_bfd.h: (gdb_bfd_open): Default to 'fd' parameter to -1.
6648 Adjust all callers.
6649
1d6ce4d3
YS
66502020-05-19 Yoshinori Sato <ysato@users.sourceforge.jp>
6651
6652 * h8300-tdep.c (h8300_is_argument_spill): Change how we check
6653 whether disp is negative.
6654
9005fbbb
SM
66552020-05-19 Simon Marchi <simon.marchi@efficios.com>
6656
6657 * symfile.h (struct symfile_segment_data)
6658 <~symfile_segment_data>: Remove.
6659 <segment_info>: Change to std::vector.
6660 * symfile.c (default_symfile_segments): Update.
6661 * elfread.c (elf_symfile_segments): Update.
6662
68b888ff
SM
66632020-05-19 Simon Marchi <simon.marchi@efficios.com>
6664
6665 * symfile.h (struct symfile_segment_data) <struct segment>: New.
6666 <segments>: New.
6667 <segment_bases, segment_sizes>: Remove.
6668 * symfile.c (default_symfile_segments): Update.
6669 * elfread.c (elf_symfile_segments): Update.
6670 * remote.c (remote_target::get_offsets): Update.
6671 * solib-target.c (solib_target_relocate_section_addresses):
6672 Update.
6673
62982abd
SM
66742020-05-19 Simon Marchi <simon.marchi@efficios.com>
6675
6676 * symfile.h (struct symfile_segment_data): Initialize fields.
6677 <~symfile_segment_data>: Add.
6678 (symfile_segment_data_up): New.
6679 (struct sym_fns) <sym_segments>: Return a
6680 symfile_segment_data_up.
6681 (default_symfile_segments): Return a symfile_segment_data_up.
6682 (free_symfile_segment_data): Remove.
6683 (get_symfile_segment_data): Return a symfile_segment_data_up.
6684 * symfile.c (default_symfile_segments): Likewise.
6685 (get_symfile_segment_data): Likewise.
6686 (free_symfile_segment_data): Remove.
6687 (symfile_find_segment_sections): Update.
6688 * elfread.c (elf_symfile_segments): Return a
6689 symfile_segment_data_up.
6690 * remote.c (remote_target::get_offsets): Update.
6691 * solib-target.c (solib_target_relocate_section_addresses):
6692 Update.
6693 * symfile-debug.c (debug_sym_segments): Return a
6694 symfile_segment_data_up.
6695
7f204339
RO
66962020-05-18 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
6697
e52a0f1b
RO
6698 PR build/25981
6699 * i386-sol2-nat.c [PR_MODEL_NATIVE != PR_MODEL_LP64] (regmap):
6700 Hardcode register numbers.
6701
7f204339
RO
6702 PR build/25981
6703 * procfs.c [(__i386__ || __x86_64__) && sun] (proc_get_LDT_entry,
6704 procfs_find_LDT_entry): Remove.
6705 * procfs.h [(__i386__ || __x86_64__) && sun] (struct ssd,
6706 procfs_find_LDT_entry): Remove.
6707 * sol-thread.c [(__i386__ || __x86_64__) && sun] (ps_lgetLDT):
6708 Remove.
6709
7f32a4d5
PA
67102020-05-17 Pedro Alves <palves@redhat.com>
6711 Andrew Burgess <andrew.burgess@embecosm.com>
6712 Keno Fischer <keno@juliacomputing.com>
6713
6714 PR gdb/25741
6715 * breakpoint.c (build_target_condition_list): Update comments.
6716 (build_target_command_list): Update comments and skip matching
6717 locations.
6718 (insert_bp_location): Move "set breakpoint auto-hw on" handling to
6719 a separate function. Simplify "set breakpoint auto-hw off"
6720 handling.
6721 (insert_breakpoints): Update comment.
6722 (tracepoint_locations_match): New parameter. For breakpoints,
6723 compare location types too, if the caller wants to.
6724 (handle_automatic_hardware_breakpoints): New functions.
6725 (bp_location_is_less_than): Also sort by location type and
6726 hardware breakpoint length.
6727 (update_global_location_list): Handle "set breakpoint auto-hw on"
6728 here.
6729 (update_breakpoint_locations): Ask breakpoint_locations_match to
6730 ignore location types.
6731
7d93a1e0
SM
67322020-05-16 Simon Marchi <simon.marchi@efficios.com>
6733
6734 * gdbtypes.h (TYPE_NAME): Remove. Change all cal sites to use
6735 type::name instead.
6736
d0e39ea2
SM
67372020-05-16 Simon Marchi <simon.marchi@efficios.com>
6738
6739 * gdbtypes.h (struct type) <name, set_name>: New methods.
6740 (TYPE_CODE): Use type::name. Change all call sites used to set
6741 the name to use type::set_name instead.
6742
2dab0c7b
TT
67432020-05-16 Tom Tromey <tom@tromey.com>
6744
6745 * top.c (quit_force): Update.
6746 * infrun.c (handle_no_resumed): Update.
6747 * top.h (all_uis): New function.
6748 (ALL_UIS): Remove.
6749
59f7bd8d
SM
67502020-05-16 Simon Marchi <simon.marchi@efficios.com>
6751
6752 * mips-linux-tdep.c (mips_linux_in_dynsym_stub): Fix condition.
6753
9bf058f0
PA
67542020-05-16 Pedro Alves <palves@redhat.com>
6755
6756 * ia64-linux-nat.c
6757 (ia64_linux_nat_target) <enable_watchpoints_in_psr(ptid_t)>:
6758 Declare method.
6759 (enable_watchpoints_in_psr): Now a method of ia64_linux_nat_target.
6760
8f86ae1a
SM
67612020-05-15 Simon Marchi <simon.marchi@efficios.com>
6762
6763 * sparc64-tdep.c (adi_stat_t): Remove typedef (leaving struct).
6764 (sparc64_adi_info): Likewise.
6765
d6bc0792
TT
67662020-05-15 Tom Tromey <tom@tromey.com>
6767
6768 * symtab.c (lookup_language_this, lookup_symbol_aux): Use
6769 block_objfile.
6770 (lookup_objfile_from_block): Remove.
6771 (lookup_symbol_in_block, lookup_symbol_in_static_block)
6772 (lookup_global_symbol): Use block_objfile.
6773 * symtab.h (lookup_objfile_from_block): Don't declare.
6774 * printcmd.c (clear_dangling_display_expressions): Use
6775 block_objfile.
6776 * parse.c (operator_check_standard): Use block_objfile.
6777
8c14c3a3
TT
67782020-05-15 Tom Tromey <tom@tromey.com>
6779
6780 * language.c (language_alloc_type_symbol): Set
6781 SYMBOL_SECTION.
6782 * symtab.c (initialize_objfile_symbol): Remove.
6783 (allocate_symbol): Remove.
6784 (allocate_template_symbol): Remove.
6785 * dwarf2/read.c (fixup_go_packaging): Use "new".
6786 (new_symbol): Use "new".
6787 (read_variable): Don't call initialize_objfile_symbol. Use
6788 "new".
6789 (read_func_scope): Use "new".
6790 * xcoffread.c (process_xcoff_symbol): Don't call
6791 initialize_objfile_symbol.
6792 (SYMBOL_DUP): Remove.
6793 * coffread.c (process_coff_symbol, coff_read_enum_type): Use
6794 "new".
6795 * symtab.h (allocate_symbol, initialize_objfile_symbol)
6796 (allocate_template_symbol): Don't declare.
6797 (struct symbol): Add copy constructor. Change defaults.
6798 * jit.c (finalize_symtab): Use "new".
6799 * ctfread.c (ctf_add_enum_member_cb, new_symbol, ctf_add_var_cb):
6800 Use "new".
6801 * stabsread.c (patch_block_stabs, define_symbol, read_enum_type)
6802 (common_block_end): Use "new".
6803 * mdebugread.c (parse_symbol): Use "new".
6804 (new_symbol): Likewise.
6805
5b4a1a8d
PW
68062020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6807
6808 * NEWS: Mention changes to help and apropos.
6809
57b4f16e
PW
68102020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6811
6812 * command.h (enum command_class): Improve comments, document
6813 that class_alias is for user-defined aliases, give the class
6814 name for each class, remove unused class_xdb.
6815 * cli/cli-decode.c (add_com_alias): Document THECLASS intended usage.
6816 * breakpoint.c (_initialize_breakpoint): Replace class_alias
6817 by a precise class.
6818 * infcmd.c (_initialize_infcmd): Likewise.
6819 * reverse.c (_initialize_reverse): Likewise.
6820 * stack.c (_initialize_stack): Likewise.
6821 * symfile.c (_initialize_symfile): Likewise.
6822 * tracepoint.c (_initialize_tracepoint): Likewise.
6823
7c05caf7
PW
68242020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6825
6826 * cli/cli-decode.c (apropos_cmd): Produce output for aliases
6827 when their aliased command is traversed.
6828 (help_cmd): Add fput_command_names_styled call to
6829 output command name and aliases when command has an alias.
6830
3b3aaacb
PW
68312020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6832
6833 * cli/cli-decode.h (help_cmd_list): Remove declaration.
6834 * cli/cli-decode.c (help_cmd_list): Declare as static,
6835 remove prefix argument, use bool for recurse arg, rework to show the aliases of
6836 a command together with the command.
6837 (fput_command_name_styled, fput_command_names_styled): New functions.
6838 (print_help_for_command): Remove prefix arg, use bool for recurse arg, use
6839 fput_command_name_styled.
6840 (help_list, help_all): Update callers to remove prefix arg and use bool recurse.
6841 * cli/cli-cmds.c (_initialize_cli_cmds): Update alias_command doc.
6842
7aa1b46f
PW
68432020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6844
6845 * cli/cli-setshow.h (cmd_show_list): Remove prefix argument.
6846 * cli/cli-decode.c (do_show_prefix_cmd): Likewise.
6847 * command.h (cmd_show_list): Likewise.
6848 * dwarf2/index-cache.c (show_index_cache_command): Likewise.
6849 * cli/cli-setshow.c (cmd_show_list): Use the prefix to produce the output. Skip aliases.
6850
89bcba74
PW
68512020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6852
6853 * unittests/command-def-selftests.c (traverse_command_structure):
6854 Verify all commands of a list have the same prefix command and
6855 that only the top cmdlist commands have a null prefix.
6856
3f4d92eb
PW
68572020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6858
6859 * cli/cli-decode.c (lookup_cmd_for_prefix): Return the aliased command
6860 as prefix, not one of its aliases.
6861 (set_cmd_prefix): Remove.
6862 (do_add_cmd): Centralize the setting of the prefix of a command, when
6863 command is defined after its full chain of prefix commands.
6864 (add_alias_cmd): Remove call to set_cmd_prefix, as do_add_cmd does it.
6865 (add_setshow_cmd_full): Likewise.
6866 (update_prefix_field_of_prefixed_commands): New function.
6867 (add_prefix_cmd): Replace non working call to set_cmd_prefix by
6868 update_prefix_field_of_prefixed_commands.
6869 * gdb/remote-fileio.c (initialize_remote_fileio): Use the real
6870 addresses of remote_set_cmdlist and remote_show_cmdlist given
6871 as argument, not the address of an argument.
6872 * gdb/remote-fileio.h (initialize_remote_fileio): Likewise.
6873 * gdb/remote.c (_initialize_remote): Likewise.
6874
0605465f
PW
68752020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6876
6877 * cli/cli-cmds.c (alias_command): Check for an existing alias
6878 using lookup_cmd_composition, as valid_command_p is too strict
6879 and forbids aliases that are the prefix of an existing alias
6880 or command.
6881 * cli/cli-decode.c (lookup_cmd_composition): Ensure a prefix
6882 command is properly recognised as a valid command.
6883
58e6ac70
PW
68842020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6885
6886 * unittests/help-doc-selftests.c: Rename to
6887 unittests/command-def-selftests.c
6888 * unittests/command-def-selftests.c (help_doc_tests): Update some
6889 comments.
6890 (command_structure_tests, traverse_command_structure): New namespace
6891 and function.
6892 (command_structure_invariants_tests): New function.
6893 (_initialize_command_def_selftests) Renamed from
6894 _initialize_help_doc_selftests, register command_structure_invariants
6895 selftest.
6896
a7b9ceb8
PW
68972020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6898
6899 * cli/cli-cmds.c (_initialize_cli_cmds): Define 'info set' as
6900 an alias of 'show'.
6901
b2188a06
JB
69022020-05-15 Joel Brobecker <brobecker@adacore.com>
6903
6904 * ada-lang.h: (ada_is_gnat_encoded_fixed_point_type): Renames
6905 ada_is_fixed_point_type. Update all callers.
6906 (gnat_encoded_fixed_point_delta): Renames ada_delta. Update
6907 all callers.
6908 * ada-lang.c (gnat_encoded_fixed_type_info): Renames fixed_type_info.
6909 Update all callers.
6910 * ada-typeprint.c (print_gnat_encoded_fixed_point_type): Renames
6911 print_fixed_point_type. Update all callers.
6912 * ada-valprint.c (ada_value_print_num): Replace call to
6913 ada_is_fixed_point_type by ada_is_gnat_encoded_fixed_point_type.
6914
a51951c2
KB
69152020-05-14 Kevin Buettner <kevinb@redhat.com>
6916
6917 * nat/linux-btrace.c (btrace_this_cpu): Add check for AMD
6918 processors.
6919 (cpu_supports_bts): Add CV_AMD case.
6920
29d6859f
LM
69212020-05-14 Laurent Morichetti <Laurent.Morichetti@amd.com>
6922 Simon Marchi <simon.marchi@efficios.com>
6923
6924 * infrun.c (stop_all_threads): Collect multiple wait events at
6925 each pass.
6926
78134374
SM
69272020-05-14 Simon Marchi <simon.marchi@efficios.com>
6928
6929 * gdbtypes.h (TYPE_CODE): Remove. Change all call sites to use
6930 type::code instead.
6931
67607e24
SM
69322020-05-14 Simon Marchi <simon.marchi@efficios.com>
6933
6934 * gdbtypes.h (struct type) <code, set_code>: New methods.
6935 (TYPE_CODE): Use type::code. Change all call sites used to set
6936 the code to use type::set_code instead.
6937
a05575d3
TBA
69382020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
6939 Tom de Vries <tdevries@suse.de>
6940 Pedro Alves <palves@redhat.com>
6941
6942 PR threads/25478
6943 * infrun.c (stop_all_threads): Do NOT ignore
6944 TARGET_WAITKIND_NO_RESUMED, TARGET_WAITKIND_THREAD_EXITED,
6945 TARGET_WAITKIND_EXITED, TARGET_WAITKIND_SIGNALLED wait statuses
6946 received.
6947 (handle_no_resumed): Remove code handling a live inferior with no
6948 threads.
6949 * remote.c (has_single_non_exited_thread): New.
6950 (remote_target::update_thread_list): Do not delete a thread if is
6951 the last thread of the process.
6952 * thread.c (thread_select): Call delete_exited_threads instead of
6953 prune_threads.
6954
6ad82919
TBA
69552020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
6956
6957 * infrun.c (stop_all_threads): Enable/disable thread events of all
6958 targets. Move a debug message denoting the end of the function
6959 into the SCOPED_EXIT block.
6960
d890404b
TBA
69612020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
6962
6963 * process-stratum-target.h: Include <set>.
6964 (all_non_exited_process_targets, switch_to_target_no_thread): New
6965 function declarations.
6966 * process-stratum-target.c (all_non_exited_process_targets)
6967 (switch_to_target_no_thread): New function implementations.
6968
293b3ebc
TBA
69692020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
6970
6971 * infrun.c (handle_inferior_event): Extract out a piece of code
6972 into...
6973 (mark_non_executing_threads): ...this new function.
6974
7ca9b62a
TBA
69752020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
6976
6977 * infrun.c (resume_1): Move a 'regcache_read_pc' call down to first
6978 use.
6979
fc75c28b
TBA
69802020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
6981
6982 * regcache.c (regcache_read_pc_protected): New function
6983 implementation that returns 0 if the PC cannot read via
6984 'regcache_read_pc'.
6985 * infrun.c (proceed): Call 'regcache_read_pc_protected'
6986 instead of 'regcache_read_pc'.
6987 (keep_going_pass_signal): Ditto.
6988
a89febbd
TT
69892020-05-13 Tom Tromey <tromey@adacore.com>
6990
6991 * ada-lang.c (align_value): Remove.
6992 (ada_template_to_fixed_record_type_1): Use align_up.
6993
f7e23710
TBA
69942020-05-13 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
6995
6996 * async-event.c: Update the copyright year.
6997 * async-event.h: Update the copyright year.
6998
02ff80c2
SM
69992020-05-12 Simon Marchi <simon.marchi@efficios.com>
7000
7001 * objfiles.h (is_addr_in_objfile,
7002 shared_objfile_contains_address_p): Return bool.
7003 * objfile.c (is_addr_in_objfile,
7004 shared_objfile_contains_address_p): Return bool.
7005
4fd6c7e8
TT
70062020-05-11 Tom Tromey <tromey@adacore.com>
7007
7008 * cli/cli-cmds.c (info_command): Restore.
7009 (_initialize_cli_cmds): Use add_prefix_command for "info".
7010 * gdb-gdb.gdb.in: Restore breakpoint on info_command.
7011
5eb68a39
TT
70122020-05-11 Tom Tromey <tromey@adacore.com>
7013
7014 * ada-lang.c (ada_value_primitive_field): Now public.
7015 * ada-lang.h (ada_value_primitive_field): Declare.
7016 * ada-valprint.c (print_field_values): Use
7017 ada_value_primitive_field for wrapper fields.
7018
7666722f
TV
70192020-05-11 Tom de Vries <tdevries@suse.de>
7020
7021 * dwarf2/index-write.c (debug_names::psymbol_tag): Handle
7022 MODULE_DOMAIN.
7023
3ee6bb11
TV
70242020-05-11 Tom de Vries <tdevries@suse.de>
7025
7026 PR symtab/25941
7027 * dwarf2/read.c (create_cus_from_debug_names_list): Initialize CUs
7028 with length 0, if not gdb-produced.
7029 (cutu_reader::cutu_reader): Set CU length to actual length if 0.
7030
43434996
TV
70312020-05-09 Tom de Vries <tdevries@suse.de>
7032
7033 PR gdb/25955
7034 * break-catch-throw.c (check_status_exception_catchpoint): Fix name
7035 calculation.
7036
2f78cffc
TT
70372020-05-09 Tom Tromey <tom@tromey.com>
7038
7039 * top.c (server_command): Now bool.
7040 * top.h (server_command): Now bool.
7041
4f7bc5ed
TT
70422020-05-08 Tom Tromey <tromey@adacore.com>
7043
7044 * dwarf2/read.c (read_lexical_block_scope): Don't process a DIE
7045 already being processed.
7046
8be4b118
TT
70472020-05-08 Tom Tromey <tom@tromey.com>
7048
7049 * printcmd.c (struct display) <next>: Remove.
7050 <display>: New constructor.
7051 <exp_string>: Now a std::string.
7052 <enabled_p>: Now a bool.
7053 (display_number): Move definition earlier.
7054 (displays): Rename from display_chain. Now a std::vector.
7055 (ALL_DISPLAYS, ALL_DISPLAYS_SAFE): Remove.
7056 (display_command): Update.
7057 (do_one_display, disable_display)
7058 (enable_disable_display_command, do_enable_disable_display):
7059 Update.
7060 (free_display): Remove.
7061 (clear_displays): Rewrite.
7062 (delete_display): Update.
7063 (map_display_numbers): Use function_view. Remove "data"
7064 parameter. Update.
7065 (do_delete_display): Remove.
7066 (undisplay_command): Update.
7067 (do_one_display, do_displays, disable_display)
7068 (info_display_command): Update.
7069 (do_enable_disable_display): Remove.
7070 (enable_disable_display_command)
7071 (clear_dangling_display_expressions): Update.
7072
94c93c35
TT
70732020-05-08 Tom Tromey <tom@tromey.com>
7074
7075 * symtab.c (set_symbol_cache_size)
7076 (maintenance_print_symbol_cache, maintenance_flush_symbol_cache)
7077 (maintenance_print_symbol_cache_statistics): Update.
7078 * symmisc.c (print_symbol_bcache_statistics)
7079 (print_objfile_statistics, maintenance_print_objfiles)
7080 (maintenance_info_symtabs, maintenance_check_symtabs)
7081 (maintenance_expand_symtabs, maintenance_info_line_tables):
7082 Update.
7083 * symfile-debug.c (set_debug_symfile): Update.
7084 * source.c (forget_cached_source_info): Update.
7085 * python/python.c (gdbpy_progspaces): Update.
7086 * psymtab.c (maintenance_info_psymtabs): Update.
7087 * probe.c (parse_probes): Update.
7088 * linespec.c (iterate_over_all_matching_symtabs)
7089 (collect_symtabs_from_filename, search_minsyms_for_name): Update.
7090 * guile/scm-progspace.c (gdbscm_progspaces): Update.
7091 * exec.c (exec_target::close): Update.
7092 * ada-tasks.c (ada_tasks_new_objfile_observer): Update.
7093 * breakpoint.c (print_one_breakpoint_location)
7094 (create_longjmp_master_breakpoint)
7095 (create_std_terminate_master_breakpoint): Update.
7096 * progspace.c (program_spaces): Now a std::vector.
7097 (maybe_new_address_space): Update.
7098 (add_program_space): Remove.
7099 (program_space::program_space): Update.
7100 (remove_program_space): Update.
7101 (number_of_program_spaces): Remove.
7102 (print_program_space, update_address_spaces): Update.
7103 * progspace.h (program_spaces): Change type.
7104 (ALL_PSPACES): Remove.
7105 (number_of_program_spaces): Don't declare.
7106 (struct program_space) <next>: Remove.
7107
a1fd1ac9
TT
71082020-05-08 Tom Tromey <tom@tromey.com>
7109
7110 * mi/mi-cmd-file.c (mi_cmd_file_list_shared_libraries): Update.
7111 * solib-svr4.c (svr4_fetch_objfile_link_map): Update.
7112 (enable_break): Update.
7113 * solib-frv.c (frv_fdpic_find_global_pointer): Update.
7114 (frv_fdpic_find_canonical_descriptor): Update.
7115 (frv_fetch_objfile_link_map): Update.
7116 * progspace.c (program_space::free_all_objfiles): Update.
7117 (program_space::solibs): New method.
7118 * progspace.h (struct program_space) <solibs>: New method.
7119 * solist.h (master_so_list): Don't declare.
7120 (ALL_SO_LIBS): Remove.
7121 * solib.h (so_list_head): Remove.
7122 (update_solib_list): Update comment.
7123 * solib.c (master_so_list): Remove.
7124 (solib_used, update_solib_list, solib_add)
7125 (info_sharedlibrary_command, clear_solib)
7126 (reload_shared_libraries_1, remove_user_added_objfile): Update.
7127
38eae084
TT
71282020-05-08 Tom Tromey <tom@tromey.com>
7129
7130 * extension.c (extension_languages): Now a std::array.
7131 (ALL_EXTENSION_LANGUAGES): Remove.
7132 (get_ext_lang_defn, get_ext_lang_of_file)
7133 (eval_ext_lang_from_control_command): Update.
7134 (finish_ext_lang_initialization)
7135 (auto_load_ext_lang_scripts_for_objfile)
7136 (ext_lang_type_printers::ext_lang_type_printers)
7137 (apply_ext_lang_type_printers)
7138 (ext_lang_type_printers::~ext_lang_type_printers)
7139 (apply_ext_lang_val_pretty_printer, apply_ext_lang_frame_filter)
7140 (preserve_ext_lang_values, get_breakpoint_cond_ext_lang)
7141 (breakpoint_ext_lang_cond_says_stop, check_quit_flag)
7142 (get_matching_xmethod_workers, ext_lang_colorize)
7143 (ext_lang_before_prompt): Update.
7144 (ALL_ENABLED_EXTENSION_LANGUAGES): Remove.
7145
596dc4ad
TT
71462020-05-08 Tom Tromey <tom@tromey.com>
7147
7148 * symtab.h (class demangle_result_storage) <set_malloc_ptr>: New
7149 overload.
7150 <swap_string, m_string>: Remove.
7151 * symtab.c (demangle_for_lookup, completion_list_add_symbol):
7152 Update.
7153 * stabsread.c (define_symbol, read_type): Update.
7154 * linespec.c (find_linespec_symbols): Update.
7155 * gnu-v3-abi.c (gnuv3_get_typeid): Update.
7156 * dwarf2/read.c (dwarf2_canonicalize_name): Update.
7157 * dbxread.c (read_dbx_symtab): Update.
7158 * cp-support.h (cp_canonicalize_string_full)
7159 (cp_canonicalize_string, cp_canonicalize_string_no_typedefs):
7160 Return unique_xmalloc_ptr.
7161 * cp-support.c (inspect_type): Update.
7162 (cp_canonicalize_string_full): Return unique_xmalloc_ptr.
7163 (cp_canonicalize_string_no_typedefs, cp_canonicalize_string):
7164 Likewise.
7165 * c-typeprint.c (print_name_maybe_canonical): Update.
7166 * break-catch-throw.c (check_status_exception_catchpoint):
7167 Update.
7168
bf4cb9be
TV
71692020-05-08 Tom de Vries <tdevries@suse.de>
7170
7171 * infrun.c (follow_fork): Copy current_line and current_symtab to
7172 child thread.
7173
a1b68f28
SM
71742020-05-07 Simon Marchi <simon.marchi@efficios.com>
7175
7176 * async-event.c (struct async_signal_handler, struct
7177 async_event_handler): Reformat, remove typedef.
7178
98d48915
SM
71792020-05-07 Simon Marchi <simon.marchi@efficios.com>
7180
7181 * gdbtypes.h (TYPE_DYN_PROP_LIST): Remove. Update all users
7182 access thistype->main_type->dyn_prop_list directly.
7183
7aa91313
SM
71842020-05-07 Simon Marchi <simon.marchi@efficios.com>
7185
7186 * gdbtypes.h (struct type) <remove_dyn_prop>: New method.
7187 (remove_dyn_prop): Remove. Update all users to use
7188 type::remove_dyn_prop.
7189 * gdbtypes.c (remove_dyn_prop): Rename to...
7190 (type::remove_dyn_prop): ... this.
7191
5c54719c
SM
71922020-05-07 Simon Marchi via Gdb-patches <gdb-patches@sourceware.org>
7193
7194 * gdbtypes.h (struct type) <add_dyn_prop>: New method.
7195 (add_dyn_prop): Remove. Update all users to use
7196 type::add_dyn_prop.
7197 * gdbtypes.c (add_dyn_prop): Rename to...
7198 (type::add_dyn_prop): ... this.
7199
24e99c6c
SM
72002020-05-07 Simon Marchi <simon.marchi@efficios.com>
7201
7202 * gdbtypes.h (struct type) <get_dyn_prop>: New method.
7203 (get_dyn_prop): Remove. Update all users to use
7204 type::dyn_prop.
7205 * gdbtypes.c (get_dyn_prop): Rename to...
7206 (type::dyn_prop): ... this.
7207
0d4bf016
SM
72082020-05-06 Simon Marchi <simon.marchi@efficios.com>
7209
7210 * gdbtypes.h (struct main_type) <flag_static>: Remove.
7211
ac4a4f1c
SM
72122020-05-06 Simon Marchi <simon.marchi@efficios.com>
7213
7214 * amd64-tdep.c (amd64_analyze_prologue): Check for `endbr64`
7215 instruction, skip it if it's there.
7216
a3bbacc1
SM
72172020-05-05 Simon Marchi <simon.marchi@efficios.com>
7218
7219 * gdbtypes.h (struct main_type) <flag_incomplete>: Remove.
7220
c3236f84
SM
72212020-05-04 Simon Marchi <simon.marchi@efficios.com>
7222
7223 * gdbtypes.h (TYPE_INCOMPLETE): Remove.
7224 * gdbtypes.c (recursive_dump_type): Remove use of
7225 TYPE_INCOMPLETE.
7226
3b6acaee
TT
72272020-05-03 Tom Tromey <tom@tromey.com>
7228
7229 * breakpoint.c (catch_command, tcatch_command): Remove.
7230 (_initialize_breakpoint): Use add_basic_prefix_cmd,
7231 add_show_prefix_cmd.
7232 (set_breakpoint_cmd, show_breakpoint_cmd): Remove
7233 * utils.c (set_internal_problem_cmd, show_internal_problem_cmd):
7234 Remove.
7235 (add_internal_problem_command): Use add_basic_prefix_cmd,
7236 add_show_prefix_cmd.
7237 * mips-tdep.c (set_mipsfpu_command): Remove.
7238 (_initialize_mips_tdep): Use add_basic_prefix_cmd.
7239 * dwarf2/index-cache.c (set_index_cache_command): Remove.
7240 (_initialize_index_cache): Use add_basic_prefix_cmd.
7241 * memattr.c (dummy_cmd): Remove.
7242 (_initialize_mem): Use add_basic_prefix_cmd, add_show_prefix_cmd.
7243 * tui/tui-win.c (set_tui_cmd, show_tui_cmd): Remove.
7244 (_initialize_tui_win): Use add_basic_prefix_cmd,
7245 add_show_prefix_cmd.
7246 * cli/cli-logging.c (set_logging_command): Remove.
7247 (_initialize_cli_logging): Use add_basic_prefix_cmd,
7248 add_show_prefix_cmd.
7249 (show_logging_command): Remove.
7250 * target.c (target_command): Remove.
7251 (add_target): Use add_basic_prefix_cmd.
7252
a51119cd
HD
72532020-05-02 Hannes Domani <ssbssa@yahoo.de>
7254
7255 * gdbtypes.h (enum dynamic_prop_node_kind): Fix typo.
7256
652fc23a 72572020-05-01 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6a6ea76a 7258
652fc23a
PW
7259 * gdb-gdb.gdb-in: Remove breakpoint on disappeared function
7260 info_command.
7261
117539e6
KR
72622020-04-30 Kamil Rytarowski <n54@gmx.com>
7263
7264 * nbsd-nat.c (nbsd_enable_proc_events)
7265 (nbsd_nat_target::post_startup_inferior): Add.
7266 (nbsd_nat_target::post_attach): Call `nbsd_enable_proc_events'.
7267 (nbsd_nat_target::update_thread_list): Rewrite.
7268 (nbsd_nat_target::wait): Handle "PTRACE_LWP_EXIT" and
7269 "PTRACE_LWP_CREATE".
7270 * nbsd-nat.h (nbsd_nat_target::post_startup_inferior): Add.
7271
102e38eb 72722020-04-30 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6a6ea76a 7273
102e38eb
PW
7274 * stack.c (_initialize_stack): Remove duplicated creation
7275 of "frame" command and "f" alias.
7276
ee9d1e5f
HD
72772020-04-30 Hannes Domani <ssbssa@yahoo.de>
7278
7279 PR gdb/18706
7280 * gdbtypes.c (check_typedef): Calculate size of array of
7281 stubbed type.
7282
627c7fb8
HD
72832020-04-30 Hannes Domani <ssbssa@yahoo.de>
7284
7285 PR gdb/15559
7286 * i386-tdep.c (i386_push_dummy_call): Call
7287 i386_thiscall_push_dummy_call.
7288 (i386_thiscall_push_dummy_call): New function.
7289 * i386-tdep.h (i386_thiscall_push_dummy_call): Declare.
7290 * i386-windows-tdep.c (i386_windows_push_dummy_call): New function.
7291 (i386_windows_init_abi): Call set_gdbarch_push_dummy_call.
7292
ffc2844e
SM
72932020-04-29 Simon Marchi <simon.marchi@efficios.com>
7294
7295 * gdbarch.sh (do_read): Add shellcheck disable directive for
7296 warning SC2162.
7297
1207375d
SM
72982020-04-29 Simon Marchi <simon.marchi@efficios.com>
7299
7300 * gdbarch.sh: Use ${foo:-} where shellcheck would report a
7301 "referenced but not assigned" warning.
7302
9fdb2916
SM
73032020-04-29 Simon Marchi <simon.marchi@efficios.com>
7304
7305 * gdbarch.sh: Remove code that sets fallbackdefault.
7306
759cea5e
SM
73072020-04-29 Simon Marchi <simon.marchi@efficios.com>
7308
7309 * gdbarch.sh: Use shell operators && and || instead of
7310 -a and -o.
7311
cb02ab24
SM
73122020-04-29 Simon Marchi <simon.marchi@efficios.com>
7313
7314 * gdbarch.sh: Use $(...) instead of `...`.
7315
a6fc5ffc
SM
73162020-04-29 Simon Marchi <simon.marchi@efficios.com>
7317
7318 * gdbarch.sh: Use double quotes around variables.
7319
8d113d13
SM
73202020-04-29 Simon Marchi <simon.marchi@efficios.com>
7321
7322 * gdbarch.sh: Use %s with printf, instead of variables in the
7323 format string.
7324
ed6acedd
TT
73252020-04-29 Tom Tromey <tromey@adacore.com>
7326
7327 PR ada/25875:
7328 * dwarf2/read.c (update_enumeration_type_from_children): Compute
7329 type fields here.
7330 (read_enumeration_type): Call
7331 update_enumeration_type_from_children later. Update comments.
7332 (process_enumeration_scope): Don't create type fields.
7333
b68b1b58
KR
73342020-04-29 Kamil Rytarowski <n54@gmx.com>
7335
7336 * nbsd-tdep.c: Include "xml-syscall.h".
7337 (nbsd_init_abi): Call `set_xml_syscall_file_name'.
7338
f94b2e03
KR
73392020-04-29 Kamil Rytarowski <n54@gmx.com>
7340
7341 * nbsd-nat.c: Include "sys/wait.h".
7342 (nbsd_resume, nbsd_nat_target::resume, nbsd_wait)
7343 (nbsd_nat_target::wait, nbsd_nat_target::insert_exec_catchpoint)
7344 (nbsd_nat_target::remove_exec_catchpoint)
7345 (nbsd_nat_target::set_syscall_catchpoint): Add.
7346 * nbsd-nat.h (nbsd_nat_target::resume, nbsd_nat_target::wait)
7347 (nbsd_nat_target::insert_exec_catchpoint)
7348 (nbsd_nat_target::remove_exec_catchpoint)
7349 (nbsd_nat_target::set_syscall_catchpoint): Add.
7350 * nbsd-tdep.c (nbsd_get_syscall_number): Add.
7351 (nbsd_init_abi): Call `set_gdbarch_get_syscall_number' and pass
7352 `nbsd_get_syscall_number'.
7353
fc49bc72
TT
73542020-04-29 Tom Tromey <tom@tromey.com>
7355
7356 * stack.c (print_block_frame_labels): Remove.
7357
d642b692
HD
73582020-04-29 Hannes Domani <ssbssa@yahoo.de>
7359
7360 PR gdb/17320
7361 * ada-valprint.c (val_print_packed_array_elements): Move array
7362 end bracket to new line.
7363 (ada_val_print_string): Remove extra spaces before first array
7364 element.
7365 * c-valprint.c (c_value_print_array): Likewise.
7366 * m2-valprint.c (m2_print_array_contents): Likewise.
7367 (m2_value_print_inner): Likewise.
7368 * p-valprint.c (pascal_value_print_inner): Likewise.
7369 * valprint.c (generic_val_print_array): Likewise.
7370 (value_print_array_elements): Move first array element and array
7371 end bracket to new line.
7372
ea90f227
TV
73732020-04-29 Tom de Vries <tdevries@suse.de>
7374
7375 PR symtab/25889
7376 * linespec.c (find_method): Fix ix calculation.
7377
4498ef4f
KR
73782020-04-28 Kamil Rytarowski <n54@gmx.com>
7379
7380 * syscalls/update-netbsd.sh: New file.
7381 * syscalls/netbsd.xml: Regenerate.
7382 * data-directory/Makefile.in: Register `netbsd.xml' in
7383 `SYSCALLS_FILES'.
7384
a55e30b5
SM
73852020-04-28 Simon Marchi <simon.marchi@efficios.com>
7386
7387 * syscalls/update-freebsd.sh: Add double quotes.
7388
2b2fbab8
TT
73892020-04-28 Tom Tromey <tom@tromey.com>
7390
7391 * NEWS: Update.
7392 * python/py-cmd.c (gdbpy_initialize_commands): Add COMMAND_TUI.
7393 (cmdpy_init): Allow class_tui.
7394
a65189c9
TV
73952020-04-28 Mark Williams <mark@myosotissp.com>
7396
7397 PR gdb/24480
7398 * dwarf2read.c: Add missing assingments to list_in_scope when
7399 start_symtab was already called.
7400
1b95cdb7
SM
74012020-04-28 Simon Marchi <simon.marchi@efficios.com>
7402
7403 PR gdb/25881
7404 * dwarf2/read.c (offset_map_type): Use
7405 gdb:hash_enum<sect_offset> as hash function.
7406
15cd93d0
TV
74072020-04-28 Tom de Vries <tdevries@suse.de>
7408
7409 * dwarf2/read.c (process_structure_scope): Add symbol for struct decl
7410 with DW_AT_signature.
7411
1eb39914
SM
74122020-04-27 Simon Marchi <simon.marchi@efficios.com>
7413
7414 * configure.ac: Remove check for fs_base/gs_base in
7415 user_regs_struct.
7416 * configure: Re-generate.
7417 * config.in: Re-generate.
7418 * amd64-nat.c (amd64_native_gregset_reg_offset): Adjust.
7419 * amd64-linux-nat.c (amd64_linux_nat_target::fetch_registers,
7420 amd64_linux_nat_target::store_registers, ps_get_thread_area, ): Adjust.
7421
991a3e2e
LM
74222020-04-27 Luis Machado <luis.machado@linaro.org>
7423
7424 * dwarf2/frame-tailcall.c (dwarf2_tailcall_sniffer_first): Handle
7425 problematic inline frame unwinding situation.
7426 * frame.c (frame_id_computed_p): New function.
7427 * frame.h (frame_id_computed_p): New prototype.
7428
361ba0e8
TT
74292020-04-26 Tom Tromey <tom@tromey.com>
7430
7431 * command.h (enum command_class) <class_pseudo>: Remove.
7432
bc3609fd
PW
74332020-04-26 Philippe Waroquiers <philippe.waroquiers@skynet.be>
7434
7435 * cli/cli-decode.c (lookup_cmd_composition): Fix comments
7436 and whitespace.
7437
b9771db7
KR
74382020-04-25 Kamil Rytarowski <n54@gmx.com>
7439
ec16513e
SM
7440 * inf-ptrace.c (inf_ptrace_target::wait): Remove
7441 `PT_GET_PROCESS_STATE' block.
b9771db7 7442
7151c1af
TT
74432020-04-24 Tom Tromey <tom@tromey.com>
7444
7445 * symtab.h (symbol_get_demangled_name): Don't declare.
7446 * symtab.c (symbol_get_demangled_name): Remove.
7447 (general_symbol_info::natural_name)
7448 (general_symbol_info::demangled_name): Update.
7449
906bb4c5
TT
74502020-04-24 Tom Tromey <tom@tromey.com>
7451
7452 PR rust/25025:
7453 * dwarf2/read.c (dwarf2_physname): Do not demangle for Rust.
7454
bcfe6157
TT
74552020-04-24 Tom Tromey <tom@tromey.com>
7456
7457 PR symtab/12707:
7458 * dwarf2/read.c (add_partial_symbol): Use the linkage name if it
7459 exists.
7460 (new_symbol): Likewise.
7461 * compile/compile-object-load.c (get_out_value_type): Use
7462 symbol_matches_search_name.
7463
f049a313
TT
74642020-04-24 Tom Tromey <tom@tromey.com>
7465
7466 * dwarf2/read.c (add_partial_symbol): Do not call
7467 compute_and_set_names.
7468
76e288d1
TT
74692020-04-24 Tom Tromey <tom@tromey.com>
7470
7471 * dwarf2/read.c (add_partial_symbol): Use new add_psymbol_to_list
7472 overload.
7473
2467f4f6
TT
74742020-04-24 Tom Tromey <tom@tromey.com>
7475
7476 * psymtab.c (add_psymbol_to_bcache): Simplify calling convention.
7477 (add_psymbol_to_list): New overload. Make old overload call new
7478 one.
7479 * psympriv.h (add_psymbol_to_list): New overload.
7480
e61108c9
TT
74812020-04-24 Tom Tromey <tom@tromey.com>
7482
7483 * dwarf2/read.c (partial_die_info::read) <case
7484 DW_AT_linkage_name>: Use value_as_string.
7485 (dwarf2_string_attr): Use value_as_string.
7486 * dwarf2/attribute.h (struct attribute) <value_as_string>: Declare
7487 method.
7488 * dwarf2/attribute.c (attribute::value_as_string): New method.
7489
8c87a452
TT
74902020-04-24 Tom Tromey <tom@tromey.com>
7491
7492 * symtab.c (general_symbol_info::natural_name)
7493 (general_symbol_info::demangled_name): Check for language_rust.
7494
787de330
TT
74952020-04-24 Tom Tromey <tom@tromey.com>
7496
7497 * dwarf2/read.c (dw2_linkage_name): Move Rust "{" hack here...
7498 (dwarf2_physname): ... from here.
7499 (partial_die_info::read): Add Rust "{" hack.
7500
ff985671
TT
75012020-04-24 Tom Tromey <tom@tromey.com>
7502
7503 * symtab.h (struct general_symbol_info) <set_demangled_name>: New
7504 method.
7505 (symbol_set_demangled_name): Don't declare.
7506 * symtab.c (general_symbol_info::set_demangled_name): Rename from
7507 symbol_set_demangled_name.
7508 (general_symbol_info::set_language)
7509 (general_symbol_info::compute_and_set_names): Update.
7510 * minsyms.c (minimal_symbol_reader::install): Update.
7511 * dwarf2/read.c (new_symbol): Update.
7512
1acda803
TT
75132020-04-24 Tom Tromey <tromey@adacore.com>
7514
7515 PR python/23662:
7516 * python/py-type.c (convert_field): Handle
7517 FIELD_LOC_KIND_DWARF_BLOCK.
7518 (typy_get_sizeof): Handle TYPE_HAS_DYNAMIC_LENGTH.
7519 (typy_get_dynamic): Nw function.
7520 (type_object_getset): Add "dynamic".
7521 * NEWS: Add entry.
7522
d656f129
TT
75232020-04-24 Tom Tromey <tromey@adacore.com>
7524
7525 * ada-typeprint.c (print_choices, print_variant_part)
7526 (print_record_field_types_dynamic): New functions.
7527 (print_record_field_types): Use print_record_field_types_dynamic.
7528
7d79de9a
TT
75292020-04-24 Tom Tromey <tromey@adacore.com>
7530
7531 * dwarf2/read.c (handle_data_member_location): New overload.
7532 (dwarf2_add_field): Use it.
7533 (decode_locdesc): Add "computed" parameter. Update comment.
7534 * gdbtypes.c (is_dynamic_type_internal): Also look for
7535 FIELD_LOC_KIND_DWARF_BLOCK.
7536 (resolve_dynamic_struct): Handle FIELD_LOC_KIND_DWARF_BLOCK.
7537 * gdbtypes.c (is_dynamic_type_internal): Add special case for C++
7538 virtual base classes.
7539 * gnu-v3-abi.c (gnuv3_baseclass_offset): Handle
7540 FIELD_LOC_KIND_DWARF_BLOCK.
7541
f8e89861
TT
75422020-04-24 Tom Tromey <tromey@adacore.com>
7543
7544 * dwarf2/read.c (read_structure_type): Handle dynamic length.
7545 * gdbtypes.c (is_dynamic_type_internal): Check
7546 TYPE_HAS_DYNAMIC_LENGTH.
7547 (resolve_dynamic_type_internal): Use TYPE_DYNAMIC_LENGTH.
7548 * gdbtypes.h (TYPE_HAS_DYNAMIC_LENGTH, TYPE_DYNAMIC_LENGTH):
7549 New macros.
7550 (enum dynamic_prop_node_kind) <DYN_PROP_BYTE_SIZE>: New
7551 constant.
7552
9c6a1327
TT
75532020-04-24 Tom Tromey <tromey@adacore.com>
7554
7555 * dwarf2/read.c (struct variant_field): Rewrite.
7556 (struct variant_part_builder): New.
7557 (struct nextfield): Remove "variant" field. Add "offset".
7558 (struct field_info): Add "current_variant_part" and
7559 "variant_parts".
7560 (alloc_discriminant_info): Remove.
7561 (alloc_rust_variant): New function.
7562 (quirk_rust_enum): Update.
7563 (dwarf2_add_field): Set "offset" member. Don't handle
7564 DW_TAG_variant_part.
7565 (offset_map_type): New typedef.
7566 (convert_variant_range, create_one_variant)
7567 (create_one_variant_part, create_variant_parts)
7568 (add_variant_property): New functions.
7569 (dwarf2_attach_fields_to_type): Call add_variant_property.
7570 (read_structure_type): Don't handle DW_TAG_variant_part.
7571 (handle_variant_part, handle_variant): New functions.
7572 (handle_struct_member_die): Use them.
7573 (process_structure_scope): Don't handle variant parts.
7574 * gdbtypes.h (TYPE_FLAG_DISCRIMINATED_UNION): Remove.
7575 (struct discriminant_info): Remove.
7576 (enum dynamic_prop_node_kind) <DYN_PROP_DISCRIMINATED>: Remove.
7577 (struct main_type) <flag_discriminated_union>: Remove.
7578 * rust-lang.c (rust_enum_p, rust_empty_enum_p): Rewrite.
7579 (rust_enum_variant): Return int. Remove "contents". Rewrite.
7580 (rust_print_enum, rust_print_struct_def, rust_evaluate_subexp):
7581 Update.
7582 * valops.c (value_union_variant): Remove.
7583 * value.h (value_union_variant): Don't declare.
7584
b249d2c2
TT
75852020-04-24 Tom Tromey <tromey@adacore.com>
7586
7587 * ada-lang.c (ada_discrete_type_high_bound, ada_discrete_type_low)
7588 (ada_value_primitive_packed_val): Update.
7589 * ada-valprint.c (ada_value_print_1): Update.
7590 * dwarf2/loc.c (evaluate_for_locexpr_baton): New struct.
7591 (dwarf2_locexpr_baton_eval): Take a property_addr_info rather than
7592 just an address. Use evaluate_for_locexpr_baton.
7593 (dwarf2_evaluate_property): Update.
7594 * dwarf2/loc.h (struct property_addr_info) <valaddr>: Now an
7595 array_view.
7596 * findvar.c (default_read_var_value): Update.
7597 * gdbtypes.c (compute_variant_fields_inner)
7598 (resolve_dynamic_type_internal): Update.
7599 (resolve_dynamic_type): Change type of valaddr parameter.
7600 * gdbtypes.h (resolve_dynamic_type): Update.
7601 * valarith.c (value_subscripted_rvalue): Update.
7602 * value.c (value_from_contents_and_address): Update.
7603
61122aa9
TT
76042020-04-24 Tom Tromey <tromey@adacore.com>
7605
7606 * dwarf2/loc.c (dwarf2_locexpr_baton_eval): Add
7607 "push_initial_value" parameter.
7608 (dwarf2_evaluate_property): Likewise.
7609 * dwarf2/loc.h (dwarf2_evaluate_property): Update.
7610
ef83a141
TT
76112020-04-24 Tom Tromey <tromey@adacore.com>
7612
7613 * gdbtypes.c (is_dynamic_type_internal): Check for variant parts.
7614 (variant::matches, compute_variant_fields_recurse)
7615 (compute_variant_fields_inner, compute_variant_fields): New
7616 functions.
7617 (resolve_dynamic_struct): Check for DYN_PROP_VARIANT_PARTS.
7618 Use resolved_type after type is made.
7619 (operator==): Add new cases.
7620 * gdbtypes.h (TYPE_HAS_VARIANT_PARTS): New macro.
7621 (struct discriminant_range, struct variant, struct variant_part):
7622 New.
7623 (union dynamic_prop_data) <variant_parts, original_type>: New
7624 members.
7625 (enum dynamic_prop_node_kind) <DYN_PROP_VARIANT_PARTS>: New constant.
7626 (enum dynamic_prop_kind) <PROP_TYPE, PROP_VARIANT_PARTS>: New
7627 constants.
7628 * value.c (unpack_bits_as_long): Now public.
7629 * value.h (unpack_bits_as_long): Declare.
7630
675127ec
TT
76312020-04-24 Tom Tromey <tromey@adacore.com>
7632
7633 * rs6000-tdep.c (struct ppc_variant): Rename from "variant".
7634 (variants, find_variant_by_arch, rs6000_gdbarch_init): Update.
7635
9852ceef
HD
76362020-04-24 Hannes Domani <ssbssa@yahoo.de>
7637
7638 * windows-tdep.c (exception_values): Add WOW64 exception numbers.
7639
7632c6ce
KR
76402020-04-24 Kamil Rytarowski <n54@gmx.com>
7641
7642 * inf-ptrace.h (follow_fork, insert_fork_catchpoint)
7643 (remove_fork_catchpoint, post_startup_inferior)
7644 (post_attach): Move...
7645 * obsd-nat.h (follow_fork, insert_fork_catchpoint)
7646 (remove_fork_catchpoint, post_startup_inferior)
7647 (post_attach): ...here.
7648 * inf-ptrace.c (follow_fork, insert_fork_catchpoint)
7649 (remove_fork_catchpoint, post_startup_inferior)
7650 (post_attach): Move...
7651 * obsd-nat.c (follow_fork, insert_fork_catchpoint)
7652 (remove_fork_catchpoint, post_startup_inferior)
7653 (post_attach): ...here.
7654
7be2bb4f
TT
76552020-04-24 Tom Tromey <tromey@adacore.com>
7656
7657 * nat/windows-nat.h (struct windows_thread_info)
7658 <pc_adjusted>: New member.
7659 * windows-nat.c (windows_fetch_one_register): Check
7660 pc_adjusted.
7661 (windows_nat_target::get_windows_debug_event)
7662 (windows_nat_target::wait): Set pc_adjusted.
7663
f80cb3b4
TV
76642020-04-24 Tom de Vries <tdevries@suse.de>
7665
7666 * contrib/cc-with-tweaks.sh: Remove <exec>.gdb-index file handling.
7667 Run gdb-add-index inside temp dir.
7668
29514b87
TT
76692020-04-23 Tom Tromey <tromey@adacore.com>
7670
7671 * windows-tdep.c (is_linked_with_cygwin_dll): Always update "iter"
7672 in loop.
7673
5939967b
LM
76742020-04-23 Luis Machado <luis.machado@linaro.org>
7675
7676 * dwarf2/frame-tailcall.c (dwarf2_tailcall_sniffer_first): Use
7677 get_frame_register instead of gdbarch_unwind_pc.
7678
70bc38f5
TV
76792020-04-23 Tom de Vries <tdevries@suse.de>
7680
7681 * symtab.c (lookup_global_symbol): Prefer def over decl.
7682
de82891c
TV
76832020-04-23 Tom de Vries <tdevries@suse.de>
7684
7685 PR symtab/25807
7686 * block.c (best_symbol, better_symbol): Promote to external.
7687 * block.h (best_symbol, better_symbol): Declare.
7688 * symtab.c (lookup_symbol_in_objfile_symtabs): Prefer def over
7689 decl.
7690
ecc6c606
TT
76912020-04-23 Tom Tromey <tromey@adacore.com>
7692
7693 PR ada/25837:
7694 * dwarf2/read.c (dw2_expand_symtabs_matching_symbol): Store a
7695 "const char *", not a "const std::string &".
7696 <name_and_matcher::operator==>: Update.
7697 * unittests/lookup_name_info-selftests.c: Change type of
7698 "result".
7699
740480b8
TT
77002020-04-23 Tom Tromey <tom@tromey.com>
7701
7702 * inferior.h (iterate_over_inferiors): Don't declare.
7703 * inferior.c (iterate_over_inferiors): Remove.
7704 * darwin-nat.c (find_inferior_task_it, find_inferior_pid_it):
7705 Remove.
7706 (darwin_find_inferior_by_task, darwin_find_inferior_by_pid): Don't
7707 use iterate_over_inferiors.
7708 (darwin_resume_inferior_it)
7709 (struct resume_inferior_threads_param)
7710 (darwin_resume_inferior_threads_it): Remove.
7711 (darwin_nat_target::resume): Don't use iterate_over_inferiors.
7712
ae3ab1f0
TV
77132020-04-23 Tom de Vries <tdevries@suse.de>
7714
7715 * blockframe.c (find_pc_partial_function): Use
7716 find_pc_sect_compunit_symtab rather than
7717 objfile->sf->qf->find_pc_sect_compunit_symtab.
7718
317d2668
TV
77192020-04-22 Tom de Vries <tdevries@suse.de>
7720
7721 PR symtab/25764
7722 * dwarf2/read.c (scan_partial_symbols): Allow external variable decls
7723 in psymtabs.
7724
eea9e357
TV
77252020-04-22 Tom de Vries <tdevries@suse.de>
7726
7727 PR symtab/25801
7728 * psymtab.c (psym_map_symtabs_matching_filename): Don't skip shared
7729 symtabs.
7730
3d5afab3
TV
77312020-04-22 Tom de Vries <tdevries@suse.de>
7732
7733 PR symtab/25700
7734 * dwarf2/read.c (dwarf2_build_psymtabs_hard): Don't create psymtab for
7735 CU if already created.
7736
d43b7a2d
TBA
77372020-04-21 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
7738
7739 * infrun.c (displaced_step_fixup): Switch to the event_thread
7740 before calling displaced_step_restore, not after.
7741
d89edf9b
MM
77422020-04-21 Markus Metzger <markus.t.metzger@intel.com>
7743
7744 * record-btrace.c (record_btrace_enable_warn): Ignore thread if
7745 its inferior is not recorded by us.
7746 (record_btrace_target_open): Replace call to
7747 all_non_exited_threads () with call to current_inferior
7748 ()->non_exited_threads ().
7749 (record_btrace_target::stop_recording): Likewise.
7750 (record_btrace_target::close): Likewise.
7751 (record_btrace_target::wait): Likewise.
7752 (record_btrace_target::record_stop_replaying): Likewise.
7753
5897fd49
MM
77542020-04-21 Markus Metzger <markus.t.metzger@intel.com>
7755
7756 * btrace.c (btrace_enable): Throw an error on double enables and
7757 when enabling recording fails.
7758 (btrace_disable): Throw an error if the thread is not recorded.
7759
1a476b6d
MM
77602020-04-21 Markus Metzger <markus.t.metzger@intel.com>
7761
7762 * record-btrace.c (record_btrace_target::fetch_registers): Forward
7763 request if we do not have a thread_info.
7764
4778a5f8
TV
77652020-04-21 Tom de Vries <tdevries@suse.de>
7766
7767 PR gdb/25471
7768 * thread.c
7769 (scoped_restore_current_thread::scoped_restore_current_thread): Catch
7770 exception in get_frame_id.
7771
0fa7617d
TT
77722020-04-20 Tom Tromey <tromey@adacore.com>
7773
7774 * python/python.c (struct gdbpy_event): Mark move constructor as
7775 noexcept.
7776 * python/py-tui.c (class gdbpy_tui_window_maker): Mark move
7777 constructor as noexcept.
7778 * completer.h (struct completion_result): Mark move constructor as
7779 noexcept.
7780 * completer.c (completion_result::completion_result): Use
7781 initialization style. Don't call reset_match_list.
7782
ad23bda0
MS
77832020-04-20 Mihails Strasuns <mihails.strasuns@intel.com>
7784
7785 * MAINTAINERS (Write After Approval): Add myself.
7786
45e1f031
TT
77872020-04-18 Tom Tromey <tom@tromey.com>
7788
7789 * windows-tdep.c (init_w32_command_list)
7790 (w32_prefix_command_valid): Restore.
7791 (_initialize_windows_tdep): Call init_w32_command_list.
7792
08feed99
TT
77932020-04-18 Tom Tromey <tom@tromey.com>
7794
7795 * xcoffread.c (enter_line_range, scan_xcoff_symtab): Update.
7796 * value.c (value_fn_field): Update.
7797 * valops.c (find_function_in_inferior)
7798 (value_allocate_space_in_inferior): Update.
7799 * tui/tui-winsource.c (tui_update_source_windows_with_line):
7800 Update.
7801 * tui/tui-source.c (tui_source_window::set_contents): Update.
7802 * symtab.c (lookup_global_or_static_symbol)
7803 (find_function_start_sal_1, skip_prologue_sal)
7804 (print_msymbol_info, find_gnu_ifunc, symbol_arch): Update.
7805 * symmisc.c (dump_msymbols, dump_symtab_1)
7806 (maintenance_print_one_line_table): Update.
7807 * symfile.c (init_entry_point_info, section_is_mapped)
7808 (list_overlays_command, simple_read_overlay_table)
7809 (simple_overlay_update_1): Update.
7810 * stap-probe.c (handle_stap_probe): Update.
7811 * stabsread.c (dbx_init_float_type, define_symbol)
7812 (read_one_struct_field, read_enum_type, read_range_type): Update.
7813 * source.c (info_line_command): Update.
7814 * python/python.c (gdbpy_source_objfile_script)
7815 (gdbpy_execute_objfile_script): Update.
7816 * python/py-type.c (save_objfile_types): Update.
7817 * python/py-objfile.c (py_free_objfile): Update.
7818 * python/py-inferior.c (python_new_objfile): Update.
7819 * psymtab.c (psym_find_pc_sect_compunit_symtab, dump_psymtab)
7820 (dump_psymtab_addrmap_1, maintenance_info_psymtabs)
7821 (maintenance_check_psymtabs): Update.
7822 * printcmd.c (info_address_command): Update.
7823 * objfiles.h (struct objfile) <arch>: New method, from
7824 get_objfile_arch.
7825 (get_objfile_arch): Don't declare.
7826 * objfiles.c (get_objfile_arch): Remove.
7827 (filter_overlapping_sections): Update.
7828 * minsyms.c (msymbol_is_function): Update.
7829 * mi/mi-symbol-cmds.c (mi_cmd_symbol_list_lines)
7830 (output_nondebug_symbol): Update.
7831 * mdebugread.c (parse_symbol, basic_type, parse_partial_symbols)
7832 (mdebug_expand_psymtab): Update.
7833 * machoread.c (macho_add_oso_symfile): Update.
7834 * linux-tdep.c (linux_infcall_mmap, linux_infcall_munmap):
7835 Update.
7836 * linux-fork.c (checkpoint_command): Update.
7837 * linespec.c (convert_linespec_to_sals): Update.
7838 * jit.c (finalize_symtab): Update.
7839 * infrun.c (insert_exception_resume_from_probe): Update.
7840 * ia64-tdep.c (ia64_find_unwind_table): Update.
7841 * hppa-tdep.c (internalize_unwinds): Update.
7842 * gdbtypes.c (get_type_arch, init_float_type, objfile_type):
7843 Update.
7844 * gcore.c (call_target_sbrk): Update.
7845 * elfread.c (record_minimal_symbol, elf_symtab_read)
7846 (elf_rel_plt_read, elf_gnu_ifunc_record_cache)
7847 (elf_gnu_ifunc_resolve_by_got): Update.
7848 * dwarf2/read.c (create_addrmap_from_index)
7849 (create_addrmap_from_aranges, dw2_find_pc_sect_compunit_symtab)
7850 (read_debug_names_from_section)
7851 (process_psymtab_comp_unit_reader, add_partial_symbol)
7852 (add_partial_subprogram, process_full_comp_unit)
7853 (read_file_scope, read_func_scope, read_lexical_block_scope)
7854 (read_call_site_scope, dwarf2_ranges_read)
7855 (dwarf2_record_block_ranges, dwarf2_add_field)
7856 (mark_common_block_symbol_computed, read_tag_pointer_type)
7857 (read_tag_string_type, dwarf2_init_float_type)
7858 (dwarf2_init_complex_target_type, read_base_type)
7859 (partial_die_info::read, partial_die_info::read)
7860 (read_attribute_value, dwarf_decode_lines_1, new_symbol)
7861 (dwarf2_fetch_die_loc_sect_off): Update.
7862 * dwarf2/loc.c (dwarf2_find_location_expression)
7863 (class dwarf_evaluate_loc_desc, rw_pieced_value)
7864 (dwarf2_evaluate_loc_desc_full, dwarf2_locexpr_baton_eval)
7865 (dwarf2_loc_desc_get_symbol_read_needs)
7866 (locexpr_describe_location_piece, locexpr_describe_location_1)
7867 (loclist_describe_location): Update.
7868 * dwarf2/index-write.c (write_debug_names): Update.
7869 * dwarf2/frame.c (dwarf2_build_frame_info): Update.
7870 * dtrace-probe.c (dtrace_process_dof): Update.
7871 * dbxread.c (read_dbx_symtab, dbx_end_psymtab)
7872 (process_one_symbol): Update.
7873 * ctfread.c (ctf_init_float_type, read_base_type): Update.
7874 * coffread.c (coff_symtab_read, enter_linenos, decode_base_type)
7875 (coff_read_enum_type): Update.
7876 * cli/cli-cmds.c (edit_command, list_command): Update.
7877 * buildsym.c (buildsym_compunit::finish_block_internal): Update.
7878 * breakpoint.c (create_overlay_event_breakpoint)
7879 (create_longjmp_master_breakpoint)
7880 (create_std_terminate_master_breakpoint)
7881 (create_exception_master_breakpoint, get_sal_arch): Update.
7882 * block.c (block_gdbarch): Update.
7883 * annotate.c (annotate_source_line): Update.
7884
0743fc83
TT
78852020-04-17 Tom Tromey <tromey@adacore.com>
7886
7887 * auto-load.c (show_auto_load_cmd): Remove.
7888 (auto_load_show_cmdlist_get): Use add_show_prefix_cmd.
7889 * arc-tdep.c (_initialize_arc_tdep): Use add_show_prefix_cmd.
7890 (maintenance_print_arc_command): Remove.
7891 * tui/tui-win.c (tui_command): Remove.
7892 (tui_get_cmd_list): Use add_basic_prefix_cmd.
7893 * tui/tui-layout.c (tui_layout_command): Remove.
7894 (_initialize_tui_layout): Use add_basic_prefix_cmd.
7895 * python/python.c (user_set_python, user_show_python): Remove.
7896 (_initialize_python): Use add_basic_prefix_cmd,
7897 add_show_prefix_cmd.
7898 * guile/guile.c (set_guile_command, show_guile_command): Remove.
7899 (install_gdb_commands): Use add_basic_prefix_cmd,
7900 add_show_prefix_cmd.
7901 (info_guile_command): Remove.
7902 * dwarf2/read.c (set_dwarf_cmd, show_dwarf_cmd): Remove.
7903 (_initialize_dwarf2_read): Use add_basic_prefix_cmd,
7904 add_show_prefix_cmd.
7905 * cli/cli-style.h (class cli_style_option) <add_setshow_commands>:
7906 Remove do_set and do_show parameters.
7907 * cli/cli-style.c (set_style, show_style): Remove.
7908 (_initialize_cli_style): Use add_basic_prefix_cmd,
7909 add_show_prefix_cmd.
7910 (cli_style_option::add_setshow_commands): Remove do_set and
7911 do_show parameters.
7912 (cli_style_option::add_setshow_commands): Use
7913 add_basic_prefix_cmd, add_show_prefix_cmd.
7914 (STYLE_ADD_SETSHOW_COMMANDS): Remove macro.
7915 (set_style_name): Remove.
7916 * cli/cli-dump.c (dump_command, append_command): Remove.
7917 (srec_dump_command, ihex_dump_command, verilog_dump_command)
7918 (tekhex_dump_command, binary_dump_command)
7919 (binary_append_command): Remove.
7920 (_initialize_cli_dump): Use add_basic_prefix_cmd.
7921 * windows-tdep.c (w32_prefix_command_valid): Remove global.
7922 (init_w32_command_list): Remove; move into ...
7923 (_initialize_windows_tdep): ... here. Use add_basic_prefix_cmd.
7924 * valprint.c (set_print, show_print, set_print_raw)
7925 (show_print_raw): Remove.
7926 (_initialize_valprint): Use add_basic_prefix_cmd,
7927 add_show_prefix_cmd.
7928 * typeprint.c (set_print_type, show_print_type): Remove.
7929 (_initialize_typeprint): Use add_basic_prefix_cmd,
7930 add_show_prefix_cmd.
7931 * record.c (set_record_command, show_record_command): Remove.
7932 (_initialize_record): Use add_basic_prefix_cmd,
7933 add_show_prefix_cmd.
7934 * cli/cli-cmds.c (_initialize_cli_cmds): Use add_basic_prefix_cmd,
7935 add_show_prefix_cmd.
7936 (info_command, show_command, set_debug, show_debug): Remove.
7937 * top.h (set_history, show_history): Don't declare.
7938 * top.c (set_history, show_history): Remove.
7939 * target-descriptions.c (set_tdesc_cmd, show_tdesc_cmd)
7940 (unset_tdesc_cmd): Remove.
7941 (_initialize_target_descriptions): Use add_basic_prefix_cmd,
7942 add_show_prefix_cmd.
7943 * symtab.c (info_module_command): Remove.
7944 (_initialize_symtab): Use add_basic_prefix_cmd.
7945 * symfile.c (overlay_command): Remove.
7946 (_initialize_symfile): Use add_basic_prefix_cmd.
7947 * sparc64-tdep.c (info_adi_command): Remove.
7948 (_initialize_sparc64_adi_tdep): Use add_basic_prefix_cmd.
7949 * sh-tdep.c (show_sh_command, set_sh_command): Remove.
7950 (_initialize_sh_tdep): Use add_basic_prefix_cmd,
7951 add_show_prefix_cmd.
7952 * serial.c (serial_set_cmd, serial_show_cmd): Remove.
7953 (_initialize_serial): Use add_basic_prefix_cmd,
7954 add_show_prefix_cmd.
7955 * ser-tcp.c (set_tcp_cmd, show_tcp_cmd): Remove.
7956 (_initialize_ser_tcp): Use add_basic_prefix_cmd,
7957 add_show_prefix_cmd.
7958 * rs6000-tdep.c (set_powerpc_command, show_powerpc_command)
7959 (_initialize_rs6000_tdep): Use add_basic_prefix_cmd,
7960 add_show_prefix_cmd.
7961 * riscv-tdep.c (show_riscv_command, set_riscv_command)
7962 (show_debug_riscv_command, set_debug_riscv_command): Remove.
7963 (_initialize_riscv_tdep): Use add_basic_prefix_cmd,
7964 add_show_prefix_cmd.
7965 * remote.c (remote_command, set_remote_cmd): Remove.
7966 (_initialize_remote): Use add_basic_prefix_cmd.
7967 * record-full.c (set_record_full_command)
7968 (show_record_full_command): Remove.
7969 (_initialize_record_full): Use add_basic_prefix_cmd,
7970 add_show_prefix_cmd.
7971 * record-btrace.c (cmd_set_record_btrace)
7972 (cmd_show_record_btrace, cmd_set_record_btrace_bts)
7973 (cmd_show_record_btrace_bts, cmd_set_record_btrace_pt)
7974 (cmd_show_record_btrace_pt): Remove.
7975 (_initialize_record_btrace): Use add_basic_prefix_cmd,
7976 add_show_prefix_cmd.
7977 * ravenscar-thread.c (set_ravenscar_command)
7978 (show_ravenscar_command): Remove.
7979 (_initialize_ravenscar): Use add_basic_prefix_cmd,
7980 add_show_prefix_cmd.
7981 * mips-tdep.c (show_mips_command, set_mips_command)
7982 (_initialize_mips_tdep): Use add_basic_prefix_cmd,
7983 add_show_prefix_cmd.
7984 * maint.c (maintenance_command, maintenance_info_command)
7985 (maintenance_check_command, maintenance_print_command)
7986 (maintenance_set_cmd, maintenance_show_cmd): Remove.
7987 (_initialize_maint_cmds): Use add_basic_prefix_cmd,
7988 add_show_prefix_cmd.
7989 (show_per_command_cmd): Remove.
7990 * maint-test-settings.c (maintenance_set_test_settings_cmd):
7991 Remove.
7992 (maintenance_show_test_settings_cmd): Remove.
7993 (_initialize_maint_test_settings): Use add_basic_prefix_cmd,
7994 add_show_prefix_cmd.
7995 * maint-test-options.c (maintenance_test_options_command):
7996 Remove.
7997 (_initialize_maint_test_options): Use add_basic_prefix_cmd.
7998 * macrocmd.c (macro_command): Remove
7999 (_initialize_macrocmd): Use add_basic_prefix_cmd.
8000 * language.c (set_check, show_check): Remove.
8001 (_initialize_language): Use add_basic_prefix_cmd,
8002 add_show_prefix_cmd.
8003 * infcmd.c (unset_command): Remove.
8004 (_initialize_infcmd): Use add_basic_prefix_cmd.
8005 * i386-tdep.c (set_mpx_cmd, show_mpx_cmd): Remove.
8006 (_initialize_i386_tdep): Use add_basic_prefix_cmd,
8007 add_show_prefix_cmd.
8008 * go32-nat.c (go32_info_dos_command): Remove.
8009 (_initialize_go32_nat): Use add_basic_prefix_cmd.
8010 * cli/cli-decode.c (do_prefix_cmd, add_basic_prefix_cmd)
8011 (do_show_prefix_cmd, add_show_prefix_cmd): New functions.
8012 * frame.c (set_backtrace_cmd, show_backtrace_cmd): Remove.
8013 (_initialize_frame): Use add_basic_prefix_cmd,
8014 add_show_prefix_cmd.
8015 * dcache.c (set_dcache_command, show_dcache_command): Remove.
8016 (_initialize_dcache): Use add_basic_prefix_cmd,
8017 add_show_prefix_cmd.
8018 * cp-support.c (maint_cplus_command): Remove.
8019 (_initialize_cp_support): Use add_basic_prefix_cmd.
8020 * btrace.c (maint_btrace_cmd, maint_btrace_set_cmd)
8021 (maint_btrace_show_cmd, maint_btrace_pt_set_cmd)
8022 (maint_btrace_pt_show_cmd, _initialize_btrace): Use
8023 add_basic_prefix_cmd, add_show_prefix_cmd.
8024 * breakpoint.c (save_command): Remove.
8025 (_initialize_breakpoint): Use add_basic_prefix_cmd.
8026 * arm-tdep.c (set_arm_command, show_arm_command): Remove.
8027 (_initialize_arm_tdep): Use add_basic_prefix_cmd,
8028 add_show_prefix_cmd.
8029 * ada-lang.c (maint_set_ada_cmd, maint_show_ada_cmd)
8030 (set_ada_command, show_ada_command): Remove.
8031 (_initialize_ada_language): Use add_basic_prefix_cmd,
8032 add_show_prefix_cmd.
8033 * command.h (add_basic_prefix_cmd, add_show_prefix_cmd): Declare.
8034
3557f442
KR
80352020-04-16 Kamil Rytarowski <n54@gmx.com>
8036
8037 * nbsd-nat.c (inf_ptrace_target::auxv_parse): Remove.
8038 * nbsd-nat.h (inf_ptrace_target::auxv_parse): Likewise.
8039
16197208
SM
80402020-04-16 Simon Marchi <simon.marchi@polymtl.ca>
8041
8042 * windows-tdep.c (is_linked_with_cygwin_dll): Add filename to
8043 warning messages.
8044
00ac85d3
SM
80452020-04-16 Simon Marchi <simon.marchi@polymtl.ca>
8046
8047 * windows-tdep.c (is_linked_with_cygwin_dll): Consider case where
8048 import table is not at beginning of .idata section.
8049
381ce63f
PA
80502020-04-16 Pedro Alves <palves@redhat.com>
8051
8052 * inferior.c (delete_inferior): Use delete operator directly
8053 instead of delete_program_space.
8054 * progspace.c (add_program_space): New, factored out from
8055 program_space::program_space.
8056 (remove_program_space): New, factored out from
8057 delete_program_space.
8058 (program_space::program_space): Remove intro comment. Rewrite.
8059 (program_space::~program_space): Remove intro comment. Call
8060 remove_program_space.
8061 (delete_program_space): Delete.
8062 * progspace.h (program_space::program_space): Make explicit. Move
8063 intro comment here, adjusted.
8064 (program_space::~program_space): Move intro comment here,
8065 adjusted.
8066 (delete_program_space): Remove.
8067
a010605f
TT
80682020-04-16 Tom Tromey <tromey@adacore.com>
8069
8070 * windows-nat.c (windows_nat::handle_access_violation): New
8071 function.
8072 * nat/windows-nat.h (handle_access_violation): Declare.
8073 * nat/windows-nat.c (handle_exception): Move Cygwin code to
8074 windows-nat.c. Call handle_access_violation.
8075
efba5c23
TV
80762020-04-16 Tom de Vries <tdevries@suse.de>
8077
8078 PR symtab/25791
8079 * dwarf2/index-write.c (write_gdbindex): Generate CU table entries for
8080 CUs without psymtab.
8081
97ed802d
KB
80822020-04-16 Kevin Buettner <kevinb@redhat.com>
8083
8084 * python/python.c (do_start_initialization): Don't call
8085 PyEval_InitThreads for Python 3.9 and beyond.
8086
c7d64809
KR
80872020-04-15 Kamil Rytarowski <n54@gmx.com>
8088
8089 * obsd-nat.c (obsd_nat_target::update_thread_list): Pass "this" to
8090 thread functions.
8091 (obsd_nat_target::wait): Likewise.
8092
ce127a96
TT
80932020-04-15 Tom Tromey <tromey@adacore.com>
8094
8095 * windows-nat.c (DEBUG_EXEC, DEBUG_EVENTS, DEBUG_MEM)
8096 (DEBUG_EXCEPT): Use debug_printf.
8097
99f1bc6a
AB
80982020-04-15 Andrew Burgess <andrew.burgess@embecosm.com>
8099
8100 * completer.c (class completion_tracker::completion_hash_entry)
8101 <hash_name>: New member function.
8102 (completion_tracker::discard_completions): New callback to hash a
8103 completion_hash_entry, pass this to htab_create_alloc.
8104
a0e9b532
JT
81052016-01-20 Jon Turney <jon.turney@dronecode.org.uk>
8106
8107 * windows-nat.c (windows_make_so): Warn rather than stopping with
8108 an error if realpath() fails.
8109
06ca5dd4
KR
81102020-04-14 Kamil Rytarowski <n54@gmx.com>
8111
8112 * nbsd-nat.c (nbsd_pid_to_kinfo_proc2): New.
8113 (nbsd_nat_target::info_proc): Add do_status.
8114
194d088f
TV
81152020-04-14 Simon Marchi <simon.marchi@polymtl.ca>
8116 Tom de Vries <tdevries@suse.de>
8117
8118 PR symtab/25718
8119 * psympriv.h (struct partial_symtab::read_symtab)
8120 (struct partial_symtab::expand_psymtab)
8121 (struct partial_symtab::read_dependencies): Update comments.
8122 * dwarf2/read.c (struct dwarf2_include_psymtab::read_symtab): Call
8123 read_symtab for includer.
8124 (struct dwarf2_include_psymtab::expand_psymtab): Assert false.
8125 (struct dwarf2_include_psymtab::readin_p): Call readin_p () for includer.
8126 (struct dwarf2_include_psymtab::m_readin): Remove.
8127 (struct dwarf2_include_psymtab::includer): New member function.
8128 (dwarf2_psymtab::expand_psymtab): Assert !readin.
8129
c1a66c06
TV
81302020-04-14 Tom de Vries <tdevries@suse.de>
8131
8132 PR symtab/25720
8133 * symmisc.c (maintenance_expand_symtabs): Call expand_symtabs_matching
8134 with NULL symbol_matcher and lookup_name.
8135 * psymtab.c (psym_expand_symtabs_matching): Handle NULL symbol_matcher
8136 and lookup_name.
8137 * dwarf2/read.c (dw2_expand_symtabs_matching)
8138 (dw2_debug_names_expand_symtabs_matching): Same.
8139 * symfile.h (struct quick_symbol_functions::expand_symtabs_matching):
8140 Make lookup_name a pointer. Update comment.
8141 * symtab.c (global_symbol_searcher::expand_symtabs): Handle
8142 lookup_name being a pointer.
8143 * symfile.c (expand_symtabs_matching): Same.
8144 * symfile-debug.c (debug_qf_expand_symtabs_matching): Same.
8145 * linespec.c (iterate_over_all_matching_symtabs): Same.
8146
400b5eca
TT
81472020-04-13 Tom Tromey <tom@tromey.com>
8148
8149 * run-on-main-thread.c: Update include.
8150 * unittests/main-thread-selftests.c: Update include.
8151 * tui/tui-win.c: Update include.
8152 * tui/tui-io.c: Update include.
8153 * tui/tui-interp.c: Update include.
8154 * tui/tui-hooks.c: Update include.
8155 * top.h: Update include.
8156 * top.c: Update include.
8157 * ser-base.c: Update include.
8158 * remote.c: Update include.
8159 * remote-notif.c: Update include.
8160 * remote-fileio.c: Update include.
8161 * record-full.c: Update include.
8162 * record-btrace.c: Update include.
8163 * python/python.c: Update include.
8164 * posix-hdep.c: Update include.
8165 * mingw-hdep.c: Update include.
8166 * mi/mi-main.c: Update include.
8167 * mi/mi-interp.c: Update include.
8168 * main.c: Update include.
8169 * linux-nat.c: Update include.
8170 * interps.c: Update include.
8171 * infrun.c: Update include.
8172 * inf-loop.c: Update include.
8173 * event-top.c: Update include.
8174 * event-loop.c: Move to ../gdbsupport/.
8175 * event-loop.h: Move to ../gdbsupport/.
8176 * async-event.h: Update include.
8177 * Makefile.in (COMMON_SFILES, HFILES_NO_SRCDIR): Update.
8178
93b54c8e
TT
81792020-04-13 Tom Tromey <tom@tromey.com>
8180
8181 * tui/tui-win.c: Include async-event.h.
8182 * remote.c: Include async-event.h.
8183 * remote-notif.c: Include async-event.h.
8184 * record-full.c: Include async-event.h.
8185 * record-btrace.c: Include async-event.h.
8186 * infrun.c: Include async-event.h.
8187 * event-top.c: Include async-event.h.
8188 * event-loop.h: Move some declarations to async-event.h.
8189 * event-loop.c: Don't include ser-event.h or top.h. Move some
8190 code to async-event.c.
8191 * async-event.h: New file.
8192 * async-event.c: New file.
8193 * Makefile.in (COMMON_SFILES): Add async-event.c.
8194 (HFILES_NO_SRCDIR): Add async-event.h.
8195
c1cd3163
TT
81962020-04-13 Tom Tromey <tom@tromey.com>
8197
8198 * utils.c (flush_streams): New function.
8199 * event-loop.c (gdb_wait_for_event): Call flush_streams.
8200
29f2bf4f
TT
82012020-04-13 Tom Tromey <tom@tromey.com>
8202
8203 * event-loop.c (handle_file_event): Use warning, not
8204 printf_unfiltered.
8205
98029d02
TT
82062020-04-13 Tom Tromey <tom@tromey.com>
8207
8208 * event-loop.c: Include <chrono>.
8209
06cc9596
TT
82102020-04-13 Tom Tromey <tom@tromey.com>
8211
8212 * gdb_select.h: Move to ../gdbsupport/.
8213 * event-loop.c: Update include path.
8214 * top.c: Update include path.
8215 * ser-base.c: Update include path.
8216 * ui-file.c: Update include path.
8217 * ser-tcp.c: Update include path.
8218 * guile/scm-ports.c: Update include path.
8219 * posix-hdep.c: Update include path.
8220 * ser-unix.c: Update include path.
8221 * gdb_usleep.c: Update include path.
8222 * mingw-hdep.c: Update include path.
8223 * inflow.c: Update include path.
8224 * infrun.c: Update include path.
8225 * event-top.c: Update include path.
8226
8ae8e197
TT
82272020-04-13 Tom Tromey <tom@tromey.com>
8228
8229 * configure: Rebuild.
8230 * configure.ac: Remove checks that are now in GDB_AC_COMMON.
8231
58cf28e8
TT
82322020-04-13 Tom Tromey <tom@tromey.com>
8233
8234 * event-loop.h (start_event_loop): Don't declare.
8235 * event-loop.c (start_event_loop): Move...
8236 * main.c (start_event_loop): ...here. Now static.
8237
b7f999ae
SDJ
82382020-04-13 Sergio Durigan Junior <sergiodj@sergiodj.net>
8239
8240 * MAINTAINERS: Update my email address.
8241
1085dfd4
KR
82422020-04-12 Kamil Rytarowski <n54@gmx.com>
8243
8244 * nbsd-nat.c (nbsd_nat_target::info_proc): Add IP_MINIMAL and
8245 IP_ALL.
8246
49d1d1f5
KR
82472020-04-12 Kamil Rytarowski <n54@gmx.com>
8248
8249 * nbsd-nat.c (nbsd_pid_to_cmdline): Add.
aac66a4c 8250 (nbsd_nat_target::info_proc): Add do_cmdline.
49d1d1f5 8251
b4848d2a
KR
82522020-04-12 Kamil Rytarowski <n54@gmx.com>
8253
8254 * nbsd-nat.c (nbsd_pid_to_cwd): Add.
aac66a4c 8255 (nbsd_nat_target::info_proc): Add do_cwd.
b4848d2a 8256
51c133d5
KR
82572020-04-12 Kamil Rytarowski <n54@gmx.com>
8258
8259 * nbsd-nat.c (nbsd_nat_target::info_proc): Add do_exe.
8260
54b8cbd0
KR
82612020-04-11 Kamil Rytarowski <n54@gmx.com>
8262
8263 * nbsd-nat.c; Include "nbsd-tdep.h" and "gdbarch.h".
8264 * nbsd-nat.c (nbsd_nat_target::find_memory_regions)
8265 (nbsd_nat_target::info_proc): New functions.
8266 * nbsd-nat.c (kinfo_get_vmmap): New function.
8267 * nbsd-nat.c (nbsd_nat_target::info_proc) Use
8268 nbsd_info_proc_mappings_header and nbsd_info_proc_mappings_entry.
8269 * nbsd-tdep.c (nbsd_info_proc_mappings_header)
8270 (nbsd_info_proc_mappings_entry, nbsd_vm_map_entry_flags): New
8271 functions.
8272 * nbsd-tdep.c (KINFO_VME_PROT_READ, KINFO_VME_PROT_WRITE)
8273 (KINFO_VME_PROT_EXEC, KINFO_VME_FLAG_COW)
8274 (KINFO_VME_FLAG_NEEDS_COPY, KINFO_VME_FLAG_NOCOREDUMP)
8275 (KINFO_VME_FLAG_PAGEABLE, KINFO_VME_FLAG_GROWS_UP)
8276 (KINFO_VME_FLAG_GROWS_DOWN): New.
8277
cf83625d
AS
82782020-04-10 Artur Shepilko <nomadbyte@gmail.com>
8279
8280 * utils.c (copy_bitwise): Use unsigned 0 constant as operand of
8281 bit shift.
8282
0c4311ab
TT
82832020-04-10 Tom Tromey <tromey@adacore.com>
8284
8285 * symfile.c (symbol_file_add_separate): Preserve OBJF_MAINLINE.
8286
3e65b3e9
TT
82872020-04-10 Tom Tromey <tromey@adacore.com>
8288
8289 * symtab.c (get_symbol_address, get_msymbol_address): Skip
8290 separate debug files.
8291
13302e95
HD
82922020-04-10 Hannes Domani <ssbssa@yahoo.de>
8293
8294 * nat/windows-nat.c (STATUS_WX86_BREAKPOINT, STATUS_WX86_SINGLE_STEP):
8295 Move to...
8296 * nat/windows-nat.h (STATUS_WX86_BREAKPOINT, STATUS_WX86_SINGLE_STEP):
8297 ... here.
8298 * windows-nat.c (windows_nat_target::get_windows_debug_event):
8299 Check for STATUS_WX86_BREAKPOINT.
8300 (windows_nat_target::wait): Same.
8301
bdfc1e8a
TV
83022020-04-10 Tom de Vries <tdevries@suse.de>
8303
8304 PR cli/25808
8305 * python/lib/gdb/__init__.py: Initialize lexer with stripnl=False.
8306
f4460aec
SM
83072020-04-09 Simon Marchi <simon.marchi@polymtl.ca>
8308
8309 * MAINTAINERS (Global Maintainers): Add Tom de Vries.
8310 (Write After Approval): Remove Tom de Vries.
8311
a25198bb
BE
83122020-04-09 Bernd Edlinger <bernd.edlinger@hotmail.de>
8313
8314 revert partially:
8315 2020-04-01 Bernd Edlinger <bernd.edlinger@hotmail.de>
8316
aac66a4c
SM
8317 * buildsym.c (record_line): Fix undefined behavior and preserve
8318 lines at eof.
a25198bb 8319
206c98a6
KR
83202020-04-09 Kamil Rytarowski <n54@gmx.com>
8321
8322 * auxv.h (svr4_auxv_parse): New.
8323 * auxv.c (default_auxv_parse): Split into default_auxv_parse
8324 and generic_auxv_parse.
8325 (svr4_auxv_parse): Add.
8326 * obsd-tdep.c: Include "auxv.h".
8327 (obsd_auxv_parse): Remove.
8328 (obsd_init_abi): Remove comment.
8329 (obsd_init_abi): Change set_gdbarch_auxv_parse passed argument
8330 from `obsd_auxv_parse' to `svr4_auxv_parse'.
8331 * nbsd-tdep.c: Include "auxv.h".
8332 (nbsd_init_abi): Call set_gdbarch_auxv_parse.
8333
71fbdbaf
TT
83342020-04-08 Tom Tromey <tromey@adacore.com>
8335
8336 * nat/windows-nat.h (last_wait_event): Don't declare.
8337 (wait_for_debug_event): Update comment.
8338 * nat/windows-nat.c (last_wait_event): Now static.
8339
2c1d95e8
TT
83402020-04-08 Tom Tromey <tromey@adacore.com>
8341
8342 * windows-nat.c (wait_for_debug_event): Move to
8343 nat/windows-nat.c.
8344 * nat/windows-nat.h (wait_for_debug_event): Declare.
8345 * nat/windows-nat.c (wait_for_debug_event): Move from
8346 windows-nat.c. No longer static.
8347
d2977bc4
TT
83482020-04-08 Tom Tromey <tromey@adacore.com>
8349
8350 * windows-nat.c (get_windows_debug_event): Use
8351 fetch_pending_stop.
8352 * nat/windows-nat.h (fetch_pending_stop): Declare.
8353 * nat/windows-nat.c (fetch_pending_stop): New function.
8354
e758e19c
TT
83552020-04-08 Tom Tromey <tromey@adacore.com>
8356
8357 * windows-nat.c (windows_continue): Use matching_pending_stop and
8358 continue_last_debug_event.
8359 * nat/windows-nat.h (matching_pending_stop)
8360 (continue_last_debug_event): Declare.
8361 * nat/windows-nat.c (DEBUG_EVENTS): New define.
8362 (matching_pending_stop, continue_last_debug_event): New
8363 functions.
8364
8d30e395
TT
83652020-04-08 Tom Tromey <tromey@adacore.com>
8366
8367 * windows-nat.c (MS_VC_EXCEPTION): Move to nat/windows-nat.c.
8368 (handle_exception_result): Move to nat/windows-nat.h.
8369 (DEBUG_EXCEPTION_SIMPLE): Remove.
8370 (windows_nat::handle_ms_vc_exception): New function.
8371 (handle_exception): Move to nat/windows-nat.c.
8372 (get_windows_debug_event): Update.
8373 (STATUS_WX86_BREAKPOINT, STATUS_WX86_SINGLE_STEP): Move to
8374 nat/windows-nat.c.
8375 * nat/windows-nat.h (handle_ms_vc_exception): Declare.
8376 (handle_exception_result): Move from windows-nat.c.
8377 (handle_exception): Declare.
8378 * nat/windows-nat.c (MS_VC_EXCEPTION, handle_exception)
8379 (STATUS_WX86_SINGLE_STEP, STATUS_WX86_BREAKPOINT): Move from
8380 windows-nat.c.
8381
29de418d
TT
83822020-04-08 Tom Tromey <tromey@adacore.com>
8383
8384 * windows-nat.c (exception_count, event_count): Remove.
8385 (handle_exception, get_windows_debug_event)
8386 (do_initial_windows_stuff): Update.
8387
a816ba18
TT
83882020-04-08 Tom Tromey <tromey@adacore.com>
8389
8390 * windows-nat.c (windows_nat::handle_load_dll)
8391 (windows_nat::handle_unload_dll): Rename. No longer static.
8392 * nat/windows-nat.h (handle_load_dll, handle_unload_dll):
8393 Declare.
8394
a00caa12
TT
83952020-04-08 Tom Tromey <tromey@adacore.com>
8396
8397 * complaints.h (stop_whining): Declare at top-level.
8398 (complaint): Don't declare stop_whining.
8399
d41b524f
TT
84002020-04-08 Tom Tromey <tromey@adacore.com>
8401
8402 * windows-nat.c (windows_nat::handle_output_debug_string):
8403 Rename. No longer static.
8404 * nat/windows-nat.h (handle_output_debug_string): Declare.
8405
3c76026d
TT
84062020-04-08 Tom Tromey <tromey@adacore.com>
8407
8408 * windows-nat.c (current_process_handle, current_process_id)
8409 (main_thread_id, last_sig, current_event, last_wait_event)
8410 (current_windows_thread, desired_stop_thread_id, pending_stops)
8411 (struct pending_stop, siginfo_er): Move to nat/windows-nat.c.
8412 (display_selectors, fake_create_process)
8413 (get_windows_debug_event): Update.
8414 * nat/windows-nat.h (current_process_handle, current_process_id)
8415 (main_thread_id, last_sig, current_event, last_wait_event)
8416 (current_windows_thread, desired_stop_thread_id, pending_stops)
8417 (struct pending_stop, siginfo_er): Move from windows-nat.c.
8418 * nat/windows-nat.c (current_process_handle, current_process_id)
8419 (main_thread_id, last_sig, current_event, last_wait_event)
8420 (current_windows_thread, desired_stop_thread_id, pending_stops)
8421 (siginfo_er): New globals. Move from windows-nat.c.
8422
9d8679cc
TT
84232020-04-08 Tom Tromey <tromey@adacore.com>
8424
8425 * windows-nat.c (get_image_name): Move to nat/windows-nat.c.
8426 (handle_load_dll): Update.
8427 * nat/windows-nat.c (get_image_name): Move from windows-nat.c.
8428
28688adf
TT
84292020-04-08 Tom Tromey <tromey@adacore.com>
8430
8431 * windows-nat.c (enum thread_disposition_type): Move to
8432 nat/windows-nat.h.
8433 (windows_nat::thread_rec): Rename from thread_rec. No longer
8434 static.
8435 (windows_add_thread, windows_nat_target::fetch_registers)
8436 (windows_nat_target::store_registers, handle_exception)
8437 (windows_nat_target::resume, get_windows_debug_event)
8438 (windows_nat_target::get_tib_address)
8439 (windows_nat_target::thread_name)
8440 (windows_nat_target::thread_alive): Update.
8441 * nat/windows-nat.h (enum thread_disposition_type): Move from
8442 windows-nat.c.
8443 (thread_rec): Declare.
8444
4834dad0
TT
84452020-04-08 Tom Tromey <tromey@adacore.com>
8446
8447 * windows-nat.c: Add "using namespace".
8448 * nat/windows-nat.h: Wrap contents in windows_nat namespace.
8449 * nat/windows-nat.c: Wrap contents in windows_nat namespace.
8450
65bafd5b
TT
84512020-04-08 Tom Tromey <tromey@adacore.com>
8452
8453 * nat/windows-nat.h (struct windows_thread_info): Declare
8454 destructor.
8455 * nat/windows-nat.c (~windows_thread_info): New.
8456
0a4afda3
TT
84572020-04-08 Tom Tromey <tromey@adacore.com>
8458
8459 PR gdb/22992
8460 * windows-nat.c (current_event): Update comment.
8461 (last_wait_event, desired_stop_thread_id): New globals.
8462 (struct pending_stop): New.
8463 (pending_stops): New global.
8464 (windows_nat_target) <stopped_by_sw_breakpoint>
8465 <supports_stopped_by_sw_breakpoint>: New methods.
8466 (windows_fetch_one_register): Add assertions. Adjust PC.
8467 (windows_continue): Handle pending stops. Suspend other threads
8468 when stepping. Use last_wait_event
8469 (wait_for_debug_event): New function.
8470 (get_windows_debug_event): Use wait_for_debug_event. Handle
8471 pending stops. Queue spurious stops.
8472 (windows_nat_target::wait): Set stopped_at_software_breakpoint.
8473 (windows_nat_target::kill): Use wait_for_debug_event.
8474 * nat/windows-nat.h (struct windows_thread_info)
8475 <stopped_at_software_breakpoint>: New field.
8476 * nat/windows-nat.c (windows_thread_info::resume): Clear
8477 stopped_at_software_breakpoint.
8478
8e61ebec
TT
84792020-04-08 Tom Tromey <tromey@adacore.com>
8480
8481 * windows-nat.c (enum thread_disposition_type): New.
8482 (thread_rec): Replace "get_context" parameter with "disposition";
8483 change type.
8484 (windows_add_thread, windows_nat_target::fetch_registers)
8485 (windows_nat_target::store_registers, handle_exception)
8486 (windows_nat_target::resume, get_windows_debug_event)
8487 (windows_nat_target::get_tib_address)
8488 (windows_nat_target::thread_name)
8489 (windows_nat_target::thread_alive): Update.
8490
98a03287
TT
84912020-04-08 Tom Tromey <tromey@adacore.com>
8492
8493 * windows-nat.c (thread_rec): Use windows_thread_info::suspend.
8494 (windows_continue): Use windows_continue::resume.
8495 * nat/windows-nat.h (struct windows_thread_info) <suspend,
8496 resume>: Declare new methods.
8497 * nat/windows-nat.c: New file.
8498 * configure.nat (NATDEPFILES): Add nat/windows-nat.o when needed.
8499
7c7411bc
TT
85002020-04-08 Tom Tromey <tromey@adacore.com>
8501
8502 * windows-nat.c (windows_add_thread, windows_delete_thread)
8503 (windows_nat_target::fetch_registers)
8504 (windows_nat_target::store_registers, fake_create_process)
8505 (windows_nat_target::resume, windows_nat_target::resume)
8506 (get_windows_debug_event, windows_nat_target::wait)
8507 (windows_nat_target::pid_to_str)
8508 (windows_nat_target::get_tib_address)
8509 (windows_nat_target::get_ada_task_ptid)
8510 (windows_nat_target::thread_name)
8511 (windows_nat_target::thread_alive): Use lwp, not tid.
8512
2950fdf7
TT
85132020-04-08 Tom Tromey <tromey@adacore.com>
8514
8515 * windows-nat.c (handle_exception)
8516 (windows_nat_target::thread_name): Update.
8517 * nat/windows-nat.h (windows_thread_info): Remove destructor.
8518 <name>: Now unique_xmalloc_ptr.
8519
62fe396b
TT
85202020-04-08 Tom Tromey <tromey@adacore.com>
8521
8522 * windows-nat.c (thread_rec)
8523 (windows_nat_target::fetch_registers): Update.
8524 * nat/windows-nat.h (struct windows_thread_info) <suspended>:
8525 Update comment.
8526 <debug_registers_changed, reload_context>: Now bool.
8527
e9534bd2
TT
85282020-04-08 Tom Tromey <tromey@adacore.com>
8529
8530 * windows-nat.c (windows_add_thread): Use new.
8531 (windows_init_thread_list, windows_delete_thread): Use delete.
8532 (get_windows_debug_event): Update.
8533 * nat/windows-nat.h (struct windows_thread_info): Add constructor,
8534 destructor, and initializers.
8535
ae1f8880
TT
85362020-04-08 Tom Tromey <tromey@adacore.com>
8537
8538 * windows-nat.c (struct windows_thread_info): Remove.
8539 * nat/windows-nat.h: New file.
8540
55a1e039
TT
85412020-04-08 Tom Tromey <tromey@adacore.com>
8542
8543 * windows-nat.c (struct windows_thread_info) <tid>: Rename from "id".
8544 (thread_rec, windows_add_thread, windows_delete_thread)
8545 (windows_continue): Update.
8546
93366324
TT
85472020-04-08 Tom Tromey <tromey@adacore.com>
8548
8549 * windows-nat.c (struct windows_thread_info): Remove typedef.
8550 (thread_head): Remove.
8551 (thread_list): New global.
8552 (thread_rec, windows_add_thread, windows_init_thread_list)
8553 (windows_delete_thread, windows_continue): Update.
8554
0f2265e2
SM
85552020-04-08 Simon Marchi <simon.marchi@polymtl.ca>
8556
8557 * windows-tdep.h (windows_init_abi): Add comment.
8558 (cygwin_init_abi): New declaration.
8559 * windows-tdep.c: Split signal enumeration in two, one for
8560 Windows and one for Cygwin.
8561 (windows_gdb_signal_to_target): Only deal with signal of the
8562 Windows OS ABI.
8563 (cygwin_gdb_signal_to_target): New function.
8564 (windows_init_abi): Rename to windows_init_abi_common, don't set
8565 gdb_signal_to_target gdbarch method. Add new new function with
8566 this name.
8567 (cygwin_init_abi): New function.
8568 * amd64-windows-tdep.c (amd64_windows_init_abi_common): Add
8569 comment. Don't call windows_init_abi.
8570 (amd64_windows_init_abi): Add comment, call windows_init_abi.
8571 (amd64_cygwin_init_abi): Add comment, call cygwin_init_abi.
8572 * i386-windows-tdep.c (i386_windows_init_abi): Rename to
8573 i386_windows_init_abi_common, don't call windows_init_abi. Add
8574 a new function of this name.
8575 (i386_cygwin_init_abi): New function.
8576 (_initialize_i386_windows_tdep): Bind i386_cygwin_init_abi to
8577 OS ABI Cygwin.
8578
3810f182
SM
85792020-04-08 Simon Marchi <simon.marchi@polymtl.ca>
8580
8581 * dwarf2/read.c (read_gdb_index_from_buffer): Remove objfile
8582 parameter.c.
8583 (dwarf2_read_gdb_index): Update.
8584
063f8e80
KR
85852020-04-07 Kamil Rytarowski <n54@gmx.com>
8586
8587 * nbsd-tdep.c: Include "objfiles.h".
8588 (nbsd_skip_solib_resolver): New.
8589 (nbsd_init_abi): Call set_gdbarch_skip_solib_resolver().
8590
85a9510c 85912020-04-07 Nitika Achra <Nitika.Achra@amd.com>
8592
8593 * dwarf2/loc.c (loclist_describe_location): Call the function decode_debug_loclists_
8594 addresses if DWARF version is 5 or more because DW_LLE_start* or DW_LLE_offset_pair
8595 with DW_LLE_base_addressx are being emitted in DWARFv5.
8596 Add the newly added kind DW_LOC_OFFSET_PAIR also.
8597 The length of location description is an unsigned ULEB integer in DWARFv5 instead of
8598 unsigned integer.
8599
9fc3eaae 86002020-04-07 Nitika Achra <Nitika.Achra@amd.com>
8601
8602 * dwarf2/loc.c (enum debug_loc_kind): Add a new kind DEBUG_LOC_OFFSET_PAIR.
8603 (dwarf2_find_location_expression): Call the function decode_debug_loclists_
8604 addresses if DWARF version is 5 or more. DW_LLE_start* or DW_LLE_offset_pair
8605 with DW_LLE_base_addressx are being emitted in DWARFv5 instead of DW_LLE_GNU*.
8606 Add applicable base address if the entry is DW_LLE_offset_pair from DWO.
8607 (decode_debug_loclists_addresses): Return DEBUG_LOC_OFFSET_PAIR instead of
8608 DEBUG_LOC_START_END in case of DW_LLE_offset_pair.
8609
8610
41144253 86112020-04-07 Nitika Achra <Nitika.Achra@amd.com>
8612
8613 * dwarf2/read.c (cu_debug_loc_section): Added the declaration for the function.
8614 (read_loclist_index): New function definition.
8615 (lookup_loclist_base): New function definition.
8616 (read_loclist_header): New function definition.
8617 (dwarf2_cu): Add loclist_base and loclist_header field.
8618 (dwarf2_locate_dwo_sections): Handle .debug_loclists.dwo section.
8619 (read_full_die_1): Read the value of DW_AT_loclists_base.
8620 (read_attribute_reprocess): Handle DW_FORM_loclistx.
8621 (read_attribute_value): Handle DW_FORM_loclistx.
8622 (skip_one_die): Handle DW_FORM_loclistx.
8623 (loclist_header): New structure declaration.
8624 * dwarf2/attribute.c (form_is_section_offset): Handle DW_FORM_loclistx.
8625
9f4e76a4
SM
86262020-04-07 Simon Marchi <simon.marchi@polymtl.ca>
8627
8628 * dwarf2/read.h (struct dwarf2_psymtab): Remove two-parameters
8629 constructor. Remove `addr` parameter from other constructor and
8630 add `per_cu` parameter.
8631 * dwarf2/read.c (create_partial_symtab): Update.
8632
25c11aca
TV
86332020-04-07 Tom de Vries <tdevries@suse.de>
8634
8635 PR symtab/25796
8636 * dwarf2/read.c (can_have_DW_AT_const_value_p): New function.
8637 (partial_die_info::fixup): Inherit has_const_value.
8638
5707e24b
TV
86392020-04-07 Tom de Vries <tdevries@suse.de>
8640
8641 * psymtab.c (maintenance_check_psymtabs): Skip static LOC_BLOCK
8642 symbols without address.
8643
05f00e22
KR
86442020-04-06 Kamil Rytarowski <n54@gmx.com>
8645
8646 * nbsd-nat.h (struct thread_info): Add forward declaration.
8647 (nbsd_nat_target::thread_alive): Add.
8648 (nbsd_nat_target::thread_name): Likewise.
8649 (nbsd_nat_target::update_thread_list): Likewise.
8650 (update_thread_list::post_attach): Likewise.
8651 (post_attach::pid_to_str): Likewise.
8652 * nbsd-nat.c: Include "gdbthread.h" and "inferior.h".
8653 (nbsd_thread_lister): Add.
8654 (nbsd_nat_target::thread_alive): Likewise.
8655 (nbsd_nat_target::thread_name): Likewise.
8656 (nbsd_add_threads): Likewise.
8657 (update_thread_list::post_attach): Likewise.
8658 (nbsd_nat_target::update_thread_list): Likewise.
8659 (post_attach::pid_to_str): Likewise.
8660
6ee448cc
TT
86612020-04-06 Tom Tromey <tromey@adacore.com>
8662
8663 * ada-valprint.c (print_variant_part): Extract the variant field.
8664 (print_field_values): Use the field as the outer value when
8665 recursing.
8666
dea34e8c
TT
86672020-04-06 Tom Tromey <tromey@adacore.com>
8668
8669 * sh-nbsd-tdep.c: Include nbsd-tdep.h.
8670 * ppc-nbsd-tdep.c: Include nbsd-tdep.h.
8671 * mips-nbsd-tdep.c (mipsnbsd_init_abi): Add missing ";".
8672 * arm-nbsd-tdep.c: Include nbsd-tdep.h.
8673 * hppa-nbsd-tdep.c: Include nbsd-tdep.h.
8674
93689ce9
TT
86752020-04-06 Tom Tromey <tromey@adacore.com>
8676
8677 * dwarf2/read.c (read_base_type) <DW_ATE_complex_float>: Handle
8678 TYPE_CODE_ERROR.
8679
79743962
KR
86802020-04-06 Kamil Rytarowski <n54@gmx.com>
8681
8682 * nbsd-tdep.c: Include "gdbarch.h".
8683 Define enum with NetBSD signal numbers.
8684 (nbsd_gdb_signal_from_target, nbsd_gdb_signal_to_target): New.
8685 * alpha-nbsd-tdep.c (alphanbsd_init_abi): Call nbsd_init_abi().
8686 * amd64-nbsd-tdep.c (amd64nbsd_init_abi): Likewise.
8687 * arm-nbsd-tdep.c (arm_netbsd_elf_init_abi): Likewise.
8688 * hppa-nbsd-tdep.c (hppanbsd_init_abi): Likewise.
8689 * i386-nbsd-tdep.c (i386nbsd_init_abi): Likewise.
8690 * mips-nbsd-tdep.c (nbsd_init_abi): Likewise.
8691 * ppc-nbsd-tdep.c (ppcnbsd_init_abi): Likewise.
8692 * sh-nbsd-tdep.c (shnbsd_init_abi): Likewise.
8693 * sparc-nbsd-tdep.c (sparc32nbsd_init_abi): Likewise.
8694 * sparc64-nbsd-tdep.c (sparc64nbsd_init_abi): Likewise.
8695 * vax-nbsd-tdep.c (vaxnbsd_elf_init_abi): Likewise.
8696
9e7c9a03
HD
86972020-04-03 Hannes Domani <ssbssa@yahoo.de>
8698
8699 PR gdb/25325
8700 * dwarf2/read.c (read_enumeration_type): Fix typed enum attributes.
8701
d9e49b61
TT
87022020-04-03 Tom Tromey <tromey@adacore.com>
8703
8704 * dwarf2/loc.c (disassemble_dwarf_expression) <DW_OP_const_type>:
8705 Read constant block.
8706
e0fc5c3f
SM
87072020-04-02 Simon Marchi <simon.marchi@polymtl.ca>
8708
8709 * gdb_bfd.h: Include gdbsupport/byte-vector.h.
8710 (gdb_bfd_get_full_section_contents): New declaration.
8711 * gdb_bfd.c (gdb_bfd_get_full_section_contents): New function.
8712 * windows-tdep.c (is_linked_with_cygwin_dll): Use
8713 gdb_bfd_get_full_section_contents.
8714
e2ff18a0
SM
87152020-04-02 Simon Marchi <simon.marchi@polymtl.ca>
8716
8717 * exec.c (build_section_table): Replace internal_error with
8718 gdb_assert.
8719 (section_table_xfer_memory_partial): Likewise.
8720 * mdebugread.c (parse_partial_symbols): Likewise.
8721 * psymtab.c (lookup_partial_symbol): Likewise.
8722 * utils.c (wrap_here): Likewise.
8723
0830d301
TT
87242020-04-02 Tom Tromey <tromey@adacore.com>
8725
8726 * f-lang.c (build_fortran_types): Use arch_type to initialize
8727 builtin_complex_s32 in the TYPE_CODE_ERROR case.
8728
e7da7f8f
TT
87292020-04-02 Tom Tromey <tromey@adacore.com>
8730
8731 * dwarf2/read.c (partial_die_info::read): Do not create a vector
8732 of attributes.
8733
c90d28ac
AB
87342020-04-02 Andrew Burgess <andrew.burgess@embecosm.com>
8735 Bernd Edlinger <bernd.edlinger@hotmail.de>
8736 Tom Tromey <tromey@adacore.com>
8737
8738 * buildsym.c (buildsym_compunit::record_line): Remove
8739 deduplication code.
8740
1aa98955
TV
87412020-04-02 Tom de Vries <tdevries@suse.de>
8742
8743 PR ada/24671
8744 * dwarf2/read.c (dw2_map_matching_symbols): Handle -readnow.
8745
d3214198
TV
87462020-04-02 Tom de Vries <tdevries@suse.de>
8747
8748 * dwarf2/read.c (dwarf2_gdb_index_functions,
8749 dwarf2_debug_names_functions): Init lookup_global_symbol_language with
8750 NULL.
8751 * psymtab.c (psym_lookup_global_symbol_language): New function.
8752 (psym_functions): Init psym_lookup_global_symbol_language with
8753 psym_lookup_global_symbol_language.
8754 * symfile-debug.c (debug_sym_quick_functions): Init
8755 lookup_global_symbol_language with NULL.
8756 * symfile.c (set_initial_language): Remove fixme comment.
8757 * symfile.h (struct quick_symbol_functions): Add
8758 lookup_global_symbol_language.
8759 * symtab.c (find_quick_global_symbol_language): New function.
8760 (find_main_name): Use find_quick_global_symbol_language.
8761
2836752f
SM
87622020-04-01 Simon Marchi <simon.marchi@polymtl.ca>
8763
8764 * windows-tdep.c (is_linked_with_cygwin_dll): Fix style.
8765
64dc2d4b
BE
87662020-04-01 Bernd Edlinger <bernd.edlinger@hotmail.de>
8767
8768 * buildsym.c (record_line): Fix undefined behavior and preserve
8769 lines at eof.
8770
bbe3dc41
BE
87712020-04-01 Bernd Edlinger <bernd.edlinger@hotmail.de>
8772
8773 * buildsym.c (record_line): Fix the resizing condition.
8774
6b4a335b
TT
87752020-04-01 Tom Tromey <tom@tromey.com>
8776
8777 * value.h (value_literal_complex): Add comment.
8778 * valops.c (value_literal_complex): Refer to value.h.
8779
3638a098
TT
87802020-04-01 Tom Tromey <tom@tromey.com>
8781
8782 * c-exp.y (FLOAT_KEYWORD, COMPLEX): New tokens.
8783 (scalar_type): New rule, from typebase.
8784 (typebase): Use scalar_type. Recognize complex types.
8785 (field_name): Handle FLOAT_KEYWORD.
8786 (ident_tokens): Add _Complex and __complex__.
8787
c34e8714
TT
87882020-04-01 Tom Tromey <tom@tromey.com>
8789
8790 PR exp/25299:
8791 * valarith.c (promotion_type, complex_binop): New functions.
8792 (scalar_binop): Handle complex numbers. Use promotion_type.
8793 (value_pos, value_neg, value_complement): Handle complex numbers.
8794
fa649bb7
TT
87952020-04-01 Tom Tromey <tom@tromey.com>
8796
8797 * c-exp.y (COMPLEX_INT, COMPLEX_FLOAT): New tokens.
8798 (exp) <COMPLEX_INT, COMPLEX_FLOAT>: New rules.
8799 (parse_number): Handle complex numbers.
8800
981c08ce
TT
88012020-04-01 Tom Tromey <tom@tromey.com>
8802
8803 * c-valprint.c (c_decorations): Change complex suffix to "i".
8804
4c99290d
TT
88052020-04-01 Tom Tromey <tom@tromey.com>
8806
8807 * valprint.c (generic_value_print_complex): Use accessors.
8808 * value.h (value_real_part, value_imaginary_part): Declare.
8809 * valops.c (value_real_part, value_imaginary_part): New
8810 functions.
8811 * value.c (creal_internal_fn, cimag_internal_fn): Use accessors.
8812
5b930b45
TT
88132020-04-01 Tom Tromey <tom@tromey.com>
8814
8815 * stabsread.c (rs6000_builtin_type, read_sun_floating_type)
8816 (read_range_type): Update.
8817 * mdebugread.c (basic_type): Update.
8818 * go-lang.c (build_go_types): Use init_complex_type.
8819 * gdbtypes.h (struct main_type) <complex_type>: New member.
8820 (init_complex_type): Update.
8821 (arch_complex_type): Don't declare.
8822 * gdbtypes.c (init_complex_type): Remove "objfile" parameter.
8823 Make name if none given. Use alloc_type_copy. Look for cached
8824 complex type.
8825 (arch_complex_type): Remove.
8826 (gdbtypes_post_init): Use init_complex_type.
8827 * f-lang.c (build_fortran_types): Use init_complex_type.
8828 * dwarf2/read.c (read_base_type): Update.
8829 * d-lang.c (build_d_types): Use init_complex_type.
8830 * ctfread.c (read_base_type): Update.
8831
53cccef1
TBA
88322020-04-01 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
8833
8834 * infrun.c (stop_all_threads): Update assertion, plus when
8835 stopping threads, take into account that we might be trying
8836 to stop an all-stop target.
8837 (stop_waiting): Call 'stop_all_threads' if there exists a
8838 non-stop target.
8839
a0714d30
TBA
88402020-04-01 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
8841
8842 * target.h (exists_non_stop_target): New function declaration.
8843 * target.c (exists_non_stop_target): New function.
8844
60e22c1e
HD
88452020-04-01 Hannes Domani <ssbssa@yahoo.de>
8846
8847 PR gdb/24789
8848 * eval.c (is_integral_or_integral_reference): New function.
8849 (evaluate_subexp_standard): Allow integer references in
8850 pointer arithmetic.
8851
e139a727
TBA
88522020-04-01 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
8853
8854 * remote.c (remote_target::remote_parse_stop_reply): Remove the
8855 check for no ptid in the stop reply when the target is non-stop.
8856
e0802d59
TT
88572020-04-01 Tom Tromey <tromey@adacore.com>
8858
8859 * symtab.h (class lookup_name_info) <lookup_name_info>: Change
8860 "name" parameter to rvalue reference. Initialize m_name_holder.
8861 <lookup_name_info>: New overloads.
8862 <name>: Return gdb::string_view.
8863 <c_str>: New method.
8864 <make_ignore_params>: Update.
8865 <search_name_hash>: Update.
8866 <language_lookup_name>: Return const char *.
8867 <m_name>: Change type.
8868 * symtab.c (demangle_for_lookup_info::demangle_for_lookup_info)
8869 (demangle_for_lookup_info::demangle_for_lookup_info): Update.
8870 (lookup_name_info::match_any): Update.
8871 * psymtab.c (match_partial_symbol, lookup_partial_symbol):
8872 Update.
8873 * minsyms.c (linkage_name_str): Update.
8874 * language.c (default_symbol_name_matcher): Update.
8875 * dwarf2/read.c (mapped_index_base::find_name_components_bounds):
8876 Update.
8877 * ada-lang.c (ada_fold_name): Change parameter to string_view.
8878 (ada_lookup_name_info::ada_lookup_name_info): Update.
8879 (literal_symbol_name_matcher): Update.
8880
8c072cb6
TT
88812020-04-01 Tom Tromey <tromey@adacore.com>
8882
8883 * psymtab.c (psymtab_search_name): Remove function.
8884 (psym_lookup_symbol): Create search name and lookup name here.
8885 (lookup_partial_symbol): Remove "name" parameter; add
8886 lookup_name.
8887 (psym_expand_symtabs_for_function): Update.
8888
6f29a534
TT
88892020-03-31 Joel Jones <joelkevinjones@gmail.com>
8890
8891 PR tui/25597:
8892 * python/py-tui.c: Include gdb_curses.h inside of #ifdef TUI.
8893
af62665e
TT
88942020-03-31 Tom Tromey <tromey@adacore.com>
8895
8896 * dwarf2/abbrev.c (abbrev_table::read): Conditionally call
8897 memcpy.
8898
d1a89da5
NC
88992020-03-30 Nelson Chu <nelson.chu@sifive.com>
8900
8901 * features/riscv/32bit-csr.xml: Regenerated.
8902 * features/riscv/64bit-csr.xml: Regenerated.
8903
d8af9068
TT
89042020-03-30 Tom Tromey <tromey@adacore.com>
8905
8906 * ada-valprint.c (print_variant_part): Update.
8907 * ada-lang.h (ada_which_variant_applies): Update.
8908 * ada-lang.c (ada_which_variant_applies): Remove outer_type and
8909 outer_valaddr parameters; replace with "outer" value parameter.
8910 (to_fixed_variant_branch_type): Update.
8911
227c0bf4
PFC
89122020-03-30 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
8913
8914 * ppc-linux-nat.c: Include <algorithm>, <unordered_map>, and
8915 <list>. Remove inclusion of observable.h.
8916 (PPC_DEBUG_CURRENT_VERSION): Move up define.
8917 (struct arch_lwp_info): New struct.
8918 (class ppc_linux_dreg_interface): New class.
8919 (struct ppc_linux_process_info): New struct.
8920 (struct ppc_linux_nat_target) <low_delete_thread, low_new_fork>
8921 <low_new_clone, low_forget_process, low_prepare_to_resume>
8922 <copy_thread_dreg_state, mark_thread_stale>
8923 <mark_debug_registers_changed, register_hw_breakpoint>
8924 <clear_hw_breakpoint, register_wp, clear_wp>
8925 <can_use_watchpoint_cond_accel, calculate_dvc, check_condition>
8926 <num_memory_accesses, get_trigger_type>
8927 <create_watchpoint_request, hwdebug_point_cmp>
8928 <init_arch_lwp_info, get_arch_lwp_info>
8929 <low_stopped_by_watchpoint, low_stopped_data_address>: Declare as
8930 methods.
8931 <struct ptid_hash>: New inner struct.
8932 <m_dreg_interface, m_process_info, m_installed_hw_bps>: Declare
8933 members.
8934 (saved_dabr_value, hwdebug_info, max_slots_number)
8935 (struct hw_break_tuple, struct thread_points, ppc_threads)
8936 (have_ptrace_hwdebug_interface)
8937 (hwdebug_find_thread_points_by_tid)
8938 (hwdebug_insert_point, hwdebug_remove_point): Remove.
8939 (ppc_linux_nat_target::can_use_hw_breakpoint): Use
8940 m_dreg_interface, remove call to PTRACE_SET_DEBUGREG.
8941 (ppc_linux_nat_target::region_ok_for_hw_watchpoint): Add comment,
8942 use m_dreg_interface.
8943 (hwdebug_point_cmp): Change to...
8944 (ppc_linux_nat_target::hwdebug_point_cmp): ...this method. Use
8945 reference arguments instead of pointers.
8946 (ppc_linux_nat_target::ranged_break_num_registers): Use
8947 m_dreg_interface.
8948 (ppc_linux_nat_target::insert_hw_breakpoint): Add comment, use
8949 m_dreg_interface. Call register_hw_breakpoint.
8950 (ppc_linux_nat_target::remove_hw_breakpoint): Add comment, use
8951 m_dreg_interface. Call clear_hw_breakpoint.
8952 (get_trigger_type): Change to...
8953 (ppc_linux_nat_target::get_trigger_type): ...this method. Add
8954 comment.
8955 (ppc_linux_nat_target::insert_mask_watchpoint): Update comment,
8956 use m_dreg_interface. Call register_hw_breakpoint.
8957 (ppc_linux_nat_target::remove_mask_watchpoint): Update comment,
8958 use m_dreg_interface. Call clear_hw_breakpoint.
8959 (can_use_watchpoint_cond_accel): Change to...
8960 (ppc_linux_nat_target::can_use_watchpoint_cond_accel): ...this
8961 method. Update comment, use m_dreg_interface and
8962 m_process_info.
8963 (calculate_dvc): Change to...
8964 (ppc_linux_nat_target::calculate_dvc): ...this method. Use
8965 m_dreg_interface.
8966 (num_memory_accesses): Change to...
8967 (ppc_linux_nat_target::num_memory_accesses): ...this method.
8968 (check_condition): Change to...
8969 (ppc_linux_nat_target::check_condition): ...this method.
8970 (ppc_linux_nat_target::can_accel_watchpoint_condition): Update
8971 comment, use m_dreg_interface.
8972 (create_watchpoint_request): Change to...
8973 (ppc_linux_nat_target::create_watchpoint_request): ...this
8974 method. Use m_dreg_interface.
8975 (ppc_linux_nat_target::insert_watchpoint): Add comment, use
8976 m_dreg_interface. Call register_hw_breakpoint or register_wp.
8977 (ppc_linux_nat_target::remove_watchpoint): Add comment, use
8978 m_dreg_interface. Call clear_hw_breakpoint or clear_wp.
8979 (ppc_linux_nat_target::low_forget_process)
8980 (ppc_linux_nat_target::low_new_fork)
8981 (ppc_linux_nat_target::low_new_clone)
8982 (ppc_linux_nat_target::low_delete_thread)
8983 (ppc_linux_nat_target::low_prepare_to_resume): New methods.
8984 (ppc_linux_nat_target::low_new_thread): Remove previous logic,
8985 only call mark_thread_stale.
8986 (ppc_linux_thread_exit): Remove.
8987 (ppc_linux_nat_target::stopped_data_address): Change to...
8988 (ppc_linux_nat_target::low_stopped_data_address): This. Add
8989 comment, use m_dreg_interface and m_thread_hw_breakpoints.
8990 (ppc_linux_nat_target::stopped_by_watchpoint): Change to...
8991 (ppc_linux_nat_target::stopped_by_watchpoint): This. Add
8992 comment. Call low_stopped_data_address.
8993 (ppc_linux_nat_target::watchpoint_addr_within_range): Use
8994 m_dreg_interface.
8995 (ppc_linux_nat_target::masked_watch_num_registers): Use
8996 m_dreg_interface.
8997 (ppc_linux_nat_target::copy_thread_dreg_state)
8998 (ppc_linux_nat_target::mark_thread_stale)
8999 (ppc_linux_nat_target::mark_debug_registers_changed)
9000 (ppc_linux_nat_target::register_hw_breakpoint)
9001 (ppc_linux_nat_target::clear_hw_breakpoint)
9002 (ppc_linux_nat_target::register_wp)
9003 (ppc_linux_nat_target::clear_wp)
9004 (ppc_linux_nat_target::init_arch_lwp_info)
9005 (ppc_linux_nat_target::get_arch_lwp_info): New methods.
9006 (_initialize_ppc_linux_nat): Remove observer callback.
9007
4db10d8f
PFC
90082020-03-30 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
9009
9010 * ppc-linux-nat.c (ppc_linux_nat_target::store_registers)
9011 (ppc_linux_nat_target::auxv_parse)
9012 (ppc_linux_nat_target::read_description)
9013 (supply_gregset, fill_gregset, supply_fpregset, fill_fpregset):
9014 Move up.
9015
1310c1b0
PFC
90162020-03-30 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
9017
9018 * linux-nat.h (low_new_clone): New method.
9019 * linux-nat.c (linux_handle_extended_wait): Call low_new_clone.
9020
69b037c3
SM
90212020-03-29 Simon Marchi <simon.marchi@polymtl.ca>
9022
9023 * dbxread.c (dbx_psymtab_to_symtab_1): Rename to...
9024 (dbx_expand_psymtab): ... this.
9025 (start_psymtab): Update.
9026 * mdebugread.c (psymtab_to_symtab_1): Rename to...
9027 (mdebug_expand_psymtab): ... this.
9028 (parse_partial_symbols): Update.
9029 (new_psymtab): Update.
9030 * xcoffread.c (xcoff_psymtab_to_symtab_1): Rename to...
9031 (xcoff_expand_psymtab): ... this.
9032 (xcoff_start_psymtab): Update.
9033
48993951
SM
90342020-03-29 Simon Marchi <simon.marchi@polymtl.ca>
9035
9036 * psympriv.h (partial_symtab) <read_dependencies>: Rename to...
9037 <expand_dependencies>: ... this.
9038 * psymtab.c (partial_symtab::read_dependencies): Rename to...
9039 (partial_symtab::expand_dependencies): ... this.
9040 * dwarf2/read.c (dwarf2_include_psymtab) <expand_psymtab>:
9041 Update.
9042 (dwarf2_psymtab::expand_psymtab): Update.
9043 * dbxread.c (dbx_psymtab_to_symtab_1): Update.
9044 * mdebugread.c (psymtab_to_symtab_1): Update.
9045 * xcoffread.c (xcoff_psymtab_to_symtab_1): Update.
9046
3ad83046
SM
90472020-03-29 Simon Marchi <simon.marchi@polymtl.ca>
9048
9049 * psympriv.h (discard_psymtab): Remove.
9050 * dbxread.c (dbx_end_psymtab): Update.
9051 * xcoffread.c (xcoff_end_psymtab): Update.
9052
4d1b9ab6
TT
90532020-03-28 Tom Tromey <tom@tromey.com>
9054
9055 * dwarf2/attribute.h (struct attribute) <form_is_constant>: Update
9056 comment.
9057
f1749218
TT
90582020-03-28 Tom Tromey <tom@tromey.com>
9059
9060 * dwarf2/read.c (read_attribute_reprocess): Fix formatting.
9061
ebea7626
HD
90622020-03-27 Hannes Domani <ssbssa@yahoo.de>
9063
9064 * windows-nat.c (windows_add_all_dlls): Fix system dll paths.
9065
a879b4d5
JB
90662020-03-26 John Baldwin <jhb@FreeBSD.org>
9067
9068 * fbsd-tdep.c (fbsd_print_auxv_entry): Handle AT_FREEBSD_BSDFLAGS.
9069
0826b30a
TT
90702020-03-26 Tom Tromey <tom@tromey.com>
9071
9072 * dwarf2/read.c (handle_data_member_location, dwarf2_add_field)
9073 (mark_common_block_symbol_computed, read_tag_string_type)
9074 (attr_to_dynamic_prop, read_subrange_type): Update.
9075 (dwarf2_get_ref_die_offset, dwarf2_get_attr_constant_value): Move
9076 to be methods on struct attribute.
9077 (skip_one_die, process_imported_unit_die, read_namespace_alias)
9078 (read_call_site_scope, partial_die_info::read)
9079 (partial_die_info::read, lookup_die_type, follow_die_ref):
9080 Update.
9081 * dwarf2/attribute.c (attribute::get_ref_die_offset): New method,
9082 from dwarf2_get_ref_die_offset.
9083 (attribute::constant_value): New method, from
9084 dwarf2_get_attr_constant_value.
9085 * dwarf2/attribute.h (struct attribute) <get_ref_die_offset>:
9086 Declare method.
9087 <constant_value>: New method.
9088
2b2558bf
TT
90892020-03-26 Tom Tromey <tom@tromey.com>
9090
9091 * dwarf2/read.c (dwarf_unit_type_name, dwarf_tag_name)
9092 (dwarf_attr_name, dwarf_form_name, dwarf_bool_name)
9093 (dwarf_type_encoding_name): Move to stringify.c.
9094 * Makefile.in (COMMON_SFILES): Add dwarf2/stringify.c.
9095 * dwarf2/stringify.c: New file.
9096 * dwarf2/stringify.h: New file.
9097
eeb64781
TT
90982020-03-26 Tom Tromey <tom@tromey.com>
9099
9100 * dwarf2/die.h (struct die_info) <addr_base, ranges_base>:
9101 Rewrite.
9102
a39fdb41
TT
91032020-03-26 Tom Tromey <tom@tromey.com>
9104
9105 * dwarf2/die.h (struct die_info) <addr_base, ranges_base>: New
9106 methods.
9107 * dwarf2/read.c (lookup_addr_base): Move to die.h.
9108 (lookup_ranges_base): Likewise.
9109 (read_cutu_die_from_dwo, read_full_die_1): Update.
9110
436c571c
TT
91112020-03-26 Tom Tromey <tom@tromey.com>
9112
9113 * dwarf2/read.c (read_import_statement, read_file_scope)
9114 (read_type_unit_scope, inherit_abstract_dies, read_func_scope)
9115 (read_lexical_block_scope, read_call_site_scope)
9116 (dwarf2_get_subprogram_pc_bounds, get_scope_pc_bounds)
9117 (handle_struct_member_die, process_structure_scope)
9118 (update_enumeration_type_from_children)
9119 (process_enumeration_scope, read_array_type, read_common_block)
9120 (read_namespace, read_module, read_subroutine_type): Update.
9121 (sibling_die): Remove.
9122
052c8bb8
TT
91232020-03-26 Tom Tromey <tom@tromey.com>
9124
9125 * dwarf2/read.c (lookup_addr_base, lookup_ranges_base)
9126 (build_type_psymtabs_reader, read_structure_type)
9127 (read_enumeration_type, read_full_die_1): Update.
9128 (dwarf2_attr_no_follow): Move to die.h.
9129 * dwarf2/die.h (struct die_info) <attr>: New method.
9130
2b24b6e4
TT
91312020-03-26 Tom Tromey <tom@tromey.com>
9132
9133 * dwarf2/read.c (struct dwarf2_cu) <base_known>: Remove.
9134 <base_address>: Now an optional.
9135 (dwarf2_find_base_address, dwarf2_rnglists_process)
9136 (dwarf2_ranges_process, fill_in_loclist_baton)
9137 (dwarf2_symbol_mark_computed): Update.
9138
c2d50fd0
TT
91392020-03-26 Tom Tromey <tom@tromey.com>
9140
9141 * dwarf2/read.c (struct die_info): Move to die.h.
9142 * dwarf2/die.h: New file.
9143
0df7ad3a
TT
91442020-03-26 Tom Tromey <tom@tromey.com>
9145
9146 * dwarf2/line-header.h (dwarf_decode_line_header): Declare.
9147 * dwarf2/read.c
9148 (dwarf2_statement_list_fits_in_line_number_section_complaint):
9149 Move to line-header.c.
9150 (read_checked_initial_length_and_offset, read_formatted_entries):
9151 Likewise.
9152 (dwarf_decode_line_header): Split into two.
9153 * dwarf2/line-header.c
9154 (dwarf2_statement_list_fits_in_line_number_section_complaint):
9155 Move from read.c.
9156 (read_checked_initial_length_and_offset, read_formatted_entries):
9157 Likewise.
9158 (dwarf_decode_line_header): New function, split from read.c.
9159
86c0bb4c
TT
91602020-03-26 Tom Tromey <tom@tromey.com>
9161
9162 * dwarf2/read.h (struct dwarf2_per_objfile) <read_line_string>:
9163 Declare method.
9164 * dwarf2/read.c (read_attribute_value): Update.
9165 (dwarf2_per_objfile::read_line_string): Rename from
9166 read_indirect_line_string.
9167 (read_formatted_entries): Update.
9168
2ef46c2f
TT
91692020-03-26 Tom Tromey <tom@tromey.com>
9170
9171 * dwarf2/macro.c (dwarf_decode_macro_bytes): Use objfile local
9172 variable.
9173
4f9c1eda
TT
91742020-03-26 Tom Tromey <tom@tromey.com>
9175
9176 * dwarf2/macro.h (dwarf_decode_macros): Make section parameter
9177 const.
9178 * dwarf2/macro.c (skip_form_bytes, skip_unknown_opcode)
9179 (dwarf_decode_macro_bytes, dwarf_decode_macros): Make section
9180 parameter const.
9181
5a0e026f
TT
91822020-03-26 Tom Tromey <tom@tromey.com>
9183
9184 * dwarf2/read.c (dwarf_decode_macros): Make "lh" const.
9185 * dwarf2/macro.h (dwarf_decode_macros): Constify "lh" parameter.
9186 * dwarf2/macro.c (macro_start_file): Constify "lh" parameter.
9187 (dwarf_decode_macro_bytes, dwarf_decode_macros): Likewise.
9188
8844c11b
TT
91892020-03-26 Tom Tromey <tom@tromey.com>
9190
9191 * dwarf2/line-header.h (struct line_header) <is_valid_file_index,
9192 file_names_size, file_full_name, file_file_name>: Use const.
9193 <file_name_at, file_names>: Add const overload.
9194 * dwarf2/line-header.c (line_header::file_file_name)
9195 (line_header::file_full_name): Update.
9196
c90ec28a
TT
91972020-03-26 Tom Tromey <tom@tromey.com>
9198
9199 * dwarf2/read.c (dwarf2_macro_malformed_definition_complaint)
9200 (macro_start_file, consume_improper_spaces)
9201 (parse_macro_definition, skip_form_bytes, skip_unknown_opcode)
9202 (dwarf_parse_macro_header, dwarf_decode_macro_bytes)
9203 (dwarf_decode_macros): Move to macro.c.
9204 * dwarf2/macro.c: New file.
9205 * dwarf2/macro.h: New file.
9206 * Makefile.in (COMMON_SFILES): Add dwarf2/macro.c.
9207
4f44ae6c
TT
92082020-03-26 Tom Tromey <tom@tromey.com>
9209
9210 * dwarf2/section.h (struct dwarf2_section_info) <read_string>: New
9211 method.
9212 * dwarf2/section.c: New method. From
9213 read_indirect_string_at_offset_from.
9214 * dwarf2/read.c (mapped_debug_names::namei_to_name): Update.
9215 (read_indirect_string_at_offset_from): Move to section.c.
9216 (read_indirect_string_at_offset): Rewrite.
9217 (read_indirect_line_string_at_offset): Remove.
9218 (read_indirect_string, read_indirect_line_string)
9219 (dwarf_decode_macro_bytes): Update.
9220
a0194fa8
TT
92212020-03-26 Tom Tromey <tom@tromey.com>
9222
9223 * dwarf2/section.h (struct dwarf2_section_info)
9224 <overload_complaint>: Declare.
9225 (dwarf2_section_buffer_overflow_complaint): Don't declare.
9226 * dwarf2/section.c (dwarf2_section_info::overflow_complaint):
9227 Rename from dwarf2_section_buffer_overflow_complaint.
9228 * dwarf2/read.c (skip_one_die, partial_die_info::read)
9229 (skip_form_bytes, dwarf_decode_macro_bytes): Update.
9230
3d27bbdb
TT
92312020-03-26 Tom Tromey <tom@tromey.com>
9232
9233 * dwarf2/section.h (dwarf2_section_buffer_overflow_complaint):
9234 Declare.
9235 * dwarf2/section.c (dwarf2_section_buffer_overflow_complaint):
9236 Move from read.c.
9237 * dwarf2/read.c (dwarf2_section_buffer_overflow_complaint): Move
9238 to section.c.
9239
9eac9650
TT
92402020-03-26 Tom Tromey <tom@tromey.com>
9241
9242 * dwarf2/read.c (dwarf_decode_macros): Split into two overloads.
9243
bf80d710
TT
92442020-03-26 Tom Tromey <tom@tromey.com>
9245
9246 * dwarf2/read.c (macro_start_file): Change "cu" parameter to
9247 "builder".
9248 (dwarf_decode_macro_bytes): Likewise. Add dwarf2_per_objfile
9249 parameter.
9250 (dwarf_decode_macros): Update.
9251
0314b390
TT
92522020-03-26 Tom Tromey <tom@tromey.com>
9253
9254 * dwarf2/read.c (read_attribute_value): Update.
9255 (read_indirect_string_from_dwz): Move to dwz.c; change into
9256 method.
9257 (dwarf_decode_macro_bytes): Update.
9258 * dwarf2/dwz.h (struct dwz_file) <read_string>: Declare method.
9259 * dwarf2/dwz.c: New file.
9260 * Makefile.in (COMMON_SFILES): Add dwz.c.
9261
9fda78b6
TT
92622020-03-26 Tom Tromey <tom@tromey.com>
9263
9264 * dwarf2/read.h (struct dwz_file): Move to dwz.h.
9265 * dwarf2/read.c: Add include.
9266 * dwarf2/index-write.c: Add include.
9267 * dwarf2/index-cache.c: Add include.
9268 * dwarf2/dwz.h: New file.
9269
33aa3c10
TT
92702020-03-25 Tom Tromey <tom@tromey.com>
9271
9272 * compile/compile-object-load.c (get_out_value_type): Mention
9273 correct symbol name in error message.
9274
d503b685
HD
92752020-03-25 Hannes Domani <ssbssa@yahoo.de>
9276
9277 * windows-nat.c (windows_add_all_dlls): Fix system dll paths.
9278
7b1eff95
TV
92792020-03-25 Tom de Vries <tdevries@suse.de>
9280
9281 * symtab.h (is_main_symtab_of_compunit_symtab): New function.
9282 * symmisc.c (dump_symtab_1): Print user and includes fields.
9283 (maintenance_info_symtabs): Same.
9284
dd895392
AB
92852020-03-25 Andrew Burgess <andrew.burgess@embecosm.com>
9286
9287 PR gdb/25534
9288 * riscv-tdep.c (riscv_arg_info::c_offset): Update comment.
9289 (riscv_regcache_cooked_write): New function.
9290 (riscv_push_dummy_call): Use new function.
9291 (riscv_return_value): Likewise.
9292
5ab2fbf1
SM
92932020-03-24 Simon Marchi <simon.marchi@polymtl.ca>
9294
9295 * fbsd-nat.c (fbsd_nat_target::follow_fork): Change bool to int.
9296 * fbsd-nat.h (class fbsd_nat_target) <follow_fork>: Likewise.
9297 * inf-ptrace.c (inf_ptrace_target::follow_fork): Likewise.
9298 * inf-ptrace.h (struct inf_ptrace_target) <follow_fork>: Likewise.
9299 * infrun.c (follow_fork): Likewise.
9300 (follow_fork_inferior): Likewise.
9301 * linux-nat.c (linux_nat_target::follow_fork): Likewise.
9302 * linux-nat.h (class linux_nat_target): Likewise.
9303 * remote.c (class remote_target) <follow_fork>: Likewise.
9304 (remote_target::follow_fork): Likewise.
9305 * target-delegates.c: Re-generate.
9306 * target.c (default_follow_fork): Likewise.
9307 (target_follow_fork): Likewise.
9308 * target.h (struct target_ops) <follow_fork>: Likewise.
9309 (target_follow_fork): Likewise.
9310
a64fafb5
TV
93112020-03-24 Tom de Vries <tdevries@suse.de>
9312
9313 * psymtab.c (maintenance_info_psymtabs): Print user field.
9314
fe26d3a3
TT
93152020-03-20 Tom Tromey <tromey@adacore.com>
9316
9317 * dwarf2/loc.h (dwarf2_evaluate_property): Make "addr_stack"
9318 const.
9319 * dwarf2/loc.c (dwarf2_evaluate_property): Make "addr_stack"
9320 const.
9321
c884cc46
SM
93222020-03-20 Simon Marchi <simon.marchi@efficios.com>
9323
9324 * ptrace.m4: Don't check for ptrace declaration.
9325 * config.in: Re-generate.
9326 * configure: Re-generate.
9327 * nat/gdb_ptrace.h: Don't declare ptrace if HAVE_DECL_PTRACE is
9328 not defined.
9329
1ff700c2
KR
93302020-03-20 Kamil Rytarowski <n54@gmx.com>
9331
9332 * amd64-bsd-nat.c (gdb_ptrace): Change return type from `int' to
9333 `PTRACE_TYPE_RET'.
9334 * i386-bsd-nat.c (gdb_ptrace): Likewise.
9335 * sparc-nat.c (gdb_ptrace): Likewise.
9336 * x86-bsd-nat.c (gdb_ptrace): Likewise.
9337
f7d4f0b1
TT
93382020-03-20 Tom Tromey <tromey@adacore.com>
9339
9340 * c-exp.y (lex_one_token): Fix assert.
9341
f67210ff
TT
93422020-03-20 Tom Tromey <tromey@adacore.com>
9343
9344 * ada-tasks.c (read_atcb): Use smaller length in strncpy call.
9345 * linux-tdep.c (linux_fill_prpsinfo): Use smaller length in
9346 strncpy call.
9347
1773be9e
TT
93482020-03-20 Tom Tromey <tromey@adacore.com>
9349
9350 * symmisc.c (maintenance_print_one_line_table): Use ui_out.
9351
70304be9
TT
93522020-03-20 Tom Tromey <tromey@adacore.com>
9353
9354 * ada-valprint.c (print_variant_part): Remove parameters; switch
9355 to value-based API.
9356 (print_field_values): Likewise.
9357 (ada_val_print_struct_union): Likewise.
9358 (ada_value_print_1): Update.
9359
9faa006d
KR
93602020-03-20 Kamil Rytarowski <n54@gmx.com>
9361
9362 * ppc-nbsd-nat.c (ppc_nbsd_nat_target): Inherit from
9363 nbsd_nat_target instead of inf_ptrace_target.
9364 * ppc-nbsd-nat.c: Include "nbsd-nat.h", as we are now using
9365 nbsd_nat_target.
9366
4a90f062
KR
93672020-03-20 Kamil Rytarowski <n54@gmx.com>
9368
9369 * hppa-nbsd-nat.c (fetch_registers): New variable lwp and pass
9370 it to the ptrace call.
9371 * (store_registers): Likewise.
9372
93732020-03-20 Kamil Rytarowski <n54@gmx.com>
c7da12c7
KR
9374
9375 * ppc-nbsd-nat.c (fetch_registers): New variable lwp and pass
9376 it to the ptrace call.
9377 * (store_registers): Likewise.
9378
2d07da27
LM
93792020-03-19 Luis Machado <luis.machado@linaro.org>
9380
9381 * nat/aarch64-sve-linux-ptrace.c (aarch64_sve_set_vq): If vg is not
9382 valid, fetch vg value from ptrace.
9383
f09db380
KR
93842020-03-19 Kamil Rytarowski <n54@gmx.com>
9385 * inf-ptrace.h: Disable get_ptrace_pid on NetBSD.
9386 * inf-ptrace.c: Likewise.
9387 * (gdb_ptrace): Add.
9388 * (inf_ptrace_target::resume): Update.
9389 * (inf_ptrace_target::xfer_partial): Likewise.
9390 * (inf_ptrace_peek_poke): Change argument `pid' to `ptid'.
9391 * (inf_ptrace_peek_poke): Update.
9392
fcc7376e
KR
93932020-03-19 Kamil Rytarowski <n54@gmx.com>
9394
9395 * x86-bsd-nat.c (gdb_ptrace): New.
9396 * (x86bsd_dr_set): Add new argument `ptid'.
9397 * (x86bsd_dr_get, x86bsd_dr_set, x86bsd_dr_set_control,
9398 x86bsd_dr_set_addr): Update.
9399
cada5fc9
AB
94002020-03-19 Andrew Burgess <andrew.burgess@embecosm.com>
9401
9402 * remote.c (remote_target::process_stop_reply): Handle events for
9403 all threads differently.
9404
19a2740f
AB
94052020-03-19 Andrew Burgess <andrew.burgess@embecosm.com>
9406
9407 * completer.c (completion_tracker::remove_completion): Define new
9408 function.
9409 * completer.h (completion_tracker::remove_completion): Declare new
9410 function.
9411 * symtab.c (completion_list_add_symbol): Remove aliasing msymbols
9412 when adding a C++ function symbol.
9413
724fd9ba
AB
94142020-03-19 Andrew Burgess <andrew.burgess@embecosm.com>
9415
9416 * completer.c (completion_tracker::completion_hash_entry): Define
9417 new class.
9418 (advance_to_filename_complete_word_point): Call
9419 recompute_lowest_common_denominator.
9420 (completion_tracker::completion_tracker): Call discard_completions
9421 to setup the hash table.
9422 (completion_tracker::discard_completions): Allow for being called
9423 from the constructor, pass new equal function, and element deleter
9424 when constructing the hash table. Initialise new class member
9425 variables.
9426 (completion_tracker::maybe_add_completion): Remove use of
9427 m_entries_vec, and store more information into m_entries_hash.
9428 (completion_tracker::recompute_lcd_visitor): New function, most
9429 content taken from...
9430 (completion_tracker::recompute_lowest_common_denominator):
9431 ...here, this now just visits each item in the hash calling the
9432 above visitor.
9433 (completion_tracker::build_completion_result): Remove use of
9434 m_entries_vec, call recompute_lowest_common_denominator.
9435 * completer.h (completion_tracker::have_completions): Remove use
9436 of m_entries_vec.
9437 (completion_tracker::completion_hash_entry): Declare new class.
9438 (completion_tracker::recompute_lowest_common_denominator): Change
9439 function signature.
9440 (completion_tracker::recompute_lcd_visitor): Declare new function.
9441 (completion_tracker::m_entries_vec): Delete.
9442 (completion_tracker::m_entries_hash): Initialize to NULL.
9443 (completion_tracker::m_lowest_common_denominator_valid): New
9444 member variable.
9445 (completion_tracker::m_lowest_common_denominator_max_length): New
9446 member variable.
9447
5a82b8a1
KR
94482020-03-17 Kamil Rytarowski <n54@gmx.com>
9449
9450 * regformats/regdef.h: Put reg in gdb namespace.
9451
fb516a69
KR
94522020-03-17 Kamil Rytarowski <n54@gmx.com>
9453
9454 * i386-bsd-nat.c (gdb_ptrace): New.
9455 * (i386bsd_fetch_inferior_registers,
9456 i386bsd_store_inferior_registers) Switch from pid_t to ptid_t.
9457 * (i386bsd_fetch_inferior_registers,
9458 i386bsd_store_inferior_registers) Use gdb_ptrace.
9459
1c0aa1fb
KR
94602020-03-17 Kamil Rytarowski <n54@gmx.com>
9461
9462 * amd64-bsd-nat.c (gdb_ptrace): New.
9463 * (amd64bsd_fetch_inferior_registers,
9464 amd64bsd_store_inferior_registers) Switch from pid_t to ptid_t.
9465 * (amd64bsd_fetch_inferior_registers,
9466 amd64bsd_store_inferior_registers) Use gdb_ptrace.
9467
5ccd2fb7
KR
94682020-03-17 Kamil Rytarowski <n54@gmx.com>
9469
9470 * user-regs.c (user_reg::read): Rename to...
9471 (user_reg::xread): ...this.
9472 * (append_user_reg): Rename argument `read' to `xread'.
9473 * (user_reg_add_builtin): Likewise.
9474 * (user_reg_add): Likewise.
9475 * (value_of_user_reg): Likewise.
9476
2108a63a
KR
94772020-03-17 Kamil Rytarowski <n54@gmx.com>
9478
9479 * sparc-nat.c (gdb_ptrace): New.
9480 * sparc-nat.c (sparc_fetch_inferior_registers)
9481 (sparc_store_inferior_registers) Remove obsolete comment.
9482 * sparc-nat.c (sparc_fetch_inferior_registers)
9483 (sparc_store_inferior_registers) Switch from pid_t to ptid_t.
9484 * sparc-nat.c (sparc_fetch_inferior_registers)
9485 (sparc_store_inferior_registers) Use gdb_ptrace.
9486
a225c9a8
KR
94872020-03-17 Kamil Rytarowski <n54@gmx.com>
9488
9489 * sh-nbsd-nat.c (fetch_registers): New variable lwp and pass
9490 it to the ptrace call.
9491 * sh-nbsd-nat.c (store_registers): Likewise.
9492
98097623
KR
94932020-03-17 Kamil Rytarowski <n54@gmx.com>
9494
9495 * sh-nbsd-nat.c (sh_nbsd_nat_target): Inherit from
9496 nbsd_nat_target instead of inf_ptrace_target.
9497 * sh-nbsd-nat.c: Include "nbsd-nat.h", as we are now using
9498 nbsd_nat_target.
9499
9e38d619
KR
95002020-03-17 Kamil Rytarowski <n54@gmx.com>
9501
9502 * amd64-bsd-nat.c: Include amd64-bsd-nat.h".
9503
a2ecbe9f
KR
95042020-03-17 Kamil Rytarowski <n54@gmx.com>
9505
9506 * nbsd-nat.c: Include <sys/types.h>, <sys/ptrace.h> and
9507 <sys/sysctl.h>.
9508 * nbsd-nat.c (nbsd_nat_target::pid_to_exec_file): Rewrite.
9509
58990295
TV
95102020-03-17 Tom de Vries <tdevries@suse.de>
9511
9512 PR gdb/23710
9513 * dwarf2/read.h (struct dwarf2_per_cu_data): Add unit_type and lang
9514 fields.
9515 * dwarf2/read.c (process_psymtab_comp_unit): Initialize unit_type and lang
9516 fields.
9517 (process_imported_unit_die): Skip import of c++ CUs.
9518
771dd3a8
TT
95192020-03-16 Tom Tromey <tom@tromey.com>
9520
9521 * p-valprint.c (pascal_object_print_value): Initialize
9522 base_value.
9523
817a7585
AK
95242020-03-16 Anton Kolesov <anton.kolesov@synopsys.com>
9525 Shahab Vahedi <shahab@synopsys.com>
9526
9527 * Makefile.in: Add arch/arc.o
9528 * configure.tgt: Likewise.
9529 * arc-tdep.c (arc_tdesc_init): Use arc_read_description.
9530 (_initialize_arc_tdep): Don't initialize old target descriptions.
aac66a4c 9531 (arc_read_description): New function to cache target descriptions.
817a7585
AK
9532 * arc-tdep.h (arc_read_description): Add proto type.
9533 * arch/arc.c: New file.
9534 * arch/arc.h: Likewise.
9535 * features/Makefile: Replace old target descriptions with new.
9536 * features/arc-arcompact.c: Remove.
9537 * features/arc-arcompact.xml: Likewise.
9538 * features/arc-v2.c: Likewise
9539 * features/arc-v2.xml: Likewise
9540 * features/arc/aux-arcompact.xml: New file.
9541 * features/arc/aux-v2.xml: Likewise.
9542 * features/arc/core-arcompact.xml: Likewise.
9543 * features/arc/core-v2.xml: Likewise.
9544 * features/arc/aux-arcompact.c: Generate.
9545 * features/arc/aux-v2.c: Likewise.
9546 * features/arc/core-arcompact.c: Likewise.
9547 * features/arc/core-v2.c: Likewise.
9548 * target-descriptions (maint_print_c_tdesc_cmd): Support ARC features.
9549
67430cd0
TT
95502020-03-16 Tom Tromey <tromey@adacore.com>
9551
9552 PR gdb/25663:
9553 * dwarf2/read.c (dwarf2_name): Strip leading namespaces after
9554 putting value into bcache.
9555
30efb6c7
SM
95562020-03-16 Simon Marchi <simon.marchi@efficios.com>
9557
9558 PR gdb/21500
9559 * amd64-windows-tdep.c (amd64_windows_init_abi): Rename
9560 to...
9561 (amd64_windows_init_abi_common): ... this. Don't set size of
9562 long type.
9563 (amd64_windows_init_abi): New function.
9564 (amd64_cygwin_init_abi): New function.
9565 (_initialize_amd64_windows_tdep): Use amd64_cygwin_init_abi for
9566 the Cygwin OS ABI.
9567 * i386-windows-tdep.c (_initialize_i386_windows_tdep): Clarify
9568 comment.
9569
8db52437
SM
95702020-03-16 Simon Marchi <simon.marchi@efficios.com>
9571
9572 * windows-tdep.h (is_linked_with_cygwin_dll): New declaration.
9573 * windows-tdep.c (CYGWIN_DLL_NAME): New.
9574 (pe_import_directory_entry): New struct type.
9575 (is_linked_with_cygwin_dll): New function.
9576 * amd64-windows-tdep.c (amd64_windows_osabi_sniffer): Select
9577 GDB_OSABI_CYGWIN if the BFD is linked with the Cygwin DLL.
9578 * i386-windows-tdep.c (i386_windows_osabi_sniffer): Likewise.
9579
5982a56a
SM
95802020-03-16 Simon Marchi <simon.marchi@efficios.com>
9581
9582 * i386-windows-tdep.c: Mass-rename "cygwin" to "windows", except
9583 i386_cygwin_core_osabi_sniffer.
9584
7a1998df
SM
95852020-03-16 Simon Marchi <simon.marchi@efficios.com>
9586
9587 * i386-cygwin-tdep.c: Rename to...
9588 * i386-windows-tdep.c: ... this.
9589 * Makefile.in (ALL_TARGET_OBS): Rename i386-cygwin-tdep.c to
9590 i386-windows-tdep.c.
9591 * configure.tgt: Likewise.
9592
053205cc
SM
95932020-03-16 Simon Marchi <simon.marchi@efficios.com>
9594
9595 * osabi.h (enum gdb_osabi): Add GDB_OSABI_WINDOWS.
9596 * osabi.c (gdb_osabi_names): Add "Windows".
9597 * i386-cygwin-tdep.c (i386_cygwin_osabi_sniffer): Return
9598 GDB_OSABI_WINDOWS when the binary's target is "pei-i386".
9599 (i386_cygwin_core_osabi_sniffer): New function, extracted from
9600 i386_cygwin_osabi_sniffer.
9601 (_initialize_i386_cygwin_tdep): Register OS ABI
9602 GDB_OSABI_WINDOWS for i386.
9603 * amd64-windows-tdep.c (amd64_windows_osabi_sniffer): Return
9604 GDB_OSABI_WINDOWS when the binary's target is "pei-x86-64".
9605 (_initialize_amd64_windows_tdep): Register OS ABI GDB_OSABI_WINDOWS
9606 for x86-64.
9607 * configure.tgt: Use GDB_OSABI_WINDOWS as the default OS ABI
9608 when the target matches '*-*-mingw*'.
9609
fe4b2ee6
SM
96102020-03-16 Simon Marchi <simon.marchi@efficios.com>
9611
9612 * defs.h (enum gdb_osabi): Move to...
9613 * osabi.h (enum gdb_osabi): ... here.
9614 * gdbarch.sh: Include osabi.h in gdbarch.h.
9615 * gdbarch.h: Re-generate.
9616
cb9b645d
SM
96172020-03-16 Simon Marchi <simon.marchi@efficios.com>
9618
9619 * amd64-windows-tdep.c (amd64_windows_osabi_sniffer): New
9620 function.
9621 (_initialize_amd64_windows_tdep): Register osabi sniffer.
9622
3293bbaf
TT
96232020-03-14 Tom Tromey <tom@tromey.com>
9624
9625 * c-typeprint.c (cp_type_print_method_args): Print "__restrict__"
9626 for C++.
9627 (c_type_print_modifier): Likewise. Add "language" parameter.
9628 (c_type_print_varspec_prefix, c_type_print_base_struct_union)
9629 (c_type_print_base_1): Update.
9630 * type-stack.h (enum type_pieces) <tp_atomic, tp_restrict>: New
9631 constants.
9632 * type-stack.c (type_stack::insert): Handle tp_atomic and
9633 tp_restrict.
9634 (type_stack::follow_type_instance_flags): Likewise.
9635 (type_stack::follow_types): Likewise. Merge type-following code.
9636 * c-exp.y (RESTRICT, ATOMIC): New tokens.
9637 (space_identifier, cv_with_space_id)
9638 (const_or_volatile_or_space_identifier_noopt)
9639 (const_or_volatile_or_space_identifier): Remove.
9640 (single_qualifier, qualifier_seq_noopt, qualifier_seq): New
9641 rules.
9642 (ptr_operator, typebase): Update.
9643 (enum token_flag) <FLAG_C>: New constant.
9644 (ident_tokens): Add "restrict", "__restrict__", "__restrict", and
9645 "_Atomic".
9646 (lex_one_token): Handle FLAG_C.
9647
154151a6
KR
96482020-03-14 Kamil Rytarowski <n54@gmx.com>
9649
9650 * m68k-bsd-nat.c (fetch_registers): New variable lwp and pass
9651 it to the ptrace call.
9652 * m68k-bsd-nat.c (store_registers): Likewise.
9653
bc107784
KR
96542020-03-14 Kamil Rytarowski <n54@gmx.com>
9655
9656 * m68k-bsd-nat.c (m68kbsd_supply_gregset): Change type of regs to
9657 gdb_byte *.
9658 * m68k-bsd-nat.c (m68kbsd_supply_fpregset): Likewise.
9659 * m68k-bsd-nat.c (m68kbsd_collect_gregset): Likewise.
9660 * m68k-bsd-nat.c (m68kbsd_supply_pcb): Cast &tmp to gdb_byte *.
9661
01a80117
KR
96622020-03-14 Kamil Rytarowski <n54@gmx.com>
9663
9664 * m68k-bsd-nat.c (m68k_bsd_nat_target): Inherit from
9665 nbsd_nat_target instead of inf_ptrace_target.
9666 * m68k-bsd-nat.c: Include "nbsd-nat.h", as we are now using
9667 nbsd_nat_target.
9668
f90280ca
KR
96692020-03-14 Kamil Rytarowski <n54@gmx.com>
9670
9671 * m68k-bsd-nat.c: Define _KERNTYPES to get the declaration of
9672 register_t.
9673
6def66f1
KR
96742020-03-14 Kamil Rytarowski <n54@gmx.com>
9675
9676 * alpha-bsd-nat.c (fetch_registers): New variable lwp and pass
9677 it to the ptrace call.
9678 * alpha-bsd-nat.c (store_registers): Likewise.
9679
66eaca97
KR
96802020-03-14 Kamil Rytarowski <n54@gmx.com>
9681
9682 * alpha-bsd-nat.c: Remove <sys/procfs.h> and "gregset.h" from
9683 includes.
9684 * alpha-bsd-nat.c (gregset_t, fpregset_t): Remove.
9685 * alpha-bsd-nat.c (supply_gregset, fill_gregset, supply_fpregset,
9686 fill_fpregset): Likewise.
9687
4fed520b
KR
96882020-03-14 Kamil Rytarowski <n54@gmx.com>
9689
9690 * alpha-bsd-nat.c (alpha_netbsd_nat_target): Inherit from
9691 nbsd_nat_target instead of inf_ptrace_target.
9692 * alpha-bsd-nat.c: Include "nbsd-nat.h", as we are now using
9693 nbsd_nat_target.
9694
2190cf06
KR
96952020-03-14 Kamil Rytarowski <n54@gmx.com>
9696
9697 * alpha-bsd-nat.c: Define _KERNTYPES to get the declaration of
9698 register_t.
9699
75c56d3d
KR
97002020-03-14 Kamil Rytarowski <n54@gmx.com>
9701
9702 * arm-nbsd-nat.c (fetch_register): New variable lwp and pass
9703 it to the ptrace call.
9704 * arm-nbsd-nat.c (fetch_fp_register): Likewise.
9705 * arm-nbsd-nat.c (fetch_fp_regs): Likewise.
9706 * arm-nbsd-nat.c (store_register): Likewise.
9707 * arm-nbsd-nat.c (store_regs): Likewise.
9708 * arm-nbsd-nat.c (store_fp_register): Likewise.
9709 * arm-nbsd-nat.c (store_fp_regs): Likewise.
9710
6018d381
KR
97112020-03-14 Kamil Rytarowski <n54@gmx.com>
9712
9713 * arm-nbsd-nat.c (arm_netbsd_nat_target): Inherit from
9714 nbsd_nat_target instead of inf_ptrace_target.
9715 * arm-nbsd-nat.c: Include "nbsd-nat.h", as we are now using
9716 nbsd_nat_target.
9717
013f99f0
KR
97182020-03-14 Kamil Rytarowski <n54@gmx.com>
9719
9720 * x86-bsd-nat.c (x86bsd_dr_get): New variable lwp and pass
9721 it to the ptrace call.
9722 * x86-bsd-nat.c (x86bsd_dr_set): Likewise.
9723
12753073
KR
97242020-03-14 Kamil Rytarowski <n54@gmx.com>
9725
6227b330
KR
9726 * vax-bsd-nat.c (vaxbsd_supply_gregset): New variable lwp and pass
9727 it to the ptrace call.
9728 * vax-bsd-nat.c (vaxbsd_collect_gregset): Likewise.
9729
97302020-03-14 Kamil Rytarowski <n54@gmx.com>
9731
9732 * vax-bsd-nat.c (vaxbsd_supply_gregset): Cast gregs to const
9733 gdb_byte *.
12753073
KR
9734 * vax-bsd-nat.c (vaxbsd_collect_gregset): Cast gregs to void *.
9735
d5be5fa4
KR
97362020-03-14 Kamil Rytarowski <n54@gmx.com>
9737
9738 * vax-bsd-nat.c (vax_bsd_nat_target): Inherit from nbsd_nat_target
9739 instead of inf_ptrace_target.
9740 * vax-bsd-nat.c: Include "nbsd-nat.h", as we are now using
9741 nbsd_nat_target.
9742
8110f842
KR
97432020-03-14 Kamil Rytarowski <n54@gmx.com>
9744
9745 * mips-nbsd-nat.c: Define _KERNTYPES to get the declaration of
9746 register_t.
9747
52feded7
KR
97482020-03-14 Kamil Rytarowski <n54@gmx.com>
9749
9750 * ppc-nbsd-nat.c: Define _KERNTYPES to get the declaration of
9751 register_t.
9752
25567eee
KR
97532020-03-14 Kamil Rytarowski <n54@gmx.com>
9754
9755 * vax-bsd-nat.c: Define _KERNTYPES to get the declaration of
9756 register_t.
9757
426a9c18
TT
97582020-03-13 Tom Tromey <tom@tromey.com>
9759
9760 * value.h (val_print): Don't declare.
9761 * valprint.h (val_print_array_elements)
9762 (val_print_scalar_formatted, generic_val_print): Don't declare.
9763 * valprint.c (generic_val_print_array): Take a struct value.
9764 (generic_val_print_ptr, generic_val_print_memberptr)
9765 (generic_val_print_bool, generic_val_print_int)
9766 (generic_val_print_char, generic_val_print_complex)
9767 (generic_val_print): Remove.
9768 (generic_value_print): Update.
9769 (do_val_print): Remove unused parameters. Don't call
9770 la_val_print.
9771 (val_print): Remove.
9772 (common_val_print): Update. Don't call value_check_printable.
9773 (val_print_scalar_formatted, val_print_array_elements): Remove.
9774 * rust-lang.c (rust_val_print): Remove.
9775 (rust_language_defn): Update.
9776 * p-valprint.c (pascal_val_print): Remove.
9777 (pascal_value_print_inner): Update.
9778 (pascal_object_print_val_fields, pascal_object_print_val):
9779 Remove.
9780 (pascal_object_print_static_field): Update.
9781 * p-lang.h (pascal_val_print): Don't declare.
9782 * p-lang.c (pascal_language_defn): Update.
9783 * opencl-lang.c (opencl_language_defn): Update.
9784 * objc-lang.c (objc_language_defn): Update.
9785 * m2-valprint.c (m2_print_unbounded_array, m2_val_print): Remove.
9786 * m2-lang.h (m2_val_print): Don't declare.
9787 * m2-lang.c (m2_language_defn): Update.
9788 * language.h (struct language_defn) <la_val_print>: Remove.
9789 * language.c (unk_lang_value_print_inner): Rename. Change
9790 argument types.
9791 (unknown_language_defn, auto_language_defn): Update.
9792 * go-valprint.c (go_val_print): Remove.
9793 * go-lang.h (go_val_print): Don't declare.
9794 * go-lang.c (go_language_defn): Update.
9795 * f-valprint.c (f_val_print): Remove.
9796 * f-lang.h (f_value_print): Don't declare.
9797 * f-lang.c (f_language_defn): Update.
9798 * d-valprint.c (d_val_print): Remove.
9799 * d-lang.h (d_value_print): Don't declare.
9800 * d-lang.c (d_language_defn): Update.
9801 * cp-valprint.c (cp_print_value_fields)
9802 (cp_print_value_fields_rtti, cp_print_value): Remove.
9803 (cp_print_static_field): Update.
9804 * c-valprint.c (c_val_print_array, c_val_print_ptr)
9805 (c_val_print_struct, c_val_print_union, c_val_print_int)
9806 (c_val_print_memberptr, c_val_print): Remove.
9807 * c-lang.h (c_val_print_array, cp_print_value_fields)
9808 (cp_print_value_fields_rtti): Don't declare.
9809 * c-lang.c (c_language_defn, cplus_language_defn)
9810 (asm_language_defn, minimal_language_defn): Update.
9811 * ada-valprint.c (ada_val_print_ptr, ada_val_print_num): Remove.
9812 (ada_val_print_enum): Take a struct value.
9813 (ada_val_print_flt, ada_val_print_array, ada_val_print_1)
9814 (ada_val_print): Remove.
9815 (ada_value_print_1): Update.
9816 (printable_val_type): Remove.
9817 * ada-lang.h (ada_val_print): Don't declare.
9818 * ada-lang.c (ada_language_defn): Update.
9819
42331a1e
TT
98202020-03-13 Tom Tromey <tom@tromey.com>
9821
9822 * valprint.c (do_val_print): Update.
9823 * python/python-internal.h (gdbpy_apply_val_pretty_printer): Take
9824 a struct value.
9825 (value_to_value_object_no_release): Declare.
9826 * python/py-value.c (value_to_value_object_no_release): New
9827 function.
9828 * python/py-prettyprint.c (gdbpy_apply_val_pretty_printer): Take a
9829 struct value.
9830 * guile/scm-value.c (vlscm_scm_from_value_no_release): New
9831 function.
9832 * guile/scm-pretty-print.c (gdbscm_apply_val_pretty_printer): Take
9833 a struct value.
9834 * guile/guile-internal.h (vlscm_scm_from_value_no_release):
9835 Declare.
9836 (gdbscm_apply_val_pretty_printer): Take a struct value.
9837 * extension.h (apply_ext_lang_val_pretty_printer): Take a struct
9838 value.
9839 * extension.c (apply_ext_lang_val_pretty_printer): Take a struct
9840 value.
9841 * extension-priv.h (struct extension_language_ops)
9842 <apply_val_pretty_printer>: Take a struct value.
9843 * cp-valprint.c (cp_print_value): Create a struct value.
9844 (cp_print_value): Update.
9845
3a916a97
TT
98462020-03-13 Tom Tromey <tom@tromey.com>
9847
9848 * ada-valprint.c (print_field_values): Call common_val_print.
9849
b59eac37
TT
98502020-03-13 Tom Tromey <tom@tromey.com>
9851
9852 * ada-valprint.c (val_print_packed_array_elements): Remove
9853 bitoffset and val parameters. Call common_val_print.
9854 (ada_val_print_string): Remove offset, address, and original_value
9855 parameters.
9856 (ada_val_print_array): Update.
9857 (ada_value_print_array): New function.
9858 (ada_value_print_1): Call it.
9859
03371129
TT
98602020-03-13 Tom Tromey <tom@tromey.com>
9861
9862 * ada-valprint.c (ada_value_print): Use common_val_print.
9863
2e088f8b
TT
98642020-03-13 Tom Tromey <tom@tromey.com>
9865
9866 * ada-valprint.c (ada_val_print_ref): Use common_val_print.
9867
39ef85a8
TT
98682020-03-13 Tom Tromey <tom@tromey.com>
9869
9870 * ada-valprint.c (ada_value_print_num): New function.
9871 (ada_value_print_1): Use it.
9872
b9fa6e07
TT
98732020-03-13 Tom Tromey <tom@tromey.com>
9874
9875 * ada-valprint.c (ada_value_print_1) <TYPE_CODE_FLT>: Rewrite.
9876
416595d6
TT
98772020-03-13 Tom Tromey <tom@tromey.com>
9878
9879 * ada-valprint.c (ada_value_print_ptr): New function.
9880 (ada_value_print_1): Use it.
9881
5b5e15ec
TT
98822020-03-13 Tom Tromey <tom@tromey.com>
9883
9884 * ada-valprint.c (ada_val_print_gnat_array): Take a struct value;
9885 call common_val_print.
9886 (ada_val_print_1): Update.
9887 (ada_value_print_1): New function.
9888 (ada_value_print_inner): Rewrite.
9889
fbf54e75
TT
98902020-03-13 Tom Tromey <tom@tromey.com>
9891
9892 * cp-valprint.c (cp_print_value_fields): Update.
9893 (cp_print_value): New function.
9894
64b653ca
TT
98952020-03-13 Tom Tromey <tom@tromey.com>
9896
9897 * m2-valprint.c (m2_value_print_inner): Use
9898 cp_print_value_fields.
9899 * cp-valprint.c (cp_print_value_fields): New function.
9900 * c-valprint.c (c_value_print_struct): New function.
9901 (c_value_print_inner): Use c_value_print_struct.
9902 * c-lang.h (cp_print_value_fields): Declare.
9903
6999f067
TT
99042020-03-13 Tom Tromey <tom@tromey.com>
9905
9906 * c-valprint.c (c_value_print_array): New function.
9907 (c_value_print_inner): Use it.
9908
ce80b8bd
TT
99092020-03-13 Tom Tromey <tom@tromey.com>
9910
9911 * c-valprint.c (c_value_print_memberptr): New function.
9912 (c_value_print_inner): Use it.
9913
2faac269
TT
99142020-03-13 Tom Tromey <tom@tromey.com>
9915
9916 * c-valprint.c (c_value_print_int): New function.
9917 (c_value_print_inner): Use it.
9918
da3e2c29
TT
99192020-03-13 Tom Tromey <tom@tromey.com>
9920
9921 * c-valprint.c (c_value_print_ptr): New function.
9922 (c_value_print_inner): Use it.
9923
50836231
TT
99242020-03-13 Tom Tromey <tom@tromey.com>
9925
9926 * c-valprint.c (c_value_print_inner): Rewrite.
9927
4f412b6e
TT
99282020-03-13 Tom Tromey <tom@tromey.com>
9929
9930 * valprint.c (generic_value_print_complex): New function.
9931 (generic_value_print): Use it.
9932
f5354008
TT
99332020-03-13 Tom Tromey <tom@tromey.com>
9934
9935 * valprint.c (generic_val_print_float): Don't call
9936 val_print_scalar_formatted.
9937 (generic_val_print, generic_value_print): Update.
9938
3eec3b05
TT
99392020-03-13 Tom Tromey <tom@tromey.com>
9940
9941 * valprint.c (generic_value_print_char): New function
9942 (generic_value_print): Use it.
9943
fdddfccb
TT
99442020-03-13 Tom Tromey <tom@tromey.com>
9945
9946 * valprint.c (generic_value_print_int): New function.
9947 (generic_value_print): Use it.
9948
6dde7521
TT
99492020-03-13 Tom Tromey <tom@tromey.com>
9950
9951 * valprint.c (generic_value_print_bool): New function.
9952 (generic_value_print): Use it.
9953
4112d2e6
TT
99542020-03-13 Tom Tromey <tom@tromey.com>
9955
9956 * valprint.c (generic_val_print_func): Simplify.
9957 (generic_val_print, generic_value_print): Update.
9958
65786af6
TT
99592020-03-13 Tom Tromey <tom@tromey.com>
9960
9961 * valprint.c (generic_val_print_flags): Remove.
9962 (generic_val_print, generic_value_print): Update.
9963 (val_print_type_code_flags): Add original_value parameter.
9964
40f3ce18
TT
99652020-03-13 Tom Tromey <tom@tromey.com>
9966
9967 * valprint.c (generic_val_print): Update.
9968 (generic_value_print): Update.
9969 * valprint.c (generic_val_print_enum): Don't call
9970 val_print_scalar_formatted.
9971
2a5b130b
TT
99722020-03-13 Tom Tromey <tom@tromey.com>
9973
9974 * valprint.c (generic_value_print): Call generic_value_print_ptr.
9975 * valprint.c (generic_value_print_ptr): New function.
9976
abc66ce9
TT
99772020-03-13 Tom Tromey <tom@tromey.com>
9978
9979 * valprint.c (generic_value_print): Rewrite.
9980
07a32858
TT
99812020-03-13 Tom Tromey <tom@tromey.com>
9982
9983 * p-valprint.c (pascal_object_print_value_fields)
9984 (pascal_object_print_value): New functions.
9985
64d64d3a
TT
99862020-03-13 Tom Tromey <tom@tromey.com>
9987
9988 * p-valprint.c (pascal_value_print_inner): Rewrite.
9989
6a95a1f5
TT
99902020-03-13 Tom Tromey <tom@tromey.com>
9991
9992 * f-valprint.c (f_value_print_innner): Rewrite.
9993
59fcdac6
TT
99942020-03-13 Tom Tromey <tom@tromey.com>
9995
9996 * m2-valprint.c (m2_print_unbounded_array): New overload.
9997 (m2_print_unbounded_array): Update.
9998 (m2_print_array_contents): Take a struct value.
9999 (m2_value_print_inner): Rewrite.
10000
d133c3e1
TT
100012020-03-13 Tom Tromey <tom@tromey.com>
10002
10003 * d-valprint.c (dynamic_array_type): Call d_value_print_inner.
10004 (d_value_print_inner): New function.
10005 * d-lang.h (d_value_print_inner): Declare.
10006 * d-lang.c (d_language_defn): Use d_value_print_inner.
10007
23b0f06b
TT
100082020-03-13 Tom Tromey <tom@tromey.com>
10009
10010 * go-valprint.c (go_value_print_inner): New function.
10011 * go-lang.h (go_value_print_inner): Declare.
10012 * go-lang.c (go_language_defn): Use go_value_print_inner.
10013
5f56f7cb
TT
100142020-03-13 Tom Tromey <tom@tromey.com>
10015
10016 * rust-lang.c (val_print_struct, rust_print_enum): Use the value
10017 API.
10018 (rust_val_print): Rewrite.
10019 (rust_value_print_inner): New function, from rust_val_print.
10020 (rust_language_defn): Use rust_value_print_inner.
10021
26792ee0
TT
100222020-03-13 Tom Tromey <tom@tromey.com>
10023
10024 * ada-valprint.c (ada_value_print_inner): New function.
10025 * ada-lang.h (ada_value_print_inner): Declare.
10026 * ada-lang.c (ada_language_defn): Use ada_value_print_inner.
10027
24051bbe
TT
100282020-03-13 Tom Tromey <tom@tromey.com>
10029
10030 * f-valprint.c (f_value_print_innner): New function.
10031 * f-lang.h (f_value_print_innner): Declare.
10032 * f-lang.c (f_language_defn): Use f_value_print_innner.
10033
c0941be6
TT
100342020-03-13 Tom Tromey <tom@tromey.com>
10035
10036 * p-valprint.c (pascal_value_print_inner): New function.
10037 * p-lang.h (pascal_value_print_inner): Declare.
10038 * p-lang.c (pascal_language_defn): Use pascal_value_print_inner.
10039
62c4663d
TT
100402020-03-13 Tom Tromey <tom@tromey.com>
10041
10042 * m2-valprint.c (m2_value_print_inner): New function.
10043 * m2-lang.h (m2_value_print_inner): Declare.
10044 * m2-lang.c (m2_language_defn): Use m2_value_print_inner.
10045
62182190
TT
100462020-03-13 Tom Tromey <tom@tromey.com>
10047
10048 * opencl-lang.c (opencl_language_defn): Use c_value_print_inner.
10049 * objc-lang.c (objc_language_defn): Use c_value_print_inner.
10050 * c-valprint.c (c_value_print_inner): New function.
10051 * c-lang.h (c_value_print_inner): Declare.
10052 * c-lang.c (c_language_defn, cplus_language_defn)
10053 (asm_language_defn, minimal_language_defn): Use
10054 c_value_print_inner.
10055
1e592a8a
TT
100562020-03-13 Tom Tromey <tom@tromey.com>
10057
10058 * p-valprint.c (pascal_object_print_value_fields): Now static.
10059 * p-lang.h (pascal_object_print_value_fields): Don't declare.
10060
7fe471e9
TT
100612020-03-13 Tom Tromey <tom@tromey.com>
10062
10063 * c-valprint.c (c_val_print_array): Simplify.
10064
d121c6ce
TT
100652020-03-13 Tom Tromey <tom@tromey.com>
10066
10067 * valprint.c (value_print_array_elements): New function.
10068 * valprint.h (value_print_array_elements): Declare.
10069
4dba70ee
TT
100702020-03-13 Tom Tromey <tom@tromey.com>
10071
10072 * printcmd.c (print_formatted): Use value_print_scalar_formatted.
10073 * mips-tdep.c (mips_print_register): Use
10074 value_print_scalar_formatted.
10075
4f9ae810
TT
100762020-03-13 Tom Tromey <tom@tromey.com>
10077
10078 * valprint.h (value_print_scalar_formatted): Declare.
10079 * valprint.c (value_print_scalar_formatted): New function.
10080
156bfec9
TT
100812020-03-13 Tom Tromey <tom@tromey.com>
10082
10083 * valprint.h (generic_value_print): Declare.
10084 * valprint.c (generic_value_print): New function.
10085
2b4e573d
TT
100862020-03-13 Tom Tromey <tom@tromey.com>
10087
10088 * valprint.c (do_val_print): Call la_value_print_inner, if
10089 available.
10090 * rust-lang.c (rust_language_defn): Update.
10091 * p-lang.c (pascal_language_defn): Update.
10092 * opencl-lang.c (opencl_language_defn): Update.
10093 * objc-lang.c (objc_language_defn): Update.
10094 * m2-lang.c (m2_language_defn): Update.
10095 * language.h (struct language_defn) <la_value_print_inner>: New
10096 member.
10097 * language.c (unknown_language_defn, auto_language_defn): Update.
10098 * go-lang.c (go_language_defn): Update.
10099 * f-lang.c (f_language_defn): Update.
10100 * d-lang.c (d_language_defn): Update.
10101 * c-lang.c (c_language_defn, cplus_language_defn)
10102 (asm_language_defn, minimal_language_defn): Update.
10103 * ada-lang.c (ada_language_defn): Update.
10104
a1f6a07c
TT
101052020-03-13 Tom Tromey <tom@tromey.com>
10106
10107 * c-valprint.c (c_value_print): Use common_val_print.
10108
410cf315
TT
101092020-03-13 Tom Tromey <tom@tromey.com>
10110
10111 * cp-valprint.c (cp_print_static_field): Use common_val_print.
10112
72a45c93
TT
101132020-03-13 Tom Tromey <tom@tromey.com>
10114
10115 * f-valprint.c (f77_print_array_1, f_val_print): Use
10116 common_val_print.
10117
040f66bd
TT
101182020-03-13 Tom Tromey <tom@tromey.com>
10119
10120 * riscv-tdep.c (riscv_print_one_register_info): Use
10121 common_val_print.
10122
a6e05a6c
TT
101232020-03-13 Tom Tromey <tom@tromey.com>
10124
10125 * mi/mi-main.c (output_register): Use common_val_print.
10126
3444c526
TT
101272020-03-13 Tom Tromey <tom@tromey.com>
10128
10129 * infcmd.c (default_print_one_register_info): Use
10130 common_val_print.
10131
c2a44efe
TT
101322020-03-13 Tom Tromey <tom@tromey.com>
10133
10134 * valprint.h (common_val_print_checked): Declare.
10135 * valprint.c (common_val_print_checked): New function.
10136 * stack.c (print_frame_arg): Use common_val_print_checked.
10137
b0c26e99
TT
101382020-03-13 Tom Tromey <tom@tromey.com>
10139
10140 * valprint.c (do_val_print): New function, from val_print.
10141 (val_print): Use do_val_print.
10142 (common_val_print): Use do_val_print.
10143
ce3acbe9
TT
101442020-03-13 Tom Tromey <tom@tromey.com>
10145
10146 * valprint.c (value_print): Use scoped_value_mark.
10147
96c7f873
TV
101482020-03-13 Tom de Vries <tdevries@suse.de>
10149
10150 PR symtab/25646
10151 * psymtab.c (partial_symtab::partial_symtab): Don't set
10152 globals_offset and statics_offset. Push element onto
10153 current_global_psymbols and current_static_psymbols stacks.
10154 (concat): New function.
10155 (end_psymtab_common): Set globals_offset and statics_offset. Pop
10156 element from current_global_psymbols and current_static_psymbols
10157 stacks. Concat popped elements to global_psymbols and
10158 static_symbols.
10159 (add_psymbol_to_list): Use current_global_psymbols and
10160 current_static_psymbols stacks.
10161 * psymtab.h (class psymtab_storage): Add current_global_psymbols and
10162 current_static_psymbols fields.
10163
6ba0a321
CB
101642020-03-12 Christian Biesinger <cbiesinger@google.com>
10165
10166 * corelow.c (sniff_core_bfd): Remove.
10167 (class core_target) <m_core_vec>: Remove.
10168 (core_target::core_target): Update.
10169 (core_file_fns): Remove.
10170 (deprecated_add_core_fns): Remove.
10171 (default_core_sniffer): Remove.
10172 (sniff_core_bfd): Remove.
10173 (default_check_format): Remove.
10174 (gdb_check_format): Remove.
10175 (core_target_open): Update.
10176 (core_target::get_core_register_section): Update.
10177 (get_core_registers_cb): Update.
10178 (core_target::fetch_registers): Update.
10179 * gdbcore.h (struct core_fns): Remove.
10180 (deprecated_add_core_fns): Remove.
10181 (default_core_sniffer): Remove.
10182 (default_check_format): Remove.
10183
227031b2
TT
101842020-03-12 Tom Tromey <tom@tromey.com>
10185
10186 * arm-tdep.c (struct arm_mapping_symbol) <value>: Now a
10187 CORE_ADDR.
10188 (struct arm_exidx_entry) <addr>: Now a CORE_ADDR.
10189
53807e9f
TT
101902020-03-12 Tom Tromey <tom@tromey.com>
10191
10192 * remote.c (remote_target::download_tracepoint)
10193 (remote_target::enable_tracepoint)
10194 (remote_target::disable_tracepoint): Use phex, not sprintf_vma.
10195 * breakpoint.c (print_recreate_masked_watchpoint): Use phex, not
10196 sprintf_vma.
10197
64f25102
TT
101982020-03-12 Tom Tromey <tom@tromey.com>
10199
10200 * symfile-mem.c: Update CORE_ADDR size assert.
10201
272cd5a3
SM
102022020-03-12 Simon Marchi <simon.marchi@efficios.com>
10203
10204 * selftest.m4: Move to gdbsupport/.
10205 * acinclude.m4: Update path to selftest.m4.
10206
74cd3f9d
SM
102072020-03-12 Simon Marchi <simon.marchi@efficios.com>
10208
10209 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Rename to...
10210 (SELFTESTS_SRCS): ... this. Add disasm-selftests.c,
10211 gdbarch-selfselftests.c and selftest-arch.c.
10212 (SUBDIR_UNITTESTS_OBS): Rename to...
10213 (SELFTESTS_OBS): ... this.
10214 (COMMON_SFILES): Remove disasm-selftests.c and
10215 gdbarch-selftests.c.
10216 * configure.ac: Don't add selftest-arch.{c,o} to
10217 CONFIG_{SRCS,OBS}.
10218 * disasm-selftests.c, gdbarch-selftests.c: Remove GDB_SELF_TEST
10219 preprocessor conditions.
10220
db6878ac
SM
102212020-03-12 Simon Marchi <simon.marchi@efficios.com>
10222
10223 * configure.ac: Don't source bfd/development.sh.
10224 * selftest.m4: Modify comment.
10225 * configure: Re-generate.
10226
4d696a5c
SM
102272020-03-12 Simon Marchi <simon.marchi@efficios.com>
10228
10229 * selftest.m4 (GDB_AC_SELFTEST): Error out if $development is
10230 not "true" or "false".
10231 * configure: Re-generate.
10232
8dd8e1c7
CB
102332020-03-12 Christian Biesinger <cbiesinger@google.com>
10234
10235 * Makefile.in (HFILES_NO_SRCDIR): Add new arm-nbsd-tdep.h file.
10236 * arm-nbsd-nat.c (arm_supply_gregset): Moved to arm-nbsd-tdep and
10237 renamed to arm_nbsd_supply_gregset.
10238 (fetch_register): Update to call arm_nbsd_supply_gregset.
10239 (fetch_regs): Remove in favor of fetch_register with a -1 regno.
10240 (arm_netbsd_nat_target::fetch_registers): Update.
10241 (fetch_elfcore_registers): Removed.
10242 (_initialize_arm_netbsd_nat): Removed call to deprecated_add_core_fns.
10243 * arm-nbsd-tdep.c (struct arm_nbsd_reg): New struct.
10244 (arm_nbsd_supply_gregset): Moved from arm-nbsd-nat.c and updated to
10245 not require NetBSD system headers.
10246 (arm_nbsd_regset): New struct.
10247 (arm_nbsd_iterate_over_regset_sections): New function.
10248 (arm_netbsd_init_abi_common): Updated to call
10249 set_gdbarch_iterate_over_regset_sections.
10250 * arm-nbsd-tdep.h: New file.
10251
dd69bf7a
KB
102522020-03-11 Kevin Buettner <kevinb@redhat.com>
10253
10254 * symtab.c (find_pc_sect_line): Add check which prevents infinite
10255 recursion.
10256
a0761e34
SM
102572020-03-11 Simon Marchi <simon.marchi@efficios.com>
10258
10259 * configure: Re-generate.
10260
e7a82140
TT
102612020-03-11 Tom Tromey <tromey@adacore.com>
10262
10263 * ada-typeprint.c (print_choices): Fix comment.
10264
dcc050c8
AB
102652020-03-11 Andrew Burgess <andrew.burgess@embecosm.com>
10266
10267 * buildsyms.c (buildsym_compunit::record_line): Avoid accessing
10268 previous item in the list, when the list has no items.
10269
1c33af77
TV
102702020-03-11 Tom de Vries <tdevries@suse.de>
10271
10272 * dwarf2/loc.c (dwarf2_evaluate_property): Handle NULL frame in
10273 PROP_LOCLIST handling code.
10274
8c95582d
AB
102752020-03-10 Andrew Burgess <andrew.burgess@embecosm.com>
10276
10277 * buildsym-legacy.c (record_line): Pass extra parameter to
10278 record_line.
10279 * buildsym.c (buildsym_compunit::record_line): Take an extra
10280 parameter, reduce duplication in the line table, and record the
10281 is_stmt flag in the line table.
10282 * buildsym.h (buildsym_compunit::record_line): Add extra
10283 parameter.
10284 * disasm.c (do_mixed_source_and_assembly_deprecated): Ignore
10285 non-statement lines.
10286 * dwarf2/read.c (dwarf_record_line_1): Add extra parameter, pass
10287 this to the symtab builder.
10288 (dwarf_finish_line): Pass extra parameter to dwarf_record_line_1.
10289 (lnp_state_machine::record_line): Pass a suitable is_stmt flag
10290 through to dwarf_record_line_1.
10291 * infrun.c (process_event_stop_test): When stepping, don't stop at
10292 a non-statement instruction, and only refresh the step info when
10293 we land in the middle of a line's range. Also add an extra
10294 comment.
10295 * jit.c (jit_symtab_line_mapping_add_impl): Initialise is_stmt
10296 field.
10297 * record-btrace.c (btrace_find_line_range): Only record lines
10298 marked as is-statement.
10299 * stack.c (frame_show_address): Show the frame address if we are
10300 in a non-statement sal.
10301 * symmisc.c (dump_symtab_1): Print the is_stmt flag.
10302 (maintenance_print_one_line_table): Print a header for the is_stmt
10303 column, and include is_stmt information in the output.
10304 * symtab.c (find_pc_sect_line): Find lines marked as statements in
10305 preference to non-statements.
10306 (find_pcs_for_symtab_line): Prefer is-statement entries.
10307 (find_line_common): Likewise.
10308 * symtab.h (struct linetable_entry): Add is_stmt field.
10309 (struct symtab_and_line): Likewise.
10310 * xcoffread.c (arrange_linetable): Initialise is_stmt field when
10311 arranging the line table.
10312
e4003a34
TV
103132020-03-07 Tom de Vries <tdevries@suse.de>
10314
10315 * dwarf2/read.c (read_typedef): Treat anonymous typedef as forwarder
10316 DIE.
10317
e8932576
TT
103182020-03-07 Tom Tromey <tom@tromey.com>
10319
10320 * valops.c (value_literal_complex): Remove obsolete comment.
10321 * gdbtypes.h (enum type_code) <TYPE_CODE_FLT>: Remove obsolete
10322 comment.
10323
29734269
SM
103242020-03-06 Simon Marchi <simon.marchi@polymtl.ca>
10325
10326 * infrun.h: Forward-declare thread_info.
10327 (set_step_info): Add thread_info parameter, add doc.
10328 * infrun.c (set_step_info): Add thread_info parameter, move doc
10329 to header.
10330 * infrun.c (process_event_stop_test): Pass thread to
10331 set_step_info call.
10332 * infcmd.c (set_step_frame): Add thread_info pointer, pass it to
10333 set_step_info.
10334 (prepare_one_step): Add thread_info parameter, pass it to
10335 set_step_frame and prepare_one_step (recursive) call.
10336 (step_1): Pass thread to prepare_one_step call.
10337 (step_command_fsm::should_stop): Pass thread to
10338 prepare_one_step.
10339 (until_next_fsm): Pass thread to set_step_frame call.
10340 (finish_command): Pass thread to set_step_info call.
10341
b7d64b29
HD
103422020-03-06 Hannes Domani <ssbssa@yahoo.de>
10343
10344 * windows-tdep.c (windows_solib_create_inferior_hook):
10345 Check if inferior is running.
10346
09f2921c
TV
103472020-03-06 Tom de Vries <tdevries@suse.de>
10348
10349 * NEWS: Fix "the the".
10350 * ctfread.c: Same.
10351
fd760e79
TV
103522020-03-06 Tom de Vries <tdevries@suse.de>
10353
10354 * psymtab.c (psymtab_to_symtab): Don't print "done.".
10355
20ea4a60
AB
103562020-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
10357
10358 * .dir-locals.el: Add a comment referencing the other copies of
10359 this file.
10360
0afbabf0
JB
103612020-03-05 John Baldwin <jhb@FreeBSD.org>
10362
10363 * fbsd-tdep.c (fbsd_make_corefile_notes): Use std::string for
10364 psargs.
10365
842806cb
TBA
103662020-03-05 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
10367
10368 * .gitattributes: New file.
10369
be1e3d3e
TT
103702020-03-04 Tom Tromey <tom@tromey.com>
10371
10372 * symmisc.c (print_symbol_bcache_statistics)
10373 (print_objfile_statistics): Update.
10374 * symfile.c (allocate_symtab): Use intern.
10375 * psymtab.c (partial_symtab::partial_symtab): Use intern.
10376 * objfiles.h (struct objfile_per_bfd_storage) <filename_cache,
10377 macro_cache>: Remove.
10378 <string_cache>: New member.
10379 (struct objfile) <intern>: New methods.
10380 * elfread.c (elf_symtab_read): Use intern.
10381 * dwarf2/read.c (fixup_go_packaging): Intern package name.
10382 (dwarf2_compute_name, dwarf2_physname)
10383 (create_dwo_unit_in_dwp_v1, create_dwo_unit_in_dwp_v2): Intern
10384 names.
10385 (guess_partial_die_structure_name): Update.
10386 (partial_die_info::fixup): Intern name.
10387 (dwarf2_canonicalize_name): Change parameter to objfile. Intern
10388 name.
10389 (dwarf2_name): Intern name. Update.
10390 * buildsym.c (buildsym_compunit::get_macro_table): Use
10391 string_cache.
10392
4e7625fd
TT
103932020-03-04 Tom Tromey <tom@tromey.com>
10394
10395 * jit.c (bfd_open_from_target_memory): Make "target" const.
10396 * corefile.c (gnutarget): Now const.
10397 * gdbcore.h (gnutarget): Now const.
10398
46f9f931
HD
103992020-03-04 Hannes Domani <ssbssa@yahoo.de>
10400
10401 * NEWS: Mention support for WOW64 processes.
10402 * amd64-windows-nat.c (amd64_mappings): Rename and remove static.
10403 (amd64_windows_segment_register_p): Remove static.
10404 (_initialize_amd64_windows_nat): Update.
10405 * configure.nat <windows> (NATDEPFILES): Add i386-windows-nat.o.
10406 * i386-windows-nat.c (context_offset): Update.
10407 (i386_mappings): Rename and remove static.
10408 (i386_windows_segment_register_p): Remove static.
10409 (_initialize_i386_windows_nat): Update.
10410 * windows-nat.c (STATUS_WX86_BREAKPOINT): New macro.
10411 (STATUS_WX86_SINGLE_STEP): New macro.
10412 (EnumProcessModulesEx): New macro.
10413 (Wow64SuspendThread): New macro.
10414 (Wow64GetThreadContext): New macro.
10415 (Wow64SetThreadContext): New macro.
10416 (Wow64GetThreadSelectorEntry): New macro.
10417 (windows_set_context_register_offsets): Add static.
10418 (windows_set_segment_register_p): Likewise.
10419 (windows_add_thread): Adapt for WOW64 processes.
10420 (windows_fetch_one_register): Likewise.
10421 (windows_nat_target::fetch_registers): Likewise.
10422 (windows_store_one_register): Likewise.
10423 (display_selector): Likewise.
10424 (display_selectors): Likewise.
10425 (handle_exception): Likewise.
10426 (windows_continue): Likewise.
10427 (windows_nat_target::resume): Likewise.
10428 (windows_add_all_dlls): Likewise.
10429 (do_initial_windows_stuff): Likewise.
10430 (windows_nat_target::attach): Likewise.
10431 (windows_get_exec_module_filename): Likewise.
10432 (windows_nat_target::create_inferior): Likewise.
10433 (windows_xfer_siginfo): Likewise.
10434 (_initialize_loadable): Initialize Wow64SuspendThread,
10435 Wow64GetThreadContext, Wow64SetThreadContext,
10436 Wow64GetThreadSelectorEntry and EnumProcessModulesEx.
10437 * windows-nat.h (windows_set_context_register_offsets):
10438 Remove declaration.
10439 (windows_set_segment_register_p): Likewise.
10440 (i386_windows_segment_register_p): Add declaration.
10441 (amd64_windows_segment_register_p): Likewise.
10442
440cf44e
LM
104432020-03-04 Luis Machado <luis.machado@linaro.org>
10444
10445 Revert aa66aac47b4dd38f9524ddb5546c08cc09930d37 due to regressions
10446 in "info registers" for AArch64/ARM.
10447
10448 The change caused "info registers" to not print GPR's.
10449
10450 gdb/ChangeLog:
10451
10452 2020-02-01 Shahab Vahedi <shahab@synopsys.com>
10453
10454 * target-descriptions.c (tdesc_register_in_reggroup_p): Return 0
10455 when reg->group is empty and reggroup is not.
10456
1009d92f
TT
104572020-03-03 Tom Tromey <tromey@adacore.com>
10458
10459 * dwarf2/frame.c (struct dwarf2_frame_cache)
10460 <checked_tailcall_bottom, entry_cfa_sp_offset,
10461 entry_cfa_sp_offset_p>: Remove members.
10462 (dwarf2_frame_cache): Call dwarf2_tailcall_sniffer_first.
10463 (dwarf2_frame_prev_register): Don't call
10464 dwarf2_tailcall_sniffer_first.
10465 (dwarf2_append_unwinders): Don't append tailcall unwinder.
10466 * frame-unwind.c (add_unwinder): New fuction.
10467 (frame_unwind_init): Use it. Add tailcall unwinder.
10468
5e5d66b6
AB
104692020-03-03 Andrew Burgess <andrew.burgess@embecosm.com>
10470 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
10471
10472 * f-valprint.c (f_val_print): Handle TYPE_CODE_BOOL, any non-zero
10473 value should be printed as true.
10474
584cf46d
HD
104752020-03-03 Hannes Domani <ssbssa@yahoo.de>
10476
10477 * windows-tdep.c (windows_solib_create_inferior_hook): New function.
10478 (windows_init_abi): Set and use windows_so_ops.
10479
7b973adc
SDJ
104802020-03-03 Sergio Durigan Junior <sergiodj@redhat.com>
10481
10482 * printcmd.c (print_c_string): Check also for TYPE_CODE_PTR
10483 when verifying if dealing with a convenience variable.
10484
bb7b70ab
LM
104852020-03-03 Luis Machado <luis.machado@linaro.org>
10486
10487 * auxv.c (default_print_auxv_entry): Add new AUXV entries.
10488
9822cb57
SM
104892020-03-02 Simon Marchi <simon.marchi@polymtl.ca>
10490
10491 * infrun.c (gdbarch_supports_displaced_stepping): New.
10492 (use_displaced_stepping): Break up conditions in smaller pieces.
10493 Use gdbarch_supports_displaced_stepping.
10494 (displaced_step_prepare_throw): Use
10495 gdbarch_supports_displaced_stepping.
10496
63e163f2
AB
104972020-03-02 Andrew Burgess <andrew.burgess@embecosm.com>
10498
10499 * NEWS: Mention new behaviour of the history filename.
10500 * top.c (write_history_p): Add comment.
10501 (show_write_history_p): Add header comment, give a different
10502 message when history writing is on, but the history filename is
10503 empty.
10504 (history_filename): Add comment.
10505 (history_filename_empty): New function.
10506 (show_history_filename): Add header comment, give a different
10507 message when the filename is empty.
10508 (init_history): Compare history_filename against nullptr, and only
10509 read history if the filename is not empty.
10510 (set_history_filename): Add header comment, and only make
10511 non-empty filenames absolute.
10512 (init_main): Make the filename argument to 'set history filename'
10513 optional.
10514
81b86b97
CB
105152020-03-02 Christian Biesinger <cbiesinger@google.com>
10516
10517 * arm-nbsd-nat.c (arm_supply_fparegset): Rename to...
10518 (arm_supply_vfpregset): ...this, and update to use VFP registers.
10519 (fetch_fp_register): Update.
10520 (fetch_fp_regs): Update.
10521 (store_fp_register): Update.
10522 (store_fp_regs): Update.
10523 (arm_netbsd_nat_target::read_description): New function.
10524 (fetch_elfcore_registers): Update.
10525
24ed6739
AB
105262020-03-02 Andrew Burgess <andrew.burgess@embecosm.com>
10527
10528 * remote.c (remote_target::remote_parse_stop_reply): Don't use the
10529 general_thread if the stop reply is missing a thread-id.
10530 (remote_target::process_stop_reply): Use the first non-exited
10531 thread if the target didn't pass a thread-id.
10532 * infrun.c (do_target_wait): Move call to
10533 switch_to_inferior_no_thread to ....
10534 (do_target_wait_1): ... here.
10535
a84bb2a0
JT
105362020-02-29 Jon Turney <jon.turney@dronecode.org.uk>
10537
10538 * debuginfod-support.c: Include defs.h first.
10539
658dadf0
TV
105402020-02-28 Tom de Vries <tdevries@suse.de>
10541
10542 * symfile.c (set_initial_language): Use default language for lookup.
10543
4ebe4877
SM
105442020-02-28 Simon Marchi <simon.marchi@efficios.com>
10545
10546 * dwarf2/read.c (cutu_reader::init_tu_and_read_dwo_dies): Remove
10547 reader variable, pass `this` to read_cutu_die_from_dwo.
10548
e5da1139
AM
105492020-02-27 Aaron Merey <amerey@redhat.com>
10550
10551 * source.c (open_source_file): Check for nullptr when computing
10552 srcpath.
10553
317f7127
TT
105542020-02-27 Tom Tromey <tromey@adacore.com>
10555
10556 * dwarf2/read.c (struct field_info) <nfields>: Now a method, not a
10557 member.
10558 (dwarf2_add_field): Don't update nfields.
10559 (dwarf2_attach_fields_to_type, process_structure_scope): Update.
10560
3104d9ee
AB
105612020-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
10562
10563 * gdbtypes.c (create_array_type_with_stride): Use std::abs not
10564 abs.
10565
b83470bf
TT
105662020-02-26 Tom Tromey <tom@tromey.com>
10567
10568 * dwarf2/read.c (struct dwarf2_include_psymtab): New.
10569 (dwarf2_create_include_psymtab): Use dwarf2_include_psymtab.
10570 (dwarf2_psymtab::expand_psymtab, dwarf2_psymtab::readin_p)
10571 (dwarf2_psymtab::get_compunit_symtab): Remove null checks for
10572 per_cu_data.
10573
edfe0a0c
TT
105742020-02-26 Tom Tromey <tom@tromey.com>
10575
10576 * dwarf2/index-write.c (psym_index_map): Change type.
10577 (add_address_entry_worker, write_one_signatured_type)
10578 (recursively_count_psymbols, recursively_write_psymbols)
10579 (class debug_names, psyms_seen_size, write_gdbindex)
10580 (write_debug_names): Use partial_symtab, not dwarf2_psymtab.
10581
0d79cdc4
AM
105822020-02-26 Aaron Merey <amerey@redhat.com>
10583
10584 * Makefile.in: Handle optional debuginfod support.
10585 * NEWS: Update.
10586 * README: Add --with-debuginfod summary.
10587 * config.in: Regenerate.
10588 * configure: Regenerate.
10589 * configure.ac: Handle optional debuginfod support.
10590 * debuginfod-support.c: debuginfod helper functions.
10591 * debuginfod-support.h: Ditto.
10592 * doc/gdb.texinfo: Add --with-debuginfod to configure options
10593 summary.
10594 * dwarf2/read.c (dwarf2_get_dwz_file): Query debuginfod servers
10595 when a dwz file cannot be found.
10596 * elfread.c (elf_symfile_read): Query debuginfod servers when a
10597 debuginfo file cannot be found.
10598 * source.c (open_source_file): Query debuginfod servers when a
10599 source file cannot be found.
10600 * top.c (print_gdb_configuration): Include
10601 --{with,without}-debuginfod in the output.
10602
b65ce565
JG
106032020-02-26 Jérémie Galarneau <jeremie.galarneau@efficios.com>
10604
10605 * thread.c (thr_try_catch_cmd): Print thread name.
10606
d4c9a4f8
SM
106072020-02-26 Simon Marchi <simon.marchi@efficios.com>
10608
10609 * dwarf2/loc.h (dwarf2_fetch_die_loc_sect_off,
10610 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
10611 dwarf2_fetch_die_type_sect_off): Move to...
10612 * dwarf2/read.h (dwarf2_fetch_die_loc_sect_off,
10613 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
10614 dwarf2_fetch_die_type_sect_off): ... here.
10615 * dwarf2/read.c (dwarf2_fetch_die_loc_sect_off,
10616 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
10617 dwarf2_fetch_die_type_sect_off): Move doc to header file.
10618
0dce4280
TV
106192020-02-26 Tom de Vries <tdevries@suse.de>
10620
10621 PR gdb/25603
10622 * symfile.c (set_initial_language): Exit-early if
10623 language_mode == language_mode_manual.
10624
450a1bfc
SM
106252020-02-25 Simon Marchi <simon.marchi@polymtl.ca>
10626
10627 * dwarf2/loc.h (dwarf2_read_addr_index): Move...
10628 * dwarf2/read.h (dwarf2_read_addr_index): ... here.
10629 * dwarf2/read.c (dwarf2_read_addr_index): Move doc to header.
10630
9e80cfa1
AB
106312020-02-25 Andrew Burgess <andrew.burgess@embecosm.com>
10632
10633 * gdbtypes.c (create_array_type_with_stride): Handle negative
10634 array strides.
10635 * valarith.c (value_subscripted_rvalue): Likewise.
10636
09624f1f
LM
106372020-02-25 Luis Machado <luis.machado@linaro.org>
10638
10639 * aarch64-tdep.c (aarch64_vnv_type): Fix comment typo.
10640
8cb5117c
SM
106412020-02-25 Simon Marchi <simon.marchi@polymtl.ca>
10642
10643 * loc.h (dwarf2_get_die_type): Move to...
10644 * read.h (dwarf2_get_die_type): ... here.
10645 * read.c (dwarf2_get_die_type): Move doc to header.
10646
c325c44e
JB
106472020-02-25 Joel Brobecker <brobecker@adacore.com>
10648
10649 * copypright.py (EXCLUDE_LIST): Add 'gnulib/config.in' and
10650 'gnulib/Makefile.in' to the list.
10651
4ac93832
TT
106522020-02-24 Tom Tromey <tom@tromey.com>
10653
10654 * dwarf2/read.h (struct type_unit_unshareable) <num_symtabs>:
10655 Remove.
10656 * dwarf2/read.c (dwarf2_cu::setup_type_unit_groups): Use
10657 XOBNEWVEC.
10658
197400e8
TT
106592020-02-24 Tom Tromey <tom@tromey.com>
10660
10661 * dwarf2/read.h (struct dwarf2_per_cu_data) <type_unit_group_p>:
10662 New method.
10663 * dwarf2/read.c (IS_TYPE_UNIT_GROUP): Remove.
10664 (dw2_do_instantiate_symtab, dw2_get_file_names)
10665 (build_type_psymtab_dependencies, load_full_type_unit): Update.
10666
76935768
TT
106672020-02-24 Tom Tromey <tom@tromey.com>
10668
10669 * dwarf2read.c (dwarf2_build_psymtabs_hard): Use
10670 make_scoped_restore.
10671 (dwarf2_psymtab::read_symtab): Don't clear
10672 reading_partial_symbols.
10673
a88ef40d
TV
106742020-02-24 Tom de Vries <tdevries@suse.de>
10675
10676 PR gdb/25592
10677 * stack.c (iterate_over_block_locals): Handle LOC_CONST.
10678
c9af6521
TV
106792020-02-24 Tom de Vries <tdevries@suse.de>
10680
10681 * tui/tui-layout.c (_initialize_tui_layout): Fix help messages for
10682 commands layout next/prev/regs.
10683
5707a07a
TT
106842020-02-22 Tom Tromey <tom@tromey.com>
10685
10686 * dwarf2/loc.h (dwarf2_compile_expr_to_ax): Don't declare.
10687 * dwarf2/loc.c (dwarf2_compile_expr_to_ax): Now static.
10688
3b0fb49e
TT
106892020-02-22 Tom Tromey <tom@tromey.com>
10690
10691 * tui/tui-data.h (TUI_DISASM_WIN): Cast to tui_disasm_window.
10692
283be8bf
TT
106932020-02-22 Tom Tromey <tom@tromey.com>
10694
10695 * tui/tui-win.c (_initialize_tui_win): Add usage text.
10696 * tui/tui-stack.c (_initialize_tui_stack): Add usage text.
10697 * tui/tui-regs.c (_initialize_tui_regs): Add usage text.
10698 * tui/tui.c (_initialize_tui): Add usage text.
10699
ca793b96
TT
107002020-02-22 Tom Tromey <tom@tromey.com>
10701
10702 * tui/tui-win.c (tui_set_focus_command)
10703 (tui_set_win_height_command): Use error_no_arg.
10704 (_initialize_tui_win): Update help text.
10705 (FOCUS_USAGE, WIN_HEIGHT_USAGE): Don't define.
10706
432b5c40
TT
107072020-02-22 Tom Tromey <tom@tromey.com>
10708
10709 * tui/tui-layout.c (extract_display_start_addr): Rewrite.
10710 * tui/tui-disasm.h (struct tui_disasm_window)
10711 <display_start_addr>: Declare.
10712 * tui/tui-source.h (struct tui_source_window)
10713 <display_start_addr>: Declare.
10714 * tui/tui-winsource.h (struct tui_source_window_base)
10715 <show_source_line, display_start_addr>: New methods.
10716 <m_horizontal_offset, m_start_line_or_addr, m_gdbarch, m_content>:
10717 Rename and move to protected section.
10718 * tui/tui-winsource.c (tui_source_window_base::update_source_window)
10719 (tui_source_window_base::do_erase_source_content): Update.
10720 (tui_source_window_base::show_source_line): Now a method.
10721 (tui_source_window_base::show_source_content)
10722 (tui_source_window_base::tui_source_window_base)
10723 (tui_source_window_base::rerender)
10724 (tui_source_window_base::refill)
10725 (tui_source_window_base::do_scroll_horizontal)
10726 (tui_source_window_base::set_is_exec_point_at)
10727 (tui_source_window_base::update_breakpoint_info)
10728 (tui_source_window_base::update_exec_info): Update.
10729 * tui/tui-source.c (tui_source_window::set_contents)
10730 (tui_source_window::showing_source_p)
10731 (tui_source_window::do_scroll_vertical)
10732 (tui_source_window::location_matches_p)
10733 (tui_source_window::line_is_displayed): Update.
10734 (tui_source_window::display_start_addr): New method.
10735 * tui/tui-disasm.c (tui_disasm_window::set_contents)
10736 (tui_disasm_window::do_scroll_vertical)
10737 (tui_disasm_window::location_matches_p): Update.
10738 (tui_disasm_window::display_start_addr): New method.
10739
01b1af32
TT
107402020-02-22 Tom Tromey <tom@tromey.com>
10741
10742 * NEWS: Add entry for gdb.register_window_type.
10743 * tui/tui-layout.h (window_factory): New typedef.
10744 (tui_register_window): Declare.
10745 * tui/tui-layout.c (saved_tui_windows): New global.
10746 (tui_apply_current_layout): Use it.
10747 (tui_register_window): New function.
10748 * python/python.c (do_start_initialization): Call
10749 gdbpy_initialize_tui.
10750 (python_GdbMethods): Add "register_window_type" function.
10751 * python/python-internal.h (gdbpy_register_tui_window)
10752 (gdbpy_initialize_tui): Declare.
10753 * python/py-tui.c: New file.
10754 * Makefile.in (SUBDIR_PYTHON_SRCS): Add py-tui.c.
10755
fc96d20b
TT
107562020-02-22 Tom Tromey <tom@tromey.com>
10757
10758 * tui/tui-io.c (do_tui_putc): Don't omit annotations.
10759
935c78c0
TT
107602020-02-22 Tom Tromey <tom@tromey.com>
10761
10762 * tui/tui-win.c (tui_set_win_focus_to): Move to tui-data.c.
10763 * tui/tui-data.h (tui_set_win_with_focus): Don't declare.
10764 * tui/tui-data.c (tui_set_win_with_focus): Remove.
10765 (tui_set_win_focus_to): Move from tui-win.c.
10766
0240c8f1
TT
107672020-02-22 Tom Tromey <tom@tromey.com>
10768
10769 * tui/tui-layout.c (make_standard_window, get_locator_window): New
10770 functions.
10771 (known_window_types): New global.
10772 (tui_get_window_by_name): Reimplement.
10773 (initialize_known_windows): New function.
10774 (validate_window_name): Rewrite.
10775 (_initialize_tui_layout): Call initialize_known_windows.
10776
fdb01f0c
TT
107772020-02-22 Tom Tromey <tom@tromey.com>
10778
10779 * tui/tui.h (enum tui_win_type) <LOCATOR_WIN, DATA_ITEM_WIN>:
10780 Remove constants.
10781 * tui/tui-winsource.h (struct tui_source_window_base)
10782 <tui_source_window_base>: Remove parameter.
10783 * tui/tui-winsource.c
10784 (tui_source_window_base::tui_source_window_base): Remove
10785 parameter.
10786 (tui_source_window_base::refill): Update.
10787 * tui/tui-stack.h (struct tui_locator_window)
10788 <tui_locator_window>: Update.
10789 * tui/tui-source.h (struct tui_source_window) <tui_source_window>:
10790 Default the constructor.
10791 * tui/tui-regs.h (struct tui_data_item_window)
10792 <tui_data_item_window>: Default the constructor.
10793 (struct tui_data_window) <tui_data_window>: Likewise.
10794 * tui/tui-disasm.h (struct tui_disasm_window) <tui_disasm_window>:
10795 Default the constructor.
10796 * tui/tui-data.h (struct tui_gen_win_info) <tui_gen_win_info>:
10797 Default the constructor.
10798 <type>: Remove.
10799 (struct tui_win_info) <tui_win_info>: Default the constructor.
10800 * tui/tui-data.c (tui_win_info::tui_win_info): Remove.
10801 * tui/tui-command.h (struct tui_cmd_window) <tui_cmd_window>:
10802 Default the constructor.
10803
865a5aec
TT
108042020-02-22 Tom Tromey <tom@tromey.com>
10805
10806 * tui/tui-wingeneral.h (tui_make_all_invisible): Don't declare.
10807 * tui/tui-wingeneral.c (tui_make_all_invisible): Remove.
10808 * tui/tui-win.c (tui_resize_all): Don't call
10809 tui_delete_invisible_windows.
10810 * tui/tui-layout.c (tui_apply_current_layout): Delete windows when
10811 done.
10812 (tui_set_layout): Update.
10813 (tui_add_win_to_layout): Don't call tui_delete_invisible_windows.
10814 * tui/tui-data.h (tui_delete_invisible_windows): Don't declare.
10815 * tui/tui-data.c (tui_delete_invisible_windows): Remove.
10816
e098d18c
TT
108172020-02-22 Tom Tromey <tom@tromey.com>
10818
10819 * tui/tui-win.c (tui_partial_win_by_name): Handle ambiguity
10820 correctly.
10821
eb9c8874
TT
108222020-02-22 Tom Tromey <tom@tromey.com>
10823
10824 * tui/tui-data.c (tui_next_win, tui_prev_win): Reimplement.
10825
7eed1a8e
TT
108262020-02-22 Tom Tromey <tom@tromey.com>
10827
10828 * tui/tui-winsource.h (struct tui_source_window_iterator)
10829 <inner_iterator>: New etytypedef.
10830 <tui_source_window_iterator>: Take "end" parameter.
10831 <tui_source_window_iterator>: Take iterator.
10832 <operator*, advance>: Update.
10833 <m_iter>: Change type.
10834 <m_end>: New field.
10835 (struct tui_source_windows) <begin, end>: Update.
10836 * tui/tui-layout.c (tui_windows): New global.
10837 (tui_apply_current_layout): Clear tui_windows.
10838 (tui_layout_window::apply): Update tui_windows.
10839 * tui/tui-data.h (tui_windows): Declare.
10840 (all_tui_windows): Now inline function.
10841 (class tui_window_iterator, struct all_tui_windows): Remove.
10842
7c043ba6
TT
108432020-02-22 Tom Tromey <tom@tromey.com>
10844
10845 PR tui/17850:
10846 * tui/tui-win.c (tui_gen_win_info::max_width): New method.
10847 * tui/tui-layout.h (class tui_layout_base) <get_sizes>: Add
10848 "height" argument.
10849 (class tui_layout_window) <get_sizes>: Likewise.
10850 (class tui_layout_split) <tui_layout_split>: Add "vertical"
10851 argument.
10852 <get_sizes>: Add "height" argument.
10853 <m_vertical>: New field.
10854 * tui/tui-layout.c (tui_layout_split::clone): Update.
10855 (tui_layout_split::get_sizes): Add "height" argument.
10856 (tui_layout_split::adjust_size, tui_layout_split::apply): Update.
10857 (tui_new_layout_command): Parse "-horizontal".
10858 (_initialize_tui_layout): Update help string.
10859 (tui_layout_split::specification): Add "-horizontal" when needed.
10860 * tui/tui-layout.c (tui_layout_window::get_sizes): Add "height"
10861 argument.
10862 * tui/tui-data.h (struct tui_gen_win_info) <max_width, min_width>:
10863 New methods.
10864
6bc56648
TT
108652020-02-22 Tom Tromey <tom@tromey.com>
10866
10867 * tui/tui-layout.h (enum tui_adjust_result): New.
10868 (class tui_layout_base) <adjust_size>: Return tui_adjust_result.
10869 (class tui_layout_window) <adjust_size>: Return
10870 tui_adjust_result. Rewrite.
10871 (class tui_layout_split) <adjust_size>: Return tui_adjust_result.
10872 * tui/tui-layout.c (tui_layout_split::adjust_size): Update.
10873
c22fef7e
TT
108742020-02-22 Tom Tromey <tom@tromey.com>
10875
10876 * tui/tui-layout.h (class tui_layout_split) <add_split>: Change
10877 parameter and return types.
10878 (class tui_layout_base) <specification>: Add "depth".
10879 (class tui_layout_window) <specification>: Add "depth".
10880 (class tui_layout_split) <specification>: Add "depth".
10881 * tui/tui-layout.c (tui_layout_split::add_split): Change parameter
10882 and return types.
10883 (tui_new_layout_command): Parse sub-layouts.
10884 (_initialize_tui_layout): Update help string.
10885 (tui_layout_window::specification): Add "depth".
10886 (add_layout_command): Update.
10887
ee325b61
TT
108882020-02-22 Tom Tromey <tom@tromey.com>
10889
10890 * NEWS: Add "tui new-layout" item.
10891 * tui/tui-layout.c (add_layout_command): Return cmd_list_element.
10892 Add new-layout command to help text.
10893 (validate_window_name): New function.
10894 (tui_new_layout_command): New function.
10895 (_initialize_tui_layout): Register "new-layout".
10896 (tui_layout_window::specification): New method.
10897 (tui_layout_window::specification): New method.
10898 * tui/tui-layout.h (class tui_layout_base) <specification>: New
10899 method.
10900 (class tui_layout_window) <specification>: New method.
10901 (class tui_layout_split) <specification>: New method.
10902
416eb92d
TT
109032020-02-22 Tom Tromey <tom@tromey.com>
10904
10905 * tui/tui.c (tui_enable): Call tui_set_initial_layout.
10906 * tui/tui-win.c (window_name_completer): Update comment.
10907 * tui/tui-layout.h (class tui_layout_base) <replace_window>:
10908 Declare method.
10909 (class tui_layout_window) <replace_window>: Likewise.
10910 (class tui_layout_split) <replace_window>: Likewise.
10911 (tui_set_layout): Don't declare.
10912 (tui_set_initial_layout): Declare function.
10913 * tui/tui-layout.c (layouts, applied_skeleton, src_regs_layout)
10914 (asm_regs_layout): New globals.
10915 (tui_current_layout, show_layout): Remove.
10916 (tui_set_layout, tui_add_win_to_layout): Rewrite.
10917 (find_layout, tui_apply_layout): New function.
10918 (layout_completer): Remove.
10919 (tui_next_layout): Reimplement.
10920 (tui_next_layout_command): New function.
10921 (tui_set_initial_layout, tui_prev_layout_command): New functions.
10922 (tui_regs_layout): Reimplement.
10923 (tui_regs_layout_command): New function.
10924 (extract_display_start_addr): Rewrite.
10925 (next_layout, prev_layout): Remove.
10926 (tui_layout_window::replace_window): New method.
10927 (tui_layout_split::replace_window): New method.
10928 (destroy_layout): New function.
10929 (layout_list): New global.
10930 (add_layout_command): New function.
10931 (initialize_layouts): Update.
10932 (tui_layout_command): New function.
10933 (_initialize_tui_layout): Install "layout" commands.
10934 * tui/tui-data.h (enum tui_layout_type): Remove.
10935 (tui_current_layout): Don't declare.
10936
0dbc2fc7
TT
109372020-02-22 Tom Tromey <tom@tromey.com>
10938
10939 * tui/tui-regs.c (tui_reg_layout): Remove.
10940 (tui_reg_command): Use tui_regs_layout.
10941 * tui/tui-layout.h (tui_reg_command): Declare.
10942 * tui/tui-layout.c (tui_reg_command): New function.
10943
5afe342e
TT
109442020-02-22 Tom Tromey <tom@tromey.com>
10945
10946 * tui/tui.c (tui_rl_delete_other_windows): Call
10947 tui_remove_some_windows.
10948 * tui/tui-layout.h (class tui_layout_base) <remove_windows>:
10949 Declare method.
10950 (class tui_layout_window) <remove_windows>: New method.
10951 (class tui_layout_split) <remove_windows>: Declare.
10952 (tui_remove_some_windows): Declare.
10953 * tui/tui-layout.c (tui_remove_some_windows): New function.
10954 (tui_layout_split::remove_windows): New method.
10955
427326a8
TT
109562020-02-22 Tom Tromey <tom@tromey.com>
10957
10958 * tui/tui.c (tui_rl_change_windows): Call tui_next_layout.
10959 * tui/tui-layout.h (tui_next_layout): Declare.
10960 * tui/tui-layout.c (tui_next_layout): New function.
10961
3fe12b6d
TT
109622020-02-22 Tom Tromey <tom@tromey.com>
10963
10964 * tui/tui-regs.c (tui_data_window::display_registers_from): Use
10965 correct coordinates.
10966
59b8b5d2
TT
109672020-02-22 Tom Tromey <tom@tromey.com>
10968
10969 * tui/tui-layout.h (tui_add_win_to_layout): Add comment.
10970 * tui/tui-layout.c (tui_add_win_to_layout): Add assert. Remove
10971 DATA_WIN case.
10972
2a3d458b
TT
109732020-02-22 Tom Tromey <tom@tromey.com>
10974
10975 * tui/tui-disasm.c (tui_get_low_disassembly_address): Use
10976 TUI_DISASM_WIN, not tui_win_list.
10977
3f0cbb04
TT
109782020-02-22 Tom Tromey <tom@tromey.com>
10979
10980 * valprint.c (generic_val_print_enum_1)
10981 (val_print_type_code_flags): Style member names.
10982 * rust-lang.c (val_print_struct, rust_print_enum)
10983 (rust_print_struct_def, rust_internal_print_type): Style member
10984 names.
10985 * p-valprint.c (pascal_object_print_value_fields): Style member
10986 names. Only call fprintf_symbol_filtered for static members.
10987 * m2-typeprint.c (m2_record_fields, m2_enum): Style member names.
10988 * f-valprint.c (f_val_print): Style member names.
10989 * f-typeprint.c (f_type_print_base): Style member names.
10990 * cp-valprint.c (cp_print_value_fields): Style member names. Only
10991 call fprintf_symbol_filtered for static members.
10992 (cp_print_class_member): Style member names.
10993 * c-typeprint.c (c_print_type_1, c_type_print_base_1): Style
10994 member names.
10995 * ada-valprint.c (ada_print_scalar): Style enum names.
10996 (ada_val_print_enum): Likewise.
10997 * ada-typeprint.c (print_enum_type): Style enum names.
10998
d4d947ae
TT
109992020-02-21 Tom Tromey <tom@tromey.com>
11000
11001 * psympriv.h (struct partial_symtab): Update comment.
11002
e94e944b
TT
110032020-02-21 Tom Tromey <tromey@adacore.com>
11004
11005 * mips-tdep.h (mips_pc_is_mips16, mips_pc_is_micromips): Parameter
11006 type is CORE_ADDR.
11007
1eb73179
TV
110082020-02-21 Tom de Vries <tdevries@suse.de>
11009
11010 PR gdb/25534
11011 * psymtab.c (partial_symtab::read_dependencies): Don't read dependency
11012 if dependencies[i]->user != NULL.
11013
4f180d53
AT
110142020-02-21 Ali Tamur <tamur@google.com>
11015
11016 * dwarf2/read.c (dwarf2_name): Add null check.
11017
22b6cd70
TT
110182020-02-20 Tom Tromey <tom@tromey.com>
11019
11020 * dwarf2/read.c (dwarf2_find_containing_comp_unit): Use ">", not
11021 ">=", in binary search.
11022 (dwarf2_find_containing_comp_unit): New overload.
11023 (run_test): New self-test.
11024 (_initialize_dwarf2_read): Register new test.
11025
bd0cf5a6
NC
110262020-02-20 Nelson Chu <nelson.chu@sifive.com>
11027
11028 * riscv-tdep.c: Updated since the DECLARE_CSR is changed.
11029 * riscv-tdep.h: Likewise.
11030 * features/riscv/rebuild-csr-xml.sh: Generate the 64bit-csr.xml without
11031 rv32-only CSR.
11032 * features/riscv/64bit-csr.xml: Regenerated.
11033
3f702acd
SDJ
110342020-02-20 Sergio Durigan Junior <sergiodj@redhat.com>
11035 Tom Tromey <tom@tromey.com>
11036
11037 * utils.c (fputs_maybe_filtered): Call 'stream->puts' instead
11038 of 'fputc_unfiltered'.
11039 (putchar_unfiltered): Call 'fputc_unfiltered'.
11040 (fputc_unfiltered): Call 'fputs_unfiltered'.
11041
d13c7322
AB
110422020-02-20 Andrew Burgess <andrew.burgess@embecosm.com>
11043
11044 * config.in: Regenerate.
11045 * configure: Regenerate.
11046 * configure.ac: Add --with-python-libdir option.
11047 * main.c: Use WITH_PYTHON_LIBDIR.
11048
869d8950
TT
110492020-02-19 Tom Tromey <tom@tromey.com>
11050
11051 * symtab.c (general_symbol_info::compute_and_set_names): Use
11052 obstack_strndup. Simplify call to symbol_set_demangled_name.
11053
298e9637
SM
110542020-02-19 Simon Marchi <simon.marchi@efficios.com>
11055
11056 * dwarf2/read.c (allocate_signatured_type_table,
11057 allocate_dwo_unit_table, allocate_type_unit_groups_table,
11058 allocate_dwo_file_hash_table, allocate_dwp_loaded_cutus_table):
11059 Remove objfile parameter, update all callers.
11060
08410482
DE
110612020-02-19 Doug Evans <dje@google.com>
11062
11063 PR rust/25535
11064 * rust-lang.c (rust_print_enum): Apply embedded_offset to
11065 rust_enum_variant calculation.
11066
dfdeeca1
TT
110672020-02-19 Tom Tromey <tromey@adacore.com>
11068
11069 * mips-tdep.h (mips_pc_is_mips): Parameter type is CORE_ADDR.
11070
2ef5453b
TT
110712020-02-19 Tom Tromey <tromey@adacore.com>
11072
11073 * ada-lang.c (cache_symbol): Use obstack_strdup.
11074
9f1528a1
AB
110752020-02-19 Andrew Burgess <andrew.burgess@embecosm.com>
11076
11077 * configure: Regenerate.
11078
d3c22fa8
TT
110792020-02-19 Tom Tromey <tromey@adacore.com>
11080
11081 * python/python.c (do_start_initialization): Use XNEWVEC. Remove
11082 NULL check.
11083
bf84f706
MR
110842020-02-19 Maciej W. Rozycki <macro@wdc.com>
11085
11086 * NEWS: Mention RISC-V GNU/Linux GDBserver support.
11087
d1c9b20f
AB
110882020-02-19 Andrew Burgess <andrew.burgess@embecosm.com>
11089
11090 * arch/riscv.c (struct riscv_gdbarch_features_hasher): Only define
11091 if GDBSERVER is not defined.
11092 (riscv_tdesc_cache): Likewise, also store const target_desc.
11093 (STATIC_IN_GDB): Define.
11094 (riscv_create_target_description): Update declaration with
11095 STATIC_IN_GDB.
11096 (riscv_lookup_target_description): New function, only define if
11097 GDBSERVER is not defined.
11098 * arch/riscv.h (riscv_create_target_description): Declare only
11099 when GDBSERVER is defined.
11100 (riscv_lookup_target_description): New declaration when GDBSERVER
11101 is not defined.
11102 * nat/riscv-linux-tdesc.c (riscv_linux_read_description): Rename to...
11103 (riscv_linux_read_features): ...this, and return
11104 riscv_gdbarch_features instead of target_desc.
11105 * nat/riscv-linux-tdesc.h: Include 'arch/riscv.h'.
11106 (riscv_linux_read_description): Rename to...
11107 (riscv_linux_read_features): ...this.
11108 * riscv-linux-nat.c (riscv_linux_nat_target::read_description):
11109 Update to use riscv_gdbarch_features and
11110 riscv_lookup_target_description.
11111 * riscv-tdep.c (riscv_find_default_target_description): Use
11112 riscv_lookup_target_description instead of
11113 riscv_create_target_description.
11114
373d7ac0
SM
111152020-02-18 Simon Marchi <simon.marchi@efficios.com>
11116
11117 * valprint.c (generic_val_print_enum_1): When printing a flag
11118 enum with value 0 and there is no enumerator with value 0, print
11119 just "0" instead of "(unknown: 0x0)".
11120
b29a2df0
SM
111212020-02-18 Simon Marchi <simon.marchi@efficios.com>
11122
11123 * valprint.c (generic_val_print_enum_1): Print unknown part of
11124 flag enum in hex.
11125
6740f0cc
SM
111262020-02-18 Simon Marchi <simon.marchi@efficios.com>
11127
11128 * dwarf2/read.c (update_enumeration_type_from_children): Allow
11129 flag enums to contain duplicate enumerators.
11130 * valprint.c (generic_val_print_enum_1): Update comment.
11131
edd45eb0
SM
111322020-02-18 Simon Marchi <simon.marchi@efficios.com>
11133
11134 * dwarf2/read.c: Include "count-one-bits.h".
11135 (update_enumeration_type_from_children): If an enumerator has
11136 multiple bits set, don't treat the enumeration as a "flag enum".
11137 * valprint.c (generic_val_print_enum_1): Assert that enumerators
11138 of flag enums have 0 or 1 bit set.
11139
6d0cf446
BE
111402020-02-18 Bernd Edlinger <bernd.edlinger@hotmail.de>
11141
11142 * aarch64-tdep.c (aarch64_displaced_step_copy_insn): Use an explicit
11143 conversion.
11144 * amd64-tdep.c (amd64_displaced_step_copy_insn): Likewise.
11145 * arm-linux-tdep.c (arm_linux_displaced_step_copy_insn): Likewise.
11146 * i386-tdep.c (i386_displaced_step_copy_insn): Likewise.
11147 * rs6000-tdep.c (ppc_displaced_step_copy_insn): Likewise.
11148 * s390-tdep.c (s390_displaced_step_copy_insn): Likewise.
11149
7001c1b7
SM
111502020-02-18 Simon Marchi <simon.marchi@efficios.com>
11151
11152 * MAINTAINERS: Change palmer@sifive.com to palmer@dabbelt.com.
11153
fdb61c6c
SM
111542020-02-14 Simon Marchi <simon.marchi@efficios.com>
11155
11156 * aarch64-tdep.c (aarch64_displaced_step_copy_insn): Use
11157 displaced_step_closure_up.
11158 * aarch64-tdep.h (aarch64_displaced_step_copy_insn): Likewise.
11159 (struct displaced_step_closure_up):
11160 * amd64-tdep.c (amd64_displaced_step_copy_insn): Likewise.
11161 * amd64-tdep.h (amd64_displaced_step_copy_insn): Likewise.
11162 * arm-linux-tdep.c (arm_linux_displaced_step_copy_insn):
11163 Likewise.
11164 * gdbarch.sh (displaced_step_copy_insn): Likewise.
11165 * gdbarch.c, gdbarch.h: Re-generate.
11166 * i386-linux-tdep.c (i386_linux_displaced_step_copy_insn): Use
11167 displaced_step_closure_up.
11168 * i386-tdep.c (i386_displaced_step_copy_insn): Likewise.
11169 * i386-tdep.h (i386_displaced_step_copy_insn): Likewise.
11170 * infrun.h (displaced_step_closure_up): New type alias.
11171 (struct displaced_step_inferior_state) <step_closure>: Change
11172 type to displaced_step_closure_up.
11173 * rs6000-tdep.c (ppc_displaced_step_copy_insn): Use
11174 displaced_step_closure_up.
11175 * s390-tdep.c (s390_displaced_step_copy_insn): Likewise.
11176
a4a38eb4
TT
111772020-02-14 Tom Tromey <tom@tromey.com>
11178
11179 * minidebug.c (gnu_debug_key): New global.
11180 (find_separate_debug_file_in_section): Use it.
11181
e8217e61
SM
111822020-02-14 Simon Marchi <simon.marchi@efficios.com>
11183
11184 * gdbarch.sh (displaced_step_copy_insn): Change return type to an
11185 std::unique_ptr.
11186 * gdbarch.c: Re-generate.
11187 * gdbarch.h: Re-generate.
11188 * infrun.c (displaced_step_prepare_throw): Adjust to std::unique_ptr
11189 change.
11190 * aarch64-tdep.c (aarch64_displaced_step_copy_insn): Change return
11191 type to std::unique_ptr.
11192 * aarch64-tdep.h (aarch64_displaced_step_copy_insn): Likewise.
11193 * amd64-tdep.c (amd64_displaced_step_copy_insn): Likewise.
11194 * amd64-tdep.h (amd64_displaced_step_copy_insn): Likewise.
11195 * arm-linux-tdep.c (arm_linux_displaced_step_copy_insn): Likewise.
11196 * i386-linux-tdep.c (i386_linux_displaced_step_copy_insn): Likewise.
11197 * i386-tdep.c (i386_displaced_step_copy_insn): Likewise.
11198 * i386-tdep.h (i386_displaced_step_copy_insn): Likewise.
11199 * rs6000-tdep.c (ppc_displaced_step_copy_insn): Likewise.
11200 * s390-tdep.c (s390_displaced_step_copy_insn): Likewise.
11201
d8d83535
SM
112022020-02-14 Simon Marchi <simon.marchi@efficios.com>
11203
11204 * infrun.c (get_displaced_step_closure_by_addr): Adjust to
11205 std::unique_ptr.
11206 (displaced_step_clear): Rename to...
11207 (displaced_step_reset): ... this. Just call displaced->reset ().
11208 (displaced_step_clear_cleanup): Rename to...
11209 (displaced_step_reset_cleanup): ... this.
11210 (displaced_step_prepare_throw): Adjust to std::unique_ptr.
11211 (displaced_step_fixup): Likewise.
11212 (resume_1): Likewise.
11213 (handle_inferior_event): Restore child's memory before calling
11214 displaced_step_fixup on the parent.
11215 * infrun.h (displaced_step_inferior_state) <reset>: Adjust
11216 to std::unique_ptr.
11217 <step_closure>: Change type to std::unique_ptr.
11218
5f661e03
SM
112192020-02-14 Simon Marchi <simon.marchi@efficios.com>
11220
11221 * arm-tdep.c: Include count-one-bits.h.
11222 (cleanup_block_store_pc): Use count_one_bits.
11223 (cleanup_block_load_pc): Use count_one_bits.
11224 (arm_copy_block_xfer): Use count_one_bits.
11225 (thumb2_copy_block_xfer): Use count_one_bits.
11226 (thumb_copy_pop_pc_16bit): Use count_one_bits.
11227 * arch/arm-get-next-pcs.c: Include count-one-bits.h.
11228 (thumb_get_next_pcs_raw): Use count_one_bits.
11229 (arm_get_next_pcs_raw): Use count_one_bits_l.
11230 * arch/arm.c (bitcount): Remove.
11231 * arch/arm.h (bitcount): Remove.
11232
8084e579
TT
112332020-02-14 Tom Tromey <tromey@adacore.com>
11234
11235 * dwarf2/frame-tailcall.c (dwarf2_tailcall_sniffer_first):
11236 Update.
11237 * dwarf2/loc.h (call_site_find_chain): Return unique_xmalloc_ptr.
11238 * dwarf2/loc.c (call_site_find_chain_1): Return
11239 unique_xmalloc_ptr.
11240 (call_site_find_chain): Likewise.
11241
258bf0ee
RB
112422020-02-14 Richard Biener <rguenther@suse.de>
11243
11244 * dwarf2/read.c (lnp_state_machine::handle_special_opcode): Apply CSE
11245 on expression with division operators.
11246
f98a8458
AKS
112472020-02-13 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
11248
11249 * MAINTAINERS (Write After Approval): Adding myself.
11250
d1437c0e
TT
112512020-02-12 Tom Tromey <tom@tromey.com>
11252
11253 * event-loop.c (event_data, gdb_event, event_handler_func):
11254 Remove.
11255
3d4560f7
TT
112562020-02-12 Tom Tromey <tom@tromey.com>
11257
11258 * dwarf2/frame.c (dwarf2_frame_bfd_data): New global.
11259 (dwarf2_frame_objfile_data): Add comment.
11260 (find_comp_unit, set_comp_unit): New functions.
11261 (dwarf2_frame_find_fde): Use find_comp_unit.
11262 (dwarf2_build_frame_info): Use set_comp_unit.
11263
21982304
TT
112642020-02-12 Tom Tromey <tom@tromey.com>
11265
11266 * dwarf2/frame.c (struct comp_unit) <objfile>: Remove.
11267 (comp_unit): Don't initialize objfile.
11268 (execute_cfa_program): Add text_offset parameter.
11269 (execute_cfa_program_test, dwarf2_fetch_cfa_info)
11270 (dwarf2_frame_cache): Update.
11271 (dwarf2_build_frame_info): Don't set "objfile" member.
11272
4debb237
TT
112732020-02-12 Tom Tromey <tom@tromey.com>
11274
11275 * dwarf2/frame.c (decode_frame_entry_1): Add gdbarch parameter.
11276 (decode_frame_entry): Likewise.
11277 (dwarf2_build_frame_info): Update.
11278
0d404d44
TT
112792020-02-12 Tom Tromey <tom@tromey.com>
11280
11281 * dwarf2/frame.c (struct comp_unit) <obstack>: New member.
11282 (decode_frame_entry_1): Use the comp_unit obstack.
11283
a7a3ae5c
TT
112842020-02-12 Tom Tromey <tom@tromey.com>
11285
11286 * dwarf2/frame.c (struct comp_unit): Add initializers and
11287 constructor.
11288 (dwarf2_frame_objfile_data): Store a comp_unit.
11289 (dwarf2_frame_find_fde): Update.
11290 (dwarf2_build_frame_info): Use "new".
11291
a9d65418
TT
112922020-02-12 Tom Tromey <tom@tromey.com>
11293
11294 * dwarf2/frame.c (struct dwarf2_fde_table): Remove.
11295 (dwarf2_fde_table): Typedef for std::vector.
11296 (dwarf2_frame_objfile_data): Remove the deleter. Now static.
11297 (dwarf2_frame_find_fde, add_fde, decode_frame_entry_1)
11298 (decode_frame_entry): Update.
11299 (dwarf2_build_frame_info): Use "new".
11300
7559c217
CB
113012020-02-12 Christian Biesinger <cbiesinger@google.com>
11302
11303 * arm-tdep.c (arm_gdbarch_init): Update.
11304 * arm-tdep.h (struct gdbarch_tdep) <have_fpa_registers,
11305 have_wmmx_registers, have_vfp_pseudos, have_neon_pseudos,
11306 have_neon, is_m>: Change to bool.
11307
aeefc73c
CB
113082020-02-12 Christian Biesinger <cbiesinger@google.com>
11309
11310 * arm-tdep.c (arm_dump_tdep): Print more fields of tdep.
11311
d27b8e5f
TT
113122020-02-12 Tom Tromey <tom@tromey.com>
11313
11314 * dwarf2/loc.c (struct dwarf_expr_baton): Remove.
11315
cd5900f3
HD
113162020-02-12 Hannes Domani <ssbssa@yahoo.de>
11317
11318 * windows-tdep.c (struct windows_gdbarch_data): Add tib_ptr_type.
11319 (windows_get_tlb_type): Use windows_gdbarch_data->tib_ptr_type.
11320
f056b22b
TT
113212020-02-11 Tom Tromey <tom@tromey.com>
11322
11323 * psymtab.h: Update comment.
11324
f92ff6b5
TT
113252020-02-11 Tom Tromey <tom@tromey.com>
11326
11327 * gdb_obstack.h (struct auto_obstack): Use
11328 DISABLE_COPY_AND_ASSIGN.
11329
3fd6912b
TT
113302020-02-11 Tom Tromey <tom@tromey.com>
11331
11332 * dwarf2/frame.h (struct objfile): Don't forward declare.
11333
69ed9b74
CB
113342020-02-11 Christian Biesinger <cbiesinger@google.com>
11335
11336 * cris-tdep.c (cris_supply_gregset): Change signature to match
11337 what struct regset expects.
11338 (cris_regset): New struct.
11339 (fetch_core_registers): Remove.
11340 (cris_iterate_over_regset_sections): New function.
11341 (_initialize_cris_tdep): Don't call deprecated_add_core_fns.
11342 (cris_gdbarch_init): Call set_gdbarch_iterate_over_regset_sections.
11343
bda874f6
CB
113442020-02-11 Christian Biesinger <cbiesinger@google.com>
11345
11346 * arch/arm.h (enum gdb_regnum): Add comment for the FP0..7
11347 registers.
11348
754e1564
CB
113492020-02-11 Christian Biesinger <cbiesinger@google.com>
11350
11351 * arm-tdep.c (arm_dump_tdep): Add \n in fprintf.
11352
8ddd8e0e
SM
113532020-02-11 Simon Marchi <simon.marchi@efficios.com>
11354
11355 * configure: Re-generate.
11356
898e7f60
SM
113572020-02-11 Simon Marchi <simon.marchi@efficios.com>
11358
11359 * configure: Re-generate.
11360
58df732b
SM
113612020-02-11 Simon Marchi <simon.marchi@efficios.com>
11362
11363 * acinclude: Update warning.m4 path.
11364 * warning.m4: Move to gdbsupport.
11365
da5bd37e
TT
113662020-02-11 Tom Tromey <tromey@adacore.com>
11367
11368 * remote.c (remote_console_output): Update.
11369 * printcmd.c (printf_command): Update.
11370 * event-loop.c (gdb_wait_for_event): Update.
11371 * linux-nat.c (sigchld_handler): Update.
11372 * remote-sim.c (gdb_os_write_stdout): Update.
11373 (gdb_os_flush_stdout): Update.
11374 (gdb_os_flush_stderr): Update.
11375 (gdb_os_write_stderr): Update.
11376 * exceptions.c (print_exception): Update.
11377 * remote-fileio.c (remote_fileio_func_read): Update.
11378 (remote_fileio_func_write): Update.
11379 * tui/tui.c (tui_enable): Update.
11380 * tui/tui-interp.c (tui_interp::init): Update.
11381 * utils.c (init_page_info): Update.
11382 (putchar_unfiltered, fputc_unfiltered): Update.
11383 (gdb_flush): Update.
11384 (emit_style_escape): Update.
11385 (flush_wrap_buffer, fputs_maybe_filtered): Update.
11386 * ui-file.c (ui_file_isatty, ui_file_read, ui_file_write)
11387 (ui_file_write_async_safe, ui_file_flush, ui_file_puts): Remove.
11388 (stderr_file::write): Update.
11389 (stderr_file::puts): Update.
11390 * ui-file.h (ui_file_isatty, ui_file_write)
11391 (ui_file_write_async_safe, ui_file_read, ui_file_flush)
11392 (ui_file_puts): Don't declare.
11393
85f0dd3c
TV
113942020-02-10 Tom de Vries <tdevries@suse.de>
11395
11396 * dwarf2/read.c (process_psymtab_comp_unit_reader): Cast concat NULL
11397 sentinel to char *.
11398
2e927613
TV
113992020-02-09 Tom de Vries <tdevries@suse.de>
11400
11401 * dwarf2read.c (process_psymtab_comp_unit_reader): Append CU offset to
11402 filename if it matches "<artificial>".
11403
6bafc845
HD
114042020-02-09 Hannes Domani <ssbssa@yahoo.de>
11405
11406 * windows-tdep.c (struct enum_value_name): New struct.
11407 (create_enum): New function.
11408 (windows_get_siginfo_type): Create and use enum types.
11409
7928d571
HD
114102020-02-09 Hannes Domani <ssbssa@yahoo.de>
11411
11412 * NEWS: Mention $_siginfo support for Windows.
11413 * windows-nat.c (handle_exception): Set siginfo_er.
11414 (windows_nat_target::mourn_inferior): Reset siginfo_er.
11415 (windows_xfer_siginfo): New function.
11416 (windows_nat_target::xfer_partial): Call windows_xfer_siginfo.
11417 * windows-tdep.c (struct windows_gdbarch_data): New struct.
11418 (init_windows_gdbarch_data): New function.
11419 (get_windows_gdbarch_data): New function.
11420 (windows_get_siginfo_type): New function.
11421 (windows_init_abi): Register windows_get_siginfo_type.
11422 (_initialize_windows_tdep): Register init_windows_gdbarch_data.
11423
6751ebae
TT
114242020-02-08 Tom Tromey <tom@tromey.com>
11425
11426 * dwarf2/read.c (class cutu_reader) <cutu_reader,
11427 init_tu_and_read_dwo_dies>: Remove "keep" parameter.
11428 <keep>: Declare method.
11429 <m_keep>: Remove member.
11430 <~cutu_reader>: Remove.
11431 (cutu_reader::init_tu_and_read_dwo_dies): Update.
11432 (cutu_reader::cutu_reader): Update.
11433 (cutu_reader::keep): Rename from ~cutu_reader.
11434 (process_psymtab_comp_unit, build_type_psymtabs_1)
11435 (process_skeletonless_type_unit, load_partial_comp_unit)
11436 (load_full_comp_unit, dwarf2_read_addr_index)
11437 (read_signatured_type): Update.
11438
135f5437
TT
114392020-02-08 Tom Tromey <tom@tromey.com>
11440
11441 * dwarf2/read.c (process_psymtab_comp_unit_reader): Remove
11442 "want_partial_unit" parameter.
11443 (process_psymtab_comp_unit): Change want_partial_unit to bool.
11444 Inline check for DW_TAG_partial_unit.
11445 (dwarf2_build_psymtabs_hard, scan_partial_symbols): Update.
11446
9f66ff1c
TT
114472020-02-08 Tom Tromey <tom@tromey.com>
11448
11449 * dwarf2/read.c (read_n_bytes, read_direct_string): Move to
11450 read.c.
11451 * dwarf2/leb.h (read_n_bytes, read_direct_string): Move from
11452 read.c.
11453
c8a7a66f
TT
114542020-02-08 Tom Tromey <tom@tromey.com>
11455
11456 * dwarf2/read.c (read_address): Move to comp-unit.c.
11457 (dwarf2_rnglists_process, dwarf2_ranges_process)
11458 (read_attribute_value, dwarf_decode_lines_1)
11459 (var_decode_location, decode_locdesc): Update.
11460 * dwarf2/comp-unit.c (comp_unit_head::read_address): Move from
11461 read.c. Remove "cu" parameter.
11462 * dwarf2/comp-unit.h (struct comp_unit_head) <read_address>: New
11463 method.
11464
8266302d
TT
114652020-02-08 Tom Tromey <tom@tromey.com>
11466
11467 * dwarf2/read.c (read_attribute_value, read_indirect_string)
11468 (read_indirect_line_string): Update.
11469 * dwarf2/comp-unit.c (read_offset): Remove.
11470 (read_comp_unit_head): Update.
11471 * dwarf2/comp-unit.h (struct comp_unit_head) <read_offset>: New
11472 method.
11473 (read_offset): Don't declare.
11474
4057dfde
TT
114752020-02-08 Tom Tromey <tom@tromey.com>
11476
11477 * Makefile.in (COMMON_SFILES): Add dwarf2/comp-unit.c.
11478 * dwarf2/read.c (struct comp_unit_head): Move to
11479 dwarf2/comp-unit.h.
11480 (enum class rcuh_kind): Move to comp-unit.h.
11481 (get_cu_length, offset_in_cu_p): Now methods on comp_unit_head.
11482 (read_comp_unit_head, error_check_comp_unit_head)
11483 (read_and_check_comp_unit_head): Move to comp-unit.c.
11484 (read_offset, dwarf_unit_type_name): Likewise.
11485 (create_debug_type_hash_table, read_cutu_die_from_dwo)
11486 (cutu_reader::cutu_reader, read_call_site_scope)
11487 (find_partial_die, follow_die_offset): Update.
11488 * dwarf2/comp-unit.h: New file, from dwarf2read.c.
11489
24aa364d
TT
114902020-02-08 Tom Tromey <tom@tromey.com>
11491
11492 * dwarf2/read.c (read_offset_1): Move to leb.c.
11493 (read_abbrev_offset, read_offset, dwarf_decode_line_header)
11494 (dwarf_decode_macro_bytes): Update.
11495 * dwarf2/leb.c (read_offset): Rename; move from read.c.
11496 * dwarf2/leb.h (read_offset): Declare.
11497
2c7d5afc
TT
114982020-02-08 Tom Tromey <tom@tromey.com>
11499
11500 * dwarf2/read.c (dwarf2_section_size): Remove.
11501 (error_check_comp_unit_head, dwarf2_symbol_mark_computed):
11502 Update.
11503 * dwarf2/section.h (struct dwarf2_section_info) <get_size>: New method.
11504
4075cb26
TT
115052020-02-08 Tom Tromey <tom@tromey.com>
11506
11507 * dwarf2/read.c (read_initial_length): Move to leb.c.
11508 * dwarf2/leb.h (read_initial_length): Declare.
11509 * dwarf2/leb.c (read_initial_length): Move from read.c. Add
11510 handle_nonstd parameter.
11511 * dwarf2/frame.c (read_initial_length): Remove.
11512 (decode_frame_entry_1): Update.
11513
09ba997f
TT
115142020-02-08 Tom Tromey <tom@tromey.com>
11515
11516 * dwarf2/loc.c (dwarf2_find_location_expression)
11517 (dwarf_evaluate_loc_desc::get_tls_address)
11518 (dwarf_evaluate_loc_desc::push_dwarf_reg_entry_value)
11519 (rw_pieced_value, dwarf2_evaluate_loc_desc_full)
11520 (dwarf2_locexpr_baton_eval, dwarf2_evaluate_property)
11521 (dwarf2_compile_property_to_c)
11522 (dwarf2_loc_desc_get_symbol_read_needs)
11523 (dwarf2_compile_expr_to_ax, locexpr_describe_location)
11524 (locexpr_tracepoint_var_ref, locexpr_generate_c_location)
11525 (loclist_describe_location, loclist_tracepoint_var_ref)
11526 (loclist_generate_c_location): Update.
11527 * compile/compile-loc2c.c (do_compile_dwarf_expr_to_c): Update.
11528 * dwarf2/loc.h (dwarf2_per_cu_objfile, dwarf2_per_cu_addr_size)
11529 (dwarf2_per_cu_ref_addr_size, dwarf2_per_cu_offset_size)
11530 (dwarf2_per_cu_text_offset, dwarf2_version): Don't declare.
11531 * dwarf2/read.c (dwarf2_per_cu_data::objfile)
11532 (dwarf2_per_cu_data::addr_size)
11533 (dwarf2_per_cu_data::ref_addr_size)
11534 (dwarf2_per_cu_data::text_offset)
11535 (dwarf2_per_cu_data::addr_type): Now methods.
11536 (per_cu_header_read_in): Make per_cu "const".
11537 (dwarf2_version): Remove.
11538 (dwarf2_per_cu_data::int_type): Now a method.
11539 (dwarf2_per_cu_data::_addr_sized_int_type): Likewise.
11540 (set_die_type, read_array_type, read_subrange_index_type)
11541 (read_tag_string_type, read_subrange_type): Update.
11542 * dwarf2/read.h (struct dwarf2_per_cu_data) <addr_size,
11543 offset_size, ref_addr_size, text_offset, addr_type, version,
11544 objfile, int_type, addr_sized_int_type>: Declare methods.
11545
96c738c0
TT
115462020-02-08 Tom Tromey <tom@tromey.com>
11547
11548 * dwarf2/read.h (struct dwarf2_per_cu_data) <imported_symtabs>:
11549 Move earlier.
11550
8fdd972c
TT
115512020-02-08 Tom Tromey <tom@tromey.com>
11552
11553 * dwarf2/read.h (dwarf_line_debug): Declare.
11554 * Makefile.in (COMMON_SFILES): Add dwarf2/line-header.c.
11555 * dwarf2/read.c: Move line_header code to new files.
11556 (dwarf_line_debug): No longer static.
11557 * dwarf2/line-header.c: New file.
11558 * dwarf2/line-header.h: New file.
11559
03075812
TT
115602020-02-08 Tom Tromey <tom@tromey.com>
11561
11562 * dwarf2/read.c (struct line_header) <file_full_name,
11563 file_file_name>: Return unique_xmalloc_ptr.
11564 (line_header::file_file_name): Update.
11565 (line_header::file_full_name): Update.
11566 (dw2_get_file_names_reader): Update.
11567 (macro_start_file): Update.
11568
bb822404
TT
115692020-02-08 Tom Tromey <tom@tromey.com>
11570
11571 * dwarf2/read.c (struct line_header) <file_full_name,
11572 file_file_name>: Declare methods.
11573 (dw2_get_file_names_reader): Update.
11574 (file_file_name): Now a method.
11575 (file_full_name): Likewise.
11576 (macro_start_file): Update.
11577
009b64fc
TT
115782020-02-08 Tom Tromey <tom@tromey.com>
11579
11580 * dwarf2/read.c (dwarf_always_disassemble)
11581 (show_dwarf_always_disassemble): Move to loc.c.
11582 (_initialize_dwarf2_read): Move "always-disassemble" registration
11583 to loc.c.
11584 * dwarf2/read.h (dwarf_always_disassemble): Don't declare.
11585 * dwarf2/loc.c (dwarf_always_disassemble): Move from read.c. Now
11586 static.
11587 (show_dwarf_always_disassemble): Move from read.c.
11588 (_initialize_dwarf2loc): Move always-disassemble from read.c.
11589
5895093f
TT
115902020-02-08 Tom Tromey <tom@tromey.com>
11591
11592 * dwarf2/read.c (~dwarf2_per_objfile): Update.
11593 (create_quick_file_names_table): Return htab_up.
11594 (dw2_get_file_names_reader, dw2_forget_cached_source_info):
11595 Update.
11596 * dwarf2/read.h (struct dwarf2_per_objfile)
11597 <quick_file_names_table>: Now htab_up.
11598
b3b32279
TT
115992020-02-08 Tom Tromey <tom@tromey.com>
11600
11601 * dwarf2/abbrev.c (abbrev_table::read): Simplify.
11602
1d33d811
TT
116032020-02-08 Tom Tromey <tom@tromey.com>
11604
11605 * dwarf2/abbrev.c (abbrev_table): Move constructor from header.
11606 Rewrite.
11607 (abbrev_table::add_abbrev, abbrev_table::lookup_abbrev): Rewrite.
11608 * dwarf2/abbrev.h (struct abbrev_info) <next>: Remove.
11609 (abbrev_table::abbrev_table): No longer inline.
11610 (ABBREV_HASH_SIZE): Remove.
11611 (abbrev_table::m_abbrevs): Now an htab_up.
11612
86de1d91
TT
116132020-02-08 Tom Tromey <tom@tromey.com>
11614
11615 * dwarf2/read.c (read_cutu_die_from_dwo): Update.
11616 (cutu_reader): Update.
11617 (build_type_psymtabs_1): Update.
11618 * dwarf2/abbrev.c (abbrev_table::read): Rename.
11619 (abbrev_table::alloc_abbrev): Update.
11620 * dwarf2/abbrev.h (abbrev_table_up): Move earlier.
11621 (abbrev_table::read): New static method, renamed from
11622 abbrev_table_read_table.
11623 (abbrev_table::alloc_abbrev)
11624 (abbrev_table::add_abbrev): Now private.
11625 (abbrev_table::abbrev_table): Now private.
11626 (abbrev_table::m_abbrev_obstack): Now private. Rename.
11627
0335378b
TT
116282020-02-08 Tom Tromey <tom@tromey.com>
11629
11630 * dwarf2/read.c (set_die_type, get_die_type_at_offset): Update.
11631 * dwarf2/read.h (struct dwarf2_per_objfile) <die_type_hash>: Now
11632 htab_up.
11633
48b490f2
TT
116342020-02-08 Tom Tromey <tom@tromey.com>
11635
11636 * dwarf2/read.c (struct dwp_file) <loaded_cus, loaded_tus>: Now
11637 htab_up.
11638 (lookup_dwo_unit_in_dwp): Update.
11639 (allocate_dwp_loaded_cutus_table): Return htab_up. Don't allocate
11640 on obstack.
11641
bc68fb19
TT
116422020-02-08 Tom Tromey <tom@tromey.com>
11643
11644 * dwarf2/read.c (allocate_dwo_file_hash_table): Don't allocate on
11645 obstack.
11646
d15acc42
TT
116472020-02-08 Tom Tromey <tom@tromey.com>
11648
11649 * dwarf2/read.c (~dwarf2_per_objfile): Don't delete
11650 line_header_hash.
11651 (handle_DW_AT_stmt_list): Update. Don't allocate on obstack.
11652 * dwarf2/read.h (struct dwarf2_per_objfile) <line_header_hash>:
11653 Change type to htab_up.
11654
eaa5fa8b
TT
116552020-02-08 Tom Tromey <tom@tromey.com>
11656
11657 * dwarf2/read.c (allocate_type_unit_groups_table): Return
11658 htab_up. Don't allocate on obstack.
11659 (get_type_unit_group, dwarf2_build_psymtabs_hard): Update.
11660 * dwarf2/read.h (struct dwarf2_per_objfile) <type_unit_groups>:
11661 Change type to htab_up.
11662
b0b6a987
TT
116632020-02-08 Tom Tromey <tom@tromey.com>
11664
11665 * dwarf2/read.h (struct dwarf2_per_objfile) <signatured_types>:
11666 Change type to htab_up.
11667 * dwarf2/read.c (create_signatured_type_table_from_index)
11668 (create_signatured_type_table_from_debug_names)
11669 (create_all_type_units, add_type_unit)
11670 (lookup_dwo_signatured_type, lookup_signatured_type)
11671 (process_skeletonless_type_unit): Update.
11672 (create_debug_type_hash_table, create_debug_types_hash_table):
11673 Change type of types_htab.
11674 (allocate_signatured_type_table, allocate_dwo_unit_table): Return
11675 htab_up. Don't allocate on obstack.
11676 (create_cus_hash_table): Change type of cus_htab parameter.
11677 (struct dwo_file) <cus, tus>: Now htab_up.
11678 (lookup_dwo_signatured_type, lookup_dwo_cutu)
11679 (process_dwo_file_for_skeletonless_type_units, lookup_dwo_cutu)
11680 (queue_and_load_all_dwo_tus): Update.
11681 * dwarf2/index-write.c (write_gdbindex): Update.
11682 (write_debug_names): Update.
11683
39856def
TT
116842020-02-08 Tom Tromey <tom@tromey.com>
11685
11686 * dwarf2/read.h (struct dwarf2_queue_item): Move from
11687 dwarf2/read.c. Remove "next" member. Add constructor ntad
11688 destructor.
11689 (struct dwarf2_per_objfile) <queue>: New member.
11690 * dwarf2/read.c (struct dwarf2_queue_item): Move to
11691 dwarf2/read.h.
11692 (dwarf2_queue, dwarf2_queue_tail): Remove.
11693 (class dwarf2_queue_guard): Add parameter to constructor. Use
11694 DISABLE_COPY_AND_ASSIGN.
11695 <m_per_objfile>: New member.
11696 <~dwarf2_queue_guard>: Rewrite.
11697 (dw2_do_instantiate_symtab, queue_comp_unit, process_queue):
11698 Update.
11699 (~dwarf2_queue_item): New.
11700
3e225074
TT
117012020-02-08 Tom Tromey <tom@tromey.com>
11702
11703 * dwarf2/read.c (struct die_info) <has_children>: New member.
11704 (dw2_get_file_names_reader): Remove has_children.
11705 (dw2_get_file_names): Update.
11706 (read_cutu_die_from_dwo): Remove has_children.
11707 (cutu_reader::init_tu_and_read_dwo_dies)
11708 (cutu_reader::cutu_reader): Update.
11709 (process_psymtab_comp_unit_reader, build_type_psymtabs_reader):
11710 Remove has_children.
11711 (build_type_psymtabs_1, process_skeletonless_type_unit)
11712 (load_partial_comp_unit, load_full_comp_unit): Update.
11713 (create_dwo_cu_reader): Remove has_children.
11714 (create_cus_hash_table, read_die_and_children): Update.
11715 (read_full_die_1,read_full_die): Remove has_children.
11716 (read_signatured_type): Update.
11717 (class cutu_reader) <has_children>: Remove.
11718
82ca8957
TT
117192020-02-08 Tom Tromey <tom@tromey.com>
11720
11721 * dwarf2/expr.c: Rename from dwarf2expr.c.
11722 * dwarf2/expr.h: Rename from dwarf2expr.h.
11723 * dwarf2/frame-tailcall.c: Rename from dwarf2-frame-tailcall.c.
11724 * dwarf2/frame-tailcall.h: Rename from dwarf2-frame-tailcall.h.
11725 * dwarf2/frame.c: Rename from dwarf2-frame.c.
11726 * dwarf2/frame.h: Rename from dwarf2-frame.h.
11727 * dwarf2/index-cache.c: Rename from dwarf-index-cache.c.
11728 * dwarf2/index-cache.h: Rename from dwarf-index-cache.h.
11729 * dwarf2/index-common.c: Rename from dwarf-index-common.c.
11730 * dwarf2/index-common.h: Rename from dwarf-index-common.h.
11731 * dwarf2/index-write.c: Rename from dwarf-index-write.c.
11732 * dwarf2/index-write.h: Rename from dwarf-index-write.h.
11733 * dwarf2/loc.c: Rename from dwarf2loc.c.
11734 * dwarf2/loc.h: Rename from dwarf2loc.h.
11735 * dwarf2/read.c: Rename from dwarf2read.c.
11736 * dwarf2/read.h: Rename from dwarf2read.h.
11737 * dwarf2/abbrev.c, aarch64-tdep.c, alpha-tdep.c,
11738 amd64-darwin-tdep.c, arc-tdep.c, arm-tdep.c, bfin-tdep.c,
11739 compile/compile-c-symbols.c, compile/compile-cplus-symbols.c,
11740 compile/compile-loc2c.c, cris-tdep.c, csky-tdep.c, findvar.c,
11741 gdbtypes.c, guile/scm-type.c, h8300-tdep.c, hppa-bsd-tdep.c,
11742 hppa-linux-tdep.c, i386-darwin-tdep.c, i386-linux-tdep.c,
11743 i386-tdep.c, iq2000-tdep.c, m32c-tdep.c, m68hc11-tdep.c,
11744 m68k-tdep.c, microblaze-tdep.c, mips-tdep.c, mn10300-tdep.c,
11745 msp430-tdep.c, nds32-tdep.c, nios2-tdep.c, or1k-tdep.c,
11746 riscv-tdep.c, rl78-tdep.c, rs6000-tdep.c, rx-tdep.c, s12z-tdep.c,
11747 s390-tdep.c, score-tdep.c, sh-tdep.c, sparc-linux-tdep.c,
11748 sparc-tdep.c, sparc64-linux-tdep.c, sparc64-tdep.c, tic6x-tdep.c,
11749 tilegx-tdep.c, v850-tdep.c, xstormy16-tdep.c, xtensa-tdep.c:
11750 Update.
11751 * Makefile.in (COMMON_SFILES): Update.
11752 (HFILES_NO_SRCDIR): Update.
11753
9e35d499
TT
117542020-02-08 Tom Tromey <tom@tromey.com>
11755
11756 * dwarf2read.c (struct die_reader_specs) <comp_dir>: Remove.
11757 (init_cu_die_reader, read_cutu_die_from_dwo): Update.
11758
1eba2311
TT
117592020-02-08 Tom Tromey <tom@tromey.com>
11760
11761 * dwarf2read.h (struct die_info): Don't declare.
11762
e41c2da2
TT
117632020-02-08 Tom Tromey <tom@tromey.com>
11764
11765 * dwarf2read.h (die_info_ptr): Remove typedef.
11766
4fc6c0d5
TT
117672020-02-08 Tom Tromey <tom@tromey.com>
11768
11769 * dwarf2read.c (read_call_site_scope)
11770 (handle_data_member_location, dwarf2_add_member_fn)
11771 (mark_common_block_symbol_computed, read_common_block)
11772 (attr_to_dynamic_prop, partial_die_info::read)
11773 (var_decode_location, dwarf2_fetch_die_loc_sect_off)
11774 (dwarf2_symbol_mark_computed, set_die_type): Update.
11775 * dwarf2/attribute.h (struct attribute) <form_is_block>: Declare
11776 method.
11777 (attr_form_is_block): Don't declare.
11778 * dwarf2/attribute.c (attribute::form_is_block): Now a method.
11779
cd6c91b4
TT
117802020-02-08 Tom Tromey <tom@tromey.com>
11781
11782 * dwarf2read.c (dwarf2_find_base_address, )
11783 (read_call_site_scope, rust_containing_type)
11784 (dwarf2_get_pc_bounds, dwarf2_record_block_ranges)
11785 (handle_data_member_location, dwarf2_add_member_fn)
11786 (get_alignment, read_structure_type, process_structure_scope)
11787 (mark_common_block_symbol_computed, read_common_block)
11788 (read_tag_string_type, attr_to_dynamic_prop, read_subrange_type)
11789 (partial_die_info::read, read_attribute_value, new_symbol)
11790 (lookup_die_type, dwarf2_get_ref_die_offset)
11791 (dwarf2_get_attr_constant_value, follow_die_ref_or_sig)
11792 (dwarf2_fetch_die_loc_sect_off, get_DW_AT_signature_type)
11793 (dwarf2_symbol_mark_computed): Update.
11794 * dwarf2/attribute.h (struct attribute) <value_as_address,
11795 form_is_section_offset, form_is_constant, form_is_ref>: Declare
11796 methods.
11797 (value_as_address, attr_form_is_section_offset)
11798 (attr_form_is_constant, attr_form_is_ref): Don't declare.
11799 * dwarf2/attribute.c (attribute::value_as_address)
11800 (attribute::form_is_section_offset, attribute::form_is_constant)
11801 (attribute::form_is_ref): Now methods.
11802
162dce55
TT
118032020-02-08 Tom Tromey <tom@tromey.com>
11804
11805 * dwarf2read.c (struct attribute, DW_STRING)
11806 (DW_STRING_IS_CANONICAL, DW_UNSND, DW_BLOCK, DW_SND, DW_ADDR)
11807 (DW_SIGNATURE, struct dwarf_block, attr_value_as_address)
11808 (attr_form_is_block, attr_form_is_section_offset)
11809 (attr_form_is_constant, attr_form_is_ref): Move.
11810 * dwarf2/attribute.h: New file.
11811 * dwarf2/attribute.c: New file, from dwarf2read.c.
11812 * Makefile.in (COMMON_SFILES): Add dwarf2/attribute.c.
11813
3054dd54
TT
118142020-02-08 Tom Tromey <tom@tromey.com>
11815
11816 * dwarf2read.c (abbrev_table_up, struct abbrev_info)
11817 (struct attr_abbrev, ABBREV_HASH_SIZE, struct abbrev_table):
11818 Move.
11819 (read_cutu_die_from_dwo, build_type_psymtabs_1): Update.
11820 (abbrev_table::alloc_abbrev, abbrev_table::add_abbrev)
11821 (abbrev_table::lookup_abbrev, abbrev_table_read_table): Move to
11822 abbrev.c.
11823 * dwarf2/abbrev.h: New file.
11824 * dwarf2/abbrev.c: New file, from dwarf2read.c.
11825 * Makefile.in (COMMON_SFILES): Add dwarf2/abbrev.c.
11826
96b79293
TT
118272020-02-08 Tom Tromey <tom@tromey.com>
11828
11829 * dwarf2read.c (dwarf2_section_buffer_overflow_complaint)
11830 (dwarf2_section_size, dwarf2_get_section_info)
11831 (create_signatured_type_table_from_debug_names)
11832 (create_addrmap_from_aranges, read_debug_names_from_section)
11833 (get_gdb_index_contents_from_section, read_comp_unit_head)
11834 (error_check_comp_unit_head, read_abbrev_offset)
11835 (create_debug_type_hash_table, init_cu_die_reader)
11836 (read_cutu_die_from_dwo, dwarf2_build_psymtabs_hard)
11837 (read_comp_units_from_section, create_cus_hash_table)
11838 (create_dwp_hash_table, create_dwo_unit_in_dwp_v1)
11839 (create_dwp_v2_section, dwarf2_rnglists_process)
11840 (dwarf2_ranges_process, read_die_and_siblings, read_full_die)
11841 (abbrev_table_read_table, read_indirect_string_at_offset_from)
11842 (read_indirect_string_from_dwz, read_addr_index_1)
11843 (read_str_index, dwarf_decode_line_header, skip_form_bytes)
11844 (dwarf_decode_macro_bytes, dwarf_decode_macros)
11845 (fill_in_loclist_baton): Update.
11846 * dwarf2/section.h (struct dwarf2_section_info) <get_name,
11847 get_containing_section, get_bfd_owner, get_bfd_section,
11848 get_file_name, get_id, get_flags, empty, read>: Declare methods.
11849 (dwarf2_read_section, get_section_name, get_section_file_name)
11850 (get_containing_section, get_section_bfd_owner)
11851 (get_section_bfd_section, get_section_name, get_section_file_name)
11852 (get_section_id, get_section_flags, dwarf2_section_empty_p): Don't
11853 declare.
11854 * dwarf2/section.c (dwarf2_section_info::get_containing_section)
11855 (dwarf2_section_info::get_bfd_owner)
11856 (dwarf2_section_info::get_bfd_section)
11857 (dwarf2_section_info::get_name)
11858 (dwarf2_section_info::get_file_name, dwarf2_section_info::get_id)
11859 (dwarf2_section_info::get_flags, dwarf2_section_info::empty)
11860 (dwarf2_section_info::read): Now methods.
11861 * dwarf-index-write.c (class debug_names): Update.
11862
2c86cff9
TT
118632020-02-08 Tom Tromey <tom@tromey.com>
11864
11865 * dwarf2read.h (struct dwarf2_section_info, dwarf2_read_section):
11866 Move to dwarf2/section.h.
11867 * dwarf2read.c (get_containing_section, get_section_bfd_owner)
11868 (get_section_bfd_section, get_section_name)
11869 (get_section_file_name, get_section_id, get_section_flags)
11870 (dwarf2_section_empty_p, dwarf2_read_section): Moe to
11871 dwarf2/section.c.
11872 * dwarf2/section.h: New file.
11873 * dwarf2/section.c: New file, from dwarf2read.c.
11874 * Makefile.in (COMMON_SFILES): Add dwarf2/section.c.
11875
f4382c45
TT
118762020-02-08 Tom Tromey <tom@tromey.com>
11877
11878 * dwarf2read.h (read_unsigned_leb128): Don't declare.
11879 * dwarf2read.c (read_1_byte, read_1_signed_byte, read_2_bytes)
11880 (read_2_signed_bytes, read_3_bytes, read_4_bytes)
11881 (read_4_signed_bytes, read_8_bytes): Move to dwarf2/leb.h.
11882 (read_unsigned_leb128, read_signed_leb128): Move to dwarf2/leb.c.
11883 * dwarf2/leb.h: New file, from dwarf2read.c.
11884 * dwarf2/leb.c: New file, from dwarf2read.c.
11885 * dwarf2-frame.c (read_1_byte, read_4_bytes, read_8_bytes):
11886 Remove.
11887 * Makefile.in (CONFIG_SRC_SUBDIR): Add dwarf2.
11888 (COMMON_SFILES): Add dwarf2/leb.c.
11889
01840b7a
JB
118902020-02-08 Joel Brobecker <brobecker@adacore.com>
11891
11892 GDB 9.1 released.
11893
dfcb27e4
IB
118942020-02-05 Iain Buclaw <ibuclaw@gdcproject.org>
11895
11896 PR gdb/25190:
aac66a4c
SM
11897 * gdb/remote-sim.c (gdb_os_write_stderr): Update.
11898 * gdb/remote.c (remote_console_output): Update.
11899 * gdb/ui-file.c (fputs_unfiltered): Rename to...
11900 (ui_file_puts): ...this.
11901 * gdb/ui-file.h (ui_file_puts): Add declaration.
11902 * gdb/utils.c (emit_style_escape): Update.
11903 (flush_wrap_buffer): Update.
11904 (fputs_maybe_filtered): Update.
11905 (fputs_unfiltered): Add function.
dfcb27e4 11906
faa17681
IB
119072020-02-05 Iain Buclaw <ibuclaw@gdcproject.org>
11908
aac66a4c
SM
11909 * gdb/event-loop.c (gdb_wait_for_event): Update.
11910 * gdb/printcmd.c (printf_command): Update.
11911 * gdb/remote-fileio.c (remote_fileio_func_write): Update.
11912 * gdb/remote-sim.c (gdb_os_flush_stdout): Update.
11913 (gdb_os_flush_stderr): Update.
11914 * gdb/remote.c (remote_console_output): Update.
11915 * gdb/ui-file.c (gdb_flush): Rename to...
11916 (ui_file_flush): ...this.
11917 (stderr_file::write): Update.
11918 (stderr_file::puts): Update.
11919 * gdb/ui-file.h (gdb_flush): Rename to...
11920 (ui_file_flush): ...this.
11921 * gdb/utils.c (gdb_flush): Add function.
11922 * gdb/utils.h (gdb_flush): Add declaration.
faa17681 11923
5abbbe1d
TT
119242020-02-07 Tom Tromey <tromey@adacore.com>
11925
11926 PR breakpoints/24915:
11927 * source.c (find_and_open_source): Do not check basenames_may_differ.
11928
919adfe8
TT
119292020-02-07 Tom Tromey <tom@tromey.com>
11930
11931 * README: Update gdbserver documentation.
11932 * gdbserver: Move to top level.
11933 * configure.tgt (build_gdbserver): Remove.
11934 * configure.ac: Remove --enable-gdbserver.
11935 * configure: Rebuild.
11936 * Makefile.in (distclean): Don't mention gdbserver.
11937
1d5d29e7
SV
119382020-02-06 Shahab Vahedi <shahab@synopsys.com>
11939
11940 * source-cache.c (source_cache::ensure): Surround
11941 get_plain_source_lines with a try/catch.
11942 (source_cache::get_line_charpos): Get rid of try/catch
11943 and only check for the return value of "ensure".
11944 * tui/tui-source.c (tui_source_window::set_contents):
11945 Simplify "nlines" calculation.
11946
6eb1129c
SV
119472020-02-06 Shahab Vahedi <shahab@synopsys.com>
11948
11949 * MAINTAINERS (Write After Approval): Add myself.
11950
c6a42d11
CB
119512020-02-05 Christian Biesinger <cbiesinger@google.com>
11952
11953 * sparc-nat.h (struct sparc_target) <xfer_partial>: Fix base class
11954 function call.
11955
c8ecdda6
CB
119562020-02-05 Christian Biesinger <cbiesinger@google.com>
11957
11958 * ppc-nbsd-tdep.h: Fix macro name in #endif comment.
11959
f6480e70
MR
119602020-02-05 Maciej W. Rozycki <macro@wdc.com>
11961
11962 * nat/riscv-linux-tdesc.h: New file.
11963 * nat/riscv-linux-tdesc.c: New file, taking code from...
11964 * riscv-linux-nat.c (riscv_linux_nat_target::read_description):
11965 ... here.
11966 * configure.nat <linux> <riscv*>: Add nat/riscv-linux-tdesc.o to
11967 NATDEPFILES.
11968
dcc9fbc6
AB
119692020-02-04 Andrew Burgess <andrew.burgess@embecosm.com>
11970
11971 * remote-sim.c (sim_inferior_data::sim_inferior_data): Assert that
11972 we don't set the fake simulator ptid to the null_ptid.
11973
719546c4
SM
119742020-02-03 Simon Marchi <simon.marchi@efficios.com>
11975
11976 * fork-child.c (gdb_startup_inferior): Use bool instead of int.
11977 * gdbthread.h (class thread_info) <resumed>: Likewise.
11978 * infrun.c (resume_1): Likewise.
11979 (proceed): Likewise.
11980 (infrun_thread_stop_requested): Likewise.
11981 (stop_all_threads): Likewise.
11982 (handle_inferior_event): Likewise.
11983 (restart_threads): Likewise.
11984 (finish_step_over): Likewise.
11985 (keep_going_stepped_thread): Likewise.
11986 * linux-nat.c (attach_proc_task_lwp_callback): Likewise.
11987 (linux_handle_extended_wait): Likewise.
11988 * record-btrace.c (get_thread_current_frame_id): Likewise.
11989 * record-full.c (record_full_wait_1): Likewise.
11990 * remote.c (remote_target::process_initial_stop_replies): Likewise.
11991 * target.c (target_resume): Likewise.
11992 * thread.c (set_running_thread): Likewise.
11993
e409c542
AKS
119942020-02-03 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
11995
11996 * f-valprint.c (f77_print_array_1): Changed datatype of index
11997 variable to LONGEST from int to enable it to contain bound
11998 values correctly.
11999
ee98c0da
MR
120002020-02-03 Maciej W. Rozycki <macro@wdc.com>
12001
12002 * riscv-linux-nat.c [!NFPREG] (NFPREG): New macro.
12003 (supply_fpregset_regnum, fill_fpregset): Handle regset buffer
12004 offsets according to FLEN determined.
12005 (riscv_linux_nat_target::read_description): Determine FLEN
12006 dynamically.
12007 (riscv_linux_nat_target::fetch_registers): Size regset buffer
12008 according to FLEN determined.
12009 (riscv_linux_nat_target::store_registers): Likewise.
12010
aa66aac4
SV
120112020-02-01 Shahab Vahedi <shahab@synopsys.com>
12012
12013 * target-descriptions.c (tdesc_register_in_reggroup_p): Return 0
12014 when reg->group is empty and reggroup is not.
12015
fd9faca8
TT
120162020-01-31 Tom Tromey <tromey@adacore.com>
12017
12018 * ravenscar-thread.c (ravenscar_thread_target::mourn_inferior):
12019 Call beneath target's mourn_inferior after unpushing.
12020
42330a68
AB
120212020-01-31 Andrew Burgess <andrew.burgess@embecosm.com>
12022
12023 PR tui/9765
12024 * tui/tui-disasm.c (tui_find_disassembly_address): If we don't
12025 have enough lines to fill the screen, still return the lowest
12026 address we found.
12027
7a27a45b
AB
120282020-01-31 Andrew Burgess <andrew.burgess@embecosm.com>
12029
12030 * tui/tui-win.c (_initialize_tui_win): Update help text for '+',
12031 '-', '<', and '>' commands.
12032
c47f70e2
PA
120332020-01-29 Pedro Alves <palves@redhat.com>
12034 Sergio Durigan Junior <sergiodj@redhat.com>
12035
12036 * infcmd.c (construct_inferior_arguments): Assert that
12037 'argc' is greater than 0.
12038
5133a315
LM
120392020-01-29 Luis Machado <luis.machado@linaro.org>
12040
12041 * aarch64-tdep.c (BRK_INSN_MASK): Define to 0xffe0001f.
12042 (BRK_INSN_MASK): Define to 0xd4200000.
12043 (aarch64_program_breakpoint_here_p): New function.
12044 (aarch64_gdbarch_init): Set gdbarch_program_breakpoint_here_p hook.
12045 * arch-utils.c (default_program_breakpoint_here_p): Moved from
12046 breakpoint.c.
12047 * arch-utils.h (default_program_breakpoint_here_p): Moved from
12048 breakpoint.h
12049 * breakpoint.c (bp_loc_is_permanent): Changed return type to bool and
12050 call gdbarch_program_breakpoint_here_p.
12051 (program_breakpoint_here): Moved to arch-utils.c, renamed to
12052 default_program_breakpoint_here_p, changed return type to bool and
12053 simplified.
12054 * breakpoint.h (program_breakpoint_here): Moved prototype to
12055 arch-utils.h, renamed to default_program_breakpoint_here_p and changed
12056 return type to bool.
12057 * gdbarch.c: Regenerate.
12058 * gdbarch.h: Regenerate.
12059 * gdbarch.sh (program_breakpoint_here_p): New method.
12060 * infrun.c (handle_signal_stop): Call
12061 gdbarch_program_breakpoint_here_p.
12062
168f8c6b
TT
120632020-01-26 Tom Tromey <tom@tromey.com>
12064
12065 * ctfread.c (struct ctf_fp_info): Reindent.
12066 (_initialize_ctfread): Remove.
12067
128a391f
TT
120682020-01-26 Tom Tromey <tom@tromey.com>
12069
12070 * psymtab.c (partial_map_expand_apply)
12071 (psym_find_pc_sect_compunit_symtab, psym_lookup_symbol)
12072 (psymtab_to_symtab, psym_find_last_source_symtab, dump_psymtab)
12073 (psym_print_stats, psym_expand_symtabs_for_function)
12074 (psym_map_symbol_filenames, psym_map_matching_symbols)
12075 (psym_expand_symtabs_matching)
12076 (partial_symtab::read_dependencies, maintenance_info_psymtabs)
12077 (maintenance_check_psymtabs): Use new methods.
12078 * psympriv.h (struct partial_symtab) <readin_p,
12079 get_compunit_symtab>: New methods.
12080 <readin, compunit_symtab>: Remove members.
12081 (struct standard_psymtab): New.
12082 (struct legacy_psymtab): Derive from standard_psymtab.
12083 * dwarf2read.h (struct dwarf2_psymtab): Derive from
12084 standard_psymtab.
12085 * ctfread.c (struct ctf_psymtab): Derive from standard_psymtab.
12086
0494dbec
TT
120872020-01-26 Tom Tromey <tom@tromey.com>
12088
12089 * xcoffread.c (xcoff_psymtab_to_symtab_1): Call
12090 read_dependencies. Add assert.
12091 * psymtab.c (partial_symtab::read_dependencies): New method.
12092 * psympriv.h (struct partial_symtab) <read_dependencies>: New
12093 method.
12094 * mdebugread.c (psymtab_to_symtab_1): Call read_dependencies.
12095 * dwarf2read.c (dwarf2_psymtab::expand_psymtab): Call
12096 read_dependencies.
12097 * dbxread.c (dbx_psymtab_to_symtab_1): Call read_dependencies.
12098 Add assert.
12099
8566b89b
TT
121002020-01-26 Tom Tromey <tom@tromey.com>
12101
12102 * xcoffread.c (xcoff_psymtab_to_symtab_1): Change argument order.
12103 Call expand_psymtab.
12104 (xcoff_read_symtab): Call expand_psymtab.
12105 (xcoff_start_psymtab, xcoff_end_psymtab): Set
12106 legacy_expand_psymtab.
12107 * psympriv.h (struct partial_symtab) <expand_psymtab>: New
12108 method.
12109 (struct legacy_psymtab) <expand_psymtab>: Implement.
12110 <legacy_expand_psymtab>: New member.
12111 * mdebugread.c (mdebug_read_symtab): Call expand_psymtab.
12112 (parse_partial_symbols): Set legacy_expand_psymtab.
12113 (psymtab_to_symtab_1): Change argument order. Call
12114 expand_psymtab.
12115 (new_psymtab): Set legacy_expand_psymtab.
12116 * dwarf2read.h (struct dwarf2_psymtab) <expand_psymtab>: Declare.
12117 * dwarf2read.c (dwarf2_psymtab::read_symtab): Call
12118 expand_psymtab.
12119 (dwarf2_psymtab::expand_psymtab): Rename from
12120 psymtab_to_symtab_1. Call expand_psymtab.
12121 * dbxread.c (start_psymtab): Set legacy_expand_psymtab.
12122 (dbx_end_psymtab): Likewise.
12123 (dbx_psymtab_to_symtab_1): Change argument order. Call
12124 expand_psymtab.
12125 (dbx_read_symtab): Call expand_psymtab.
12126 * ctfread.c (struct ctf_psymtab) <expand_psymtab>: Declare.
12127 (ctf_psymtab::expand_psymtab): Rename from psymtab_to_symtab.
12128 (ctf_psymtab::read_symtab): Call expand_psymtab.
12129
077cbab2
TT
121302020-01-26 Tom Tromey <tom@tromey.com>
12131
12132 * xcoffread.c (xcoff_read_symtab): Remove prints. Add assert.
12133 * psymtab.c (psymtab_to_symtab): Print verbose "Reading"
12134 messages.
12135 * mdebugread.c (mdebug_read_symtab): Remove prints.
12136 * dwarf2read.c (dwarf2_psymtab::read_symtab): Remove prints. Add
12137 assert.
12138 * dbxread.c (dbx_read_symtab): Remove prints. Add assert.
12139
891813be
TT
121402020-01-26 Tom Tromey <tom@tromey.com>
12141
12142 * xcoffread.c (this_symtab_psymtab, read_xcoff_symtab)
12143 (xcoff_psymtab_to_symtab_1, xcoff_read_symtab)
12144 (xcoff_start_psymtab, xcoff_end_psymtab, scan_xcoff_symtab): Use
12145 legacy_symtab.
12146 * stabsread.h (dbx_end_psymtab): Use legacy_symtab.
12147 * psymtab.c (psymtab_to_symtab): Call method.
12148 (dump_psymtab): Update.
12149 * psympriv.h (struct partial_symtab): Add virtual destructor.
12150 <read_symtab>: New method.
12151 (struct legacy_symtab): New.
12152 * mdebugread.c (mdebug_read_symtab): Use legacy_psymtab.
12153 (struct pst_map) <pst>: Now a legacy_psymtab.
12154 (parse_procedure, parse_partial_symbols, psymtab_to_symtab_1)
12155 (new_psymtab): Use legacy_psymtab.
12156 * dwarf2read.h (struct dwarf2_psymtab): New.
12157 (struct dwarf2_per_cu_data) <psymtab>: Use it.
12158 * dwarf2read.c (dwarf2_create_include_psymtab)
12159 (dwarf2_build_include_psymtabs, create_type_unit_group)
12160 (create_partial_symtab, process_psymtab_comp_unit_reader)
12161 (build_type_psymtabs_reader, build_type_psymtab_dependencies)
12162 (set_partial_user): Use dwarf2_psymtab.
12163 (dwarf2_psymtab::read_symtab): Rename from dwarf2_read_symtab.
12164 (psymtab_to_symtab_1, process_full_comp_unit)
12165 (process_full_type_unit, dwarf2_ranges_read)
12166 (dwarf2_get_pc_bounds, psymtab_include_file_name)
12167 (dwarf_decode_lines): Use dwarf2_psymtab.
12168 * dwarf-index-write.c (psym_index_map): Use dwarf2_psymtab.
12169 (add_address_entry_worker, write_one_signatured_type)
12170 (recursively_count_psymbols, recursively_write_psymbols)
12171 (write_one_signatured_type, psyms_seen_size, write_gdbindex)
12172 (write_debug_names): Likewise.
12173 * dbxread.c (struct header_file_location): Take a legacy_psymtab.
12174 <pst>: Now a legacy_psymtab.
12175 (find_corresponding_bincl_psymtab): Return a legacy_psymtab.
12176 (read_dbx_symtab, start_psymtab, dbx_end_psymtab)
12177 (dbx_psymtab_to_symtab_1, read_ofile_symtab): Use legacy_psymtab.
12178 * ctfread.c (struct ctf_psymtab): New.
12179 (ctf_start_symtab, ctf_end_symtab, psymtab_to_symtab): Take a
12180 ctf_psymtab.
12181 (ctf_psymtab::read_symtab): Rename from ctf_read_symtab.
12182 (create_partial_symtab): Return a ctf_psymtab.
12183 (scan_partial_symbols): Update.
12184
c3693a1d
TT
121852020-01-26 Tom Tromey <tom@tromey.com>
12186
12187 * xcoffread.c (xcoff_start_psymtab): Use new.
12188 * psymtab.c (partial_symtab::partial_symtab): New constructor,
12189 renamed from start_psymtab_common.
12190 * psympriv.h (struct partial_symtab): Add new constructor.
12191 (start_psymtab_common): Don't declare.
12192 * mdebugread.c (parse_partial_symbols): Use new.
12193 * dwarf2read.c (create_partial_symtab): Use new.
12194 * dbxread.c (start_psymtab): Use new.
12195 * ctfread.c (create_partial_symtab): Use new.
12196
32caafd0
TT
121972020-01-26 Tom Tromey <tom@tromey.com>
12198
12199 * xcoffread.c (xcoff_end_psymtab): Use new.
12200 * psymtab.c (start_psymtab_common): Use new.
12201 (partial_symtab::partial_symtab): Rename from allocate_psymtab.
12202 Update.
12203 * psympriv.h (struct partial_symtab): Add parameters to
12204 constructor. Don't inline.
12205 (allocate_psymtab): Don't declare.
12206 * mdebugread.c (new_psymtab): Use new.
12207 * dwarf2read.c (dwarf2_create_include_psymtab): Use new.
12208 * dbxread.c (dbx_end_psymtab): Use new.
12209
abaa2f23
TT
122102020-01-26 Tom Tromey <tom@tromey.com>
12211
12212 * psymtab.h (class psymtab_storage) <install_psymtab>: Rename from
12213 allocate_psymtab. Update documentation.
12214 * psymtab.c (psymtab_storage::install_psymtab): Rename from
12215 allocate_psymtab. Do not use new.
12216 (allocate_psymtab): Use new. Update.
12217
6d94535f
TT
122182020-01-26 Tom Tromey <tom@tromey.com>
12219
12220 * xcoffread.c (xcoff_psymtab_to_symtab_1): Update.
12221 * psymtab.c (psym_print_stats): Update.
12222 * psympriv.h (struct partial_symtab) <readin,
12223 psymtabs_addrmap_supported, anonymous>: Now bool.
12224 * mdebugread.c (psymtab_to_symtab_1): Update.
12225 * dwarf2read.c (create_type_unit_group, create_partial_symtab)
12226 (build_type_psymtabs_reader, psymtab_to_symtab_1)
12227 (process_full_comp_unit, process_full_type_unit): Update.
12228 * dbxread.c (dbx_psymtab_to_symtab_1): Update.
12229 * ctfread.c (psymtab_to_symtab): Update.
12230
6f17252b
TT
122312020-01-26 Tom Tromey <tom@tromey.com>
12232
12233 * mdebugread.c (parse_partial_symbols): Use discard_psymtab.
12234 * psymtab.h (class psymtab_storage) <free_psymtabs>: Remove.
12235 * psymtab.c (psymtab_storage): Delete psymtabs.
12236 (psymtab_storage::allocate_psymtab): Use new.
12237 (psymtab_storage::discard_psymtab): Use delete.
12238 * psympriv.h (struct partial_symtab): Add constructor and
12239 initializers.
12240
f6f1cebc
TT
122412020-01-26 Tom Tromey <tom@tromey.com>
12242
12243 * machoread.c: Do not include psympriv.h.
12244
e47e48f6
PW
122452020-01-25 Philippe Waroquiers <philippe.waroquiers@skynet.be>
12246
12247 * NEWS: Mention the new option and the set/show commands.
12248
a2fedca9
PW
122492020-01-25 Philippe Waroquiers <philippe.waroquiers@skynet.be>
12250
12251 * exec.c (exec_file_mismatch_names, exec_file_mismatch_mode)
12252 (show_exec_file_mismatch_command, set_exec_file_mismatch_command)
12253 (validate_exec_file): New variables, enums, functions.
12254 (exec_file_locate_attach, print_section_info): Style the filenames.
12255 (_initialize_exec): Install show_exec_file_mismatch_command and
12256 set_exec_file_mismatch_command.
12257 * gdbcore.h (validate_exec_file): Declare.
12258 * infcmd.c (attach_command): Call validate_exec_file.
12259 * remote.c ( remote_target::remote_add_inferior): Likewise.
12260
7ffa82e1
AB
122612020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
12262
12263 * frame.c (find_frame_sal): Move call to get_next_frame into more
12264 inner scope.
12265 * inline-frame.c (inilne_state) <inline_state>: Update argument
12266 types.
12267 (inilne_state) <skipped_symbol>: Rename to...
12268 (inilne_state) <skipped_symbols>: ...this, and change to a vector.
12269 (skip_inline_frames): Build vector of skipped symbols and use this
12270 to reate the inline_state.
12271 (inline_skipped_symbol): Add a comment and some assertions, fetch
12272 skipped symbol from the list.
12273
3d92a3e3
AB
122742020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
12275
12276 * buildsym.c (lte_is_less_than): Delete.
12277 (buildsym_compunit::end_symtab_with_blockvector): Create local
12278 lambda function to sort line table entries, and use
12279 std::stable_sort instead of std::sort.
12280 * symtab.c (find_pc_sect_line): Skip backward over end of sequence
12281 markers when looking for a previous line.
12282
94a72be7
AB
122832020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
12284
12285 * dwarf2read.c (lnp_state_machine::record_line): Include
12286 end_sequence parameter in debug print out. Record the line if we
12287 are at an end_sequence marker even if it's not the start of a
12288 statement.
12289 * symmisc.c (maintenance_print_one_line_table): Print end of
12290 sequence markers with 'END' not '0'.
12291
53af73bf
PA
122922020-01-24 Pedro Alves <palves@redhat.com>
12293
12294 PR gdb/25410
12295 * thread.c (scoped_restore_current_thread::restore): Use
12296 switch_to_inferior_no_thread.
12297 * exec.c: Include "progspace-and-thread.h".
12298 (add_target_sections, remove_target_sections):
12299 scoped_restore_current_pspace_and_thread instead of
12300 scoped_restore_current_thread.
12301 * infrun.c (handle_vfork_child_exec_or_exit): Assign the pspace
12302 and aspace to the inferior before calling clone_program_space.
12303 Remove stale comment.
12304
3050c6f4
CB
123052020-01-24 Christian Biesinger <cbiesinger@google.com>
12306
12307 * arm-nbsd-nat.c (arm_nbsd_nat_target::fetch_registers): Rename to...
12308 (arm_netbsd_nat_target::fetch_registers): ...this.
12309 (arm_nbsd_nat_target::store_registers): Rename to...
12310 (arm_netbsd_nat_target::store_registers): ...this.
12311
73685c7e
CB
123122020-01-24 Christian Biesinger <cbiesinger@google.com>
12313
12314 * arm-nbsd-nat.c: Define _KERNTYPES to get the declaration of
12315 register_t.
12316
89203d40
CB
123172020-01-24 Christian Biesinger <cbiesinger@google.com>
12318
12319 * aarch64-fbsd-tdep.c (aarch64_fbsd_iterate_over_regset_sections):
12320 Update comment.
12321 * aarch64-linux-tdep.c (aarch64_linux_iterate_over_regset_sections):
12322 Likewise.
12323 * arm-fbsd-tdep.c (arm_fbsd_iterate_over_regset_sections): Likewise.
12324 * gdbcore.h (deprecated_add_core_fns): Update comment to point to
12325 the correct replacement (iterate_over_regset_sections).
12326 * riscv-fbsd-tdep.c (riscv_fbsd_iterate_over_regset_sections):
12327 Update comment.
12328
1ba1ac88
AB
123292020-01-24 Graham Markall <graham.markall@embecosm.com>
12330
12331 PR gdb/23718
12332 * gdb/python/python.c (execute_gdb_command): Call
12333 async_enable_stdin in catch block.
12334
f3364a6d
AB
123352020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
12336
12337 * event-loop.c (start_event_loop): Wrap async_enable_stdin with
12338 SWITCH_THRU_ALL_UIS.
12339
733d0a67
AB
123402020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
12341
12342 PR tui/9765
12343 * minsyms.c (lookup_minimal_symbol_by_pc_section): Update header
12344 comment, add extra parameter, and update to store previous symbol
12345 when appropriate.
12346 * minsyms.h (lookup_minimal_symbol_by_pc_section): Update comment,
12347 add extra parameter.
12348 * tui/tui-disasm.c (tui_disassemble): Update header comment,
12349 remove unneeded parameter, add try/catch around gdb_print_insn,
12350 rewrite to add items to asm_lines vector.
12351 (tui_find_backward_disassembly_start_address): New function.
12352 (tui_find_disassembly_address): Updated throughout.
12353 (tui_disasm_window::set_contents): Update for changes to
12354 tui_disassemble.
12355 (tui_disasm_window::do_scroll_vertical): No need to adjust the
12356 number of lines to scroll.
12357
b3b3bada
SM
123582020-01-23 Simon Marchi <simon.marchi@polymtl.ca>
12359
12360 * objfiles.h (ALL_OBJFILE_OSECTIONS): Move up.
12361 (SECT_OFF_DATA): Likewise.
12362 (SECT_OFF_RODATA): Likewise.
12363 (SECT_OFF_TEXT): Likewise.
12364 (SECT_OFF_BSS): Likewise.
12365 (struct objfile) <text_section_offset, data_section_offset>: New
12366 methods.
12367 * amd64-windows-tdep.c (amd64_windows_find_unwind_info): Use
12368 objfile::text_section_offset.
12369 * coff-pe-read.c (add_pe_forwarded_sym): Likewise.
12370 * coffread.c (coff_symtab_read): Likewise.
12371 (enter_linenos): Likewise.
12372 (process_coff_symbol): Likewise.
12373 * ctfread.c (get_objfile_text_range): Likewise.
12374 * dtrace-probe.c (dtrace_probe::get_relocated_address):
12375 Use objfile::data_section_offset.
12376 * dwarf2-frame.c (execute_cfa_program): Use
12377 objfile::text_section_offset.
12378 (dwarf2_frame_find_fde): Likewise.
12379 * dwarf2read.c (create_addrmap_from_index): Likewise.
12380 (create_addrmap_from_aranges): Likewise.
12381 (dw2_find_pc_sect_compunit_symtab): Likewise.
12382 (process_psymtab_comp_unit_reader): Likewise.
12383 (add_partial_symbol): Likewise.
12384 (add_partial_subprogram): Likewise.
12385 (process_full_comp_unit): Likewise.
12386 (read_file_scope): Likewise.
12387 (read_func_scope): Likewise.
12388 (read_lexical_block_scope): Likewise.
12389 (read_call_site_scope): Likewise.
12390 (dwarf2_rnglists_process): Likewise.
12391 (dwarf2_ranges_process): Likewise.
12392 (dwarf2_ranges_read): Likewise.
12393 (dwarf_decode_lines_1): Likewise.
12394 (new_symbol): Likewise.
12395 (dwarf2_fetch_die_loc_sect_off): Likewise.
12396 (dwarf2_per_cu_text_offset): Likewise.
12397 * hppa-bsd-tdep.c (hppabsd_find_global_pointer): Likewise.
12398 * hppa-tdep.c (read_unwind_info): Likewise.
12399 * ia64-tdep.c (ia64_find_unwind_table): Likewise.
12400 * psympriv.h (struct partial_symtab): Likewise.
12401 * psymtab.c (find_pc_sect_psymtab): Likewise.
12402 * solib-svr4.c (enable_break): Likewise.
12403 * stap-probe.c (relocate_address): Use
12404 objfile::data_section_offset.
12405 * xcoffread.c (enter_line_range): Use
12406 objfile::text_section_offset.
12407 (read_xcoff_symtab): Likewise.
12408
ab53f382
SM
124092020-01-23 Simon Marchi <simon.marchi@efficios.com>
12410
12411 * darwin-nat.c (darwin_nat_target::wait_1): Move `inf`
12412 declaration to narrower scopes.
12413
e7eee665
SM
124142020-01-23 Simon Marchi <simon.marchi@efficios.com>
12415
12416 * darwin-nat.h (struct darwin_exception_msg, enum
12417 darwin_msg_state, struct darwin_thread_info, darwin_thread_t):
12418 Move up.
12419 (class darwin_nat_target) <wait_1, check_new_threads,
12420 decode_exception_message, decode_message, stop_inferior,
12421 init_thread_list, ptrace_him, cancel_breakpoint>: Declare.
12422 * darwin-nat.c (darwin_check_new_threads): Rename to...
12423 (darwin_nat_target::check_new_threads): ... this.
12424 (darwin_suspend_inferior_it): Remove.
12425 (darwin_decode_exception_message): Rename to...
12426 (darwin_nat_target::decode_exception_message): ... this.
12427 (darwin_nat_target::resume): Pass target to find_inferior_ptid.
12428 (darwin_decode_message): Rename to...
12429 (darwin_nat_target::decode_message): ... this.
12430 (cancel_breakpoint): Rename to...
12431 (darwin_nat_target::cancel_breakpoint): ... this.
12432 (darwin_wait): Rename to...
12433 (darwin_nat_target::wait_1): ... this. Use range-based for loop
12434 instead of iterate_over_inferiors.
12435 (darwin_nat_target::wait): Call wait_1 instead of darwin_wait.
12436 (darwin_stop_inferior): Rename to...
12437 (darwin_nat_target::stop_inferior): ... this.
12438 (darwin_nat_target::kill): Call wait_1 instead of darwin_wait.
12439 (darwin_init_thread_list): Rename to...
12440 (darwin_nat_target::init_thread_list): ... this.
12441 (darwin_ptrace_him): Rename to...
12442 (darwin_nat_target::ptrace_him): ... this.
12443 (darwin_nat_target::create_inferior): Pass lambda function to
12444 fork_inferior.
12445 (darwin_nat_target::detach): Call stop_inferior instead of
12446 darwin_stop_inferior.
12447 * fork-inferior.h (fork_inferior): Change init_trace_fun
12448 parameter to gdb::function_view.
12449 * fork-inferior.c (fork_inferior): Likewise.
12450
c162ed3e
HD
124512020-01-23 Hannes Domani <ssbssa@yahoo.de>
12452
12453 * i386-cygwin-tdep.c (core_process_module_section): Update.
12454 * windows-nat.c (struct lm_info_windows): Add text_offset.
12455 (windows_xfer_shared_libraries): Update.
12456 * windows-tdep.c (windows_xfer_shared_library):
12457 Add text_offset_cached argument.
12458 * windows-tdep.h (windows_xfer_shared_library): Update.
12459
a1237872
SM
124602020-01-21 Simon Marchi <simon.marchi@efficios.com>
12461
12462 * gdbarch.sh: Add declaration for _initialize_gdbarch.
12463
b3ee6dd9
SM
124642020-01-21 Simon Marchi <simon.marchi@efficios.com>
12465
12466 * remote-sim.c (check_for_duplicate_sim_descriptor): Remove.
12467 (get_sim_inferior_data): Remove use of iterate_over_inferiors,
12468 replace with range-based for.
12469 (gdbsim_interrupt_inferior): Remove.
12470 (gdbsim_target::interrupt): Replace iterate_over_inferiors use
12471 with a range-based for. Inline code from
12472 gdbsim_interrupt_inferior.
12473
f9fac3c8
SM
124742020-01-21 Simon Marchi <simon.marchi@efficios.com>
12475
12476 * infrun.c (proceed): Fix indentation.
12477
f6474de9
TT
124782020-01-21 Tom Tromey <tromey@adacore.com>
12479
12480 * source-cache.c (source_cache::ensure): Call ext_lang_colorize.
12481 * python/python.c (python_extension_ops): Update.
12482 (gdbpy_colorize): New function.
12483 * python/lib/gdb/__init__.py (colorize): New function.
12484 * extension.h (ext_lang_colorize): Declare.
12485 * extension.c (ext_lang_colorize): New function.
12486 * extension-priv.h (struct extension_language_ops) <colorize>: New
12487 member.
12488 * cli/cli-style.c (_initialize_cli_style): Update help text.
12489
f0c702d4
LM
124902020-01-21 Luis Machado <luis.machado@linaro.org>
12491
12492 * aarch64-tdep.c (struct aarch64_displaced_step_closure)
12493 <cond>: Change type to bool.
12494 (aarch64_displaced_step_b_cond): Update cond to use bool type.
12495 (aarch64_displaced_step_cb): Likewise.
12496 (aarch64_displaced_step_tb): Likewise.
12497
1ab139e5
LM
124982020-01-21 Luis Machado <luis.machado@linaro.org>
12499
12500 * aarch64-tdep.c (aarch64_displaced_step_fixup): Add more debugging
12501 output.
12502
0c271889
LM
125032020-01-21 Luis Machado <luis.machado@linaro.org>
12504
12505 * aarch64-tdep.c (struct aarch64_displaced_step_closure )
12506 <pc_adjust>: Adjust the documentation.
12507 (aarch64_displaced_step_fixup): Check if PC really moved before
12508 adjusting it.
12509
4d89c1c7
TT
125102020-01-19 Tom Tromey <tom@tromey.com>
12511
12512 * disasm.c (~gdb_disassembler): New destructor.
12513 (gdb_buffered_insn_length): Call disassemble_free_target.
12514 * disasm.h (class gdb_disassembler): Declare destructor. Use
12515 DISABLE_COPY_AND_ASSIGN.
12516
c0ab21c2
TT
125172020-01-19 Tom Tromey <tom@tromey.com>
12518
12519 * dwarf2read.c (abbrev_table_up): Move typedef earlier.
12520 (die_reader_func_ftype): Remove.
12521 (cutu_reader): New class.
12522 (dw2_get_file_names_reader): Remove "data" parameter.
12523 (dw2_get_file_names): Use cutu_reader.
12524 (create_debug_type_hash_table): Update.
12525 (read_cutu_die_from_dwo): Update comment.
12526 (lookup_dwo_unit): Add dwo_name parameter.
12527 (cutu_reader::init_tu_and_read_dwo_dies): Now a method. Remove
12528 die_reader_func_ftype and data parameters.
12529 (cutu_reader::cutu_reader): Rename from init_cutu_and_read_dies.
12530 Remove die_reader_func_ftype and data parameters.
12531 (~cutu_reader): New; from init_cutu_and_read_dies.
12532 (cutu_reader::cutu_reader): Rename from
12533 init_cutu_and_read_dies_no_follow. Remove die_reader_func_ftype
12534 and data parameters.
12535 (init_cutu_and_read_dies_simple): Remove.
12536 (struct process_psymtab_comp_unit_data): Remove.
12537 (process_psymtab_comp_unit_reader): Remove data parameter; add
12538 want_partial_unit and pretend_language parameters.
12539 (process_psymtab_comp_unit): Use cutu_reader.
12540 (build_type_psymtabs_reader): Remove data parameter.
12541 (build_type_psymtabs_1): Use cutu_reader.
12542 (process_skeletonless_type_unit): Likewise.
12543 (load_partial_comp_unit_reader): Remove.
12544 (load_partial_comp_unit): Use cutu_reader.
12545 (load_full_comp_unit_reader): Remove.
12546 (load_full_comp_unit): Use cutu_reader.
12547 (struct create_dwo_cu_data): Remove.
12548 (create_dwo_cu_reader): Remove datap parameter; add dwo_file and
12549 dwo_unit parameters.
12550 (create_cus_hash_table): Use cutu_reader.
12551 (struct dwarf2_read_addr_index_data): Remove.
12552 (dwarf2_read_addr_index_reader): Remove.
12553 (dwarf2_read_addr_index): Use cutu_reader.
12554 (read_signatured_type_reader): Remove.
12555 (read_signatured_type): Use cutu_reader.
12556
45bbae5c
TT
125572020-01-19 Tom Tromey <tom@tromey.com>
12558
12559 * tui/tui.c (tui_show_assembly): Use tui_suppress_output.
12560 * tui/tui-wingeneral.h (class tui_suppress_output): New.
12561 (tui_wrefresh): Declare.
12562 * tui/tui-wingeneral.c (suppress_output): New global.
12563 (tui_suppress_output, ~tui_suppress_output): New constructor and
12564 destructor.
12565 (tui_wrefresh): New function.
12566 (tui_gen_win_info::refresh_window): Use tui_wrefresh.
12567 (tui_gen_win_info::make_window): Call wnoutrefresh when needed.
12568 * tui/tui-regs.h (struct tui_data_window) <no_refresh>: Declare
12569 method.
12570 * tui/tui-regs.c (tui_data_window::erase_data_content): Call
12571 tui_wrefresh.
12572 (tui_data_window::no_refresh): New method.
12573 (tui_data_item_window::refresh_window): Call tui_wrefresh.
12574 (tui_reg_command): Use tui_suppress_output
12575 * tui/tui-layout.c (tui_set_layout): Use tui_suppress_output.
12576 * tui/tui-data.h (struct tui_gen_win_info) <no_refresh>: New
12577 method.
12578 * tui/tui-command.c (tui_refresh_cmd_win): Call tui_wrefresh.
12579
4f13c1c0
TT
125802020-01-19 Tom Tromey <tom@tromey.com>
12581
12582 * tui/tui-winsource.c (tui_update_source_windows_with_line):
12583 Handle case where symtab is null.
12584
fa47e446
SM
125852020-01-19 Simon Marchi <simon.marchi@polymtl.ca>
12586
12587 * linux-fork.c (one_fork_p): Simplify.
12588
26f42329
SM
125892020-01-17 Simon Marchi <simon.marchi@efficios.com>
12590
12591 * top.c (struct qt_args): Remove.
12592 (kill_or_detach): Change return type to void, replace `void *`
12593 parameter with a proper one.
12594 (print_inferior_quit_action): Likewise.
12595 (quit_confirm): Use range-based for loop to iterate over inferiors.
12596 (quit_force): Likewise.
12597
a9ac81b1
SM
125982020-01-17 Simon Marchi <simon.marchi@efficios.com>
12599
12600 * mi/mi-main.c (run_one_inferior): Change return type to void, replace
12601 `void *` parameter with proper parameters.
12602 (mi_cmd_exec_run): Use range-based loop to iterate over inferiors.
12603 (print_one_inferior): Change return type to void, replace `void *`
12604 parameter with proper parameters.
12605 (mi_cmd_list_thread_groups): Use range-based loop to iterate over
12606 inferiors.
12607 (get_other_inferior): Remove.
12608 (mi_cmd_remove_inferior): Use range-based loop to iterate over
12609 inferiors.
12610
788eca49
SM
126112020-01-17 Simon Marchi <simon.marchi@efficios.com>
12612
12613 * mi/mi-interp.c (report_initial_inferior): Remove.
12614 (mi_interp::init): Use range-based for to iterate over inferiors.
12615
d9bc85b6
SM
126162020-01-17 Simon Marchi <simon.marchi@efficios.com>
12617
12618 * python/py-inferior.c (build_inferior_list): Remove.
12619 (gdbpy_ref): Use range-based for loop to iterate over inferiors.
12620
40c94099
CB
126212020-01-16 Christian Biesinger <cbiesinger@google.com>
12622
12623 * btrace.c (btrace_compute_ftrace_1): Fix spelling error (Unkown).
12624 (btrace_stitch_trace): Likewise.
12625 * charset.c (intermediate_encoding): Likewise (vaild).
12626 * nat/linux-btrace.c (linux_read_pt): Likewise (Unkown).
12627 * python/py-record-btrace.c (struct PyMethodDef): Likewise (occurences).
12628 * record-btrace.c (record_btrace_print_conf): Likewise (unkown).
12629
e0cdfe3c
HD
126302020-01-16 Hannes Domani <ssbssa@yahoo.de>
12631
12632 * windows-tdep.c (windows_get_tlb_type):
12633 Add rtl_user_process_parameters type.
12634
790f1718 126352020-01-16 Pedro Alves <palves@redhat.com>
aac66a4c 12636 Norbert Lange <nolange79@gmail.com>
790f1718
PA
12637
12638 PR build/24805
12639 * gdbsupport/gdb_proc_service.h (PS_EXPORT): New.
12640 (ps_get_thread_area, ps_getpid, ps_lcontinue, ps_lgetfpregs)
12641 (ps_lgetregs, ps_lsetfpregs, ps_lsetregs, ps_lstop, ps_pcontinue)
12642 (ps_pdread, ps_pdwrite, ps_pglobal_lookup, ps_pstop, ps_ptread)
12643 (ps_ptwrite, ps_lgetxregs, ps_lgetxregsize, ps_lsetxregs)
12644 (ps_plog): Redeclare exported functions with default visibility.
12645
3112ed97
NA
126462020-01-16 Nitika Achra <Nitika.Achra@amd.com>
12647
12648 * dwarf2loc.c (decode_debug_loclists_addresses): Handle
12649 DW_LLE_base_addressx, DW_LLE_startx_length, DW_LLE_start_length.
12650
8dc3273e
SM
126512020-01-15 Simon Marchi <simon.marchi@efficios.com>
12652
12653 * infcmd.c (post_create_inferior): Use get_thread_regcache
12654 instead of get_current_regcache.
12655
ff47f4f0
TT
126562020-01-14 Tom Tromey <tom@tromey.com>
12657
12658 PR symtab/12535:
12659 * python/python.c (gdbpy_decode_line): Treat empty string the same
12660 as no argument.
12661
975f45b7
TT
126622020-01-14 Tom Tromey <tom@tromey.com>
12663
12664 * Makefile.in (CLIBS): Remove second use of $(LIBIBERTY).
12665
25e57356
TT
126662020-01-14 Tom Tromey <tom@tromey.com>
12667
12668 * nat/linux-btrace.c: Don't include <config.h>.
12669 * nat/linux-ptrace.c: Don't include <config.h>.
12670 * nat/x86-linux-dregs.c: Don't include <config.h>.
12671
05ea2a05
TT
126722020-01-14 Tom Tromey <tom@tromey.com>
12673
12674 * configure: Rebuild.
12675 * configure.ac: Move many checks to ../gdbsupport/common.m4.
12676
01027315
TT
126772020-01-14 Tom Tromey <tom@tromey.com>
12678
12679 * nat/x86-linux-dregs.c: Include configh.h.
12680 * nat/linux-ptrace.c: Include configh.h.
12681 * nat/linux-btrace.c: Include configh.h.
12682 * defs.h: Include config.h, bfd.h.
12683 * configure.ac: Don't source common.host.
12684 (CONFIG_OBS, CONFIG_SRCS): Remove gdbsupport files.
12685 * configure: Rebuild.
12686 * acinclude.m4: Update path.
12687 * Makefile.in (SUPPORT, LIBSUPPORT, INCSUPPORT): New variables.
12688 (CONFIG_SRC_SUBDIR): Remove gdbsupport.
12689 (INTERNAL_CFLAGS_BASE): Add INCSUPPORT.
12690 (CLIBS): Add LIBSUPPORT.
12691 (CDEPS): Likewise.
12692 (COMMON_SFILES): Remove gdbsupport files.
12693 (HFILES_NO_SRCDIR): Likewise.
12694 (stamp-version): Update path to create-version.sh.
12695 (ALLDEPFILES): Remove gdbsupport files.
12696
b2ceabe8
TT
126972020-01-14 Tom Tromey <tom@tromey.com>
12698
12699 * gdbsupport/common.m4 (GDB_AC_COMMON): Define WIN32APILIBS and
12700 USE_WIN32API when needed.
12701 * configure.ac (USE_WIN32API): Don't define.
12702 (WIN32LIBS): Use WIN32APILIBS.
12703 * configure: Rebuild.
12704
25c51f71
TT
127052020-01-14 Tom Tromey <tom@tromey.com>
12706
12707 * configure: Rebuild.
12708 * gdbsupport/common.m4 (GDB_AC_COMMON): Fix indentation.
12709
717c684d
BE
127102020-01-14 Bernd Edlinger <bernd.edlinger@hotmail.de>
12711
12712 * skip.c (skip_function_command): Make skip w/o arguments use the
12713 name of the inlined function if pc is inside any inlined function.
12714
7da6a5b9
LM
127152020-01-14 Luis Machado <luis.machado@linaro.org>
12716
12717 * inf-ptrace.c (inf_ptrace_target::resume): Update comments.
12718 * infrun.c (resume_1): Likewise.
12719 (handle_inferior_event): Remove stale comment.
12720 * linux-nat.c (linux_nat_target::resume): Update comments.
12721 (save_stop_reason): Likewise.
12722 (linux_nat_filter_event): Likewise.
12723 * linux-nat.h (struct lwp_info) <stop_pc>, <stop_reason>: Likewise.
12724
44e4c775
AB
127252020-01-13 Andrew Burgess <andrew.burgess@embecosm.com>
12726
12727 * elfread.c (record_minimal_symbol): Set section index to 0 for
12728 non-allocatable sections.
12729
18a8505e
AT
12730
127312020-01-13 Ali Tamur <tamur@google.com>
12732
12733 * dwarf2read.c (dwarf2_debug_sections): Add debug_str_offsets sections.
12734 (dwarf2_cu): Add str_offsets_base field. Change the type of addr_base
12735 to gdb::optional. Update comments.
12736 (dwo_file): Update comments.
12737 (read_attribute): Update API to take an additional out parameter,
12738 need_reprocess. This is used to mark attributes that need other
12739 attributes (e.g. str_offsets_base) for correct computation which may not
12740 have been read yet.
12741 (read_attribute_reprocess): New function declaration.
12742 (read_addr_index): Likewise.
12743 (read_dwo_str_index): Likewise.
12744 (read_stub_str_index): Likewise.
12745 (dwarf2_per_objfile::locate_sections): Handle debug_str_offsets section.
12746 (lookup_addr_base): New function definition.
12747 (lookup_ranges_base): Likewise.
12748 (read_cutu_die_from_dwo): Use the new functions: lookup_addr_base,
12749 lookup_ranges_base.
12750 (init_cutu_and_read_dies): Update comments.
12751 (init_cutu_and_read_dies_no_follow): Change API to take parent compile
12752 unit. This is used to inherit parent's str_offsets_base and addr_base.
12753 Update comments.
12754 (init_cutu_and_read_dies_simple): Reflect API changes.
12755 (skip_one_die): Reflect API changes. Handle DW_FORM_rnglistx.
12756 (create_cus_hash_table): Change API to take parent compile unit.
12757 Reflect API changes.
12758 (open_and_init_dwo_file): Reflect API changes.
12759 (dwarf2_get_pc_bounds): Update comments.
12760 (dwarf2_record_block_ranges): Likewise.
12761 (read_full_die_1): Change implementation to reprocess attributes that
12762 need str_offsets_base and addr_base.
12763 (partial_die_info::read): Likewise.
12764 (read_attribute_reprocess): New function definition.
12765 (read_attribute_value): Change API to take an additional out parameter,
12766 need_reprocess. Handle DW_FORM_rnglistx. No longer trigger an error
12767 when a non-dwo compile unit has index based attributes.
12768 (read_attribute): Reflect API changes.
12769 (read_addr_index_1): Reflect API changes. Update comments.
12770 (dwarf2_read_addr_index_data): Reflect API changes.
12771 (dwarf2_read_addr_index): Likewise.
12772 (read_str_index): Change API and implementation. This becomes a helper
12773 to be used by the new string index related methods. Update error
12774 message and comments.
12775 (read_dwo_str_index): New function definition.
12776 (read_stub_str_index): Likewise.
12777 * dwarf2read.h (dwarf2_per_objfile): Add str_offsets field.
12778 * symfile.h (dwarf2_debug_sections): Likewise.
12779 * xcoffread.c (dwarf2_debug_sections): Likewise.
12780
0cac9354
SM
127812020-01-13 Simon Marchi <simon.marchi@efficios.com>
12782
12783 * gdbcore.h (struct core_fns) <core_read_registers>: Change
12784 core_reg_sect type to gdb_byte *.
12785 * arm-nbsd-nat.c (fetch_elfcore_registers): Likewise.
12786 * cris-tdep.c (fetch_core_registers): Likewise.
12787 * corelow.c (core_target::get_core_register_section): Change
12788 type of `contents` to gdb::byte_vector.
12789
9a6d629c
AB
127902020-01-13 Andrew Burgess <andrew.burgess@embecosm.com>
12791
12792 * tui/tui-wingeneral.c (box_win): Position the title in the center
12793 of the border.
12794
d8b2f9e3
SM
127952020-01-13 Simon Marchi <simon.marchi@polymtl.ca>
12796
12797 * corelow.c (core_target::get_core_register_section): Use
12798 std::vector instead of alloca.
12799
bb564c58
SM
128002020-01-13 Simon Marchi <simon.marchi@efficios.com>
12801
12802 * warning.m4: Add -Wmissing-declarations to build_warnings.
12803 * configure: Re-generate.
12804
6b366111
SM
128052020-01-13 Simon Marchi <simon.marchi@efficios.com>
12806
12807 * python/python.c (init__gdb_module): Add declaration.
12808
6c265988
SM
128092020-01-13 Simon Marchi <simon.marchi@efficios.com>
12810
12811 * aarch64-fbsd-nat.c (_initialize_aarch64_fbsd_nat): Add declaration.
12812 * aarch64-fbsd-tdep.c (_initialize_aarch64_fbsd_tdep): Add declaration.
12813 * aarch64-linux-nat.c (_initialize_aarch64_linux_nat): Add declaration.
12814 * aarch64-linux-tdep.c (_initialize_aarch64_linux_tdep): Add declaration.
12815 * aarch64-newlib-tdep.c (_initialize_aarch64_newlib_tdep): Add declaration.
12816 * aarch64-tdep.c (_initialize_aarch64_tdep): Add declaration.
12817 * ada-exp.y (_initialize_ada_exp): Add declaration.
12818 * ada-lang.c (_initialize_ada_language): Add declaration.
12819 * ada-tasks.c (_initialize_tasks): Add declaration.
12820 * agent.c (_initialize_agent): Add declaration.
12821 * aix-thread.c (_initialize_aix_thread): Add declaration.
12822 * alpha-bsd-nat.c (_initialize_alphabsd_nat): Add declaration.
12823 * alpha-linux-nat.c (_initialize_alpha_linux_nat): Add declaration.
12824 * alpha-linux-tdep.c (_initialize_alpha_linux_tdep): Add declaration.
12825 * alpha-nbsd-tdep.c (_initialize_alphanbsd_tdep): Add declaration.
12826 * alpha-obsd-tdep.c (_initialize_alphaobsd_tdep): Add declaration.
12827 * alpha-tdep.c (_initialize_alpha_tdep): Add declaration.
12828 * amd64-darwin-tdep.c (_initialize_amd64_darwin_tdep): Add declaration.
12829 * amd64-dicos-tdep.c (_initialize_amd64_dicos_tdep): Add declaration.
12830 * amd64-fbsd-nat.c (_initialize_amd64fbsd_nat): Add declaration.
12831 * amd64-fbsd-tdep.c (_initialize_amd64fbsd_tdep): Add declaration.
12832 * amd64-linux-nat.c (_initialize_amd64_linux_nat): Add declaration.
12833 * amd64-linux-tdep.c (_initialize_amd64_linux_tdep): Add declaration.
12834 * amd64-nbsd-nat.c (_initialize_amd64nbsd_nat): Add declaration.
12835 * amd64-nbsd-tdep.c (_initialize_amd64nbsd_tdep): Add declaration.
12836 * amd64-obsd-nat.c (_initialize_amd64obsd_nat): Add declaration.
12837 * amd64-obsd-tdep.c (_initialize_amd64obsd_tdep): Add declaration.
12838 * amd64-sol2-tdep.c (_initialize_amd64_sol2_tdep): Add declaration.
12839 * amd64-tdep.c (_initialize_amd64_tdep): Add declaration.
12840 * amd64-windows-nat.c (_initialize_amd64_windows_nat): Add declaration.
12841 * amd64-windows-tdep.c (_initialize_amd64_windows_tdep): Add declaration.
12842 * annotate.c (_initialize_annotate): Add declaration.
12843 * arc-newlib-tdep.c (_initialize_arc_newlib_tdep): Add declaration.
12844 * arc-tdep.c (_initialize_arc_tdep): Add declaration.
12845 * arch-utils.c (_initialize_gdbarch_utils): Add declaration.
12846 * arm-fbsd-nat.c (_initialize_arm_fbsd_nat): Add declaration.
12847 * arm-fbsd-tdep.c (_initialize_arm_fbsd_tdep): Add declaration.
12848 * arm-linux-nat.c (_initialize_arm_linux_nat): Add declaration.
12849 * arm-linux-tdep.c (_initialize_arm_linux_tdep): Add declaration.
12850 * arm-nbsd-nat.c (_initialize_arm_netbsd_nat): Add declaration.
12851 * arm-nbsd-tdep.c (_initialize_arm_netbsd_tdep): Add declaration.
12852 * arm-obsd-tdep.c (_initialize_armobsd_tdep): Add declaration.
12853 * arm-pikeos-tdep.c (_initialize_arm_pikeos_tdep): Add declaration.
12854 * arm-symbian-tdep.c (_initialize_arm_symbian_tdep): Add declaration.
12855 * arm-tdep.c (_initialize_arm_tdep): Add declaration.
12856 * arm-wince-tdep.c (_initialize_arm_wince_tdep): Add declaration.
12857 * auto-load.c (_initialize_auto_load): Add declaration.
12858 * auxv.c (_initialize_auxv): Add declaration.
12859 * avr-tdep.c (_initialize_avr_tdep): Add declaration.
12860 * ax-gdb.c (_initialize_ax_gdb): Add declaration.
12861 * bfin-linux-tdep.c (_initialize_bfin_linux_tdep): Add declaration.
12862 * bfin-tdep.c (_initialize_bfin_tdep): Add declaration.
12863 * break-catch-sig.c (_initialize_break_catch_sig): Add declaration.
12864 * break-catch-syscall.c (_initialize_break_catch_syscall): Add declaration.
12865 * break-catch-throw.c (_initialize_break_catch_throw): Add declaration.
12866 * breakpoint.c (_initialize_breakpoint): Add declaration.
12867 * bsd-uthread.c (_initialize_bsd_uthread): Add declaration.
12868 * btrace.c (_initialize_btrace): Add declaration.
12869 * charset.c (_initialize_charset): Add declaration.
12870 * cli/cli-cmds.c (_initialize_cli_cmds): Add declaration.
12871 * cli/cli-dump.c (_initialize_cli_dump): Add declaration.
12872 * cli/cli-interp.c (_initialize_cli_interp): Add declaration.
12873 * cli/cli-logging.c (_initialize_cli_logging): Add declaration.
12874 * cli/cli-script.c (_initialize_cli_script): Add declaration.
12875 * cli/cli-style.c (_initialize_cli_style): Add declaration.
12876 * coff-pe-read.c (_initialize_coff_pe_read): Add declaration.
12877 * coffread.c (_initialize_coffread): Add declaration.
12878 * compile/compile-cplus-types.c (_initialize_compile_cplus_types): Add declaration.
12879 * compile/compile.c (_initialize_compile): Add declaration.
12880 * complaints.c (_initialize_complaints): Add declaration.
12881 * completer.c (_initialize_completer): Add declaration.
12882 * copying.c (_initialize_copying): Add declaration.
12883 * corefile.c (_initialize_core): Add declaration.
12884 * corelow.c (_initialize_corelow): Add declaration.
12885 * cp-abi.c (_initialize_cp_abi): Add declaration.
12886 * cp-namespace.c (_initialize_cp_namespace): Add declaration.
12887 * cp-support.c (_initialize_cp_support): Add declaration.
12888 * cp-valprint.c (_initialize_cp_valprint): Add declaration.
12889 * cris-linux-tdep.c (_initialize_cris_linux_tdep): Add declaration.
12890 * cris-tdep.c (_initialize_cris_tdep): Add declaration.
12891 * csky-linux-tdep.c (_initialize_csky_linux_tdep): Add declaration.
12892 * csky-tdep.c (_initialize_csky_tdep): Add declaration.
12893 * ctfread.c (_initialize_ctfread): Add declaration.
12894 * d-lang.c (_initialize_d_language): Add declaration.
12895 * darwin-nat-info.c (_initialize_darwin_info_commands): Add declaration.
12896 * darwin-nat.c (_initialize_darwin_nat): Add declaration.
12897 * dbxread.c (_initialize_dbxread): Add declaration.
12898 * dcache.c (_initialize_dcache): Add declaration.
12899 * disasm-selftests.c (_initialize_disasm_selftests): Add declaration.
12900 * disasm.c (_initialize_disasm): Add declaration.
12901 * dtrace-probe.c (_initialize_dtrace_probe): Add declaration.
12902 * dummy-frame.c (_initialize_dummy_frame): Add declaration.
12903 * dwarf-index-cache.c (_initialize_index_cache): Add declaration.
12904 * dwarf-index-write.c (_initialize_dwarf_index_write): Add declaration.
12905 * dwarf2-frame-tailcall.c (_initialize_tailcall_frame): Add declaration.
12906 * dwarf2-frame.c (_initialize_dwarf2_frame): Add declaration.
12907 * dwarf2expr.c (_initialize_dwarf2expr): Add declaration.
12908 * dwarf2loc.c (_initialize_dwarf2loc): Add declaration.
12909 * dwarf2read.c (_initialize_dwarf2_read): Add declaration.
12910 * elfread.c (_initialize_elfread): Add declaration.
12911 * exec.c (_initialize_exec): Add declaration.
12912 * extension.c (_initialize_extension): Add declaration.
12913 * f-lang.c (_initialize_f_language): Add declaration.
12914 * f-valprint.c (_initialize_f_valprint): Add declaration.
12915 * fbsd-nat.c (_initialize_fbsd_nat): Add declaration.
12916 * fbsd-tdep.c (_initialize_fbsd_tdep): Add declaration.
12917 * filesystem.c (_initialize_filesystem): Add declaration.
12918 * findcmd.c (_initialize_mem_search): Add declaration.
12919 * findvar.c (_initialize_findvar): Add declaration.
12920 * fork-child.c (_initialize_fork_child): Add declaration.
12921 * frame-base.c (_initialize_frame_base): Add declaration.
12922 * frame-unwind.c (_initialize_frame_unwind): Add declaration.
12923 * frame.c (_initialize_frame): Add declaration.
12924 * frv-linux-tdep.c (_initialize_frv_linux_tdep): Add declaration.
12925 * frv-tdep.c (_initialize_frv_tdep): Add declaration.
12926 * ft32-tdep.c (_initialize_ft32_tdep): Add declaration.
12927 * gcore.c (_initialize_gcore): Add declaration.
12928 * gdb-demangle.c (_initialize_gdb_demangle): Add declaration.
12929 * gdb_bfd.c (_initialize_gdb_bfd): Add declaration.
12930 * gdbarch-selftests.c (_initialize_gdbarch_selftests): Add declaration.
12931 * gdbarch.c (_initialize_gdbarch): Add declaration.
12932 * gdbtypes.c (_initialize_gdbtypes): Add declaration.
12933 * gnu-nat.c (_initialize_gnu_nat): Add declaration.
12934 * gnu-v2-abi.c (_initialize_gnu_v2_abi): Add declaration.
12935 * gnu-v3-abi.c (_initialize_gnu_v3_abi): Add declaration.
12936 * go-lang.c (_initialize_go_language): Add declaration.
12937 * go32-nat.c (_initialize_go32_nat): Add declaration.
12938 * guile/guile.c (_initialize_guile): Add declaration.
12939 * h8300-tdep.c (_initialize_h8300_tdep): Add declaration.
12940 * hppa-linux-nat.c (_initialize_hppa_linux_nat): Add declaration.
12941 * hppa-linux-tdep.c (_initialize_hppa_linux_tdep): Add declaration.
12942 * hppa-nbsd-nat.c (_initialize_hppanbsd_nat): Add declaration.
12943 * hppa-nbsd-tdep.c (_initialize_hppanbsd_tdep): Add declaration.
12944 * hppa-obsd-nat.c (_initialize_hppaobsd_nat): Add declaration.
12945 * hppa-obsd-tdep.c (_initialize_hppabsd_tdep): Add declaration.
12946 * hppa-tdep.c (_initialize_hppa_tdep): Add declaration.
12947 * i386-bsd-nat.c (_initialize_i386bsd_nat): Add declaration.
12948 * i386-cygwin-tdep.c (_initialize_i386_cygwin_tdep): Add declaration.
12949 * i386-darwin-nat.c (_initialize_i386_darwin_nat): Add declaration.
12950 * i386-darwin-tdep.c (_initialize_i386_darwin_tdep): Add declaration.
12951 * i386-dicos-tdep.c (_initialize_i386_dicos_tdep): Add declaration.
12952 * i386-fbsd-nat.c (_initialize_i386fbsd_nat): Add declaration.
12953 * i386-fbsd-tdep.c (_initialize_i386fbsd_tdep): Add declaration.
12954 * i386-gnu-nat.c (_initialize_i386gnu_nat): Add declaration.
12955 * i386-gnu-tdep.c (_initialize_i386gnu_tdep): Add declaration.
12956 * i386-go32-tdep.c (_initialize_i386_go32_tdep): Add declaration.
12957 * i386-linux-nat.c (_initialize_i386_linux_nat): Add declaration.
12958 * i386-linux-tdep.c (_initialize_i386_linux_tdep): Add declaration.
12959 * i386-nbsd-nat.c (_initialize_i386nbsd_nat): Add declaration.
12960 * i386-nbsd-tdep.c (_initialize_i386nbsd_tdep): Add declaration.
12961 * i386-nto-tdep.c (_initialize_i386nto_tdep): Add declaration.
12962 * i386-obsd-nat.c (_initialize_i386obsd_nat): Add declaration.
12963 * i386-obsd-tdep.c (_initialize_i386obsd_tdep): Add declaration.
12964 * i386-sol2-nat.c (_initialize_amd64_sol2_nat): Add declaration.
12965 * i386-sol2-tdep.c (_initialize_i386_sol2_tdep): Add declaration.
12966 * i386-tdep.c (_initialize_i386_tdep): Add declaration.
12967 * i386-windows-nat.c (_initialize_i386_windows_nat): Add declaration.
12968 * ia64-libunwind-tdep.c (_initialize_libunwind_frame): Add declaration.
12969 * ia64-linux-nat.c (_initialize_ia64_linux_nat): Add declaration.
12970 * ia64-linux-tdep.c (_initialize_ia64_linux_tdep): Add declaration.
12971 * ia64-tdep.c (_initialize_ia64_tdep): Add declaration.
12972 * ia64-vms-tdep.c (_initialize_ia64_vms_tdep): Add declaration.
12973 * infcall.c (_initialize_infcall): Add declaration.
12974 * infcmd.c (_initialize_infcmd): Add declaration.
12975 * inflow.c (_initialize_inflow): Add declaration.
12976 * infrun.c (_initialize_infrun): Add declaration.
12977 * interps.c (_initialize_interpreter): Add declaration.
12978 * iq2000-tdep.c (_initialize_iq2000_tdep): Add declaration.
12979 * jit.c (_initialize_jit): Add declaration.
12980 * language.c (_initialize_language): Add declaration.
12981 * linux-fork.c (_initialize_linux_fork): Add declaration.
12982 * linux-nat.c (_initialize_linux_nat): Add declaration.
12983 * linux-tdep.c (_initialize_linux_tdep): Add declaration.
12984 * linux-thread-db.c (_initialize_thread_db): Add declaration.
12985 * lm32-tdep.c (_initialize_lm32_tdep): Add declaration.
12986 * m2-lang.c (_initialize_m2_language): Add declaration.
12987 * m32c-tdep.c (_initialize_m32c_tdep): Add declaration.
12988 * m32r-linux-nat.c (_initialize_m32r_linux_nat): Add declaration.
12989 * m32r-linux-tdep.c (_initialize_m32r_linux_tdep): Add declaration.
12990 * m32r-tdep.c (_initialize_m32r_tdep): Add declaration.
12991 * m68hc11-tdep.c (_initialize_m68hc11_tdep): Add declaration.
12992 * m68k-bsd-nat.c (_initialize_m68kbsd_nat): Add declaration.
12993 * m68k-bsd-tdep.c (_initialize_m68kbsd_tdep): Add declaration.
12994 * m68k-linux-nat.c (_initialize_m68k_linux_nat): Add declaration.
12995 * m68k-linux-tdep.c (_initialize_m68k_linux_tdep): Add declaration.
12996 * m68k-tdep.c (_initialize_m68k_tdep): Add declaration.
12997 * machoread.c (_initialize_machoread): Add declaration.
12998 * macrocmd.c (_initialize_macrocmd): Add declaration.
12999 * macroscope.c (_initialize_macroscope): Add declaration.
13000 * maint-test-options.c (_initialize_maint_test_options): Add declaration.
13001 * maint-test-settings.c (_initialize_maint_test_settings): Add declaration.
13002 * maint.c (_initialize_maint_cmds): Add declaration.
13003 * mdebugread.c (_initialize_mdebugread): Add declaration.
13004 * memattr.c (_initialize_mem): Add declaration.
13005 * mep-tdep.c (_initialize_mep_tdep): Add declaration.
13006 * mi/mi-cmd-env.c (_initialize_mi_cmd_env): Add declaration.
13007 * mi/mi-cmds.c (_initialize_mi_cmds): Add declaration.
13008 * mi/mi-interp.c (_initialize_mi_interp): Add declaration.
13009 * mi/mi-main.c (_initialize_mi_main): Add declaration.
13010 * microblaze-linux-tdep.c (_initialize_microblaze_linux_tdep): Add declaration.
13011 * microblaze-tdep.c (_initialize_microblaze_tdep): Add declaration.
13012 * mips-fbsd-nat.c (_initialize_mips_fbsd_nat): Add declaration.
13013 * mips-fbsd-tdep.c (_initialize_mips_fbsd_tdep): Add declaration.
13014 * mips-linux-nat.c (_initialize_mips_linux_nat): Add declaration.
13015 * mips-linux-tdep.c (_initialize_mips_linux_tdep): Add declaration.
13016 * mips-nbsd-nat.c (_initialize_mipsnbsd_nat): Add declaration.
13017 * mips-nbsd-tdep.c (_initialize_mipsnbsd_tdep): Add declaration.
13018 * mips-sde-tdep.c (_initialize_mips_sde_tdep): Add declaration.
13019 * mips-tdep.c (_initialize_mips_tdep): Add declaration.
13020 * mips64-obsd-nat.c (_initialize_mips64obsd_nat): Add declaration.
13021 * mips64-obsd-tdep.c (_initialize_mips64obsd_tdep): Add declaration.
13022 * mipsread.c (_initialize_mipsread): Add declaration.
13023 * mn10300-linux-tdep.c (_initialize_mn10300_linux_tdep): Add declaration.
13024 * mn10300-tdep.c (_initialize_mn10300_tdep): Add declaration.
13025 * moxie-tdep.c (_initialize_moxie_tdep): Add declaration.
13026 * msp430-tdep.c (_initialize_msp430_tdep): Add declaration.
13027 * nds32-tdep.c (_initialize_nds32_tdep): Add declaration.
13028 * nios2-linux-tdep.c (_initialize_nios2_linux_tdep): Add declaration.
13029 * nios2-tdep.c (_initialize_nios2_tdep): Add declaration.
13030 * nto-procfs.c (_initialize_procfs): Add declaration.
13031 * objc-lang.c (_initialize_objc_language): Add declaration.
13032 * observable.c (_initialize_observer): Add declaration.
13033 * opencl-lang.c (_initialize_opencl_language): Add declaration.
13034 * or1k-linux-tdep.c (_initialize_or1k_linux_tdep): Add declaration.
13035 * or1k-tdep.c (_initialize_or1k_tdep): Add declaration.
13036 * osabi.c (_initialize_gdb_osabi): Add declaration.
13037 * osdata.c (_initialize_osdata): Add declaration.
13038 * p-valprint.c (_initialize_pascal_valprint): Add declaration.
13039 * parse.c (_initialize_parse): Add declaration.
13040 * ppc-fbsd-nat.c (_initialize_ppcfbsd_nat): Add declaration.
13041 * ppc-fbsd-tdep.c (_initialize_ppcfbsd_tdep): Add declaration.
13042 * ppc-linux-nat.c (_initialize_ppc_linux_nat): Add declaration.
13043 * ppc-linux-tdep.c (_initialize_ppc_linux_tdep): Add declaration.
13044 * ppc-nbsd-nat.c (_initialize_ppcnbsd_nat): Add declaration.
13045 * ppc-nbsd-tdep.c (_initialize_ppcnbsd_tdep): Add declaration.
13046 * ppc-obsd-nat.c (_initialize_ppcobsd_nat): Add declaration.
13047 * ppc-obsd-tdep.c (_initialize_ppcobsd_tdep): Add declaration.
13048 * printcmd.c (_initialize_printcmd): Add declaration.
13049 * probe.c (_initialize_probe): Add declaration.
13050 * proc-api.c (_initialize_proc_api): Add declaration.
13051 * proc-events.c (_initialize_proc_events): Add declaration.
13052 * proc-service.c (_initialize_proc_service): Add declaration.
13053 * procfs.c (_initialize_procfs): Add declaration.
13054 * producer.c (_initialize_producer): Add declaration.
13055 * psymtab.c (_initialize_psymtab): Add declaration.
13056 * python/python.c (_initialize_python): Add declaration.
13057 * ravenscar-thread.c (_initialize_ravenscar): Add declaration.
13058 * record-btrace.c (_initialize_record_btrace): Add declaration.
13059 * record-full.c (_initialize_record_full): Add declaration.
13060 * record.c (_initialize_record): Add declaration.
13061 * regcache-dump.c (_initialize_regcache_dump): Add declaration.
13062 * regcache.c (_initialize_regcache): Add declaration.
13063 * reggroups.c (_initialize_reggroup): Add declaration.
13064 * remote-notif.c (_initialize_notif): Add declaration.
13065 * remote-sim.c (_initialize_remote_sim): Add declaration.
13066 * remote.c (_initialize_remote): Add declaration.
13067 * reverse.c (_initialize_reverse): Add declaration.
13068 * riscv-fbsd-nat.c (_initialize_riscv_fbsd_nat): Add declaration.
13069 * riscv-fbsd-tdep.c (_initialize_riscv_fbsd_tdep): Add declaration.
13070 * riscv-linux-nat.c (_initialize_riscv_linux_nat): Add declaration.
13071 * riscv-linux-tdep.c (_initialize_riscv_linux_tdep): Add declaration.
13072 * riscv-tdep.c (_initialize_riscv_tdep): Add declaration.
13073 * rl78-tdep.c (_initialize_rl78_tdep): Add declaration.
13074 * rs6000-aix-tdep.c (_initialize_rs6000_aix_tdep): Add declaration.
13075 * rs6000-lynx178-tdep.c (_initialize_rs6000_lynx178_tdep):
13076 Add declaration.
13077 * rs6000-nat.c (_initialize_rs6000_nat): Add declaration.
13078 * rs6000-tdep.c (_initialize_rs6000_tdep): Add declaration.
13079 * run-on-main-thread.c (_initialize_run_on_main_thread): Add declaration.
13080 * rust-exp.y (_initialize_rust_exp): Add declaration.
13081 * rx-tdep.c (_initialize_rx_tdep): Add declaration.
13082 * s12z-tdep.c (_initialize_s12z_tdep): Add declaration.
13083 * s390-linux-nat.c (_initialize_s390_nat): Add declaration.
13084 * s390-linux-tdep.c (_initialize_s390_linux_tdep): Add declaration.
13085 * s390-tdep.c (_initialize_s390_tdep): Add declaration.
13086 * score-tdep.c (_initialize_score_tdep): Add declaration.
13087 * ser-go32.c (_initialize_ser_dos): Add declaration.
13088 * ser-mingw.c (_initialize_ser_windows): Add declaration.
13089 * ser-pipe.c (_initialize_ser_pipe): Add declaration.
13090 * ser-tcp.c (_initialize_ser_tcp): Add declaration.
13091 * ser-uds.c (_initialize_ser_socket): Add declaration.
13092 * ser-unix.c (_initialize_ser_hardwire): Add declaration.
13093 * serial.c (_initialize_serial): Add declaration.
13094 * sh-linux-tdep.c (_initialize_sh_linux_tdep): Add declaration.
13095 * sh-nbsd-nat.c (_initialize_shnbsd_nat): Add declaration.
13096 * sh-nbsd-tdep.c (_initialize_shnbsd_tdep): Add declaration.
13097 * sh-tdep.c (_initialize_sh_tdep): Add declaration.
13098 * skip.c (_initialize_step_skip): Add declaration.
13099 * sol-thread.c (_initialize_sol_thread): Add declaration.
13100 * solib-aix.c (_initialize_solib_aix): Add declaration.
13101 * solib-darwin.c (_initialize_darwin_solib): Add declaration.
13102 * solib-dsbt.c (_initialize_dsbt_solib): Add declaration.
13103 * solib-frv.c (_initialize_frv_solib): Add declaration.
13104 * solib-svr4.c (_initialize_svr4_solib): Add declaration.
13105 * solib-target.c (_initialize_solib_target): Add declaration.
13106 * solib.c (_initialize_solib): Add declaration.
13107 * source-cache.c (_initialize_source_cache): Add declaration.
13108 * source.c (_initialize_source): Add declaration.
13109 * sparc-linux-nat.c (_initialize_sparc_linux_nat): Add declaration.
13110 * sparc-linux-tdep.c (_initialize_sparc_linux_tdep): Add declaration.
13111 * sparc-nat.c (_initialize_sparc_nat): Add declaration.
13112 * sparc-nbsd-nat.c (_initialize_sparcnbsd_nat): Add declaration.
13113 * sparc-nbsd-tdep.c (_initialize_sparcnbsd_tdep): Add declaration.
13114 * sparc-obsd-tdep.c (_initialize_sparc32obsd_tdep): Add declaration.
13115 * sparc-sol2-tdep.c (_initialize_sparc_sol2_tdep): Add declaration.
13116 * sparc-tdep.c (_initialize_sparc_tdep): Add declaration.
13117 * sparc64-fbsd-nat.c (_initialize_sparc64fbsd_nat): Add declaration.
13118 * sparc64-fbsd-tdep.c (_initialize_sparc64fbsd_tdep): Add declaration.
13119 * sparc64-linux-nat.c (_initialize_sparc64_linux_nat): Add declaration.
13120 * sparc64-linux-tdep.c (_initialize_sparc64_linux_tdep): Add declaration.
13121 * sparc64-nat.c (_initialize_sparc64_nat): Add declaration.
13122 * sparc64-nbsd-nat.c (_initialize_sparc64nbsd_nat): Add declaration.
13123 * sparc64-nbsd-tdep.c (_initialize_sparc64nbsd_tdep): Add declaration.
13124 * sparc64-obsd-nat.c (_initialize_sparc64obsd_nat): Add declaration.
13125 * sparc64-obsd-tdep.c (_initialize_sparc64obsd_tdep): Add declaration.
13126 * sparc64-sol2-tdep.c (_initialize_sparc64_sol2_tdep): Add declaration.
13127 * sparc64-tdep.c (_initialize_sparc64_adi_tdep): Add declaration.
13128 * stabsread.c (_initialize_stabsread): Add declaration.
13129 * stack.c (_initialize_stack): Add declaration.
13130 * stap-probe.c (_initialize_stap_probe): Add declaration.
13131 * std-regs.c (_initialize_frame_reg): Add declaration.
13132 * symfile-debug.c (_initialize_symfile_debug): Add declaration.
13133 * symfile-mem.c (_initialize_symfile_mem): Add declaration.
13134 * symfile.c (_initialize_symfile): Add declaration.
13135 * symmisc.c (_initialize_symmisc): Add declaration.
13136 * symtab.c (_initialize_symtab): Add declaration.
13137 * target.c (_initialize_target): Add declaration.
13138 * target-connection.c (_initialize_target_connection): Add
13139 declaration.
13140 * target-dcache.c (_initialize_target_dcache): Add declaration.
13141 * target-descriptions.c (_initialize_target_descriptions): Add declaration.
13142 * thread.c (_initialize_thread): Add declaration.
13143 * tic6x-linux-tdep.c (_initialize_tic6x_linux_tdep): Add declaration.
13144 * tic6x-tdep.c (_initialize_tic6x_tdep): Add declaration.
13145 * tilegx-linux-nat.c (_initialize_tile_linux_nat): Add declaration.
13146 * tilegx-linux-tdep.c (_initialize_tilegx_linux_tdep): Add declaration.
13147 * tilegx-tdep.c (_initialize_tilegx_tdep): Add declaration.
13148 * tracectf.c (_initialize_ctf): Add declaration.
13149 * tracefile-tfile.c (_initialize_tracefile_tfile): Add declaration.
13150 * tracefile.c (_initialize_tracefile): Add declaration.
13151 * tracepoint.c (_initialize_tracepoint): Add declaration.
13152 * tui/tui-hooks.c (_initialize_tui_hooks): Add declaration.
13153 * tui/tui-interp.c (_initialize_tui_interp): Add declaration.
13154 * tui/tui-layout.c (_initialize_tui_layout): Add declaration.
13155 * tui/tui-regs.c (_initialize_tui_regs): Add declaration.
13156 * tui/tui-stack.c (_initialize_tui_stack): Add declaration.
13157 * tui/tui-win.c (_initialize_tui_win): Add declaration.
13158 * tui/tui.c (_initialize_tui): Add declaration.
13159 * typeprint.c (_initialize_typeprint): Add declaration.
13160 * ui-style.c (_initialize_ui_style): Add declaration.
13161 * unittests/array-view-selftests.c (_initialize_array_view_selftests): Add declaration.
13162 * unittests/child-path-selftests.c (_initialize_child_path_selftests): Add declaration.
13163 * unittests/cli-utils-selftests.c (_initialize_cli_utils_selftests): Add declaration.
13164 * unittests/common-utils-selftests.c (_initialize_common_utils_selftests): Add declaration.
13165 * unittests/copy_bitwise-selftests.c (_initialize_copy_bitwise_utils_selftests): Add declaration.
13166 * unittests/environ-selftests.c (_initialize_environ_selftests): Add declaration.
13167 * unittests/filtered_iterator-selftests.c
13168 (_initialize_filtered_iterator_selftests): Add declaration.
13169 * unittests/format_pieces-selftests.c (_initialize_format_pieces_selftests): Add declaration.
13170 * unittests/function-view-selftests.c (_initialize_function_view_selftests): Add declaration.
13171 * unittests/help-doc-selftests.c (_initialize_help_doc_selftests): Add declaration.
13172 * unittests/lookup_name_info-selftests.c (_initialize_lookup_name_info_selftests): Add declaration.
13173 * unittests/main-thread-selftests.c
13174 (_initialize_main_thread_selftests): Add declaration.
13175 * unittests/memory-map-selftests.c (_initialize_memory_map_selftests): Add declaration.
13176 * unittests/memrange-selftests.c (_initialize_memrange_selftests): Add declaration.
13177 * unittests/mkdir-recursive-selftests.c (_initialize_mkdir_recursive_selftests): Add declaration.
13178 * unittests/observable-selftests.c (_initialize_observer_selftest): Add declaration.
13179 * unittests/offset-type-selftests.c (_initialize_offset_type_selftests): Add declaration.
13180 * unittests/optional-selftests.c (_initialize_optional_selftests): Add declaration.
13181 * unittests/parse-connection-spec-selftests.c (_initialize_parse_connection_spec_selftests): Add declaration.
13182 * unittests/rsp-low-selftests.c (_initialize_rsp_low_selftests): Add declaration.
13183 * unittests/scoped_fd-selftests.c (_initialize_scoped_fd_selftests): Add declaration.
13184 * unittests/scoped_mmap-selftests.c (_initialize_scoped_mmap_selftests): Add declaration.
13185 * unittests/scoped_restore-selftests.c (_initialize_scoped_restore_selftests): Add declaration.
13186 * unittests/string_view-selftests.c (_initialize_string_view_selftests): Add declaration.
13187 * unittests/style-selftests.c (_initialize_style_selftest): Add declaration.
13188 * unittests/tracepoint-selftests.c (_initialize_tracepoint_selftests): Add declaration.
13189 * unittests/tui-selftests.c (_initialize_tui_selftest): Add
13190 declaration.
13191 * unittests/unpack-selftests.c (_initialize_unpack_selftests): Add declaration.
13192 * unittests/utils-selftests.c (_initialize_utils_selftests): Add declaration.
13193 * unittests/vec-utils-selftests.c (_initialize_vec_utils_selftests): Add declaration.
13194 * unittests/xml-utils-selftests.c (_initialize_xml_utils): Add declaration.
13195 * user-regs.c (_initialize_user_regs): Add declaration.
13196 * utils.c (_initialize_utils): Add declaration.
13197 * v850-tdep.c (_initialize_v850_tdep): Add declaration.
13198 * valops.c (_initialize_valops): Add declaration.
13199 * valprint.c (_initialize_valprint): Add declaration.
13200 * value.c (_initialize_values): Add declaration.
13201 * varobj.c (_initialize_varobj): Add declaration.
13202 * vax-bsd-nat.c (_initialize_vaxbsd_nat): Add declaration.
13203 * vax-nbsd-tdep.c (_initialize_vaxnbsd_tdep): Add declaration.
13204 * vax-tdep.c (_initialize_vax_tdep): Add declaration.
13205 * windows-nat.c (_initialize_windows_nat): Add declaration.
13206 (_initialize_check_for_gdb_ini): Add declaration.
13207 (_initialize_loadable): Add declaration.
13208 * windows-tdep.c (_initialize_windows_tdep): Add declaration.
13209 * x86-bsd-nat.c (_initialize_x86_bsd_nat): Add declaration.
13210 * x86-linux-nat.c (_initialize_x86_linux_nat): Add declaration.
13211 * xcoffread.c (_initialize_xcoffread): Add declaration.
13212 * xml-support.c (_initialize_xml_support): Add declaration.
13213 * xstormy16-tdep.c (_initialize_xstormy16_tdep): Add declaration.
13214 * xtensa-linux-nat.c (_initialize_xtensa_linux_nat): Add declaration.
13215 * xtensa-linux-tdep.c (_initialize_xtensa_linux_tdep): Add declaration.
13216 * xtensa-tdep.c (_initialize_xtensa_tdep): Add declaration.
13217
e2de1eec
SM
132182020-01-13 Simon Marchi <simon.marchi@polymtl.ca>
13219
13220 * regformats/regdat.sh: Generate declaration for init function.
13221
e0037b4c
SM
132222020-01-13 Simon Marchi <simon.marchi@polymtl.ca>
13223
13224 * remote-sim.c (next_pid, INITIAL_PID, sim_inferior_data): Move
13225 up.
13226 (gdbsim_target) <get_inferior_data_by_ptid, resume_one_inferior,
13227 close_one_inferior>: New methods.
13228 (get_sim_inferior_data_by_ptid): Move to gdbsim_target,
13229 pass down target to find_inferior_pid.
13230 (gdbsim_target::fetch_registers, gdbsim_target::store_registers):
13231 Pass down target to find_inferior_ptid.
13232 (gdbsim_target::create_inferior): Pass down target to
13233 add_thread_silent.
13234 (gdbsim_close_inferior): Move to gdbsim_close_inferior, pass
13235 target down to find_inferior_ptid and switch_to_thread.
13236 (gdbsim_target::close): Update to call close_one_inferior.
13237 (struct resume_data): Remove.
13238 (gdbsim_resume_inferior): Move to gdbsim_target. Take arguments
13239 directly, rather than through a void pointer.
13240 (gdbsim_target::resume): Update to call resume_one_inferior.
13241
58920b5b
SM
132422020-01-12 Simon Marchi <simon.marchi@polymtl.ca>
13243
13244 * gdbsupport/gdb_wait.c: Include gdb_wait.h.
13245
4ec89149
PA
132462020-01-12 Pedro Alves <palves@redhat.com>
13247
13248 * bsd-kvm.c (bsd_kvm_target::close): Call exit_inferior_silent
13249 directly for the current inferior instead of
13250 discard_all_inferiors.
13251 (discard_all_inferiors): Delete.
13252
7c392d1d
TT
132532020-01-11 Tom Tromey <tom@tromey.com>
13254
13255 * tui/tui-wingeneral.c (box_win): Check cli_styling.
13256 * tui/tui-winsource.c (tui_source_window_base::refill): Use
13257 deprecated_safe_get_selected_frame.
13258
d9ebdab7
TBA
132592020-01-10 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
13260
13261 * inferior.c (print_inferior): Switch inferior before printing it.
13262
f3c469b9
PA
132632020-01-10 Aleksandar Paunovic <aleksandar.paunovic@intel.com>
13264 Pedro Alves <palves@redhat.com>
13265
13266 * progspace-and-thread.c (switch_to_program_space_and_thread):
13267 Assert there's an inferior for PSPACE. Use
13268 switch_to_inferior_no_thread to switch the inferior too.
13269 * progspace.c (program_space::~program_space): Call
13270 clear_symtab_users here, with SYMFILE_DEFER_BP_RESET.
13271 (program_space::free_all_objfiles): Don't call clear_symtab_users
13272 here.
13273 * symfile.c (symbol_file_clear): Call clear_symtab_users here.
13274
65c574f6
PA
132752020-01-10 Pedro Alves <palves@redhat.com>
13276
13277 * NEWS: Mention multi-target debugging, "info connections", and
13278 "add-inferior -no-connection".
13279
2f4fcf00
PA
132802020-01-10 Pedro Alves <palves@redhat.com>
13281
13282 * infrun.c: Include "target-connection.h".
13283 (check_multi_target_resumption): New.
13284 (proceed): Call it.
13285 * target-connection.c (make_target_connection_string): Make
13286 extern.
13287 * target-connection.h (make_target_connection_string): Declare.
13288
121b3efd
PA
132892020-01-10 Pedro Alves <palves@redhat.com>
13290
13291 * Makefile.in (COMMON_SFILES): Add target-connection.c.
13292 * inferior.c (uiout_field_connection): New function.
13293 (print_inferior): Add new "connection-id" column.
13294 (add_inferior_command): Show connection number/string of added
13295 inferior.
13296 * process-stratum-target.h
13297 (process_stratum_target::connection_string): New virtual method.
13298 (process_stratum_target::connection_number): New field.
13299 * remote.c (remote_target::connection_string): New override.
13300 * target-connection.c: New file.
13301 * target-connection.h: New file.
13302 * target.c (decref_target): Remove process_stratum targets from
13303 the connection list.
13304 (target_stack::push): Add process_stratum targets to the
13305 connection list.
13306
4f837581
PA
133072020-01-10 Pedro Alves <palves@redhat.com>
13308
13309 Revert:
13310 2016-04-12 Pedro Alves <palves@redhat.com>
13311 * serial.c (serial_open, serial_fdopen_ops, do_serial_close):
13312 Remove references to name.
13313 * serial.h (struct serial) <name>: Delete.
13314
f4ec508e
PA
133152020-01-10 Pedro Alves <palves@redhat.com>
13316
13317 * gdbarch-selftests.c (register_to_value_test): Remove "target
13318 already pushed" check.
13319
5b6d1e4f
PA
133202020-01-10 Pedro Alves <palves@redhat.com>
13321 John Baldwin <jhb@FreeBSD.org>
13322
13323 * aarch64-linux-nat.c
13324 (aarch64_linux_nat_target::thread_architecture): Adjust.
13325 * ada-tasks.c (print_ada_task_info): Adjust find_thread_ptid call.
13326 (task_command_1): Likewise.
13327 * aix-thread.c (sync_threadlists, aix_thread_target::resume)
13328 (aix_thread_target::wait, aix_thread_target::fetch_registers)
13329 (aix_thread_target::store_registers)
13330 (aix_thread_target::thread_alive): Adjust.
13331 * amd64-fbsd-tdep.c: Include "inferior.h".
13332 (amd64fbsd_get_thread_local_address): Pass down target.
13333 * amd64-linux-nat.c (ps_get_thread_area): Use ps_prochandle
13334 thread's gdbarch instead of target_gdbarch.
13335 * break-catch-sig.c (signal_catchpoint_print_it): Adjust call to
13336 get_last_target_status.
13337 * break-catch-syscall.c (print_it_catch_syscall): Likewise.
13338 * breakpoint.c (breakpoints_should_be_inserted_now): Consider all
13339 inferiors.
13340 (update_inserted_breakpoint_locations): Skip if inferiors with no
13341 execution.
13342 (update_global_location_list): When handling moribund locations,
13343 find representative inferior for location's pspace, and use thread
13344 count of its process_stratum target.
13345 * bsd-kvm.c (bsd_kvm_target_open): Pass target down.
13346 * bsd-uthread.c (bsd_uthread_target::wait): Use
13347 as_process_stratum_target and adjust thread_change_ptid and
13348 add_thread calls.
13349 (bsd_uthread_target::update_thread_list): Use
13350 as_process_stratum_target and adjust find_thread_ptid,
13351 thread_change_ptid and add_thread calls.
13352 * btrace.c (maint_btrace_packet_history_cmd): Adjust
13353 find_thread_ptid call.
13354 * corelow.c (add_to_thread_list): Adjust add_thread call.
13355 (core_target_open): Adjust add_thread_silent and thread_count
13356 calls.
13357 (core_target::pid_to_str): Adjust find_inferior_ptid call.
13358 * ctf.c (ctf_target_open): Adjust add_thread_silent call.
13359 * event-top.c (async_disconnect): Pop targets from all inferiors.
13360 * exec.c (add_target_sections): Push exec target on all inferiors
13361 sharing the program space.
13362 (remove_target_sections): Remove the exec target from all
13363 inferiors sharing the program space.
13364 (exec_on_vfork): New.
13365 * exec.h (exec_on_vfork): Declare.
13366 * fbsd-nat.c (fbsd_add_threads): Add fbsd_nat_target parameter.
13367 Pass it down.
13368 (fbsd_nat_target::update_thread_list): Adjust.
13369 (fbsd_nat_target::resume): Adjust.
13370 (fbsd_handle_debug_trap): Add fbsd_nat_target parameter. Pass it
13371 down.
13372 (fbsd_nat_target::wait, fbsd_nat_target::post_attach): Adjust.
13373 * fbsd-tdep.c (fbsd_corefile_thread): Adjust
13374 get_thread_arch_regcache call.
13375 * fork-child.c (gdb_startup_inferior): Pass target down to
13376 startup_inferior and set_executing.
13377 * gdbthread.h (struct process_stratum_target): Forward declare.
13378 (add_thread, add_thread_silent, add_thread_with_info)
13379 (in_thread_list): Add process_stratum_target parameter.
13380 (find_thread_ptid(inferior*, ptid_t)): New overload.
13381 (find_thread_ptid, thread_change_ptid): Add process_stratum_target
13382 parameter.
13383 (all_threads()): Delete overload.
13384 (all_threads, all_non_exited_threads): Add process_stratum_target
13385 parameter.
13386 (all_threads_safe): Use brace initialization.
13387 (thread_count): Add process_stratum_target parameter.
13388 (set_resumed, set_running, set_stop_requested, set_executing)
13389 (threads_are_executing, finish_thread_state): Add
13390 process_stratum_target parameter.
13391 (switch_to_thread): Use is_current_thread.
13392 * i386-fbsd-tdep.c: Include "inferior.h".
13393 (i386fbsd_get_thread_local_address): Pass down target.
13394 * i386-linux-nat.c (i386_linux_nat_target::low_resume): Adjust.
13395 * inf-child.c (inf_child_target::maybe_unpush_target): Remove
13396 have_inferiors check.
13397 * inf-ptrace.c (inf_ptrace_target::create_inferior)
13398 (inf_ptrace_target::attach): Adjust.
13399 * infcall.c (run_inferior_call): Adjust.
13400 * infcmd.c (run_command_1): Pass target to
13401 scoped_finish_thread_state.
13402 (proceed_thread_callback): Skip inferiors with no execution.
13403 (continue_command): Rename 'all_threads' local to avoid hiding
13404 'all_threads' function. Adjust get_last_target_status call.
13405 (prepare_one_step): Adjust set_running call.
13406 (signal_command): Use user_visible_resume_target. Compare thread
13407 pointers instead of inferior_ptid.
13408 (info_program_command): Adjust to pass down target.
13409 (attach_command): Mark target's 'thread_executing' flag.
13410 (stop_current_target_threads_ns): New, factored out from ...
13411 (interrupt_target_1): ... this. Switch inferior before making
13412 target calls.
13413 * inferior-iter.h
13414 (struct all_inferiors_iterator, struct all_inferiors_range)
13415 (struct all_inferiors_safe_range)
13416 (struct all_non_exited_inferiors_range): Filter on
13417 process_stratum_target too. Remove explicit.
13418 * inferior.c (inferior::inferior): Push dummy target on target
13419 stack.
13420 (find_inferior_pid, find_inferior_ptid, number_of_live_inferiors):
13421 Add process_stratum_target parameter, and pass it down.
13422 (have_live_inferiors): Adjust.
13423 (switch_to_inferior_and_push_target): New.
13424 (add_inferior_command, clone_inferior_command): Handle
13425 "-no-connection" parameter. Use
13426 switch_to_inferior_and_push_target.
13427 (_initialize_inferior): Mention "-no-connection" option in
13428 the help of "add-inferior" and "clone-inferior" commands.
13429 * inferior.h: Include "process-stratum-target.h".
13430 (interrupt_target_1): Use bool.
13431 (struct inferior) <push_target, unpush_target, target_is_pushed,
13432 find_target_beneath, top_target, process_target, target_at,
13433 m_stack>: New.
13434 (discard_all_inferiors): Delete.
13435 (find_inferior_pid, find_inferior_ptid, number_of_live_inferiors)
13436 (all_inferiors, all_non_exited_inferiors): Add
13437 process_stratum_target parameter.
13438 * infrun.c: Include "gdb_select.h" and <unordered_map>.
13439 (target_last_proc_target): New global.
13440 (follow_fork_inferior): Push target on new inferior. Pass target
13441 to add_thread_silent. Call exec_on_vfork. Handle target's
13442 reference count.
13443 (follow_fork): Adjust get_last_target_status call. Also consider
13444 target.
13445 (follow_exec): Push target on new inferior.
13446 (struct execution_control_state) <target>: New field.
13447 (user_visible_resume_target): New.
13448 (do_target_resume): Call target_async.
13449 (resume_1): Set target's threads_executing flag. Consider resume
13450 target.
13451 (commit_resume_all_targets): New.
13452 (proceed): Also consider resume target. Skip threads of inferiors
13453 with no execution. Commit resumtion in all targets.
13454 (start_remote): Pass current inferior to wait_for_inferior.
13455 (infrun_thread_stop_requested): Consider target as well. Pass
13456 thread_info pointer to clear_inline_frame_state instead of ptid.
13457 (infrun_thread_thread_exit): Consider target as well.
13458 (random_pending_event_thread): New inferior parameter. Use it.
13459 (do_target_wait): Rename to ...
13460 (do_target_wait_1): ... this. Add inferior parameter, and pass it
13461 down.
13462 (threads_are_resumed_pending_p, do_target_wait): New.
13463 (prepare_for_detach): Adjust calls.
13464 (wait_for_inferior): New inferior parameter. Handle it. Use
13465 do_target_wait_1 instead of do_target_wait.
13466 (fetch_inferior_event): Adjust. Switch to representative
13467 inferior. Pass target down.
13468 (set_last_target_status): Add process_stratum_target parameter.
13469 Save target in global.
13470 (get_last_target_status): Add process_stratum_target parameter and
13471 handle it.
13472 (nullify_last_target_wait_ptid): Clear 'target_last_proc_target'.
13473 (context_switch): Check inferior_ptid == null_ptid before calling
13474 inferior_thread().
13475 (get_inferior_stop_soon): Pass down target.
13476 (wait_one): Rename to ...
13477 (poll_one_curr_target): ... this.
13478 (struct wait_one_event): New.
13479 (wait_one): New.
13480 (stop_all_threads): Adjust.
13481 (handle_no_resumed, handle_inferior_event): Adjust to consider the
13482 event's target.
13483 (switch_back_to_stepped_thread): Also consider target.
13484 (print_stop_event): Update.
13485 (normal_stop): Update. Also consider the resume target.
13486 * infrun.h (wait_for_inferior): Remove declaration.
13487 (user_visible_resume_target): New declaration.
13488 (get_last_target_status, set_last_target_status): New
13489 process_stratum_target parameter.
13490 * inline-frame.c (clear_inline_frame_state(ptid_t)): Add
13491 process_stratum_target parameter, and use it.
13492 (clear_inline_frame_state (thread_info*)): New.
13493 * inline-frame.c (clear_inline_frame_state(ptid_t)): Add
13494 process_stratum_target parameter.
13495 (clear_inline_frame_state (thread_info*)): Declare.
13496 * linux-fork.c (delete_checkpoint_command): Pass target down to
13497 find_thread_ptid.
13498 (checkpoint_command): Adjust.
13499 * linux-nat.c (linux_nat_target::follow_fork): Switch to thread
13500 instead of just tweaking inferior_ptid.
13501 (linux_nat_switch_fork): Pass target down to thread_change_ptid.
13502 (exit_lwp): Pass target down to find_thread_ptid.
13503 (attach_proc_task_lwp_callback): Pass target down to
13504 add_thread/set_running/set_executing.
13505 (linux_nat_target::attach): Pass target down to
13506 thread_change_ptid.
13507 (get_detach_signal): Pass target down to find_thread_ptid.
13508 Consider last target status's target.
13509 (linux_resume_one_lwp_throw, resume_lwp)
13510 (linux_handle_syscall_trap, linux_handle_extended_wait, wait_lwp)
13511 (stop_wait_callback, save_stop_reason, linux_nat_filter_event)
13512 (linux_nat_wait_1, resume_stopped_resumed_lwps): Pass target down.
13513 (linux_nat_target::async_wait_fd): New.
13514 (linux_nat_stop_lwp, linux_nat_target::thread_address_space): Pass
13515 target down.
13516 * linux-nat.h (linux_nat_target::async_wait_fd): Declare.
13517 * linux-tdep.c (get_thread_arch_regcache): Pass target down.
13518 * linux-thread-db.c (struct thread_db_info::process_target): New
13519 field.
13520 (add_thread_db_info): Save target.
13521 (get_thread_db_info): New process_stratum_target parameter. Also
13522 match target.
13523 (delete_thread_db_info): New process_stratum_target parameter.
13524 Also match target.
13525 (thread_from_lwp): Adjust to pass down target.
13526 (thread_db_notice_clone): Pass down target.
13527 (check_thread_db_callback): Pass down target.
13528 (try_thread_db_load_1): Always push the thread_db target.
13529 (try_thread_db_load, record_thread): Pass target down.
13530 (thread_db_target::detach): Pass target down. Always unpush the
13531 thread_db target.
13532 (thread_db_target::wait, thread_db_target::mourn_inferior): Pass
13533 target down. Always unpush the thread_db target.
13534 (find_new_threads_callback, thread_db_find_new_threads_2)
13535 (thread_db_target::update_thread_list): Pass target down.
13536 (thread_db_target::pid_to_str): Pass current inferior down.
13537 (thread_db_target::get_thread_local_address): Pass target down.
13538 (thread_db_target::resume, maintenance_check_libthread_db): Pass
13539 target down.
13540 * nto-procfs.c (nto_procfs_target::update_thread_list): Adjust.
13541 * procfs.c (procfs_target::procfs_init_inferior): Declare.
13542 (proc_set_current_signal, do_attach, procfs_target::wait): Adjust.
13543 (procfs_init_inferior): Rename to ...
13544 (procfs_target::procfs_init_inferior): ... this and adjust.
13545 (procfs_target::create_inferior, procfs_notice_thread)
13546 (procfs_do_thread_registers): Adjust.
13547 * ppc-fbsd-tdep.c: Include "inferior.h".
13548 (ppcfbsd_get_thread_local_address): Pass down target.
13549 * proc-service.c (ps_xfer_memory): Switch current inferior and
13550 program space as well.
13551 (get_ps_regcache): Pass target down.
13552 * process-stratum-target.c
13553 (process_stratum_target::thread_address_space)
13554 (process_stratum_target::thread_architecture): Pass target down.
13555 * process-stratum-target.h
13556 (process_stratum_target::threads_executing): New field.
13557 (as_process_stratum_target): New.
13558 * ravenscar-thread.c
13559 (ravenscar_thread_target::update_inferior_ptid): Pass target down.
13560 (ravenscar_thread_target::wait, ravenscar_add_thread): Pass target
13561 down.
13562 * record-btrace.c (record_btrace_target::info_record): Adjust.
13563 (record_btrace_target::record_method)
13564 (record_btrace_target::record_is_replaying)
13565 (record_btrace_target::fetch_registers)
13566 (get_thread_current_frame_id, record_btrace_target::resume)
13567 (record_btrace_target::wait, record_btrace_target::stop): Pass
13568 target down.
13569 * record-full.c (record_full_wait_1): Switch to event thread.
13570 Pass target down.
13571 * regcache.c (regcache::regcache)
13572 (get_thread_arch_aspace_regcache, get_thread_arch_regcache): Add
13573 process_stratum_target parameter and handle it.
13574 (current_thread_target): New global.
13575 (get_thread_regcache): Add process_stratum_target parameter and
13576 handle it. Switch inferior before calling target method.
13577 (get_thread_regcache): Pass target down.
13578 (get_thread_regcache_for_ptid): Pass target down.
13579 (registers_changed_ptid): Add process_stratum_target parameter and
13580 handle it.
13581 (registers_changed_thread, registers_changed): Pass target down.
13582 (test_get_thread_arch_aspace_regcache): New.
13583 (current_regcache_test): Define a couple local test_target_ops
13584 instances and use them for testing.
13585 (readwrite_regcache): Pass process_stratum_target parameter.
13586 (cooked_read_test, cooked_write_test): Pass mock_target down.
13587 * regcache.h (get_thread_regcache, get_thread_arch_regcache)
13588 (get_thread_arch_aspace_regcache): Add process_stratum_target
13589 parameter.
13590 (regcache::target): New method.
13591 (regcache::regcache, regcache::get_thread_arch_aspace_regcache)
13592 (regcache::registers_changed_ptid): Add process_stratum_target
13593 parameter.
13594 (regcache::m_target): New field.
13595 (registers_changed_ptid): Add process_stratum_target parameter.
13596 * remote.c (remote_state::supports_vCont_probed): New field.
13597 (remote_target::async_wait_fd): New method.
13598 (remote_unpush_and_throw): Add remote_target parameter.
13599 (get_current_remote_target): Adjust.
13600 (remote_target::remote_add_inferior): Push target.
13601 (remote_target::remote_add_thread)
13602 (remote_target::remote_notice_new_inferior)
13603 (get_remote_thread_info): Pass target down.
13604 (remote_target::update_thread_list): Skip threads of inferiors
13605 bound to other targets. (remote_target::close): Don't discard
13606 inferiors. (remote_target::add_current_inferior_and_thread)
13607 (remote_target::process_initial_stop_replies)
13608 (remote_target::start_remote)
13609 (remote_target::remote_serial_quit_handler): Pass down target.
13610 (remote_target::remote_unpush_target): New remote_target
13611 parameter. Unpush the target from all inferiors.
13612 (remote_target::remote_unpush_and_throw): New remote_target
13613 parameter. Pass it down.
13614 (remote_target::open_1): Check whether the current inferior has
13615 execution instead of checking whether any inferior is live. Pass
13616 target down.
13617 (remote_target::remote_detach_1): Pass down target. Use
13618 remote_unpush_target.
13619 (extended_remote_target::attach): Pass down target.
13620 (remote_target::remote_vcont_probe): Set supports_vCont_probed.
13621 (remote_target::append_resumption): Pass down target.
13622 (remote_target::append_pending_thread_resumptions)
13623 (remote_target::remote_resume_with_hc, remote_target::resume)
13624 (remote_target::commit_resume): Pass down target.
13625 (remote_target::remote_stop_ns): Check supports_vCont_probed.
13626 (remote_target::interrupt_query)
13627 (remote_target::remove_new_fork_children)
13628 (remote_target::check_pending_events_prevent_wildcard_vcont)
13629 (remote_target::remote_parse_stop_reply)
13630 (remote_target::process_stop_reply): Pass down target.
13631 (first_remote_resumed_thread): New remote_target parameter. Pass
13632 it down.
13633 (remote_target::wait_as): Pass down target.
13634 (unpush_and_perror): New remote_target parameter. Pass it down.
13635 (remote_target::readchar, remote_target::remote_serial_write)
13636 (remote_target::getpkt_or_notif_sane_1)
13637 (remote_target::kill_new_fork_children, remote_target::kill): Pass
13638 down target.
13639 (remote_target::mourn_inferior): Pass down target. Use
13640 remote_unpush_target.
13641 (remote_target::core_of_thread)
13642 (remote_target::remote_btrace_maybe_reopen): Pass down target.
13643 (remote_target::pid_to_exec_file)
13644 (remote_target::thread_handle_to_thread_info): Pass down target.
13645 (remote_target::async_wait_fd): New.
13646 * riscv-fbsd-tdep.c: Include "inferior.h".
13647 (riscv_fbsd_get_thread_local_address): Pass down target.
13648 * sol2-tdep.c (sol2_core_pid_to_str): Pass down target.
13649 * sol-thread.c (sol_thread_target::wait, ps_lgetregs, ps_lsetregs)
13650 (ps_lgetfpregs, ps_lsetfpregs, sol_update_thread_list_callback):
13651 Adjust.
13652 * solib-spu.c (spu_skip_standalone_loader): Pass down target.
13653 * solib-svr4.c (enable_break): Pass down target.
13654 * spu-multiarch.c (parse_spufs_run): Pass down target.
13655 * spu-tdep.c (spu2ppu_sniffer): Pass down target.
13656 * target-delegates.c: Regenerate.
13657 * target.c (g_target_stack): Delete.
13658 (current_top_target): Return the current inferior's top target.
13659 (target_has_execution_1): Refer to the passed-in inferior's top
13660 target.
13661 (target_supports_terminal_ours): Check whether the initial
13662 inferior was already created.
13663 (decref_target): New.
13664 (target_stack::push): Incref/decref the target.
13665 (push_target, push_target, unpush_target): Adjust.
13666 (target_stack::unpush): Defref target.
13667 (target_is_pushed): Return bool. Adjust to refer to the current
13668 inferior's target stack.
13669 (dispose_inferior): Delete, and inline parts ...
13670 (target_preopen): ... here. Only dispose of the current inferior.
13671 (target_detach): Hold strong target reference while detaching.
13672 Pass target down.
13673 (target_thread_name): Add assertion.
13674 (target_resume): Pass down target.
13675 (target_ops::beneath, find_target_at): Adjust to refer to the
13676 current inferior's target stack.
13677 (get_dummy_target): New.
13678 (target_pass_ctrlc): Pass the Ctrl-C to the first inferior that
13679 has a thread running.
13680 (initialize_targets): Rename to ...
13681 (_initialize_target): ... this.
13682 * target.h: Include "gdbsupport/refcounted-object.h".
13683 (struct target_ops): Inherit refcounted_object.
13684 (target_ops::shortname, target_ops::longname): Make const.
13685 (target_ops::async_wait_fd): New method.
13686 (decref_target): Declare.
13687 (struct target_ops_ref_policy): New.
13688 (target_ops_ref): New typedef.
13689 (get_dummy_target): Declare function.
13690 (target_is_pushed): Return bool.
13691 * thread-iter.c (all_matching_threads_iterator::m_inf_matches)
13692 (all_matching_threads_iterator::all_matching_threads_iterator):
13693 Handle filter target.
13694 * thread-iter.h (struct all_matching_threads_iterator, struct
13695 all_matching_threads_range, class all_non_exited_threads_range):
13696 Filter by target too. Remove explicit.
13697 * thread.c (threads_executing): Delete.
13698 (inferior_thread): Pass down current inferior.
13699 (clear_thread_inferior_resources): Pass down thread pointer
13700 instead of ptid_t.
13701 (add_thread_silent, add_thread_with_info, add_thread): Add
13702 process_stratum_target parameter. Use it for thread and inferior
13703 searches.
13704 (is_current_thread): New.
13705 (thread_info::deletable): Use it.
13706 (find_thread_ptid, thread_count, in_thread_list)
13707 (thread_change_ptid, set_resumed, set_running): New
13708 process_stratum_target parameter. Pass it down.
13709 (set_executing): New process_stratum_target parameter. Pass it
13710 down. Adjust reference to 'threads_executing'.
13711 (threads_are_executing): New process_stratum_target parameter.
13712 Adjust reference to 'threads_executing'.
13713 (set_stop_requested, finish_thread_state): New
13714 process_stratum_target parameter. Pass it down.
13715 (switch_to_thread): Also match inferior.
13716 (switch_to_thread): New process_stratum_target parameter. Pass it
13717 down.
13718 (update_threads_executing): Reimplement.
13719 * top.c (quit_force): Pop targets from all inferior.
13720 (gdb_init): Don't call initialize_targets.
13721 * windows-nat.c (windows_nat_target) <get_windows_debug_event>:
13722 Declare.
13723 (windows_add_thread, windows_delete_thread): Adjust.
13724 (get_windows_debug_event): Rename to ...
13725 (windows_nat_target::get_windows_debug_event): ... this. Adjust.
13726 * tracefile-tfile.c (tfile_target_open): Pass down target.
13727 * gdbsupport/common-gdbthread.h (struct process_stratum_target):
13728 Forward declare.
13729 (switch_to_thread): Add process_stratum_target parameter.
13730 * mi/mi-interp.c (mi_on_resume_1): Add process_stratum_target
13731 parameter. Use it.
13732 (mi_on_resume): Pass target down.
13733 * nat/fork-inferior.c (startup_inferior): Add
13734 process_stratum_target parameter. Pass it down.
13735 * nat/fork-inferior.h (startup_inferior): Add
13736 process_stratum_target parameter.
13737 * python/py-threadevent.c (py_get_event_thread): Pass target down.
13738
75c6c844
PA
137392020-01-10 Pedro Alves <palves@redhat.com>
13740
13741 * remote.c (remote_target::start_remote): Don't set inferior_ptid
13742 directly. Instead find the first thread in the thread list and
13743 use switch_to_thread.
13744
78f2c40a
PA
137452020-01-10 Pedro Alves <palves@redhat.com>
13746
13747 * remote.c (remote_target::remote_add_inferior): Don't bind a
13748 process to the current inferior if the current inferior is already
13749 bound to a process.
13750
e7af6c70
TBA
137512020-01-10 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
13752 Pedro Alves <palves@redhat.com>
13753
13754 * remote.c (remote_target::remote_parse_stop_reply) <W/X packets>:
13755 If no process is specified, return null_ptid instead of
13756 inferior_ptid.
13757 (remote_target::wait_as): Handle TARGET_WAITKIND_EXITED /
13758 TARGET_WAITKIND_SIGNALLED with no pid.
13759
31ba933e
PA
137602020-01-10 Pedro Alves <palves@redhat.com>
13761
13762 * remote.c (first_remote_resumed_thread): New.
13763 (remote_target::wait_as): Use it as default event_ptid instead of
13764 inferior_ptid.
13765
735fc2ca
PA
137662020-01-10 Pedro Alves <palves@redhat.com>
13767
13768 * infrun.c (handle_no_resumed): Use all_non_exited_inferiors.
13769
c17e02e1
PA
137702020-01-10 Pedro Alves <palves@redhat.com>
13771
13772 * tracefile-tfile.c (tfile_target::close): Assert that trace_fd is
13773 not -1.
13774
ab1ddbcf
PA
137752020-01-10 Pedro Alves <palves@redhat.com>
13776
13777 * break-catch-sig.c (signal_catchpoint_print_it): Don't pass a
13778 ptid to get_last_target_status.
13779 * break-catch-syscall.c (print_it_catch_syscall): Don't pass a
13780 ptid to get_last_target_status.
13781 * infcmd.c (continue_command): Don't pass a target_waitstatus to
13782 get_last_target_status.
13783 (info_program_command): Don't pass a target_waitstatus to
13784 get_last_target_status.
13785 * infrun.c (init_wait_for_inferior): Use
13786 nullify_last_target_wait_ptid.
13787 (get_last_target_status): Handle nullptr arguments.
13788 (nullify_last_target_wait_ptid): Clear target_last_waitstatus.
13789 (print_stop_event): Don't pass a ptid to get_last_target_status.
13790 (normal_stop): Don't pass a ptid to get_last_target_status.
13791 * infrun.h (get_last_target_status, set_last_target_status): Move
13792 comments here and update.
13793 (nullify_last_target_wait_ptid): Declare.
13794 * linux-fork.c (fork_load_infrun_state): Remove local extern
13795 declaration of nullify_last_target_wait_ptid.
13796 * linux-nat.c (get_detach_signal): Don't pass a target_waitstatus
13797 to get_last_target_status.
13798
f3f8ece4
PA
137992020-01-10 Pedro Alves <palves@redhat.com>
13800
13801 * gdbthread.h (scoped_restore_current_thread)
13802 <dont_restore, restore, m_dont_restore>: Declare.
13803 * thread.c (thread_alive): Add assertion. Return bool.
13804 (switch_to_thread_if_alive): New.
13805 (prune_threads): Switch inferior/thread.
13806 (print_thread_info_1): Switch thread before calling target methods.
13807 (scoped_restore_current_thread::restore): New, factored out from
13808 ...
13809 (scoped_restore_current_thread::~scoped_restore_current_thread):
13810 ... this.
13811 (scoped_restore_current_thread::scoped_restore_current_thread):
13812 Add assertion.
13813 (thread_apply_all_command, thread_select): Use
13814 switch_to_thread_if_alive.
13815 * infrun.c (proceed, restart_threads, handle_signal_stop)
13816 (switch_back_to_stepped_thread): Switch current thread before
13817 calling target methods.
13818
db2d40f7
PA
138192020-01-10 Pedro Alves <palves@redhat.com>
13820
13821 * inferior.c (switch_to_inferior_no_thread): New function,
13822 factored out from ...
13823 (inferior_command): ... here.
13824 * inferior.h (switch_to_inferior_no_thread): Declare.
13825 * mi/mi-main.c (run_one_inferior): Use
13826 switch_to_inferior_no_thread.
13827
bd420a2d
PA
138282020-01-10 Pedro Alves <palves@redhat.com>
13829
13830 * infcmd.c (kill_command): Remove dead code.
13831
ddf5db90
PA
138322020-01-10 Pedro Alves <palves@redhat.com>
13833
13834 * remote.c (remote_target::mourn_inferior): No longer check
13835 whether the target is running.
13836
5018ce90
PA
138372020-01-10 Pedro Alves <palves@redhat.com>
13838
13839 * corelow.c (core_target::has_execution): Change parameter type to
13840 inferior pointer.
13841 * inferior.c (number_of_live_inferiors): Use
13842 inferior::has_execution instead of target_has_execution_1.
13843 * inferior.h (inferior::has_execution): New.
13844 * linux-thread-db.c (thread_db_target::update_thread_list): Use
13845 inferior::has_execution instead of target_has_execution_1.
13846 * process-stratum-target.c
13847 (process_stratum_target::has_execution): Change parameter type to
13848 inferior pointer. Check the inferior's PID instead of
13849 inferior_ptid.
13850 * process-stratum-target.h
13851 (process_stratum_target::has_execution): Change parameter type to
13852 inferior pointer.
13853 * record-full.c (record_full_core_target::has_execution): Change
13854 parameter type to inferior pointer.
13855 * target.c (target_has_execution_1): Change parameter type to
13856 inferior pointer.
13857 (target_has_execution_current): Adjust.
13858 * target.h (target_ops::has_execution): Change parameter type to
13859 inferior pointer.
13860 (target_has_execution_1): Change parameter type to inferior
13861 pointer. Change return type to bool.
13862 * tracefile.h (tracefile_target::has_execution): Change parameter
13863 type to inferior pointer.
13864
74375d18
PA
138652020-01-10 Pedro Alves <palves@redhat.com>
13866
13867 * exceptions.c (print_flush): Remove current_top_target() check.
13868
acdf84a6
PA
138692020-01-10 Pedro Alves <palves@redhat.com>
13870
13871 * remote.c (show_remote_exec_file): Show the current inferior's
13872 exec-file instead of the command variable's value.
13873
ec506636
PA
138742020-01-10 Pedro Alves <palves@redhat.com>
13875
13876 * record-full.c (record_full_resume_ptid): New global.
13877 (record_full_target::resume): Set it.
13878 (record_full_wait_1): Use record_full_resume_ptid instead of
13879 inferior_ptid.
13880
873657b9
PA
138812020-01-10 Pedro Alves <palves@redhat.com>
13882
13883 * gdbthread.h (scoped_restore_current_thread)
13884 <dont_restore, restore, m_dont_restore>: Declare.
13885 * thread.c (thread_alive): Add assertion. Return bool.
13886 (switch_to_thread_if_alive): New.
13887 (prune_threads): Switch inferior/thread.
13888 (print_thread_info_1): Switch thread before calling target methods.
13889 (scoped_restore_current_thread::restore): New, factored out from
13890 ...
13891 (scoped_restore_current_thread::~scoped_restore_current_thread):
13892 ... this.
13893 (scoped_restore_current_thread::scoped_restore_current_thread):
13894 Add assertion.
13895 (thread_apply_all_command, thread_select): Use
13896 switch_to_thread_if_alive.
13897
7f0ae84c
GB
138982020-01-10 George Barrett <bob@bob131.so>
13899
13900 * stap-probe.c (stap_modify_semaphore): Don't check for null
13901 semaphores.
13902 (stap_probe::set_semaphore, stap_probe::clear_semaphore): Check
13903 for null semaphores.
13904
f5a7c406
AB
139052020-01-09 Andrew Burgess <andrew.burgess@embecosm.com>
13906
13907 * tui/tui-source.c (tui_source_window::do_scroll_vertical): Update
13908 all source windows, and maintain horizontal scroll status while
13909 doing so.
13910
9ae6bf64
TT
139112020-01-09 Tom Tromey <tom@tromey.com>
13912
13913 PR tui/18932:
13914 * tui/tui-source.c (tui_source_window::do_scroll_vertical): Call
13915 update_source_window, not print_source_lines.
13916
b2efe70c
AB
139172020-01-09 Andrew Burgess <andrew.burgess@embecosm.com>
13918
13919 * tui/tui.c (tui_enable): Register tui hooks after calling
13920 tui_display_main.
13921
5f23a082
CB
139222020-01-09 Christian Biesinger <cbiesinger@google.com>
13923
13924 * gdbsupport/common-defs.h: Don't define _FORTIFY_SOURCE on MinGW.
13925
3061113b
SM
139262020-01-08 Simon Marchi <simon.marchi@efficios.com>
13927
13928 * thread.c (print_thread_info_1): Fix indentation.
13929
57d75002
CB
139302020-01-09 Christian Biesinger <cbiesinger@google.com>
13931
13932 * symtab.c (general_symbol_info::compute_and_set_names): Move the
13933 unique_xmalloc_ptr outside the if to always free the demangled name.
13934
6a053cb1
TT
139352020-01-08 Tom Tromey <tromey@adacore.com>
13936
13937 * xcoffread.c (enter_line_range, read_xcoff_symtab)
13938 (process_xcoff_symbol, xcoff_symfile_offsets): Update.
13939 * symtab.h (MSYMBOL_VALUE_ADDRESS): Update.
13940 (struct section_offsets, ANOFFSET, SIZEOF_N_SECTION_OFFSETS):
13941 Remove.
13942 (section_offsets): New typedef.
13943 * symtab.c (fixup_section, get_msymbol_address): Update.
13944 * symmisc.c (dump_msymbols): Update.
13945 * symfile.h (relative_addr_info_to_section_offsets)
13946 (symfile_map_offsets_to_segments): Update.
13947 * symfile.c (build_section_addr_info_from_objfile)
13948 (init_objfile_sect_indices): Update.
13949 (struct place_section_arg): Change type of "offsets".
13950 (place_section): Update.
13951 (relative_addr_info_to_section_offsets): Change type of
13952 "section_offsets". Remove "num_sections" parameter.
13953 (default_symfile_offsets, syms_from_objfile_1)
13954 (set_objfile_default_section_offset): Update.
13955 (reread_symbols): No need to preserve section offsets by hand.
13956 (symfile_map_offsets_to_segments): Change type of "offsets".
13957 * stap-probe.c (relocate_address): Update.
13958 * stabsread.h (process_one_symbol): Update.
13959 * solib-target.c (struct lm_info_target) <offsets>: Change type.
13960 (solib_target_relocate_section_addresses): Update.
13961 * solib-svr4.c (enable_break, svr4_relocate_main_executable):
13962 Update.
13963 * solib-frv.c (frv_relocate_main_executable): Update.
13964 * solib-dsbt.c (dsbt_relocate_main_executable): Update.
13965 * solib-aix.c (solib_aix_get_section_offsets): Change return
13966 type.
13967 (solib_aix_solib_create_inferior_hook): Update.
13968 * remote.c (remote_target::get_offsets): Update.
13969 * psymtab.c (find_pc_sect_psymtab): Update.
13970 * psympriv.h (struct partial_symbol) <address, text_low,
13971 text_high>: Update.
13972 * objfiles.h (obj_section_offset): Update.
13973 (struct objfile) <section_offsets>: Change type.
13974 <num_sections>: Remove.
13975 (objfile_relocate): Update.
13976 * objfiles.c (entry_point_address_query): Update
13977 (relocate_one_symbol): Change type of "section_offsets".
13978 (objfile_relocate1, objfile_relocate1): Change type of
13979 "new_offsets".
13980 (objfile_rebase1): Update.
13981 * mipsread.c (mipscoff_symfile_read): Update.
13982 (read_alphacoff_dynamic_symtab): Remove "section_offsets"
13983 parameter.
13984 * mdebugread.c (parse_symbol): Change type of "section_offsets".
13985 (parse_external, psymtab_to_symtab_1): Update.
13986 * machoread.c (macho_symfile_offsets): Update.
13987 * ia64-tdep.c (ia64_find_unwind_table): Update.
13988 * hppa-tdep.c (read_unwind_info): Update.
13989 * hppa-bsd-tdep.c (hppabsd_find_global_pointer): Update.
13990 * dwarf2read.c (create_addrmap_from_index)
13991 (create_addrmap_from_aranges, dw2_find_pc_sect_compunit_symtab)
13992 (process_psymtab_comp_unit_reader, add_partial_symbol)
13993 (add_partial_subprogram, process_full_comp_unit)
13994 (read_file_scope, read_func_scope, read_lexical_block_scope)
13995 (read_call_site_scope, dwarf2_rnglists_process)
13996 (dwarf2_ranges_process, dwarf2_ranges_read)
13997 (dwarf_decode_lines_1, var_decode_location, new_symbol)
13998 (dwarf2_fetch_die_loc_sect_off, dwarf2_per_cu_text_offset):
13999 Update.
14000 * dwarf2-frame.c (execute_cfa_program, dwarf2_frame_find_fde):
14001 Update.
14002 * dtrace-probe.c (dtrace_probe::get_relocated_address): Update.
14003 * dbxread.c (read_dbx_symtab, read_ofile_symtab): Update.
14004 (process_one_symbol): Change type of "section_offsets".
14005 * ctfread.c (get_objfile_text_range): Update.
14006 * coffread.c (coff_symtab_read, enter_linenos)
14007 (process_coff_symbol): Update.
14008 * coff-pe-read.c (add_pe_forwarded_sym): Update.
14009 * amd64-windows-tdep.c (amd64_windows_find_unwind_info): Update.
14010
456e800a
TT
140112020-01-08 Tom Tromey <tromey@adacore.com>
14012
14013 * dwarf2read.c (parse_macro_definition): Use std::string.
14014 (parse_macro_definition): Likewise.
14015
6dfa2fc2
TT
140162020-01-08 Tom Tromey <tromey@adacore.com>
14017
14018 * dwarf2read.c (abbrev_table_read_table): Use std::vector.
14019 (ATTR_ALLOC_CHUNK): Remove.
14020
421d1616
TT
140212020-01-08 Tom Tromey <tromey@adacore.com>
14022
14023 * dwarf2read.c (fixup_go_packaging): Use unique_xmalloc_ptr.
14024
43816ebc
TT
140252020-01-08 Tom Tromey <tromey@adacore.com>
14026
14027 * dwarf2read.c (add_partial_symbol): Use unique_xmalloc_ptr.
14028 (dwarf2_compute_name, open_dwo_file): Likewise.
14029 (process_enumeration_scope): Use std::vector.
14030 (guess_partial_die_structure_name): Use unique_xmalloc_ptr.
14031 (partial_die_info::fixup, dwarf2_start_subfile)
14032 (guess_full_die_structure_name, dwarf2_name): Likewise.
14033 (determine_prefix): Update.
14034 (guess_full_die_structure_name): Make return type const.
14035 (partial_die_full_name): Return unique_xmalloc_ptr.
14036 (DW_FIELD_ALLOC_CHUNK): Remove.
14037
4212d509
TT
140382020-01-07 Tom Tromey <tromey@adacore.com>
14039
14040 PR build/24937:
14041 * stap-probe.c (class stap_static_probe_ops): Add constructor.
14042
06a6207a
JT
140432020-01-02 Jon Turney <jon.turney@dronecode.org.uk>
14044
14045 * cli/cli-style.c: Set cli_styling to 'true' in the Cygwin build.
14046
153d79c4
AB
140472020-01-06 Andrew Burgess <andrew.burgess@embecosm.com>
14048
14049 * stack.c (print_frame_info): Move disassemble_next_line code
14050 inside source_print block.
14051
66182876
EZ
140522020-01-06 Eli Zaretskii <eliz@gnu.org>
14053
14054 * gdbsupport/gdb_wait.c: Include <signal.h> instead of
14055 gdb/signals.h, as we are now using native signal symbols.
14056
cbfa8581
SV
140572020-01-06 Shahab Vahedi <shahab@synopsys.com>
14058
14059 * tui/tui-disasm.c (tui_disasm_window::addr_is_displayed): Avoid
14060 overflow by an early check of content vs threshold.
aac66a4c 14061 * tui/tui-source.c (tui_source_window::line_is_displayed):
cbfa8581
SV
14062 Likewise.
14063
3f602821
EZ
140642020-01-06 Eli Zaretskii <eliz@gnu.org>
14065
14066 * NEWS: Mention the recent fix of $_exitsignal on MS-Windows.
14067
a08c904d
JT
140682020-01-02 Jon Turney <jon.turney@dronecode.org.uk>
14069
14070 * coff-pe-read.c (read_pe_exported_syms): Don't try to read the
14071 export table if no section contains it's RVA.
14072
89a65580
EZ
140732020-01-06 Eli Zaretskii <eliz@gnu.org>
14074
14075 * windows-tdep.c: Fix a typo in WINDOWS_SIGABRT.
14076
8b7fcda2
HD
140772020-01-06 Hannes Domani <ssbssa@yahoo.de>
14078
14079 * source.c (print_source_lines_base): Set last_line_listed.
14080
a61b4f69
SV
140812020-01-06 Shahab Vahedi <shahab@synopsys.com>
14082
14083 * tui/tui-disasm.c: Remove trailing spaces.
14084
559e7e50
EZ
140852020-01-06 Eli Zaretskii <eliz@gnu.org>
14086 Pedro Alves <palves@redhat.com>
14087
14088 * Makefile.in (COMMON_SFILES): Add gdbsupport/gdb_wait.c.
14089 * windows-tdep.c: New enumeration of WINDOWS_SIG* signals.
14090 (windows_gdb_signal_to_target): New function, uses the above
14091 enumeration to convert GDB internal signal codes to equivalent
14092 Windows codes.
14093 (windows_init_abi): Call set_gdbarch_gdb_signal_to_target.
14094 * windows-nat.c: Include "gdb_wait.h".
14095 (get_windows_debug_event): Extract the fatal exception from the
14096 exit status and convert to the equivalent Posix signal number.
14097 * cli/cli-cmds.c (exit_status_set_internal_vars): Account for the
14098 possibility that WTERMSIG returns GDB_SIGNAL_UNKNOWN.
14099 * gdbsupport/gdb_wait.c: New file, implements
14100 windows_status_to_termsig.
14101 * gdbsupport/gdb_wait.h (WIFEXITED, WIFSIGNALED, WEXITSTATUS)
14102 (WTERMSIG) [__MINGW32__]: Separate definitions for MinGW.
14103
f2302a34
AB
141042020-01-05 Andrew Burgess <andrew.burgess@embecosm.com>
14105
14106 * tui/tui-layout.c (tui_add_win_to_layout): Use tui_set_layout not
14107 show_layout.
14108
6a5206eb
LM
141092020-01-05 Luis Machado <luis.machado@linaro.org>
14110
14111 * aarch64-linux-nat.c
14112 (aarch64_linux_nat_target::thread_architecture): Use bfd_arch_aarch64
14113 and bfd_mach_aarch64.
14114
6ec1d75e
PW
141152020-01-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
14116
14117 * ui-file.c (stdio_file::can_emit_style_escape)
14118 (tee_file::can_emit_style_escape): Ensure style is used also on
14119 gdb_stderr when gdb_stderr is a tty supporting styling, similarly
14120 to gdb_stdout.
14121 * main.c (set_gdb_data_directory): Use file style to output the
14122 warning that the given pathname is not a directory.
14123 * top.c (show_history_filename, gdb_safe_append_history)
14124 (show_gdb_datadir): Use file style.
14125
44f81a76
HD
141262020-01-03 Hannes Domani <ssbssa@yahoo.de>
14127
14128 * solib-target.c (struct lm_info_target):
14129 Change offsets to be a unique_xmalloc_ptr.
14130 (solib_target_relocate_section_addresses): Update.
14131
25057eb0
HD
141322020-01-03 Hannes Domani <ssbssa@yahoo.de>
14133
14134 * windows-nat.c (windows_clear_solib): Free so_list linked list.
14135
6e2118f5
BE
141362020-01-03 Bernd Edlinger <bernd.edlinger@hotmail.de>
14137
14138 * MAINTAINERS (Write After Approval): Add myself.
14139
8133c7dc
LM
141402020-01-02 Luis Machado <luis.machado@linaro.org>
14141
14142 * proc-service.c (get_ps_regcache): Remove reference to obsolete
14143 Cell BE architecture.
14144 * target.h (struct target_ops) <thread_architecture>: Likewise.
14145
48189bec
HD
141462020-01-01 Hannes Domani <ssbssa@yahoo.de>
14147
14148 * Makefile.in: Use INSTALL_PROGRAM_ENV.
14149
ead1063b
HD
141502020-01-01 Hannes Domani <ssbssa@yahoo.de>
14151
14152 * MAINTAINERS (Write After Approval): Add myself.
14153
e5d78223
JB
141542020-01-01 Joel Brobecker <brobecker@adacore.com>
14155
14156 * gdbarch.sh: Update copyright year range of generated files.
14157
b811d2c2
JB
141582020-01-01 Joel Brobecker <brobecker@adacore.com>
14159
14160 Update copyright year range in all GDB files.
14161
5f4def5c
JB
141622020-01-01 Joel Brobecker <brobecker@adacore.com>
14163
14164 * copyright.py: Convert to Python 3.
14165
51fd4002
JB
141662020-01-01 Joel Brobecker <brobecker@adacore.com>
14167
14168 * copyright.py: Adapt after move of gnulib directory from gdb
14169 directory to toplevel directory.
14170
5fb651f2
JB
141712020-01-01 Joel Brobecker <brobecker@adacore.com>
14172
14173 * copyright.py (main): Exit if run from the wrong directory.
14174
5dd8bf88
JB
141752020-01-01 Joel Brobecker <brobecker@adacore.com>
14176
14177 * top.c (print_gdb_version): Change copyright year to 2020.
14178
9f71dacb 141792020-01-01 Joel Brobecker <brobecker@adacore.com>
3d34df0a 14180
9f71dacb 14181 * config/djgpp/fnchange.lst: Add entry for gdb/ChangeLog-2019.
3d34df0a 14182
9f71dacb 14183For older changes see ChangeLog-2019.
c906108c
SS
14184\f
14185Local Variables:
14186mode: change-log
14187left-margin: 8
14188fill-column: 74
14189version-control: never
57da7796 14190coding: utf-8
c906108c 14191End:
This page took 3.385134 seconds and 4 git commands to generate.