]> git.ipfire.org Git - thirdparty/binutils-gdb.git/blame - gdb/ChangeLog
Handle 64bit breakpoints of WOW64 processes as SIGINT
[thirdparty/binutils-gdb.git] / gdb / ChangeLog
CommitLineData
99bb393f
HD
12020-09-23 Hannes Domani <ssbssa@yahoo.de>
2
3 * nat/windows-nat.c (handle_exception): Handle 64bit breakpoints
4 in WOW64 processes as SIGINT.
5 * nat/windows-nat.h: Make wow64_process a shared variable.
6 * windows-nat.c: Remove static wow64_process variable.
7
20a5fcbd
TT
82020-09-23 Tom Tromey <tom@tromey.com>
9
10 PR symtab/25470:
11 * value.c (unpack_long, pack_long, pack_unsigned_long): Handle bit
12 offset and bit size.
13 * printcmd.c (print_scalar_formatted): Handle zero-length
14 integer.
15 (print_scalar_formatted): Use bit_size_differs_p.
16 * gdbtypes.h (enum type_specific_kind) <TYPE_SPECIFIC_INT>: New
17 constant.
18 (union type_specific): <int_stuff>: New member.
19 (struct type) <bit_size_differs_p, bit_size, bit_offset>: New
20 methods.
21 * gdbtypes.c (init_integer_type, init_boolean_type): Initialize
22 TYPE_SPECIFIC_FIELD.
23 (recursive_dump_type, copy_type_recursive): Update.
24 * dwarf2/read.c (read_base_type): Handle DW_AT_bit_size and
25 DW_AT_data_bit_offset.
26
bac51ab7
TT
272020-09-23 Tom Tromey <tom@tromey.com>
28
29 * utils.h (class gdb_argv): Add move operators.
30 <append>: New methods.
31 * compile/compile.c (build_argc_argv): Remove.
32 (compile_args_argc): Remove.
33 (compile_args_argv): Change type.
34 (set_compile_args): Simplify.
35 (append_args): Remove.
36 (filter_args): Remove argcp parameter.
37 (get_args): Return gdb_argv. Simplify.
38 (compile_to_object): Update.
39
92677124
TT
402020-09-23 Tom Tromey <tom@tromey.com>
41
42 * compile/compile-object-run.c (do_module_cleanup)
43 <~do_module_cleanup> :Remove.
44 (do_module_cleanup): Update.
45 * compile/compile-object-load.h (struct munmap_list): Add move
46 assignment operator.
47 <source_file>: Now a std::string.
48 <munmap_list>: Rename. No longer a pointer.
49 * compile/compile-object-load.c (struct setup_sections_data): Add
50 constructor.
51 <setup_one_section>: Declare.
52 <munmap_list>: Move earlier.
53 <m_bfd>: New member.
54 <m_last_size, m_last_section_first, m_last_prot,
55 m_last_max_alignment>: Rename, add initializers where needed.
56 (setup_sections_data::setup_one_section): Rename from
57 setup_sections. Update.
58 (compile_object_load): Update. Don't use bfd_map_over_sections.
59
e616f60a
TT
602020-09-23 Tom Tromey <tom@tromey.com>
61
62 * compile/compile-object-run.c (struct do_module_cleanup): Add
63 parameters to constructor. Update destructor.
64 <source_file, scope, scope_data, out_value_type, out_value_addr,
65 munmap_list_head, objfile_name_string>: Remove.
66 <module>: New member.
67 (do_module_cleanup): Update.
68 (compile_object_run): Update.
69
e947a848
TT
702020-09-23 Tom Tromey <tom@tromey.com>
71
72 * compile/compile.c (eval_compile_command): Update.
73 * compile/compile-object-run.h (compile_object_run): Take a
74 compile_module_up.
75 * compile/compile-object-run.c (compile_object_run): Take a
76 compile_module_up.
77 * compile/compile-object-load.h (struct compile_module): Add
78 constructor, destructor.
79 (compile_module_up): New typedef.
80 (compile_object_load): Return compile_object_up.
81 * compile/compile-object-load.c (compile_object_load): Return
82 compile_module_up.
83
0dbf6ee6
TT
842020-09-23 Tom Tromey <tom@tromey.com>
85
86 * compile/compile-object-run.c (struct do_module_cleanup): Add
87 constructor, destructor.
88 <objfile_name_string>: Don't use struct hack.
89 (do_module_cleanup): Use delete.
90 (compile_object_run): Use new.
91
ebe824f5
TT
922020-09-23 Tom Tromey <tom@tromey.com>
93
94 * compile/compile-cplus-types.c
95 (compile_cplus_convert_struct_or_union): Use std::vector.
96 (compile_cplus_convert_func): Likewise.
97 * compile/compile-c-types.c (convert_func): Use std::vector.
98
5dd918d9
TT
992020-09-21 Tom Tromey <tromey@adacore.com>
100
101 * sparc-tdep.c (sparc32_skip_prologue): Use
102 skip_prologue_using_sal.
103
5486c517
TT
1042020-09-19 Tom Tromey <tom@tromey.com>
105
106 * symfile.c (add_section_size_callback): Remove.
107 (load_one_section): Rename from load_section_callback. Change
108 parameters.
109 (generic_load): Use foreach.
110
8a6bb1d1
TT
1112020-09-19 Tom Tromey <tom@tromey.com>
112
113 * exec.c (add_to_section_table): Remove.
114 (build_section_table): Use foreach.
115
08f93a1a
TT
1162020-09-19 Tom Tromey <tom@tromey.com>
117
118 * elfread.c (elf_locate_sections): Change parameters.
119 (elf_symfile_read): Use foreach.
120
03cd72b8
TT
1212020-09-19 Tom Tromey <tom@tromey.com>
122
123 * cli/cli-dump.c (struct callback_data): Remove.
124 (restore_one_section): Rename from restore_section_callback.
125 Change parameters.
126 (restore_binary_file): Change parameters.
127 (restore_command): Use foreach.
128
f4f2b85f
TT
1292020-09-19 Tom Tromey <tom@tromey.com>
130
131 * gcore.c (make_output_phdrs): Remove 'ignored' parameter.
132 (gcore_copy_callback): Likewise.
133 (gcore_memory_sections): Use foreach.
134
b35c1d1c
TT
1352020-09-19 Tom Tromey <tom@tromey.com>
136
137 * osabi.h (generic_elf_osabi_sniff_abi_tag_sections): Update.
138 * osabi.c (generic_elf_osabi_sniff_abi_tag_sections): Change
139 parameters.
140 (generic_elf_osabi_sniffer): Use foreach.
141 * mips-sde-tdep.c (mips_sde_elf_osabi_sniffer): Use foreach.
142 * arm-tdep.c (arm_elf_osabi_sniffer): Use foreach.
143
5bb6e9dd
TT
1442020-09-19 Tom Tromey <tom@tromey.com>
145
146 * dwarf2/read.c (locate_dwz_sections): Change parameters.
147 (dwarf2_get_dwz_file): Use foreach.
148 (dwarf2_locate_dwo_sections): Change parameters.
149 (open_and_init_dwo_file): Use foreach.
150 (dwarf2_locate_common_dwp_sections): Change parameters.
151 (open_and_init_dwp_file): Use foreach.
152
ad7277da
TT
1532020-09-19 Tom Tromey <tom@tromey.com>
154
155 * symfile.h: (find_lowest_section): Don't declare.
156 * symfile.c (find_lowest_section): Now static. Change
157 parameters.
158 (struct place_section_arg): Remove.
159 (place_section): Change parameters.
160 (addr_info_make_relative): Use foreach.
161 (symfile_dummy_outputs): Remove.
162 (default_symfile_relocate): Use foreach.
163
cb814f2e
TT
1642020-09-19 Tom Tromey <tom@tromey.com>
165
166 * objfiles.c (add_to_objfile_sections): Rename from
167 add_to_objfile_sections_full.
168 (add_to_objfile_sections): Remove.
169 (build_objfile_section_table): Use foreach.
170
3cabfd26
TT
1712020-09-19 Tom Tromey <tom@tromey.com>
172
173 * stap-probe.c (get_stap_base_address_1): Remove.
174 (get_stap_base_address): Use foreach.
175
1ce51eb5
TT
1762020-09-19 Tom Tromey <tom@tromey.com>
177
178 * gdb_bfd.c (free_one_bfd_section): Remove 'abfd' and 'ignore'
179 parameters.
180 (gdb_bfd_close_or_warn): Use foreach.
181
a190fabb
TT
1822020-09-19 Tom Tromey <tom@tromey.com>
183
184 * corelow.c (add_to_thread_list): Change parameters.
185 (core_target_open): Use foreach.
186
cafb0d81
TT
1872020-09-19 Tom Tromey <tom@tromey.com>
188
189 * gdb_bfd.h (gdb_bfd_sections): New overload. Fix formatting of
190 existing function.
191
c8d5abea
AB
1922020-09-19 Andrew Burgess <andrew.burgess@embecosm.com>
193
194 * f-valprint.c (f77_print_array_1): Adjust printing of whitespace
195 for arrays.
196
6d816919
AB
1972020-09-19 Andrew Burgess <andrew.burgess@embecosm.com>
198
199 * eval.c: Remove 'f-lang.h' include.
200 (value_f90_subarray): Moved to f-lang.c.
201 (eval_call): Renamed to...
202 (evaluate_subexp_do_call): ...this, is no longer static, header
203 comment moved into header file.
204 (evaluate_funcall): Update call to eval_call.
205 (skip_undetermined_arglist): Moved to f-lang.c.
206 (fortran_value_subarray): Likewise.
207 (evaluate_subexp_standard): OP_F77_UNDETERMINED_ARGLIST handling
208 moved to evaluate_subexp_f.
209 (calc_f77_array_dims): Moved to f-lang.c
210 * expprint.c (print_subexp_funcall): New function.
211 (print_subexp_standard): OP_F77_UNDETERMINED_ARGLIST handling
212 moved to print_subexp_f, OP_FUNCALL uses new function.
213 (dump_subexp_body_funcall): New function.
214 (dump_subexp_body_standard): OP_F77_UNDETERMINED_ARGLIST handling
215 moved to dump_subexp_f, OP_FUNCALL uses new function.
216 * expression.h (evaluate_subexp_do_call): Declare.
217 * f-lang.c (value_f90_subarray): Moved from eval.c.
218 (skip_undetermined_arglist): Likewise.
219 (calc_f77_array_dims): Likewise.
220 (fortran_value_subarray): Likewise.
221 (evaluate_subexp_f): Add OP_F77_UNDETERMINED_ARGLIST support.
222 (operator_length_f): Likewise.
223 (print_subexp_f): Likewise.
224 (dump_subexp_body_f): Likewise.
225 * fortran-operator.def (OP_F77_UNDETERMINED_ARGLIST): Move
226 declaration of this operation to here.
227 * parse.c (operator_length_standard): OP_F77_UNDETERMINED_ARGLIST
228 support moved to operator_length_f.
229 * parser-defs.h (dump_subexp_body_funcall): Declare.
230 (print_subexp_funcall): Declare.
231 * std-operator.def (OP_F77_UNDETERMINED_ARGLIST): Moved to
232 fortran-operator.def.
233
8c37706a
AB
2342020-09-19 Andrew Burgess <andrew.burgess@embecosm.com>
235
236 * eval.c (fortran_value_subarray): New function, content is taken
237 from...
238 (evaluate_subexp_standard): ...here, in two places. Now arrays
239 and strings both call the new function.
240 (calc_f77_array_dims): Add header comment, handle strings.
241
14f9473c
VC
2422020-09-18 Victor Collod <vcollod@nvidia.com>
243
244 PR gdb/26635
245 * i386-tdep.c (i386_skip_endbr): Add a helper function to skip endbr.
246 (i386_analyze_prologue): Call i386_skip_endbr.
247
b60cea74
TT
2482020-09-18 Tom Tromey <tromey@adacore.com>
249
250 * windows-nat.c (struct windows_nat_target) <wait>: Update.
251 (windows_nat_target::wait): Update.
252 * target/wait.h (enum target_wait_flag): New. Use
253 DEF_ENUM_FLAGS_TYPE.
254 * target/target.h (target_wait): Change type of options.
255 * target.h (target_options_to_string, default_target_wait):
256 Update.
257 (struct target_ops) <wait>: Change type of options.
258 * target.c (target_wait, default_target_wait, do_option): Change
259 type of "options".
260 (target_options_to_string): Likewise.
261 * target-delegates.c: Rebuild.
262 * target-debug.h (target_debug_print_target_wait_flags): Rename
263 from target_debug_print_options.
264 * sol-thread.c (class sol_thread_target) <wait>: Update.
265 (sol_thread_target::wait): Update.
266 * rs6000-nat.c (class rs6000_nat_target) <wait>: Update.
267 (rs6000_nat_target::wait): Update.
268 * remote.c (class remote_target) <wait, wait_ns, wait_as>:
269 Update.
270 (remote_target::wait_ns, remote_target::wait_as): Change type of
271 "options".
272 (remote_target::wait): Update.
273 * remote-sim.c (struct gdbsim_target) <wait>: Update.
274 (gdbsim_target::wait): Update.
275 * record-full.c (class record_full_base_target) <wait>: Update.
276 (record_full_wait_1): Change type of "options".
277 (record_full_base_target::wait): Update.
278 * record-btrace.c (class record_btrace_target) <wait>: Update.
279 (record_btrace_target::wait): Update.
280 * ravenscar-thread.c (struct ravenscar_thread_target) <wait>:
281 Update.
282 (ravenscar_thread_target::wait): Update.
283 * procfs.c (class procfs_target) <wait>: Update.
284 (procfs_target::wait): Update.
285 * obsd-nat.h (class obsd_nat_target) <wait>: Update.
286 * obsd-nat.c (obsd_nat_target::wait): Update.
287 * nto-procfs.c (struct nto_procfs_target) <wait>: Update.
288 (nto_procfs_target::wait): Update.
289 * nbsd-nat.h (struct nbsd_nat_target) <wait>: Update.
290 * nbsd-nat.c (nbsd_wait): Change type of "options".
291 (nbsd_nat_target::wait): Update.
292 * linux-thread-db.c (class thread_db_target) <wait>: Update.
293 (thread_db_target::wait): Update.
294 * linux-nat.h (class linux_nat_target) <wait>: Update.
295 * linux-nat.c (linux_nat_target::wait): Update.
296 (linux_nat_wait_1): Update.
297 * infrun.c (do_target_wait_1, do_target_wait): Change type of
298 "options".
299 * inf-ptrace.h (struct inf_ptrace_target) <wait>: Update.
300 * inf-ptrace.c (inf_ptrace_target::wait): Update.
301 * go32-nat.c (struct go32_nat_target) <wait>: Update.
302 (go32_nat_target::wait): Update.
303 * gnu-nat.h (struct gnu_nat_target) <wait>: Update.
304 * gnu-nat.c (gnu_nat_target::wait): Update.
305 * fbsd-nat.h (class fbsd_nat_target) <wait>: Update.
306 * fbsd-nat.c (fbsd_nat_target::wait): Update.
307 * darwin-nat.h (class darwin_nat_target) <wait>: Update.
308 * darwin-nat.c (darwin_nat_target::wait): Update.
309 * bsd-uthread.c (struct bsd_uthread_target) <wait>: Update.
310 (bsd_uthread_target::wait): Update.
311 * aix-thread.c (class aix_thread_target) <wait>: Update.
312 (aix_thread_target::wait): Update.
313
0295dde6
AB
3142020-09-18 Andrew Burgess <andrew.burgess@embecosm.com>
315
316 * compile/compile-object-run.c (create_copied_type_recursive): New
317 function.
318 (compile_object_run): Use new function.
319
d3483b43
JT
3202020-08-21 Jon Turney <jon.turney@dronecode.org.uk>
321
322 * NEWS: Mention x86_64 Cygwin core file support.
323
e7d612ad
JT
3242020-07-01 Jon Turney <jon.turney@dronecode.org.uk>
325
326 * windows-tdep.c (NOTE_INFO_MODULE, NOTE_INFO_MODULE64): Define.
327 (core_process_module_section): Handle NOTE_INFO_MODULE64.
328
aff9d387
JT
3292020-07-01 Jon Turney <jon.turney@dronecode.org.uk>
330
62a5151b
JT
331 * windows-tdep.h: Add prototypes.
332 * i386-windows-tdep.c(windows_core_xfer_shared_libraries): Move.
333 (i386_windows_core_pid_to_str): Move and rename ...
334 * windows-tdep.c (windows_core_xfer_shared_libraries): ... to here
335 (windows_core_pid_to_str): ... and here.
336 * amd64-windows-tdep.c (amd64_windows_init_abi_common): Register here.
337
3382020-07-01 Jon Turney <jon.turney@dronecode.org.uk>
aff9d387
JT
339 * amd64-windows-tdep.c(amd64_windows_gregset_reg_offset): Add.
340 (amd64_windows_init_abi_common): ... and register.
341
7d155da3
JT
3422020-07-01 Jon Turney <jon.turney@dronecode.org.uk>
343
344 * amd64-windows-tdep.c (amd64_cygwin_core_osabi_sniffer): New.
345 (_initialize_amd64_windows_tdep): Register amd64_cygwin_core_osabi_sniffer.
346
e8ef12b9
PA
3472020-09-18 Pedro Alves <pedro@palves.net>
348
349 PR gdb/26631
350 * thread.c (thread_find_command): Switch inferior before calling
351 target methods.
352
c1e1314d
TT
3532020-09-17 Tom Tromey <tromey@adacore.com>
354
355 * tic6x-tdep.c (tic6x_gdbarch_init): Update.
356 * target-descriptions.h (struct tdesc_arch_data_deleter): New.
357 (tdesc_arch_data_up): New typedef.
358 (tdesc_use_registers, tdesc_data_alloc): Update.
359 (tdesc_data_cleanup): Don't declare.
360 * target-descriptions.c (tdesc_data_alloc): Return a
361 tdesc_arch_data_up.
362 (tdesc_arch_data_deleter::operator()): Rename from
363 tdesc_data_cleanup. Change argument type.
364 (tdesc_use_registers): Change early_data to an rvalue reference.
365 (tdesc_use_registers): Don't use delete.
366 * sparc-tdep.c (sparc32_gdbarch_init): Update.
367 * s390-tdep.c (s390_gdbarch_init): Update.
368 * rx-tdep.c (rx_gdbarch_init): Update.
369 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
370 * riscv-tdep.c (riscv_gdbarch_init): Update.
371 * or1k-tdep.c (or1k_gdbarch_init): Update.
372 * nios2-tdep.c (nios2_gdbarch_init): Update.
373 * nds32-tdep.c (nds32_gdbarch_init): Update.
374 * mips-tdep.c (mips_gdbarch_init): Update.
375 * microblaze-tdep.c (microblaze_gdbarch_init): Update.
376 * m68k-tdep.c (m68k_gdbarch_init): Update.
377 * i386-tdep.c (i386_gdbarch_init): Update.
378 * arm-tdep.c (arm_gdbarch_init): Update.
379 * arc-tdep.c (arc_tdesc_init): Update.
380 (arc_gdbarch_init): Update.
381 * aarch64-tdep.c (aarch64_gdbarch_init): Update.
382
0363df3d
HD
3832020-09-17 Hannes Domani <ssbssa@yahoo.de>
384
385 * windows-nat.c (ctrl_c_handler): Use 32bit DbgUiRemoteBreakin
386 for WOW64 processes.
387
280a9412
TT
3882020-09-17 Tom Tromey <tom@tromey.com>
389
390 * dwarf2/read.c (compute_compunit_symtab_includes): Use htab_up.
391
6108fd18
TT
3922020-09-17 Tom Tromey <tom@tromey.com>
393
394 * value.c (preserve_values): Update.
395 * python/py-type.c (save_objfile_types): Update.
396 * guile/scm-type.c (save_objfile_types): Update.
397 * gdbtypes.h (create_copied_types_hash): Return htab_up.
398 * gdbtypes.c (create_copied_types_hash): Return htab_up.
399 * compile/compile-object-run.c (compile_object_run): Update.
400
fa9b1164
TT
4012020-09-17 Tom Tromey <tom@tromey.com>
402
403 * typeprint.h (class typedef_hash_table) <~typedef_hash_table>:
404 Remove.
405 <m_table>: Now htab_up.
406 * typeprint.c (typedef_hash_table::recursively_update)
407 (typedef_hash_table::add_template_parameters)
408 (typedef_hash_table::typedef_hash_table): Update.
409 (typedef_hash_table::~typedef_hash_table): Remove.
410 (typedef_hash_table::typedef_hash_table)
411 (typedef_hash_table::find_global_typedef)
412 (typedef_hash_table::find_typedef): Update.
413
eb53f105
TT
4142020-09-17 Tom Tromey <tom@tromey.com>
415
416 * target-descriptions.c (tdesc_use_registers): Use htab_up.
417
7a8a5d47
TT
4182020-09-17 Tom Tromey <tom@tromey.com>
419
420 * linespec.c (class decode_compound_collector)
421 <~decode_compound_collector>: Remove.
422 <m_unique_syms>: Now htab_up.
423 (decode_compound_collector::operator ()): Update.
424 (class symtab_collector) <~symtab_collector>: Remove.
425 <m_symtab_table>: Now htab_up.
426 (symtab_collector::operator ()): Update.
427
99032cfc
TT
4282020-09-17 Tom Tromey <tom@tromey.com>
429
430 * filename-seen-cache.c (filename_seen_cache::filename_seen_cache)
431 (filename_seen_cache::clear): Update.
432 (~filename_seen_cache): Remove.
433 (filename_seen_cache::seen): Update.
434 * filename-seen-cache.h (class filename_seen_cache) <m_tab>: Now
435 htab_up.
436 <~filename_seen_cache>: Remove.
437 <traverse>: Update.
438
32580f6d
TT
4392020-09-17 Tom Tromey <tom@tromey.com>
440
441 * completer.c (completion_tracker::discard_completions)
442 (completion_tracker::~completion_tracker)
443 (completion_tracker::maybe_add_completion)
444 (completion_tracker::remove_completion)
445 (completion_tracker::recompute_lowest_common_denominator)
446 (completion_tracker::build_completion_result): Update.
447 * completer.h (class completion_tracker) <have_completions>:
448 Update.
449 <m_entries_hash>: Now htab_up.
450
c1fb9836
TT
4512020-09-17 Tom Tromey <tom@tromey.com>
452
453 * breakpoint.c (ambiguous_names_p): Use htab_up.
454
88f07206
TT
4552020-09-17 Tom Tromey <tom@tromey.com>
456
457 * auto-load.c (struct auto_load_pspace_info)
458 <~auto_load_pspace_info, auto_load_pspace_info>: Remove.
459 <loaded_script_files, loaded_script_texts>: Change type to
460 htab_up.
461 (~auto_load_pspace_info) Remove.
462 (init_loaded_scripts_info, maybe_add_script_file)
463 (maybe_add_script_text, auto_load_info_scripts): Update.
464
9519b2ee
TT
4652020-09-17 Tom Tromey <tromey@adacore.com>
466
467 * c-exp.y (name_obstack): Now static.
468
d2cd4113
CC
4692020-09-17 Chungyi Chi <demonic@csie.io>
470
471 * riscv-tdep.c (riscv-insn::decode): Fix recorded insn type.
472
b650a282
SM
4732020-09-16 Simon Marchi <simon.marchi@efficios.com>
474
475 * breakpoint.h (init_catchpoint): Change int parameter to bool.
476 (add_solib_catchpoint): Likewise.
477 * breakpoint.c (struct solib_catchpoint) <is_load>: Change type
478 to bool.
479 (add_solib_catchpoint): Change int parameter/variable to bool.
480 (catch_load_or_unload): Likewise.
481 (init_catchpoint): Likewise.
482 (create_fork_vfork_event_catchpoint): Likewise.
483 (catch_fork_command_1): Likewise.
484 (catch_exec_command_1): Likewise.
485
4d0bcfcf
SM
4862020-09-16 Simon Marchi <simon.marchi@efficios.com>
487
488 * gdb-gdb.py.in (class StructTypePrettyPrinter) <to_string>:
489 Change instance_flags to m_instance_flags.
490
fe830662
TT
4912020-09-16 Tom Tromey <tromey@adacore.com>
492
493 PR gdb/26598:
494 * infrun.c (fill_in_stop_func): Use find_pc_partial_function_sym.
495
fe5ddfc3
JB
4962020-09-16 John Baldwin <jhb@FreeBSD.org>
497
498 * fbsd-nat.c (fbsd_nat_target::wait): Always check for
499 PL_FLAG_EXEC.
500 (fbsd_nat_target::insert_exec_catchpoint)
501 (fbsd_nat_target::remove_exec_catchpoint): Always define.
502 * fbsd-nat.h (fbsd_nat_target::insert_exec_catchpoint)
503 (fbsd_nat_target::remove_exec_catchpoint): Always declare.
504
e911c666
JB
5052020-09-16 John Baldwin <jhb@FreeBSD.org>
506
507 * configure.ac: Remove check for kinfo_getvmmap().
508 * configure, config.in: Regenerate.
509 * fbsd-nat.c (fbsd_read_mapping): Remove
510 (fbsd_nat_target::find_memory_regions): Remove the procfs version.
511 (fbsd_nat_target::info_proc): Assume kinfo_getfile() and
512 kinfo_get_vmmap() are always present.
513
1f17d372
JB
5142020-09-16 John Baldwin <jhb@FreeBSD.org>
515
516 * fbsd-nat.c: Always include support for
517 TARGET_OBJECT_SIGNAL_INFO.
518
bcb1da7f
JB
5192020-09-16 John Baldwin <jhb@FreeBSD.org>
520
521 * fbsd-nat.c (fbsd_nat_target::pid_to_exec_file): Always use
522 sysctl and remove procfs fallback.
523
5515f729
JB
5242020-09-16 John Baldwin <jhb@FreeBSD.org>
525
526 * fbsd-nat.c: Assume PT_LWPINFO is always defined.
527 * fbsd-nat.h: Likewise.
528
da1df1db
TBA
5292020-09-16 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
530
531 * breakpoint.c (commands_command_1): Make a copy of the 'arg'
532 argument.
533
0e25e767
AB
5342020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
535
536 * ada-lang.c (ada_language_data): Delete.
537 (ada_language): Remove references to ada_language_data.
538 * c-lang.c (c_language_data): Delete.
539 (c_language): Remove references to c_language_data.
540 (cplus_language_data): Delete.
541 (cplus_language): Remove references to cplus_language_data.
542 (asm_language_data): Delete.
543 (asm_language): Remove references to asm_language_data.
544 (minimal_language_data): Delete.
545 (minimal_language): Remove references to minimal_language_data.
546 * d-lang.c (d_language_data): Delete.
547 (d_language): Remove references to d_language_data.
548 * f-lang.c (f_language_data): Delete.
549 (f_language): Remove references to f_language_data.
550 * go-lang.c (go_language_data): Delete.
551 (go_language): Remove references to go_language_data.
552 * language.c (unknown_language_data): Delete.
553 (unknown_language): Remove references to unknown_language_data.
554 (auto_language_data): Delete.
555 (auto_language): Remove references to auto_language_data.
556 * language.h (language_data): Delete struct.
557 (language_defn): No longer inherit from language_data.
558 * m2-lang.c (m2_language_data): Delete.
559 (m2_language): Remove references to m2_language_data.
560 * objc-lang.c (objc_language_data): Delete.
561 (objc_language): Remove references to objc_language_data.
562 * opencl-lang.c (opencl_language_data): Delete.
563 (opencl_language): Remove references to opencl_language_data.
564 * p-lang.c (pascal_language_data): Delete.
565 (pascal_language): Remove references to pascal_language_data.
566 * rust-lang.c (rust_language_data): Delete.
567 (rust_language): Remove references to rust_language_data.
568
b7c6e27d
AB
5692020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
570
571 * ada-lang.c (ada_language_data): Remove la_op_print_tab
572 initializer.
573 (ada_language::opcode_print_table): New member function.
574 * c-lang.c (c_language_data): Remove la_op_print_tab initializer.
575 (c_language::opcode_print_table): New member function.
576 (cplus_language_data): Remove la_op_print_tab initializer.
577 (cplus_language::opcode_print_table): New member function.
578 (asm_language_data): Remove la_op_print_tab initializer.
579 (asm_language::opcode_print_table): New member function.
580 (minimal_language_data): Remove la_op_print_tab initializer.
581 (minimal_language::opcode_print_table): New member function.
582 * d-lang.c (d_language_data): Remove la_op_print_tab initializer.
583 (d_language::opcode_print_table): New member function.
584 * expprint.c (print_subexp_standard): Update call to
585 opcode_print_table.
586 (op_string): Likewise.
587 * f-lang.c (f_language_data): Remove la_op_print_tab initializer.
588 (f_language::opcode_print_table): New member function.
589 * go-lang.c (go_language_data): Remove la_op_print_tab
590 initializer.
591 (go_language::opcode_print_table): New member function.
592 * language.c (unknown_language_data): Remove la_op_print_tab
593 initializer.
594 (unknown_language::opcode_print_table): New member function.
595 (auto_language_data): Remove la_op_print_tab initializer.
596 (auto_language::opcode_print_table): New member function.
597 * language.h (language_data): Remove la_op_print_tab field.
598 (language_defn::opcode_print_table): Declare new member function.
599 * m2-lang.c (m2_language_data): Remove la_op_print_tab
600 initializer.
601 (m2_language::opcode_print_table): New member function.
602 * objc-lang.c (objc_language_data): Remove la_op_print_tab
603 initializer.
604 (objc_language::opcode_print_table): New member function.
605 * opencl-lang.c (opencl_language_data): Remove la_op_print_tab
606 initializer.
607 (opencl_language::opcode_print_table): New member function.
608 * p-lang.c (pascal_language_data): Remove la_op_print_tab
609 initializer.
610 (pascal_language::opcode_print_table): New member function.
611 * rust-lang.c (rust_language_data): Remove la_op_print_tab
612 initializer.
613 (rust_language::opcode_print_table): New member function.
614
5aba6ebe
AB
6152020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
616
617 * ada-lang.c (ada_language_data): Remove la_exp_desc initializer.
618 (ada_language::expression_ops): New member function.
619 * c-lang.c (c_language_data): Remove la_exp_desc initializer.
620 (c_language::expression_ops): New member function.
621 (cplus_language_data): Remove la_exp_desc initializer.
622 (cplus_language::expression_ops): New member function.
623 (asm_language_data): Remove la_exp_desc initializer.
624 (asm_language::expression_ops): New member function.
625 (minimal_language_data): Remove la_exp_desc initializer.
626 (minimal_language::expression_ops): New member function.
627 * d-lang.c (d_language_data): Remove la_exp_desc initializer.
628 (d_language::expression_ops): New member function.
629 * eval.c (evaluate_subexp): Update call to expression_ops.
630 * expprint.c (print_subexp): Likewise.
631 (op_name): Likewise.
632 (dump_subexp_body): Likewise.
633 * f-lang.c (f_language_data): Remove la_exp_desc initializer.
634 (f_language::expression_ops): New member function.
635 * go-lang.c (go_language_data): Remove la_exp_desc initializer.
636 (go_language::expression_ops): New member function.
637 * language.c (language_defn::expression_ops): New function.
638 (unknown_language_data): Remove la_exp_desc initializer.
639 (auto_language_data): Likewise.
640 * language.h (language_data): Remove la_exp_desc field.
641 (language_defn::expression_ops): Declare new member function.
642 * m2-lang.c (m2_language_data): Remove la_exp_desc initializer.
643 (m2_language::expression_ops): New member function.
644 * objc-lang.c (objc_language_data): Remove la_exp_desc
645 initializer.
646 * opencl-lang.c (opencl_language_data): Remove la_exp_desc
647 initializer.
648 (opencl_language::expression_ops): New member function.
649 * p-lang.c (pascal_language_data): Remove la_exp_desc initializer.
650 * parse.c (operator_length): Update call to expression_ops.
651 (exp_iterate): Likewise.
652 * rust-lang.c (rust_language_data): Remove la_exp_desc
653 initializer.
654 (ruse_language::expression_ops): New member function.
655
b63a3f3f
AB
6562020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
657
658 * ada-lang.c (ada_language_data): Remove la_varobj_ops
659 initializer.
660 (ada_language::varobj_ops): New member function.
661 * c-lang.c (c_language_data): Remove la_varobj_ops
662 initializer.
663 (cplus_language_data): Likewise.
664 (cplus_language::varobj_ops): New member function.
665 (asm_language_data): Remove la_varobj_ops initializer.
666 (minimal_language_data): Likewise.
667 * d-lang.c (d_language_data): Likewise.
668 * f-lang.c (f_language_data): Likewise.
669 * go-lang.c (go_language_data): Likewise.
670 * language.c (language_defn::varobj_ops): New function.
671 (unknown_language_data): Remove la_varobj_ops
672 initializer.
673 (auto_language_data): Likewise.
674 * language.h (language_data): Remove la_varobj_ops field.
675 (language_defn::varobj_ops): Declare new member function.
676 * m2-lang.c (m2_language_data): Remove la_varobj_ops initializer.
677 * objc-lang.c (objc_language_data): Likewise.
678 * opencl-lang.c (opencl_language_data): Likewise.
679 * p-lang.c (pascal_language_data): Likewise.
680 * rust-lang.c (rust_language_data): Likewise.
681 * varobj.c (varobj_create): Update call to varobj_ops.
682 * varobj.h (default_varobj_ops): Delete define.
683
1ac14a04
AB
6842020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
685
686 * ada-lang.c (ada_language_data): Remove la_macro_expansion
687 initializer.
688 * c-lang.c (c_language_data): Likewise.
689 (c_language::macro_expansion): New member function.
690 (cplus_language_data): Likewise.
691 (cplus_language::macro_expansion): New member function.
692 (asm_language_data): Likewise.
693 (asm_language::macro_expansion): New member function.
694 (minimal_language_data): Likewise.
695 (minimal_language::macro_expansion): New member function.
696 * d-lang.c (d_language_data): Remove la_macro_expansion
697 initializer.
698 * f-lang.c (f_language_data): Likewise.
699 * go-lang.c (go_language_data): Likewise.
700 * language.c (unknown_language_data): Likewise.
701 (auto_language_data): Likewise.
702 * language.h (language_data): Remove la_macro_expansion field.
703 (language_defn::macro_expansion): New member function.
704 * m2-lang.c (m2_language_data): Remove la_macro_expansion
705 initializer.
706 * objc-lang.c (objc_language_data): Likewise.
707 (objc_language::macro_expansion): New member function.
708 * opencl-lang.c (opencl_language_data): Likewise.
709 (opencl_language::macro_expansion): New member function.
710 * p-lang.c (pascal_language_data): Remove la_macro_expansion
711 initializer.
712 * rust-lang.c (rust_language_data): Likewise.
713 * symtab.c (default_collect_symbol_completion_matches_break_on):
714 Update call to macro_expansion.
715
3a3440fb
AB
7162020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
717
718 * ada-lang.c (ada_language_data): Remove la_array_ordering
719 initializer.
720 * c-lang.c (c_language_data): Likewise.
721 (cplus_language_data): Likewise.
722 (asm_language_data): Likewise.
723 (minimal_language_data): Likewise.
724 * d-lang.c (d_language_data): Likewise.
725 * dwarf2/read.c (read_array_order): Update for call to
726 array_ordering.
727 * f-lang.c (f_language_data): Remove la_array_ordering
728 initializer.
729 (f_language::array_ordering): New member function.
730 * go-lang.c (go_language_data): Remove la_array_ordering
731 initializer.
732 * language.c (unknown_language_data): Likewise.
733 (auto_language_data): Likewise.
734 * language.h (language_data): Delete la_array_ordering field.
735 (language_defn::array_ordering): New member function.
736 * m2-lang.c (m2_language_data): Remove la_array_ordering
737 initializer.
738 * objc-lang.c (objc_language_data): Likewise.
739 * opencl-lang.c (opencl_language_data): Likewise.
740 * p-lang.c (pascal_language_data): Likewise.
741 * rust-lang.c (rust_language_data): Likewise.
742
0d201fa4
AB
7432020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
744
745 * ada-lang.c (ada_language_data): Remove la_case_sensitivity
746 initializer.
747 * c-lang.c (c_language_data): Likewise.
748 (cplus_language_data): Likewise.
749 (asm_language_data): Likewise.
750 (minimal_language_data): Likewise.
751 * d-lang.c (d_language_data): Likewise.
752 * f-lang.c (f_language_data): Likewise.
753 (f_language::case_sensitivity): New member function.
754 * go-lang.c (go_language_data): Remove la_case_sensitivity
755 initializer.
756 * language.c (enum case_mode): Moved here from language.h.
757 (case_mode): Make static.
758 (show_case_command): Update for case_sensitivity being a method.
759 (set_case_command): Likewise.
760 (set_range_case): Likewise.
761 (unknown_language_data): Remove la_case_sensitivity initializer.
762 (auto_language_data): Likewise.
763 * language.h (case_mode): Delete, move enum declaration to
764 language.c.
765 (language_data): Delete la_case_sensitivity field.
766 (language_defn::case_sensitivity): New member function.
767 * m2-lang.c (m2_language_data): Remove la_case_sensitivity
768 initializer.
769 * objc-lang.c (objc_language_data): Likewise.
770 * opencl-lang.c (opencl_language_data): Likewise.
771 * p-lang.c (pascal_language_data): Likewise.
772 * rust-lang.c (rust_language_data): Likewise.
773
efdf6a73
AB
7742020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
775
776 * ada-lang.c (ada_language_data): Remove la_range_check
777 initializer.
778 * c-lang.c (c_language_data): Likewise.
779 (cplus_language_data): Likewise.
780 (asm_language_data): Likewise.
781 (minimal_language_data): Likewise.
782 * d-lang.c (d_language_data): Likewise.
783 * f-lang.c (f_language_data): Likewise.
784 (f_language::range_checking_on_by_default): New member function.
785 * go-lang.c (go_language_data): Remove la_range_check initializer.
786 * language.c (enum range_mode): Moved here from language.h.
787 (range_mode): Made static.
788 (show_range_command): Update to use
789 range_checking_on_by_default.
790 (set_range_command): Likewise.
791 (set_range_case): Likewise.
792 (unknown_language_data): Remove la_range_check initializer.
793 (auto_language_data): Likewise.
794 * language.h (range_mode): Delete. Enum definition moved to
795 language.c.
796 (language_data): Remove la_range_check field.
797 (language_defn::range_checking_on_by_default): New member
798 function.
799 * m2-lang.c (m2_language_data): Remove la_range_check initializer.
800 (m2_language::range_checking_on_by_default): New member function.
801 * objc-lang.c (objc_language_data): Remove la_range_check
802 initializer.
803 * opencl-lang.c (opencl_language_data): Likewise.
804 * p-lang.c (pascal_language_data): Likewise.
805 (pascal_language::range_checking_on_by_default): New member
806 function.
807 * rust-lang.c (rust_language_data): Remove la_range_check
808 initializer.
809 (rust_language::range_checking_on_by_default): New member
810 function.
811
bf92aec5
AB
8122020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
813
814 * dwarf2/read.c (dwarf2_physname): Remove special case for
815 language_go.
816 * go-lang.c (go_language::store_sym_names_in_linkage_form_p): New
817 member function.
818
d3355e4d
AB
8192020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
820
821 * ada-lang.c (ada_language_data): Remove
822 la_store_sym_names_in_linkage_form_p initializer.
823 (ada_language::store_sym_names_in_linkage_form_p): New member
824 function.
825 * c-lang.c (c_language_data): Remove
826 la_store_sym_names_in_linkage_form_p initializer.
827 (c_language::store_sym_names_in_linkage_form_p): New member
828 function.
829 (cplus_language_data): Remove la_store_sym_names_in_linkage_form_p
830 initializer.
831 (asm_language_data): Likewise.
832 (asm_language::store_sym_names_in_linkage_form_p): New member
833 function.
834 (minimal_language_data): Remove
835 la_store_sym_names_in_linkage_form_p initializer.
836 (minimal_language::store_sym_names_in_linkage_form_p): New member
837 function.
838 * d-lang.c (d_language_data): Remove
839 la_store_sym_names_in_linkage_form_p initializer.
840 * dwarf2/read.c (dwarf2_physname): Update call to
841 store_sym_names_in_linkage_form_p.
842 * f-lang.c (f_language_data): Remove
843 la_store_sym_names_in_linkage_form_p initializer.
844 * go-lang.c (go_language_data): Remove
845 la_store_sym_names_in_linkage_form_p initializer.
846 * language.c (unknown_language_data): Remove
847 la_store_sym_names_in_linkage_form_p initializer.
848 (unknown_language::store_sym_names_in_linkage_form_p): New member
849 function.
850 (auto_language_data): Remove la_store_sym_names_in_linkage_form_p
851 initializer.
852 (auto_language::store_sym_names_in_linkage_form_p): New member
853 function.
854 * language.h (language_data): Remove
855 la_store_sym_names_in_linkage_form_p member variable.
856 (language_defn::store_sym_names_in_linkage_form_p): New member
857 function.
858 * m2-lang.c (m2_language_data): Remove
859 la_store_sym_names_in_linkage_form_p initializer.
860 * objc-lang.c (objc_language_data): Likewise.
861 * opencl-lang.c (opencl_language_data): Likewise.
862 * p-lang.c (pascal_language_data): Likewise.
863 * rust-lang.c (rust_language_data): Likewise.
864
22c12a6c
AB
8652020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
866
867 * ada-lang.c (ada_language_data): Remove string_lower_bound
868 initializer.
869 * c-lang.c (c_language_data): Likewise.
870 (cplus_language_data): Likewise.
871 (asm_language_data): Likewise.
872 (minimal_language_data): Likewise.
873 * d-lang.c (d_language_data): Likewise.
874 * f-lang.c (f_language_data): Likewise.
875 * go-lang.c (go_language_data): Likewise.
876 * language.c (unknown_language_data): Likewise.
877 (auto_language_data): Likewise.
878 * language.h (language_data): Remove string_lower_bound field.
879 (language_defn::string_lower_bound): New member function.
880 * m2-lang.c (m2_language_data): Remove string_lower_bound
881 initializer.
882 (m2_language::string_lower_bound): New member function.
883 * objc-lang.c (objc_language_data): Remove string_lower_bound
884 initializer.
885 * opencl-lang.c (opencl_language_data): Likewise.
886 * p-lang.c (pascal_language_data): Likewise.
887 * rust-lang.c (rust_language_data): Likewise.
888 * valops.c (value_cstring): Update call to string_lower_bound.
889 (value_string): Likewise.
890 * value.c (allocate_repeated_value): Likewise.
891
1c236ddd
AB
8922020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
893
894 * valops.c (value_repeat): Fix incorrect argument name in comment.
895
67bd3fd5
AB
8962020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
897
898 * ada-lang.c (ada_language_data): Remove c_style_arrays
899 initializer.
900 (ada_language::c_style_arrays_p): New member fuction.
901 * c-lang.c (c_language_data): Remove c_style_arrays
902 initializer.
903 (cplus_language_data): Likewise.
904 (asm_language_data): Likewise.
905 (minimal_language_data): Likewise.
906 * d-lang.c (d_language_data): Likewise.
907 * eval.c (ptrmath_type_p): Update call to c_style_arrays_p.
908 * f-lang.c (f_language_data): Remove c_style_arrays initializer.
909 (f_language::c_style_arrays_p): New member function.
910 * go-lang.c (go_language_data): Remove c_style_arrays initializer.
911 * infcall.c (value_arg_coerce): Update call to c_style_arrays_p.
912 * language.c (unknown_language_data): Remove c_style_arrays
913 initializer.
914 (auto_language_data): Likewise.
915 * language.h (language_data): Remove c_style_arrays field.
916 (language_defn::c_style_arrays_p): New member function.
917 * m2-lang.c (m2_language_data): Remove c_style_arrays initializer.
918 (m2_language::c_style_arrays_p): New member function.
919 * objc-lang.c (objc_language_data): Remove c_style_arrays
920 initializer.
921 * opencl-lang.c (opencl_language_data): Likewise.
922 * p-lang.c (pascal_language_data): Likewise.
923 * rust-lang.c (rust_language_data): Likewise.
924 * valarith.c (value_subscript): Update call to c_style_arrays_p,
925 and update local variable to a bool.
926 * valops.c (value_cast): Update call to c_style_arrays_p.
927 (value_array): Likewise.
928 * value.c (coerce_array): Likewise.
929
85967615
AB
9302020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
931
932 * ada-lang.c (ada_language_data): Remove la_language initializer.
933 * c-lang.c (c_language_data): Likewise.
934 (cplus_language_data): Likewise.
935 (asm_language_data): Likewise.
936 (minimal_language_data): Likewise.
937 * d-lang.c (d_language_data): Likewise.
938 * f-lang.c (f_language_data): Likewise.
939 * go-lang.c (go_language_data): Likewise.
940 * language.c (unknown_language_data): Likewise.
941 (auto_language_data): Likewise.
942 * language.h (language_data): Remove la_language field.
943 (language_defn::language_defn): Initialise la_language field.
944 (language_defn::la_language): New member variable.
945 * m2-lang.c (m2_language_data): Remove la_language field.
946 * objc-lang.c (objc_language_data): Likewise.
947 * opencl-lang.c (opencl_language_data): Likewise.
948 * p-lang.c (pascal_language_data): Likewise.
949 * rust-lang.c (rust_language_data): Likewise.
950
e171d6f1
AB
9512020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
952
953 * ada-lang.c (ada_extensions): Delete, moved into
954 ada_language::filename_extensions.
955 (ada_language_data): Remove la_filename_extensions initializer.
956 (ada_language::filename_extensions): New member function.
957 * c-lang.c (c_extensions): Delete, moved into
958 c_language::filename_extensions.
959 (c_language_data): Remove la_filename_extensions initializer.
960 (c_language::filename_extensions): New member function.
961 (cplus_extensions): Delete, moved into
962 cplus_language::filename_extensions.
963 (cplus_language_data): Remove la_filename_extensions initializer.
964 (cplus_language::filename_extensions): New member function.
965 (asm_extensions): Delete, moved into
966 asm_language::filename_extensions.
967 (asm_language_data): Remove la_filename_extensions initializer.
968 (asm_language::filename_extensions): New member function.
969 (minimal_language_data): Remove la_filename_extensions
970 initializer.
971 * d-lang.c (d_extensions): Delete, moved into
972 d_language::filename_extensions.
973 (d_language_data): Remove la_filename_extensions initializer.
974 (d_language::filename_extensions): New member function.
975 * f-lang.c (f_extensions): Delete, moved into
976 f_language::filename_extensions.
977 (f_language_data): Remove la_filename_extensions initializer.
978 (f_language::filename_extensions): New member function.
979 * go-lang.c (go_language_data): Remove la_filename_extensions
980 initializer.
981 * language.c (add_set_language_command): Update now that
982 filename_extensions returns a vector.
983 (unknown_language_data): Remove la_filename_extensions
984 initializer.
985 (auto_language_data): Likewise.
986 * language.h (language_data): Remove la_filename_extensions field.
987 (language_defn::filename_extensions): New member function.
988 * m2-lang.c (m2_language_data): Remove la_filename_extensions
989 initializer.
990 * objc-lang.c (objc_extensions): Delete, moved into
991 objc_language::filename_extensions.
992 (objc_language_data): Remove la_filename_extensions initializer.
993 (objc_language::filename_extensions): New member function.
994 * opencl-lang.c (opencl_language_data): Remove
995 la_filename_extensions initializer.
996 * p-lang.c (pascal_extensions): Delete, moved into
997 pascal_language::filename_extensions.
998 (pascal_language_data): Remove la_filename_extensions initializer.
999 (pascal_language::filename_extensions): New member function.
1000 * rust-lang.c (rust_extensions): Delete, moved into
1001 rust_language::filename_extensions.
1002 (rust_language_data): Remove la_filename_extensions initializer.
1003 (rust_language::filename_extensions): New member function.
1004 * symfile.c (add_filename_language): Add new assert.
1005
6f7664a9
AB
10062020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
1007
1008 * ada-lang.c (ada_language_data): Remove la_name and
1009 la_natural_name initializers.
1010 (ada_language::name): New member function.
1011 (ada_language::natural_name): New member function.
1012 * c-lang.c (c_language_data): Remove la_name and
1013 la_natural_name initializers.
1014 (c_language::name): New member function.
1015 (c_language::natural_name): New member function.
1016 (cplus_language_data): Remove la_name and
1017 la_natural_name initializers.
1018 (cplus_language::name): New member function.
1019 (cplus_language::natural_name): New member function.
1020 (asm_language_data): Remove la_name and
1021 la_natural_name initializers.
1022 (asm_language::name): New member function.
1023 (asm_language::natural_name): New member function.
1024 (minimal_language_data): Remove la_name and
1025 la_natural_name initializers.
1026 (minimal_language::name): New member function.
1027 (minimal_language::natural_name): New member function.
1028 * compile/compile.c (compile_to_object): Update call to
1029 lanugage_defn::name.
1030 * d-lang.c (d_language_data): Remove la_name and
1031 la_natural_name initializers.
1032 (d_language::name): New member function.
1033 (d_language::natural_name): New member function.
1034 * expprint.c (print_subexp_standard): Update call to
1035 language_defn::name.
1036 (dump_raw_expression): Likewise
1037 (dump_prefix_expression): Likewise.
1038 * f-lang.c (f_language_data): Remove la_name and
1039 la_natural_name initializers.
1040 (f_language::name): New member function.
1041 (f_language::natural_name): New member function.
1042 * go-lang.c (go_language_data): Remove la_name and
1043 la_natural_name initializers.
1044 (go_language::name): New member function.
1045 (go_language::natural_name): New member function.
1046 * language.c (show_language_command): Update call to
1047 language_defn::name.
1048 (set_language_command): Likewise.
1049 (language_enum): Likewise.
1050 (language_str): Likewise.
1051 (add_set_language_command): Likewise, use
1052 language_defn::natural_name in the doc string.
1053 (unknown_language_data): Remove la_name and
1054 la_natural_name initializers.
1055 (unknown_language::name): New member function.
1056 (unknown_language::natural_name): New member function.
1057 (auto_language_data): Remove la_name and
1058 la_natural_name initializers.
1059 (auto_language::name): New member function.
1060 (auto_language::natural_name): New member function.
1061 (language_lookup_primitive_type_as_symbol): Update call to
1062 language_defn::name.
1063 * language.h (language_data): Remove la_name and la_natural_name
1064 member variables.
1065 (language_defn::name): New member function.
1066 (language_defn::natural_name): New member function.
1067 * m2-lang.c (m2_language_data): Remove la_name and
1068 la_natural_name initializers.
1069 (m2_language::name): New member function.
1070 (m2_language::natural_name): New member function.
1071 * mi/mi-cmd-var.c (mi_cmd_var_info_expression): Update call to
1072 language_defn::natural_name.
1073 * objc-lang.c (objc_language_data): Remove la_name and
1074 la_natural_name initializers.
1075 (objc_language::name): New member function.
1076 (objc_language::natural_name): New member function.
1077 * opencl-lang.c (opencl_language_data): Remove la_name and
1078 la_natural_name initializers.
1079 (opencl_language::name): New member function.
1080 (opencl_language::natural_name): New member function.
1081 * p-lang.c (pascal_language_data): Remove la_name and
1082 la_natural_name initializers.
1083 (pascal_language::name): New member function.
1084 (pascal_language::natural_name): New member function.
1085 * rust-lang.c (rust_language_data): Remove la_name and
1086 la_natural_name initializers.
1087 (rust_language::name): New member function.
1088 (rust_language::natural_name): New member function.
1089 * symtab.c (lookup_language_this): Update call to
1090 language_defn::name.
1091
5bae7c4e
AB
10922020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
1093
1094 * ada-lang.c (ada_language_data): Remove la_name_of_this
1095 initializer.
1096 * ax-gdb.c (gen_expr): Update call to name_of_this.
1097 * c-exp.y (classify_name): Likewise.
1098 * c-lang.c (c_language_data): Remove la_name_of_this initializer.
1099 (cplus_language_data): Likewise.
1100 (cplus_language::name_of_this): New member function.
1101 (asm_language_data): Remove la_name_of_this initializer.
1102 (minimal_language_data): Likewise.
1103 * d-lang.c (d_language_data): Likewise.
1104 (d_language::name_of_this): New member function.
1105 * expprint.c (print_subexp_standard): Update call to name_of_this.
1106 * f-lang.c (f_language_data): Remove la_name_of_this initializer.
1107 * go-lang.c (go_language_data): Likewise.
1108 * language.c (unknown_language_data): Likewise.
1109 (unknown_language::name_of_this): New member function.
1110 (auto_language_data): Remove la_name_of_this initializer.
1111 (auto_language::name_of_this): New member function.
1112 * language.h (language_data): Delete la_name_of_this member
1113 variable.
1114 (language_defn::name_of_this): New member function.
1115 * m2-lang.c (m2_language_data): Remove la_name_of_this
1116 initializer.
1117 * objc-lang.c (objc_language_data): Likewise.
1118 (objc_language::name_of_this): New member function.
1119 * opencl-lang.c (opencl_language_data): Remove la_name_of_this
1120 initializer.
1121 * p-lang.c (pascal_language_data): Likewise.
1122 (pascal_language::name_of_this): New member function.
1123 * rust-lang.c (rust_language_data): Remove la_name_of_this
1124 initializer.
1125 * symtab.c (lookup_language_this): Update call to name_of_this.
1126 (lookup_symbol_aux): Likewise.
1127 * valops.c (value_of_this): Likewise.
1128
22e3f3ed
AB
11292020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
1130
1131 * ada-lang.c (ada_language_data): Remove
1132 la_struct_too_deep_ellipsis initializer.
1133 (ada_language::struct_too_deep_ellipsis): New member function.
1134 * c-lang.c (c_language_data): Remove la_struct_too_deep_ellipsis
1135 initializer.
1136 (cplus_language_data): Likewise.
1137 (asm_language_data): Likewise.
1138 (minimal_language_data): Likewise.
1139 * cp-valprint.c (cp_print_value): Update call to
1140 struct_too_deep_ellipsis.
1141 * d-lang.c (d_language_data): Remove la_struct_too_deep_ellipsis
1142 initializer.
1143 * f-lang.c (f_language_data): Likewise.
1144 (f_language::struct_too_deep_ellipsis): New member function.
1145 * go-lang.c (go_language_data): Remove la_struct_too_deep_ellipsis
1146 initializer.
1147 * language.c (unknown_language_data): Likewise.
1148 (auto_language_data): Likewise.
1149 * language.h (language_data): Delete la_struct_too_deep_ellipsis
1150 member variable.
1151 (language_defn::struct_too_deep_ellipsis): New member function.
1152 * m2-lang.c (m2_language_data): Remove la_struct_too_deep_ellipsis
1153 initializer.Q
1154 * objc-lang.c (objc_language_data): Likewise.
1155 * opencl-lang.c (opencl_language_data): Likewise.
1156 * p-lang.c (pascal_language_data): Likewise.
1157 * rust-lang.c (rust_language_data): Likewise.
1158 * valprint.c (val_print_check_max_depth): Update call to
1159 struct_too_deep_ellipsis.
1160
ed29e1c7
FW
11612020-09-16 Felix Willgerodt <felix.willgerodt@intel.com>
1162
1163 * MAINTAINERS (Write After Approval): Add myself.
1164
12d8f940
TT
11652020-09-15 Tom Tromey <tom@tromey.com>
1166
1167 * f-valprint.c (f_value_print_inner) <case TYPE_CODE_INT>:
1168 Remove.
1169
6b5a7bc7
TT
11702020-09-15 Tom Tromey <tom@tromey.com>
1171
1172 * rust-lang.c (rust_value_print_inner): Remove TYPE_CODE_MEMBERPTR
1173 and TYPE_CODE_METHODPTR cases.
1174 * c-valprint.c (c_value_print_memberptr): Move to valprint.c.
1175 (c_value_print_inner): Update.
1176 * valprint.c (generic_value_print_memberptr): New function, from
1177 c_value_print_memberptr.
1178 (generic_value_print): Use it. Call cplus_print_method_ptr.
1179
47f0e2ff
TT
11802020-09-15 Tom Tromey <tromey@adacore.com>
1181
1182 * python/python-internal.h (PyInt_FromLong): Remove define.
1183 * python/py-value.c (convert_value_from_python): Use
1184 gdb_py_object_from_longest.
1185 * python/py-type.c (typy_get_code): Use
1186 gdb_py_object_from_longest.
1187 * python/py-symtab.c (salpy_get_line): Use
1188 gdb_py_object_from_longest.
1189 * python/py-symbol.c (sympy_get_addr_class, sympy_line): Use
1190 gdb_py_object_from_longest.
1191 * python/py-record.c (recpy_gap_reason_code): Use
1192 gdb_py_object_from_longest.
1193 * python/py-record-btrace.c (recpy_bt_insn_size)
1194 (recpy_bt_func_level, btpy_list_count): Use
1195 gdb_py_object_from_longest.
1196 * python/py-infthread.c (gdbpy_create_ptid_object): Use
1197 gdb_py_object_from_longest. Fix error handling.
1198 * python/py-framefilter.c (bootstrap_python_frame_filters): Use
1199 gdb_py_object_from_longest.
1200 * python/py-frame.c (frapy_type, frapy_unwind_stop_reason): Use
1201 gdb_py_object_from_longest.
1202 * python/py-breakpoint.c (bppy_get_type, bppy_get_number)
1203 (bppy_get_thread, bppy_get_task, bppy_get_hit_count)
1204 (bppy_get_ignore_count): Use gdb_py_object_from_longest.
1205
512116ce
TT
12062020-09-15 Tom Tromey <tromey@adacore.com>
1207
1208 * python/python.c (gdbpy_parameter_value): Use
1209 gdb_py_object_from_ulongest.
1210
4ab1029c
TT
12112020-09-15 Tom Tromey <tromey@adacore.com>
1212
1213 * python/py-infevents.c (create_register_changed_event_object):
1214 Use gdb_py_object_from_longest.
1215 * python/py-exitedevent.c (create_exited_event_object): Use
1216 gdb_py_object_from_longest.
1217
062534d4
TT
12182020-09-15 Tom Tromey <tromey@adacore.com>
1219
1220 * python/python.c (gdbpy_parameter_value): Use
1221 gdb_py_object_from_longest.
1222 * python/py-type.c (convert_field, typy_range): Use
1223 gdb_py_object_from_longest.
1224 * python/py-tui.c (gdbpy_tui_width, gdbpy_tui_height): Use
1225 gdb_py_object_from_longest.
1226 * python/py-lazy-string.c (stpy_get_length): Use
1227 gdb_py_object_from_longest.
1228 * python/py-infthread.c (thpy_get_num, thpy_get_global_num): Use
1229 gdb_py_object_from_longest.
1230 * python/py-infevents.c (create_memory_changed_event_object): Use
1231 gdb_py_object_from_longest.
1232 * python/py-inferior.c (infpy_get_num): Use
1233 gdb_py_object_from_longest.
1234 (infpy_get_pid): Likewise.
1235
d1cab987
TT
12362020-09-15 Tom Tromey <tromey@adacore.com>
1237
1238 * python/python-internal.h (gdb_py_long_from_ulongest): Remove
1239 defines.
1240 * python/py-value.c (valpy_long): Use
1241 gdb_py_object_from_ulongest.
1242 * python/py-symtab.c (salpy_get_pc): Use
1243 gdb_py_object_from_ulongest.
1244 (salpy_get_last): Likewise.
1245 * python/py-record-btrace.c (recpy_bt_insn_pc): Use
1246 gdb_py_object_from_ulongest.
1247 * python/py-lazy-string.c (stpy_get_address): Use
1248 gdb_py_object_from_ulongest.
1249 * python/py-frame.c (frapy_pc): Use gdb_py_object_from_ulongest.
1250 * python/py-arch.c (archpy_disassemble): Use
1251 gdb_py_object_from_ulongest and gdb_py_object_from_longest. Fix
1252 error handling.
1253
4bde49dc
TT
12542020-09-15 Tom Tromey <tromey@adacore.com>
1255
1256 * python/python-internal.h (gdb_py_long_from_longest): Remove
1257 defines.
1258 * python/py-value.c (valpy_long): Use gdb_py_object_from_longest.
1259 * python/py-type.c (convert_field, typy_get_sizeof): Use
1260 gdb_py_object_from_longest.
1261 * python/py-record-btrace.c (btpy_list_index): Use
1262 gdb_py_object_from_longest.
1263
37431074
TT
12642020-09-15 Tom Tromey <tromey@adacore.com>
1265
1266 * python/python-internal.h (PyInt_FromSsize_t): Remove define.
1267 * python/py-record.c (recpy_element_number): Use
1268 gdb_py_object_from_longest.
1269 (recpy_gap_number): Likewise.
1270
cbe25684
TT
12712020-09-15 Tom Tromey <tromey@adacore.com>
1272
1273 * top.c (ui::ui): Update.
1274 (highest_ui_num): Remove.
1275 * top.h (struct ui) <num>: Remove.
1276
db92ac45
TT
12772020-09-15 Tom Tromey <tromey@adacore.com>
1278
1279 * unittests/memory-map-selftests.c (valid_mem_map): Now array.
1280 * ui-style.c (ansi_regex_text): Now array.
1281 * rust-exp.y (number_regex_text): Now array.
1282 * linespec.c (linespec_quote_characters): Now array.
1283 * jit.c (jit_break_name, jit_descriptor_name, reader_init_fn_sym):
1284 Now arrays.
1285
d2b31b67
SM
12862020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
1287
1288 * debuginfod-support.c (debuginfod_client_deleter): New.
1289 (debuginfod_client_up): New.
1290 (debuginfod_init): Return debuginfod_client_up.
1291 (debuginfod_source_query): Adjust.
1292 (debuginfod_debuginfo_query): Adjust.
1293
3246bd8e
SM
12942020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
1295
1296 * debuginfod-support.c (debuginfod_source_query): Use
1297 make_unique_xstrdup.
1298
10242f36
SM
12992020-09-14 Simon Marchi <simon.marchi@efficios.com>
1300
1301 * gdbtypes.h (TYPE_INSTANCE_FLAGS): Remove, replace all uses
1302 with `type::instance_flags`.
1303
e1044e6a
MM
13042020-09-14 Michael Mullin <masmullin@gmail.com>
1305
1306 * xml-tdesc.c [!defined(HAVE_LIBEXPAT)] (tdesc_parse_xml):
1307 Remove baton parameter.
1308
04902b09
PA
13092020-09-14 Pedro Alves <pedro@palves.net>
1310
1311 * Makefile.in (SELFTESTS_SRCS): Add
1312 unittests/enum-flags-selftests.c.
1313 * btrace.c (ftrace_update_caller, ftrace_fixup_calle): Use
1314 btrace_function_flags instead of enum btrace_function_flag.
1315 * compile/compile-c-types.c (convert_qualified): Use
1316 enum_flags::raw.
1317 * compile/compile-cplus-symbols.c (convert_one_symbol)
1318 (convert_symbol_bmsym):
1319 * compile/compile-cplus-types.c (compile_cplus_convert_method)
1320 (compile_cplus_convert_struct_or_union_methods)
1321 (compile_cplus_instance::convert_qualified_base):
1322 * go-exp.y (parse_string_or_char): Add cast to int.
1323 * unittests/enum-flags-selftests.c: New file.
1324 * record-btrace.c (btrace_thread_flag_to_str): Change parameter's
1325 type to btrace_thread_flags from btrace_thread_flag.
1326 (record_btrace_cancel_resume, record_btrace_step_thread): Change
1327 local's type to btrace_thread_flags from btrace_thread_flag. Add
1328 cast in DEBUG call.
1329
69896a2c
PA
13302020-09-14 Pedro Alves <pedro@palves.net>
1331
1332 * c-typeprint.c (c_type_print_modifier): Adjust to rename.
1333 * gdbtypes.c (address_space_name_to_int): Rename to ...
1334 (address_space_name_to_type_instance_flags): ... this.
1335 (address_space_int_to_name): Rename to ...
1336 (address_space_type_instance_flags_to_name): ... this.
1337 * gdbtypes.h (address_space_name_to_int): Rename to ...
1338 (address_space_name_to_type_instance_flags): ... this.
1339 (address_space_int_to_name): Rename to ...
1340 (address_space_type_instance_flags_to_name): ... this.
1341 * type-stack.c (type_stack::insert): Adjust to rename.
1342 * type-stack.h (type_stack::insert): Likewise.
1343
314ad88d
PA
13442020-09-14 Pedro Alves <pedro@palves.net>
1345 Andrew Burgess <andrew.burgess@embecosm.com>
1346
1347 * avr-tdep.c (avr_address_class_type_flags): Return
1348 type_instance_flags.
1349 (avr_address_class_type_flags_to_name): Take a
1350 type_instance_flags.
1351 (avr_address_class_name_to_type_flags): Return bool and take a
1352 type_instance_flags.
1353 * d-lang.c (build_d_types): Use type::set_instance_flags.
1354 * ft32-tdep.c (ft32_address_class_type_flags): Return
1355 type_instance_flags.
1356 (ft32_address_class_type_flags_to_name): Take a
1357 type_instance_flags.
1358 (ft32_address_class_name_to_type_flags): Return bool and take a
1359 type_instance_flags.
1360 (ft32_gdbarch_init): Use type::set_instance_flags.
1361 * eval.c (fake_method::fake_method): Use type::set_instance_flags.
1362 * gdbarch.h, gdbarch.c: Regenerate.
1363 * gdbarch.sh (address_class_type_flags): Use type_instance_flags.
1364 (address_class_name_to_type_flags): Use type_instance_flags and
1365 bool.
1366 * gdbtypes.c (address_space_name_to_int)
1367 (address_space_int_to_name, make_qualified_type): Use
1368 type_instance_flags.
1369 (make_qualified_type): Use type_instance_flags and
1370 type::set_instance_flags.
1371 (make_type_with_address_space, make_cv_type, make_vector_type)
1372 (check_typedef): Use type_instance_flags.
1373 (recursive_dump_type): Cast type_instance_flags to unsigned for
1374 printing.
1375 (copy_type_recursive): Use type::set_instance_flags.
1376 (gdbtypes_post_init): Use type::set_instance_flags.
1377 * gdbtypes.h (struct type) <instance_flags>: Rename to ...
1378 <m_instance_flags>: ... this.
1379 <instance_flags, set_instance_flags>: New methods.
1380 (TYPE_INSTANCE_FLAGS): Use the instance_flags method.
1381 (SET_TYPE_INSTANCE_FLAGS): New.
1382 (address_space_name_to_int, address_space_int_to_name)
1383 (make_type_with_address_space): Pass flags using
1384 type_instance_flags instead of int.
1385 * stabsread.c (cleanup_undefined_types_noname): Use
1386 type::set_instance_flags.
1387 * s390-tdep.c (s390_address_class_type_flags): Return
1388 type_instance_flags.
1389 (s390_address_class_type_flags_to_name): Take a
1390 type_instance_flags.
1391 (s390_address_class_name_to_type_flags): Return bool and take a
1392 type_instance_flags.
1393 * type-stack.c (type_stack::follow_types): Use
1394 type_instance_flags.
1395 * dwarf2/read.c (read_tag_pointer_type): Use type_instance_flags.
1396
27087b7f
TT
13972020-09-14 Tom Tromey <tromey@adacore.com>
1398
1399 * x86-tdep.h (x86_in_indirect_branch_thunk): Update.
1400 * x86-tdep.c (x86_is_thunk_register_name)
1401 (x86_in_indirect_branch_thunk): Update.
1402 * sparc64-tdep.c (sparc64_fpu_register_names)
1403 (sparc64_cp0_register_names, sparc64_register_names)
1404 (sparc64_pseudo_register_names): Now const.
1405 * sparc-tdep.h (struct gdbarch_tdep) <fpu_register_names,
1406 cp0_registers_num>: Now const.
1407 * sparc-tdep.c (sparc_core_register_names)
1408 (sparc32_fpu_register_names, sparc32_cp0_register_names)
1409 (sparc32_pseudo_register_names): Now const.
1410 (validate_tdesc_registers): Update.
1411 * rust-lang.c (rust_extensions): Now const.
1412 * p-lang.c (p_extensions): Now const.
1413 * objc-lang.c (objc_extensions): Now const.
1414 * nto-tdep.c (nto_thread_state_str): Now const.
1415 * moxie-tdep.c (moxie_register_names): Now const.
1416 * mips-tdep.h (struct gdbarch_tdep) <mips_processor_reg_names>:
1417 Now const.
1418 * mips-tdep.c (mips_generic_reg_names, mips_tx39_reg_names)
1419 (mips_linux_reg_names): Now const.
1420 (mips_gdbarch_init): Update.
1421 * microblaze-tdep.c (microblaze_register_names): Now const.
1422 * m68k-tdep.c (m68k_register_names): Now const.
1423 * m32r-tdep.c (m32r_register_names): Now const.
1424 * ia64-tdep.c (ia64_register_names): Now const.
1425 * i386-tdep.h (struct gdbarch_tdep) <register_names,
1426 ymmh_register_names, ymm16h_regnum, mpx_register_names,
1427 k_register_names, zmmh_register_names, xmm_avx512_register_names,
1428 ymm_avx512_register_names, pkeys_register_names>: Now const.
1429 * i386-tdep.c (i386_register_names, i386_zmm_names)
1430 (i386_zmmh_names, i386_k_names, i386_ymm_names, i386_ymmh_names)
1431 (i386_mpx_names, i386_pkeys_names, i386_bnd_names)
1432 (i386_mmx_names, i386_byte_names, i386_word_names): Now const.
1433 * f-lang.c (f_extensions): Now const.
1434 * d-lang.c (d_extensions): Now const.
1435 * csky-tdep.c (csky_register_names): Now const.
1436 * charset.c (default_charset_names, charset_enum): Now const.
1437 (_initialize_charset): Update.
1438 * c-lang.c (c_extensions, cplus_extensions, asm_extensions): Now
1439 const.
1440 * bsd-uthread.c (bsd_uthread_solib_names): Now const.
1441 (bsd_uthread_solib_loaded): Update.
1442 (bsd_uthread_state): Now const.
1443 * amd64-tdep.c (amd64_register_names, amd64_ymm_names)
1444 (amd64_ymm_avx512_names, amd64_ymmh_names)
1445 (amd64_ymmh_avx512_names, amd64_mpx_names, amd64_k_names)
1446 (amd64_zmmh_names, amd64_zmm_names, amd64_xmm_avx512_names)
1447 (amd64_pkeys_names, amd64_byte_names, amd64_word_names)
1448 (amd64_dword_names): Now const.
1449 * agent.c (can_use_agent_enum): Now const.
1450 * ada-tasks.c (task_states, long_task_states): Now const.
1451 * ada-lang.c (known_runtime_file_name_patterns)
1452 (known_auxiliary_function_name_patterns, attribute_names)
1453 (standard_exc, ada_extensions): Now const.
1454
89806626
SM
14552020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
1456
1457 * bcache.h (struct bcache) <bcache>: Remove constructor.
1458 <m_hash_function, m_compare_function>: Remove.
1459 <~bcache>: Make virtual.
1460 <compare>: Remove static method, introduce virtual method.
1461 <default_hash>: Remove.
1462 <hash>: New virtual method.
1463 * bcache.c (bcache::expand_hash_table): Update.
1464 (bcache::insert): Update.
1465 (bcache::hash): New.
1466 (bcache::compare): Update comment and parameter names.
1467 * gdbtypes.c (types_deeply_equal): Update.
1468 * psymtab.h (struct psymbol_bcache): New struct.
1469 (class psymtab_storage) <psymtab_storage>: Make default.
1470 <psymbol_cache>: Change type to psymbol_bcache.
1471 * psymtab.c (psymtab_storage::psymtab_storage): Remove.
1472 (psymbol_hash): Change to...
1473 (psymbol_bcache::hash): ... this.
1474 (psymbol_compare): Change to...
1475 (psymbol_bcache::compare): ... this.
1476
677c92fe
SM
14772020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
1478
1479 * linux-nat.c (linux_nat_wait_1): Don't use inferior_ptid when
1480 checking for initial lwp.
1481
3eba3a01
TT
14822020-09-14 Tom Tromey <tromey@adacore.com>
1483
1484 * m68k-tdep.c (m68k_extract_return_value): Use
1485 pointer_result_regnum.
1486 (m68k_store_return_value): Likewise.
1487 (m68k_reg_struct_return_p): Handle vectors and arrays.
1488 (m68k_return_value): Handle arrays.
1489 (m68k_svr4_return_value): Fix single-element aggregate handling.
1490 Handle long double. Adjust for embedded ABI.
1491 (m68k_svr4_init_abi): Set pointer_result_regnum.
1492 (m68k_embedded_init_abi): New function.
1493 (m68k_gdbarch_init): Handle Tag_GNU_M68K_ABI_FP.
1494 (m68k_osabi_sniffer): New function.
1495 (_initialize_m68k_tdep): Register osabi sniffer.
1496 * m68k-tdep.h (struct gdbarch_tdep) <pointer_result_regnum>: New
1497 member.
1498
33f4dd48
SM
14992020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
1500
1501 * xml-support.c (xml_fetch_content_from_file): Replace xfree
1502 with gdb::unique_xmalloc_ptr<char>.
1503
8400a90d
SM
15042020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
1505
1506 * xml-support.h (xml_fetch_another): Change type to be a
1507 function_view.
1508 (xml_process_xincludes): Remove baton parameter.
1509 (xml_fetch_content_from_file): Change baton parameter to
1510 dirname.
1511 * xml-support.c (struct xinclude_parsing_data)
1512 <xinclude_parsing_data>: Remove baton parameter.
1513 <fetcher_baton>: Remove.
1514 (xinclude_start_include): Adjust.
1515 (xml_process_xincludes): Adjust.
1516 (xml_fetch_content_from_file): Replace baton parameter with
1517 dirname.
1518 * xml-syscall.c (syscall_parse_xml): Remove baton parameter.
1519 (xml_init_syscalls_info): Use a lambda.
1520 * xml-tdesc.c (tdesc_parse_xml): Remove baton parameter.
1521 (file_read_description_xml): Use a lambda.
1522 (fetch_available_features_from_target): Change baton parameter
1523 to target_ops.
1524 (target_read_description_xml): Use a lambda.
1525 (target_fetch_description_xml): Use a lambda.
1526 (string_read_description_xml): Update.
1527
04f5bab2
SM
15282020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
1529
1530 * gdbtypes.h (TYPE_ENDIANITY_NOT_DEFAULT): Remove, replace all
1531 uses with type::endianity_is_not_default.
1532
db558e34
SM
15332020-09-14 Simon Marchi <simon.marchi@efficios.com>
1534
1535 * gdbtypes.h (struct type) <endianity_is_not_default,
1536 set_endianity_is_not_default>: New methods.
1537 (TYPE_ENDIANITY_NOT_DEFAULT): Use
1538 type::endianity_is_not_default, change all write call sites to
1539 use type::set_endianity_is_not_default.
1540
22c4c60c
SM
15412020-09-14 Simon Marchi <simon.marchi@efficios.com>
1542
1543 * gdbtypes.h (TYPE_FIXED_INSTANCE): Remove, replace all
1544 uses with type::is_fixed_instance.
1545
9cdd0d12
SM
15462020-09-14 Simon Marchi <simon.marchi@efficios.com>
1547
1548 * gdbtypes.h (struct type) <is_fixed_instance,
1549 set_is_fixed_instance>: New methods.
1550 (TYPE_FIXED_INSTANCE): Use type::is_fixed_instance, change all
1551 write call sites to use type::set_is_fixed_instance.
1552
0becda7a
SM
15532020-09-14 Simon Marchi <simon.marchi@efficios.com>
1554
1555 * gdbtypes.h (TYPE_GNU_IFUNC): Remove, replace all
1556 uses with type::is_gnu_ifunc.
1557
03cc7249
SM
15582020-09-14 Simon Marchi <simon.marchi@efficios.com>
1559
1560 * gdbtypes.h (struct type) <is_gnu_ifunc, set_is_gnu_ifunc>: New methods.
1561 (TYPE_GNU_IFUNC): Use type::is_gnu_ifunc, change all write call sites to
1562 use type::set_is_gnu_ifunc.
1563
3f46044c
SM
15642020-09-14 Simon Marchi <simon.marchi@efficios.com>
1565
1566 * gdbtypes.h (TYPE_STUB_SUPPORTED): Remove, replace all
1567 uses with type::stub_is_supported.
1568
9baccff6
SM
15692020-09-14 Simon Marchi <simon.marchi@efficios.com>
1570
1571 * gdbtypes.h (struct type) <stub_is_supported, set_stub_is_supported>: New methods.
1572 (TYPE_STUB_SUPPORTED): Use type::stub_is_supported, change all write call sites to
1573 use type::set_stub_is_supported.
1574
bd63c870
SM
15752020-09-14 Simon Marchi <simon.marchi@efficios.com>
1576
1577 * gdbtypes.h (TYPE_VECTOR): Remove, replace all
1578 uses with type::is_vector.
1579
2062087b
SM
15802020-09-14 Simon Marchi <simon.marchi@efficios.com>
1581
1582 * gdbtypes.h (struct type) <is_vector, set_is_vector>: New methods.
1583 (TYPE_VECTOR): Use type::is_vector, change all write call sites to
1584 use type::set_is_vector.
1585
a409645d
SM
15862020-09-14 Simon Marchi <simon.marchi@efficios.com>
1587
1588 * gdbtypes.h (TYPE_VARARGS): Remove, replace all
1589 uses with type::has_varargs.
1590
1d6286ed
SM
15912020-09-14 Simon Marchi <simon.marchi@efficios.com>
1592
1593 * gdbtypes.h (struct type) <has_varargs, set_has_varargs>: New methods.
1594 (TYPE_VARARGS): Use type::has_varargs, change all write call sites to
1595 use type::set_has_varargs.
1596
7f9f399b
SM
15972020-09-14 Simon Marchi <simon.marchi@efficios.com>
1598
1599 * gdbtypes.h (TYPE_PROTOTYPED): Remove, replace all
1600 uses with type::is_prototyped.
1601
27e69b7a
SM
16022020-09-14 Simon Marchi <simon.marchi@efficios.com>
1603
1604 * gdbtypes.h (struct type) <is_prototyped, set_is_prototyped>:
1605 New methods.
1606 (TYPE_PROTOTYPED): Use type::is_prototyped, change all write
1607 call sites to use type::set_is_prototyped.
1608
d2183968
SM
16092020-09-14 Simon Marchi <simon.marchi@efficios.com>
1610
1611 * gdbtypes.h (TYPE_TARGET_STUB): Remove, replace all
1612 uses with type::target_is_stub.
1613
8f53807e
SM
16142020-09-14 Simon Marchi <simon.marchi@efficios.com>
1615
1616 * gdbtypes.h (struct type) <target_is_stub, set_target_is_stub>:
1617 New methods.
1618 (TYPE_TARGET_STUB): Use type::is_stub, change all write call
1619 sites to use type::set_target_is_stub.
1620
e46d3488
SM
16212020-09-14 Simon Marchi <simon.marchi@efficios.com>
1622
1623 * gdbtypes.h (TYPE_STUB): Remove, replace all
1624 uses with type::is_stub.
1625
b4b73759
SM
16262020-09-14 Simon Marchi <simon.marchi@efficios.com>
1627
1628 * gdbtypes.h (struct type) <is_stub, set_is_stub>: New methods.
1629 (TYPE_STUB): Use type::is_stub, change all write call sites to
1630 use type::set_is_stub.
1631
20ce4123
SM
16322020-09-14 Simon Marchi <simon.marchi@efficios.com>
1633
1634 * gdbtypes.h (TYPE_NOSIGN): Remove, replace all uses with
1635 type::has_no_signedness.
1636
15152a54
SM
16372020-09-14 Simon Marchi <simon.marchi@efficios.com>
1638
1639 * gdbtypes.h (struct type) <has_no_signedness,
1640 set_has_no_signedness>: New methods.
1641 (TYPE_NOSIGN): Use type::has_no_signedness, change all write
1642 call sites to use type::set_has_no_signedness.
1643
c6d940a9
SM
16442020-09-14 Simon Marchi <simon.marchi@efficios.com>
1645
1646 * gdbtypes.h (TYPE_UNSIGNED): Remove, replace all uses with
1647 type::is_unsigned.
1648
653223d3
SM
16492020-09-14 Simon Marchi <simon.marchi@efficios.com>
1650
1651 * gdbtypes.h (struct type) <is_unsigned, set_is_unsigned>: New
1652 methods.
1653 (TYPE_UNSIGNED): Use type::is_unsigned. Change all write call
1654 sites to use type::set_is_unsigned.
1655
55ea94da
FH
16562020-09-14 Fredrik Hederstierna <fredrik.hederstierna@verisure.com>
1657 Adam Renquinha <arenquinha@cimeq.qc.ca>
1658
1659 * arm-tdep.c (arm_m_exception_cache): Try use correct stack
1660 pointer and stack frame offset when unwinding.
1661
6791b117
PA
16622020-09-13 Pedro Alves <pedro@palves.net>
1663
1664 * NEWS: Document "-break-insert --qualified".
1665 * mi/mi-cmd-break.c (mi_cmd_break_insert_1): Handle "--qualified".
1666
77f2120b
PA
16672020-09-13 Pedro Alves <pedro@palves.net>
1668
1669 * linespec.c (classify_mtype, compare_msyms): Delete.
1670 (search_minsyms_for_name): Remove classification logic. Instead
1671 filter out trampoline symbols if we also found an external
1672 function of the same name.
1673
ed6a896c
JB
16742020-09-13 Joel Brobecker <brobecker@adacore.com>
1675
1676 * NEWS: Create a new section for the next release branch.
1677 Rename the section of the current branch, now that it has
1678 been cut.
1679
32aea73e
JB
16802020-09-13 Joel Brobecker <brobecker@adacore.com>
1681
1682 GDB 10 branch created (8087c3fa8b5d695e3e29e69d70d0b35ec902ac59):
1683 * version.in: Bump version to 11.0.50.DATE-git.
1684
8087c3fa
JB
16852020-09-12 Joel Brobecker <brobecker@adacore.com>
1686
1687 * infrun.c (namespace selftests): Only define #if GDB_SELF_TEST.
1688
2a67f09d
FW
16892020-09-11 Moritz Riesterer <moritz.riesterer@intel.com>
1690 Felix Willgerodt <Felix.Willgerodt@intel.com>
1691
1692 * gdbarch.sh: Added bfloat16 type.
1693 * gdbarch.c: Regenerated.
1694 * gdbarch.h: Regenerated.
1695 * gdbtypes.c (floatformats_bfloat16): New struct.
1696 (gdbtypes_post_init): Add builtin_bfloat16.
1697 * gdbtypes.h (struct builtin_type) <builtin_bfloat16>: New member.
1698 (floatformats_bfloat16): New struct.
1699 * i386-tdep.c (i386_zmm_type): Add field "v32_bfloat16"
1700 (i386_ymm_type): Add field "v16_bfloat16"
1701 (i386_gdbarch_init): Add set_gdbarch_bfloat16_format.
1702 * target-descriptions.c (make_gdb_type): Add case TDESC_TYPE_BFLOAT16.
1703 * gdbsupport/tdesc.cc (tdesc_predefined_types): New member bfloat16.
1704 * gdbsupport/tdesc.h (tdesc_type_kind): New member TDESC_TYPE_BFLOAT16.
1705 * features/i386/64bit-avx512.xml: Add bfloat16 type.
1706 * features/i386/64bit-avx512.c: Regenerated.
1707 * features/i386/64bit-sse.xml: Add bfloat16 type.
1708 * features/i386/64bit-sse.c: Regenerated.
1709
1347d111
FW
17102020-09-11 Felix Willgerodt <felix.willgerodt@intel.com>
1711
1712 * i386-tdep.c (i386_zmm_type): Fix field names.
1713 (i386_ymm_type): Fix field names.
1714
7a4e8e7d
TBA
17152020-09-11 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1716
1717 * breakpoint.c: Fix typo in the help message of the
1718 "set breakpoint condition-evaluation" command.
1719
cf4ac4be
KR
17202020-09-10 Kamil Rytarowski <n54@gmx.com>
1721
1722 * nbsd-nat.c: Include "nat/netbsd-nat.h".
1723 * (nbsd_nat_target::pid_to_exec_file)
1724 (nbsd_nat_target::thread_alive, nbsd_nat_target::thread_name)
1725 (nbsd_nat_target::post_startup_inferior)
1726 (nbsd_nat_target::post_attach, nbsd_nat_target::xfer_partial)
1727 (nbsd_add_threads): Switch local code to common gdb/nat functions.
1728 * (nbsd_pid_to_cmdline): Call sysctl from the global namespace.
1729 * (nbsd_thread_lister): Remove.
1730
f404573e
KR
17312020-09-10 Kamil Rytarowski <n54@gmx.com>
1732
1733 * fork-inferior.c (startup_inferior): Avoid double free.
1734
1ccb2c17
KR
17352020-09-10 Kamil Rytarowski <n54@gmx.com>
1736
1737 * netbsd-nat.h (netbsd_nat::qxfer_siginfo): Add.
1738 * netbsd-nat.c (netbsd_nat::qxfer_siginfo): Likewise.
1739
feedfcc7
KR
17402020-09-10 Kamil Rytarowski <n54@gmx.com>
1741
1742 * netbsd-nat.h (netbsd_nat::enable_proc_events): Add.
1743 * netbsd-nat.c: Include <sys/ptrace.h>.
1744 * (netbsd_nat::enable_proc_events): Add.
1745
c489f8c6
KR
17462020-09-10 Kamil Rytarowski <n54@gmx.com>
1747
1748 * netbsd-nat.h: Include "gdbsupport/function-view.h".
1749 * (netbsd_nat::thread_alive, netbsd_nat::thread_name)
1750 (netbsd_nat::for_each_thread): Add.
1751 * netbsd-nat.c: Include "gdbsupport/common-defs.h" and
1752 "gdbsupport/common-debug.h".
1753 * (netbsd_nat::netbsd_thread_lister)
1754 (netbsd_nat::thread_alive, netbsd_nat::thread_name)
1755 (netbsd_nat::for_each_thread): Add.
1756
330662f6
KR
17572020-09-10 Kamil Rytarowski <n54@gmx.com>
1758
1759 * netbsd-nat.h: Include <unistd.h>.
1760 * (netbsd_nat::pid_to_exec_file): Add.
1761 * netbsd-nat.c: Include <sys/types.h> and <sys/sysctl.h>.
1762 * (netbsd_nat::pid_to_exec_file) Add.
1763
70b67307
KR
17642020-09-10 Kamil Rytarowski <n54@gmx.com>
1765
1766 * configure.nat (NATDEPFILES): Add nat/netbsd-nat.o when needed.
1767
99cf6da6
KR
17682020-09-10 Kamil Rytarowski <n54@gmx.com>
1769
1770 * netbsd-nat.h: New file.
1771 * netbsd-nat.c: Likewise.
1772
1b788fb6
TT
17732020-09-09 Tom Tromey <tromey@adacore.com>
1774
1775 * ada-lang.c (remove_extra_symbols): Do not increment when
1776 removing an element
1777
03b0a45f
TT
17782020-09-08 Tom Tromey <tromey@adacore.com>
1779
1780 * gdb_bfd.c (gdb_bfd_open): Call bfd_fopen when fstat fails.
1781
3cae4447
TT
17822020-09-08 Tom Tromey <tromey@adacore.com>
1783
1784 PR win32/25302:
1785 * gdb_bfd.c (gdb_bfd_data): Add "st" parameter.
1786 (gdb_bfd_init_data): New function.
1787 (gdb_bfd_open, gdb_bfd_ref): Use gdb_bfd_init_data.
1788
7f08fd51
TBA
17892020-09-07 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1790
1791 * infrun.c (fetch_inferior_event): Use
1792 `switch_to_target_no_thread` to switch the target.
1793
3e6ff933
TT
17942020-09-06 Tom Tromey <tom@tromey.com>
1795
1796 * symfile.h (dwarf2_free_objfile): Don't declare.
1797
e56798df
AKS
17982020-09-03 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
1799
1800 * gdb/i386-tdep.c (i386_floatformat_for_type): Added conditions
1801 to match 16 byte real/complex type generated by Flang compiler.
1802
8f5c6526
TV
18032020-09-03 Tom de Vries <tdevries@suse.de>
1804
1805 PR breakpoint/26546
1806 * dwarf2/read.c (new_symbol): Tag label symbol without DW_AT_low_pc as
1807 LOC_OPTIMIZED_OUT instead of LOC_LABEL.
1808
c5065df0
SM
18092020-09-02 Simon Marchi <simon.marchi@polymtl.ca>
1810
1811 * maint.c (index_digits): New function.
1812 (struct maint_print_section_data): Remove.
1813 (print_bfd_section_info): Remove print_data parameter, add arg
1814 and index_digits.
1815 (print_objfile_section_info): Likewise.
1816 (print_bfd_section_info_maybe_relocated): Likewise (plus
1817 objfile).
1818 (maintenance_info_sections): Adjust calls.
1819
02c6f3f1
TT
18202020-09-02 Tom Tromey <tromey@adacore.com>
1821
1822 * ada-varobj.c (ada_varobj_get_ptr_number_of_children): Return 0
1823 for null pointers.
1824 (ada_varobj_adjust_for_child_access): Special-case null pointers.
1825
ef5e5b0b
SM
18262020-09-01 Simon Marchi <simon.marchi@polymtl.ca>
1827
1828 * bcache.h (struct bcache) <insert>: Change type of `added` to
1829 pointer to bool.
1830 * bcache.c (bcache::insert): Likewise.
1831 * gdbtypes.c (check_types_worklist): Adjust.
1832 * psymtab.c (add_psymbol_to_bcache): Adjust.
1833
973695d6
KB
18342020-08-31 Kevin Buettner <kevinb@redhat.com>
1835
1836 * corelow.c (unordered_set): Include.
1837 (class core_target): Add field 'm_core_unavailable_mappings'.
1838 (core_target::build_file_mappings): Print only one warning
1839 per inaccessible file. Add unavailable/broken mappings
1840 to m_core_unavailable_mappings.
1841 (core_target::xfer_partial): Call...
1842 (core_target::xfer_memory_via_mappings): New method.
1843
264fc0e2
SM
18442020-08-31 Simon Marchi <simon.marchi@polymtl.ca>
1845
1846 * dwarf2/read.c (struct field_info) <non_public_fields>: Change
1847 type to bool.
1848
2de01bdb
SM
18492020-08-31 Simon Marchi <simon.marchi@polymtl.ca>
1850
1851 * dwarf2/read.c (struct field_info): Fix indentation.
1852
f3bd50f1
SM
18532020-08-31 Simon Marchi <simon.marchi@efficios.com>
1854
1855 * frame-unwind.h (frame_prev_register_ftype): Fix adjective
1856 ordering in comment.
1857 * frame.c (frame_id_eq): Fix indentation.
1858
22b9b4b0
SL
18592020-08-31 Scott Linder <scott@scottlinder.com>
1860 Simon Marchi <simon.marchi@efficios.com>
1861
1862 * inline-frame.c (inline_frame_this_id): Remove assert that prevents
1863 inline frame ids in outer frame.
1864
84154d16
SM
18652020-08-31 Simon Marchi <simon.marchi@efficios.com>
1866
1867 * frame.h (enum frame_id_stack_status) <FID_STACK_OUTER>: New.
1868 * frame.c (fprint_frame_id): Handle FID_STACK_OUTER.
1869 (outer_frame_id): Use FID_STACK_OUTER instead of
1870 FID_STACK_INVALID.
1871 (frame_id_p): Don't check for outer_frame_id.
1872
8efaf6b3
SM
18732020-08-31 Simon Marchi <simon.marchi@efficios.com>
1874
1875 * frame-unwind.c (frame_unwind_got_optimized): Don't set
1876 regnum/frame in value. Call allocate_value_lazy.
1877 * frame.c (frame_unwind_register_value): Use
1878 val_print_not_saved.
1879
fe1fe7ea
SM
18802020-08-31 Simon Marchi <simon.marchi@efficios.com>
1881
1882 * gdbtypes.h (NULL_TYPE): Remove, change all uses to nullptr.
1883
f7c7700d
PA
18842020-08-29 Pedro Alves <pedro@palves.net>
1885
1886 * progspace.c (print_program_space): Use all_inferiors. Switch to
1887 the inferior before calling target_pid_to_str.
1888
e0814aae
TT
18892020-08-28 Tom Tromey <tom@tromey.com>
1890
1891 * xcoffread.c (xcoff_end_psymtab): Update comment.
1892 * dbxread.c (dbx_end_psymtab): Update comment.
1893
626d2320
TV
18942020-08-28 Tom de Vries <tdevries@suse.de>
1895
1896 PR breakpoint/26544
1897 * breakpoint.c (parse_breakpoint_sals): Remove const from struct
1898 event_location.
1899 (create_breakpoint): Same.
1900 (base_breakpoint_decode_location): Same.
1901 (bkpt_create_sals_from_location): Same.
1902 (bkpt_decode_location): Same.
1903 (bkpt_probe_create_sals_from_location): Same.
1904 (bkpt_probe_decode_location): Same.
1905 (tracepoint_create_sals_from_location): Same.
1906 (tracepoint_decode_location): Same.
1907 (tracepoint_probe_decode_location): Same.
1908 (strace_marker_create_sals_from_location): Same.
1909 (strace_marker_decode_location): Same.
1910 (create_sals_from_location_default): Same.
1911 (decode_location_default): Same.
1912 * breakpoint.h (struct breakpoint_ops): Same.
1913 (create_breakpoint): Same.
1914 * linespec.h (decode_line_full): Same.
1915 * linespec.c (decode_line_full): Same. Throw error if
1916 result.size () == 0.
1917
df631783
PA
19182020-08-27 Pedro Alves <pedro@palves.net>
1919
1920 PR gdb/26524
1921 * breakpoint.c (until_break_fsm) <location_breakpoint,
1922 caller_breakpoint>: Delete fields.
1923 <breakpoints>: New field.
1924 <until_break_fsm>: Adjust to save a breakpoint vector instead of
1925 two individual breakpoints.
1926 (until_break_fsm::should_stop): Loop over breakpoints in the
1927 breakpoint vector.
1928 (until_break_fsm::clean_up): Adjust to clear the breakpoints
1929 vector.
1930 (until_break_command): Handle location expanding into multiple
1931 sals.
1932
b2b38aa4
PA
19332020-08-27 Pedro Alves <pedro@palves.net>
1934
1935 PR gdb/26523
1936 * inline-frame.c (stopped_by_user_bp_inline_frame): Also consider
1937 bp_until breakpoints user-specified locations. Update intro
1938 comment.
1939
b886559f
SM
19402020-08-27 Simon Marchi <simon.marchi@polymtl.ca>
1941
1942 * gdb_bfd.h (gdb_bfd_section_iterator, gdb_bfd_section_range,
1943 gdb_bfd_sections): New.
1944 * maint.c (print_bfd_section_info): Change param type to
1945 maint_print_section_data.
1946 (print_objfile_section_info): Likewise.
1947 (print_bfd_section_info_maybe_relocated): Likewise.
1948 (maintenance_info_sections): Use gdb_bfd_sections.
1949
4c6e63bf
SV
19502020-08-25 Shahab Vahedi <shahab@synopsys.com>
1951
1952 * MAINTAINERS: Add ARC target and maintainer.
1953
8d7f0635
AK
19542020-08-25 Anton Kolesov <anton.kolesov@synopsys.com>
1955
1956 * configure.tgt: ARC support for GNU/Linux.
1957 * Makefile.in (ALL_TARGET_OBJS): Likewise.
1958 * arc-linux-tdep.c: New file.
1959 * arc-tdep.h (ARC_STATUS32_L_MASK, ARC_STATUS32_DE_MASK): Declare.
1960 * arc-tdep.c (arc_write_pc): Use it.
1961
fdd8731b
SV
19622020-08-25 Shahab Vahedi <shahab@synopsys.com>
1963
1964 * arc-tdep.c (arc_check_for_hardware_loop): New.
1965 * arc-tdep.h (gdbarch_tdep): New field has_hw_loops.
1966
22459524
SV
19672020-08-25 Shahab Vahedi <shahab@synopsys.com>
1968
1969 * arc-tdep.h: Include "gdbarch.h".
1970
995d3a19
SV
19712020-08-25 Shahab Vahedi <shahab@synopsys.com>
1972
1973 * arch/arc.h
1974 (arc_gdbarch_features): New class to stir the selection of target XML.
1975 (arc_create_target_description): Use FEATURES to choose XML target.
1976 (arc_lookup_target_description): Use arc_create_target_description
1977 to create _new_ target descriptions or return the already created
1978 ones if the FEATURES is the same.
1979 * arch/arc.c: Implementation of prototypes described above.
1980 * gdb/arc-tdep.h (arc_regnum enum): Add more registers.
1981 (arc_gdbarch_features_init): Initialize the FEATURES struct.
1982 * arc-tdep.c (*_feature_name): Make feature names consistent.
1983 (arc_register_feature): A new struct to hold information about
1984 registers of a particular target/feature.
1985 (arc_check_tdesc_feature): Check if XML provides registers in
1986 compliance with ARC_REGISTER_FEATURE structs.
1987 (arc_update_acc_reg_names): Add aliases for r58 and r59.
1988 (determine_*_reg_feature_set): Which feature name to look for.
1989 (arc_gdbarch_features_init): Given MACH and ABFD, initialize FEATURES.
1990 (mach_type_to_arc_isa): Convert from a set of binutils machine types
1991 to expected ISA enums to be used in arc_gdbarch_features structs.
1992 * features/Makefile (FEATURE_XMLFILES): Add new files.
1993 * gdb/features/arc/v1-aux.c: New file.
1994 * gdb/features/arc/v1-aux.xml: Likewise.
1995 * gdb/features/arc/v1-core.c: Likewise.
1996 * gdb/features/arc/v1-core.xml: Likewise.
1997 * gdb/features/arc/v2-aux.c: Likewise.
1998 * gdb/features/arc/v2-aux.xml: Likewise.
1999 * gdb/features/arc/v2-core.c: Likewise.
2000 * gdb/features/arc/v2-core.xml: Likewise.
2001 * NEWS (Changes since GDB 9): Announce obsolence of old feature names.
2002
3945d2d7
GM
20032020-08-25 Gaius Mulley <gaiusmod2@gmail.com>
2004 Andrew Burgess <andrew.burgess@embecosm.com>
2005
2006 PR m2/26372
fc5d6901 2007 * m2-exp.y (exp): Improve comment for non_empty_arglist case, add
3945d2d7
GM
2008 an assert. Remove single element array indexing pattern as the
2009 MULTI_SUBSCRIPT support will handle this case too.
2010
2677f2d3
SM
20112020-08-24 Simon Marchi <simon.marchi@polymtl.ca>
2012
2013 * value.h (valprint_check_validity): Move declaration from
2014 here...
2015 * valprint.h (valprint_check_validity): ... to here.
2016
c426fddb
SM
20172020-08-24 Simon Marchi <simon.marchi@efficios.com>
2018
2019 * debug.h: New file.
2020 * debug.c (debug_prefixed_vprintf): New function.
2021 * infrun.c (infrun_debug_printf_1): Use debug_prefixed_vprintf.
2022 * linux-nat.c (linux_nat_debug_printf_1): Likewise.
2023
1eb8556f
SM
20242020-08-24 Simon Marchi <simon.marchi@efficios.com>
2025
2026 * infrun.h (infrun_debug_printf_1): New function declaration.
2027 (infrun_debug_printf): New macro.
2028 * infrun.c (infrun_debug_printf_1): Use infrun_debug_printf
2029 throughout.
2030 (infrun_debug_printf): New function.
2031 * breakpoint.c (should_be_inserted): Use infrun_debug_printf.
2032 (handle_jit_event): Likewise.
2033
b8fff44e
MW
20342020-08-21 Mark Wielaard <mark@klomp.org>
2035
2036 * ada-lex.l: Extend register warnings diagnostics comment for g++.
2037
d19c3068
SM
20382020-08-22 Simon Marchi <simon.marchi@efficios.com>
2039
2040 * frame.c (enum class frame_id_status): New.
2041 (struct frame_info) <this_id::p>: Change type to frame_id_status.
2042 (fprintf_frame): Update.
2043 (compute_frame_id): Set frame id status to "computing" on entry.
2044 Set it back to "not_computed" on failure and to "computed" on
2045 success.
2046 (get_frame_id): Assert the frame id is not being computed.
2047 (create_sentinel_frame): Use frame_id_status::COMPUTED.
2048 (create_new_frame): Likewise.
2049 (frame_cleanup_after_sniffer): Update assert.
2050
b70e516e
SM
20512020-08-20 Simon Marchi <simon.marchi@polymtl.ca>
2052
2053 * regcache.c (pid_ptid_regcache_map): New type.
2054 (target_ptid_regcache_map): Remove.
2055 (target_pid_ptid_regcache_map): New type.
2056 (regcaches): Change type to target_pid_ptid_regcache_map.
2057 (get_thread_arch_aspace_regcache): Update.
2058 (regcache_thread_ptid_changed): Update, handle pid-like ptid
2059 case.
2060 (regcaches_size): Update.
2061 (regcache_count): Update.
2062 (registers_changed_ptid_target_pid_test): New.
2063 (_initialize_regcache): Register new test.
2064
cdd9148a
SM
20652020-08-20 Simon Marchi <simon.marchi@polymtl.ca>
2066
2067 * regcache.c (regcache_count): New.
2068 (struct regcache_test_data): New.
2069 (regcache_test_data_up): New.
2070 (populate_regcaches_for_test): New.
2071 (regcaches_test): Remove.
2072 (get_thread_arch_aspace_regcache_test): New.
2073 (registers_changed_ptid_all_test): New.
2074 (registers_changed_ptid_target_test): New.
2075 (registers_changed_ptid_target_ptid_test): New.
2076 (regcache_thread_ptid_changed): Remove regcache_count lambda.
2077 (_initialize_regcache): Register new tests.
2078
dd125343
SM
20792020-08-20 Simon Marchi <simon.marchi@polymtl.ca>
2080
2081 * regcache.c (test_get_thread_arch_aspace_regcache): Rename to...
2082 (get_thread_arch_aspace_regcache_and_check): ... this. Remove
2083 gdbarch and aspace parameter. Use current inferior's aspace.
2084 Validate regcache's arch value.
2085 (regcaches_test): Update.
2086
3ee93972
SM
20872020-08-20 Simon Marchi <simon.marchi@polymtl.ca>
2088
2089 * regcache.c (regcaches_test): Call registers_changed.
2090
33bf4c5c
TBA
20912020-08-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2092
2093 * infrun.c (process_event_stop_test): Fix typo "breapoint".
2094
c2fd7fae
AKS
20952020-08-19 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
2096
2097 * amd64-tdep.c (amd64_skip_prologue): Using symbol table
2098 to find the end of prologue for flang compiled binaries.
2099 * arm-tdep.c (arm_skip_prologue): Likewise.
2100 * i386-tdep.c (i386_skip_prologue): Likewise.
2101 * producer.c (producer_is_llvm): New function.
2102 (producer_parsing_tests): Added new tests for clang/flang.
2103 * producer.h (producer_is_llvm): New declaration.
2104
9327494e
SM
21052020-08-18 Simon Marchi <simon.marchi@efficios.com>
2106
2107 * linux-nat.c (linux_nat_debug_printf): New function.
2108 (linux_nat_debug_printf_1): New macro. Use throughout the file.
2109
d138725a
AM
21102020-08-18 Aaron Merey <amerey@redhat.com>
2111
2112 * Makefile.in (DEBUGINFOD_CFLAGS, DEBUGINFOD_LIBS): New variables.
2113 (INTERNAL_CFLAGS_BASE): Add DEBUGINFOD_CFLAGS.
2114 (CLIBS): Add DEBUGINFOD_LIBS.
2115
f9b11e6b
ST
21162020-08-17 Sergei Trofimovich <siarheit@google.com>
2117
2118 * ia64-linux-nat.c: Include "gdbarch.h" to declare used
2119 'gdbarch_num_regs'.
2120
3ae7ab99
TT
21212020-08-17 Tom Tromey <tromey@adacore.com>
2122
2123 * ada-varobj.c (ada_varobj_decode_var): Handle case where
2124 ada_get_decoded_value returns NULL.
2125
b017825f
TT
21262020-08-17 Tom Tromey <tromey@adacore.com>
2127
2128 * python/py-inferior.c (infpy_search_memory): Use
2129 gdb_py_object_from_ulongest.
2130 * python/py-infevents.c (create_inferior_call_event_object)
2131 (create_memory_changed_event_object): Use
2132 gdb_py_object_from_ulongest.
2133 * python/py-linetable.c (ltpy_entry_get_pc): Use
2134 gdb_py_object_from_ulongest.
2135
7635cf79
SM
21362020-08-17 Simon Marchi <simon.marchi@polymtl.ca>
2137
2138 * loc.c (class symbol_needs_eval_context): Fix indentation.
2139
f54be24b
SM
21402020-08-17 Simon Marchi <simon.marchi@polymtl.ca>
2141
2142 * dwarf2/loc.c (dwarf2_loc_desc_get_symbol_read_needs): Use
2143 bool.
2144
53d5a2a5
TV
21452020-08-17 Tom de Vries <tdevries@suse.de>
2146
2147 PR gdb/26393
2148 * gdbtypes.c (dump_dynamic_prop): New function.
2149 (recursive_dump_type): Use dump_dynamic_prop for TYPE_CODE_RANGE.
2150
547ce8f0
TV
21512020-08-15 Tom de Vries <tdevries@suse.de>
2152
2153 PR backtrace/26390
2154 * stack.c (print_frame_args): Temporarily set the selected
2155 frame to FRAME while printing the frame's arguments.
2156
6ea815e7
PFC
21572020-08-14 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
2158
2159 PR breakpoints/26385
2160 * ppc-linux-nat.c (ppc_linux_nat_target::low_prepare_to_resume):
2161 Always clear watchpoint with PTRACE_SET_DEBUGREG.
2162
6e562fa3
PFC
21632020-08-14 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
2164
2165 * ppc-linux-nat.c (ppc_linux_dreg_interface::detect)
2166 (ppc_linux_nat_target::low_prepare_to_resume): Use ptrace () < 0
2167 and >= to check return value instead of == -1 and != -1.
2168
d369b608
SM
21692020-08-14 Simon Marchi <simon.marchi@polymtl.ca>
2170
2171 * utils.h (class gdb_argv) <as_array_view>: New method.
2172 * utils.c (gdb_argv_as_array_view_test): New.
2173 (_initialize_utils): Register selftest.
2174 * maint.c (maintenance_selftest): Use the new method.
2175
b31488a3
KR
21762020-08-13 Kamil Rytarowski <n54@gmx.com>
2177
2178 * target.h (supports_dumpcore, dumpcore): New
2179 function declarations.
2180 * target.c (supports_dumpcore, dumpcore): New
2181 functions.
2182 * target-delegates.c: Rebuild.
2183 * gcore.c (gcore_command): Use target_supports_dumpcore ()
2184 and target_dumpcore ().
2185
002a3166
AM
21862020-08-13 Aaron Merey <amerey@redhat.com>
2187
2188 * debuginfod-support.c: Replace global variables with user_data.
2189
ece5bc8a
SM
21902020-08-13 Simon Marchi <simon.marchi@polymtl.ca>
2191
2192 * maint.c (maintenance_selftest): Split args and pass array_view
2193 to run_tests.
2194
6d8a0a5e
LM
21952020-08-12 Luis Machado <luis.machado@linaro.org>
2196
2197 * value.c (check_type_length_before_alloc): Use ULONGEST to store a
2198 type's length.
2199 Use %s and pulongest to print the length.
2200
7cf663a9
PA
22012020-08-12 Pedro Alves <palves@redhat.com>
2202
2203 * NEWS: Move "Multi-target debugging support" item to the
2204 "Changes since GDB 9" section.
2205
27c7b875
PA
22062020-08-12 Pedro Alves <palves@redhat.com>
2207
2208 PR gdb/26336
2209 * progspace.c (program_space::remove_objfile): Invalidate the
2210 frame cache.
2211
1796a2a1
TV
22122020-08-11 Tom de Vries <tdevries@suse.de>
2213
2214 * MAINTAINERS: Mark ms1 as deleted.
2215
f8e3fe0d
LM
22162020-08-10 Luis Machado <luis.machado@linaro.org>
2217
2218 PR gdb/26310
2219
2220 * aarch64-tdep.c (aarch64_analyze_prologue): Track use of SP/FP and
2221 act accordingly.
2222 (aarch64_analyze_prologue_test): Add more unit tests to exercise
2223 movz/str/stur/stp skipping behavior.
2224
cc308722
LM
22252020-08-10 Luis Machado <luis.machado@linaro.org>
2226
2227 * nat/aarch64-sve-linux-sigcontext.h (SVE_PT_REGS_OFFSET): Use
2228 struct user_sve_header instead of struct sve_context.
2229
041d9819
SM
22302020-08-09 Simon Marchi <simon.marchi@polymtl.ca>
2231
2232 * read.h (dwarf2_fetch_die_loc_sect_off,
2233 dwarf2_fetch_die_loc_cu_off): Replace function pointer +
2234 `void *` parameter with function_view.
2235 * read.c (dwarf2_fetch_die_loc_sect_off,
2236 dwarf2_fetch_die_loc_cu_off): Likewise.
2237 * loc.c (get_frame_pc_for_per_cu_dwarf_call): Remove.
2238 (per_cu_dwarf_call): Adjust.
2239 (get_frame_address_in_block_wrapper): Remove.
2240 (indirect_synthetic_pointer): Adjust.
2241 (get_ax_pc): Remove.
2242 (dwarf2_compile_expr_to_ax): Adjust.
2243
38f8aa06
TV
22442020-08-08 Tom de Vries <tdevries@suse.de>
2245
2246 PR build/26344
2247 * arch/riscv.c (riscv_lookup_target_description): Use an explicit
2248 constructor.
2249 * regcache.c (get_thread_arch_aspace_regcache): Same.
2250
a52b3ae2
TT
22512020-08-07 Tom Tromey <tromey@adacore.com>
2252
2253 * ravenscar-thread.c
2254 (ravenscar_thread_target::set_base_thread_from_ravenscar_task):
2255 New method.
2256 (ravenscar_thread_target::wait): Check
2257 runtime_initialized.
2258 (ravenscar_thread_target::prepare_to_store)
2259 (ravenscar_thread_target::stopped_by_sw_breakpoint)
2260 (ravenscar_thread_target::stopped_by_hw_breakpoint)
2261 (ravenscar_thread_target::stopped_by_watchpoint)
2262 (ravenscar_thread_target::stopped_data_address)
2263 (ravenscar_thread_target::core_of_thread): Use
2264 scoped_restore_current_thread and
2265 set_base_thread_from_ravenscar_task.
2266
0e29517d
TT
22672020-08-07 Tom Tromey <tromey@adacore.com>
2268
2269 * ravenscar-thread.c (update_thread_list): Set inferior_ptid.
2270
592f9bd7
TT
22712020-08-07 Tom Tromey <tromey@adacore.com>
2272
2273 * ravenscar-thread.c (ravenscar_thread_target::wait): Call
2274 update_inferior_ptid before update_thread_list.
2275 (temporarily_change_regcache_ptid): New class.
2276 (ravenscar_thread_target::fetch_registers)
2277 (ravenscar_thread_target::store_registers)
2278 (ravenscar_thread_target::prepare_to_store): Use base thread when
2279 forwarding operation.
2280
39e2018a
TT
22812020-08-07 Tom Tromey <tromey@adacore.com>
2282
2283 * ravenscar-thread.c (ravenscar_thread_target::resume): Handle
2284 "is_pid" case.
2285
2080266b
TT
22862020-08-07 Tom Tromey <tromey@adacore.com>
2287
2288 * ravenscar-thread.c (xfer_partial, enable_btrace, add_thread):
2289 New methods.
2290 (ravenscar_thread_target::get_thread_base_cpu): Check m_cpu_map
2291 first.
2292 (ravenscar_thread_target::add_thread): Rename from
2293 ravenscar_add_thread.
2294 (ravenscar_thread_target::update_thread_list): Use a lambda.
2295 (ravenscar_thread_target::xfer_partial): New method.
2296
78c02f21
TT
22972020-08-07 Tom Tromey <tromey@adacore.com>
2298
2299 * ada-lang.h (ada_task_list_iterator_ftype): Now a
2300 gdb::function_view.
2301 (iterate_over_live_ada_tasks): Change type of argument.
2302 * ada-tasks.c (iterate_over_live_ada_tasks): Change type
2303 of argument.
2304
d5d833af
TT
23052020-08-07 Tom Tromey <tromey@adacore.com>
2306
2307 * ravenscar-thread.c (ravenscar_thread_target) <extra_thread_info>:
2308 Remove.
2309 (ravenscar_thread_target::extra_thread_info): Remove.
2310 (ravenscar_thread_target::pid_to_str): Mention Ravenscar in result;
2311 defer to target beneath for non-Ravenscar threads.
2312
a8ac85bb
TT
23132020-08-07 Tom Tromey <tromey@adacore.com>
2314
2315 * ravenscar-thread.c (ravenscar_thread_target) <get_base_cpu,
2316 get_base_thread_from_ravenscar_task>: Now methods.
2317 <m_cpu_map>: New member.
2318 (ravenscar_thread_target::get_thread_base_cpu): Rename from
2319 ravenscar_get_thread_base_cpu. Check m_cpu_map.
2320 (ravenscar_thread_target::task_is_currently_active): Update.
2321 (ravenscar_thread_target::get_base_thread_from_ravenscar_task):
2322 Now a method.
2323 (ravenscar_thread_target::add_active_thread): Put initial thread
2324 into the m_cpu_map.
2325
550ab58d
TT
23262020-08-07 Tom Tromey <tromey@adacore.com>
2327
2328 * ravenscar-thread.c (ravenscar_thread_target::wait): Return
2329 event_ptid.
2330
e9546579
TT
23312020-08-07 Tom Tromey <tromey@adacore.com>
2332
2333 * ravenscar-thread.c (ravenscar_thread_target::wait): Check
2334 runtime_initialized.
2335
3d4470e5
TT
23362020-08-07 Tom Tromey <tromey@adacore.com>
2337
2338 * ravenscar-thread.c (ravenscar_thread_target): Don't call
2339 add_active_thread.
2340 (ravenscar_thread_target::add_active_thread): Now public.
2341 (ravenscar_inferior_created): Call add_active_thread after pushing
2342 the target.
2343
888bdb2b
SM
23442020-08-07 Simon Marchi <simon.marchi@polymtl.ca>
2345
2346 * regcache.c (ptid_regcache_map): New type.
2347 (target_ptid_regcache_map): New type.
2348 (regcaches): Change type to target_ptid_regcache_map.
2349 (get_thread_arch_aspace_regcache): Update to regcaches' new
2350 type.
2351 (regcache_thread_ptid_changed): Likewise.
2352 (registers_changed_ptid): Likewise.
2353 (regcaches_size): Likewise.
2354 (regcaches_test): Update.
2355 (regcache_thread_ptid_changed): Update.
2356 * regcache.h (regcache_up): New type.
2357 * gdbsupport/ptid.h (hash_ptid): New struct.
2358
b161a60d
SM
23592020-08-07 Simon Marchi <simon.marchi@efficios.com>
2360
2361 * observable.h (thread_ptid_changed): Add parameter
2362 `process_stratum_target *`.
2363 * infrun.c (infrun_thread_ptid_changed): Add parameter
2364 `process_stratum_target *` and use it.
2365 (selftests): New namespace.
2366 (infrun_thread_ptid_changed): New function.
2367 (_initialize_infrun): Register selftest.
2368 * regcache.c (regcache_thread_ptid_changed): Add parameter
2369 `process_stratum_target *` and use it.
2370 (regcache_thread_ptid_changed): New function.
2371 (_initialize_regcache): Register selftest.
2372 * thread.c (thread_change_ptid): Pass target to
2373 thread_ptid_changed observable.
2374
d2854d8d
CT
23752020-08-06 Caroline Tice <cmtice@google.com>
2376
fe4c3d43
SM
2377 * dwarf2/read.c (struct dwo_file): Update comment on 'sections' field.
2378 (struct dwp_sections): Update field comments. Add loclists and
2379 rnglists fields.
2380 (struct virtual_v2_dwo_sections): Rename struct to
2381 'virtual_v2_or_v5_dwo_sections'; update comments at top of struct; add
2382 size & offset fields for loclists and rnglists.
2383 (struct dwp_hash_table): Add a 'v5' struct field to the union section.
2384 (create_debug_type_hash_table): Add 'DW_UT_split_type' to the check for
2385 skipping dummy type units.
2386 (create_dwp_hash_table): Update the large comment above the function to
2387 discuss Version 5 DWP files as well, with references. Update all the
2388 version checks in the function to check for version 5 as well. Add new
2389 section at the end to create dwp hash table for version 5.
2390 (create_dwp_v2_section): Rename function to
2391 'create_dwp_v2_or_v5_section'. Update function comment appropriately.
2392 Add V5 to error message text.
2393 (create_dwo_unit_in_dwp_v2): Change calls to create_dwp_v2_section
2394 into calls to create_dwp_v2_or_v5_section.
2395 (create_dwo_unit_in_dwp_v5): New function.
2396 (lookup_dwo_unit_in_dwp): Update conditional statement to explicitly
2397 check for version2; add else clause to handle version 5.
2398 (open_and_init_dwo_file): Add code to check dwarf version & only call
2399 create_debug_types_hash_table (with sections.types) if version is not 5;
2400 else call create_debug_type_hash_table, with sections.info.
2401 (dwarf2_locate_v2_dwp_sections): Update function comment to mention
2402 version 5.
2403 (dwarf2_locate_v5_dwp_sections): New function.
2404 (open_and_init_dwp_file): Add else-if clause for version 5 to call
2405 bfd_map_over_sections with dwarf2_locate_v5_dwp_sections.
d2854d8d 2406
159ed7d9
SM
24072020-08-06 Simon Marchi <simon.marchi@efficios.com>
2408
2409 * regcache.h (class regcache): Remove friend
2410 registers_changed_ptid.
2411 <regcache_thread_ptid_changed>: Remove.
2412 <regcaches>: Remove.
2413 * regcache.c (regcache::regcaches): Rename to...
2414 (regcaches): ... this. Make static.
2415 (get_thread_arch_aspace_regcache): Update.
2416 (regcache::regcache_thread_ptid_changed): Rename to...
2417 (regcache_thread_ptid_changed): ... this. Update.
2418 (class regcache_access): Remove.
2419 (regcaches_test): Update.
2420 (_initialize_regcache): Update.
2421 * sparc64-tdep.c, dwarf2/index-write.c, record-btrace.c: Include
2422 <forward_list>.
2423
174981ae
SM
24242020-08-06 Simon Marchi <simon.marchi@efficios.com>
2425
2426 * regcache.h (class regcache) <current_regcache>: Rename to...
2427 <regcaches>: ... this. Move doc here.
2428 * regcache.c (regcache::current_regcache) Rename to...
2429 (regcache::regcaches): ... this. Move doc to header.
2430 (get_thread_arch_aspace_regcache): Update.
2431 (regcache::regcache_thread_ptid_changed): Update.
2432 (registers_changed_ptid): Update.
2433 (class regcache_access) <current_regcache_size>: Rename to...
2434 <regcaches_size>: ... this.
2435 (current_regcache_test): Rename to...
2436 (regcaches_test): ... this.
2437 (_initialize_regcache): Update.
2438
ed908db6
VC
24392020-08-06 Victor Collod <vcollod@nvidia.com>
2440
2441 * amd64-tdep.c (amd64_analyze_prologue): Fix incorrect comment.
2442
b5582ab7
KB
24432020-08-05 Kevin Buettner <kevinb@redhat.com>
2444
2445 * corelow.c (core_target::build_file_mappings): Don't output
2446 null pathname in warning.
2447
ea946b86
SM
24482020-08-05 Simon Marchi <simon.marchi@polymtl.ca>
2449
2450 * gdb.dwarf2/clztest.exp, gdb.dwarf2/dw2-common-block.exp,
2451 gdb.dwarf2/dw2-dup-frame.exp, gdb.dwarf2/dw2-reg-undefined.exp,
2452 gdb.dwarf2/dw2-single-line-discriminators.exp,
2453 dw2-undefined-ret-addr.exp: Pass nopie to compilation options.
2454
57d02173
TT
24552020-08-05 Tom Tromey <tromey@adacore.com>
2456
2457 PR rust/26197:
2458 * dwarf2/read.c (alloc_rust_variant): Handle univariant case.
2459 (quirk_rust_enum): Call alloc_rust_variant for univariant case.
2460 Fix off-by-one and type size errors in ordinary case.
2461
5555c86d
TV
24622020-08-05 Tom de Vries <tdevries@suse.de>
2463
2464 * gdbtypes.c (type_not_allocated, type_not_associated): Use
2465 "prop->const_val () == 0" instead of "prop->const_val () != 0".
2466
97916bfe
SM
24672020-08-04 Simon Marchi <simon.marchi@efficios.com>
2468
2469 * frame.h (frame_id_p): Return bool.
2470 (frame_id_artificial_p): Return bool.
2471 (frame_id_eq): Return bool.
2472 (has_stack_frames): Return bool.
2473 (get_selected_frame): Fix typo in comment.
2474 (get_frame_pc_if_available): Return bool.
2475 (get_frame_address_in_block_if_available): Return bool.
2476 (get_frame_func_if_available): Return bool.
2477 (read_frame_register_unsigned): Return bool.
2478 (get_frame_register_bytes): Return bool.
2479 (safe_frame_unwind_memory): Return bool.
2480 (deprecated_frame_register_read): Return bool.
2481 (frame_unwinder_is): Return bool.
2482 * frame.c (struct frame_info) <prev_arch::p>: Change type to
2483 bool.
2484 <this_id::p>: Likewise.
2485 <prev_p>: Likewise.
2486 (frame_stash_add): Return bool.
2487 (get_frame_id): Use bool.
2488 (frame_id_build_special) Use bool.
2489 (frame_id_build_unavailable_stack): Use bool.
2490 (frame_id_build): Use bool.
2491 (frame_id_p): Return bool, use true/false instead of 1/0.
2492 (frame_id_artificial_p): Likewise.
2493 (frame_id_eq): Likewise.
2494 (frame_id_inner): Likewise.
2495 (get_frame_func_if_available): Likewise.
2496 (read_frame_register_unsigned): Likewise.
2497 (deprecated_frame_register_read): Likewise.
2498 (get_frame_register_bytes): Likewise.
2499 (has_stack_frames): Likewise.
2500 (inside_main_func): Likewise.
2501 (inside_entry_func): Likewise.
2502 (get_frame_pc_if_available): Likewise.
2503 (get_frame_address_in_block_if_available): Likewise.
2504 (frame_unwinder_is): Likewise.
2505 (safe_frame_unwind_memory): Likewise.
2506 (frame_unwind_arch): Likewise.
2507
fedfee88
SM
25082020-08-04 Simon Marchi <simon.marchi@efficios.com>
2509
2510 * frame.c (frame_info) <prev_func> <p>: Rename to status, change
2511 type to cached_copy_status.
2512 (fprintf_frame): Adjust.
2513 (get_frame_func_if_available): Adjust.
2514 (frame_cleanup_after_sniffer): Adjust.
2515
6cfa9b59
MW
25162020-08-04 Mark Wielaard <mark@klomp.org>
2517
2518 * MAINTAINERS (Write After Approval): Update email address.
2519
66d6346b
SM
25202020-08-04 Simon Marchi <simon.marchi@polymtl.ca>
2521
2522 * gdbtypes.h (TYPE_DYN_PROP_ADDR): Remove, replace uses with
2523 dynamic_prop::const_val.
2524
8a6d5e35
SM
25252020-08-04 Simon Marchi <simon.marchi@polymtl.ca>
2526
2527 * gdbtypes.h (TYPE_DYN_PROP_KIND): Remove, replace uses with
2528 dynamic_prop::kind.
2529
51d6067d
SM
25302020-08-04 Simon Marchi <simon.marchi@polymtl.ca>
2531
2532 * gdbtypes.h (TYPE_DYN_PROP_BATON): Remove.
2533
b26e2ae7
JM
25342020-08-04 Jose E. Marchesi <jose.marchesi@oracle.com>
2535
2536 * configure.tgt: Set gdb_sim for bpf-*-* targets.
2537
39791af2
JM
25382020-08-04 Weimin Pan <weimin.pan@oracle.com>
2539 Jose E. Marchesi <jose.marchesi@oracle.com>
2540
2541 * configure.tgt: Add entry for bpf-*-*.
2542 * Makefile.in (ALL_TARGET_OBS): Add bpf-tdep.o
2543 (ALLDEPFILES): Add bpf-tdep.c.
2544 * bpf-tdep.c: New file.
2545 * MAINTAINERS: Add bpf target and maintainer.
2546 * NEWS: Mention the support for the new target.
2547
521894aa
TV
25482020-08-04 Tom de Vries <tdevries@suse.de>
2549
2550 PR symtab/23270
2551 * dwarf2/read.c (find_partial_die): Change internal error into Dwarf
2552 Error.
2553
5d6356e9
JB
25542020-08-03 John Baldwin <jhb@FreeBSD.org>
2555
2556 * syscalls/freebsd.xml: Regenerate.
2557
0cf82b81
JB
25582020-08-03 John Baldwin <jhb@FreeBSD.org>
2559
2560 * syscalls/update-freebsd.sh: Fix usage and year range.
2561
8f34b746
TV
25622020-08-03 Tom de Vries <tdevries@suse.de>
2563
2564 PR symtab/26333
2565 * dwarf2/read.c (dwarf_decode_lines_1): Ignore
2566 DW_LNE_lo_user/DW_LNE_hi_user range.
2567
5e500d33
SM
25682020-07-30 Simon Marchi <simon.marchi@polymtl.ca>
2569
2570 PR ada/26318
2571 * ada-lang.c (ada_modulus): Return 0 if property is not of const
2572 kind.
2573
78319c15
TBA
25742020-07-30 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2575
2576 * breakpoint.c (set_breakpoint_condition): Do minor refactoring.
2577
4c55e970
TBA
25782020-07-30 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2579
2580 * breakpoint.c (set_breakpoint_condition): Update the condition
2581 expressions after checking that the input condition string parses
2582 successfully and does not contain junk at the end.
2583
1e620590
TBA
25842020-07-30 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2585
2586 * breakpoint.c (set_breakpoint_condition): Update the
2587 condition string after parsing the new condition successfully.
2588
c8693053
RO
25892020-07-30 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
2590
2591 * proc-api.c (_STRUCTURED_PROC): Don't define.
2592 * proc-events.c: Likewise.
2593 * proc-flags.c: Likewise.
2594 * proc-why.c: Likewise.
2595 * procfs.c: Likewise.
2596
2597 * Makefile.in (INTERNAL_CPPFLAGS): Add LARGEFILE_CPPFLAGS.
2598 * configure, config.in: Regenerate.
2599
5a99adb8
TV
26002020-07-30 Tom de Vries <tdevries@suse.de>
2601
2602 PR build/26320
2603 * ui-style.h (struct ui_file_style::color): Wrap m_value and
2604 m_red/m_green/m_blue in a union.
2605
8ba83e91
TV
26062020-07-29 Tom de Vries <tdevries@suse.de>
2607
2608 PR tdep/26280
2609 * s390-tdep.c (s390_displaced_step_fixup): Fix Wmaybe-uninitialized.
2610
f75a0693
AB
26112020-07-28 Tom Tromey <tromey@adacore.com>
2612
2613 PR symtab/26270:
2614 * symtab.h (find_pc_partial_function_sym): Declare.
2615 * cli/cli-cmds.c (disassemble_command): Use
2616 find_pc_partial_function_sym. Check asm_demangle.
2617 * blockframe.c (cache_pc_function_sym): New global.
2618 (cache_pc_function_name): Remove.
2619 (clear_pc_function_cache): Update.
2620 (find_pc_partial_function_sym): New function, from
2621 find_pc_partial_function.
2622 (find_pc_partial_function): Rewrite using
2623 find_pc_partial_function_sym.
2624
16f3242c
TT
26252020-07-28 Tom Tromey <tromey@adacore.com>
2626
2627 * cli/cli-cmds.c (_initialize_cli_cmds): Rearrange "disassemble"
2628 help. Add usage.
2629
4888741a
TT
26302020-07-28 Tom Tromey <tromey@adacore.com>
2631
2632 * dwarf2/expr.c (dwarf_expr_context::execute_stack_op)
2633 <DW_OP_GNU_variable_value>: Cast to address type.
2634
4d46f402
KR
26352020-07-28 Kamil Rytarowski <n54@gmx.com>
2636
2637 * nbsd-nat.h (nbsd_nat_target::xfer_partial): New declaration.
2638 * nbsd-nat.c (nbsd_nat_target::xfer_partial): New function.
2639 * nbsd-tdep.c (nbsd_gdbarch_data_handle, struct nbsd_gdbarch_data)
2640 (init_nbsd_gdbarch_data, get_nbsd_gdbarch_data)
2641 (nbsd_get_siginfo_type): New.
2642 (nbsd_init_abi): Install gdbarch "get_siginfo_type" method.
2643 (_initialize_nbsd_tdep): New.
2644
d70f978b
L
26452020-07-28 H.J. Lu <hongjiu.lu@intel.com>
2646
2647 PR binutils/26301
2648 * configure: Regenerated.
2649
377170fa
L
26502020-07-28 H.J. Lu <hongjiu.lu@intel.com>
2651
2652 PR binutils/26301
2653 * configure: Regenerated.
2654
43d5901d
AB
26552020-07-28 Andrew Burgess <andrew.burgess@embecosm.com>
2656
2657 * python/py-frame.c: Remove 'user-regs.h' include.
2658 (frapy_read_register): Rewrite to make use of
2659 gdbpy_parse_register_id.
2660 * python/py-registers.c (gdbpy_parse_register_id): New function,
2661 moved here from python/py-unwind.c. Updated the return type, and
2662 also accepts register descriptor objects.
2663 * python/py-unwind.c: Remove 'user-regs.h' include.
2664 (pyuw_parse_register_id): Moved to python/py-registers.c.
2665 (unwind_infopy_add_saved_register): Update to use
2666 gdbpy_parse_register_id.
2667 (pending_framepy_read_register): Likewise.
2668 * python/python-internal.h (gdbpy_parse_register_id): Declare.
2669
14fa8fb3
AB
26702020-07-28 Andrew Burgess <andrew.burgess@embecosm.com>
2671
2672 * python/py-registers.c: Add 'user-regs.h' include.
2673 (register_descriptor_iter_find): New function.
2674 (register_descriptor_iterator_object_methods): New static global
2675 methods array.
2676 (register_descriptor_iterator_object_type): Add pointer to methods
2677 array.
2678
ddce1758
JB
26792020-07-27 John Baldwin <jhb@FreeBSD.org>
2680
2681 * fbsd-nat.h: Include <osreldate.h>. Define USE_SIGTRAP_SIGINFO
2682 for all architectures on FreeBSD 11.3 and later.
2683
a4089f52
TT
26842020-07-27 Tom Tromey <tromey@adacore.com>
2685
2686 * gcore.h (load_corefile): Don't declare.
2687
95420d30
TV
26882020-07-27 Tom de Vries <tdevries@suse.de>
2689
2690 * configure.ac: Fix sys/sockets.h -> sys/socket.h typo.
2691 * config.in: Regenerate.
2692 * configure: Regenerate.
2693
05a6b8c2
EZ
26942020-07-26 Eli Zaretskii <eliz@gnu.org>
2695
2696 * configure.ac (AC_CHECK_HEADERS): Check for sys/socket.h and
2697 ws2tcpip.h. When checking whether socklen_t type is defined, use
2698 ws2tcpip.h if it is available and sys/socket.h isn't.
2699 * configure: Regenerate.
2700 * config.in: Regenerate.
2701
e79eb02f
AB
27022020-07-25 Andrew Burgess <andrew.burgess@embecosm.com>
2703
2704 PR fortran/23051
2705 PR fortran/26139
2706 * valops.c (value_ind): Pass address to
2707 readjust_indirect_value_type.
2708 * value.c (readjust_indirect_value_type): Make parameter
2709 non-const, and add extra address parameter. Resolve original type
2710 before using it.
2711 * value.h (readjust_indirect_value_type): Update function
2712 signature and comment.
2713
876518dd
TV
27142020-07-25 Tom de Vries <tdevries@suse.de>
2715
2716 PR symtab/26243
2717 * dwarf2/read.c (lnp_state_machine::record_line): Ignore zero line
2718 entries.
2719
f6720b1c
AM
27202020-07-24 Aaron Merey <amerey@redhat.com>
2721
2722 * Makefile.in: Replace LIBDEBUGINFOD with DEBUGINFOD_LIBS.
2723 * configure: Rebuild.
2724
513487e1
KB
27252020-07-23 Kevin Buettner <kevinb@redhat.com>
2726
2727 PR corefiles/26294
2728 * corelow.c (_initialize_corelow): Add period to help text
2729 for "maintenance print core-file-backed-mappings".
2730
e7bc9db8
PA
27312020-07-23 Pedro Alves <pedro@palves.net>
2732
2733 * frame-unwind.c (frame_unwind_try_unwinder): On exception, don't
2734 touch THIS_CACHE/THIS_FRAME if the frame cache was cleared
2735 meanwhile.
2736 * frame.c (frame_cache_generation, get_frame_cache_generation):
2737 New.
2738 (reinit_frame_cache): Increment FRAME_CACHE_GENERATION.
2739 (get_prev_frame_if_no_cycle): On exception, don't touch
2740 PREV_FRAME/THIS_FRAME if the frame cache was cleared meanwhile.
2741 * frame.h (get_frame_cache_generation): Declare.
2742
90fcc466
TV
27432020-07-23 Tom de Vries <tdevries@suse.de>
2744
2745 PR tui/26282
2746 * tui/tui-winsource.h (struct tui_source_windows::tui_source_windows):
2747 New default constructor.
2748
78344df7
AB
27492020-07-23 Andrew Burgess <andrew.burgess@embecosm.com>
2750
2751 * disasm.c (do_mixed_source_and_assembly_deprecated): Don't
2752 exclude non-statement entries.
2753
b089853a
KB
27542020-07-22 Kevin Buettner <kevinb@redhat.com>
2755
2756 * NEWS (New commands): Mention new command
2757 "maintenance print core-file-backed-mappings".
2758
09c2f5d4
KB
27592020-07-22 Kevin Buettner <kevinb@redhat.com>
2760
2761 * corelow.c (gdbcmd.h): Include.
2762 (core_target::info_proc_mappings): New method.
2763 (get_current_core_target): New function.
2764 (maintenance_print_core_file_backed_mappings): New function.
2765 (_initialize_corelow): Add core-file-backed-mappings to
2766 "maint print" commands.
2767
9c5ec5c2 27682020-07-22 Kevin Buettner <kevinb@redhat.com>
fe4c3d43 2769
9c5ec5c2
KB
2770 * linux-tdep.c (dump_note_entry_p): New function.
2771 (linux_dump_mapping_p_ftype): New typedef.
2772 (linux_find_memory_regions_full): Add new parameter,
2773 should_dump_mapping_p.
2774 (linux_find_memory_regions): Adjust call to
2775 linux_find_memory_regions_full.
2776 (linux_make_mappings_core_file_notes): Use dump_note_entry_p in
2777 call to linux_find_memory_regions_full.
2778
db082f59
KB
27792020-07-22 Kevin Buettner <kevinb@redhat.com>
2780
2781 * corelow.c (solist.h, unordered_map): Include.
2782 (class core_target): Add field m_core_file_mappings and
2783 method build_file_mappings.
2784 (core_target::core_target): Call build_file_mappings.
2785 (core_target::~core_target): Free memory associated with
2786 m_core_file_mappings.
2787 (core_target::build_file_mappings): New method.
2788 (core_target::xfer_partial): Use m_core_file_mappings
2789 for memory transfers.
2790 * linux-tdep.c (linux_read_core_file_mappings): New
2791 function.
2792 (linux_core_info_proc_mappings): Rewrite to use
2793 linux_read_core_file_mappings.
2794 (linux_init_abi): Register linux_read_core_file_mappings.
2795
7e183d27
KB
27962020-07-22 Kevin Buettner <kevinb@redhat.com>
2797
2798 * arch-utils.c (default_read_core_file_mappings): New function.
2799 * arch-utils.c (default_read_core_file_mappings): Declare.
2800 * gdbarch.sh (read_core_file_mappings): New gdbarch method.
2801 * gdbarch.h, gdbarch.c: Regenerate.
2802
2735d421
KB
28032020-07-22 Kevin Buettner <kevinb@redhat.com>
2804
2805 PR corefiles/25631
2806 * corelow.c (core_target:xfer_partial): Revise
2807 TARGET_OBJECT_MEMORY case to consider non-SEC_HAS_CONTENTS
2808 case after first checking the stratum beneath the core
2809 target.
2810 (has_all_memory): Return true.
2811 * target.c (raw_memory_xfer_partial): Revise comment
2812 regarding use of has_all_memory.
2813
e56cb451
KB
28142020-07-22 Kevin Buettner <kevinb@redhat.com>
2815
2816 * exec.h (section_table_xfer_memory): Revise declaration,
2817 replacing section name parameter with an optional callback
2818 predicate.
2819 * exec.c (section_table_xfer_memory): Likewise.
2820 * bfd-target.c, exec.c, target.c, corelow.c: Adjust all callers
2821 of section_table_xfer_memory.
2822
32fa152e
TT
28232020-07-22 Tom Tromey <tromey@adacore.com>
2824
2825 * mi/mi-cmd-stack.c (list_args_or_locals): Use
2826 lookup_symbol_search_name.
2827
a67a1c41
AB
28282020-07-22 Andrew Burgess <andrew.burgess@embecosm.com>
2829
2830 * python/py-registers.c (gdbpy_register_object_data_init): Remove
2831 redundant local variable.
2832 (gdbpy_get_register_descriptor): Extract descriptor vector as a
2833 reference, not pointer, update code accordingly.
2834
a7b4ff4f
SM
28352020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
2836 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2837
2838 * objfiles.h (struct objfile) <skip_jit_symbol_lookup>: New field.
2839 * jit.c (jit_breakpoint_re_set_internal): Use the
2840 `skip_jit_symbol_lookup` field.
2841
2340e834
SM
28422020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
2843 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2844
2845 * jit.c (jit_read_descriptor): Define the descriptor address once,
2846 use twice.
2847 (jit_breakpoint_deleted): Move the declaration of the loop variable
2848 `iter` into the loop header.
2849 (jit_breakpoint_re_set_internal): Move the declaration of the local
2850 variable `objf_data` to the first point of definition.
2851 (jit_event_handler): Move the declaration of local variables
2852 `code_entry`, `entry_addr`, and `objf` to their first point of use.
2853 Rename `objf` to `jited`.
2854
c1072906
SM
28552020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
2856
2857 * jit.h (struct jiter_objfile_data) <jiter_objfile_data, objfile>:
2858 Remove.
2859 * jit.c (get_jiter_objfile_data): Update.
2860
c8474dc3
TBA
28612020-07-22 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2862 Simon Marchi <simon.marchi@polymtl.ca>
2863
2864 * jit.c (struct jit_program_space_data): Remove.
2865 (jit_program_space_key): Remove.
2866 (jiter_objfile_data::~jiter_objfile_data): Remove program space
2867 stuff.
2868 (get_jit_program_space_data): Remove.
2869 (jit_breakpoint_deleted): Iterate on all of the program space's
2870 objfiles.
2871 (jit_inferior_init): Likewise.
2872 (jit_breakpoint_re_set_internal): Likewise. Also change return
2873 type to void.
2874 (jit_breakpoint_re_set): Pass current_program_space to
2875 jit_breakpoint_re_set_internal.
2876
77208eb7
SM
28772020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
2878
2879 * jit.h (struct jiter_objfile_data) <cached_code_address,
2880 jit_breakpoint>: Move to here from ...
2881 * jit.c (jit_program_space_data): ... here.
2882 (jiter_objfile_data::~jiter_objfile_data): Update.
2883 (jit_breakpoint_deleted): Update.
2884 (jit_breakpoint_re_set_internal): Update.
2885
8c1c720f
SM
28862020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
2887
2888 * jit.c (jiter_objfile_data::~jiter_objfile_data): Remove some
2889 checks.
2890 (jit_read_descriptor): Remove NULL check.
2891 (jit_event_handler): Add an assertion.
2892
0e74a041
SM
28932020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
2894
2895 * jit.h (struct jit_objfile_data): Split into...
2896 (struct jiter_objfile_data): ... this ...
2897 (struct jited_objfile_data): ... and this.
2898 * objfiles.h (struct objfile) <jit_data>: Remove.
2899 <jiter_data, jited_data>: New fields.
2900 * jit.c (jit_objfile_data::~jit_objfile_data): Rename to ...
2901 (jiter_objfile_data::~jiter_objfile_data): ... this.
2902 (get_jit_objfile_data): Rename to ...
2903 (get_jiter_objfile_data): ... this.
2904 (add_objfile_entry): Update.
2905 (jit_read_descriptor): Use get_jiter_objfile_data.
2906 (jit_find_objf_with_entry_addr): Use objfile's jited_data field.
2907 (jit_breakpoint_re_set_internal): Use get_jiter_objfile_data.
2908 (jit_inferior_exit_hook): Use objfile's jited_data field.
2909
238b5c9f
SM
29102020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
2911
2912 * jit.h: Forward-declare `struct minimal_symbol`.
2913 (struct jit_objfile_data): Migrate to here from jit.c; also add a
2914 constructor, destructor, and an objfile* field.
2915 * jit.c (jit_objfile_data): Remove.
2916 (struct jit_objfile_data): Migrate from here to jit.h.
2917 (jit_objfile_data::~jit_objfile_data): New destructor
2918 implementation with code moved from free_objfile_data.
2919 (free_objfile_data): Delete.
2920 (get_jit_objfile_data): Update to use the jit_data field of objfile.
2921 (jit_find_objf_with_entry_addr): Ditto.
2922 (jit_inferior_exit_hook): Ditto.
2923 (_initialize_jit): Remove the call to
2924 register_objfile_data_with_cleanup.
2925 * objfiles.h (struct objfile) <jit_data>: New field.
2926
fe053b9e
TBA
29272020-07-22 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2928
2929 * jit.h: Forward-declare `struct objfile`.
2930 (jit_event_handler): Add a second parameter, the JITer objfile.
2931 * jit.c (jit_read_descriptor): Change the signature to take the
2932 JITer objfile as an argument instead of the jit_program_space_data.
2933 (jit_inferior_init): Update the call to jit_read_descriptor.
2934 (jit_event_handler): Use the new JITer objfile argument when calling
2935 jit_read_descriptor.
2936 * breakpoint.c (handle_jit_event): Update the call to
2937 jit_event_handler to pass the JITer objfile.
2938
4cec0c66
JB
29392020-07-21 John Baldwin <jhb@FreeBSD.org>
2940
2941 * gdbarch.c: Regenerate.
2942 * gdbarch.h: Regenerate.
2943 * gdbarch.sh (handle_segmentation_fault): Remove method.
2944 * infrun.c (handle_segmentation_fault): Remove.
2945 (print_signal_received_reason): Remove call to
2946 handle_segmentation_fault.
2947
0e42f66a
JB
29482020-07-21 John Baldwin <jhb@FreeBSD.org>
2949
2950 * sparc64-linux-tdep.c (sparc64_linux_handle_segmentation_fault):
2951 Rename to sparc64_linux_report_signal_info and add siggnal
2952 argument.
2953 (sparc64_linux_init_abi): Use sparc64_linux_report_signal_info
2954 instead of sparc64_linux_handle_segmentation_fault.
2955
77bdfeb2
JB
29562020-07-21 John Baldwin <jhb@FreeBSD.org>
2957
2958 * amd64-linux-tdep.c (amd64_linux_init_abi_common): Use
2959 i386_linux_report_signal_info instead of
2960 i386_linux_handle_segmentation_fault.
2961 * i386-linux-tdep.c (i386_linux_handle_segmentation_fault): Rename
2962 to i386_linux_report_signal_info and add siggnal argument.
2963 (i386_linux_init_abi): Use i386_linux_report_signal_info instead
2964 of i386_linux_handle_segmentation_fault.
2965 * i386-linux-tdep.h (i386_linux_handle_segmentation_fault): Rename
2966 to i386_linux_report_signal_info and add siggnal argument.
2967
ad97bfc5
JB
29682020-07-21 John Baldwin <jhb@FreeBSD.org>
2969
2970 * corelow.c (core_target_open): Invoke gdbarch report_signal_info
2971 hook if present.
2972
272bb05c
JB
29732020-07-21 John Baldwin <jhb@FreeBSD.org>
2974
2975 * gdbarch.c: Regenerate.
2976 * gdbarch.h: Regenerate.
2977 * gdbarch.sh (report_signal_info): New method.
2978 * infrun.c (print_signal_received_reason): Invoke gdbarch
2979 report_signal_info hook if present.
2980
baf8791e
AB
29812020-07-21 Andrew Burgess <andrew.burgess@embecosm.com>
2982
2983 * python/py-registers.c : Add 'unordered_map' include.
2984 (gdbpy_new_reggroup): Renamed to...
2985 (gdbpy_get_reggroup): ...this. Update to only create register
2986 group descriptors when needed.
2987 (gdbpy_reggroup_iter_next): Update.
2988
f7306dac
AB
29892020-07-21 Andrew Burgess <andrew.burgess@embecosm.com>
2990
2991 * python/py-registers.c (gdbpy_register_object_data): New static
2992 global.
2993 (gdbpy_register_object_data_init): New function.
2994 (gdbpy_new_register_descriptor): Renamed to...
2995 (gdbpy_get_register_descriptor): ...this, and update to reuse
2996 existing register descriptors where possible.
2997 (gdbpy_register_descriptor_iter_next): Update.
2998 (gdbpy_initialize_registers): Register new gdbarch data.
2999
05c309a8
SM
30002020-07-21 Simon Marchi <simon.marchi@efficios.com>
3001
3002 * linux-nat.c (stopped_pids): Make static.
3003
d1fd641e
SM
30042020-07-21 Simon Marchi <simon.marchi@polymtl.ca>
3005
3006 PR ada/26235
3007 * gdbtypes.c (ada_discrete_type_low_bound,
3008 ada_discrete_type_high_bound): Handle undefined bounds.
3009
1de14d77
KR
30102020-07-21 Kamil Rytarowski <n54@gmx.com>
3011
3012 * nbsd-nat.h (nbsd_nat_target::supports_multi_process): New
3013 declaration.
3014 * nbsd-nat.c (nbsd_nat_target::supports_multi_process): New
3015 function.
3016
ed810cc7
JB
30172020-07-20 John Baldwin <jhb@FreeBSD.org>
3018
3019 * fbsd-tdep.c (fbsd_skip_solib_resolver): New function.
3020 (fbsd_init_abi): Install gdbarch "skip_solib_resolver" method.
3021 * fbsd-tdep.h (fbsd_skip_solib_resolver): New prototype.
3022 * mips-fbsd-tdep.c (mips_fbsd_skip_solib_resolver): New function.
3023 (mips_fbsd_init_abi): Install gdbarch "skip_solib_resolver"
3024 method.
3025
ae5369e7
LC
30262020-07-20 Ludovic Courtès <ludo@gnu.org>
3027
3028 * guile/scm-math.c (vlscm_integer_fits_p): Use 'uintmax_t'
3029 and 'intmax_t' instead of 'scm_t_uintmax' and 'scm_t_intmax',
3030 which are deprecated in Guile 3.0.
3031 * configure.ac (try_guile_versions): Add "guile-3.0".
3032 * configure (try_guile_versions): Regenerate.
3033 * NEWS: Update entry.
3034
68cf161c
LC
30352020-07-20 Ludovic Courtès <ludo@gnu.org>
3036 Doug Evans <dje@google.com>
3037
3038 PR gdb/21104
3039 * guile/scm-ports.c (USING_GUILE_BEFORE_2_2): New macro.
3040 (ioscm_memory_port)[read_buf_size, write_buf_size]: Wrap in #if
3041 USING_GUILE_BEFORE_2_2.
3042 (stdio_port_desc, memory_port_desc) [!USING_GUILE_BEFORE_2_2]:
3043 Change type to 'scm_t_port_type *'.
3044 (natural_buffer_size) [!USING_GUILE_BEFORE_2_2]: New variable.
3045 (ioscm_open_port) [USING_GUILE_BEFORE_2_2]: Add 'stream'
3046 parameter and honor it. Update callers.
3047 (ioscm_open_port) [!USING_GUILE_BEFORE_2_2]: New function.
3048 (ioscm_read_from_port, ioscm_write) [!USING_GUILE_BEFORE_2_2]: New
3049 functions.
3050 (ioscm_fill_input, ioscm_input_waiting, ioscm_flush): Wrap in #if
3051 USING_GUILE_BEFORE_2_2.
3052 (ioscm_init_gdb_stdio_port) [!USING_GUILE_BEFORE_2_2]: Use
3053 'ioscm_read_from_port'. Call 'scm_set_port_read_wait_fd'.
3054 (ioscm_init_stdio_buffers) [!USING_GUILE_BEFORE_2_2]: New function.
3055 (gdbscm_stdio_port_p) [!USING_GUILE_BEFORE_2_2]: Use 'SCM_PORTP'
3056 and 'SCM_PORT_TYPE'.
3057 (gdbscm_memory_port_end_input, gdbscm_memory_port_seek)
3058 (ioscm_reinit_memory_port): Wrap in #if USING_GUILE_BEFORE_2_2.
3059 (gdbscm_memory_port_read, gdbscm_memory_port_write)
3060 (gdbscm_memory_port_seek, gdbscm_memory_port_close)
3061 [!USING_GUILE_BEFORE_2_2]: New functions.
3062 (gdbscm_memory_port_print): Remove use of 'SCM_PTOB_NAME'.
3063 (ioscm_init_memory_port_type) [!USING_GUILE_BEFORE_2_2]: Use
3064 'gdbscm_memory_port_read'.
3065 Wrap 'scm_set_port_end_input', 'scm_set_port_flush', and
3066 'scm_set_port_free' calls in #if USING_GUILE_BEFORE_2_2.
3067 (gdbscm_get_natural_buffer_sizes) [!USING_GUILE_BEFORE_2_2]: New
3068 function.
3069 (ioscm_init_memory_port): Remove.
3070 (ioscm_init_memory_port_stream): New function
3071 (ioscm_init_memory_port_buffers) [USING_GUILE_BEFORE_2_2]: New
3072 function.
3073 (gdbscm_memory_port_read_buffer_size) [!USING_GUILE_BEFORE_2_2]:
3074 Return scm_from_uint (0).
3075 (gdbscm_set_memory_port_read_buffer_size_x)
3076 [!USING_GUILE_BEFORE_2_2]: Call 'scm_setvbuf'.
3077 (gdbscm_memory_port_write_buffer_size) [!USING_GUILE_BEFORE_2_2]:
3078 Return scm_from_uint (0).
3079 (gdbscm_set_memory_port_write_buffer_size_x)
3080 [!USING_GUILE_BEFORE_2_2]: Call 'scm_setvbuf'.
3081 * configure.ac (try_guile_versions): Add "guile-2.2".
3082 * configure: Regenerate.
3083 * NEWS: Add entry.
3084
aee91db3
TT
30852020-07-18 Tom Tromey <tom@tromey.com>
3086
3087 * linux-nat.c (linux_multi_process): Remove.
3088 (linux_nat_target::supports_multi_process): Return true.
3089
0e267416
AB
30902020-07-17 Andrew Burgess <andrew.burgess@embecosm.com>
3091
3092 * arch/riscv.c (riscv_tdesc_cache): Change map type.
3093 (riscv_lookup_target_description): Return pointer out of
3094 unique_ptr.
3095 * target-descriptions.c (allocate_target_description): Add
3096 comment.
3097 (target_desc_deleter::operator()): Likewise.
3098 * target-descriptions.h (struct target_desc_deleter): Moved to
3099 gdbsupport/tdesc.h.
3100 (target_desc_up): Likewise.
3101
f80c8ec4
TT
31022020-07-17 Tom Tromey <tromey@adacore.com>
3103
3104 * linux-nat.c (linux_nat_target::supports_non_stop)
3105 (linux_nat_target::always_non_stop_p): Use "true".
3106 (linux_nat_target::supports_disable_randomization): Use "true" and
3107 "false".
3108
d0ce17d8
CT
31092020-07-16 Caroline Tice <cmtice@google.com>
3110
3111 * dwarf2/read.c (RNGLIST_HEADER_SIZE32) New constant definition.
3112 (RNGLIST_HEADER_SIZE64): New constant definition.
3113 (struct dwop_section_names): Add rnglists_dwo.
3114 (dwop_section_names): Add .debug_rnglists.dwo, .zdebug_rnglists.dwo.
3115 (struct loclist_header): Rename to 'loclists_rnglists_header'.
3116 (struct dwo_sections): Add rnglists field.
3117 (read_attribut_reprocess): Add tag parameter.
3118 (dwarf2_ranges_read): Add tag parameter & remove forward function decl.
3119 (cu_debug_rnglists_section): New function (decl & definition).
3120 (dwarf2_locate_dwo_sections): Add code to read rnglists_dwo section.
3121 (dwarf2_rnglists_process): Add a dwarf_tag parameter, for the kind of
3122 die whose range is being checked; get rnglist section from
3123 cu_debug_rnglists_section, to get from either objfile or dwo file as
3124 appropriate. Add cases for DW_RLE_base_addressx,
3125 DW_RLE_startx_length, DW_RLE_startx_endx. Also, update to only add
3126 the base address to DW_RLE_offset_pairs (not to all ranges), moving
3127 test inside if-condition and updating complaint message.
3128 (dwarf2_ranges_process): Add dwarf tag parameter and pass it to
3129 dwarf2_rnglists_process.
3130 (dwarf2_ranges_read): Add dwarf tag parameter and pass it to
3131 dwarf2_ranges_process.
3132 (dwarf2_get_pc_bounds): Check for DW_FORM_rnglistx when setting
3133 need_ranges_base and update comment appropriately. Also pass die tag
3134 to dwarf2_ranges_read.
3135 (dwarf2_record_block_ranges): Check for DW_FORM_rnglistx when setting
3136 need_ranges_base and update comment appropriately. Also pass die tag
3137 to dwarf2_ranges_process.
3138 (read_full_die_1): Add code to read DW_AT_rnglists_base and assign to
3139 cu->ranges_base. Also pass die tag to read_attribute_reprocess.
3140 (partial_die_info::read): Check for DW_FORM_rnglistx when setting
3141 need_ranges_base and update comment appropriately. Also pass die tag
3142 to read_attribute_reprocess and dwarf2_ranges_read.
3143 (read_loclist_header): Rename function to read_loclists_rnglists_header,
3144 and update function comment appropriately.
3145 (read_loclist_index): Call read_loclists_rnglists_header instead of
3146 read_loclist_header.
3147 (read_rnglist_index): New function.
3148 (read_attribute_reprocess): Add tag parameter. Add code for
3149 DW_FORM_rnglistx, passing tag to read_rnglist_index.
3150 (read_attribute_value): Mark DW_FORM_rnglistx with need_reprocess.
3151
3dcc261c
AB
31522020-07-15 Andrew Burgess <andrew.burgess@embecosm.com>
3153
3154 * f-typeprint.c (f_type_print_base): Allow for dynamic types not
3155 being resolved.
3156
ccb9eba6
AB
31572020-07-14 Andrew Burgess <andrew.burgess@embecosm.com>
3158
3159 * arch-utils.c (show_architecture): Update formatting of messages.
3160
cf88be68
SM
31612020-07-12 Simon Marchi <simon.marchi@efficios.com>
3162
3163 * gdbtypes.h (struct type) <bounds>: Handle array and string
3164 types.
3165 * ada-lang.c (assign_aggregate): Use type::bounds on
3166 array/string type.
3167 * c-typeprint.c (c_type_print_varspec_suffix): Likewise.
3168 * c-varobj.c (c_number_of_children): Likewise.
3169 (c_describe_child): Likewise.
3170 * eval.c (evaluate_subexp_for_sizeof): Likewise.
3171 * f-typeprint.c (f_type_print_varspec_suffix): Likewise.
3172 (f_type_print_base): Likewise.
3173 * f-valprint.c (f77_array_offset_tbl): Likewise.
3174 (f77_get_upperbound): Likewise.
3175 (f77_print_array_1): Likewise.
3176 * guile/scm-type.c (gdbscm_type_range): Likewise.
3177 * m2-typeprint.c (m2_array): Likewise.
3178 (m2_is_long_set_of_type): Likewise.
3179 * m2-valprint.c (get_long_set_bounds): Likewise.
3180 * p-typeprint.c (pascal_type_print_varspec_prefix): Likewise.
3181 * python/py-type.c (typy_range): Likewise.
3182 * rust-lang.c (rust_internal_print_type): Likewise.
3183 * type-stack.c (type_stack::follow_types): Likewise.
3184 * valarith.c (value_subscripted_rvalue): Likewise.
3185 * valops.c (value_cast): Likewise.
3186
509971ae
SM
31872020-07-12 Simon Marchi <simon.marchi@efficios.com>
3188
3189 * gdbtypes.c (TYPE_ARRAY_BIT_STRIDE): Remove. Update all
3190 callers to use the equivalent accessor methods.
3191
107406b7
SM
31922020-07-12 Simon Marchi <simon.marchi@efficios.com>
3193
3194 * gdbtypes.h (struct range_bounds) <bit_stride>: New method.
3195 (struct type) <bit_stride>: New method.
3196 (TYPE_BIT_STRIDE): Remove.
3197 * gdbtypes.c (update_static_array_size): Use type::bit_stride.
3198
bb789949
SM
31992020-07-12 Simon Marchi <simon.marchi@efficios.com>
3200
3201 * gdbtypes.h (TYPE_ARRAY_LOWER_BOUND_VALUE,
3202 TYPE_ARRAY_UPPER_BOUND_VALUE): Remove. Update all
3203 callers to use the equivalent accessor methods instead.
3204
39498edb
SM
32052020-07-12 Simon Marchi <simon.marchi@efficios.com>
3206
3207 * gdbtypes.h (TYPE_ARRAY_UPPER_BOUND_IS_UNDEFINED,
3208 TYPE_ARRAY_LOWER_BOUND_IS_UNDEFINED): Remove. Update all
3209 callers to use the equivalent accessor methods instead.
3210
3b606f38
SM
32112020-07-12 Simon Marchi <simon.marchi@efficios.com>
3212
3213 * gdbtypes.h (TYPE_LOW_BOUND_KIND,
3214 TYPE_HIGH_BOUND_KIND): Remove. Update all callers
3215 to use dynamic_prop::kind.
3216
064d9cb9
SM
32172020-07-12 Simon Marchi <simon.marchi@efficios.com>
3218
3219 * gdbtypes.h (TYPE_LOW_BOUND_UNDEFINED,
3220 TYPE_HIGH_BOUND_UNDEFINED): Remove. Update all callers
3221 to get the bound property's kind and check against
3222 PROP_UNDEFINED.
3223
5537ddd0
SM
32242020-07-12 Simon Marchi <simon.marchi@efficios.com>
3225
3226 * gdbtypes.h (TYPE_LOW_BOUND, TYPE_HIGH_BOUND): Remove. Update
3227 all callers to use type::range_bounds followed by
3228 dynamic_prop::{low,high}.
3229
8c2e4e06
SM
32302020-07-12 Simon Marchi <simon.marchi@polymtl.ca>
3231
3232 * gdbtypes.h (struct dynamic_prop) <kind, set_undefined,
3233 const_val, set_const_val, baton, set_locexpr, set_loclist,
3234 set_addr_offset, variant_parts, set_variant_parts,
3235 original_type, set_original_type>: New methods.
3236 <kind>: Rename to...
3237 <m_kind>: ... this. Update all users to use the new methods
3238 instead.
3239 <data>: Rename to...
3240 <m_data>: ... this. Update all users to use the new methods
3241 instead.
3242
7c6f2712
SM
32432020-07-12 Simon Marchi <simon.marchi@efficios.com>
3244
3245 * gdbtypes.c (get_discrete_bounds): Return failure if
3246 the range type's bounds are not both defined and constant
3247 values.
3248 (get_array_bounds): Update comment. Remove undefined bound check.
3249
599088e3
SM
32502020-07-12 Simon Marchi <simon.marchi@polymtl.ca>
3251
3252 * gdbtypes.h (TYPE_RANGE_DATA): Remove. Update callers to use
3253 the type::bounds method directly.
3254
c4dfcb36
SM
32552020-07-12 Simon Marchi <simon.marchi@efficios.com>
3256
3257 * gdbtypes.h (struct type) <bounds, set_bounds>: New methods.
3258 (TYPE_RANGE_DATA): Use type::bounds. Change all uses that
3259 are used to set the range type's bounds to use set_bounds.
3260
0a278aa7
PW
32612020-07-11 Philippe Waroquiers <philippe.waroquiers@skynet.be>
3262
3263 * exec.c (_initialize_exec): Update exec-file-mismatch help.
3264
cce20f10
PA
32652020-07-10 Pedro Alves <pedro@palves.net>
3266
3267 * gdbthread.h (inferior_ref): Define.
3268 (scoped_restore_current_thread) <m_thread>: Now a thread_info_ref.
3269 (scoped_restore_current_thread) <m_inf>: Now an inferior_ref.
3270 * thread.c
3271 (scoped_restore_current_thread::restore):
3272 Adjust to gdb::ref_ptr.
3273 (scoped_restore_current_thread::~scoped_restore_current_thread):
3274 Remove manual decref handling.
3275 (scoped_restore_current_thread::scoped_restore_current_thread):
3276 Adjust to use
3277 inferior_ref::new_reference/thread_info_ref::new_reference.
3278 Incref the thread before calling get_frame_id instead of after.
3279 Let TARGET_CLOSE_ERROR propagate.
3280
6d7aa592
PA
32812020-07-10 Pedro Alves <pedro@palves.net>
3282
3283 * frame-tailcall.c (dwarf2_tailcall_sniffer_first): Only swallow
3284 NO_ENTRY_VALUE_ERROR / MEMORY_ERROR / OPTIMIZED_OUT_ERROR /
3285 NOT_AVAILABLE_ERROR.
3286 * value.c (value_optimized_out): Only swallow MEMORY_ERROR /
3287 OPTIMIZED_OUT_ERROR / NOT_AVAILABLE_ERROR.
3288
b3e3a4c1
SM
32892020-07-10 Simon Marchi <simon.marchi@polymtl.ca>
3290 Pedro Alves <pedro@palves.net>
3291
3292 PR gdb/26199
3293 * infrun.c (threads_are_resumed_pending_p): Delete.
3294 (do_target_wait): Remove threads_are_executing and
3295 threads_are_resumed_pending_p checks from the inferior_matches
3296 lambda. Update comments.
3297
d6cc5d98
PA
32982020-07-10 Pedro Alves <pedro@palves.net>
3299
3300 PR gdb/26199
3301 * infrun.c (handle_no_resumed): Transfer terminal to inferior with
3302 executing threads.
3303
7d3badc6
PA
33042020-07-10 Pedro Alves <pedro@palves.net>
3305
3306 PR gdb/26199
3307 * infrun.c (handle_no_resumed): Handle multiple targets.
3308
42bd97a6
PA
33092020-07-10 Pedro Alves <pedro@palves.net>
3310
3311 PR gdb/26199
3312 * infrun.c (prepare_to_wait): Check target_can_async_p instead of
3313 target_is_async_p.
3314
43667cc6
PA
33152020-07-10 Pedro Alves <pedro@palves.net>
3316
3317 PR gdb/26199
3318 * target.c (target_pass_ctrlc): Look at the inferior's non-exited
3319 threads, not all threads.
3320
96118d11
PA
33212020-07-10 Pedro Alves <pedro@palves.net>
3322
3323 PR gdb/26199
3324 * remote.c (remote_target::open_1): Pass remote target pointer as
3325 data to create_async_event_handler.
3326 (remote_async_inferior_event_handler): Mark async event handler
3327 before returning if the remote target still has either pending
3328 events or unacknowledged notifications.
3329
54904d81
JB
33302020-07-10 John Baldwin <jhb@FreeBSD.org>
3331
3332 * fbsd-nat.h (fbsd_nat_target::supports_multi_process): New
3333 declaration.
3334 * fbsd-nat.c (fbsd_nat_target::supports_multi_process): New
3335 function.
3336
f37e5866
JB
33372020-07-09 John Baldwin <jhb@FreeBSD.org>
3338
3339 * inf-ptrace.c (inf_ptrace_target::wait): Don't compare against
3340 inferior_ptid.
3341
fc238d4a
JB
33422020-07-09 John Baldwin <jhb@FreeBSD.org>
3343
3344 * fbsd-tdep.c (fbsd_print_auxv_entry): Handle AT_FREEBSD_ARGC,
3345 AT_FREEBSD_ARGV, AT_FREEBSD_ENVC, AT_FREEBSD_ENVV,
3346 AT_FREEBSD_PS_STRINGS.
3347
6e2469ff
HD
33482020-07-08 Hannes Domani <ssbssa@yahoo.de>
3349
3350 * auto-load.c (auto_load_objfile_script_1): Convert drive part
3351 of debugfile path on Windows.
3352
d1076c41
JB
33532020-07-08 John Baldwin <jhb@FreeBSD.org>
3354
3355 * fbsd-nat.c (fbsd_nat_target::find_memory_regions): Rename 'obfd'
3356 argument to 'data'.
3357
15f3b077
TT
33582020-07-08 Tom Tromey <tromey@adacore.com>
3359
3360 * ada-lang.c (ada_exception_message_1): Use read_memory.
3361
9fc501fd
AB
33622020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
3363
3364 PR python/22748
3365 * dwarf2/frame-tailcall.c (dwarf2_tailcall_sniffer_first): Remove
3366 special handling for inline frames.
3367 * findvar.c (value_of_register_lazy): Skip inline frames when
3368 creating lazy register values.
3369 * frame.c (frame_id_computed_p): Delete definition.
3370 * frame.h (frame_id_computed_p): Delete declaration.
3371
64cb3757
AB
33722020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
3373
3374 * NEWS: Mention additions to Python API.
3375 * python/py-arch.c (archpy_register_groups): New function.
3376 (arch_object_methods): Add 'register_groups' method.
3377 * python/py-registers.c (reggroup_iterator_object): New struct.
3378 (reggroup_object): New struct.
3379 (gdbpy_new_reggroup): New function.
3380 (gdbpy_reggroup_to_string): New function.
3381 (gdbpy_reggroup_name): New function.
3382 (gdbpy_reggroup_iter): New function.
3383 (gdbpy_reggroup_iter_next): New function.
3384 (gdbpy_new_reggroup_iterator): New function
3385 (gdbpy_initialize_registers): Register new types.
3386 (reggroup_iterator_object_type): Define new Python type.
3387 (gdbpy_reggroup_getset): New static global.
3388 (reggroup_object_type): Define new Python type.
3389 * python/python-internal.h
3390
0f767f94
AB
33912020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
3392
3393 * Makefile.in (SUBDIR_PYTHON_SRCS): Add py-registers.c
3394 * python/py-arch.c (archpy_registers): New function.
3395 (arch_object_methods): Add 'registers' method.
3396 * python/py-registers.c: New file.
3397 * python/python-internal.h
3398 (gdbpy_new_register_descriptor_iterator): Declare.
3399 (gdbpy_initialize_registers): Declare.
3400 * python/python.c (do_start_initialization): Call
3401 gdbpy_initialize_registers.
3402 * NEWS: Mention additions to the Python API.
3403
87dbc774
AB
34042020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
3405
3406 * NEWS: Mention new Python API method.
3407 * python/py-unwind.c (pending_framepy_architecture): New function.
3408 (pending_frame_object_methods): Add architecture method.
3409
3bc98c0c
AB
34102020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
3411
3412 * gdbarch.c: Regenerate.
3413 * gdbarch.h: Regenerate.
3414 * gdbarch.sh (deprecated_set_gdbarch_data): Delete.
3415 (gdbarch_data): Use internal_error for the case where
3416 deprecated_set_gdbarch_data was originally needed.
3417 * ia64-libunwind-tdep.c (libunwind_descr_init): Update parameters,
3418 and use passed in obstack.
3419 (libunwind_frame_set_descr): Should no longer get back NULL from
3420 gdbarch_data.
3421 (_initialize_libunwind_frame): Register as a pre-init gdbarch data
3422 type.
3423 * user-regs.c (user_regs_init): Update parameters, and use passed
3424 in obstack.
3425 (user_reg_add): Should no longer get back NULL from gdbarch_data.
3426 (_initialize_user_regs): Register as a pre-init gdbarch data type.
3427
d8cc8af6
TV
34282020-07-06 Tom de Vries <tdevries@suse.de>
3429
3430 * buildsym.c (buildsym_compunit::end_symtab_with_blockvector): Handle
3431 End-Of-Sequence in lte_is_less_than.
3432 * symtab.c (find_pc_sect_line): Revert change from commit 3d92a3e313
3433 "gdb: Don't reorder line table entries too much when sorting".
3434
947f7597
TV
34352020-07-06 Tom de Vries <tdevries@suse.de>
3436
3437 PR tui/26205
3438 * tui/tui-win.c (tui_partial_win_by_name): Don't test for NULL name.
3439
1e7c1b22
TV
34402020-07-05 Tom de Vries <tdevries@suse.de>
3441
3442 PR build/26187
3443 * inferior.h (struct infcall_suspend_state_deleter): If available, use
3444 std::uncaught_exceptions instead of deprecated
3445 std::uncaught_exception.
3446
a36158ec
SM
34472020-07-02 Simon Marchi <simon.marchi@polymtl.ca>
3448
3449 * macroexp.h (macro_stringify): Return
3450 gdb::unique_xmalloc_ptr<char>.
3451 * macroexp.c (macro_stringify): Likewise.
3452 * macrotab.c (fixup_definition): Update.
3453
14d960c8
SM
34542020-07-02 Simon Marchi <simon.marchi@polymtl.ca>
3455
3456 * c-exp.y (scan_macro_expansion): Don't free `expansion`.
3457 (lex_one_token): Update.
3458 * macroexp.c (struct macro_buffer) <release>: Return
3459 gdb::unique_xmalloc_ptr<char>.
3460 (macro_stringify): Update.
3461 (macro_expand): Update.
3462 (macro_expand_next): Return gdb::unique_xmalloc_ptr<char>.
3463 * macroexp.h (macro_expand_next): Likewise.
3464
211d5b1c
SM
34652020-07-02 Simon Marchi <simon.marchi@efficios.com>
3466
3467 * macroexp.h (macro_lookup_ftype): Remove.
3468 (macro_expand, macro_expand_once, macro_expand_next): Remove
3469 lookup function parameters, add scope parameter.
3470 * macroexp.c (scan, substitute_args, expand, maybe_expand,
3471 macro_expand, macro_expand_once, macro_expand_next): Likewise.
3472 * macroscope.h (standard_macro_lookup): Change parameter type
3473 to macro_scope.
3474 * macroscope.c (standard_macro_lookup): Likewise.
3475 * c-exp.y (lex_one_token): Update.
3476 * macrocmd.c (macro_expand_command): Likewise.
3477 (macro_expand_once_command): Likewise.
3478
b1a35af2
SM
34792020-07-02 Simon Marchi <simon.marchi@polymtl.ca>
3480
3481 * inf-loop.c (inferior_event_handler): Remove client_data param.
3482 * inf-loop.h (inferior_event_handler): Likewise.
3483 * infcmd.c (step_1): Adjust.
3484 * infrun.c (proceed): Adjust.
3485 (fetch_inferior_event): Remove client_data param.
3486 (infrun_async_inferior_event_handler): Adjust.
3487 * infrun.h (fetch_inferior_event): Remove `void *` param.
3488 * linux-nat.c (handle_target_event): Adjust.
3489 * record-btrace.c (record_btrace_handle_async_inferior_event):
3490 Adjust.
3491 * record-full.c (record_full_async_inferior_event_handler):
3492 Adjust.
3493 * remote.c (remote_async_inferior_event_handler): Adjust.
3494
1cdf9e33
TT
34952020-07-01 Tom Tromey <tom@tromey.com>
3496
3497 * tui/tui-data.h (struct tui_win_info) <name>: Now pure virtual.
3498 * tui/tui-stack.h (struct tui_locator_window) <name>: New method.
3499
32c1e210
TT
35002020-07-01 Tom Tromey <tom@tromey.com>
3501
3502 * tui/tui-wingeneral.c (tui_win_info::refresh_window): Move from
3503 tui_gen_win_info.
3504 (tui_win_info::make_window): Merge with
3505 tui_gen_win_info::make_window.
3506 (tui_win_info::make_visible): Move from tui_gen_win_info.
3507 * tui/tui-win.c (tui_win_info::max_width): Move from
3508 tui_gen_win_info.
3509 * tui/tui-layout.h (class tui_layout_window) <m_window>: Change
3510 type.
3511 <window_factory>: Likewise.
3512 * tui/tui-layout.c (tui_win_info::resize): Move from
3513 tui_gen_win_info.
3514 (make_standard_window): Change return type.
3515 (get_locator_window, tui_get_window_by_name): Likewise.
3516 (tui_layout_window::apply): Remove a cast.
3517 * tui/tui-data.h (MIN_WIN_HEIGHT): Move earlier.
3518 (struct tui_win_info): Merge with tui_gen_win_info.
3519 (struct tui_gen_win_info): Remove.
3520
a30cb6da
TT
35212020-07-01 Tom Tromey <tom@tromey.com>
3522
3523 * tui/tui-stack.h (struct tui_locator_window): Derive from
3524 tui_win_info.
3525 <do_scroll_horizontal, do_scroll_vertical>: New methods.
3526 <can_box>: New method.
3527
1eb2161f
TT
35282020-07-01 Tom Tromey <tom@tromey.com>
3529
3530 * tui/tui-stack.h (struct tui_locator_window): Remove body.
3531
7134f2eb
TT
35322020-07-01 Tom Tromey <tom@tromey.com>
3533
3534 * tui/tui-regs.c (tui_data_window::display_registers_from)
3535 (tui_data_window::display_registers_from)
3536 (tui_data_window::first_data_item_displayed)
3537 (tui_data_window::delete_data_content_windows): Update.
3538 (tui_data_window::refresh_window, tui_data_window::no_refresh):
3539 Remove.
3540 (tui_data_window::check_register_values): Update.
3541 (tui_data_item_window::rerender): Add parameters. Update.
3542 (tui_data_item_window::refresh_window): Remove.
3543 * tui/tui-data.h (struct tui_gen_win_info) <no_refresh>: No longer
3544 virtual.
3545 * tui/tui-regs.h (struct tui_data_item_window): Don't derive from
3546 tui_gen_win_info.
3547 <refresh_window, max_height, min_height>: Remove.
3548 <rerender>: Add parameters.
3549 <x, y, visible>: New members.
3550 (struct tui_data_window) <refresh_window, no_refresh>: Remove.
3551 <m_item_width>: New member.
3552
22b7b041
TT
35532020-07-01 Tom Tromey <tom@tromey.com>
3554
3555 * tui/tui-regs.c (tui_data_window::show_register_group)
3556 (tui_data_window::check_register_values): Update.
3557 * tui/tui-regs.h (struct tui_data_item_window) <regno>: Rename
3558 from item_no.
3559
c9753adb
TT
35602020-07-01 Tom Tromey <tom@tromey.com>
3561
3562 * tui/tui-regs.c (tui_data_window::show_register_group): Remove
3563 useless "if".
3564
9ab26b4a
TT
35652020-07-01 Tom Tromey <tom@tromey.com>
3566
3567 * tui/tui-regs.c (tui_data_window::show_register_group): Update.
3568 * tui/tui-regs.h (struct tui_data_item_window) <name>: Remove.
3569
e555083f
TT
35702020-07-01 Tom Tromey <tom@tromey.com>
3571
3572 * tui/tui-stack.c (SINGLE_KEY): Move from tui-data.h
3573 * tui/tui-winsource.h (enum tui_line_or_address_kind)
3574 (struct tui_line_or_address): Move from tui-data.h.
3575 * tui/tui-win.c (DEFAULT_TAB_LEN): Move from tui-data.h.
3576 * tui/tui-data.h (DEFAULT_TAB_LEN): Move to tui-win.c.
3577 (tui_cmd_window, tui_source_window_base, tui_source_window)
3578 (tui_disasm_window): Don't declare.
3579 (enum tui_line_or_address_kind, struct tui_line_or_address): Move
3580 to tui-winsource.h.
3581 (SINGLE_KEY): Move to tui-stack.c.
3582
7a02bab7
TT
35832020-07-01 Tom Tromey <tom@tromey.com>
3584
3585 * tui/tui-regs.h (struct tui_data_item_window) <content>: Now a
3586 std::string.
3587 * tui/tui-regs.c (class tab_expansion_file): New.
3588 (tab_expansion_file::write): New method.
3589 (tui_register_format): Change return type. Use
3590 tab_expansion_file.
3591 (tui_get_register, tui_data_window::display_registers_from)
3592 (tui_data_item_window::rerender): Update.
3593 * tui/tui-io.h (tui_expand_tabs): Don't declare.
3594 * tui/tui-io.c (tui_expand_tabs): Remove.
3595
ea68593b
TT
35962020-07-01 Tom Tromey <tom@tromey.com>
3597
3598 * tui/tui-regs.c (tui_reggroup_completer): Use complete_on_enum.
3599
a8caed5d
FS
36002020-07-01 Fangrui Song <maskray@google.com>
3601
3602 * dwarf2/read.c (lnp_state_machine::check_line_address): Test -1.
3603
9cdf9820
AKS
36042020-07-01 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
3605
3606 * dwarf2/read.c (set_die_type): Removed conditions to restrict
3607 forms for DW_AT_associated and DW_AT_allocated attributes,
3608 which is already checked in function attr_to_dynamic_prop.
3609
a1520ad8
TT
36102020-06-30 Tom Tromey <tromey@adacore.com>
3611
3612 * dwarf2/read.c (quirk_rust_enum): Correctly call
3613 alloc_rust_variant for default-less enum.
3614
5ac58899
TT
36152020-06-30 Tom Tromey <tromey@adacore.com>
3616
3617 PR build/26183:
3618 * ada-lang.c (ada_lookup_name_info::ada_lookup_name_info): Use
3619 gdb::to_string.
3620
19b187a9
SM
36212020-06-29 Simon Marchi <simon.marchi@efficios.com>
3622
3623 * gdbarch.sh (displaced_step_copy_insn): Update doc.
3624 * gdbarch.h: Re-generate.
3625
cd4c4c07
TT
36262020-06-28 Tom Tromey <tom@tromey.com>
3627
3628 * command.h (cmd_types): Remove.
3629 (cmd_type): Don't declare.
3630 * cli/cli-decode.h (enum cmd_types): Uncomment. No longer a
3631 typedef.
3632 * cli/cli-cmds.c (setting_cmd): Use cmd->type directly.
3633 * cli/cli-decode.c (cmd_type): Remove.
3634
05779d57
PA
36352020-06-27 Pedro Alves <palves@redhat.com>
3636
3637 * fork-child.c (prefork_hook): Adjust.
3638 * infcmd.c (set_inferior_io_terminal, get_inferior_io_terminal):
3639 Delete.
3640 (set_inferior_tty_command, show_inferior_tty_command): Adjust.
3641 * inferior.c (inferior::set_tty, inferior::tty): New methods.
3642 * inferior.h (set_inferior_io_terminal, get_inferior_io_terminal):
3643 Remove declarations.
3644 (struct inferior) <set_tty, tty>: New methods.
3645 (struct inferior) <terminal>: Rename to ...
3646 (struct inferior) <m_terminal>: ... this and make private.
3647 * main.c (captured_main_1): Adjust.
3648 * mi/mi-cmd-env.c (mi_cmd_inferior_tty_set): Adjust.
3649 (mi_cmd_inferior_tty_show): Adjust.
3650 * nto-procfs.c (nto_procfs_target::create_inferior): Adjust.
3651 * windows-nat.c (windows_nat_target::create_inferior): Adjust.
3652
1776e3e5
NA
36532020-06-26 Nick Alcock <nick.alcock@oracle.com>
3654
3655 * configure.ac: Add --enable-libctf: handle --disable-static
3656 properly.
3657 * acinclude.m4: sinclude ../config/enable.m4.
3658 * Makefile.in (aclocal_m4_deps): Adjust accordingly.
3659 (LIBCTF): Substitute in.
3660 (CTF_DEPS): New, likewise.
3661 (CLIBS): libctf needs symbols from libbfd: move earlier.
3662 (CDEPS): Use CTF_DEPS, not LIBCTF, now LIBCTF can include rpath
3663 flags.
3664 * ctfread.c: Surround in ENABLE_LIBCTF.
3665 (elfctf_build_psymtabs) [!ENABLE_LIBCTF]: New stub.
3666 * configure: Regenerate.
3667 * config.in: Likewise.
3668
58373b80
SM
36692020-06-25 Simon Marchi <simon.marchi@efficios.com>
3670
3671 * infcmd.c (set_inferior_io_terminal): Use make_unique_xstrdup.
3672
277474ee
SM
36732020-06-25 Simon Marchi <simon.marchi@efficios.com>
3674
3675 * inferior.h (struct inferior) <terminal>: Change type to
3676 gdb::unique_xmalloc_ptr<char>.
3677 * inferior.c (inferior::~inferior): Don't free inf->terminal.
3678 * infcmd.c (set_inferior_io_terminal): Don't free terminal
3679 field, adjust to unique pointer.
3680 (get_inferior_io_terminal): Adjust to unique pointer.
3681
6d74da72
AB
36822020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
3683
3684 * riscv-tdep.c (riscv_print_registers_info): Loop over all
3685 registers, not just the known core set of registers.
3686
2e52d038
AB
36872020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
3688
3689 * riscv-tdep.c (riscv_register_name): Return NULL for duplicate
3690 fflags, frm, and fcsr registers.
3691 (riscv_register_reggroup_p): Remove unknown CSRs from save and
3692 restore groups.
3693 (riscv_tdesc_unknown_reg): New function.
3694 (riscv_gdbarch_init): Pass riscv_tdesc_unknown_reg to
3695 tdesc_use_registers.
3696 * riscv-tdep.h (struct gdbarch_tdep): Add
3697 unknown_csrs_first_regnum, unknown_csrs_count,
3698 duplicate_fflags_regnum, duplicate_frm_regnum, and
3699 duplicate_fcsr_regnum fields.
3700
be64fd07
AB
37012020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
3702
3703 * target-descriptions.c (tdesc_use_registers): Add new parameter a
3704 callback, use the callback (when not null) to help number unknown
3705 registers.
3706 * target-descriptions.h (tdesc_unknown_register_ftype): New typedef.
3707 (tdesc_use_registers): Add extra parameter to declaration.
3708
3b9fce96
AB
37092020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
3710
3711 * riscv-tdep.c (value_of_riscv_user_reg): Moved to here from later
3712 in the file.
3713 (class riscv_pending_register_alias): Likewise.
3714 (riscv_register_feature::register_info): Change 'required_p' field
3715 to 'required', and change its type. Add 'check' member function.
3716 (riscv_register_feature::register_info::check): Define new member
3717 function.
3718 (riscv_xreg_feature): Change initialisation of 'required' field.
3719 (riscv_freg_feature): Likewise.
3720 (riscv_virtual_feature): Likewise.
3721 (riscv_csr_feature): Likewise.
3722 (riscv_check_tdesc_feature): Take extra parameter, the csr
3723 tdesc_feature, rewrite the function to use the new
3724 riscv_register_feature::register_info::check function.
3725 (riscv_gdbarch_init): Pass the csr tdesc_feature where needed.
3726
865bad26
AB
37272020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
3728
3729 * features/Makefile: Remove all references to the deleted files
3730 below.
3731 * features/riscv/32bit-csr.c: Deleted.
3732 * features/riscv/32bit-csr.xml: Deleted.
3733 * features/riscv/64bit-csr.c: Deleted.
3734 * features/riscv/64bit-csr.xml: Deleted.
3735 * features/riscv/rebuild-csr-xml.sh: Deleted.
3736
ed69cbc8
AB
37372020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
3738
3739 * riscv-tdep.c (struct riscv_register_feature::register_info): Fix
3740 whitespace error for declaration of names member variable.
3741 (struct riscv_register_feature): Add new prefer_first_name member
3742 variable, and fix whitespace error in declaration of registers.
3743 (riscv_xreg_feature): Initialize prefer_first_name field.
3744 (riscv_freg_feature): Likewise.
3745 (riscv_virtual_feature): Likewise.
3746 (riscv_csr_feature): Likewise.
3747 (riscv_register_name): Expand on comments. Remove register name
3748 modifications for CSR and virtual registers.
3749
4445e8f5
AB
37502020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
3751
3752 * riscv-tdep.c (struct riscv_register_feature): Fix whitespace
3753 errors.
3754
767a879e
AB
37552020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
3756
3757 * riscv-tdep.c (riscv_create_csr_aliases): Handle csr aliases from
3758 riscv-opc.h.
3759 (class riscv_pending_register_alias): New class.
3760 (riscv_check_tdesc_feature): Take vector of pending aliases and
3761 populate it as appropriate.
3762 (riscv_setup_register_aliases): Delete.
3763 (riscv_gdbarch_init): Create vector of pending aliases and pass it
3764 to riscv_check_tdesc_feature in all cases. Use the vector to
3765 create the register aliases.
3766
bb6e55f3
RO
37672020-06-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
3768
3769 * sol2-tdep.c (sol2_static_transform_name): Remove.
3770 (sol2_init_abi): Don't register it.
3771 * gdbarch.sh (static_transform_name): Remove.
3772 * gdbarch.c, gdbarch.h: Regenerate.
3773
3774 * dbxread.c (read_dbx_symtab) <'S'>: Remove call to
3775 gdbarch_static_transform_name.
3776 * mdebugread.c (parse_partial_symbols) <'S'>: Likewise.
3777 * stabsread.c (define_symbol) <'X'>: Remove.
3778 (define_symbol) <'S'>: Remove gdbarch_static_transform_name
3779 handling.
3780 <'V'>: Likewise.
3781 * xcoffread.c (scan_xcoff_symtab): Remove gdbarch.
3782 <'S'>: Remove call to gdbarch_static_transform_name.
3783
c6d36836
RO
37842020-06-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
3785
3786 * procfs.c (procfs_pre_trace): New function.
3787 (procfs_target::create_inferior): Pass it to fork_inferior.
3788
a7e6196b
RO
37892020-06-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
3790
3791 * configure.tgt <sparc-*-linux*> (gdb_target_obs): Remove
3792 sparc-sol2-tdep.o, sol2-tdep.o, sparc64-sol2-tdep.o.
3793 <sparc64-*-linux*> (gdb_target_obs): Remove sparc64-sol2-tdep.o,
3794 sol2-tdep.o, sparc-sol2-tdep.o.
3795 * sparc-sol2-tdep.c (sparc32_sol2_init_abi): Make static.
3796 * sparc-tdep.h (sparc32_sol2_init_abi): Remove.
3797 * sparc64-sol2-tdep.c (sparc64_sol2_init_abi): Make static.
3798 * sparc64-tdep.h (sparc64_sol2_init_abi): Remove.
3799
d412e696
RO
38002020-06-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
3801
3802 * amd64-sol2-tdep.c (amd64_sol2_sigtramp_p): Remove.
3803 (amd64_sol2_init_abi): Use sol2_sigtramp_p.
3804 Call sol2_init_abi.
3805 Remove calls to set_gdbarch_skip_solib_resolver,
3806 set_gdbarch_core_pid_to_str.
3807 * i386-sol2-tdep.c (i386_sol2_sigtramp_p): Remove.
3808 (i386_sol2_static_transform_name): Remove.
3809 (i386_sol2_init_abi): Call sol2_init_abi.
3810 Remove calls to set_gdbarch_sofun_address_maybe_missing,
3811 set_gdbarch_static_transform_name,
3812 set_gdbarch_skip_solib_resolver, set_gdbarch_core_pid_to_str.
3813 Use sol2_sigtramp_p.
3814 * sol2-tdep.c (sol2_pc_in_sigtramp): New function.
3815 (sol2_sigtramp_p): New function.
3816 (sol2_static_transform_name): New function.
3817 (sol2_skip_solib_resolver, sol2_core_pid_to_str): Make static.
3818 (sol2_init_abi): New function.
3819 * sol2-tdep.h (sol2_sigtramp_p, sol2_init_abi): Declare.
3820 (sol2_skip_solib_resolver, sol2_core_pid_to_str): Remove.
3821 * sparc-sol2-tdep.c (sparc_sol2_pc_in_sigtramp): Remove.
3822 (sparc32_sol2_sigtramp_frame_sniffer): Just call sol2_sigtramp_p.
3823 (sparc_sol2_static_transform_name): Remove.
3824 (sparc32_sol2_init_abi): Call sol2_init_abi.
3825 Remove calls to set_gdbarch_sofun_address_maybe_missing,
3826 set_gdbarch_static_transform_name,
3827 set_gdbarch_skip_solib_resolver,
3828 set_gdbarch_core_pid_to_str.
3829 * sparc-tdep.h (sparc_sol2_pc_in_sigtramp)
3830 (sparc_sol2_static_transform_name): Remove
3831 * sparc64-sol2-tdep.c (sparc64_sol2_sigtramp_frame_sniffer): Just
3832 call sol2_sigtramp_p.
3833 (sparc64_sol2_init_abi): Call sol2_init_abi.
3834 Remove calls to set_gdbarch_sofun_address_maybe_missing,
3835 set_gdbarch_static_transform_name,
3836 set_gdbarch_skip_solib_resolver, set_gdbarch_core_pid_to_str.
3837
a8654e7d
PW
38382020-06-24 Philippe Waroquiers <philippe.waroquiers@skynet.be>
3839
3840 * symfile-add-flags.h: New flag SYMFILE_ALWAYS_CONFIRM.
3841 * exec.c (validate_exec_file): If from_tty, set both
3842 SYMFILE_VERBOSE (== from_tty) and SYMFILE_ALWAYS_CONFIRM.
3843 * symfile.c (symbol_file_add_with_addrs): if always_confirm
3844 and from_tty, unconditionally ask a confirmation.
3845
caa7fd04
AB
38462020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
3847
3848 * target-descriptions.c (tdesc_architecture_name): Protect against
3849 NULL pointer dereference.
3850 (maint_print_xml_tdesc_cmd): New function.
3851 (_initialize_target_descriptions): Register new 'maint print
3852 xml-tdesc' command and give it the filename completer.
3853 * NEWS: Mention new 'maint print xml-tdesc' command.
3854
fbf42f4e
AB
38552020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
3856
3857 * target-descriptions.c (class tdesc_compatible_info): New class.
3858 (struct target_desc): Change type of compatible vector.
3859 (tdesc_compatible_p): Update for change in type of
3860 target_desc::compatible.
3861 (tdesc_compatible_info_list): New function.
3862 (tdesc_compatible_info_arch_name): New function.
3863 (tdesc_add_compatible): Update for change in type of
3864 target_desc::compatible.
3865 (print_c_tdesc::visit_pre): Likewise.
3866
20821f4e
AB
38672020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
3868
3869 * target-descriptions.c (print_c_tdesc::print_c_tdesc): Change
3870 whitespace to underscore.
3871 (maint_print_c_tdesc_cmd): Use fake filename for target
3872 descriptions that came from the target.
3873 (_initialize_target_descriptions): Add filename command completion
3874 for 'maint print c-tdesc'.
3875
1fb5ee62
SM
38762020-06-23 Simon Marchi <simon.marchi@efficios.com>
3877
3878 * dwarf2/loc.c (decode_debug_loclists_addresses): Add empty
3879 lines.
3880
fc3ecb3e
SM
38812020-06-23 Simon Marchi <simon.marchi@efficios.com>
3882
3883 * dwarf2/loc.c (decode_debug_loc_dwo_addresses): Add empty
3884 lines.
3885 (dwarf2_find_location_expression): Likewise.
3886 (call_site_parameter_matches): Likewise.
3887 (dwarf2_compile_expr_to_ax): Likewise.
3888 (disassemble_dwarf_expression): Likewise.
3889 (loclist_describe_location): Likewise.
3890
236ef034
PA
38912020-06-23 Pedro Alves <palves@redhat.com>
3892
3893 * gdbarch-selftests.c: Don't include inferior.h, gdbthread.h or
3894 progspace-and-thread.h. Include scoped-mock-context.h instead.
3895 (register_to_value_test): Use scoped_mock_context.
3896 * regcache.c: Include "scoped-mock-context.h".
3897 (cooked_read_test): Don't error out if a target is already pushed.
3898 Use scoped_mock_context. Adjust.
3899 * scoped-mock-context.h: New file.
3900
39e7ecca
AB
39012020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
3902
3903 * ada-lang.c (ada_language_data): Delete la_is_string_type_p
3904 initializer.
3905 (ada_language::is_string_type_p): New member function.
3906 * c-lang.c (c_language_data): Delete la_is_string_type_p
3907 initializer.
3908 (cplus_language_data): Likewise.
3909 (asm_language_data): Likewise.
3910 (minimal_language_data): Likewise.
3911 * d-lang.c (d_language_data): Likewise.
3912 * f-lang.c (f_is_string_type_p): Delete function, implementation
3913 moved to f_language::is_string_type_p.
3914 (f_language_data): Delete la_is_string_type_p initializer.
3915 (f_language::is_string_type_p): New member function,
3916 implementation from f_is_string_type_p.
3917 * go-lang.c (go_is_string_type_p): Delete function, implementation
3918 moved to go_language::is_string_type_p.
3919 (go_language_data): Delete la_is_string_type_p initializer.
3920 (go_language::is_string_type_p): New member function,
3921 implementation from go_is_string_type_p.
3922 * language.c (language_defn::is_string_type_p): Define new member
3923 function.
3924 (default_is_string_type_p): Make static, add comment copied from
3925 header file.
3926 (unknown_language_data): Delete la_is_string_type_p initializer.
3927 (unknown_language::is_string_type_p): New member function.
3928 (auto_language_data): Delete la_is_string_type_p initializer.
3929 (auto_language::is_string_type_p): New member function.
3930 * language.h (language_data): Delete la_is_string_type_p field.
3931 (language_defn::is_string_type_p): Declare new function.
3932 (default_is_string_type_p): Delete desclaration, move comment to
3933 definition.
3934 * m2-lang.c (m2_is_string_type_p): Delete function, implementation
3935 moved to m2_language::is_string_type_p.
3936 (m2_language_data): Delete la_is_string_type_p initializer.
3937 (m2_language::is_string_type_p): New member function,
3938 implementation from m2_is_string_type_p.
3939 * objc-lang.c (objc_language_data): Delete la_is_string_type_p
3940 initializer.
3941 * opencl-lang.c (opencl_language_data): Likewise.
3942 * p-lang.c (pascal_is_string_type_p): Delete function,
3943 implementation moved to pascal_language::is_string_type_p.
3944 (pascal_language_data): Delete la_is_string_type_p initializer.
3945 (pascal_language::is_string_type_p): New member function,
3946 implementation from pascal_is_string_type_p.
3947 * rust-lang.c (rust_is_string_type_p): Delete function,
3948 implementation moved to rust_language::is_string_type_p.
3949 (rust_language_data): Delete la_is_string_type_p initializer.
3950 (rust_language::is_string_type_p): New member function,
3951 implementation from rust_is_string_type_p.
3952 * valprint.c (val_print_scalar_or_string_type_p): Update call to
3953 is_string_type_p.
3954
4ffc13fb
AB
39552020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
3956
3957 * ada-lang.c (ada_language_data): Delete la_print_typedef
3958 initializer.
3959 (ada_language::print_typedef): New member function.
3960 * c-lang.c (c_language_data): Delete la_print_typedef initializer.
3961 (cplus_language_data): Likewise.
3962 (asm_language_data): Likewise.
3963 (minimal_language_data): Likewise.
3964 * d-lang.c (d_language_data): Likewise.
3965 * f-lang.c (f_language_data): Likewise.
3966 (f_language::print_typedef): New member function.
3967 * go-lang.c (go_language_data): Delete la_print_typedef
3968 initializer.
3969 * language.c (language_defn::print_typedef): Define member
3970 function.
3971 (unknown_language_data): Delete la_print_typedef initializer.
3972 (unknown_language::print_typedef): New member function.
3973 (auto_language_data): Delete la_print_typedef initializer.
3974 (auto_language::print_typedef): New member function.
3975 * language.h (language_data): Delete la_print_typedef field.
3976 (language_defn::print_typedef): Declare new member function.
3977 (LA_PRINT_TYPEDEF): Update call to print_typedef.
3978 (default_print_typedef): Delete declaration.
3979 * m2-lang.c (m2_language_data): Delete la_print_typedef
3980 initializer.
3981 (m2_language::print_typedef): New member function.
3982 * objc-lang.c (objc_language_data): Delete la_print_typedef
3983 initializer.
3984 * opencl-lang.c (opencl_language_data): Likewise.
3985 * p-lang.c (pascal_language_data): Likewise.
3986 (pascal_language::print_typedef): New member function.
3987 * rust-lang.c (rust_print_typedef): Delete function,
3988 implementation moved to rust_language::print_typedef.
3989 (rust_language): Delete la_print_typedef initializer.
3990 (rust_language::print_typedef): New member function,
3991 implementation from rust_print_typedef.
3992 * typeprint.c (default_print_typedef): Delete.
3993
d711ee67
AB
39942020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
3995
3996 * ada-lang.c (ada_language_data): Delete la_printstr initializer.
3997 (ada_language::printstr): New member function.
3998 * c-lang.c (c_language_data): Delete la_printstr initializer.
3999 (cplus_language_data): Likewise.
4000 (asm_language_data): Likewise.
4001 (minimal_language_data): Likewise.
4002 * d-lang.c (d_language_data): Likewise.
4003 * f-lang.c (f_printstr): Rename to f_language::printstr.
4004 (f_language_data): Delete la_printstr initializer.
4005 (f_language::printstr): New member function, implementation from
4006 f_printstr.
4007 * go-lang.c (go_language_data): Delete la_printstr initializer.
4008 * language.c (language_defn::printstr): Define new member
4009 function.
4010 (unk_lang_printstr): Delete.
4011 (unknown_language_data): Delete la_printstr initializer.
4012 (unknown_language::printstr): New member function.
4013 (auto_language_data): Delete la_printstr initializer.
4014 (auto_language::printstr): New member function.
4015 * language.h (language_data): Delete la_printstr field.
4016 (language_defn::printstr): Declare new member function.
4017 (LA_PRINT_STRING): Update call to printstr.
4018 * m2-lang.c (m2_printstr): Rename to m2_language::printstr.
4019 (m2_language_data): Delete la_printstr initializer.
4020 (m2_language::printstr): New member function, implementation from
4021 m2_printstr.
4022 * objc-lang.c (objc_language_data): Delete la_printstr
4023 initializer.
4024 * opencl-lang.c (opencl_language_data): Likewise.
4025 * p-lang.c (pascal_printstr): Rename to pascal_language::printstr.
4026 (pascal_language_data): Delete la_printstr initializer.
4027 (pascal_language::printstr): New member function, implementation
4028 from pascal_printstr.
4029 * p-lang.h (pascal_printstr): Delete declaration.
4030 * rust-lang.c (rust_printstr): Update header comment.
4031 (rust_language_data): Delete la_printstr initializer.
4032 (rust_language::printstr): New member function.
4033
52b50f2c
AB
40342020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
4035
4036 * ada-lang.c (ada_language_data): Delete la_printchar initializer.
4037 (ada_language::printchar): New member function.
4038 * c-lang.c (c_language_data): Delete la_printchar initializer.
4039 (cplus_language_data): Likewise.
4040 (asm_language_data): Likewise.
4041 (minimal_language_data): Likewise.
4042 * d-lang.c (d_language_data): Likewise.
4043 * f-lang.c (f_printchar): Rename to f_language::printchar.
4044 (f_language_data): Delete la_printchar initializer.
4045 (f_language::printchar): New member function, implementation from
4046 f_printchar.
4047 * go-lang.c (go_language_data): Delete la_printchar initializer.
4048 * language.c (unk_lang_printchar): Delete.
4049 (language_defn::printchar): Define new member function.
4050 (unknown_language_data): Delete la_printchar initializer.
4051 (unknown_language::printchar): New member function.
4052 (auto_language_data): Delete la_printchar initializer.
4053 (auto_language::printchar): New member function.
4054 * language.h (language_data): Delete la_printchar field.
4055 (language_defn::printchar): Declare new member function.
4056 (LA_PRINT_CHAR): Update call to printchar.
4057 * m2-lang.c (m2_language_data): Delete la_printchar initializer.
4058 (m2_language::printchar): New member function.
4059 * objc-lang.c (objc_language_data): Delete la_printchar
4060 initializer.
4061 * opencl-lang.c (opencl_language_data): Likewise.
4062 * p-lang.c (pascal_language_data): Delete la_printchar
4063 initializer.
4064 (pascal_language::printchar): New member function.
4065 * rust-lang.c (rust_printchar): Rename to
4066 rust_language::printchar.
4067 (rust_language_data): Delete la_printchar initializer.
4068 (rust_language::printchar): New member function, implementation
4069 from rust_printchar.
4070
ec8cec5b
AB
40712020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
4072
4073 * ada-lang.c (emit_char): Renamed to ada_language::emitchar.
4074 (ada_language_data): Delete la_emitchar initializer.
4075 (ada_language::emitchar): New member function, implementation from
4076 emit_char.
4077 * c-lang.c (c_language_data): Delete la_emitchar initializer.
4078 (cplus_language_data): Likewise.
4079 (asm_language_data): Likewise.
4080 (minimal_language_data): Likewise.
4081 * d-lang.c (d_language_data): Likewise.
4082 * f-lang.c (f_emit_char): Rename to f_language::emitchar.
4083 (f_language_data): Delete la_emitchar initializer.
4084 (f_language::emitchar): New member function, implementation from
4085 f_emit_char.
4086 * go-lang.c (go_language_data): Delete la_emitchar initializer.
4087 * language.c (unk_lang_emit_char): Delete.
4088 (language_defn::emitchar): New member function definition.
4089 (unknown_language_data): Delete la_emitchar initializer.
4090 (unknown_language::emitchar): New member function.
4091 (auto_language_data): Delete la_emitchar initializer.
4092 (auto_language::emitchar): New member function.
4093 * language.h (language_data): Delete la_emitchar field.
4094 (language_defn::emitchar): New member field declaration.
4095 (LA_EMIT_CHAR): Update call to emitchar.
4096 * m2-lang.c (m2_emit_char): Rename to m2_language::emitchar.
4097 (m2_language_data): Delete la_emitchar initializer.
4098 (m2_language::emitchar): New member function, implementation from
4099 m2_emit_char.
4100 * objc-lang.c (objc_language_data): Delete la_emitchar
4101 initializer.
4102 * opencl-lang.c (opencl_language_data): Likewise.
4103 * p-lang.c (pascal_emit_char): Rename to pascal_language::emitchar.
4104 (pascal_language_data): Delete la_emitchar initializer.
4105 (pascal_language::emitchar): New member function, implementation
4106 from pascal_emit_char.
4107 * rust-lang.c (rust_emitchar): Rename to rust_language::emitchar.
4108 (rust_language_data): Delete la_emitchar initializer.
4109 (rust_language::emitchar): New member function, implementation
4110 from rust_emitchar.
4111
1bf9c363
AB
41122020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
4113
4114 * ada-lang.c (resolve): Rename to ada_language::post_parser.
4115 (ada_language_data): Delete la_post_parser initializer.
4116 (ada_language::post_parser): New member function.
4117 * c-lang.c (c_language_data): Delete la_post_parser initializer.
4118 (cplus_language_data): Likewise.
4119 (asm_language_data): Likewise.
4120 (minimal_language_data): Likewise.
4121 * d-lang.c (d_language_data): Likewise.
4122 * f-lang.c (f_language_data): Likewise.
4123 * go-lang.c (go_language_data): Likewise.
4124 * language.c (unknown_language_data): Likewise.
4125 (auto_language_data): Likewise.
4126 * language.h (language_data): Delete la_post_parser field.
4127 (language_defn::post_parser): New member function.
4128 * m2-lang.c (m2_language_data): Delete la_post_parser initializer.
4129 * objc-lang.c (objc_language_data): Likewise.
4130 * opencl-lang.c (opencl_language_data): Likewise.
4131 * p-lang.c (pascal_language_data): Likewise.
4132 * parse.c (parse_exp_in_context): Update call to post_parser.
4133 (null_post_parser): Delete definition.
4134 * parser-defs.h (null_post_parser): Delete declaration.
4135 * rust-lang.c (rust_language_data): Delete la_post_parser
4136 initializer.
4137
87afa652
AB
41382020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
4139
4140 * ada-lang.c (parse): Rename to ada_language::parser.
4141 (ada_language_data): Delete la_parser initializer.
4142 (ada_language::parser): New member function, implementation from
4143 parse.
4144 * c-lang.c (c_language_data): Delete la_parser initializer.
4145 (cplus_language_data): Likewise.
4146 (asm_language_data): Likewise.
4147 (minimal_language_data): Likewise.
4148 * d-lang.c (d_language_data): Likewise.
4149 (d_language::parser): New member function.
4150 * f-lang.c (f_language_data): Delete la_parser initializer.
4151 (f_language::parser): New member function.
4152 * go-lang.c (go_language_data): Delete la_parser initializer.
4153 (go_language::parser): New member function.
4154 * language.c (unk_lang_parser): Delete.
4155 (language_defn::parser): Define new member function.
4156 (unknown_language_data): Delete la_parser initializer.
4157 (unknown_language::parser): New member function.
4158 (auto_language_data): Delete la_parser initializer.
4159 (auto_language::parser): New member function.
4160 * language.h (language_data): Delete la_parser field.
4161 (language_defn::parser): Declare new member function.
4162 * m2-lang.c (m2_language_data): Delete la_parser initializer.
4163 (m2_language::parser): New member function.
4164 * objc-lang.c (objc_language_data): Delete la_parser initializer.
4165 * opencl-lang.c (opencl_language_data): Likewise.
4166 * p-lang.c (pascal_language_data): Likewise.
4167 (pascal_language::parser): New member function.
4168 * parse.c (parse_exp_in_context): Update call to parser.
4169 * rust-lang.c (rust_language_data): Delete la_parser initializer.
4170 (rust_language::parser): New member function.
4171
37825800
AB
41722020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
4173
4174 * top.c (print_gdb_configuration): Print --with-python-libdir
4175 configuration value.
4176
5b860c93
PW
41772020-06-22 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4178
4179 * NEWS: Mention change to the alias command.
4180
cf00cd6f
PW
41812020-06-22 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4182
4183 * cli/cli-cmds.c (lookup_cmd_for_default_args)
4184 (alias_command_completer)
4185 (make_alias_options_def_group): New functions.
4186 (alias_opts, alias_option_defs): New struct and array.
4187 (alias_usage_error): Update usage.
4188 (alias_command): Handles optional DEFAULT-ARGS... arguments.
4189 Use option framework.
4190 (_initialize_cli_cmds): Update alias command help.
4191 Update aliases command help.
4192 (show_user):
4193 Add NULL for new default_args lookup_cmd argument.
4194 (valid_command_p): Rename to validate_aliased_command.
4195 Add NULL for new default_args lookup_cmd argument. Verify that the
4196 aliased_command has no default args.
4197 * cli/cli-decode.c (help_cmd): Show aliases definitions.
4198 (lookup_cmd_1, lookup_cmd): New argument default_args.
4199 (add_alias_cmd):
4200 Add NULL for new default_args lookup_cmd argument.
4201 (print_help_for_command): Show default args under the layout
4202 alias some_alias = some_aliased_cmd some_alias_default_arg.
4203 * cli/cli-decode.h (struct cmd_list_element): New member default_args.
4204 xfree default_args in destructor.
4205 * cli/cli-script.c (process_next_line, do_define_command):
4206 Add NULL for new default_args lookup_cmd argument.
4207 * command.h: Declare new default_args argument in lookup_cmd
4208 and lookup_cmd_1.
4209 * completer.c (complete_line_internal_1):
4210 Add NULL for new default_args lookup_cmd or lookup_cmd_1 argument.
4211 * guile/scm-cmd.c (gdbscm_parse_command_name): Likewise.
4212 * guile/scm-param.c (add_setshow_generic, pascm_parameter_defined_p):
4213 Likewise.
4214 * infcmd.c (_initialize_infcmd): Likewise.
4215 * python/py-auto-load.c (gdbpy_initialize_auto_load): Likewise.
4216 * python/py-cmd.c (gdbpy_parse_command_name): Likewise.
4217 * python/py-param.c (add_setshow_generic): Likewise.
4218 * remote.c (_initialize_remote): Likewise.
4219 * top.c (execute_command): Prepend default_args if command has some.
4220 (set_verbose):
4221 Add NULL for new default_args lookup_cmd or lookup_cmd_1 argument.
4222 * tracepoint.c (validate_actionline, encode_actions_1):
4223 Add NULL for new default_args lookup_cmd or lookup_cmd_1 argument.
4224
bd920864
TBA
42252020-06-22 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4226
4227 * jit.c (jit_read_descriptor): Use bool as the return type.
4228 (jit_breakpoint_re_set_internal): Use bool as the return type.
4229 Invert the return value logic; return true if the jit breakpoint
4230 has been successfully initialized.
4231 (jit_inferior_init): Update the call to
4232 jit_breakpoint_re_set_internal.
4233
f8098322
PA
42342020-06-22 Pedro Alves <palves@redhat.com>
4235
4236 PR gdb/25939
4237 * procfs.c (procfs_target::wait): Don't reference inferior_ptid.
4238 Use the current inferior instead. Don't return
4239 TARGET_WAITKIND_SPURIOUS/inferior_ptid -- instead continue and
4240 wait again.
4241 * sol-thread.c (sol_thread_target::wait): Don't reference
4242 inferior_ptid.
4243 (ps_lgetregs, ps_lsetregs, ps_lgetfpregs, ps_lsetfpregs)
4244 (sol_update_thread_list_callback): Use the current inferior's pid
4245 instead of inferior_ptid.
4246
196535a6
RO
42472020-06-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
4248
4249 * procfs.c: Cleanup many comments.
4250
4251 (READ_WATCHFLAG, WRITE_WATCHFLAG, EXEC_WATCHFLAG)
4252 (AFTER_WATCHFLAG): Replace by value.
4253
4254 (MAIN_PROC_NAME_FORMAT): Inline ...
4255 (create_procinfo): ... here.
4256
4257 (procfs_debug_inferior): Remove SYS_exec handling.
4258 (syscall_is_exec): Likewise.
4259 (procfs_set_exec_trap): Likewise.
4260
4261 (syscall_is_lwp_exit): Inline in callers.
4262 (syscall_is_exit): Likewise.
4263 (syscall_is_exec): Likewise.
4264 (syscall_is_lwp_create): Likewise.
4265
4266 (invalidate_cache): Remove #if 0 code.
4267
4268 (make_signal_thread_runnable): Remove.
4269 (procfs_target::resume): Remove #if 0 code.
4270
cf6f3e86
RO
42712020-06-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
4272
4273 PR gdb/25939
4274 * procfs.c (procfs_target::procfs_init_inferior): Move push_target
4275 call ...
4276 (procfs_target::create_inferior): ... here.
4277
48e9cc84
PW
42782020-06-21 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4279
4280 * exec.c (validate_exec_file): Ensure the build-id is up to
4281 date by calling reopen_exec_file (that checks file timestamp
4282 to decide to re-read the file).
4283
3922b302
PA
42842020-06-18 Pedro Alves <palves@redhat.com>
4285
4286 PR gdb/25412
4287 * gdbthread.h (delete_thread, delete_thread_silent)
4288 (find_thread_ptid): Update comments.
4289 * thread.c (current_thread_): New global.
4290 (is_current_thread): Move higher, and reimplement.
4291 (inferior_thread): Reimplement.
4292 (set_thread_exited): Use bool. Add assertions.
4293 (add_thread_silent): Simplify thread-reuse handling by always
4294 calling delete_thread.
4295 (delete_thread): Remove intro comment.
4296 (find_thread_ptid): Skip exited threads.
4297 (switch_to_thread_no_regs): Write to current_thread_.
4298 (switch_to_no_thread): Check CURRENT_THREAD_ instead of
4299 INFERIOR_PTID. Clear current_thread_.
4300
6dbdab44
PA
43012020-06-18 Pedro Alves <palves@redhat.com>
4302
4303 * aix-thread.c (pd_update): Use switch_to_thread.
4304
2da4b788
PA
43052020-06-18 Pedro Alves <palves@redhat.com>
4306
4307 * ravenscar-thread.c (ravenscar_thread_target): Update.
4308 (ravenscar_thread_target::update_inferior_ptid): Rename to ...
4309 (ravenscar_thread_target::add_active_thread): ... this. Don't
4310 set m_base_ptid here. Update to avoid referencing inferior_ptid.
4311 (ravenscar_thread_target::wait): Don't write to inferior_ptid.
4312
50838d1b
PA
43132020-06-18 Pedro Alves <palves@redhat.com>
4314
4315 * nat/windows-nat.c (current_windows_thread): Remove.
4316 * nat/windows-nat.h (current_windows_thread): Remove.
4317 * windows-nat.c (windows_nat_target::stopped_by_sw_breakpoint):
4318 Adjust.
4319 (display_selectors): Adjust to fetch the current
4320 windows_thread_info based on inferior_ptid.
4321 (fake_create_process): No longer write to current_windows_thread.
4322 (windows_nat_target::get_windows_debug_event):
4323 Don't set inferior_ptid or current_windows_thread.
4324 (windows_nat_target::wait): Adjust to not rely on
4325 current_windows_thread.
4326 (do_initial_windows_stuff): Now a method of windows_nat_target.
4327 Switch to the last_ptid thread.
4328 (windows_nat_target::attach): Adjust.
4329 (windows_nat_target::detach): Use switch_to_no_thread instead of
4330 writing to inferior_ptid directly.
4331 (windows_nat_target::create_inferior): Adjust.
4332
31ce04e9
PA
43332020-06-18 Pedro Alves <palves@redhat.com>
4334
4335 * windows-nat.c (do_initial_windows_stuff): No longer set inferior_ptid.
4336
1ee1a363
PA
43372020-06-18 Pedro Alves <palves@redhat.com>
4338
4339 * go32-nat.c (go32_nat_target::create_inferior): Switch to thread
4340 after creating it, instead of writing to inferior_ptid. Don't
4341 write to inferior_ptid.
4342
6d350754
PA
43432020-06-18 Pedro Alves <palves@redhat.com>
4344
4345 * fork-child.c (postfork_hook): Don't write to inferior_ptid.
4346
5d971d48
PA
43472020-06-18 Pedro Alves <palves@redhat.com>
4348
4349 * bsd-kvm.c (bsd_kvm_target_open): Switch to thread after adding
4350 it, instead of writing to inferior_ptid.
4351
86e57d1b
PA
43522020-06-18 Pedro Alves <palves@redhat.com>
4353
4354 * btrace.c (btrace_fetch): Use switch_to_thread instead of writing
4355 to inferior_ptid.
4356
f2e1c129
PA
43572020-06-18 Pedro Alves <palves@redhat.com>
4358
4359 * bsd-kvm.c (bsd_kvm_target::close): Use switch_to_no_thread
4360 instead of writing to inferior_ptid directly.
4361
60db1b85
PA
43622020-06-18 Pedro Alves <palves@redhat.com>
4363
4364 * corelow.c (core_target::close): Use switch_to_no_thread instead
4365 of writing to inferior_ptid directly.
4366 (add_to_thread_list, core_target_open): Use switch_to_thread
4367 instead of writing to inferior_ptid directly.
4368
fe7d6a8d
PA
43692020-06-18 Pedro Alves <palves@redhat.com>
4370
4371 * darwin-nat.c (darwin_nat_target::decode_message): Don't write to
4372 inferior_ptid.
4373 (darwin_nat_target::stop_inferior, darwin_nat_target::kill): Avoid
4374 inferior_ptid.
4375 (darwin_attach_pid): Use switch_to_no_thread instead of writing to
4376 inferior_ptid directly.
4377 (darwin_nat_target::init_thread_list): Switch to thread, instead
4378 of writing to inferior_ptid.
4379 (darwin_nat_target::attach): Don't write to inferior_ptid.
4380 (darwin_nat_target::get_ada_task_ptid): Avoid inferior_ptid.
4381
975f8708
PA
43822020-06-18 Pedro Alves <palves@redhat.com>
4383
4384 * gnu-nat.c (gnu_nat_target::create_inferior): Switch to the added
4385 thread.
4386 (gnu_nat_target::attach): Don't write to inferior_ptid directly.
4387 Instead use switch_to_thread.
4388 (gnu_nat_target::detach): Use switch_to_no_thread
4389 instead of writing to inferior_ptid directly. Used passed-in
4390 inferior instead of looking up the inferior by pid.
4391
1a204730
PA
43922020-06-18 Pedro Alves <palves@redhat.com>
4393
4394 * go32-nat.c (go32_nat_target::create_inferior): Don't write to
4395 inferior_ptid.
4396
ebe84f23
PA
43972020-06-18 Pedro Alves <palves@redhat.com>
4398
4399 * nto-procfs.c (nto_procfs_target::update_thread_list): Avoid
4400 inferior_ptid.
4401 (nto_procfs_target::attach): Avoid inferior_ptid. Switch to
4402 thread.
4403 (nto_procfs_target::detach): Avoid referencing
4404 inferior_ptid. Use switch_to_no_thread instead of writing to
4405 inferior_ptid directly.
4406 (nto_procfs_target::mourn_inferior): Use switch_to_no_thread
4407 instead of writing to inferior_ptid directly.
4408 (nto_procfs_target::create_inferior): Avoid inferior_ptid. Switch
4409 to thread.
4410
191f02e5
PA
44112020-06-18 Pedro Alves <palves@redhat.com>
4412
4413 * remote-sim.c (gdbsim_target::create_inferior): Switch to thread
4414 after creating it, instead of writing to inferior_ptid.
4415 (gdbsim_target_open): Use switch_to_no_thread instead of writing
4416 to inferior_ptid directly.
4417 (gdbsim_target::wait): Don't write to inferior_ptid.
4418
0ac55310
PA
44192020-06-18 Pedro Alves <palves@redhat.com>
4420
4421 * remote.c (remote_target::remote_notice_new_inferior): Use
4422 switch_to_thread instead of writing to inferior_ptid directly.
4423 (remote_target::add_current_inferior_and_thread): Use
4424 switch_to_no_thread instead of writing to inferior_ptid directly.
4425 (extended_remote_target::attach): Use switch_to_inferior_no_thread
4426 and switch_to_thread instead of using set_current_inferior or
4427 writing to inferior_ptid directly.
4428
5233f39b
PA
44292020-06-18 Pedro Alves <palves@redhat.com>
4430
4431 * tracectf.c (ctf_target_open): Switch to added thread instead of
4432 writing to inferior_ptid directly.
4433 (ctf_target::close): Use switch_to_no_thread instead of writing to
4434 inferior_ptid directly.
4435
087e161b
PA
44362020-06-18 Pedro Alves <palves@redhat.com>
4437
4438 * tracefile-tfile.c (tfile_target_open): Don't write to
4439 inferior_ptid directly, instead switch to added thread.
4440 (tfile_target::close): Use switch_to_no_thread instead of writing
4441 to inferior_ptid directly.
4442
7fb43e53
PA
44432020-06-18 Pedro Alves <palves@redhat.com>
4444
4445 * procfs.c (procfs_target::attach): Don't write to inferior_ptid.
4446 (procfs_target::detach): Use switch_to_no_thread
4447 instead of writing to inferior_ptid directly.
4448 (do_attach): Change return type to void. Switch to the added
4449 thread.
4450 (procfs_target::create_inferior): Switch to the added thread.
4451 (procfs_do_thread_registers): Don't write to inferior_ptid.
4452
18493a00
PA
44532020-06-18 Pedro Alves <palves@redhat.com>
4454
4455 * infrun.c (generic_mourn_inferior): Use switch_to_thread instead
4456 of writing to inferior_ptid.
4457 (scoped_restore_exited_inferior): Delete.
4458 (handle_vfork_child_exec_or_exit): Simplify using
4459 scoped_restore_current_pspace_and_thread. Use switch_to_thread
4460 instead of writing to inferior_ptid.
4461 (THREAD_STOPPED_BY): Delete.
4462 (thread_stopped_by_watchpoint, thread_stopped_by_sw_breakpoint)
4463 (thread_stopped_by_hw_breakpoint): Delete.
4464 (save_waitstatus): Use
4465 scoped_restore_current_thread+switch_to_thread, and call
4466 target_stopped_by_watchpoint instead of
4467 thread_stopped_by_watchpoint, target_stopped_by_sw_breakpoint
4468 instead of thread_stopped_by_sw_breakpoint, and
4469 target_stopped_by_hw_breakpoint instead of
4470 thread_stopped_by_hw_breakpoint.
4471 (handle_inferior_event)
4472 <TARGET_WAITKIND_EXITED/TARGET_WAITKIND_SIGNALLED>: Don't write to
4473 inferior_ptid directly, nor
4474 set_current_inferior/set_current_program_space. Use
4475 switch_to_thread / switch_to_inferior_no_thread instead.
4476
a0776b13
PA
44772020-06-18 Pedro Alves <palves@redhat.com>
4478
4479 * target.c (generic_mourn_inferior): Use switch_to_no_thread
4480 instead of writing to inferior_ptid.
4481
6155c136
PA
44822020-06-18 Pedro Alves <palves@redhat.com>
4483
4484 * inf-ptrace.c (inf_ptrace_target::create_inferior): Switch to the
4485 added thread.
4486 (inf_ptrace_target::attach): Don't write to inferior_ptid. Switch
4487 to the added thread.
4488 (inf_ptrace_target::detach_success): Use switch_to_no_thread
4489 instead of writing to inferior_ptid.
4490
c5316fc6
PA
44912020-06-18 Pedro Alves <palves@redhat.com>
4492
4493 * gdbarch-selftests.c: Include "progspace-and-thread.h".
4494 (register_to_value_test): Mock a program_space too. Heap-allocate
4495 the address space. Don't write to inferior_ptid. Use
4496 switch_to_thread instead.
4497
8df01799
PA
44982020-06-18 Pedro Alves <palves@redhat.com>
4499
4500 * linux-tdep.c (find_signalled_thread(thread_info *,void *)):
4501 Delete.
4502 (find_signalled_thread()): New, factored out from
4503 linux_make_corefile_notes and adjusted to handle exited threads.
4504 (linux_make_corefile_notes): Adjust to use the new
4505 find_signalled_thread.
4506
41792d68
PA
45072020-06-18 Pedro Alves <palves@redhat.com>
4508
4509 * linux-tdep.c (btrace_fetch): Save/restore current thread instead
4510 of saving/restoring inferior_ptid.
4511
612f258a
TT
45122020-06-17 Tom Tromey <tom@tromey.com>
4513
4514 * tui/tui-win.h (tui_scroll_forward, tui_scroll_backward)
4515 (tui_scroll_left, tui_scroll_right, struct tui_win_info): Don't
4516 declare.
4517 * tui/tui-data.h (MIN_CMD_WIN_HEIGHT): Remove.
4518
efb763a5
SM
45192020-06-15 Simon Marchi <simon.marchi@efficios.com>
4520
4521 * dwarf2/read.c (dwarf2_initialize_objfile): Check for presence
4522 of partial symtabs.
4523
2951f6c0
SM
45242020-06-17 Simon Marchi <simon.marchi@efficios.com>
4525
4526 * regformats/reg-arm.dat: Remove.
4527 * regformats/reg-bfin.dat: Remove.
4528 * regformats/reg-cris.dat: Remove.
4529 * regformats/reg-crisv32.dat: Remove.
4530 * regformats/reg-m32r.dat: Remove.
4531 * regformats/reg-tilegx.dat: Remove.
4532 * regformats/reg-tilegx32.dat: Remove.
4533
7d458ea5
SM
45342020-06-17 Simon Marchi <simon.marchi@efficios.com>
4535
4536 * features/Makefile (WHICH): Remove arm files.
4537 * regformats/arm/arm-with-iwmmxt.dat: Remove.
4538 * regformats/arm/arm-with-neon.dat: Remove.
4539 * regformats/arm/arm-with-vfpv2.dat: Remove.
4540 * regformats/arm/arm-with-vfpv3.dat: Remove.
4541
3af96c0d
SM
45422020-06-17 Simon Marchi <simon.marchi@efficios.com>
4543
4544 * features/Makefile (XMLTOC): Remove rx.xml.
4545
b25e22fd
PA
45462020-06-17 Pedro Alves <palves@redhat.com>
4547
4548 * gdbthread.h (thread_control_state) <trap_expected> Update
4549 comments.
4550
a78a19b1
AB
45512020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
4552
4553 * ada-lang.c (ada_lookup_symbol_nonlocal): Rename to
4554 ada_language::lookup_symbol_nonlocal.
4555 (ada_language_data): Delete la_lookup_symbol_nonlocal initializer.
4556 (ada_language::lookup_symbol_nonlocal): New member function,
4557 implementation from ada_lookup_symbol_nonlocal.
4558 * c-lang.c (c_language_data): Delete la_lookup_symbol_nonlocal
4559 initializer.
4560 (cplus_language_data): Delete la_lookup_symbol_nonlocal
4561 initializer.
4562 (cplus_language::lookup_symbol_nonlocal): New member function.
4563 (asm_language_data): Delete la_lookup_symbol_nonlocal initializer.
4564 (minimal_language_data) Likewise.
4565 * cp-namespace.c (cp_lookup_nested_symbol): Update comment.
4566 * d-lang.c (d_language_data): Delete la_lookup_symbol_nonlocal
4567 initializer.
4568 (d_language::lookup_symbol_nonlocal): New member function.
4569 * f-lang.c (f_language_data): Delete la_lookup_symbol_nonlocal
4570 initializer.
4571 (f_language::lookup_symbol_nonlocal): New member function.
4572 * go-lang.c (go_language_data): Delete la_lookup_symbol_nonlocal
4573 initializer.
4574 * language.c (unknown_language_data): Likewise.
4575 (auto_language_data): Likewise.
4576 * language.h (language_data): Delete la_lookup_symbol_nonlocal
4577 field.
4578 (language_defn::lookup_symbol_nonlocal): New member function.
4579 * m2-lang.c (m2_language_data): Delete la_lookup_symbol_nonlocal
4580 initializer.
4581 * objc-lang.c (objc_language_data): Likewise.
4582 * opencl-lang.c (opencl_language_data): Likewise.
4583 * p-lang.c (pascal_language_data): Likewise.
4584 * rust-lang.c (rust_lookup_symbol_nonlocal): Rename to
4585 rust_language::lookup_symbol_nonlocal.
4586 (rust_language_data): Delete la_lookup_symbol_nonlocal
4587 initializer.
4588 (rust_language::lookup_symbol_nonlocal): New member function,
4589 implementation from rust_lookup_symbol_nonlocal.
4590 * symtab.c (lookup_symbol_aux): Update call to
4591 lookup_symbol_nonlocal.
4592 (basic_lookup_symbol_nonlocal): Rename to...
4593 (language_defn::lookup_symbol_nonlocal): ...this, and update
4594 header comment. Remove language_defn parameter, and replace with
4595 uses of `this'.
4596 * symtab.h (basic_lookup_symbol_nonlocal): Delete declaration.
4597
ebe2334e
AB
45982020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
4599
4600 * ada-lang.c (ada_language_data): Delete la_value_print_inner
4601 initializer.
4602 (ada_language::value_print_inner): New member function.
4603 * c-lang.c (c_language_data): Delete la_value_print_inner
4604 initializer.
4605 (cplus_language_data): Likewise.
4606 (asm_language_data): Likewise.
4607 (minimal_language_data): Likewise.
4608 * d-lang.c (d_language_data): Likewise.
4609 (d_language::value_print_inner): New member function.
4610 * f-lang.c (f_language_data): Delete la_value_print_inner
4611 initializer.
4612 (f_language::value_print_inner): New member function.
4613 * f-lang.h (f_value_print_innner): Rename to...
4614 (f_value_print_inner): ...this (note spelling of 'inner').
4615 * f-valprint.c (f_value_print_innner): Rename to...
4616 (f_value_print_inner): ...this (note spelling of 'inner').
4617 * go-lang.c (go_language_data): Delete la_value_print_inner
4618 initializer.
4619 (go_language::value_print_inner): New member function.
4620 * language.c (language_defn::value_print_inner): Define new member
4621 function.
4622 (unk_lang_value_print_inner): Delete.
4623 (unknown_language_data): Delete la_value_print_inner initializer.
4624 (unknown_language::value_print_inner): New member function.
4625 (auto_language_data): Delete la_value_print_inner initializer.
4626 (auto_language::value_print_inner): New member function.
4627 * language.h (language_data): Delete la_value_print_inner field.
4628 (language_defn::value_print_inner): Delcare new member function.
4629 * m2-lang.c (m2_language_data): Delete la_value_print_inner
4630 initializer.
4631 (m2_language::value_print_inner): New member function.
4632 * objc-lang.c (objc_language_data): Delete la_value_print_inner
4633 initializer.
4634 * opencl-lang.c (opencl_language_data): Likewise.
4635 * p-lang.c (pascal_language_data): Likewise.
4636 (pascal_language::value_print_inner): New member function.
4637 * rust-lang.c (rust_language_data): Delete la_value_print_inner
4638 initializer.
4639 (rust_language::value_print_inner): New member function.
4640 * valprint.c (do_val_print): Update call to value_print_inner.
4641
a1d1fa3e
AB
46422020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
4643
4644 * ada-lang.c (ada_language_data): Delete la_value_print
4645 initializer.
4646 (ada_language::value_print): New member function.
4647 * c-lang.c (c_language_data): Delete la_value_print initializer.
4648 (cplus_language_data): Likewise.
4649 (asm_language_data): Likewise.
4650 (minimal_language_data): Likewise.
4651 * d-lang.c (d_language_data): Likewise.
4652 * f-lang.c (f_language_data): Likewise.
4653 * go-lang.c (go_language_data): Likewise.
4654 * language.c (unk_lang_value_print): Delete.
4655 (language_defn::value_print): Define new member function.
4656 (unknown_language_data): Delete la_value_print initializer.
4657 (unknown_language::value_print): New member function.
4658 (auto_language_data): Delete la_value_print initializer.
4659 (auto_language::value_print): New member function.
4660 * language.h (language_data): Delete la_value_print field.
4661 (language_defn::value_print): Declare new member function.
4662 (LA_VALUE_PRINT): Update call to value_print.
4663 * m2-lang.c (m2_language_data): Delete la_value_print initializer.
4664 * objc-lang.c (objc_language_data): Likewise.
4665 * opencl-lang.c (opencl_language_data): Likewise.
4666 * p-lang.c (pascal_language_data): Likewise.
4667 (pascal_language::value_print): New member function.
4668 * rust-lang.c (rust_language_data): Delete la_value_print
4669 initializer.
4670
f16a9f57
AB
46712020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
4672
4673 * ada-lang.c (ada_watch_location_expression): Rename to
4674 ada_language::watch_location_expression.
4675 (ada_language_data): Delete la_watch_location_expression
4676 initializer.
4677 (ada_language::watch_location_expression): New member function,
4678 implementation from ada_watch_location_expression.
4679 * breakpoint.c (watch_command_1): Update call to
4680 watch_location_expression.
4681 * c-lang.c (c_watch_location_expression): Rename to
4682 language_defn::watch_location_expression.
4683 (c_language_data): Delete la_watch_location_expression
4684 initializer.
4685 (cplus_language_data): Likewise.
4686 (asm_language_data): Likewise.
4687 (minimal_language_data): Likewise.
4688 * c-lang.h (c_watch_location_expression): Delete declaration.
4689 * d-lang.c (d_language_data): Delete la_watch_location_expression
4690 initializer.
4691 * f-lang.c (f_language_data): Likewise.
4692 * go-lang.c (go_language_data): Likewise.
4693 * language.c (language_defn::watch_location_expression): Member
4694 function implementation from c_watch_location_expression.
4695 (unknown_language_data): Delete la_watch_location_expression
4696 initializer.
4697 (auto_language_data): Likewise.
4698 * language.h (language_data): Delete la_watch_location_expression
4699 field.
4700 (language_defn::watch_location_expression): Declare new member
4701 function.
4702 * m2-lang.c (m2_language_data): Delete
4703 la_watch_location_expression initializer.
4704 * objc-lang.c (objc_language_data): Likewise.
4705 * opencl-lang.c (opencl_language_data): Likewise.
4706 * p-lang.c (pascal_language_data): Likewise.
4707 * rust-lang.c (rust_watch_location_expression): Rename to
4708 rust_language::watch_location_expression.
4709 (rust_language_data): Delete la_watch_location_expression
4710 initializer.
4711 (rust_language::watch_location_expression): New member function,
4712 implementation from rust_watch_location_expression.
4713
7e56227d
AB
47142020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
4715
4716 * ada-lang.c (ada_collect_symbol_completion_matches): Rename to
4717 ada_language::collect_symbol_completion_matches.
4718 (ada_language_data): Delete la_collect_symbol_completion_matches
4719 initializer.
4720 (ada_language::collect_symbol_completion_matches): New member
4721 function, implementation from
4722 ada_collect_symbol_completion_matches.
4723 * c-lang.c (c_language_data): Delete
4724 la_collect_symbol_completion_matches initializer.
4725 (cplus_language_data): Likewise.
4726 (asm_language_data): Likewise.
4727 (minimal_language_data): Likewise.
4728 * d-lang.c (d_language_data): Likewise.
4729 * f-lang.c (f_collect_symbol_completion_matches): Rename to
4730 f_language::collect_symbol_completion_matches.
4731 (f_language_data): Delete la_collect_symbol_completion_matches
4732 initializer.
4733 (f_language::collect_symbol_completion_matches) New member
4734 function, implementation from f_collect_symbol_completion_matches.
4735 * go-lang.c (go_language_data): Delete
4736 la_collect_symbol_completion_matches initializer.
4737 * language.c (unknown_language_data): Likewise.
4738 (auto_language_data): Likewise.
4739 * language.h (language_data): Delete
4740 la_collect_symbol_completion_matches field.
4741 (language_defn::collect_symbol_completion_matches): New member
4742 function.
4743 * m2-lang.c (m2_language_data): Delete
4744 la_collect_symbol_completion_matches initializer.
4745 * objc-lang.c (objc_language_data): Likewise.
4746 * opencl-lang.c (opencl_language_data): Likewise.
4747 * p-lang.c (pascal_language_data): Likewise.
4748 * rust-lang.c (rust_language_data): Likewise.
4749 * symtab.c (default_collect_symbol_completion_matches): Delete.
4750 (collect_symbol_completion_matches): Update call to
4751 collect_symbol_completion_matches.
4752 (collect_symbol_completion_matches_type): Likewise.
4753 * symtab.h (default_collect_symbol_completion_matches): Delete
4754 declaration.
4755
53fc67f8
AB
47562020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
4757
4758 * ada-lang.c (ada_get_gdb_completer_word_break_characters): Delete.
4759 (ada_language_data): Delete la_word_break_characters initializer.
4760 (ada_language::word_break_characters): New member function.
4761 * c-lang.c (c_language_data): Delete la_word_break_characters
4762 initializer.
4763 (cplus_language_data): Likewise.
4764 (asm_language_data): Likewise.
4765 (minimal_language_data): Likewise.
4766 * completer.c: Update global comment.
4767 (advance_to_expression_complete_word_point): Update call to
4768 word_break_characters.
4769 (complete_files_symbols): Likewise.
4770 (complete_line_internal_1): Likewise.
4771 (default_completer_handle_brkchars): Likewise.
4772 (skip_quoted_chars): Likewise.
4773 * d-lang.c (d_language_data): Delete la_word_break_characters
4774 initializer.
4775 * f-lang.c (f_word_break_characters): Delete.
4776 (f_language_data): Delete la_word_break_characters initializer.
4777 (f_language::word_break_characters): New member function.
4778 * go-lang.c (go_language_data): Delete la_word_break_characters
4779 initializer.
4780 * language.c (unknown_language_data): Likewise.
4781 (auto_language_data): Likewise.
4782 * language.h (default_word_break_characters): Move declaration to
4783 earlier in the file.
4784 (language_data): Delete la_word_break_characters field.
4785 (language_defn::word_break_characters): New member function.
4786 * m2-lang.c (m2_language_data): Delete la_word_break_characters
4787 initializer.
4788 * objc-lang.c (objc_language_data): Likewise.
4789 * opencl-lang.c (opencl_language_data): Likewise.
4790 * p-lang.c (pascal_language_data): Likewise.
4791 * rust-lang.c (rust_language_data): Likewise.
4792
c9debfb9
AB
47932020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
4794
4795 * ada-lang.c (ada_get_symbol_name_matcher): Update header comment.
4796 (ada_language_data): Delete la_get_symbol_name_matcher
4797 initializer.
4798 (language_defn::get_symbol_name_matcher_inner): New member
4799 function.
4800 * c-lang.c (c_language_data): Delete la_get_symbol_name_matcher
4801 initializer.
4802 (cplus_language_data): Likewise.
4803 (cplus_language::get_symbol_name_matcher_inner): New member
4804 function.
4805 (asm_language_data): Delete la_get_symbol_name_matcher initializer.
4806 (minimal_language_data): Likewise.
4807 * cp-support.h (cp_get_symbol_name_matcher): Update header comment.
4808 * d-lang.c (d_language_data): Delete la_get_symbol_name_matcher
4809 initializer.
4810 * dictionary.c (iter_match_first_hashed): Update call to
4811 get_symbol_name_matcher.
4812 (iter_match_next_hashed): Likewise.
4813 (iter_match_next_linear): Likewise.
4814 * dwarf2/read.c (dw2_expand_symtabs_matching_symbol): Likewise.
4815 * f-lang.c (f_language_data): Delete la_get_symbol_name_matcher
4816 initializer.
4817 (f_language::get_symbol_name_matcher_inner): New member function.
4818 * go-lang.c (go_language_data): Delete la_get_symbol_name_matcher
4819 initializer.
4820 * language.c (default_symbol_name_matcher): Update header comment,
4821 make static.
4822 (language_defn::get_symbol_name_matcher): New definition.
4823 (language_defn::get_symbol_name_matcher_inner): Likewise.
4824 (get_symbol_name_matcher): Delete.
4825 (unknown_language_data): Delete la_get_symbol_name_matcher
4826 initializer.
4827 (auto_language_data): Likewise.
4828 * language.h (language_data): Delete la_get_symbol_name_matcher
4829 field.
4830 (language_defn::get_symbol_name_matcher): New member function.
4831 (language_defn::get_symbol_name_matcher_inner): Likewise.
4832 (default_symbol_name_matcher): Delete declaration.
4833 * linespec.c (find_methods): Update call to
4834 get_symbol_name_matcher.
4835 * m2-lang.c (m2_language_data): Delete la_get_symbol_name_matcher
4836 initializer.
4837 * minsyms.c (lookup_minimal_symbol): Update call to
4838 get_symbol_name_matcher.
4839 (iterate_over_minimal_symbols): Likewise.
4840 * objc-lang.c (objc_language_data): Delete
4841 la_get_symbol_name_matcher initializer.
4842 * opencl-lang.c (opencl_language_data): Likewise.
4843 * p-lang.c (pascal_language_data): Likewise.
4844 * psymtab.c (psymbol_name_matches): Update call to
4845 get_symbol_name_matcher.
4846 * rust-lang.c (rust_language_data): Delete
4847 la_get_symbol_name_matcher initializer.
4848 * symtab.c (symbol_matches_search_name): Update call to
4849 get_symbol_name_matcher.
4850 (compare_symbol_name): Likewise.
4851
9a49ad8c
AB
48522020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
4853
4854 * ada-lang.c (ada_language_data): Delete la_compute_program
4855 initializer.
4856 * c-lang.c (c_language_data): Likewise.
4857 (c_language::compute_program): New member function.
4858 (cplus_language_data): Delete la_compute_program initializer.
4859 (cplus_language::compute_program): New member function.
4860 (asm_language_data): Delete la_compute_program initializer.
4861 (minimal_language_data): Likewise.
4862 * c-lang.h (c_compute_program): Update comment.
4863 (cplus_compute_program): Likewise.
4864 * compile/compile-c-support.c (c_compute_program): Likewise.
4865 (cplus_compute_program): Likewise.
4866 * compile/compile.c (compile_to_object): Update call to
4867 la_compute_program.
4868 * d-lang.c (d_language_data): Delete la_compute_program
4869 initializer.
4870 * f-lang.c (f_language_data): Likewise.
4871 * go-lang.c (go_language_data): Likewise.
4872 * language.c (unknown_language_data): Likewise.
4873 (auto_language_data): Likewise.
4874 * language.h (language_data): Delete la_compute_program field.
4875 (language_defn::compute_program): New member function.
4876 * m2-lang.c (m2_language_data): Delete la_compute_program
4877 initializer.
4878 * objc-lang.c (objc_language_data): Likewise.
4879 * opencl-lang.c (opencl_language_data): Likewise.
4880 * p-lang.c (pascal_language_data): Likewise.
4881 * rust-lang.c (rust_language_data): Likewise.
4882
eff93b4d
AB
48832020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
4884
4885 * ada-lang.c (ada_language_data) Delete
4886 la_class_name_from_physname initializer.
4887 * c-lang.c (c_language_data): Likewise.
4888 (cplus_language_data): Likewise.
4889 (cplus_language::class_name_from_physname): New member function.
4890 (asm_language_data): Delete la_class_name_from_physname
4891 initializer.
4892 (minimal_language_data): Likewise.
4893 * d-lang.c (d_language_data): Likewise.
4894 * dwarf2/read.c (guess_partial_die_structure_name): Update to call
4895 method on language_defn class.
4896 (guess_full_die_structure_name): Likewise.
4897 * f-lang.c (f_language_data): Delete la_class_name_from_physname
4898 initializer.
4899 * go-lang.c (go_language_data): Likewise.
4900 * language.c (language_class_name_from_physname): Delete.
4901 (unk_lang_class_name): Delete.
4902 (unknown_language_data): Delete la_class_name_from_physname
4903 initializer.
4904 (auto_language_data): Likewise.
4905 * language.h (language_data): Delete la_class_name_from_physname
4906 field.
4907 (language_defn::class_name_from_physname): New function.
4908 (language_class_name_from_physname): Delete declaration.
4909 * m2-lang.c (m2_language_data): Delete la_class_name_from_physname
4910 initializer.
4911 * objc-lang.c (objc_language_data): Likewise.
4912 * opencl-lang.c (opencl_language_data): Likewise.
4913 * p-lang.c (pascal_language_data): Likewise.
4914 * rust-lang.c (rust_language_data): Likewise.
4915
de543742
TT
49162020-06-16 Tom Tromey <tom@tromey.com>
4917
4918 * tui/tui-data.h (STATUS_NAME): New macro.
4919 * tui/tui-layout.c (tui_remove_some_windows)
4920 (initialize_known_windows, tui_register_window)
4921 (tui_layout_split::remove_windows, initialize_layouts)
4922 (tui_new_layout_command): Don't use hard-coded window names.
4923
a350efd4
TT
49242020-06-16 Tom Tromey <tom@tromey.com>
4925
4926 PR tui/25348:
4927 * tui/tui.c (tui_ensure_readline_initialized): Rename from
4928 tui_initialize_readline. Only run once. Call rl_initialize.
4929 * tui/tui.h (tui_ensure_readline_initialized): Rename from
4930 tui_initialize_readline.
4931 * tui/tui-io.c (tui_setup_io): Call
4932 tui_ensure_readline_initialized.
4933 * tui/tui-interp.c (tui_interp::init): Update.
4934
39ec0490
TT
49352020-06-16 Tom Tromey <tom@tromey.com>
4936
4937 * tui/tui-layout.c (tui_layout_split::remove_windows): Fix logic.
4938 Also preserve the status window.
4939
d2d1ea20
TT
49402020-06-16 Tom Tromey <tom@tromey.com>
4941
4942 * python/py-tui.c (tui_py_window::~tui_py_window): Handle case
4943 where m_window==nullptr.
4944
66920317
TT
49452020-06-15 Tom Tromey <tromey@adacore.com>
4946
4947 * windows-nat.c (windows_nat::handle_output_debug_string):
4948 Update.
4949 (windows_nat::handle_ms_vc_exception): Update.
4950 * target.h (target_read_string): Change API.
4951 * target.c (target_read_string): Change API.
4952 * solib-svr4.c (open_symbol_file_object, svr4_read_so_list):
4953 Update.
4954 * solib-frv.c (frv_current_sos): Update.
4955 * solib-dsbt.c (dsbt_current_sos): Update.
4956 * solib-darwin.c (darwin_current_sos): Update.
4957 * linux-thread-db.c (inferior_has_bug): Update.
4958 * expprint.c (print_subexp_standard): Update.
4959 * ada-lang.c (ada_main_name, ada_tag_name_from_tsd)
4960 (ada_exception_message_1): Update.
4961
a5d871dd
TT
49622020-06-15 Tom Tromey <tromey@adacore.com>
4963
4964 * linux-tdep.c (dump_mapping_p): Use target_read_memory.
4965
670e35fa
TT
49662020-06-15 Tom Tromey <tromey@adacore.com>
4967
4968 * valprint.c (read_string): Update comment.
4969 * target.c (MIN): Remove.
4970 (target_read_string): Rewrite.
4971
f5272a3b
TT
49722020-06-15 Tom Tromey <tromey@adacore.com>
4973
4974 * corefile.c (read_memory_string): Remove.
4975 * ada-valprint.c (ada_value_print_ptr): Update.
4976 * ada-lang.h (ada_tag_name): Change return type.
4977 * ada-lang.c (type_from_tag): Update.
4978 (ada_tag_name_from_tsd): Change return type. Use
4979 target_read_string.
4980 (ada_tag_name): Likewise.
4981 * gdbcore.h (read_memory_string): Don't declare.
4982
2c074f49
HD
49832020-06-14 Hannes Domani <ssbssa@yahoo.de>
4984
4985 * symtab.c (rbreak_command): Ignore Windows drive colon.
4986
6a17d503
SM
49872020-06-12 Simon Marchi <simon.marchi@efficios.com>
4988
4989 * NEWS: Mention removed GDBserver host support.
4990
453c733f
NC
49912020-06-12 Nelson Chu <nelson.chu@sifive.com>
4992
4993 * features/riscv/rebuild-csr-xml.sh: Updated.
4994
2b4e6a3f
TT
49952020-06-11 Tom Tromey <tom@tromey.com>
4996
4997 PR gdb/18318:
4998 * c-exp.y (lex_one_token): Handle 'p' like 'e'.
4999
4412332f
JG
50002020-06-09 Jonny Grant <jg@jguk.org>
50012020-06-09 Simon Marchi <simon.marchi@polymtl.ca>
5002
5003 * main.c (captured_main_1): Don't print new line after help.
5004 (print_gdb_help): add mailing list and IRC channel information
5005 to --help. Add new lines between items in the footer. Remove
5006 quotes around bug url.
5007
2f33032a
KS
50082020-06-11 Keith Seitz <keiths@redhat.com>
5009
5010 PR gdb/21356
5011 * gdbtypes.c (resolve_dynamic_union, resolve_dynamic_struct):
5012 Resolve typedefs for type length calculations.
5013
7ab96794
TV
50142020-06-10 Tom de Vries <tdevries@suse.de>
5015
5016 PR ada/24713
5017 * dwarf2/index-write.c (struct mapped_symtab): Add m_string_obstack.
5018 (write_psymbols): Enable .gdb_index for ada.
5019 * dwarf2/read.c: Remove comment stating .gdb_index is unsupported for
5020 ada.
5021
e5f3ece2
TV
50222020-06-10 Tom de Vries <tdevries@suse.de>
5023
5024 * dwarf2/read.c (dw2_symtab_iter_init_common): Factor out of ...
5025 (dw2_symtab_iter_init): ... here. Add variant with "offset_type
5026 namei" instead of "const char *name" argument.
5027 (dw2_map_matching_symbols): Use "offset_type namei" variant of
5028 dw2_symtab_iter_init.
5029
940da03e
SM
50302020-06-08 Simon Marchi <simon.marchi@efficios.com>
5031
5032 * gdbtypes.h (TYPE_FIELD_TYPE): Remove. Change all call sites
5033 to use type::field and field::type instead.
5034
b6cdac4b
SM
50352020-06-08 Simon Marchi <simon.marchi@efficios.com>
5036
5037 * gdbtypes.h (FIELD_TYPE): Remove. Change all call sites
5038 to use field::type instead.
5039
5d14b6e5
SM
50402020-06-08 Simon Marchi <simon.marchi@efficios.com>
5041
5042 * gdbtypes.h (struct field) <type, set_type>: New methods.
5043 Rename `type` field to...
5044 <m_type>: ... this. Change references throughout to use type or
5045 set_type methods.
5046 (FIELD_TYPE): Use field::type. Change call sites that modify
5047 the field's type to use field::set_type instead.
5048
3d967001
SM
50492020-06-08 Simon Marchi <simon.marchi@efficios.com>
5050
5051 * gdbtypes.h (TYPE_INDEX_TYPE): Remove. Change all call sites
5052 to use type::index_type instead.
5053
262abc0d
SM
50542020-06-08 Simon Marchi <simon.marchi@efficios.com>
5055
5056 * gdbtypes.h (struct type) <index_type, set_index_type>: New
5057 methods.
5058 (TYPE_INDEX_TYPE): Use type::index_type.
5059 * gdbtypes.c (create_array_type_with_stride): Likewise.
5060
82836c92
TT
50612020-06-07 Tom Tromey <tom@tromey.com>
5062
5063 * valprint.c (generic_val_print_float): Remove "embedded_offset"
5064 parameter.
5065 (generic_value_print): Update.
5066
940dace9
AB
50672020-06-05 Andrew Burgess <andrew.burgess@embecosm.com>
5068
5069 Revert commit 982a38f60b0.
5070 * python/py-tui.c (gdbpy_tui_set_title): Restore use of get.
5071
982a38f6
AB
50722020-06-05 Andrew Burgess <andrew.burgess@embecosm.com>
5073
5074 * python/py-tui.c (gdbpy_tui_set_title): Use release, not get, to
5075 avoid use after free.
5076
82f06518
TV
50772020-06-05 Tom de Vries <tdevries@suse.de>
5078
5079 * NEWS: Fix typos.
5080
f8c41851
SM
50812020-06-04 Simon Marchi <simon.marchi@efficios.com>
5082
5083 * dwarf2/read.c (dwarf2_read_gdb_index): Save partial_symtabs in
5084 the per_bfd object.
5085 (dwarf2_read_debug_names): Likewise.
5086 (dwarf2_initialize_objfile): Use partial_symtabs from per_bfd
5087 object when re-using a per_bfd object with an index.
5088
f9b5d5ea
TV
50892020-06-03 Tom de Vries <tdevries@suse.de>
5090
5091 PR symtab/26046
5092 * dwarf2/read.c (scan_partial_symbols): Recurse into DW_TAG_subprogram
5093 children for C++.
5094 (load_partial_dies): Don't skip DW_TAG_inlined_subroutine child of
5095 DW_TAG_subprogram.
5096
f6eee2d0
AB
50972020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
5098
5099 * ada-lang.c (ada_language_data): Delete skip_trampoline
5100 initializer.
5101 * c-lang.c (c_language_data): Likewise.
5102 (cplus_language_data): Likewise.
5103 (cplus_language::skip_trampoline): New member function.
5104 (asm_language_data): Delete skip_trampoline initializer.
5105 (minimal_language_data): Likewise.
5106 * d-lang.c (d_language_data): Likewise.
5107 * f-lang.c (f_language_data): Likewise.
5108 * go-lang.c (go_language_data): Likewise.
5109 * language.c (unk_lang_trampoline): Delete function.
5110 (skip_language_trampoline): Update.
5111 (unknown_language_data): Delete skip_trampoline initializer.
5112 (auto_language_data): Likewise.
5113 * language.h (language_data): Delete skip_trampoline field.
5114 (language_defn::skip_trampoline): New function.
5115 * m2-lang.c (m2_language_data): Delete skip_trampoline
5116 initializer.
5117 * objc-lang.c (objc_skip_trampoline): Delete function, move
5118 implementation to objc_language::skip_trampoline.
5119 (objc_language_data): Delete skip_trampoline initializer.
5120 (objc_language::skip_trampoline): New member function with
5121 implementation from objc_skip_trampoline.
5122 * opencl-lang.c (opencl_language_data): Delete skip_trampoline
5123 initializer.
5124 * p-lang.c (pascal_language_data): Likewise.
5125 * rust-lang.c (rust_language_data): Likewise.
5126
0a50df5d
AB
51272020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
5128
5129 * ada-lang.c (ada_language_data): Delete la_demangle initializer.
5130 (ada_language::demangle): New member function.
5131 * c-lang.c (c_language_data): Delete la_demangle initializer.
5132 (cplus_language_data): Delete la_demangle initializer.
5133 (cplus_language::demangle): New member function.
5134 (asm_language_data): Delete la_demangle initializer.
5135 (minimal_language_data): Delete la_demangle initializer.
5136 * d-lang.c (d_language_data): Delete la_demangle initializer.
5137 (d_language::demangle): New member function.
5138 * f-lang.c (f_language_data): Delete la_demangle initializer.
5139 (f_language::demangle): New member function.
5140 * go-lang.c (go_language_data): Delete la_demangle initializer.
5141 (go_language::demangle): New member function.
5142 * language.c (language_demangle): Update.
5143 (unk_lang_demangle): Delete.
5144 (unknown_language_data): Delete la_demangle initializer.
5145 (unknown_language::demangle): New member function.
5146 (auto_language_data): Delete la_demangle initializer.
5147 (auto_language::demangle): New member function.
5148 * language.h (language_data): Delete la_demangle field.
5149 (language_defn::demangle): New function.
5150 * m2-lang.c (m2_language_data): Delete la_demangle initializer.
5151 * objc-lang.c (objc_language_data): Delete la_demangle
5152 initializer.
5153 (objc_language::demangle): New member function.
5154 * opencl-lang.c (opencl_language_data): Delete la_demangle
5155 initializer.
5156 * p-lang.c (pascal_language_data): Likewise.
5157 * rust-lang.c (rust_language_data): Likewise.
5158 (rust_language::demangle): New member function.
5159
fbfb0a46
AB
51602020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
5161
5162 * ada-lang.c (ada_language_data): Delete la_print_type
5163 initializer.
5164 (ada_language::print_type): New member function.
5165 * c-lang.c (c_language_data): Delete la_print_type initializer.
5166 (c_language::print_type): New member function.
5167 (cplus_language_data): Delete la_print_type initializer.
5168 (cplus_language::print_type): New member function.
5169 (asm_language_data): Delete la_print_type initializer.
5170 (asm_language::print_type): New member function.
5171 (minimal_language_data): Delete la_print_type initializer.
5172 (minimal_language::print_type): New member function.
5173 * d-lang.c (d_language_data): Delete la_print_type initializer.
5174 (d_language::print_type): New member function.
5175 * f-lang.c (f_language_data): Delete la_print_type initializer.
5176 (f_language::print_type): New member function.
5177 * go-lang.c (go_language_data): Delete la_print_type initializer.
5178 (go_language::print_type): New member function.
5179 * language.c (unk_lang_print_type): Delete.
5180 (unknown_language_data): Delete la_print_type initializer.
5181 (unknown_language::print_type): New member function.
5182 (auto_language_data): Delete la_print_type initializer.
5183 (auto_language::print_type): New member function.
5184 * language.h (language_data): Delete la_print_type field.
5185 (language_defn::print_type): New function.
5186 (LA_PRINT_TYPE): Update.
5187 * m2-lang.c (m2_language_data): Delete la_print_type initializer.
5188 (m2_language::print_type): New member function.
5189 * objc-lang.c (objc_language_data): Delete la_print_type
5190 initializer.
5191 (objc_language::print_type): New member function.
5192 * opencl-lang.c (opencl_print_type): Delete, implementation moved
5193 to opencl_language::print_type.
5194 (opencl_language_data): Delete la_print_type initializer.
5195 (opencl_language::print_type): New member function, implementation
5196 from opencl_print_type.
5197 * p-lang.c (pascal_language_data): Delete la_print_type
5198 initializer.
5199 (pascal_language::print_type): New member function.
5200 * rust-lang.c (rust_print_type): Delete, implementation moved to
5201 rust_language::print_type.
5202 (rust_language_data): Delete la_print_type initializer.
5203 (rust_language::print_type): New member function, implementation
5204 from rust_print_type.
5205
6f827019
AB
52062020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
5207
5208 * ada-lang.c (ada_sniff_from_mangled_name): Delete function,
5209 implementation moves to...
5210 (ada_language::sniff_from_mangled_name): ...here. Update return
5211 type.
5212 (ada_language_data): Delete la_sniff_from_mangled_name
5213 initializer.
5214 * c-lang.c (c_language_data): Likewise.
5215 (cplus_language_data): Likewise.
5216 (cplus_language::sniff_from_mangled_name): New member function,
5217 implementation taken from gdb_sniff_from_mangled_name.
5218 (asm_language_data): Delete la_sniff_from_mangled_name
5219 initializer.
5220 (minimal_language_data): Likewise.
5221 * cp-support.c (gdb_sniff_from_mangled_name): Delete,
5222 implementation moves to cplus_language::sniff_from_mangled_name.
5223 * cp-support.h (gdb_sniff_from_mangled_name): Delete declaration.
5224 * d-lang.c (d_sniff_from_mangled_name): Delete, implementation
5225 moves to...
5226 (d_language::sniff_from_mangled_name): ...here.
5227 (d_language_data): Delete la_sniff_from_mangled_name initializer.
5228 * f-lang.c (f_language_data): Likewise.
5229 * go-lang.c (go_sniff_from_mangled_name): Delete, implementation
5230 moves to...
5231 (go_language::sniff_from_mangled_name): ...here.
5232 (go_language_data): Delete la_sniff_from_mangled_name initializer.
5233 * language.c (language_sniff_from_mangled_name): Delete.
5234 (unknown_language_data): Delete la_sniff_from_mangled_name
5235 initializer.
5236 (auto_language_data): Likewise.
5237 * language.h (language_data): Delete la_sniff_from_mangled_name
5238 field.
5239 (language_defn::sniff_from_mangled_name): New function.
5240 (language_sniff_from_mangled_name): Delete declaration.
5241 * m2-lang.c (m2_language_data): Delete la_sniff_from_mangled_name
5242 field.
5243 * objc-lang.c (objc_sniff_from_mangled_name): Delete,
5244 implementation moves to...
5245 (objc_language::sniff_from_mangled_name): ...here.
5246 (objc_language_data): Delete la_sniff_from_mangled_name initializer.
5247 * opencl-lang.c (opencl_language_data): Likewise.
5248 * p-lang.c (pascal_language_data): Likewise.
5249 * rust-lang.c (rust_sniff_from_mangled_name): Delete,
5250 implementation moves to...
5251 (rust_language::sniff_from_mangled_name): ...here.
5252 (rust_language_data): Delete la_sniff_from_mangled_name
5253 initializer.
5254 * symtab.c (symbol_find_demangled_name): Call
5255 sniff_from_mangled_name member function.
5256
fb8006fd
AB
52572020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
5258
5259 * ada-lang.c (ada_language_data): Delete la_search_name_hash
5260 initializer.
5261 * c-lang.c (c_language_data): Likewise.
5262 (cplus_language_data): Likewise.
5263 (cplus_language::search_name_hash): New member function.
5264 (asm_language_data): Delete la_search_name_hash initializer.
5265 (minimal_language_data): Likewise.
5266 * d-lang.c (d_language_data): Likewise.
5267 * dictionary.c (default_search_name_hash): Rename to...
5268 (language_defn::search_name_hash): ...this.
5269 * f-lang.c (f_language_data): Likewise.
5270 (f_language::search_name_hash): New member function.
5271 * go-lang.c (go_language_data): Delete la_search_name_hash
5272 initializer.
5273 * language.c (unknown_language_data): Likewise.
5274 (auto_language_data): Likewise.
5275 * language.h (struct language_data): Delete la_search_name_hash
5276 field.
5277 (language_defn::search_name_hash): Declare new member function.
5278 (default_search_name_hash): Delete declaration.
5279 * m2-lang.c (m2_language_data): Delete la_search_name_hash
5280 initializer.
5281 * objc-lang.c (objc_language_data): Likewise.
5282 * opencl-lang.c (opencl_language_data): Likewise.
5283 * p-lang.c (pascal_language_data): Likewise.
5284 * rust-lang.c (rust_language_data): Likewise.
5285 * symtab.c (search_name_hash): Update call.
5286
8e25bafe
AB
52872020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
5288
5289 * ada-lang.c (ada_language_data): Delete la_get_compile_instance
5290 initializer.
5291 * c-lang.c (class compile_instance): Declare.
5292 (c_language_data): Delete la_get_compile_instance initializer.
5293 (c_language::get_compile_instance): New member function.
5294 (cplus_language_data): Delete la_get_compile_instance initializer.
5295 (cplus_language::get_compile_instance): New member function.
5296 (asm_language_data): Delete la_get_compile_instance initializer.
5297 (minimal_language_data): Likewise.
5298 * c-lang.h (c_get_compile_context): Update comment.
5299 (cplus_get_compile_context): Update comment.
5300 * compile/compile.c (compile_to_object): Update calls, don't rely
5301 on function pointer being NULL.
5302 * d-lang.c (d_language_data): Delete la_get_compile_instance
5303 initializer.
5304 * f-lang.c (f_language_data): Likewise.
5305 * go-lang.c (go_language_data): Likewise.
5306 * language.c (unknown_language_data): Likewise.
5307 (auto_language_data): Likewise.
5308 * language.h (language_data): Delete la_get_compile_instance field.
5309 (language_defn::get_compile_instance): New member function.
5310 * m2-lang.c (m2_language_data): Delete la_get_compile_instance
5311 initializer.
5312 * objc-lang.c (objc_language_data): Likewise.
5313 * opencl-lang.c (opencl_language_data): Likewise.
5314 * p-lang.c (pascal_language_data): Likewise.
5315 * rust-lang.c (rust_language_data): Likewise.
5316
4009ee92
AB
53172020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
5318
5319 * ada-lang.c (ada_add_all_symbols): Update comment.
5320 (ada_iterate_over_symbols): Delete, move implementation to...
5321 (ada_language::iterate_over_symbols): ...here, a new member
5322 function, rewrite to use range based for loop.
5323 (ada_language_data): Delete la_iterate_over_symbols initializer.
5324 * c-lang.c (c_language_data): Likewise.
5325 (cplus_language_data): Likewise.
5326 (asm_language_data): Likewise.
5327 (minimal_language_data): Likewise.
5328 * d-lang.c (d_language_data): Likewise.
5329 * f-lang.c (f_language_data): Likewise.
5330 * go-lang.c (go_language_data): Likewise.
5331 * language.c (unknown_language_data): Likewise.
5332 (auto_language_data): Likewise.
5333 * language.h (language_data): Delete la_iterate_over_symbols field.
5334 (language_defn::iterate_over_symbols): New member function.
5335 (LA_ITERATE_OVER_SYMBOLS): Update.
5336 * linespec.c (iterate_over_all_matching_symtabs): Update.
5337 * m2-lang.c (m2_language_data): Delete la_iterate_over_symbols
5338 initializer.
5339 * objc-lang.c (objc_language_data): Likewise.
5340 * opencl-lang.c (opencl_language_data): Likewise.
5341 * p-lang.c (pascal_language_data): Likewise.
5342 * rust-lang.c (rust_language_data): Likewise.
5343
54f4ca46
AB
53442020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
5345
5346 * ada-lang.c (ada_language_data): Delete
5347 la_lookup_transparent_type initializer.
5348 * c-lang.c (c_language_data): Likewise.
5349 (cplus_language_data): Likewise.
5350 (cplus_language::lookup_transparent_type): New member function.
5351 (asm_language_data): Delete la_lookup_transparent_type
5352 initializer.
5353 (minimal_language_data): Likewise.
5354 * d-lang.c (d_language_data): Likewise.
5355 * f-lang.c (f_language_data): Likewise.
5356 * go-lang.c (go_language_data): Likewise.
5357 * language.c (unknown_language_data): Likewise.
5358 (auto_language_data): Likewise.
5359 * language.h (struct language_data): Delete
5360 la_lookup_transparent_type field.
5361 (language_defn::lookup_transparent_type): New member function.
5362 * m2-lang.c (m2_language_data): Delete la_lookup_transparent_type
5363 initializer.
5364 * objc-lang.c (objc_language_data): Likewise.
5365 * opencl-lang.c (opencl_language_data): Likewise.
5366 * p-lang.c (pascal_language_data): Likewise.
5367 * rust-lang.c (rust_language_data): Likewise.
5368 * symtab.c (symbol_matches_domain): Update call.
5369
1fb314aa
AB
53702020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
5371
5372 * ada-lang.c (ada_language_arch_info): Delete function, move
5373 implementation to...
5374 (ada_language::language_arch_info): ...here, a new member
5375 function.
5376 (ada_language_data): Delete la_language_arch_info.
5377 * c-lang.c (c_language_data): Likewise.
5378 (c_language::language_arch_info): New member function.
5379 (cplus_language_arch_info): Delete function, move
5380 implementation to...
5381 (cplus_language::language_arch_info): ...here, a new member
5382 function.
5383 (cplus_language_data): Delete la_language_arch_info.
5384 (asm_language_data): Likewise.
5385 (asm_language::language_arch_info): New member function.
5386 (minimal_language_data): Delete la_language_arch_info.
5387 (minimal_language::language_arch_info): New member function.
5388 * d-lang.c (d_language_arch_info): Delete function, move
5389 implementation to...
5390 (d_language::language_arch_info): ...here, a new member
5391 function.
5392 (d_language_data): Delete la_language_arch_info.
5393 * f-lang.c (f_language_arch_info): Delete function, move
5394 implementation to...
5395 (f_language::language_arch_info): ...here, a new member
5396 function.
5397 (f_language_data): Delete la_language_arch_info.
5398 * go-lang.c (go_language_arch_info): Delete function, move
5399 implementation to...
5400 (go_language::language_arch_info): ...here, a new member
5401 function.
5402 (go_language_data): Delete la_language_arch_info.
5403 * language.c (unknown_language_data): Likewise.
5404 (unknown_language::language_arch_info): New member function.
5405 (auto_language_data): Delete la_language_arch_info.
5406 (auto_language::language_arch_info): New member function.
5407 (language_gdbarch_post_init): Update call to
5408 la_language_arch_info.
5409 * language.h (language_data): Delete la_language_arch_info
5410 function pointer.
5411 (language_defn::language_arch_info): New function.
5412 * m2-lang.c (m2_language_arch_info): Delete function, move
5413 implementation to...
5414 (m2_language::language_arch_info): ...here, a new member
5415 function.
5416 (m2_language_data): Delete la_language_arch_info.
5417 * objc-lang.c (objc_language_arch_info): Delete function, move
5418 implementation to...
5419 (objc_language::language_arch_info): ...here, a new member
5420 function.
5421 (objc_language_data): Delete la_language_arch_info.
5422 * opencl-lang.c (opencl_language_arch_info): Delete function, move
5423 implementation to...
5424 (opencl_language::language_arch_info): ...here, a new member
5425 function.
5426 (opencl_language_data): Delete la_language_arch_info.
5427 * p-lang.c (pascal_language_arch_info): Delete function, move
5428 implementation to...
5429 (pascal_language::language_arch_info): ...here, a new member
5430 function.
5431 (pascal_language_data): Delete la_language_arch_info.
5432 * rust-lang.c (rust_language_arch_info): Delete function, move
5433 implementation to...
5434 (rust_language::language_arch_info): ...here, a new member
5435 function.
5436 (rust_language_data): Delete la_language_arch_info.
5437
48448202
AB
54382020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
5439
5440 * ada-lang.c (ada_language_data): Delete la_pass_by_reference
5441 initializer.
5442 * c-lang.c (c_language_data): Likewise.
5443 (cplus_language_data): Likewise.
5444 (cplus_language::pass_by_reference_info): New method.
5445 (asm_language_data): Delete la_pass_by_reference initializer.
5446 (minimal_language_data): Likewise.
5447 * cp-abi.c (cp_pass_by_reference): Remove use of
5448 default_pass_by_reference.
5449 * d-lang.c (d_language_data): Likewise.
5450 * f-lang.c (f_language_data): Likewise.
5451 * gnu-v3-abi.c (gnuv3_pass_by_reference): Remove use of
5452 default_pass_by_reference.
5453 * go-lang.c (go_language_data): Likewise.
5454 * language.c (language_pass_by_reference): Update.
5455 (default_pass_by_reference): Delete.
5456 (unknown_language_data): Delete la_pass_by_reference
5457 initializer.
5458 (auto_language_data): Likewise.
5459 * language.h (struct language_data): Delete la_pass_by_reference
5460 field.
5461 (language_defn::pass_by_reference_info): New member function.
5462 (default_pass_by_reference): Delete declaration.
5463 * m2-lang.c (m2_language_data): Delete la_pass_by_reference
5464 initializer.
5465 * objc-lang.c (objc_language_data): Likewise.
5466 * opencl-lang.c (opencl_language_data): Likewise.
5467 * p-lang.c (pascal_language_data): Likewise.
5468 * rust-lang.c (rust_language_data): Likewise.
5469
15e5fd35
AB
54702020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
5471
5472 * ada-lang.c (ada_read_var_value): Delete function, move
5473 implementation to...
5474 (ada_language::read_var_value): ...here.
5475 (ada_language_data): Delete la_read_var_value initializer.
5476 * c-lang.c (c_language_data): Likewise.
5477 (cplus_language_data): Likewise.
5478 (minimal_language_data): Likewise.
5479 * d-lang.c (d_language_data): Likewise.
5480 * f-lang.c (f_language_data): Likewise.
5481 * findvar.c (default_read_var_value): Rename to...
5482 (language_defn::read_var_value): ...this.
5483 * findvar.c (read_var_value): Update header comment, and change to
5484 call member function instead of function pointer.
5485 * go-lang.c (go_language_data): Likewise.
5486 * language.c (unknown_language_data): Delete la_read_var_value
5487 initializer.
5488 (auto_language_data): Likewise.
5489 * language.h (struct language_data): Delete la_read_var_value
5490 field.
5491 (language_defn::read_var_value): New member function.
5492 (default_read_var_value): Delete declaration.
5493 * m2-lang.c (m2_language_data): Delete la_read_var_value
5494 initializer.
5495 * objc-lang.c (objc_language_data): Likewise.
5496 * opencl-lang.c (opencl_language_data): Likewise.
5497 * p-lang.c (pascal_language_data): Likewise.
5498 * rust-lang.c (rust_language_data): Likewise.
5499 * value.h (default_read_var_value): Delete declaration.
5500
5bd40f2a
AB
55012020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
5502
5503 * ada-lang.c (ada_print_array_index): Delete function, move
5504 implementation to...
5505 (ada_language::print_array_index): ...here.
5506 (ada_language_data): Delete la_print_array_index initializer.
5507 * c-lang.c (c_language_data): Likewise.
5508 (cplus_language_data): Likewise.
5509 (minimal_language_data): Likewise.
5510 * d-lang.c (d_language_data): Likewise.
5511 * f-lang.c (f_language_data): Likewise.
5512 * go-lang.c (go_language_data): Likewise.
5513 * language.c (default_print_array_index): Delete function, move
5514 implementation to...
5515 (language_defn::print_array_index): ...here.
5516 (unknown_language_data): Delete la_print_array_index initializer.
5517 (auto_language_data): Likewise.
5518 * language.h (struct language_data): Delete la_print_array_index
5519 field.
5520 (language_defn::print_array_index): New member function.
5521 (LA_PRINT_ARRAY_INDEX): Update.
5522 (default_print_array_index): Delete declaration.
5523 * m2-lang.c (m2_language_data): Delete la_print_array_index
5524 initializer.
5525 * objc-lang.c (objc_language_data): Likewise.
5526 * opencl-lang.c (opencl_language_data): Likewise.
5527 * p-lang.c (pascal_language_data): Likewise.
5528 * rust-lang.c (rust_language_data): Likewise.
5529
0874fd07
AB
55302020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
5531
5532 * gdb/ada-lang.c (ada_language_defn): Convert to...
5533 (ada_language_data): ...this.
5534 (class ada_language): New class.
5535 (ada_language_defn): New static global.
5536 * gdb/c-lang.c (c_language_defn): Convert to...
5537 (c_language_data): ...this.
5538 (class c_language): New class.
5539 (c_language_defn): New static global.
5540 (cplus_language_defn): Convert to...
5541 (cplus_language_data): ...this.
5542 (class cplus_language): New class.
5543 (cplus_language_defn): New static global.
5544 (asm_language_defn): Convert to...
5545 (asm_language_data): ...this.
5546 (class asm_language): New class.
5547 (asm_language_defn): New static global.
5548 (minimal_language_defn): Convert to...
5549 (minimal_language_data): ...this.
5550 (class minimal_language): New class.
5551 (minimal_language_defn): New static global.
5552 * gdb/d-lang.c (d_language_defn): Convert to...
5553 (d_language_data): ...this.
5554 (class d_language): New class.
5555 (d_language_defn): New static global.
5556 * gdb/f-lang.c (f_language_defn): Convert to...
5557 (f_language_data): ...this.
5558 (class f_language): New class.
5559 (f_language_defn): New static global.
5560 * gdb/go-lang.c (go_language_defn): Convert to...
5561 (go_language_data): ...this.
5562 (class go_language): New class.
5563 (go_language_defn): New static global.
5564 * gdb/language.c (unknown_language_defn): Remove declaration.
5565 (current_language): Initialize to nullptr, real initialization is
5566 moved to _initialize_language.
5567 (languages): Delete global.
5568 (language_defn::languages): Define.
5569 (set_language_command): Use language_defn::languages.
5570 (set_language): Likewise.
5571 (range_error): Likewise.
5572 (language_enum): Likewise.
5573 (language_def): Likewise.
5574 (add_set_language_command): Use language_def::languages for the
5575 language list, and language_def to lookup language pointers.
5576 (skip_language_trampoline): Use language_defn::languages.
5577 (unknown_language_defn): Convert to...
5578 (unknown_language_data): ...this.
5579 (class unknown_language): New class.
5580 (unknown_language_defn): New static global.
5581 (auto_language_defn): Convert to...
5582 (auto_language_data): ...this.
5583 (class auto_language): New class.
5584 (auto_language_defn): New static global.
5585 (language_gdbarch_post_init): Use language_defn::languages.
5586 (_initialize_language): Initialize current_language.
5587 * gdb/language.h (struct language_defn): Rename to...
5588 (struct language_data): ...this.
5589 (struct language_defn): New.
5590 (auto_language_defn): Delete.
5591 (unknown_language_defn): Delete.
5592 (minimal_language_defn): Delete.
5593 (ada_language_defn): Delete.
5594 (asm_language_defn): Delete.
5595 (c_language_defn): Delete.
5596 (cplus_language_defn): Delete.
5597 (d_language_defn): Delete.
5598 (f_language_defn): Delete.
5599 (go_language_defn): Delete.
5600 (m2_language_defn): Delete.
5601 (objc_language_defn): Delete.
5602 (opencl_language_defn): Delete.
5603 (pascal_language_defn): Delete.
5604 (rust_language_defn): Delete.
5605 * gdb/m2-lang.c (m2_language_defn): Convert to...
5606 (m2_language_data): ...this.
5607 (class m2_language): New class.
5608 (m2_language_defn): New static global.
5609 * gdb/objc-lang.c (objc_language_defn): Convert to...
5610 (objc_language_data): ...this.
5611 (class objc_language): New class.
5612 (objc_language_defn): New static global.
5613 * gdb/opencl-lang.c (opencl_language_defn): Convert to...
5614 (opencl_language_data): ...this.
5615 (class opencl_language): New class.
5616 (opencl_language_defn): New static global.
5617 * gdb/p-lang.c (pascal_language_defn): Convert to...
5618 (pascal_language_data): ...this.
5619 (class pascal_language): New class.
5620 (pascal_language_defn): New static global.
5621 * gdb/rust-exp.y (rust_lex_tests): Use language_def to find
5622 language pointer, update comment format.
5623 * gdb/rust-lang.c (rust_language_defn): Convert to...
5624 (rust_language_data): ...this.
5625 (class rust_language): New class.
5626 (rust_language_defn): New static global.
5627
1313c56e
AB
56282020-06-01 Andrew Burgess <andrew.burgess@embecosm.com>
5629
5630 * dwarf2/read.c (class lnp_state_machine) <m_last_address>: New
5631 member variable.
5632 <m_stmt_at_address>: New member variable.
5633 (lnp_state_machine::record_line): Don't record some lines, update
5634 tracking of is_stmt at the same address.
5635 (lnp_state_machine::lnp_state_machine): Initialise new member
5636 variables.
5637
b7ed9f3d
ST
56382020-06-01 Samuel Thibault <samuel.thibault@ens-lyon.org>
5639
5640 * config/i386/i386gnu.mn [%_S.o %_U.o] (COMPILE.post): Add
5641 "-include gnu-nat-mig.h".
5642 * gnu-nat-mig.h: New file.
5643 * gnu-nat.c: Include "gnu-nat-mig.h".
5644 (exc_server, msg_reply_server, notify_server,
5645 process_reply_server): Remove declarations.
5646
14a8ad62
ST
56472020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
5648
5649 * gnu-nat.h (inf_validate_procs, inf_suspend, inf_set_traced,
5650 steal_exc_port, proc_get_state, inf_clear_wait, inf_cleanup,
5651 inf_startup, inf_update_suspends, inf_set_pid, inf_steal_exc_ports,
5652 inf_validate_procinfo, inf_validate_task_sc, inf_restore_exc_ports,
5653 inf_set_threads_resume_sc, inf_set_threads_resume_sc_for_signal_thread,
5654 inf_resume, inf_set_step_thread, inf_detach, inf_attach, inf_signal,
5655 inf_continue, make_proc, proc_abort, _proc_free, proc_update_sc,
5656 proc_get_exception_port, proc_set_exception_port, _proc_get_exc_port,
5657 proc_steal_exc_port, proc_restore_exc_port, proc_trace): Move functions
5658 to gnu_nat_target class.
5659 * gnu-nat.c: Likewise.
5660 (inf_update_procs, S_proc_wait_reply, set_task_pause_cmd,
5661 set_task_exc_port_cmd, set_signals_cmd, set_thread_pause_cmd,
5662 set_thread_exc_port_cmd): Call inf_validate_procs through gnu_target
5663 object.
5664 (gnu_nat_target::create_inferior, gnu_nat_target::detach): Pass `this'
5665 instead of `gnu_target'.
5666
0af5e106
ST
56672020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
5668
5669 * i386-gnu-tdep.c: Include "gdbcore.h"
5670 (gnu_sigtramp_code, i386_gnu_sc_reg_offset): New arrays.
5671 (GNU_SIGTRAMP_LEN, GNU_SIGTRAMP_TAIL,
5672 I386_GNU_SIGCONTEXT_THREAD_STATE_OFFSET): New macros
5673 (i386_gnu_sigtramp_start, i386_gnu_sigtramp_p,
5674 i386_gnu_sigcontext_addr): New functions
5675 (i386gnu_init_abi): Register i386_gnu_sigtramp_p,
5676 i386_gnu_sigcontext_addr, and i386_gnu_sc_reg_offset in the gdbarch
5677 tdep.
5678
078f2fc9
ST
56792020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
5680
5681 * gnu-nat.c (gnu_nat_target::create_inferior): Move push_target call
5682 before fork_inferior call. Avoid calling it if target_is_pushed returns
5683 true.
5684
53dff92c
ST
56852020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
5686
5687 * gnu-nat.h (gnu_target): New variable declaration.
5688 * i386-gnu-nat.c (_initialize_i386gnu_nat): Initialize
5689 gnu_target.
5690 * gnu-nat.c (gnu_target): New variable.
5691 (inf_validate_procs): Pass gnu_target to thread_change_ptid,
5692 add_thread_silent, and add_thread calls.
5693 (gnu_nat_target::create_inferior): Pass gnu_target to
5694 add_thread_silent, thread_change_ptid call.
5695 (gnu_nat_target::detach): Pass gnu_target to detach_inferior
5696 call.
5697
5a8b8627
ST
56982020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
5699
5700 * gnu-nat.c (gnu_xfer_auxv): Remove unused `res' variable.
5701 (gnu_nat_target::find_memory_regions): Remove unused
5702 `old_address' variable.
5703
366f550a
ST
57042020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
5705
5706 * gnu-nat.c: Include "gdbarch.h".
5707
f14871bf
ST
57082020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
5709
5710 * reply_mig_hack.awk (Error return): Cast function through
5711 void *, to bypass compiler function call check.
5712
c6887cfb
ST
57132020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
5714
5715 * config/i386/i386gnu.mn (%_reply_S.c): Add dependency on
5716 $(srcdir)/reply_mig_hack.awk.
5717
6930bffe
ST
57182020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
5719
5720 * gnu-nat.h (gnu_debug_flag): Set type to bool.
5721
112c22ed
JG
57222020-05-30 Jonny Grant <jg@jguk.org>
5723
5724 * configure.ac (ACX_BUGURL): change bug URL to https.
5725
f68f85b5
PA
57262020-05-30 Pedro Alves <palves@redhat.com>
5727
5728 * cp-support.c (replace_typedefs_template): New.
5729 (replace_typedefs_qualified_name): Handle
5730 DEMANGLE_COMPONENT_TEMPLATE.
5731
976ca316
SM
57322020-05-29 Simon Marchi <simon.marchi@efficios.com>
5733
5734 * dwarf2/comp-unit.c, dwarf2/comp-unit.h, dwarf2/index-cache.c,
5735 dwarf2/index-cache.h, dwarf2/index-write.c,
5736 dwarf2/index-write.h, dwarf2/line-header.c,
5737 dwarf2/line-header.h, dwarf2/macro.c, dwarf2/macro.h,
5738 dwarf2/read.c, dwarf2/read.h: Rename struct dwarf2_per_objfile
5739 variables and fields from `dwarf2_per_objfile` to just
5740 `per_objfile` throughout.
5741
989ade05
SM
57422020-05-28 Simon Marchi <simon.marchi@polymtl.ca>
5743
5744 * dwarf2/loc.c (class dwarf_evaluate_loc_desc)
5745 <push_dwarf_reg_entry_value>: Add comment.
5746
c47bae85
KB
57472020-05-28 Kevin Buettner <kevinb@redhat.com>
5748 Keith Seitz <keiths@redhat.com>
5749
5750 * python/python.c (do_start_initialization): Call PyEval_SaveThread
5751 instead of PyEval_ReleaseLock.
5752 (class gdbpy_gil): Move to earlier in file.
5753 (finalize_python): Set gdb_python_initialized.
5754 (gdbpy_check_quit_flag): Acquire GIL via gdbpy_gil. Return early
5755 when not initialized.
5756
44486dcf
SM
57572020-05-28 Simon Marchi <simon.marchi@efficios.com>
5758
5759 * dwarf2/loc.c (class dwarf_evaluate_loc_desc)
5760 <push_dwarf_reg_entry_value>: Remove assert. Override
5761 per_objfile with caller_per_objfile.
5762
f030440d
TV
57632020-05-28 Tom de Vries <tdevries@suse.de>
5764
5765 * dwarf2/read.c (dw2_symtab_iter_next, dw2_expand_marked_cus): Limit
5766 PR gold/15646 workaround to symbol kind "type".
5767
f0fbb768
TT
57682020-05-27 Tom Tromey <tromey@adacore.com>
5769
5770 * dwarf2/read.c (load_partial_dies): Use add_partial_symbol.
5771
af0b2a3e
TT
57722020-05-27 Tom Tromey <tromey@adacore.com>
5773
5774 * dwarf2/abbrev.h (struct abbrev_table) <lookup_abbrev>: Inline.
5775 Use htab_find_with_hash.
5776 <add_abbrev>: Remove "abbrev_number" parameter.
5777 * dwarf2/abbrev.c (abbrev_table::add_abbrev): Remove
5778 "abbrev_number" parameter. Use htab_find_slot_with_hash.
5779 (hash_abbrev): Add comment.
5780 (abbrev_table::lookup_abbrev): Move to header file.
5781 (abbrev_table::read): Update.
5782
7d00ffec
TT
57832020-05-27 Tom Tromey <tromey@adacore.com>
5784
5785 * dwarf2/read.c (struct partial_die_info) <name>: Declare new
5786 method.
5787 <canonical_name>: New member.
5788 <raw_name>: Rename from "name".
5789 (partial_die_info): Initialize canonical_name.
5790 (scan_partial_symbols): Check raw_name.
5791 (partial_die_parent_scope, partial_die_full_name)
5792 (add_partial_symbol, add_partial_subprogram)
5793 (add_partial_enumeration, load_partial_dies): Use "name" method.
5794 (partial_die_info::name): New method.
5795 (partial_die_info::read, guess_partial_die_structure_name)
5796 (partial_die_info::fixup): Update.
5797
697bba18
TT
57982020-05-27 Tom Tromey <tromey@adacore.com>
5799
5800 * dwarf2/attribute.h (struct attribute) <form_is_ref>: Inline.
5801 <get_ref_die_offset>: Inline.
5802 <get_ref_die_offset_complaint>: New method.
5803 * dwarf2/attribute.c (attribute::form_is_ref): Move to header.
5804 (attribute::get_ref_die_offset_complaint): Rename from
5805 get_ref_die_offset. Just issue complaint.
5806
c17ace43
HD
58072020-05-27 Hannes Domani <ssbssa@yahoo.de>
5808
5809 * cli/cli-cmds.c (shell_escape): Move exit_status_set_internal_vars.
5810
96445f0b
HD
58112020-05-27 Hannes Domani <ssbssa@yahoo.de>
5812
5813 * exec.c (exec_file_attach): Use errno value of first openp failure.
5814
ac637ec3
HD
58152020-05-27 Hannes Domani <ssbssa@yahoo.de>
5816
5817 * nat/windows-nat.c (windows_thread_info::~windows_thread_info):
5818 Don't close thread handle.
5819
17ee85fc
TT
58202020-05-27 Tom Tromey <tom@tromey.com>
5821 Simon Marchi <simon.marchi@efficios.com>
5822
5823 * objfiles.h (struct objfile) <partial_symtabs>: Now a
5824 shared_ptr.
5825 * dwarf2/read.h (struct dwarf2_per_objfile) <partial_symtabs>: New
5826 member.
5827 * dwarf2/read.c (dwarf2_per_bfd_bfd_data_key,
5828 dwarf2_per_bfd_objfile_data_key>: New globals.
5829 (dwarf2_has_info): Use shared dwarf2_per_bfd if possible.
5830 (dwarf2_get_section_info): Use get_dwarf2_per_objfile.
5831 (dwarf2_initialize_objfile): Consider cases where per_bfd can be
5832 shared.
5833 (dwarf2_build_psymtabs): Set objfile::partial_symtabs and
5834 short-circuit when sharing.
5835 (dwarf2_build_psymtabs): Set dwarf2_per_objfile::partial_symtabs.
5836 (dwarf2_psymtab::expand_psymtab): Use free_cached_comp_units.
5837
39b16f87
SM
58382020-05-27 Simon Marchi <simon.marchi@efficios.com>
5839
5840 * dwarf2/read.h (struct dwarf2_per_bfd) <line_header_hash>: Move
5841 to...
5842 (struct dwarf2_per_objfile) <line_header_hash>: ... here.
5843 * dwarf2/read.c (handle_DW_AT_stmt_list): Update.
5844
fcf23d5b
SM
58452020-05-27 Simon Marchi <simon.marchi@efficios.com>
5846
5847 * dwarf2/read.c (struct mapped_index_base) <symbol_name_at,
5848 build_name_components, find_name_components_bounds>:
5849 Add per_objfile parameter.
5850 (struct mapped_index) <symbol_name_at>: Likewise.
5851 (struct mapped_debug_names): Remove constructor.
5852 <dwarf2_per_objfile>: Remove field.
5853 <namei_to_name, symbol_name_at>: Add per_objfile parameter.
5854 (mapped_index_base::find_name_components_bounds,
5855 mapped_index_base::build_name_components,
5856 dw2_expand_symtabs_matching_symbol): Likewise.
5857 (class mock_mapped_index) <symbol_name_at>: Likewise.
5858 (check_match): Likewise.
5859 (check_find_bounds_finds): Likewise.
5860 (test_mapped_index_find_name_component_bounds): Update.
5861 (CHECK_MATCH): Update.
5862 (dw2_expand_symtabs_matching): Update.
5863 (class dw2_debug_names_iterator) <dw2_debug_names_iterator>: Add
5864 per_objfile parameter.
5865 <find_vec_in_debug_names>: Likewise.
5866 <m_per_objfile>: New field.
5867 (mapped_debug_names::namei_to_name): Add dwarf2_per_objfile
5868 parameter.
5869 (dw2_debug_names_iterator::find_vec_in_debug_names): Likewise.
5870 (dw2_debug_names_iterator::next): Update.
5871 (dw2_debug_names_lookup_symbol): Update.
5872 (dw2_debug_names_expand_symtabs_for_function): Update.
5873 (dw2_debug_names_map_matching_symbols): Update.
5874 (dw2_debug_names_expand_symtabs_matching): Update.
5875 (dwarf2_read_debug_names): Update.
5876
7188ed02
SM
58772020-05-27 Simon Marchi <simon.marchi@efficios.com>
5878
5879 * dwarf2/read.h (struct dwarf2_cu): Forward-declare.
5880 (struct dwarf2_per_bfd) <free_cached_comp_units>: Remove,
5881 move to dwarf2_per_objfile.
5882 <read_in_chain>: Remove.
5883 (struct dwarf2_per_objfile) <get_cu, set_cu, remove_cu,
5884 remove_all_cus, age_comp_units>: New methods.
5885 <m_dwarf2_cus>: New member.
5886 (struct dwarf2_per_cu_data) <cu>: Remove.
5887 * dwarf2/read.c (struct dwarf2_cu) <read_in_chain>: Remove.
5888 (age_cached_comp_units, free_one_cached_comp_unit): Remove,
5889 moved to methods of dwarf2_per_objfile.
5890 (dwarf2_clear_marks): Remove.
5891 (dwarf2_queue_item::~dwarf2_queue_item): Update.
5892 (dwarf2_per_bfd::~dwarf2_per_bfd): Don't free dwarf2_cus.
5893 (dwarf2_per_bfd::free_cached_comp_units): Remove.
5894 (dwarf2_per_objfile::remove_all_cus): New.
5895 (class free_cached_comp_units) <~free_cached_comp_units>:
5896 Update.
5897 (load_cu): Update.
5898 (dw2_do_instantiate_symtab): Adjust.
5899 (fill_in_sig_entry_from_dwo_entry): Adjust.
5900 (cutu_reader::init_tu_and_read_dwo_dies): Update.
5901 (cutu_reader::cutu_reader): Likewise.
5902 (cutu_reader::keep): Use dwarf2_per_objfile::set_cu.
5903 (cutu_reader::cutu_reader): Use dwarf2_per_objfile::get_cu.
5904 (process_psymtab_comp_unit): Use dwarf2_per_objfile::remove_cu
5905 and dwarf2_per_objfile::age_comp_units.
5906 (load_partial_comp_unit): Update.
5907 (maybe_queue_comp_unit): Use dwarf2_per_objfile::get_cu.
5908 (process_queue): Likewise.
5909 (find_partial_die): Use dwarf2_per_objfile::get_cu instead of cu
5910 backlink.
5911 (dwarf2_read_addr_index): Likewise.
5912 (follow_die_offset): Likewise.
5913 (dwarf2_fetch_die_loc_sect_off): Likewise.
5914 (dwarf2_fetch_constant_bytes): Likewise.
5915 (dwarf2_fetch_die_type_sect_off): Likewise.
5916 (follow_die_sig_1): Likewise.
5917 (load_full_type_unit): Likewise.
5918 (read_signatured_type): Likewise.
5919 (dwarf2_cu::dwarf2_cu): Don't set cu field.
5920 (dwarf2_cu::~dwarf2_cu): Remove.
5921 (dwarf2_per_objfile::get_cu): New.
5922 (dwarf2_per_objfile::set_cu): New.
5923 (age_cached_comp_units): Rename to...
5924 (dwarf2_per_objfile::age_comp_units): ... this. Adjust
5925 to std::unordered_map.
5926 (free_one_cached_comp_unit): Rename to...
5927 (dwarf2_per_objfile::remove_cu): ... this. Adjust
5928 to std::unordered_map.
5929 (dwarf2_per_objfile::~dwarf2_per_objfile): New.
5930 (dwarf2_mark_helper): Use dwarf2_per_objfile::get_cu, expect
5931 a dwarf2_per_objfile in data.
5932 (dwarf2_mark): Pass dwarf2_per_objfile in data to htab_traverse.
5933 (dwarf2_clear_marks): Remove.
5934
2e671100
SM
59352020-05-27 Simon Marchi <simon.marchi@efficios.com>
5936
5937 * dwarf2/read.c (class cutu_reader) <cutu_reader>: Replace
5938 `int use_existing_cu` parameter with `dwarf2_cu *existing_cu`.
5939 (init_tu_and_read_dwo_dies): Likewise.
5940 (cutu_reader::init_tu_and_read_dwo_dies): Likewise.
5941 (cutu_reader::cutu_reader): Likewise.
5942 (load_partial_comp_unit): Likewise.
5943 (process_psymtab_comp_unit): Update.
5944 (build_type_psymtabs_1): Update.
5945 (process_skeletonless_type_unit): Update.
5946 (load_full_comp_unit): Update.
5947 (find_partial_die): Update.
5948 (dwarf2_read_addr_index): Update.
5949 (read_signatured_type): Update.
5950
2e6a9f79
SM
59512020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
5952
5953 * dwarf2/read.h (struct dwarf2_per_cu_data) <m_header,
5954 m_header_read_in>: New fields.
5955 <get_header>: New method.
5956 * dwarf2/read.c (per_cu_header_read_in): Remove.
5957 (dwarf2_per_cu_data::get_header): New.
5958 (dwarf2_per_cu_data::addr_size): Update.
5959 (dwarf2_per_cu_data::offset_size): Update.
5960 (dwarf2_per_cu_data::ref_addr_size): Update.
5961
1b555f17
SM
59622020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
5963
5964 * dwarf2/read.c (load_cu): Return dwarf2_cu.
5965 (dw2_do_instantiate_symtab): Update.
5966 (queue_and_load_all_dwo_tus): Change parameter from
5967 dwarf2_per_cu_data to dwarf2_cu.
5968 (dwarf2_fetch_die_loc_sect_off): Update.
5969 (dwarf2_fetch_constant_bytes): Update.
5970 (dwarf2_fetch_die_type_sect_off): Update.
5971
8fc0b21d
SM
59722020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
5973
5974 * dwarf2/read.c (process_full_comp_unit,
5975 process_full_type_unit): Remove per_cu, per_objfile paramters.
5976 Add dwarf2_cu parameter.
5977 (process_queue): Update.
5978
168c9250
SM
59792020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
5980
5981 * dwarf2/read.c (create_cu_from_index_list): Replace
5982 dwarf2_per_objfile parameter with dwarf2_per_bfd.
5983 (create_cus_from_index_list): Likewise.
5984 (create_cus_from_index): Likewise.
5985 (create_signatured_type_table_from_index): Likewise.
5986 (create_cus_from_debug_names_list): Likewise.
5987 (create_cus_from_debug_names): Likewise.
5988 (dwarf2_read_gdb_index): Update.
5989 (dwarf2_read_debug_names): Update.
5990
e286671b
TT
59912020-05-27 Tom Tromey <tom@tromey.com>
5992 Simon Marchi <simon.marchi@efficios.com>
5993
5994 * dwarf2/read.h (struct dwarf2_per_objfile)
5995 <get_type_for_signatured_type, set_type_for_signatured_type>:
5996 New methods.
5997 <m_type_map>: New member.
5998 (struct signatured_type) <type>: Remove.
5999 * dwarf2/read.c
6000 (dwarf2_per_objfile::get_type_for_signatured_type,
6001 dwarf2_per_objfile::set_type_for_signatured_type): New.
6002 (get_signatured_type): Use new methods.
6003
8adb8487
TT
60042020-05-27 Tom Tromey <tom@tromey.com>
6005 Simon Marchi <simon.marchi@efficios.com>
6006
6007 * dwarf2/read.h (struct type_unit_group_unshareable): New.
6008 (struct dwarf2_per_objfile) <type_units>: New member.
6009 <get_type_unit_group_unshareable>: New method.
6010 * dwarf2/read.c (struct type_unit_group) <compunit_symtab,
6011 num_symtabs, symtabs>: Remove; move to
6012 type_unit_group_unshareable.
6013 (dwarf2_per_objfile::get_type_unit_group_unshareable): New.
6014 (process_full_type_unit, dwarf2_cu::setup_type_unit_groups)
6015 (dwarf2_cu::setup_type_unit_groups): Use type_unit_group_unshareable.
6016
127bbf4b
SM
60172020-05-27 Simon Marchi <simon.marchi@efficios.com>
6018
6019 * dwarf2/read.h (struct dwarf2_per_cu_data):
6020 <dwarf2_per_objfile>: Remove.
6021 * dwarf2/read.c (create_cu_from_index_list): Don't assign
6022 dwarf2_per_objfile.
6023 (create_signatured_type_table_from_index): Likewise.
6024 (create_signatured_type_table_from_debug_names): Likewise.
6025 (create_debug_type_hash_table): Likewise.
6026 (fill_in_sig_entry_from_dwo_entry): Likewise.
6027 (create_type_unit_group): Likewise.
6028 (read_comp_units_from_section): Likewise.
6029 (create_cus_hash_table): Likewise.
6030
f6e649dd
SM
60312020-05-27 Simon Marchi <simon.marchi@efficios.com>
6032
6033 * dwarf2/read.c (process_psymtab_comp_unit): Remove reference to
6034 dwarf2_per_cu_data::dwarf2_per_objfile.
6035 (compute_compunit_symtab_includes): Likewise.
6036 (dwarf2_cu::start_symtab): Likewise.
6037
aa66c379
SM
60382020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
6039
6040 * dwarf2/read.h (dwarf2_get_die_type): Add dwarf2_per_objfile
6041 parameter.
6042 * dwarf2/read.c (get_die_type_at_offset): Likewise.
6043 (read_namespace_alias): Update.
6044 (lookup_die_type): Update.
6045 (dwarf2_get_die_type): Add dwarf2_per_objfile parameter.
6046 * dwarf2/loc.c (class dwarf_evaluate_loc_desc) <get_base_type>:
6047 Update.
6048 (disassemble_dwarf_expression): Update.
6049
120ce1b5
SM
60502020-05-27 Simon Marchi <simon.marchi@efficios.com>
6051
6052 * dwarf2/read.h (struct dwarf2_queue_item): Add
6053 dwarf2_per_objfile parameter, assign new parameter.
6054 <per_objfile>: New field.
6055 * dwarf2/read.c (free_one_cached_comp_unit): Add
6056 dwarf2_per_objfile parameter.
6057 (queue_comp_unit): Likewise.
6058 (dw2_do_instantiate_symtab): Update.
6059 (process_psymtab_comp_unit): Update.
6060 (maybe_queue_comp_unit): Add dwarf2_per_objfile parameter.
6061 (process_imported_unit_die): Update.
6062 (queue_and_load_dwo_tu): Update.
6063 (follow_die_offset): Update.
6064 (follow_die_sig_1): Update.
6065
9f47c707
SM
60662020-05-27 Simon Marchi <simon.marchi@efficios.com>
6067
6068 * dwarf2/read.h (struct dwarf2_per_cu_data) <objfile>: Remove.
6069 * dwarf2/read.c (dwarf2_compute_name): Pass per_objfile down.
6070 (read_call_site_scope): Assign per_objfile.
6071 (dwarf2_per_cu_data::objfile): Remove.
6072 * gdbtypes.h (struct call_site) <per_objfile>: New member.
6073 * dwarf2/loc.h (dwarf2_evaluate_loc_desc): Add
6074 dwarf2_per_objfile parameter.
6075 * dwarf2/loc.c (dwarf2_evaluate_loc_desc_full): Add
6076 dwarf2_per_objfile parameter.
6077 (dwarf_expr_reg_to_entry_parameter): Add output
6078 dwarf2_per_objfile parameter.
6079 (locexpr_get_frame_base): Update.
6080 (class dwarf_evaluate_loc_desc) <get_tls_address>: Update.
6081 <push_dwarf_reg_entry_value>: Update.
6082 <call_site_to_target_addr>: Update.
6083 (dwarf_entry_parameter_to_value): Add dwarf2_per_objfile
6084 parameter.
6085 (value_of_dwarf_reg_entry): Update.
6086 (rw_pieced_value): Update.
6087 (indirect_synthetic_pointer): Update.
6088 (dwarf2_evaluate_property): Update.
6089 (dwarf2_loc_desc_get_symbol_read_needs): Add dwarf2_per_objfile
6090 parameter.
6091 (locexpr_read_variable): Update.
6092 (locexpr_get_symbol_read_needs): Update.
6093 (loclist_read_variable): Update.
6094
14095eb3
SM
60952020-05-27 Simon Marchi <simon.marchi@efficios.com>
6096
6097 * dwarf2/read.h (dwarf2_fetch_die_loc_sect_off,
6098 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
6099 dwarf2_fetch_die_type_sect_off): Add dwarf2_per_objfile
6100 parameter.
6101 * dwarf2/read.c (dwarf2_fetch_die_loc_sect_off,
6102 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
6103 dwarf2_fetch_die_type_sect_off): Add dwarf2_per_objfile
6104 parameter.
6105 * dwarf2/loc.c (indirect_synthetic_pointer, per_cu_dwarf_call,
6106 sect_variable_value): Add dwarf2_per_objfile parameter.
6107 (class dwarf_evaluate_loc_desc) <dwarf_call,
6108 dwarf_variable_value>: Update.
6109 (fetch_const_value_from_synthetic_pointer): Add
6110 dwarf2_per_objfile parameter.
6111 (fetch_const_value_from_synthetic_pointer): Update.
6112 (coerced_pieced_ref): Update.
6113 (class symbol_needs_eval_context) <dwarf_call,
6114 dwarf_variable_value>: Update.
6115 (dwarf2_compile_expr_to_ax): Update.
6116
3c3cd3d4
SM
61172020-05-27 Simon Marchi <simon.marchi@efficios.com>
6118
6119 * dwarf2/loc.c (allocate_piece_closure): Add dwarf2_per_objfile
6120 parameter.
6121 (dwarf2_evaluate_loc_desc_full): Update.
6122
82ca3f51
SM
61232020-05-27 Simon Marchi <simon.marchi@efficios.com>
6124
6125 * dwarf2/read.h (dwarf2_read_addr_index): Add dwarf2_per_objfile
6126 parameter.
6127 * dwarf2/read.c (dwarf2_read_addr_index): Likewise.
6128 * dwarf2/loc.c (decode_debug_loclists_addresses): Add
6129 dwarf2_per_objfile parameter.
6130 (decode_debug_loc_dwo_addresses): Likewise.
6131 (dwarf2_find_location_expression): Update.
6132 (class dwarf_evaluate_loc_desc) <get_addr_index>: Update.
6133 (locexpr_describe_location_piece): Add dwarf2_per_objfile
6134 parameter.
6135 (disassemble_dwarf_expression): Add dwarf2_per_objfile
6136 parameter.
6137 (locexpr_describe_location_1): Likewise.
6138 (locexpr_describe_location): Update.
6139
4b167ea1
SM
61402020-05-27 Simon Marchi <simon.marchi@efficios.com>
6141
6142 * dwarf2/read.h (struct dwarf2_per_cu_data) <text_offset>:
6143 Remove.
6144 * dwarf2/read.c (dwarf2_per_cu_data::text_offset): Remove.
6145 * dwarf2/loc.c (dwarf2_find_location_expression): Update.
6146 (dwarf2_compile_property_to_c): Update.
6147 (dwarf2_compile_expr_to_ax): Add dwarf2_per_objfile parameter,
6148 use text offset from objfile.
6149 (locexpr_tracepoint_var_ref): Update.
6150 (locexpr_generate_c_location): Update.
6151 (loclist_describe_location): Update.
6152 (loclist_tracepoint_var_ref): Update.
6153 * dwarf2/compile.h (compile_dwarf_bounds_to_c): Add
6154 dwarf2_per_objfile parameter.
6155 * dwarf2/loc2c.c (do_compile_dwarf_expr_to_c): Likewise,
6156 use text offset from objfile.
6157 (compile_dwarf_expr_to_c): Add dwarf2_per_objfile parameter.
6158
89b07335
SM
61592020-05-27 Simon Marchi <simon.marchi@efficios.com>
6160
6161 * dwarf2/expr.h (struct dwarf_expr_context)
6162 <dwarf_expr_context>: Add dwarf2_per_objfile parameter.
6163 <offset>: Remove.
6164 <per_objfile>: New member.
6165 * dwarf2/expr.c (dwarf_expr_context::dwarf_expr_context): Add
6166 dwarf2_per_objfile parameter. Don't set offset, set
6167 per_objfile.
6168 (dwarf_expr_context::execute_stack_op): Use offset from objfile.
6169 * dwarf2/frame.c (dwarf2_frame_find_fde): Return (by parameter)
6170 a dwarf2_per_objfile object instead of an offset.
6171 (class dwarf_expr_executor) <dwarf_expr_executor>: Add
6172 constructor.
6173 (execute_stack_op): Add dwarf2_per_objfile parameter, pass it
6174 to dwarf2_expr_executor constructor. Don't set offset.
6175 (dwarf2_fetch_cfa_info): Update.
6176 (struct dwarf2_frame_cache) <text_offset>: Remove.
6177 <per_objfile>: New field.
6178 (dwarf2_frame_cache): Update.
6179 (dwarf2_frame_prev_register): Update.
6180 * dwarf2/loc.c (class dwarf_evaluate_loc_desc)
6181 <dwarf_evaluate_loc_desc>: Add constructor.
6182 (dwarf2_evaluate_loc_desc_full): Update.
6183 (dwarf2_locexpr_baton_eval): Update.
6184 (class symbol_needs_eval_context) <symbol_needs_eval_context>:
6185 Add constructor.
6186 (dwarf2_loc_desc_get_symbol_read_needs): Update.
6187
293e7e51
SM
61882020-05-27 Simon Marchi <simon.marchi@efficios.com>
6189
6190 * dwarf2/read.h (struct dwarf2_per_cu_data) <addr_type,
6191 addr_sized_int_type>: Move to dwarf2_cu.
6192 <int_type>: Move to dwarf2_per_objfile.
6193 (struct dwarf2_per_objfile) <int_type>: Move here.
6194 * dwarf2/read.c (struct dwarf2_cu) <addr_type,
6195 addr_sized_int_type>: Move here.
6196 (read_func_scope): Update.
6197 (read_array_type): Update.
6198 (read_tag_string_type): Update.
6199 (attr_to_dynamic_prop): Update.
6200 (dwarf2_per_cu_data::int_type): Rename to...
6201 (dwarf2_per_objfile::int_type): ... this.
6202 (dwarf2_per_cu_data::addr_sized_int_type): Rename to...
6203 (dwarf2_cu::addr_sized_int_type): ... this.
6204 (read_subrange_type): Update.
6205 (dwarf2_per_cu_data::addr_type): Rename to...
6206 (dwarf2_cu::addr_type): ... this.
6207 (set_die_type): Update.
6208
64874a40
SM
62092020-05-27 Simon Marchi <simon.marchi@efficios.com>
6210
6211 * dwarf2/read.c (queue_and_load_all_dwo_tus): Access per_objfile
6212 data through per_cu->cu.
6213
4ab09049
SM
62142020-05-27 Simon Marchi <simon.marchi@efficios.com>
6215
6216 * dwarf2/read.c (lookup_dwo_comp_unit): Change
6217 dwarf2_per_cu_data parameter fo dwarf2_cu.
6218 (lookup_dwo_type_unit): Likewise.
6219 (read_cutu_die_from_dwo): Likewise.
6220 (lookup_dwo_unit): Likewise.
6221 (open_and_init_dwo_file): Likewise.
6222 (lookup_dwo_cutu): Likewise.
6223 (lookup_dwo_comp_unit): Likewise.
6224 (lookup_dwo_type_unit): Likewise.
6225 (cutu_reader::init_tu_and_read_dwo_dies): Update.
6226 (cutu_reader::cutu_reader): Update.
6227
47b14e86
SM
62282020-05-27 Simon Marchi <simon.marchi@efficios.com>
6229
6230 * dwarf2/read.c (process_full_comp_unit): Add dwarf2_per_objfile
6231 parameter.
6232 (process_full_type_unit): Likewise.
6233 (process_queue): Update.
6234
43182c09
SM
62352020-05-27 Simon Marchi <simon.marchi@efficios.com>
6236
6237 * dwarf2/read.c (recursively_compute_inclusions): Add
6238 dwarf2_per_objfile parameter.
6239 (compute_compunit_symtab_includes): Likewise.
6240 (process_cu_includes): Update.
6241
7aa104c4
SM
62422020-05-27 Simon Marchi <simon.marchi@efficios.com>
6243
6244 * dwarf2/read.c (create_partial_symtab): Add dwarf2_per_objfile
6245 parameter.
6246 (create_type_unit_group): Update.
6247 (process_psymtab_comp_unit_reader): Update.
6248 (build_type_psymtabs_reader): Update.
6249
e3beb21d
SM
62502020-05-27 Simon Marchi <simon.marchi@efficios.com>
6251
6252 * dwarf2/read.c (cutu_reader::keep): Access dwarf2_per_objfile
6253 object through m_this_cu->cu.
6254
d460f660
SM
62552020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
6256
6257 * dwarf2/read.c (queue_and_load_dwo_tu): Expect a dwarf2_cu as
6258 the info parameter.
6259 (queue_and_load_all_dwo_tus): Pass per_cu->cu.
6260
ab432490
SM
62612020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
6262
6263 * dwarf2/read.c (class cutu_reader) <cutu_reader>: Add
6264 per_objfile parameter.
6265 (load_full_type_unit): Add per_objfile parameter.
6266 (read_signatured_type): Likewise.
6267 (load_full_comp_unit): Likewise.
6268 (load_cu): Likewise.
6269 (dw2_do_instantiate_symtab): Likewise.
6270 (dw2_get_file_names): Likewise.
6271 (dw2_map_symtabs_matching_filename): Update.
6272 (dw_expand_symtabs_matching_file_matcher): Update.
6273 (dw2_map_symbol_filenames): Update.
6274 (process_psymtab_comp_unit): Add per_objfile parameter.
6275 (build_type_psymtabs_1): Update.
6276 (process_skeletonless_type_unit): Update.
6277 (dwarf2_build_psymtabs_hard): Update.
6278 (load_partial_comp_unit): Add per_objfile parameter.
6279 (scan_partial_symbols): Update.
6280 (load_full_comp_unit): Add per_objfile parameter.
6281 (process_imported_unit_die): Update.
6282 (create_cus_hash_table): Update.
6283 (find_partial_die): Update.
6284 (dwarf2_read_addr_index): Update.
6285 (follow_die_offset): Update.
6286 (dwarf2_fetch_die_loc_sect_off): Update.
6287 (dwarf2_fetch_constant_bytes): Update.
6288 (dwarf2_fetch_die_type_sect_off): Update.
6289 (follow_die_sig_1): Update.
6290 (load_full_type_unit): Add per_objfile parameter.
6291 (read_signatured_type): Likewise.
6292
313bad1b
SM
62932020-05-27 Simon Marchi <simon.marchi@efficios.com>
6294
6295 * dwarf2/read.c (lookup_dwo_unit): Use bfd_get_filename instead
6296 of objfile_name.
6297
c3699833
SM
62982020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
6299
6300 * dwarf2/read.h (struct dwarf2_per_bfd) <obfd>: New member.
6301 (dwarf2_get_dwz_file): Replace parameter with dwarf2_per_bfd.
6302 * dwarf2/read.c (dwarf2_per_bfd::dwarf2_per_bfd): Assign obfd
6303 field.
6304 (dwarf2_get_dwz_file): Replace parameter with dwarf2_per_bfd.
6305 (create_cus_from_index): Update.
6306 (dwarf2_read_gdb_index): Update.
6307 (create_cus_from_debug_names): Update.
6308 (dwarf2_read_debug_names): Update.
6309 (get_abbrev_section_for_cu): Update.
6310 (create_all_comp_units): Update.
6311 (read_attribute_value): Update.
6312 (get_debug_line_section): Update.
6313 * dwarf2/index-cache.c (index_cache::store): Update.
6314 * dwarf2/index-write.c (save_gdb_index_command): Update.
6315 * dwarf2/macro.c (dwarf_decode_macro_bytes): Update.
6316
1859c670
SM
63172020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
6318
6319 * dwarf2/read.h (struct dwarf2_per_cu_data) <per_bfd>: New
6320 member.
6321 * dwarf2/read.c (dwarf2_per_bfd::allocate_per_cu): Initialize
6322 dwarf2_per_cu_data::per_bfd.
6323 (dwarf2_per_bfd::allocate_signatured_type): Likewise.
6324 (create_type_unit_group): Likewise.
6325 (queue_comp_unit): Remove reference to
6326 per_cu->dwarf2_per_objfile.
6327 (maybe_queue_comp_unit): Likewise.
6328 (fill_in_sig_entry_from_dwo_entry): Assign new field.
6329 (create_cus_hash_table): Assign new field.
6330
5e22e966
SM
63312020-05-27 Simon Marchi <simon.marchi@efficios.com>
6332
6333 * dwarf2/read.c: Replace
6334 dwarf2_cu->per_cu->dwarf2_per_objfile references with
6335 dwarf2_cu->per_objfile throughout.
6336
97a1449a
SM
63372020-05-27 Simon Marchi <simon.marchi@efficios.com>
6338
6339 * dwarf2/read.c (dw2_do_instantiate_symtab): Add per_objfile
6340 parameter, don't use per_cu->dwarf2_per_objfile.
6341 (dw2_instantiate_symtab): Likewise.
6342 (dw2_find_last_source_symtab): Update.
6343 (dw2_map_expand_apply): Update.
6344 (dw2_lookup_symbol): Update.
6345 (dw2_expand_symtabs_for_function): Update.
6346 (dw2_expand_all_symtabs): Update.
6347 (dw2_expand_symtabs_with_fullname): Update.
6348 (dw2_expand_symtabs_matching_one): Add per_objfile parameter,
6349 don't use per_cu->dwarf2_per_objfile.
6350 (dw2_expand_marked_cus): Update.
6351 (dw2_find_pc_sect_compunit_symtab): Update.
6352 (dw2_debug_names_lookup_symbol): Update.
6353 (dw2_debug_names_expand_symtabs_for_function): Update.
6354 (dw2_debug_names_map_matching_symbols): Update.
6355 (dwarf2_psymtab::expand_psymtab): Update.
6356
9e021579
SM
63572020-05-27 Simon Marchi <simon.marchi@efficios.com>
6358
6359 * dwarf2/read.c (struct dwarf2_cu) <dwarf2_cu>: Add parameter.
6360 <per_objfile>: New member.
6361 (class cutu_reader) <init_tu_and_read_dwo_dies>: Add parameter.
6362 (cutu_reader::init_tu_and_read_dwo_dies): Add parameter, update
6363 call to dwarf2_cu.
6364 (cutu_reader::cutu_reader): Update.
6365 (dwarf2_cu::dwarf2_cu): Add parameter, initialize per_objfile.
6366
ae090bdb
SM
63672020-05-27 Simon Marchi <simon.marchi@efficios.com>
6368
6369 * dwarf2/read.h (struct dwarf2_per_bfd) <die_type_hash>: Move to
6370 struct dwarf2_per_objfile.
6371 (struct dwarf2_per_objfile) <die_type_hash>: Move from struct
6372 dwarf2_per_bfd.
6373 * dwarf2/read.c (set_die_type): Update.
6374 (get_die_type_at_offset): Update.
6375
af758d11
SM
63762020-05-27 Tom Tromey <tom@tromey.com>
6377 Simon Marchi <simon.marchi@efficios.com>
6378
6379 * dwarf2/read.h (struct dwarf2_per_bfd) <num_psymtabs>: New
6380 method.
6381 (struct dwarf2_per_objfile) <resize_symtabs, symtab_set_p,
6382 get_symtab, set_symtab>: New methods.
6383 <m_symtabs>: New field.
6384 (struct dwarf2_psymtab): Derive from partial_symtab.
6385 <readin_p, get_compunit_symtab>: Declare methods.
6386 * dwarf2/read.c (dwarf2_per_objfile::symtab_set_p,
6387 dwarf2_per_objfile::get_symtab, dwarf2_per_objfile::set_symtab):
6388 New methods.
6389 (struct dwarf2_per_cu_quick_data) <compunit_symtab>: Remove.
6390 (dw2_do_instantiate_symtab, dw2_instantiate_symtab)
6391 (dw2_map_expand_apply, dw2_map_symtabs_matching_filename)
6392 (dw2_symtab_iter_next, dw2_print_stats)
6393 (dw2_expand_symtabs_with_fullname)
6394 (dw2_expand_symtabs_matching_one)
6395 (dw_expand_symtabs_matching_file_matcher)
6396 (dw2_find_pc_sect_compunit_symtab, dw2_map_symbol_filenames)
6397 (dw2_debug_names_iterator::next)
6398 (dw2_debug_names_map_matching_symbols)
6399 (fill_in_sig_entry_from_dwo_entry, dwarf2_psymtab::read_symtab)
6400 (process_queue, dwarf2_psymtab::expand_psymtab): Update.
6401 (dwarf2_psymtab::readin_p, dwarf2_psymtab::get_compunit_symtab):
6402 New methods.
6403 (get_compunit_symtab, process_full_comp_unit)
6404 (process_full_type_unit): Update.
6405 (dwarf2_build_psymtabs, dwarf2_initialize_objfile, add_type_unit): Call
6406
5989a64e
SM
64072020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
6408
6409 * dwarf2/read.h (dwarf2_per_objfile): Rename to dwarf2_per_bfd,
6410 then introduce a new dwarf2_per_objfile type.
6411 <read_line_string>: Move to the new dwarf2_per_objfile type.
6412 <objfile>: Likewise.
6413 (dwarf2_per_bfd): Rename dwarf2_per_objfile to this.
6414 * dwarf2/read.c: Replace references to dwarf2_per_objfile with
6415 dwarf2_per_objfile->per_bfd.
6416 (dwarf2_per_objfile::dwarf2_per_objfile): Rename to...
6417 (dwarf2_per_bfd::dwarf2_per_bfd): ... this.
6418 (dwarf2_per_objfile::free_cached_comp_units): Rename to...
6419 (dwarf2_per_bfd::free_cached_comp_units): ... this.
6420 (dwarf2_has_info): Allocate dwarf2_per_bfd.
6421 (dwarf2_per_objfile::locate_sections): Rename to...
6422 (dwarf2_per_bfd::locate_sections): ... this.
6423 (dwarf2_per_objfile::get_cutu): Rename to...
6424 (dwarf2_per_bfd::get_cutu): ... this.
6425 (dwarf2_per_objfile::get_cu): Rename to...
6426 (dwarf2_per_bfd::get_cu): ... this.
6427 (dwarf2_per_objfile::get_tu): Rename to...
6428 (dwarf2_per_bfd::get_tu): ... this.
6429 (dwarf2_per_objfile::allocate_per_cu): Rename to...
6430 (dwarf2_per_bfd::allocate_per_cu): ... this.
6431 (dwarf2_per_objfile::allocate_signatured_type): Rename to...
6432 (dwarf2_per_bfd::allocate_signatured_type): ... this.
6433 (get_gdb_index_contents_ftype): Change parameter from
6434 dwarf2_per_objfile to dwarf2_per_bfd.
6435 * dwarf2/macro.c, dwarf2/index-write.c: Replace references to
6436 dwarf2_per_objfile with dwarf2_per_objfile->per_bfd.
6437
a50264ba
TT
64382020-05-27 Tom Tromey <tom@tromey.com>
6439 Simon Marchi <simon.marchi@efficios.com>
6440
6441 * dwarf2/loc.c (struct piece_closure) <per_objfile>: New member.
6442 (allocate_piece_closure): Set "per_objfile" member.
6443 (dwarf2_find_location_expression, dwarf2_locexpr_baton_eval)
6444 (locexpr_describe_location, loclist_describe_location): Use new
6445 member.
6446 * dwarf2/read.c (read_call_site_scope)
6447 (mark_common_block_symbol_computed, attr_to_dynamic_prop)
6448 (dwarf2_const_value_attr, dwarf2_fetch_die_loc_sect_off)
6449 (fill_in_loclist_baton, dwarf2_symbol_mark_computed,
6450 handle_data_member_location): Set per_objfile member.
6451 * dwarf2/loc.h (struct dwarf2_locexpr_baton) <per_objfile>: New
6452 member.
6453 (struct dwarf2_loclist_baton) <per_objfile>: New member.
6454
d3473f0c
TT
64552020-05-27 Tom Tromey <tom@tromey.com>
6456
6457 * dwarf2/read.h (struct dwarf2_per_objfile) <allocate_per_cu,
6458 allocate_signatured_type>: Declare new methods.
6459 <m_num_psymtabs>: New member.
6460 (struct dwarf2_per_cu_data) <index>: New member.
6461 * dwarf2/read.c (dwarf2_per_objfile::allocate_per_cu)
6462 (dwarf2_per_objfile::allocate_signatured_type): New methods.
6463 (create_cu_from_index_list): Use allocate_per_cu.
6464 (create_signatured_type_table_from_index)
6465 (create_signatured_type_table_from_debug_names)
6466 (create_debug_type_hash_table, add_type_unit)
6467 (read_comp_units_from_section): Use allocate_signatured_type.
6468
5717c425
TT
64692020-05-27 Tom Tromey <tom@tromey.com>
6470
6471 * psymtab.c (partial_map_expand_apply)
6472 (psym_find_pc_sect_compunit_symtab, psym_lookup_symbol)
6473 (psym_lookup_global_symbol_language)
6474 (psymtab_to_symtab, psym_find_last_source_symtab, dump_psymtab)
6475 (psym_print_stats, psym_expand_symtabs_for_function)
6476 (psym_map_symbol_filenames, psym_map_matching_symbols)
6477 (psym_expand_symtabs_matching)
6478 (partial_symtab::read_dependencies, maintenance_info_psymtabs)
6479 (maintenance_check_psymtabs): Update.
6480 * psympriv.h (struct partial_symtab) <readin_p,
6481 get_compunit_symtab>: Add objfile parameter.
6482 (struct standard_psymtab) <readin_p, get_compunit_symtab>:
6483 Likewise.
6484 * dwarf2/read.c (struct dwarf2_include_psymtab) <readin_p,
6485 get_compunit_symtab>: Likewise.
6486 (dwarf2_psymtab::expand_psymtab): Pass objfile argument.
6487
45940949
TT
64882020-05-27 Tom Tromey <tom@tromey.com>
6489
6490 * dwarf2/read.h (struct dwarf2_per_objfile) <obstack>: New
6491 member.
6492 * dwarf2/read.c (delete_file_name_entry): Fix comment.
6493 (create_cu_from_index_list)
6494 (create_signatured_type_table_from_index)
6495 (create_signatured_type_table_from_debug_names)
6496 (dw2_get_file_names_reader, dwarf2_initialize_objfile)
6497 (dwarf2_create_include_psymtab)
6498 (create_debug_type_hash_table, add_type_unit)
6499 (create_type_unit_group, read_comp_units_from_section)
6500 (dwarf2_compute_name, create_cus_hash_table)
6501 (create_dwp_hash_table, create_dwo_unit_in_dwp_v1)
6502 (create_dwo_unit_in_dwp_v2, open_and_init_dwp_file): Use new
6503 obstack.
6504 (dw2_get_real_path): Likewise. Change argument to
6505 dwarf2_per_objfile.
6506
f8c6d152
LM
65072020-05-27 Luis Machado <luis.machado@linaro.org>
6508
6509 PR tdep/26000
6510 * arm-tdep.c (thumb_analyze_prologue): Fix instruction matching
6511 for ldrd (immediate).
6512
e98d2e6d
PW
65132020-05-26 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6514
6515 * command.h: Add comment giving the name of class_tui.
6516 * cli/cli-cmds.c (_initialize_cli_cmds): If TUI defined,
6517 create the fake command for the help for class_tui.
6518
53a47a3e
TT
65192020-05-26 Tom Tromey <tromey@adacore.com>
6520
6521 * ada-lang.c (ada_print_array_index): Change type. Call val_atr.
6522 (ada_value_ptr_subscript): Don't call pos_atr on the lower bound.
6523 (val_atr): New function.
6524 (value_val_atr): Use it.
6525 * ada-valprint.c (print_optional_low_bound): Change low bound
6526 handling for enums.
6527 (val_print_packed_array_elements): Don't call discrete_position.
6528 * gdbtypes.c (get_discrete_bounds) <TYPE_CODE_RANGE>: Call
6529 discrete_position for enum types.
6530 * language.c (default_print_array_index): Change type.
6531 * language.h (struct language_defn) <la_print_array_index>: Add
6532 index_type parameter, change type of index_value.
6533 (LA_PRINT_ARRAY_INDEX): Add index_type parameter.
6534 (default_print_array_index): Update.
6535 * valprint.c (maybe_print_array_index): Don't call
6536 value_from_longest. Update.
6537 (value_print_array_elements): Don't call discrete_position.
6538
0bc2354b
TT
65392020-05-26 Tom Tromey <tromey@adacore.com>
6540
6541 * ada-lang.c (value_val_atr): Handle TYPE_CODE_RANGE.
6542 * gdbtypes.c (discrete_position): Handle TYPE_CODE_RANGE.
6543
1218a4bf
CDA
65442020-05-25 Cristiano De Alti <cristiano_dealti@hotmail.com>
6545
6546 PR gdb/13519
6547 * avr-tdep.c (avr_integer_to_address): Return data or code
6548 address accordingly to the second 'type' argument of the
6549 function.
6550
92651b1d
MW
65512020-05-25 Michael Weghorn <m.weghorn@posteo.de>
6552
6553 * infcmd.c, inferior.h: (construct_inferior_arguments):
6554 Moved function from here to gdbsupport/common-inferior.{h,cc}
6555
0a4f5f8c
TT
65562020-05-23 Tom Tromey <tom@tromey.com>
6557
6558 Revert commit eca1f90c:
6559 * NEWS: Remove entry for completion styling.
6560 * completer.c (_rl_completion_prefix_display_length): Move
6561 declaration later.
6562 (gdb_fnprint): Revert.
6563 (gdb_display_match_list_1): Likewise.
6564 * cli/cli-style.c (completion_prefix_style)
6565 (completion_difference_style, completion_suffix_style): Remove.
6566 (_initialize_cli_style): Revert.
6567 * cli/cli-style.h (completion_prefix_style)
6568 (completion_difference_style, completion_suffix_style): Don't
6569 declare.
6570
e08bd6c5
PA
65712020-05-24 Pedro Alves <palves@redhat.com>
6572
6573 * symtab.c (completion_list_add_name): Return boolean indication
6574 of whether the symbol matched.
6575 (completion_list_add_symbol): Don't try to remove C++ aliases if
6576 the symbol didn't match in the first place.
6577 * symtab.h (completion_list_add_name): Return bool.
6578
ceacbf6e
SM
65792020-05-23 Simon Marchi <simon.marchi@polymtl.ca>
6580
6581 * gdbtypes.h (TYPE_FIELD): Remove. Replace all uses with
6582 type::field.
6583
26f16254
JB
65842020-05-23 Joel Brobecker <brobecker@adacore.com>
6585
6586 GDB 9.2 released.
6587
eca1f90c
TT
65882020-05-23 Tom Tromey <tom@tromey.com>
6589
6590 * NEWS: Add entry for completion styling.
6591 * completer.c (_rl_completion_prefix_display_length): Move
6592 declaration earlier.
6593 (gdb_fnprint): Use completion_style.
6594 (gdb_display_match_list_1): Likewise.
6595 * cli/cli-style.c (completion_prefix_style)
6596 (completion_difference_style, completion_suffix_style): New
6597 globals.
6598 (_initialize_cli_style): Register new globals.
6599 * cli/cli-style.h (completion_prefix_style)
6600 (completion_difference_style, completion_suffix_style): Declare.
6601
51e2cfa2
PA
66022020-05-23 Pedro Alves <palves@redhat.com>
6603
6604 * utils.c: Include "gdbsupport/gdb-safe-ctype.h".
6605 (parse_escape): Use ISDIGIT instead of isdigit.
6606 (puts_debug): Use gdb_isprint instead of isprint.
6607 (fprintf_symbol_filtered): Use ISALNUM instead of isalnum.
6608 (cp_skip_operator_token, skip_ws, strncmp_iw_with_mode): Use
6609 ISSPACE instead of isspace.
6610 (strncmp_iw_with_mode): Use TOLOWER instead of tolower and ISSPACE
6611 instead of isspace.
6612 (strcmp_iw_ordered): Use ISSPACE instead of isspace.
6613 (string_to_core_addr): Use TOLOWER instead of tolower, ISXDIGIT
6614 instead of isxdigit and ISDIGIT instead of isdigit.
6615
80fc5e77
SM
66162020-05-22 Simon Marchi <simon.marchi@efficios.com>
6617
6618 * gdbtypes.h (struct type) <field>: New method.
6619 (TYPE_FIELDS): Remove, replace all uses with either type::fields
6620 or type::field.
6621
3cabb6b0
SM
66222020-05-22 Simon Marchi <simon.marchi@efficios.com>
6623
6624 * gdbtypes.h (struct type) <fields, set_fields>: New methods.
6625 (TYPE_FIELDS): Use type::fields. Change all call sites that
6626 modify the propery to use type::set_fields instead.
6627
1f704f76
SM
66282020-05-22 Simon Marchi <simon.marchi@efficios.com>
6629
6630 * gdbtypes.h (TYPE_NFIELDS): Remove. Change all cal sites to use
6631 type::num_fields instead.
6632
5e33d5f4
SM
66332020-05-22 Simon Marchi <simon.marchi@efficios.com>
6634
6635 * gdbtypes.h (struct type) <num_fields, set_num_fields>: New
6636 methods.
6637 (TYPE_NFIELDS): Use type::num_fields. Change all call sites
6638 that modify the number of fields to use type::set_num_fields
6639 instead.
6640
9392ebb3
TT
66412020-05-22 Tom Tromey <tromey@adacore.com>
6642
6643 * compile/compile-object-load.h (munmap_list_free): Don't
6644 declare.
6645
7c13f4e8
AB
66462020-05-22 Andrew Burgess <andrew.burgess@embecosm.com>
6647
6648 * annotate.c (annotate_source_line): Update return type, add call
6649 to update current symtab and line.
6650 * annotate.h (annotate_source_line): Update return type, and
6651 extend header comment.
6652 * source.c (info_line_command): Check annotation_level before
6653 calling annotate_source_line.
6654 * stack.c (print_frame_info): If calling annotate_source_line
6655 returns true, then don't print any other source line information.
6656
aa370940
SM
66572020-05-21 Simon Marchi <simon.marchi@efficios.com>
6658
6659 * lm32-tdep.c (lm32_register_reggroup_p): Fix condition.
6660
84d53fa9
SM
66612020-05-21 Simon Marchi <simon.marchi@efficios.com>
6662
6663 * coffread.c (patch_type): Remove NULL check before xfree.
6664 * corefile.c (set_gnutarget): Likewise.
6665 * cp-abi.c (set_cp_abi_as_auto_default): Likewise.
6666 * exec.c (build_section_table): Likewise.
6667 * remote.c (remote_target::pass_signals): Likewise.
6668 * utils.c (n_spaces): Likewise.
6669 * cli/cli-script.c (document_command): Likewise.
6670 * i386-windows-tdep.c (core_process_module_section): Likewise.
6671 * linux-fork.c (struct fork_info) <~fork_info>: Likewise.
6672
9d428aae
SM
66732020-05-20 Simon Marchi <simon.marchi@efficios.com>
6674
6675 * symfile.c (reread_symbols): Clear objfile's section_offsets
6676 vector and section indices, re-compute them by calling
6677 sym_offsets.
6678
250106a7
TT
66792020-05-20 Tom Tromey <tromey@adacore.com>
6680
6681 * ada-lang.c (bound_name, MAX_ADA_DIMENS): Remove.
ec16513e 6682 (desc_one_bound, desc_index_type): Compute field name.
250106a7 6683
9a0bacfb
TV
66842020-05-20 Tom de Vries <tdevries@suse.de>
6685
6686 PR symtab/25833
6687 * dwarf2/read.c (dw2_map_matching_symbols): Handle .gdb_index.
6688
7b958a48
AM
66892020-05-20 Alan Modra <amodra@gmail.com>
6690
6691 PR 25993
6692 * solib-darwin.c (darwin_bfd_open): Don't strdup pathname for
6693 bfd_set_filename.
6694 * solib-aix.c (solib_aix_bfd_open): Use std::string for name
6695 passed to bfd_set_filename.
6696 * symfile-mem.c (add_vsyscall_page): Likewise for string
6697 passed to symbol_file_add_from_memory.
6698 (symbol_file_add_from_memory): Make name param a const char* and
6699 don't strdup.
6700
c7e97679
AM
67012020-05-20 Alan Modra <amodra@gmail.com>
6702
6703 * coff-pe-read.c (read_pe_exported_syms): Use bfd_get_filename
6704 rather than accessing bfd->filename directly.
6705 * dtrace-probe.c (dtrace_static_probe_ops::get_probes): Likewise,
6706 and use bfd_section_name.
6707 * dwarf2/frame.c (decode_frame_entry): Likewise.
6708 * exec.c (exec_set_section_address): Likewise.
6709 * solib-aix.c (solib_aix_bfd_open): Likewise.
6710 * stap-probe.c (get_stap_base_address): Likewise.
6711 * symfile.c (reread_symbols): Likewise.
6712
563c591b
TT
67132020-05-19 Tom Tromey <tromey@adacore.com>
6714
6715 * sparc64-tdep.c (adi_tag_fd): Update call to target_fileio_open.
6716
f408d82c
SM
67172020-05-19 Simon Marchi <simon.marchi@efficios.com>
6718
6719 * dwarf2/read.c (quirk_rust_enum): Allocate enough fields.
6720
98c59b52
PA
67212020-05-19 Pedro Alves <palves@redhat.com>
6722
6723 * NEWS (set exec-file-mismatch): Adjust entry.
6724 * exec.c: Include "build-id.h".
6725 (validate_exec_file): Try to match build IDs instead of filenames.
6726 * gdb_bfd.c (struct gdb_bfd_open_closure): New.
6727 (gdb_bfd_iovec_fileio_open): Adjust to use gdb_bfd_open_closure
6728 and pass down 'warn_if_slow'.
6729 (gdb_bfd_open): Add 'warn_if_slow' parameter. Use
6730 gdb_bfd_open_closure to pass it down.
6731 * gdb_bfd.h (gdb_bfd_open): Add 'warn_if_slow' parameter.
6732
4111f652
PA
67332020-05-19 Pedro Alves <palves@redhat.com>
6734
6735 * gdb_bfd.c (gdb_bfd_iovec_fileio_open): Adjust.
6736 * target.c (target_fileio_open_1): Rename to target_fileio_open
6737 and make extern. Use bool.
6738 (target_fileio_open, target_fileio_open_warn_if_slow): Delete.
6739 (target_fileio_read_alloc_1): Adjust.
6740 * target.h (target_fileio_open): Add 'warn_if_slow' parameter.
6741 (target_fileio_open_warn_if_slow): Delete declaration.
6742
ad80db5b
PA
67432020-05-19 Pedro Alves <palves@redhat.com>
6744
6745 * gdb_bfd.h: (gdb_bfd_open): Default to 'fd' parameter to -1.
6746 Adjust all callers.
6747
1d6ce4d3
YS
67482020-05-19 Yoshinori Sato <ysato@users.sourceforge.jp>
6749
6750 * h8300-tdep.c (h8300_is_argument_spill): Change how we check
6751 whether disp is negative.
6752
9005fbbb
SM
67532020-05-19 Simon Marchi <simon.marchi@efficios.com>
6754
6755 * symfile.h (struct symfile_segment_data)
6756 <~symfile_segment_data>: Remove.
6757 <segment_info>: Change to std::vector.
6758 * symfile.c (default_symfile_segments): Update.
6759 * elfread.c (elf_symfile_segments): Update.
6760
68b888ff
SM
67612020-05-19 Simon Marchi <simon.marchi@efficios.com>
6762
6763 * symfile.h (struct symfile_segment_data) <struct segment>: New.
6764 <segments>: New.
6765 <segment_bases, segment_sizes>: Remove.
6766 * symfile.c (default_symfile_segments): Update.
6767 * elfread.c (elf_symfile_segments): Update.
6768 * remote.c (remote_target::get_offsets): Update.
6769 * solib-target.c (solib_target_relocate_section_addresses):
6770 Update.
6771
62982abd
SM
67722020-05-19 Simon Marchi <simon.marchi@efficios.com>
6773
6774 * symfile.h (struct symfile_segment_data): Initialize fields.
6775 <~symfile_segment_data>: Add.
6776 (symfile_segment_data_up): New.
6777 (struct sym_fns) <sym_segments>: Return a
6778 symfile_segment_data_up.
6779 (default_symfile_segments): Return a symfile_segment_data_up.
6780 (free_symfile_segment_data): Remove.
6781 (get_symfile_segment_data): Return a symfile_segment_data_up.
6782 * symfile.c (default_symfile_segments): Likewise.
6783 (get_symfile_segment_data): Likewise.
6784 (free_symfile_segment_data): Remove.
6785 (symfile_find_segment_sections): Update.
6786 * elfread.c (elf_symfile_segments): Return a
6787 symfile_segment_data_up.
6788 * remote.c (remote_target::get_offsets): Update.
6789 * solib-target.c (solib_target_relocate_section_addresses):
6790 Update.
6791 * symfile-debug.c (debug_sym_segments): Return a
6792 symfile_segment_data_up.
6793
7f204339
RO
67942020-05-18 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
6795
e52a0f1b
RO
6796 PR build/25981
6797 * i386-sol2-nat.c [PR_MODEL_NATIVE != PR_MODEL_LP64] (regmap):
6798 Hardcode register numbers.
6799
7f204339
RO
6800 PR build/25981
6801 * procfs.c [(__i386__ || __x86_64__) && sun] (proc_get_LDT_entry,
6802 procfs_find_LDT_entry): Remove.
6803 * procfs.h [(__i386__ || __x86_64__) && sun] (struct ssd,
6804 procfs_find_LDT_entry): Remove.
6805 * sol-thread.c [(__i386__ || __x86_64__) && sun] (ps_lgetLDT):
6806 Remove.
6807
7f32a4d5
PA
68082020-05-17 Pedro Alves <palves@redhat.com>
6809 Andrew Burgess <andrew.burgess@embecosm.com>
6810 Keno Fischer <keno@juliacomputing.com>
6811
6812 PR gdb/25741
6813 * breakpoint.c (build_target_condition_list): Update comments.
6814 (build_target_command_list): Update comments and skip matching
6815 locations.
6816 (insert_bp_location): Move "set breakpoint auto-hw on" handling to
6817 a separate function. Simplify "set breakpoint auto-hw off"
6818 handling.
6819 (insert_breakpoints): Update comment.
6820 (tracepoint_locations_match): New parameter. For breakpoints,
6821 compare location types too, if the caller wants to.
6822 (handle_automatic_hardware_breakpoints): New functions.
6823 (bp_location_is_less_than): Also sort by location type and
6824 hardware breakpoint length.
6825 (update_global_location_list): Handle "set breakpoint auto-hw on"
6826 here.
6827 (update_breakpoint_locations): Ask breakpoint_locations_match to
6828 ignore location types.
6829
7d93a1e0
SM
68302020-05-16 Simon Marchi <simon.marchi@efficios.com>
6831
6832 * gdbtypes.h (TYPE_NAME): Remove. Change all cal sites to use
6833 type::name instead.
6834
d0e39ea2
SM
68352020-05-16 Simon Marchi <simon.marchi@efficios.com>
6836
6837 * gdbtypes.h (struct type) <name, set_name>: New methods.
6838 (TYPE_CODE): Use type::name. Change all call sites used to set
6839 the name to use type::set_name instead.
6840
2dab0c7b
TT
68412020-05-16 Tom Tromey <tom@tromey.com>
6842
6843 * top.c (quit_force): Update.
6844 * infrun.c (handle_no_resumed): Update.
6845 * top.h (all_uis): New function.
6846 (ALL_UIS): Remove.
6847
59f7bd8d
SM
68482020-05-16 Simon Marchi <simon.marchi@efficios.com>
6849
6850 * mips-linux-tdep.c (mips_linux_in_dynsym_stub): Fix condition.
6851
9bf058f0
PA
68522020-05-16 Pedro Alves <palves@redhat.com>
6853
6854 * ia64-linux-nat.c
6855 (ia64_linux_nat_target) <enable_watchpoints_in_psr(ptid_t)>:
6856 Declare method.
6857 (enable_watchpoints_in_psr): Now a method of ia64_linux_nat_target.
6858
8f86ae1a
SM
68592020-05-15 Simon Marchi <simon.marchi@efficios.com>
6860
6861 * sparc64-tdep.c (adi_stat_t): Remove typedef (leaving struct).
6862 (sparc64_adi_info): Likewise.
6863
d6bc0792
TT
68642020-05-15 Tom Tromey <tom@tromey.com>
6865
6866 * symtab.c (lookup_language_this, lookup_symbol_aux): Use
6867 block_objfile.
6868 (lookup_objfile_from_block): Remove.
6869 (lookup_symbol_in_block, lookup_symbol_in_static_block)
6870 (lookup_global_symbol): Use block_objfile.
6871 * symtab.h (lookup_objfile_from_block): Don't declare.
6872 * printcmd.c (clear_dangling_display_expressions): Use
6873 block_objfile.
6874 * parse.c (operator_check_standard): Use block_objfile.
6875
8c14c3a3
TT
68762020-05-15 Tom Tromey <tom@tromey.com>
6877
6878 * language.c (language_alloc_type_symbol): Set
6879 SYMBOL_SECTION.
6880 * symtab.c (initialize_objfile_symbol): Remove.
6881 (allocate_symbol): Remove.
6882 (allocate_template_symbol): Remove.
6883 * dwarf2/read.c (fixup_go_packaging): Use "new".
6884 (new_symbol): Use "new".
6885 (read_variable): Don't call initialize_objfile_symbol. Use
6886 "new".
6887 (read_func_scope): Use "new".
6888 * xcoffread.c (process_xcoff_symbol): Don't call
6889 initialize_objfile_symbol.
6890 (SYMBOL_DUP): Remove.
6891 * coffread.c (process_coff_symbol, coff_read_enum_type): Use
6892 "new".
6893 * symtab.h (allocate_symbol, initialize_objfile_symbol)
6894 (allocate_template_symbol): Don't declare.
6895 (struct symbol): Add copy constructor. Change defaults.
6896 * jit.c (finalize_symtab): Use "new".
6897 * ctfread.c (ctf_add_enum_member_cb, new_symbol, ctf_add_var_cb):
6898 Use "new".
6899 * stabsread.c (patch_block_stabs, define_symbol, read_enum_type)
6900 (common_block_end): Use "new".
6901 * mdebugread.c (parse_symbol): Use "new".
6902 (new_symbol): Likewise.
6903
5b4a1a8d
PW
69042020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6905
6906 * NEWS: Mention changes to help and apropos.
6907
57b4f16e
PW
69082020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6909
6910 * command.h (enum command_class): Improve comments, document
6911 that class_alias is for user-defined aliases, give the class
6912 name for each class, remove unused class_xdb.
6913 * cli/cli-decode.c (add_com_alias): Document THECLASS intended usage.
6914 * breakpoint.c (_initialize_breakpoint): Replace class_alias
6915 by a precise class.
6916 * infcmd.c (_initialize_infcmd): Likewise.
6917 * reverse.c (_initialize_reverse): Likewise.
6918 * stack.c (_initialize_stack): Likewise.
6919 * symfile.c (_initialize_symfile): Likewise.
6920 * tracepoint.c (_initialize_tracepoint): Likewise.
6921
7c05caf7
PW
69222020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6923
6924 * cli/cli-decode.c (apropos_cmd): Produce output for aliases
6925 when their aliased command is traversed.
6926 (help_cmd): Add fput_command_names_styled call to
6927 output command name and aliases when command has an alias.
6928
3b3aaacb
PW
69292020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6930
6931 * cli/cli-decode.h (help_cmd_list): Remove declaration.
6932 * cli/cli-decode.c (help_cmd_list): Declare as static,
6933 remove prefix argument, use bool for recurse arg, rework to show the aliases of
6934 a command together with the command.
6935 (fput_command_name_styled, fput_command_names_styled): New functions.
6936 (print_help_for_command): Remove prefix arg, use bool for recurse arg, use
6937 fput_command_name_styled.
6938 (help_list, help_all): Update callers to remove prefix arg and use bool recurse.
6939 * cli/cli-cmds.c (_initialize_cli_cmds): Update alias_command doc.
6940
7aa1b46f
PW
69412020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6942
6943 * cli/cli-setshow.h (cmd_show_list): Remove prefix argument.
6944 * cli/cli-decode.c (do_show_prefix_cmd): Likewise.
6945 * command.h (cmd_show_list): Likewise.
6946 * dwarf2/index-cache.c (show_index_cache_command): Likewise.
6947 * cli/cli-setshow.c (cmd_show_list): Use the prefix to produce the output. Skip aliases.
6948
89bcba74
PW
69492020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6950
6951 * unittests/command-def-selftests.c (traverse_command_structure):
6952 Verify all commands of a list have the same prefix command and
6953 that only the top cmdlist commands have a null prefix.
6954
3f4d92eb
PW
69552020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6956
6957 * cli/cli-decode.c (lookup_cmd_for_prefix): Return the aliased command
6958 as prefix, not one of its aliases.
6959 (set_cmd_prefix): Remove.
6960 (do_add_cmd): Centralize the setting of the prefix of a command, when
6961 command is defined after its full chain of prefix commands.
6962 (add_alias_cmd): Remove call to set_cmd_prefix, as do_add_cmd does it.
6963 (add_setshow_cmd_full): Likewise.
6964 (update_prefix_field_of_prefixed_commands): New function.
6965 (add_prefix_cmd): Replace non working call to set_cmd_prefix by
6966 update_prefix_field_of_prefixed_commands.
6967 * gdb/remote-fileio.c (initialize_remote_fileio): Use the real
6968 addresses of remote_set_cmdlist and remote_show_cmdlist given
6969 as argument, not the address of an argument.
6970 * gdb/remote-fileio.h (initialize_remote_fileio): Likewise.
6971 * gdb/remote.c (_initialize_remote): Likewise.
6972
0605465f
PW
69732020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6974
6975 * cli/cli-cmds.c (alias_command): Check for an existing alias
6976 using lookup_cmd_composition, as valid_command_p is too strict
6977 and forbids aliases that are the prefix of an existing alias
6978 or command.
6979 * cli/cli-decode.c (lookup_cmd_composition): Ensure a prefix
6980 command is properly recognised as a valid command.
6981
58e6ac70
PW
69822020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6983
6984 * unittests/help-doc-selftests.c: Rename to
6985 unittests/command-def-selftests.c
6986 * unittests/command-def-selftests.c (help_doc_tests): Update some
6987 comments.
6988 (command_structure_tests, traverse_command_structure): New namespace
6989 and function.
6990 (command_structure_invariants_tests): New function.
6991 (_initialize_command_def_selftests) Renamed from
6992 _initialize_help_doc_selftests, register command_structure_invariants
6993 selftest.
6994
a7b9ceb8
PW
69952020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6996
6997 * cli/cli-cmds.c (_initialize_cli_cmds): Define 'info set' as
6998 an alias of 'show'.
6999
b2188a06
JB
70002020-05-15 Joel Brobecker <brobecker@adacore.com>
7001
7002 * ada-lang.h: (ada_is_gnat_encoded_fixed_point_type): Renames
7003 ada_is_fixed_point_type. Update all callers.
7004 (gnat_encoded_fixed_point_delta): Renames ada_delta. Update
7005 all callers.
7006 * ada-lang.c (gnat_encoded_fixed_type_info): Renames fixed_type_info.
7007 Update all callers.
7008 * ada-typeprint.c (print_gnat_encoded_fixed_point_type): Renames
7009 print_fixed_point_type. Update all callers.
7010 * ada-valprint.c (ada_value_print_num): Replace call to
7011 ada_is_fixed_point_type by ada_is_gnat_encoded_fixed_point_type.
7012
a51951c2
KB
70132020-05-14 Kevin Buettner <kevinb@redhat.com>
7014
7015 * nat/linux-btrace.c (btrace_this_cpu): Add check for AMD
7016 processors.
7017 (cpu_supports_bts): Add CV_AMD case.
7018
29d6859f
LM
70192020-05-14 Laurent Morichetti <Laurent.Morichetti@amd.com>
7020 Simon Marchi <simon.marchi@efficios.com>
7021
7022 * infrun.c (stop_all_threads): Collect multiple wait events at
7023 each pass.
7024
78134374
SM
70252020-05-14 Simon Marchi <simon.marchi@efficios.com>
7026
7027 * gdbtypes.h (TYPE_CODE): Remove. Change all call sites to use
7028 type::code instead.
7029
67607e24
SM
70302020-05-14 Simon Marchi <simon.marchi@efficios.com>
7031
7032 * gdbtypes.h (struct type) <code, set_code>: New methods.
7033 (TYPE_CODE): Use type::code. Change all call sites used to set
7034 the code to use type::set_code instead.
7035
a05575d3
TBA
70362020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
7037 Tom de Vries <tdevries@suse.de>
7038 Pedro Alves <palves@redhat.com>
7039
7040 PR threads/25478
7041 * infrun.c (stop_all_threads): Do NOT ignore
7042 TARGET_WAITKIND_NO_RESUMED, TARGET_WAITKIND_THREAD_EXITED,
7043 TARGET_WAITKIND_EXITED, TARGET_WAITKIND_SIGNALLED wait statuses
7044 received.
7045 (handle_no_resumed): Remove code handling a live inferior with no
7046 threads.
7047 * remote.c (has_single_non_exited_thread): New.
7048 (remote_target::update_thread_list): Do not delete a thread if is
7049 the last thread of the process.
7050 * thread.c (thread_select): Call delete_exited_threads instead of
7051 prune_threads.
7052
6ad82919
TBA
70532020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
7054
7055 * infrun.c (stop_all_threads): Enable/disable thread events of all
7056 targets. Move a debug message denoting the end of the function
7057 into the SCOPED_EXIT block.
7058
d890404b
TBA
70592020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
7060
7061 * process-stratum-target.h: Include <set>.
7062 (all_non_exited_process_targets, switch_to_target_no_thread): New
7063 function declarations.
7064 * process-stratum-target.c (all_non_exited_process_targets)
7065 (switch_to_target_no_thread): New function implementations.
7066
293b3ebc
TBA
70672020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
7068
7069 * infrun.c (handle_inferior_event): Extract out a piece of code
7070 into...
7071 (mark_non_executing_threads): ...this new function.
7072
7ca9b62a
TBA
70732020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
7074
7075 * infrun.c (resume_1): Move a 'regcache_read_pc' call down to first
7076 use.
7077
fc75c28b
TBA
70782020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
7079
7080 * regcache.c (regcache_read_pc_protected): New function
7081 implementation that returns 0 if the PC cannot read via
7082 'regcache_read_pc'.
7083 * infrun.c (proceed): Call 'regcache_read_pc_protected'
7084 instead of 'regcache_read_pc'.
7085 (keep_going_pass_signal): Ditto.
7086
a89febbd
TT
70872020-05-13 Tom Tromey <tromey@adacore.com>
7088
7089 * ada-lang.c (align_value): Remove.
7090 (ada_template_to_fixed_record_type_1): Use align_up.
7091
f7e23710
TBA
70922020-05-13 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
7093
7094 * async-event.c: Update the copyright year.
7095 * async-event.h: Update the copyright year.
7096
02ff80c2
SM
70972020-05-12 Simon Marchi <simon.marchi@efficios.com>
7098
7099 * objfiles.h (is_addr_in_objfile,
7100 shared_objfile_contains_address_p): Return bool.
7101 * objfile.c (is_addr_in_objfile,
7102 shared_objfile_contains_address_p): Return bool.
7103
4fd6c7e8
TT
71042020-05-11 Tom Tromey <tromey@adacore.com>
7105
7106 * cli/cli-cmds.c (info_command): Restore.
7107 (_initialize_cli_cmds): Use add_prefix_command for "info".
7108 * gdb-gdb.gdb.in: Restore breakpoint on info_command.
7109
5eb68a39
TT
71102020-05-11 Tom Tromey <tromey@adacore.com>
7111
7112 * ada-lang.c (ada_value_primitive_field): Now public.
7113 * ada-lang.h (ada_value_primitive_field): Declare.
7114 * ada-valprint.c (print_field_values): Use
7115 ada_value_primitive_field for wrapper fields.
7116
7666722f
TV
71172020-05-11 Tom de Vries <tdevries@suse.de>
7118
7119 * dwarf2/index-write.c (debug_names::psymbol_tag): Handle
7120 MODULE_DOMAIN.
7121
3ee6bb11
TV
71222020-05-11 Tom de Vries <tdevries@suse.de>
7123
7124 PR symtab/25941
7125 * dwarf2/read.c (create_cus_from_debug_names_list): Initialize CUs
7126 with length 0, if not gdb-produced.
7127 (cutu_reader::cutu_reader): Set CU length to actual length if 0.
7128
43434996
TV
71292020-05-09 Tom de Vries <tdevries@suse.de>
7130
7131 PR gdb/25955
7132 * break-catch-throw.c (check_status_exception_catchpoint): Fix name
7133 calculation.
7134
2f78cffc
TT
71352020-05-09 Tom Tromey <tom@tromey.com>
7136
7137 * top.c (server_command): Now bool.
7138 * top.h (server_command): Now bool.
7139
4f7bc5ed
TT
71402020-05-08 Tom Tromey <tromey@adacore.com>
7141
7142 * dwarf2/read.c (read_lexical_block_scope): Don't process a DIE
7143 already being processed.
7144
8be4b118
TT
71452020-05-08 Tom Tromey <tom@tromey.com>
7146
7147 * printcmd.c (struct display) <next>: Remove.
7148 <display>: New constructor.
7149 <exp_string>: Now a std::string.
7150 <enabled_p>: Now a bool.
7151 (display_number): Move definition earlier.
7152 (displays): Rename from display_chain. Now a std::vector.
7153 (ALL_DISPLAYS, ALL_DISPLAYS_SAFE): Remove.
7154 (display_command): Update.
7155 (do_one_display, disable_display)
7156 (enable_disable_display_command, do_enable_disable_display):
7157 Update.
7158 (free_display): Remove.
7159 (clear_displays): Rewrite.
7160 (delete_display): Update.
7161 (map_display_numbers): Use function_view. Remove "data"
7162 parameter. Update.
7163 (do_delete_display): Remove.
7164 (undisplay_command): Update.
7165 (do_one_display, do_displays, disable_display)
7166 (info_display_command): Update.
7167 (do_enable_disable_display): Remove.
7168 (enable_disable_display_command)
7169 (clear_dangling_display_expressions): Update.
7170
94c93c35
TT
71712020-05-08 Tom Tromey <tom@tromey.com>
7172
7173 * symtab.c (set_symbol_cache_size)
7174 (maintenance_print_symbol_cache, maintenance_flush_symbol_cache)
7175 (maintenance_print_symbol_cache_statistics): Update.
7176 * symmisc.c (print_symbol_bcache_statistics)
7177 (print_objfile_statistics, maintenance_print_objfiles)
7178 (maintenance_info_symtabs, maintenance_check_symtabs)
7179 (maintenance_expand_symtabs, maintenance_info_line_tables):
7180 Update.
7181 * symfile-debug.c (set_debug_symfile): Update.
7182 * source.c (forget_cached_source_info): Update.
7183 * python/python.c (gdbpy_progspaces): Update.
7184 * psymtab.c (maintenance_info_psymtabs): Update.
7185 * probe.c (parse_probes): Update.
7186 * linespec.c (iterate_over_all_matching_symtabs)
7187 (collect_symtabs_from_filename, search_minsyms_for_name): Update.
7188 * guile/scm-progspace.c (gdbscm_progspaces): Update.
7189 * exec.c (exec_target::close): Update.
7190 * ada-tasks.c (ada_tasks_new_objfile_observer): Update.
7191 * breakpoint.c (print_one_breakpoint_location)
7192 (create_longjmp_master_breakpoint)
7193 (create_std_terminate_master_breakpoint): Update.
7194 * progspace.c (program_spaces): Now a std::vector.
7195 (maybe_new_address_space): Update.
7196 (add_program_space): Remove.
7197 (program_space::program_space): Update.
7198 (remove_program_space): Update.
7199 (number_of_program_spaces): Remove.
7200 (print_program_space, update_address_spaces): Update.
7201 * progspace.h (program_spaces): Change type.
7202 (ALL_PSPACES): Remove.
7203 (number_of_program_spaces): Don't declare.
7204 (struct program_space) <next>: Remove.
7205
a1fd1ac9
TT
72062020-05-08 Tom Tromey <tom@tromey.com>
7207
7208 * mi/mi-cmd-file.c (mi_cmd_file_list_shared_libraries): Update.
7209 * solib-svr4.c (svr4_fetch_objfile_link_map): Update.
7210 (enable_break): Update.
7211 * solib-frv.c (frv_fdpic_find_global_pointer): Update.
7212 (frv_fdpic_find_canonical_descriptor): Update.
7213 (frv_fetch_objfile_link_map): Update.
7214 * progspace.c (program_space::free_all_objfiles): Update.
7215 (program_space::solibs): New method.
7216 * progspace.h (struct program_space) <solibs>: New method.
7217 * solist.h (master_so_list): Don't declare.
7218 (ALL_SO_LIBS): Remove.
7219 * solib.h (so_list_head): Remove.
7220 (update_solib_list): Update comment.
7221 * solib.c (master_so_list): Remove.
7222 (solib_used, update_solib_list, solib_add)
7223 (info_sharedlibrary_command, clear_solib)
7224 (reload_shared_libraries_1, remove_user_added_objfile): Update.
7225
38eae084
TT
72262020-05-08 Tom Tromey <tom@tromey.com>
7227
7228 * extension.c (extension_languages): Now a std::array.
7229 (ALL_EXTENSION_LANGUAGES): Remove.
7230 (get_ext_lang_defn, get_ext_lang_of_file)
7231 (eval_ext_lang_from_control_command): Update.
7232 (finish_ext_lang_initialization)
7233 (auto_load_ext_lang_scripts_for_objfile)
7234 (ext_lang_type_printers::ext_lang_type_printers)
7235 (apply_ext_lang_type_printers)
7236 (ext_lang_type_printers::~ext_lang_type_printers)
7237 (apply_ext_lang_val_pretty_printer, apply_ext_lang_frame_filter)
7238 (preserve_ext_lang_values, get_breakpoint_cond_ext_lang)
7239 (breakpoint_ext_lang_cond_says_stop, check_quit_flag)
7240 (get_matching_xmethod_workers, ext_lang_colorize)
7241 (ext_lang_before_prompt): Update.
7242 (ALL_ENABLED_EXTENSION_LANGUAGES): Remove.
7243
596dc4ad
TT
72442020-05-08 Tom Tromey <tom@tromey.com>
7245
7246 * symtab.h (class demangle_result_storage) <set_malloc_ptr>: New
7247 overload.
7248 <swap_string, m_string>: Remove.
7249 * symtab.c (demangle_for_lookup, completion_list_add_symbol):
7250 Update.
7251 * stabsread.c (define_symbol, read_type): Update.
7252 * linespec.c (find_linespec_symbols): Update.
7253 * gnu-v3-abi.c (gnuv3_get_typeid): Update.
7254 * dwarf2/read.c (dwarf2_canonicalize_name): Update.
7255 * dbxread.c (read_dbx_symtab): Update.
7256 * cp-support.h (cp_canonicalize_string_full)
7257 (cp_canonicalize_string, cp_canonicalize_string_no_typedefs):
7258 Return unique_xmalloc_ptr.
7259 * cp-support.c (inspect_type): Update.
7260 (cp_canonicalize_string_full): Return unique_xmalloc_ptr.
7261 (cp_canonicalize_string_no_typedefs, cp_canonicalize_string):
7262 Likewise.
7263 * c-typeprint.c (print_name_maybe_canonical): Update.
7264 * break-catch-throw.c (check_status_exception_catchpoint):
7265 Update.
7266
bf4cb9be
TV
72672020-05-08 Tom de Vries <tdevries@suse.de>
7268
7269 * infrun.c (follow_fork): Copy current_line and current_symtab to
7270 child thread.
7271
a1b68f28
SM
72722020-05-07 Simon Marchi <simon.marchi@efficios.com>
7273
7274 * async-event.c (struct async_signal_handler, struct
7275 async_event_handler): Reformat, remove typedef.
7276
98d48915
SM
72772020-05-07 Simon Marchi <simon.marchi@efficios.com>
7278
7279 * gdbtypes.h (TYPE_DYN_PROP_LIST): Remove. Update all users
7280 access thistype->main_type->dyn_prop_list directly.
7281
7aa91313
SM
72822020-05-07 Simon Marchi <simon.marchi@efficios.com>
7283
7284 * gdbtypes.h (struct type) <remove_dyn_prop>: New method.
7285 (remove_dyn_prop): Remove. Update all users to use
7286 type::remove_dyn_prop.
7287 * gdbtypes.c (remove_dyn_prop): Rename to...
7288 (type::remove_dyn_prop): ... this.
7289
5c54719c
SM
72902020-05-07 Simon Marchi via Gdb-patches <gdb-patches@sourceware.org>
7291
7292 * gdbtypes.h (struct type) <add_dyn_prop>: New method.
7293 (add_dyn_prop): Remove. Update all users to use
7294 type::add_dyn_prop.
7295 * gdbtypes.c (add_dyn_prop): Rename to...
7296 (type::add_dyn_prop): ... this.
7297
24e99c6c
SM
72982020-05-07 Simon Marchi <simon.marchi@efficios.com>
7299
7300 * gdbtypes.h (struct type) <get_dyn_prop>: New method.
7301 (get_dyn_prop): Remove. Update all users to use
7302 type::dyn_prop.
7303 * gdbtypes.c (get_dyn_prop): Rename to...
7304 (type::dyn_prop): ... this.
7305
0d4bf016
SM
73062020-05-06 Simon Marchi <simon.marchi@efficios.com>
7307
7308 * gdbtypes.h (struct main_type) <flag_static>: Remove.
7309
ac4a4f1c
SM
73102020-05-06 Simon Marchi <simon.marchi@efficios.com>
7311
7312 * amd64-tdep.c (amd64_analyze_prologue): Check for `endbr64`
7313 instruction, skip it if it's there.
7314
a3bbacc1
SM
73152020-05-05 Simon Marchi <simon.marchi@efficios.com>
7316
7317 * gdbtypes.h (struct main_type) <flag_incomplete>: Remove.
7318
c3236f84
SM
73192020-05-04 Simon Marchi <simon.marchi@efficios.com>
7320
7321 * gdbtypes.h (TYPE_INCOMPLETE): Remove.
7322 * gdbtypes.c (recursive_dump_type): Remove use of
7323 TYPE_INCOMPLETE.
7324
3b6acaee
TT
73252020-05-03 Tom Tromey <tom@tromey.com>
7326
7327 * breakpoint.c (catch_command, tcatch_command): Remove.
7328 (_initialize_breakpoint): Use add_basic_prefix_cmd,
7329 add_show_prefix_cmd.
7330 (set_breakpoint_cmd, show_breakpoint_cmd): Remove
7331 * utils.c (set_internal_problem_cmd, show_internal_problem_cmd):
7332 Remove.
7333 (add_internal_problem_command): Use add_basic_prefix_cmd,
7334 add_show_prefix_cmd.
7335 * mips-tdep.c (set_mipsfpu_command): Remove.
7336 (_initialize_mips_tdep): Use add_basic_prefix_cmd.
7337 * dwarf2/index-cache.c (set_index_cache_command): Remove.
7338 (_initialize_index_cache): Use add_basic_prefix_cmd.
7339 * memattr.c (dummy_cmd): Remove.
7340 (_initialize_mem): Use add_basic_prefix_cmd, add_show_prefix_cmd.
7341 * tui/tui-win.c (set_tui_cmd, show_tui_cmd): Remove.
7342 (_initialize_tui_win): Use add_basic_prefix_cmd,
7343 add_show_prefix_cmd.
7344 * cli/cli-logging.c (set_logging_command): Remove.
7345 (_initialize_cli_logging): Use add_basic_prefix_cmd,
7346 add_show_prefix_cmd.
7347 (show_logging_command): Remove.
7348 * target.c (target_command): Remove.
7349 (add_target): Use add_basic_prefix_cmd.
7350
a51119cd
HD
73512020-05-02 Hannes Domani <ssbssa@yahoo.de>
7352
7353 * gdbtypes.h (enum dynamic_prop_node_kind): Fix typo.
7354
652fc23a 73552020-05-01 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6a6ea76a 7356
652fc23a
PW
7357 * gdb-gdb.gdb-in: Remove breakpoint on disappeared function
7358 info_command.
7359
117539e6
KR
73602020-04-30 Kamil Rytarowski <n54@gmx.com>
7361
7362 * nbsd-nat.c (nbsd_enable_proc_events)
7363 (nbsd_nat_target::post_startup_inferior): Add.
7364 (nbsd_nat_target::post_attach): Call `nbsd_enable_proc_events'.
7365 (nbsd_nat_target::update_thread_list): Rewrite.
7366 (nbsd_nat_target::wait): Handle "PTRACE_LWP_EXIT" and
7367 "PTRACE_LWP_CREATE".
7368 * nbsd-nat.h (nbsd_nat_target::post_startup_inferior): Add.
7369
102e38eb 73702020-04-30 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6a6ea76a 7371
102e38eb
PW
7372 * stack.c (_initialize_stack): Remove duplicated creation
7373 of "frame" command and "f" alias.
7374
ee9d1e5f
HD
73752020-04-30 Hannes Domani <ssbssa@yahoo.de>
7376
7377 PR gdb/18706
7378 * gdbtypes.c (check_typedef): Calculate size of array of
7379 stubbed type.
7380
627c7fb8
HD
73812020-04-30 Hannes Domani <ssbssa@yahoo.de>
7382
7383 PR gdb/15559
7384 * i386-tdep.c (i386_push_dummy_call): Call
7385 i386_thiscall_push_dummy_call.
7386 (i386_thiscall_push_dummy_call): New function.
7387 * i386-tdep.h (i386_thiscall_push_dummy_call): Declare.
7388 * i386-windows-tdep.c (i386_windows_push_dummy_call): New function.
7389 (i386_windows_init_abi): Call set_gdbarch_push_dummy_call.
7390
ffc2844e
SM
73912020-04-29 Simon Marchi <simon.marchi@efficios.com>
7392
7393 * gdbarch.sh (do_read): Add shellcheck disable directive for
7394 warning SC2162.
7395
1207375d
SM
73962020-04-29 Simon Marchi <simon.marchi@efficios.com>
7397
7398 * gdbarch.sh: Use ${foo:-} where shellcheck would report a
7399 "referenced but not assigned" warning.
7400
9fdb2916
SM
74012020-04-29 Simon Marchi <simon.marchi@efficios.com>
7402
7403 * gdbarch.sh: Remove code that sets fallbackdefault.
7404
759cea5e
SM
74052020-04-29 Simon Marchi <simon.marchi@efficios.com>
7406
7407 * gdbarch.sh: Use shell operators && and || instead of
7408 -a and -o.
7409
cb02ab24
SM
74102020-04-29 Simon Marchi <simon.marchi@efficios.com>
7411
7412 * gdbarch.sh: Use $(...) instead of `...`.
7413
a6fc5ffc
SM
74142020-04-29 Simon Marchi <simon.marchi@efficios.com>
7415
7416 * gdbarch.sh: Use double quotes around variables.
7417
8d113d13
SM
74182020-04-29 Simon Marchi <simon.marchi@efficios.com>
7419
7420 * gdbarch.sh: Use %s with printf, instead of variables in the
7421 format string.
7422
ed6acedd
TT
74232020-04-29 Tom Tromey <tromey@adacore.com>
7424
7425 PR ada/25875:
7426 * dwarf2/read.c (update_enumeration_type_from_children): Compute
7427 type fields here.
7428 (read_enumeration_type): Call
7429 update_enumeration_type_from_children later. Update comments.
7430 (process_enumeration_scope): Don't create type fields.
7431
b68b1b58
KR
74322020-04-29 Kamil Rytarowski <n54@gmx.com>
7433
7434 * nbsd-tdep.c: Include "xml-syscall.h".
7435 (nbsd_init_abi): Call `set_xml_syscall_file_name'.
7436
f94b2e03
KR
74372020-04-29 Kamil Rytarowski <n54@gmx.com>
7438
7439 * nbsd-nat.c: Include "sys/wait.h".
7440 (nbsd_resume, nbsd_nat_target::resume, nbsd_wait)
7441 (nbsd_nat_target::wait, nbsd_nat_target::insert_exec_catchpoint)
7442 (nbsd_nat_target::remove_exec_catchpoint)
7443 (nbsd_nat_target::set_syscall_catchpoint): Add.
7444 * nbsd-nat.h (nbsd_nat_target::resume, nbsd_nat_target::wait)
7445 (nbsd_nat_target::insert_exec_catchpoint)
7446 (nbsd_nat_target::remove_exec_catchpoint)
7447 (nbsd_nat_target::set_syscall_catchpoint): Add.
7448 * nbsd-tdep.c (nbsd_get_syscall_number): Add.
7449 (nbsd_init_abi): Call `set_gdbarch_get_syscall_number' and pass
7450 `nbsd_get_syscall_number'.
7451
fc49bc72
TT
74522020-04-29 Tom Tromey <tom@tromey.com>
7453
7454 * stack.c (print_block_frame_labels): Remove.
7455
d642b692
HD
74562020-04-29 Hannes Domani <ssbssa@yahoo.de>
7457
7458 PR gdb/17320
7459 * ada-valprint.c (val_print_packed_array_elements): Move array
7460 end bracket to new line.
7461 (ada_val_print_string): Remove extra spaces before first array
7462 element.
7463 * c-valprint.c (c_value_print_array): Likewise.
7464 * m2-valprint.c (m2_print_array_contents): Likewise.
7465 (m2_value_print_inner): Likewise.
7466 * p-valprint.c (pascal_value_print_inner): Likewise.
7467 * valprint.c (generic_val_print_array): Likewise.
7468 (value_print_array_elements): Move first array element and array
7469 end bracket to new line.
7470
ea90f227
TV
74712020-04-29 Tom de Vries <tdevries@suse.de>
7472
7473 PR symtab/25889
7474 * linespec.c (find_method): Fix ix calculation.
7475
4498ef4f
KR
74762020-04-28 Kamil Rytarowski <n54@gmx.com>
7477
7478 * syscalls/update-netbsd.sh: New file.
7479 * syscalls/netbsd.xml: Regenerate.
7480 * data-directory/Makefile.in: Register `netbsd.xml' in
7481 `SYSCALLS_FILES'.
7482
a55e30b5
SM
74832020-04-28 Simon Marchi <simon.marchi@efficios.com>
7484
7485 * syscalls/update-freebsd.sh: Add double quotes.
7486
2b2fbab8
TT
74872020-04-28 Tom Tromey <tom@tromey.com>
7488
7489 * NEWS: Update.
7490 * python/py-cmd.c (gdbpy_initialize_commands): Add COMMAND_TUI.
7491 (cmdpy_init): Allow class_tui.
7492
a65189c9
TV
74932020-04-28 Mark Williams <mark@myosotissp.com>
7494
7495 PR gdb/24480
7496 * dwarf2read.c: Add missing assingments to list_in_scope when
7497 start_symtab was already called.
7498
1b95cdb7
SM
74992020-04-28 Simon Marchi <simon.marchi@efficios.com>
7500
7501 PR gdb/25881
7502 * dwarf2/read.c (offset_map_type): Use
7503 gdb:hash_enum<sect_offset> as hash function.
7504
15cd93d0
TV
75052020-04-28 Tom de Vries <tdevries@suse.de>
7506
7507 * dwarf2/read.c (process_structure_scope): Add symbol for struct decl
7508 with DW_AT_signature.
7509
1eb39914
SM
75102020-04-27 Simon Marchi <simon.marchi@efficios.com>
7511
7512 * configure.ac: Remove check for fs_base/gs_base in
7513 user_regs_struct.
7514 * configure: Re-generate.
7515 * config.in: Re-generate.
7516 * amd64-nat.c (amd64_native_gregset_reg_offset): Adjust.
7517 * amd64-linux-nat.c (amd64_linux_nat_target::fetch_registers,
7518 amd64_linux_nat_target::store_registers, ps_get_thread_area, ): Adjust.
7519
991a3e2e
LM
75202020-04-27 Luis Machado <luis.machado@linaro.org>
7521
7522 * dwarf2/frame-tailcall.c (dwarf2_tailcall_sniffer_first): Handle
7523 problematic inline frame unwinding situation.
7524 * frame.c (frame_id_computed_p): New function.
7525 * frame.h (frame_id_computed_p): New prototype.
7526
361ba0e8
TT
75272020-04-26 Tom Tromey <tom@tromey.com>
7528
7529 * command.h (enum command_class) <class_pseudo>: Remove.
7530
bc3609fd
PW
75312020-04-26 Philippe Waroquiers <philippe.waroquiers@skynet.be>
7532
7533 * cli/cli-decode.c (lookup_cmd_composition): Fix comments
7534 and whitespace.
7535
b9771db7
KR
75362020-04-25 Kamil Rytarowski <n54@gmx.com>
7537
ec16513e
SM
7538 * inf-ptrace.c (inf_ptrace_target::wait): Remove
7539 `PT_GET_PROCESS_STATE' block.
b9771db7 7540
7151c1af
TT
75412020-04-24 Tom Tromey <tom@tromey.com>
7542
7543 * symtab.h (symbol_get_demangled_name): Don't declare.
7544 * symtab.c (symbol_get_demangled_name): Remove.
7545 (general_symbol_info::natural_name)
7546 (general_symbol_info::demangled_name): Update.
7547
906bb4c5
TT
75482020-04-24 Tom Tromey <tom@tromey.com>
7549
7550 PR rust/25025:
7551 * dwarf2/read.c (dwarf2_physname): Do not demangle for Rust.
7552
bcfe6157
TT
75532020-04-24 Tom Tromey <tom@tromey.com>
7554
7555 PR symtab/12707:
7556 * dwarf2/read.c (add_partial_symbol): Use the linkage name if it
7557 exists.
7558 (new_symbol): Likewise.
7559 * compile/compile-object-load.c (get_out_value_type): Use
7560 symbol_matches_search_name.
7561
f049a313
TT
75622020-04-24 Tom Tromey <tom@tromey.com>
7563
7564 * dwarf2/read.c (add_partial_symbol): Do not call
7565 compute_and_set_names.
7566
76e288d1
TT
75672020-04-24 Tom Tromey <tom@tromey.com>
7568
7569 * dwarf2/read.c (add_partial_symbol): Use new add_psymbol_to_list
7570 overload.
7571
2467f4f6
TT
75722020-04-24 Tom Tromey <tom@tromey.com>
7573
7574 * psymtab.c (add_psymbol_to_bcache): Simplify calling convention.
7575 (add_psymbol_to_list): New overload. Make old overload call new
7576 one.
7577 * psympriv.h (add_psymbol_to_list): New overload.
7578
e61108c9
TT
75792020-04-24 Tom Tromey <tom@tromey.com>
7580
7581 * dwarf2/read.c (partial_die_info::read) <case
7582 DW_AT_linkage_name>: Use value_as_string.
7583 (dwarf2_string_attr): Use value_as_string.
7584 * dwarf2/attribute.h (struct attribute) <value_as_string>: Declare
7585 method.
7586 * dwarf2/attribute.c (attribute::value_as_string): New method.
7587
8c87a452
TT
75882020-04-24 Tom Tromey <tom@tromey.com>
7589
7590 * symtab.c (general_symbol_info::natural_name)
7591 (general_symbol_info::demangled_name): Check for language_rust.
7592
787de330
TT
75932020-04-24 Tom Tromey <tom@tromey.com>
7594
7595 * dwarf2/read.c (dw2_linkage_name): Move Rust "{" hack here...
7596 (dwarf2_physname): ... from here.
7597 (partial_die_info::read): Add Rust "{" hack.
7598
ff985671
TT
75992020-04-24 Tom Tromey <tom@tromey.com>
7600
7601 * symtab.h (struct general_symbol_info) <set_demangled_name>: New
7602 method.
7603 (symbol_set_demangled_name): Don't declare.
7604 * symtab.c (general_symbol_info::set_demangled_name): Rename from
7605 symbol_set_demangled_name.
7606 (general_symbol_info::set_language)
7607 (general_symbol_info::compute_and_set_names): Update.
7608 * minsyms.c (minimal_symbol_reader::install): Update.
7609 * dwarf2/read.c (new_symbol): Update.
7610
1acda803
TT
76112020-04-24 Tom Tromey <tromey@adacore.com>
7612
7613 PR python/23662:
7614 * python/py-type.c (convert_field): Handle
7615 FIELD_LOC_KIND_DWARF_BLOCK.
7616 (typy_get_sizeof): Handle TYPE_HAS_DYNAMIC_LENGTH.
7617 (typy_get_dynamic): Nw function.
7618 (type_object_getset): Add "dynamic".
7619 * NEWS: Add entry.
7620
d656f129
TT
76212020-04-24 Tom Tromey <tromey@adacore.com>
7622
7623 * ada-typeprint.c (print_choices, print_variant_part)
7624 (print_record_field_types_dynamic): New functions.
7625 (print_record_field_types): Use print_record_field_types_dynamic.
7626
7d79de9a
TT
76272020-04-24 Tom Tromey <tromey@adacore.com>
7628
7629 * dwarf2/read.c (handle_data_member_location): New overload.
7630 (dwarf2_add_field): Use it.
7631 (decode_locdesc): Add "computed" parameter. Update comment.
7632 * gdbtypes.c (is_dynamic_type_internal): Also look for
7633 FIELD_LOC_KIND_DWARF_BLOCK.
7634 (resolve_dynamic_struct): Handle FIELD_LOC_KIND_DWARF_BLOCK.
7635 * gdbtypes.c (is_dynamic_type_internal): Add special case for C++
7636 virtual base classes.
7637 * gnu-v3-abi.c (gnuv3_baseclass_offset): Handle
7638 FIELD_LOC_KIND_DWARF_BLOCK.
7639
f8e89861
TT
76402020-04-24 Tom Tromey <tromey@adacore.com>
7641
7642 * dwarf2/read.c (read_structure_type): Handle dynamic length.
7643 * gdbtypes.c (is_dynamic_type_internal): Check
7644 TYPE_HAS_DYNAMIC_LENGTH.
7645 (resolve_dynamic_type_internal): Use TYPE_DYNAMIC_LENGTH.
7646 * gdbtypes.h (TYPE_HAS_DYNAMIC_LENGTH, TYPE_DYNAMIC_LENGTH):
7647 New macros.
7648 (enum dynamic_prop_node_kind) <DYN_PROP_BYTE_SIZE>: New
7649 constant.
7650
9c6a1327
TT
76512020-04-24 Tom Tromey <tromey@adacore.com>
7652
7653 * dwarf2/read.c (struct variant_field): Rewrite.
7654 (struct variant_part_builder): New.
7655 (struct nextfield): Remove "variant" field. Add "offset".
7656 (struct field_info): Add "current_variant_part" and
7657 "variant_parts".
7658 (alloc_discriminant_info): Remove.
7659 (alloc_rust_variant): New function.
7660 (quirk_rust_enum): Update.
7661 (dwarf2_add_field): Set "offset" member. Don't handle
7662 DW_TAG_variant_part.
7663 (offset_map_type): New typedef.
7664 (convert_variant_range, create_one_variant)
7665 (create_one_variant_part, create_variant_parts)
7666 (add_variant_property): New functions.
7667 (dwarf2_attach_fields_to_type): Call add_variant_property.
7668 (read_structure_type): Don't handle DW_TAG_variant_part.
7669 (handle_variant_part, handle_variant): New functions.
7670 (handle_struct_member_die): Use them.
7671 (process_structure_scope): Don't handle variant parts.
7672 * gdbtypes.h (TYPE_FLAG_DISCRIMINATED_UNION): Remove.
7673 (struct discriminant_info): Remove.
7674 (enum dynamic_prop_node_kind) <DYN_PROP_DISCRIMINATED>: Remove.
7675 (struct main_type) <flag_discriminated_union>: Remove.
7676 * rust-lang.c (rust_enum_p, rust_empty_enum_p): Rewrite.
7677 (rust_enum_variant): Return int. Remove "contents". Rewrite.
7678 (rust_print_enum, rust_print_struct_def, rust_evaluate_subexp):
7679 Update.
7680 * valops.c (value_union_variant): Remove.
7681 * value.h (value_union_variant): Don't declare.
7682
b249d2c2
TT
76832020-04-24 Tom Tromey <tromey@adacore.com>
7684
7685 * ada-lang.c (ada_discrete_type_high_bound, ada_discrete_type_low)
7686 (ada_value_primitive_packed_val): Update.
7687 * ada-valprint.c (ada_value_print_1): Update.
7688 * dwarf2/loc.c (evaluate_for_locexpr_baton): New struct.
7689 (dwarf2_locexpr_baton_eval): Take a property_addr_info rather than
7690 just an address. Use evaluate_for_locexpr_baton.
7691 (dwarf2_evaluate_property): Update.
7692 * dwarf2/loc.h (struct property_addr_info) <valaddr>: Now an
7693 array_view.
7694 * findvar.c (default_read_var_value): Update.
7695 * gdbtypes.c (compute_variant_fields_inner)
7696 (resolve_dynamic_type_internal): Update.
7697 (resolve_dynamic_type): Change type of valaddr parameter.
7698 * gdbtypes.h (resolve_dynamic_type): Update.
7699 * valarith.c (value_subscripted_rvalue): Update.
7700 * value.c (value_from_contents_and_address): Update.
7701
61122aa9
TT
77022020-04-24 Tom Tromey <tromey@adacore.com>
7703
7704 * dwarf2/loc.c (dwarf2_locexpr_baton_eval): Add
7705 "push_initial_value" parameter.
7706 (dwarf2_evaluate_property): Likewise.
7707 * dwarf2/loc.h (dwarf2_evaluate_property): Update.
7708
ef83a141
TT
77092020-04-24 Tom Tromey <tromey@adacore.com>
7710
7711 * gdbtypes.c (is_dynamic_type_internal): Check for variant parts.
7712 (variant::matches, compute_variant_fields_recurse)
7713 (compute_variant_fields_inner, compute_variant_fields): New
7714 functions.
7715 (resolve_dynamic_struct): Check for DYN_PROP_VARIANT_PARTS.
7716 Use resolved_type after type is made.
7717 (operator==): Add new cases.
7718 * gdbtypes.h (TYPE_HAS_VARIANT_PARTS): New macro.
7719 (struct discriminant_range, struct variant, struct variant_part):
7720 New.
7721 (union dynamic_prop_data) <variant_parts, original_type>: New
7722 members.
7723 (enum dynamic_prop_node_kind) <DYN_PROP_VARIANT_PARTS>: New constant.
7724 (enum dynamic_prop_kind) <PROP_TYPE, PROP_VARIANT_PARTS>: New
7725 constants.
7726 * value.c (unpack_bits_as_long): Now public.
7727 * value.h (unpack_bits_as_long): Declare.
7728
675127ec
TT
77292020-04-24 Tom Tromey <tromey@adacore.com>
7730
7731 * rs6000-tdep.c (struct ppc_variant): Rename from "variant".
7732 (variants, find_variant_by_arch, rs6000_gdbarch_init): Update.
7733
9852ceef
HD
77342020-04-24 Hannes Domani <ssbssa@yahoo.de>
7735
7736 * windows-tdep.c (exception_values): Add WOW64 exception numbers.
7737
7632c6ce
KR
77382020-04-24 Kamil Rytarowski <n54@gmx.com>
7739
7740 * inf-ptrace.h (follow_fork, insert_fork_catchpoint)
7741 (remove_fork_catchpoint, post_startup_inferior)
7742 (post_attach): Move...
7743 * obsd-nat.h (follow_fork, insert_fork_catchpoint)
7744 (remove_fork_catchpoint, post_startup_inferior)
7745 (post_attach): ...here.
7746 * inf-ptrace.c (follow_fork, insert_fork_catchpoint)
7747 (remove_fork_catchpoint, post_startup_inferior)
7748 (post_attach): Move...
7749 * obsd-nat.c (follow_fork, insert_fork_catchpoint)
7750 (remove_fork_catchpoint, post_startup_inferior)
7751 (post_attach): ...here.
7752
7be2bb4f
TT
77532020-04-24 Tom Tromey <tromey@adacore.com>
7754
7755 * nat/windows-nat.h (struct windows_thread_info)
7756 <pc_adjusted>: New member.
7757 * windows-nat.c (windows_fetch_one_register): Check
7758 pc_adjusted.
7759 (windows_nat_target::get_windows_debug_event)
7760 (windows_nat_target::wait): Set pc_adjusted.
7761
f80cb3b4
TV
77622020-04-24 Tom de Vries <tdevries@suse.de>
7763
7764 * contrib/cc-with-tweaks.sh: Remove <exec>.gdb-index file handling.
7765 Run gdb-add-index inside temp dir.
7766
29514b87
TT
77672020-04-23 Tom Tromey <tromey@adacore.com>
7768
7769 * windows-tdep.c (is_linked_with_cygwin_dll): Always update "iter"
7770 in loop.
7771
5939967b
LM
77722020-04-23 Luis Machado <luis.machado@linaro.org>
7773
7774 * dwarf2/frame-tailcall.c (dwarf2_tailcall_sniffer_first): Use
7775 get_frame_register instead of gdbarch_unwind_pc.
7776
70bc38f5
TV
77772020-04-23 Tom de Vries <tdevries@suse.de>
7778
7779 * symtab.c (lookup_global_symbol): Prefer def over decl.
7780
de82891c
TV
77812020-04-23 Tom de Vries <tdevries@suse.de>
7782
7783 PR symtab/25807
7784 * block.c (best_symbol, better_symbol): Promote to external.
7785 * block.h (best_symbol, better_symbol): Declare.
7786 * symtab.c (lookup_symbol_in_objfile_symtabs): Prefer def over
7787 decl.
7788
ecc6c606
TT
77892020-04-23 Tom Tromey <tromey@adacore.com>
7790
7791 PR ada/25837:
7792 * dwarf2/read.c (dw2_expand_symtabs_matching_symbol): Store a
7793 "const char *", not a "const std::string &".
7794 <name_and_matcher::operator==>: Update.
7795 * unittests/lookup_name_info-selftests.c: Change type of
7796 "result".
7797
740480b8
TT
77982020-04-23 Tom Tromey <tom@tromey.com>
7799
7800 * inferior.h (iterate_over_inferiors): Don't declare.
7801 * inferior.c (iterate_over_inferiors): Remove.
7802 * darwin-nat.c (find_inferior_task_it, find_inferior_pid_it):
7803 Remove.
7804 (darwin_find_inferior_by_task, darwin_find_inferior_by_pid): Don't
7805 use iterate_over_inferiors.
7806 (darwin_resume_inferior_it)
7807 (struct resume_inferior_threads_param)
7808 (darwin_resume_inferior_threads_it): Remove.
7809 (darwin_nat_target::resume): Don't use iterate_over_inferiors.
7810
ae3ab1f0
TV
78112020-04-23 Tom de Vries <tdevries@suse.de>
7812
7813 * blockframe.c (find_pc_partial_function): Use
7814 find_pc_sect_compunit_symtab rather than
7815 objfile->sf->qf->find_pc_sect_compunit_symtab.
7816
317d2668
TV
78172020-04-22 Tom de Vries <tdevries@suse.de>
7818
7819 PR symtab/25764
7820 * dwarf2/read.c (scan_partial_symbols): Allow external variable decls
7821 in psymtabs.
7822
eea9e357
TV
78232020-04-22 Tom de Vries <tdevries@suse.de>
7824
7825 PR symtab/25801
7826 * psymtab.c (psym_map_symtabs_matching_filename): Don't skip shared
7827 symtabs.
7828
3d5afab3
TV
78292020-04-22 Tom de Vries <tdevries@suse.de>
7830
7831 PR symtab/25700
7832 * dwarf2/read.c (dwarf2_build_psymtabs_hard): Don't create psymtab for
7833 CU if already created.
7834
d43b7a2d
TBA
78352020-04-21 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
7836
7837 * infrun.c (displaced_step_fixup): Switch to the event_thread
7838 before calling displaced_step_restore, not after.
7839
d89edf9b
MM
78402020-04-21 Markus Metzger <markus.t.metzger@intel.com>
7841
7842 * record-btrace.c (record_btrace_enable_warn): Ignore thread if
7843 its inferior is not recorded by us.
7844 (record_btrace_target_open): Replace call to
7845 all_non_exited_threads () with call to current_inferior
7846 ()->non_exited_threads ().
7847 (record_btrace_target::stop_recording): Likewise.
7848 (record_btrace_target::close): Likewise.
7849 (record_btrace_target::wait): Likewise.
7850 (record_btrace_target::record_stop_replaying): Likewise.
7851
5897fd49
MM
78522020-04-21 Markus Metzger <markus.t.metzger@intel.com>
7853
7854 * btrace.c (btrace_enable): Throw an error on double enables and
7855 when enabling recording fails.
7856 (btrace_disable): Throw an error if the thread is not recorded.
7857
1a476b6d
MM
78582020-04-21 Markus Metzger <markus.t.metzger@intel.com>
7859
7860 * record-btrace.c (record_btrace_target::fetch_registers): Forward
7861 request if we do not have a thread_info.
7862
4778a5f8
TV
78632020-04-21 Tom de Vries <tdevries@suse.de>
7864
7865 PR gdb/25471
7866 * thread.c
7867 (scoped_restore_current_thread::scoped_restore_current_thread): Catch
7868 exception in get_frame_id.
7869
0fa7617d
TT
78702020-04-20 Tom Tromey <tromey@adacore.com>
7871
7872 * python/python.c (struct gdbpy_event): Mark move constructor as
7873 noexcept.
7874 * python/py-tui.c (class gdbpy_tui_window_maker): Mark move
7875 constructor as noexcept.
7876 * completer.h (struct completion_result): Mark move constructor as
7877 noexcept.
7878 * completer.c (completion_result::completion_result): Use
7879 initialization style. Don't call reset_match_list.
7880
ad23bda0
MS
78812020-04-20 Mihails Strasuns <mihails.strasuns@intel.com>
7882
7883 * MAINTAINERS (Write After Approval): Add myself.
7884
45e1f031
TT
78852020-04-18 Tom Tromey <tom@tromey.com>
7886
7887 * windows-tdep.c (init_w32_command_list)
7888 (w32_prefix_command_valid): Restore.
7889 (_initialize_windows_tdep): Call init_w32_command_list.
7890
08feed99
TT
78912020-04-18 Tom Tromey <tom@tromey.com>
7892
7893 * xcoffread.c (enter_line_range, scan_xcoff_symtab): Update.
7894 * value.c (value_fn_field): Update.
7895 * valops.c (find_function_in_inferior)
7896 (value_allocate_space_in_inferior): Update.
7897 * tui/tui-winsource.c (tui_update_source_windows_with_line):
7898 Update.
7899 * tui/tui-source.c (tui_source_window::set_contents): Update.
7900 * symtab.c (lookup_global_or_static_symbol)
7901 (find_function_start_sal_1, skip_prologue_sal)
7902 (print_msymbol_info, find_gnu_ifunc, symbol_arch): Update.
7903 * symmisc.c (dump_msymbols, dump_symtab_1)
7904 (maintenance_print_one_line_table): Update.
7905 * symfile.c (init_entry_point_info, section_is_mapped)
7906 (list_overlays_command, simple_read_overlay_table)
7907 (simple_overlay_update_1): Update.
7908 * stap-probe.c (handle_stap_probe): Update.
7909 * stabsread.c (dbx_init_float_type, define_symbol)
7910 (read_one_struct_field, read_enum_type, read_range_type): Update.
7911 * source.c (info_line_command): Update.
7912 * python/python.c (gdbpy_source_objfile_script)
7913 (gdbpy_execute_objfile_script): Update.
7914 * python/py-type.c (save_objfile_types): Update.
7915 * python/py-objfile.c (py_free_objfile): Update.
7916 * python/py-inferior.c (python_new_objfile): Update.
7917 * psymtab.c (psym_find_pc_sect_compunit_symtab, dump_psymtab)
7918 (dump_psymtab_addrmap_1, maintenance_info_psymtabs)
7919 (maintenance_check_psymtabs): Update.
7920 * printcmd.c (info_address_command): Update.
7921 * objfiles.h (struct objfile) <arch>: New method, from
7922 get_objfile_arch.
7923 (get_objfile_arch): Don't declare.
7924 * objfiles.c (get_objfile_arch): Remove.
7925 (filter_overlapping_sections): Update.
7926 * minsyms.c (msymbol_is_function): Update.
7927 * mi/mi-symbol-cmds.c (mi_cmd_symbol_list_lines)
7928 (output_nondebug_symbol): Update.
7929 * mdebugread.c (parse_symbol, basic_type, parse_partial_symbols)
7930 (mdebug_expand_psymtab): Update.
7931 * machoread.c (macho_add_oso_symfile): Update.
7932 * linux-tdep.c (linux_infcall_mmap, linux_infcall_munmap):
7933 Update.
7934 * linux-fork.c (checkpoint_command): Update.
7935 * linespec.c (convert_linespec_to_sals): Update.
7936 * jit.c (finalize_symtab): Update.
7937 * infrun.c (insert_exception_resume_from_probe): Update.
7938 * ia64-tdep.c (ia64_find_unwind_table): Update.
7939 * hppa-tdep.c (internalize_unwinds): Update.
7940 * gdbtypes.c (get_type_arch, init_float_type, objfile_type):
7941 Update.
7942 * gcore.c (call_target_sbrk): Update.
7943 * elfread.c (record_minimal_symbol, elf_symtab_read)
7944 (elf_rel_plt_read, elf_gnu_ifunc_record_cache)
7945 (elf_gnu_ifunc_resolve_by_got): Update.
7946 * dwarf2/read.c (create_addrmap_from_index)
7947 (create_addrmap_from_aranges, dw2_find_pc_sect_compunit_symtab)
7948 (read_debug_names_from_section)
7949 (process_psymtab_comp_unit_reader, add_partial_symbol)
7950 (add_partial_subprogram, process_full_comp_unit)
7951 (read_file_scope, read_func_scope, read_lexical_block_scope)
7952 (read_call_site_scope, dwarf2_ranges_read)
7953 (dwarf2_record_block_ranges, dwarf2_add_field)
7954 (mark_common_block_symbol_computed, read_tag_pointer_type)
7955 (read_tag_string_type, dwarf2_init_float_type)
7956 (dwarf2_init_complex_target_type, read_base_type)
7957 (partial_die_info::read, partial_die_info::read)
7958 (read_attribute_value, dwarf_decode_lines_1, new_symbol)
7959 (dwarf2_fetch_die_loc_sect_off): Update.
7960 * dwarf2/loc.c (dwarf2_find_location_expression)
7961 (class dwarf_evaluate_loc_desc, rw_pieced_value)
7962 (dwarf2_evaluate_loc_desc_full, dwarf2_locexpr_baton_eval)
7963 (dwarf2_loc_desc_get_symbol_read_needs)
7964 (locexpr_describe_location_piece, locexpr_describe_location_1)
7965 (loclist_describe_location): Update.
7966 * dwarf2/index-write.c (write_debug_names): Update.
7967 * dwarf2/frame.c (dwarf2_build_frame_info): Update.
7968 * dtrace-probe.c (dtrace_process_dof): Update.
7969 * dbxread.c (read_dbx_symtab, dbx_end_psymtab)
7970 (process_one_symbol): Update.
7971 * ctfread.c (ctf_init_float_type, read_base_type): Update.
7972 * coffread.c (coff_symtab_read, enter_linenos, decode_base_type)
7973 (coff_read_enum_type): Update.
7974 * cli/cli-cmds.c (edit_command, list_command): Update.
7975 * buildsym.c (buildsym_compunit::finish_block_internal): Update.
7976 * breakpoint.c (create_overlay_event_breakpoint)
7977 (create_longjmp_master_breakpoint)
7978 (create_std_terminate_master_breakpoint)
7979 (create_exception_master_breakpoint, get_sal_arch): Update.
7980 * block.c (block_gdbarch): Update.
7981 * annotate.c (annotate_source_line): Update.
7982
0743fc83
TT
79832020-04-17 Tom Tromey <tromey@adacore.com>
7984
7985 * auto-load.c (show_auto_load_cmd): Remove.
7986 (auto_load_show_cmdlist_get): Use add_show_prefix_cmd.
7987 * arc-tdep.c (_initialize_arc_tdep): Use add_show_prefix_cmd.
7988 (maintenance_print_arc_command): Remove.
7989 * tui/tui-win.c (tui_command): Remove.
7990 (tui_get_cmd_list): Use add_basic_prefix_cmd.
7991 * tui/tui-layout.c (tui_layout_command): Remove.
7992 (_initialize_tui_layout): Use add_basic_prefix_cmd.
7993 * python/python.c (user_set_python, user_show_python): Remove.
7994 (_initialize_python): Use add_basic_prefix_cmd,
7995 add_show_prefix_cmd.
7996 * guile/guile.c (set_guile_command, show_guile_command): Remove.
7997 (install_gdb_commands): Use add_basic_prefix_cmd,
7998 add_show_prefix_cmd.
7999 (info_guile_command): Remove.
8000 * dwarf2/read.c (set_dwarf_cmd, show_dwarf_cmd): Remove.
8001 (_initialize_dwarf2_read): Use add_basic_prefix_cmd,
8002 add_show_prefix_cmd.
8003 * cli/cli-style.h (class cli_style_option) <add_setshow_commands>:
8004 Remove do_set and do_show parameters.
8005 * cli/cli-style.c (set_style, show_style): Remove.
8006 (_initialize_cli_style): Use add_basic_prefix_cmd,
8007 add_show_prefix_cmd.
8008 (cli_style_option::add_setshow_commands): Remove do_set and
8009 do_show parameters.
8010 (cli_style_option::add_setshow_commands): Use
8011 add_basic_prefix_cmd, add_show_prefix_cmd.
8012 (STYLE_ADD_SETSHOW_COMMANDS): Remove macro.
8013 (set_style_name): Remove.
8014 * cli/cli-dump.c (dump_command, append_command): Remove.
8015 (srec_dump_command, ihex_dump_command, verilog_dump_command)
8016 (tekhex_dump_command, binary_dump_command)
8017 (binary_append_command): Remove.
8018 (_initialize_cli_dump): Use add_basic_prefix_cmd.
8019 * windows-tdep.c (w32_prefix_command_valid): Remove global.
8020 (init_w32_command_list): Remove; move into ...
8021 (_initialize_windows_tdep): ... here. Use add_basic_prefix_cmd.
8022 * valprint.c (set_print, show_print, set_print_raw)
8023 (show_print_raw): Remove.
8024 (_initialize_valprint): Use add_basic_prefix_cmd,
8025 add_show_prefix_cmd.
8026 * typeprint.c (set_print_type, show_print_type): Remove.
8027 (_initialize_typeprint): Use add_basic_prefix_cmd,
8028 add_show_prefix_cmd.
8029 * record.c (set_record_command, show_record_command): Remove.
8030 (_initialize_record): Use add_basic_prefix_cmd,
8031 add_show_prefix_cmd.
8032 * cli/cli-cmds.c (_initialize_cli_cmds): Use add_basic_prefix_cmd,
8033 add_show_prefix_cmd.
8034 (info_command, show_command, set_debug, show_debug): Remove.
8035 * top.h (set_history, show_history): Don't declare.
8036 * top.c (set_history, show_history): Remove.
8037 * target-descriptions.c (set_tdesc_cmd, show_tdesc_cmd)
8038 (unset_tdesc_cmd): Remove.
8039 (_initialize_target_descriptions): Use add_basic_prefix_cmd,
8040 add_show_prefix_cmd.
8041 * symtab.c (info_module_command): Remove.
8042 (_initialize_symtab): Use add_basic_prefix_cmd.
8043 * symfile.c (overlay_command): Remove.
8044 (_initialize_symfile): Use add_basic_prefix_cmd.
8045 * sparc64-tdep.c (info_adi_command): Remove.
8046 (_initialize_sparc64_adi_tdep): Use add_basic_prefix_cmd.
8047 * sh-tdep.c (show_sh_command, set_sh_command): Remove.
8048 (_initialize_sh_tdep): Use add_basic_prefix_cmd,
8049 add_show_prefix_cmd.
8050 * serial.c (serial_set_cmd, serial_show_cmd): Remove.
8051 (_initialize_serial): Use add_basic_prefix_cmd,
8052 add_show_prefix_cmd.
8053 * ser-tcp.c (set_tcp_cmd, show_tcp_cmd): Remove.
8054 (_initialize_ser_tcp): Use add_basic_prefix_cmd,
8055 add_show_prefix_cmd.
8056 * rs6000-tdep.c (set_powerpc_command, show_powerpc_command)
8057 (_initialize_rs6000_tdep): Use add_basic_prefix_cmd,
8058 add_show_prefix_cmd.
8059 * riscv-tdep.c (show_riscv_command, set_riscv_command)
8060 (show_debug_riscv_command, set_debug_riscv_command): Remove.
8061 (_initialize_riscv_tdep): Use add_basic_prefix_cmd,
8062 add_show_prefix_cmd.
8063 * remote.c (remote_command, set_remote_cmd): Remove.
8064 (_initialize_remote): Use add_basic_prefix_cmd.
8065 * record-full.c (set_record_full_command)
8066 (show_record_full_command): Remove.
8067 (_initialize_record_full): Use add_basic_prefix_cmd,
8068 add_show_prefix_cmd.
8069 * record-btrace.c (cmd_set_record_btrace)
8070 (cmd_show_record_btrace, cmd_set_record_btrace_bts)
8071 (cmd_show_record_btrace_bts, cmd_set_record_btrace_pt)
8072 (cmd_show_record_btrace_pt): Remove.
8073 (_initialize_record_btrace): Use add_basic_prefix_cmd,
8074 add_show_prefix_cmd.
8075 * ravenscar-thread.c (set_ravenscar_command)
8076 (show_ravenscar_command): Remove.
8077 (_initialize_ravenscar): Use add_basic_prefix_cmd,
8078 add_show_prefix_cmd.
8079 * mips-tdep.c (show_mips_command, set_mips_command)
8080 (_initialize_mips_tdep): Use add_basic_prefix_cmd,
8081 add_show_prefix_cmd.
8082 * maint.c (maintenance_command, maintenance_info_command)
8083 (maintenance_check_command, maintenance_print_command)
8084 (maintenance_set_cmd, maintenance_show_cmd): Remove.
8085 (_initialize_maint_cmds): Use add_basic_prefix_cmd,
8086 add_show_prefix_cmd.
8087 (show_per_command_cmd): Remove.
8088 * maint-test-settings.c (maintenance_set_test_settings_cmd):
8089 Remove.
8090 (maintenance_show_test_settings_cmd): Remove.
8091 (_initialize_maint_test_settings): Use add_basic_prefix_cmd,
8092 add_show_prefix_cmd.
8093 * maint-test-options.c (maintenance_test_options_command):
8094 Remove.
8095 (_initialize_maint_test_options): Use add_basic_prefix_cmd.
8096 * macrocmd.c (macro_command): Remove
8097 (_initialize_macrocmd): Use add_basic_prefix_cmd.
8098 * language.c (set_check, show_check): Remove.
8099 (_initialize_language): Use add_basic_prefix_cmd,
8100 add_show_prefix_cmd.
8101 * infcmd.c (unset_command): Remove.
8102 (_initialize_infcmd): Use add_basic_prefix_cmd.
8103 * i386-tdep.c (set_mpx_cmd, show_mpx_cmd): Remove.
8104 (_initialize_i386_tdep): Use add_basic_prefix_cmd,
8105 add_show_prefix_cmd.
8106 * go32-nat.c (go32_info_dos_command): Remove.
8107 (_initialize_go32_nat): Use add_basic_prefix_cmd.
8108 * cli/cli-decode.c (do_prefix_cmd, add_basic_prefix_cmd)
8109 (do_show_prefix_cmd, add_show_prefix_cmd): New functions.
8110 * frame.c (set_backtrace_cmd, show_backtrace_cmd): Remove.
8111 (_initialize_frame): Use add_basic_prefix_cmd,
8112 add_show_prefix_cmd.
8113 * dcache.c (set_dcache_command, show_dcache_command): Remove.
8114 (_initialize_dcache): Use add_basic_prefix_cmd,
8115 add_show_prefix_cmd.
8116 * cp-support.c (maint_cplus_command): Remove.
8117 (_initialize_cp_support): Use add_basic_prefix_cmd.
8118 * btrace.c (maint_btrace_cmd, maint_btrace_set_cmd)
8119 (maint_btrace_show_cmd, maint_btrace_pt_set_cmd)
8120 (maint_btrace_pt_show_cmd, _initialize_btrace): Use
8121 add_basic_prefix_cmd, add_show_prefix_cmd.
8122 * breakpoint.c (save_command): Remove.
8123 (_initialize_breakpoint): Use add_basic_prefix_cmd.
8124 * arm-tdep.c (set_arm_command, show_arm_command): Remove.
8125 (_initialize_arm_tdep): Use add_basic_prefix_cmd,
8126 add_show_prefix_cmd.
8127 * ada-lang.c (maint_set_ada_cmd, maint_show_ada_cmd)
8128 (set_ada_command, show_ada_command): Remove.
8129 (_initialize_ada_language): Use add_basic_prefix_cmd,
8130 add_show_prefix_cmd.
8131 * command.h (add_basic_prefix_cmd, add_show_prefix_cmd): Declare.
8132
3557f442
KR
81332020-04-16 Kamil Rytarowski <n54@gmx.com>
8134
8135 * nbsd-nat.c (inf_ptrace_target::auxv_parse): Remove.
8136 * nbsd-nat.h (inf_ptrace_target::auxv_parse): Likewise.
8137
16197208
SM
81382020-04-16 Simon Marchi <simon.marchi@polymtl.ca>
8139
8140 * windows-tdep.c (is_linked_with_cygwin_dll): Add filename to
8141 warning messages.
8142
00ac85d3
SM
81432020-04-16 Simon Marchi <simon.marchi@polymtl.ca>
8144
8145 * windows-tdep.c (is_linked_with_cygwin_dll): Consider case where
8146 import table is not at beginning of .idata section.
8147
381ce63f
PA
81482020-04-16 Pedro Alves <palves@redhat.com>
8149
8150 * inferior.c (delete_inferior): Use delete operator directly
8151 instead of delete_program_space.
8152 * progspace.c (add_program_space): New, factored out from
8153 program_space::program_space.
8154 (remove_program_space): New, factored out from
8155 delete_program_space.
8156 (program_space::program_space): Remove intro comment. Rewrite.
8157 (program_space::~program_space): Remove intro comment. Call
8158 remove_program_space.
8159 (delete_program_space): Delete.
8160 * progspace.h (program_space::program_space): Make explicit. Move
8161 intro comment here, adjusted.
8162 (program_space::~program_space): Move intro comment here,
8163 adjusted.
8164 (delete_program_space): Remove.
8165
a010605f
TT
81662020-04-16 Tom Tromey <tromey@adacore.com>
8167
8168 * windows-nat.c (windows_nat::handle_access_violation): New
8169 function.
8170 * nat/windows-nat.h (handle_access_violation): Declare.
8171 * nat/windows-nat.c (handle_exception): Move Cygwin code to
8172 windows-nat.c. Call handle_access_violation.
8173
efba5c23
TV
81742020-04-16 Tom de Vries <tdevries@suse.de>
8175
8176 PR symtab/25791
8177 * dwarf2/index-write.c (write_gdbindex): Generate CU table entries for
8178 CUs without psymtab.
8179
97ed802d
KB
81802020-04-16 Kevin Buettner <kevinb@redhat.com>
8181
8182 * python/python.c (do_start_initialization): Don't call
8183 PyEval_InitThreads for Python 3.9 and beyond.
8184
c7d64809
KR
81852020-04-15 Kamil Rytarowski <n54@gmx.com>
8186
8187 * obsd-nat.c (obsd_nat_target::update_thread_list): Pass "this" to
8188 thread functions.
8189 (obsd_nat_target::wait): Likewise.
8190
ce127a96
TT
81912020-04-15 Tom Tromey <tromey@adacore.com>
8192
8193 * windows-nat.c (DEBUG_EXEC, DEBUG_EVENTS, DEBUG_MEM)
8194 (DEBUG_EXCEPT): Use debug_printf.
8195
99f1bc6a
AB
81962020-04-15 Andrew Burgess <andrew.burgess@embecosm.com>
8197
8198 * completer.c (class completion_tracker::completion_hash_entry)
8199 <hash_name>: New member function.
8200 (completion_tracker::discard_completions): New callback to hash a
8201 completion_hash_entry, pass this to htab_create_alloc.
8202
a0e9b532
JT
82032016-01-20 Jon Turney <jon.turney@dronecode.org.uk>
8204
8205 * windows-nat.c (windows_make_so): Warn rather than stopping with
8206 an error if realpath() fails.
8207
06ca5dd4
KR
82082020-04-14 Kamil Rytarowski <n54@gmx.com>
8209
8210 * nbsd-nat.c (nbsd_pid_to_kinfo_proc2): New.
8211 (nbsd_nat_target::info_proc): Add do_status.
8212
194d088f
TV
82132020-04-14 Simon Marchi <simon.marchi@polymtl.ca>
8214 Tom de Vries <tdevries@suse.de>
8215
8216 PR symtab/25718
8217 * psympriv.h (struct partial_symtab::read_symtab)
8218 (struct partial_symtab::expand_psymtab)
8219 (struct partial_symtab::read_dependencies): Update comments.
8220 * dwarf2/read.c (struct dwarf2_include_psymtab::read_symtab): Call
8221 read_symtab for includer.
8222 (struct dwarf2_include_psymtab::expand_psymtab): Assert false.
8223 (struct dwarf2_include_psymtab::readin_p): Call readin_p () for includer.
8224 (struct dwarf2_include_psymtab::m_readin): Remove.
8225 (struct dwarf2_include_psymtab::includer): New member function.
8226 (dwarf2_psymtab::expand_psymtab): Assert !readin.
8227
c1a66c06
TV
82282020-04-14 Tom de Vries <tdevries@suse.de>
8229
8230 PR symtab/25720
8231 * symmisc.c (maintenance_expand_symtabs): Call expand_symtabs_matching
8232 with NULL symbol_matcher and lookup_name.
8233 * psymtab.c (psym_expand_symtabs_matching): Handle NULL symbol_matcher
8234 and lookup_name.
8235 * dwarf2/read.c (dw2_expand_symtabs_matching)
8236 (dw2_debug_names_expand_symtabs_matching): Same.
8237 * symfile.h (struct quick_symbol_functions::expand_symtabs_matching):
8238 Make lookup_name a pointer. Update comment.
8239 * symtab.c (global_symbol_searcher::expand_symtabs): Handle
8240 lookup_name being a pointer.
8241 * symfile.c (expand_symtabs_matching): Same.
8242 * symfile-debug.c (debug_qf_expand_symtabs_matching): Same.
8243 * linespec.c (iterate_over_all_matching_symtabs): Same.
8244
400b5eca
TT
82452020-04-13 Tom Tromey <tom@tromey.com>
8246
8247 * run-on-main-thread.c: Update include.
8248 * unittests/main-thread-selftests.c: Update include.
8249 * tui/tui-win.c: Update include.
8250 * tui/tui-io.c: Update include.
8251 * tui/tui-interp.c: Update include.
8252 * tui/tui-hooks.c: Update include.
8253 * top.h: Update include.
8254 * top.c: Update include.
8255 * ser-base.c: Update include.
8256 * remote.c: Update include.
8257 * remote-notif.c: Update include.
8258 * remote-fileio.c: Update include.
8259 * record-full.c: Update include.
8260 * record-btrace.c: Update include.
8261 * python/python.c: Update include.
8262 * posix-hdep.c: Update include.
8263 * mingw-hdep.c: Update include.
8264 * mi/mi-main.c: Update include.
8265 * mi/mi-interp.c: Update include.
8266 * main.c: Update include.
8267 * linux-nat.c: Update include.
8268 * interps.c: Update include.
8269 * infrun.c: Update include.
8270 * inf-loop.c: Update include.
8271 * event-top.c: Update include.
8272 * event-loop.c: Move to ../gdbsupport/.
8273 * event-loop.h: Move to ../gdbsupport/.
8274 * async-event.h: Update include.
8275 * Makefile.in (COMMON_SFILES, HFILES_NO_SRCDIR): Update.
8276
93b54c8e
TT
82772020-04-13 Tom Tromey <tom@tromey.com>
8278
8279 * tui/tui-win.c: Include async-event.h.
8280 * remote.c: Include async-event.h.
8281 * remote-notif.c: Include async-event.h.
8282 * record-full.c: Include async-event.h.
8283 * record-btrace.c: Include async-event.h.
8284 * infrun.c: Include async-event.h.
8285 * event-top.c: Include async-event.h.
8286 * event-loop.h: Move some declarations to async-event.h.
8287 * event-loop.c: Don't include ser-event.h or top.h. Move some
8288 code to async-event.c.
8289 * async-event.h: New file.
8290 * async-event.c: New file.
8291 * Makefile.in (COMMON_SFILES): Add async-event.c.
8292 (HFILES_NO_SRCDIR): Add async-event.h.
8293
c1cd3163
TT
82942020-04-13 Tom Tromey <tom@tromey.com>
8295
8296 * utils.c (flush_streams): New function.
8297 * event-loop.c (gdb_wait_for_event): Call flush_streams.
8298
29f2bf4f
TT
82992020-04-13 Tom Tromey <tom@tromey.com>
8300
8301 * event-loop.c (handle_file_event): Use warning, not
8302 printf_unfiltered.
8303
98029d02
TT
83042020-04-13 Tom Tromey <tom@tromey.com>
8305
8306 * event-loop.c: Include <chrono>.
8307
06cc9596
TT
83082020-04-13 Tom Tromey <tom@tromey.com>
8309
8310 * gdb_select.h: Move to ../gdbsupport/.
8311 * event-loop.c: Update include path.
8312 * top.c: Update include path.
8313 * ser-base.c: Update include path.
8314 * ui-file.c: Update include path.
8315 * ser-tcp.c: Update include path.
8316 * guile/scm-ports.c: Update include path.
8317 * posix-hdep.c: Update include path.
8318 * ser-unix.c: Update include path.
8319 * gdb_usleep.c: Update include path.
8320 * mingw-hdep.c: Update include path.
8321 * inflow.c: Update include path.
8322 * infrun.c: Update include path.
8323 * event-top.c: Update include path.
8324
8ae8e197
TT
83252020-04-13 Tom Tromey <tom@tromey.com>
8326
8327 * configure: Rebuild.
8328 * configure.ac: Remove checks that are now in GDB_AC_COMMON.
8329
58cf28e8
TT
83302020-04-13 Tom Tromey <tom@tromey.com>
8331
8332 * event-loop.h (start_event_loop): Don't declare.
8333 * event-loop.c (start_event_loop): Move...
8334 * main.c (start_event_loop): ...here. Now static.
8335
b7f999ae
SDJ
83362020-04-13 Sergio Durigan Junior <sergiodj@sergiodj.net>
8337
8338 * MAINTAINERS: Update my email address.
8339
1085dfd4
KR
83402020-04-12 Kamil Rytarowski <n54@gmx.com>
8341
8342 * nbsd-nat.c (nbsd_nat_target::info_proc): Add IP_MINIMAL and
8343 IP_ALL.
8344
49d1d1f5
KR
83452020-04-12 Kamil Rytarowski <n54@gmx.com>
8346
8347 * nbsd-nat.c (nbsd_pid_to_cmdline): Add.
aac66a4c 8348 (nbsd_nat_target::info_proc): Add do_cmdline.
49d1d1f5 8349
b4848d2a
KR
83502020-04-12 Kamil Rytarowski <n54@gmx.com>
8351
8352 * nbsd-nat.c (nbsd_pid_to_cwd): Add.
aac66a4c 8353 (nbsd_nat_target::info_proc): Add do_cwd.
b4848d2a 8354
51c133d5
KR
83552020-04-12 Kamil Rytarowski <n54@gmx.com>
8356
8357 * nbsd-nat.c (nbsd_nat_target::info_proc): Add do_exe.
8358
54b8cbd0
KR
83592020-04-11 Kamil Rytarowski <n54@gmx.com>
8360
8361 * nbsd-nat.c; Include "nbsd-tdep.h" and "gdbarch.h".
8362 * nbsd-nat.c (nbsd_nat_target::find_memory_regions)
8363 (nbsd_nat_target::info_proc): New functions.
8364 * nbsd-nat.c (kinfo_get_vmmap): New function.
8365 * nbsd-nat.c (nbsd_nat_target::info_proc) Use
8366 nbsd_info_proc_mappings_header and nbsd_info_proc_mappings_entry.
8367 * nbsd-tdep.c (nbsd_info_proc_mappings_header)
8368 (nbsd_info_proc_mappings_entry, nbsd_vm_map_entry_flags): New
8369 functions.
8370 * nbsd-tdep.c (KINFO_VME_PROT_READ, KINFO_VME_PROT_WRITE)
8371 (KINFO_VME_PROT_EXEC, KINFO_VME_FLAG_COW)
8372 (KINFO_VME_FLAG_NEEDS_COPY, KINFO_VME_FLAG_NOCOREDUMP)
8373 (KINFO_VME_FLAG_PAGEABLE, KINFO_VME_FLAG_GROWS_UP)
8374 (KINFO_VME_FLAG_GROWS_DOWN): New.
8375
cf83625d
AS
83762020-04-10 Artur Shepilko <nomadbyte@gmail.com>
8377
8378 * utils.c (copy_bitwise): Use unsigned 0 constant as operand of
8379 bit shift.
8380
0c4311ab
TT
83812020-04-10 Tom Tromey <tromey@adacore.com>
8382
8383 * symfile.c (symbol_file_add_separate): Preserve OBJF_MAINLINE.
8384
3e65b3e9
TT
83852020-04-10 Tom Tromey <tromey@adacore.com>
8386
8387 * symtab.c (get_symbol_address, get_msymbol_address): Skip
8388 separate debug files.
8389
13302e95
HD
83902020-04-10 Hannes Domani <ssbssa@yahoo.de>
8391
8392 * nat/windows-nat.c (STATUS_WX86_BREAKPOINT, STATUS_WX86_SINGLE_STEP):
8393 Move to...
8394 * nat/windows-nat.h (STATUS_WX86_BREAKPOINT, STATUS_WX86_SINGLE_STEP):
8395 ... here.
8396 * windows-nat.c (windows_nat_target::get_windows_debug_event):
8397 Check for STATUS_WX86_BREAKPOINT.
8398 (windows_nat_target::wait): Same.
8399
bdfc1e8a
TV
84002020-04-10 Tom de Vries <tdevries@suse.de>
8401
8402 PR cli/25808
8403 * python/lib/gdb/__init__.py: Initialize lexer with stripnl=False.
8404
f4460aec
SM
84052020-04-09 Simon Marchi <simon.marchi@polymtl.ca>
8406
8407 * MAINTAINERS (Global Maintainers): Add Tom de Vries.
8408 (Write After Approval): Remove Tom de Vries.
8409
a25198bb
BE
84102020-04-09 Bernd Edlinger <bernd.edlinger@hotmail.de>
8411
8412 revert partially:
8413 2020-04-01 Bernd Edlinger <bernd.edlinger@hotmail.de>
8414
aac66a4c
SM
8415 * buildsym.c (record_line): Fix undefined behavior and preserve
8416 lines at eof.
a25198bb 8417
206c98a6
KR
84182020-04-09 Kamil Rytarowski <n54@gmx.com>
8419
8420 * auxv.h (svr4_auxv_parse): New.
8421 * auxv.c (default_auxv_parse): Split into default_auxv_parse
8422 and generic_auxv_parse.
8423 (svr4_auxv_parse): Add.
8424 * obsd-tdep.c: Include "auxv.h".
8425 (obsd_auxv_parse): Remove.
8426 (obsd_init_abi): Remove comment.
8427 (obsd_init_abi): Change set_gdbarch_auxv_parse passed argument
8428 from `obsd_auxv_parse' to `svr4_auxv_parse'.
8429 * nbsd-tdep.c: Include "auxv.h".
8430 (nbsd_init_abi): Call set_gdbarch_auxv_parse.
8431
71fbdbaf
TT
84322020-04-08 Tom Tromey <tromey@adacore.com>
8433
8434 * nat/windows-nat.h (last_wait_event): Don't declare.
8435 (wait_for_debug_event): Update comment.
8436 * nat/windows-nat.c (last_wait_event): Now static.
8437
2c1d95e8
TT
84382020-04-08 Tom Tromey <tromey@adacore.com>
8439
8440 * windows-nat.c (wait_for_debug_event): Move to
8441 nat/windows-nat.c.
8442 * nat/windows-nat.h (wait_for_debug_event): Declare.
8443 * nat/windows-nat.c (wait_for_debug_event): Move from
8444 windows-nat.c. No longer static.
8445
d2977bc4
TT
84462020-04-08 Tom Tromey <tromey@adacore.com>
8447
8448 * windows-nat.c (get_windows_debug_event): Use
8449 fetch_pending_stop.
8450 * nat/windows-nat.h (fetch_pending_stop): Declare.
8451 * nat/windows-nat.c (fetch_pending_stop): New function.
8452
e758e19c
TT
84532020-04-08 Tom Tromey <tromey@adacore.com>
8454
8455 * windows-nat.c (windows_continue): Use matching_pending_stop and
8456 continue_last_debug_event.
8457 * nat/windows-nat.h (matching_pending_stop)
8458 (continue_last_debug_event): Declare.
8459 * nat/windows-nat.c (DEBUG_EVENTS): New define.
8460 (matching_pending_stop, continue_last_debug_event): New
8461 functions.
8462
8d30e395
TT
84632020-04-08 Tom Tromey <tromey@adacore.com>
8464
8465 * windows-nat.c (MS_VC_EXCEPTION): Move to nat/windows-nat.c.
8466 (handle_exception_result): Move to nat/windows-nat.h.
8467 (DEBUG_EXCEPTION_SIMPLE): Remove.
8468 (windows_nat::handle_ms_vc_exception): New function.
8469 (handle_exception): Move to nat/windows-nat.c.
8470 (get_windows_debug_event): Update.
8471 (STATUS_WX86_BREAKPOINT, STATUS_WX86_SINGLE_STEP): Move to
8472 nat/windows-nat.c.
8473 * nat/windows-nat.h (handle_ms_vc_exception): Declare.
8474 (handle_exception_result): Move from windows-nat.c.
8475 (handle_exception): Declare.
8476 * nat/windows-nat.c (MS_VC_EXCEPTION, handle_exception)
8477 (STATUS_WX86_SINGLE_STEP, STATUS_WX86_BREAKPOINT): Move from
8478 windows-nat.c.
8479
29de418d
TT
84802020-04-08 Tom Tromey <tromey@adacore.com>
8481
8482 * windows-nat.c (exception_count, event_count): Remove.
8483 (handle_exception, get_windows_debug_event)
8484 (do_initial_windows_stuff): Update.
8485
a816ba18
TT
84862020-04-08 Tom Tromey <tromey@adacore.com>
8487
8488 * windows-nat.c (windows_nat::handle_load_dll)
8489 (windows_nat::handle_unload_dll): Rename. No longer static.
8490 * nat/windows-nat.h (handle_load_dll, handle_unload_dll):
8491 Declare.
8492
a00caa12
TT
84932020-04-08 Tom Tromey <tromey@adacore.com>
8494
8495 * complaints.h (stop_whining): Declare at top-level.
8496 (complaint): Don't declare stop_whining.
8497
d41b524f
TT
84982020-04-08 Tom Tromey <tromey@adacore.com>
8499
8500 * windows-nat.c (windows_nat::handle_output_debug_string):
8501 Rename. No longer static.
8502 * nat/windows-nat.h (handle_output_debug_string): Declare.
8503
3c76026d
TT
85042020-04-08 Tom Tromey <tromey@adacore.com>
8505
8506 * windows-nat.c (current_process_handle, current_process_id)
8507 (main_thread_id, last_sig, current_event, last_wait_event)
8508 (current_windows_thread, desired_stop_thread_id, pending_stops)
8509 (struct pending_stop, siginfo_er): Move to nat/windows-nat.c.
8510 (display_selectors, fake_create_process)
8511 (get_windows_debug_event): Update.
8512 * nat/windows-nat.h (current_process_handle, current_process_id)
8513 (main_thread_id, last_sig, current_event, last_wait_event)
8514 (current_windows_thread, desired_stop_thread_id, pending_stops)
8515 (struct pending_stop, siginfo_er): Move from windows-nat.c.
8516 * nat/windows-nat.c (current_process_handle, current_process_id)
8517 (main_thread_id, last_sig, current_event, last_wait_event)
8518 (current_windows_thread, desired_stop_thread_id, pending_stops)
8519 (siginfo_er): New globals. Move from windows-nat.c.
8520
9d8679cc
TT
85212020-04-08 Tom Tromey <tromey@adacore.com>
8522
8523 * windows-nat.c (get_image_name): Move to nat/windows-nat.c.
8524 (handle_load_dll): Update.
8525 * nat/windows-nat.c (get_image_name): Move from windows-nat.c.
8526
28688adf
TT
85272020-04-08 Tom Tromey <tromey@adacore.com>
8528
8529 * windows-nat.c (enum thread_disposition_type): Move to
8530 nat/windows-nat.h.
8531 (windows_nat::thread_rec): Rename from thread_rec. No longer
8532 static.
8533 (windows_add_thread, windows_nat_target::fetch_registers)
8534 (windows_nat_target::store_registers, handle_exception)
8535 (windows_nat_target::resume, get_windows_debug_event)
8536 (windows_nat_target::get_tib_address)
8537 (windows_nat_target::thread_name)
8538 (windows_nat_target::thread_alive): Update.
8539 * nat/windows-nat.h (enum thread_disposition_type): Move from
8540 windows-nat.c.
8541 (thread_rec): Declare.
8542
4834dad0
TT
85432020-04-08 Tom Tromey <tromey@adacore.com>
8544
8545 * windows-nat.c: Add "using namespace".
8546 * nat/windows-nat.h: Wrap contents in windows_nat namespace.
8547 * nat/windows-nat.c: Wrap contents in windows_nat namespace.
8548
65bafd5b
TT
85492020-04-08 Tom Tromey <tromey@adacore.com>
8550
8551 * nat/windows-nat.h (struct windows_thread_info): Declare
8552 destructor.
8553 * nat/windows-nat.c (~windows_thread_info): New.
8554
0a4afda3
TT
85552020-04-08 Tom Tromey <tromey@adacore.com>
8556
8557 PR gdb/22992
8558 * windows-nat.c (current_event): Update comment.
8559 (last_wait_event, desired_stop_thread_id): New globals.
8560 (struct pending_stop): New.
8561 (pending_stops): New global.
8562 (windows_nat_target) <stopped_by_sw_breakpoint>
8563 <supports_stopped_by_sw_breakpoint>: New methods.
8564 (windows_fetch_one_register): Add assertions. Adjust PC.
8565 (windows_continue): Handle pending stops. Suspend other threads
8566 when stepping. Use last_wait_event
8567 (wait_for_debug_event): New function.
8568 (get_windows_debug_event): Use wait_for_debug_event. Handle
8569 pending stops. Queue spurious stops.
8570 (windows_nat_target::wait): Set stopped_at_software_breakpoint.
8571 (windows_nat_target::kill): Use wait_for_debug_event.
8572 * nat/windows-nat.h (struct windows_thread_info)
8573 <stopped_at_software_breakpoint>: New field.
8574 * nat/windows-nat.c (windows_thread_info::resume): Clear
8575 stopped_at_software_breakpoint.
8576
8e61ebec
TT
85772020-04-08 Tom Tromey <tromey@adacore.com>
8578
8579 * windows-nat.c (enum thread_disposition_type): New.
8580 (thread_rec): Replace "get_context" parameter with "disposition";
8581 change type.
8582 (windows_add_thread, windows_nat_target::fetch_registers)
8583 (windows_nat_target::store_registers, handle_exception)
8584 (windows_nat_target::resume, get_windows_debug_event)
8585 (windows_nat_target::get_tib_address)
8586 (windows_nat_target::thread_name)
8587 (windows_nat_target::thread_alive): Update.
8588
98a03287
TT
85892020-04-08 Tom Tromey <tromey@adacore.com>
8590
8591 * windows-nat.c (thread_rec): Use windows_thread_info::suspend.
8592 (windows_continue): Use windows_continue::resume.
8593 * nat/windows-nat.h (struct windows_thread_info) <suspend,
8594 resume>: Declare new methods.
8595 * nat/windows-nat.c: New file.
8596 * configure.nat (NATDEPFILES): Add nat/windows-nat.o when needed.
8597
7c7411bc
TT
85982020-04-08 Tom Tromey <tromey@adacore.com>
8599
8600 * windows-nat.c (windows_add_thread, windows_delete_thread)
8601 (windows_nat_target::fetch_registers)
8602 (windows_nat_target::store_registers, fake_create_process)
8603 (windows_nat_target::resume, windows_nat_target::resume)
8604 (get_windows_debug_event, windows_nat_target::wait)
8605 (windows_nat_target::pid_to_str)
8606 (windows_nat_target::get_tib_address)
8607 (windows_nat_target::get_ada_task_ptid)
8608 (windows_nat_target::thread_name)
8609 (windows_nat_target::thread_alive): Use lwp, not tid.
8610
2950fdf7
TT
86112020-04-08 Tom Tromey <tromey@adacore.com>
8612
8613 * windows-nat.c (handle_exception)
8614 (windows_nat_target::thread_name): Update.
8615 * nat/windows-nat.h (windows_thread_info): Remove destructor.
8616 <name>: Now unique_xmalloc_ptr.
8617
62fe396b
TT
86182020-04-08 Tom Tromey <tromey@adacore.com>
8619
8620 * windows-nat.c (thread_rec)
8621 (windows_nat_target::fetch_registers): Update.
8622 * nat/windows-nat.h (struct windows_thread_info) <suspended>:
8623 Update comment.
8624 <debug_registers_changed, reload_context>: Now bool.
8625
e9534bd2
TT
86262020-04-08 Tom Tromey <tromey@adacore.com>
8627
8628 * windows-nat.c (windows_add_thread): Use new.
8629 (windows_init_thread_list, windows_delete_thread): Use delete.
8630 (get_windows_debug_event): Update.
8631 * nat/windows-nat.h (struct windows_thread_info): Add constructor,
8632 destructor, and initializers.
8633
ae1f8880
TT
86342020-04-08 Tom Tromey <tromey@adacore.com>
8635
8636 * windows-nat.c (struct windows_thread_info): Remove.
8637 * nat/windows-nat.h: New file.
8638
55a1e039
TT
86392020-04-08 Tom Tromey <tromey@adacore.com>
8640
8641 * windows-nat.c (struct windows_thread_info) <tid>: Rename from "id".
8642 (thread_rec, windows_add_thread, windows_delete_thread)
8643 (windows_continue): Update.
8644
93366324
TT
86452020-04-08 Tom Tromey <tromey@adacore.com>
8646
8647 * windows-nat.c (struct windows_thread_info): Remove typedef.
8648 (thread_head): Remove.
8649 (thread_list): New global.
8650 (thread_rec, windows_add_thread, windows_init_thread_list)
8651 (windows_delete_thread, windows_continue): Update.
8652
0f2265e2
SM
86532020-04-08 Simon Marchi <simon.marchi@polymtl.ca>
8654
8655 * windows-tdep.h (windows_init_abi): Add comment.
8656 (cygwin_init_abi): New declaration.
8657 * windows-tdep.c: Split signal enumeration in two, one for
8658 Windows and one for Cygwin.
8659 (windows_gdb_signal_to_target): Only deal with signal of the
8660 Windows OS ABI.
8661 (cygwin_gdb_signal_to_target): New function.
8662 (windows_init_abi): Rename to windows_init_abi_common, don't set
8663 gdb_signal_to_target gdbarch method. Add new new function with
8664 this name.
8665 (cygwin_init_abi): New function.
8666 * amd64-windows-tdep.c (amd64_windows_init_abi_common): Add
8667 comment. Don't call windows_init_abi.
8668 (amd64_windows_init_abi): Add comment, call windows_init_abi.
8669 (amd64_cygwin_init_abi): Add comment, call cygwin_init_abi.
8670 * i386-windows-tdep.c (i386_windows_init_abi): Rename to
8671 i386_windows_init_abi_common, don't call windows_init_abi. Add
8672 a new function of this name.
8673 (i386_cygwin_init_abi): New function.
8674 (_initialize_i386_windows_tdep): Bind i386_cygwin_init_abi to
8675 OS ABI Cygwin.
8676
3810f182
SM
86772020-04-08 Simon Marchi <simon.marchi@polymtl.ca>
8678
8679 * dwarf2/read.c (read_gdb_index_from_buffer): Remove objfile
8680 parameter.c.
8681 (dwarf2_read_gdb_index): Update.
8682
063f8e80
KR
86832020-04-07 Kamil Rytarowski <n54@gmx.com>
8684
8685 * nbsd-tdep.c: Include "objfiles.h".
8686 (nbsd_skip_solib_resolver): New.
8687 (nbsd_init_abi): Call set_gdbarch_skip_solib_resolver().
8688
85a9510c 86892020-04-07 Nitika Achra <Nitika.Achra@amd.com>
8690
8691 * dwarf2/loc.c (loclist_describe_location): Call the function decode_debug_loclists_
8692 addresses if DWARF version is 5 or more because DW_LLE_start* or DW_LLE_offset_pair
8693 with DW_LLE_base_addressx are being emitted in DWARFv5.
8694 Add the newly added kind DW_LOC_OFFSET_PAIR also.
8695 The length of location description is an unsigned ULEB integer in DWARFv5 instead of
8696 unsigned integer.
8697
9fc3eaae 86982020-04-07 Nitika Achra <Nitika.Achra@amd.com>
8699
8700 * dwarf2/loc.c (enum debug_loc_kind): Add a new kind DEBUG_LOC_OFFSET_PAIR.
8701 (dwarf2_find_location_expression): Call the function decode_debug_loclists_
8702 addresses if DWARF version is 5 or more. DW_LLE_start* or DW_LLE_offset_pair
8703 with DW_LLE_base_addressx are being emitted in DWARFv5 instead of DW_LLE_GNU*.
8704 Add applicable base address if the entry is DW_LLE_offset_pair from DWO.
8705 (decode_debug_loclists_addresses): Return DEBUG_LOC_OFFSET_PAIR instead of
8706 DEBUG_LOC_START_END in case of DW_LLE_offset_pair.
8707
8708
41144253 87092020-04-07 Nitika Achra <Nitika.Achra@amd.com>
8710
8711 * dwarf2/read.c (cu_debug_loc_section): Added the declaration for the function.
8712 (read_loclist_index): New function definition.
8713 (lookup_loclist_base): New function definition.
8714 (read_loclist_header): New function definition.
8715 (dwarf2_cu): Add loclist_base and loclist_header field.
8716 (dwarf2_locate_dwo_sections): Handle .debug_loclists.dwo section.
8717 (read_full_die_1): Read the value of DW_AT_loclists_base.
8718 (read_attribute_reprocess): Handle DW_FORM_loclistx.
8719 (read_attribute_value): Handle DW_FORM_loclistx.
8720 (skip_one_die): Handle DW_FORM_loclistx.
8721 (loclist_header): New structure declaration.
8722 * dwarf2/attribute.c (form_is_section_offset): Handle DW_FORM_loclistx.
8723
9f4e76a4
SM
87242020-04-07 Simon Marchi <simon.marchi@polymtl.ca>
8725
8726 * dwarf2/read.h (struct dwarf2_psymtab): Remove two-parameters
8727 constructor. Remove `addr` parameter from other constructor and
8728 add `per_cu` parameter.
8729 * dwarf2/read.c (create_partial_symtab): Update.
8730
25c11aca
TV
87312020-04-07 Tom de Vries <tdevries@suse.de>
8732
8733 PR symtab/25796
8734 * dwarf2/read.c (can_have_DW_AT_const_value_p): New function.
8735 (partial_die_info::fixup): Inherit has_const_value.
8736
5707e24b
TV
87372020-04-07 Tom de Vries <tdevries@suse.de>
8738
8739 * psymtab.c (maintenance_check_psymtabs): Skip static LOC_BLOCK
8740 symbols without address.
8741
05f00e22
KR
87422020-04-06 Kamil Rytarowski <n54@gmx.com>
8743
8744 * nbsd-nat.h (struct thread_info): Add forward declaration.
8745 (nbsd_nat_target::thread_alive): Add.
8746 (nbsd_nat_target::thread_name): Likewise.
8747 (nbsd_nat_target::update_thread_list): Likewise.
8748 (update_thread_list::post_attach): Likewise.
8749 (post_attach::pid_to_str): Likewise.
8750 * nbsd-nat.c: Include "gdbthread.h" and "inferior.h".
8751 (nbsd_thread_lister): Add.
8752 (nbsd_nat_target::thread_alive): Likewise.
8753 (nbsd_nat_target::thread_name): Likewise.
8754 (nbsd_add_threads): Likewise.
8755 (update_thread_list::post_attach): Likewise.
8756 (nbsd_nat_target::update_thread_list): Likewise.
8757 (post_attach::pid_to_str): Likewise.
8758
6ee448cc
TT
87592020-04-06 Tom Tromey <tromey@adacore.com>
8760
8761 * ada-valprint.c (print_variant_part): Extract the variant field.
8762 (print_field_values): Use the field as the outer value when
8763 recursing.
8764
dea34e8c
TT
87652020-04-06 Tom Tromey <tromey@adacore.com>
8766
8767 * sh-nbsd-tdep.c: Include nbsd-tdep.h.
8768 * ppc-nbsd-tdep.c: Include nbsd-tdep.h.
8769 * mips-nbsd-tdep.c (mipsnbsd_init_abi): Add missing ";".
8770 * arm-nbsd-tdep.c: Include nbsd-tdep.h.
8771 * hppa-nbsd-tdep.c: Include nbsd-tdep.h.
8772
93689ce9
TT
87732020-04-06 Tom Tromey <tromey@adacore.com>
8774
8775 * dwarf2/read.c (read_base_type) <DW_ATE_complex_float>: Handle
8776 TYPE_CODE_ERROR.
8777
79743962
KR
87782020-04-06 Kamil Rytarowski <n54@gmx.com>
8779
8780 * nbsd-tdep.c: Include "gdbarch.h".
8781 Define enum with NetBSD signal numbers.
8782 (nbsd_gdb_signal_from_target, nbsd_gdb_signal_to_target): New.
8783 * alpha-nbsd-tdep.c (alphanbsd_init_abi): Call nbsd_init_abi().
8784 * amd64-nbsd-tdep.c (amd64nbsd_init_abi): Likewise.
8785 * arm-nbsd-tdep.c (arm_netbsd_elf_init_abi): Likewise.
8786 * hppa-nbsd-tdep.c (hppanbsd_init_abi): Likewise.
8787 * i386-nbsd-tdep.c (i386nbsd_init_abi): Likewise.
8788 * mips-nbsd-tdep.c (nbsd_init_abi): Likewise.
8789 * ppc-nbsd-tdep.c (ppcnbsd_init_abi): Likewise.
8790 * sh-nbsd-tdep.c (shnbsd_init_abi): Likewise.
8791 * sparc-nbsd-tdep.c (sparc32nbsd_init_abi): Likewise.
8792 * sparc64-nbsd-tdep.c (sparc64nbsd_init_abi): Likewise.
8793 * vax-nbsd-tdep.c (vaxnbsd_elf_init_abi): Likewise.
8794
9e7c9a03
HD
87952020-04-03 Hannes Domani <ssbssa@yahoo.de>
8796
8797 PR gdb/25325
8798 * dwarf2/read.c (read_enumeration_type): Fix typed enum attributes.
8799
d9e49b61
TT
88002020-04-03 Tom Tromey <tromey@adacore.com>
8801
8802 * dwarf2/loc.c (disassemble_dwarf_expression) <DW_OP_const_type>:
8803 Read constant block.
8804
e0fc5c3f
SM
88052020-04-02 Simon Marchi <simon.marchi@polymtl.ca>
8806
8807 * gdb_bfd.h: Include gdbsupport/byte-vector.h.
8808 (gdb_bfd_get_full_section_contents): New declaration.
8809 * gdb_bfd.c (gdb_bfd_get_full_section_contents): New function.
8810 * windows-tdep.c (is_linked_with_cygwin_dll): Use
8811 gdb_bfd_get_full_section_contents.
8812
e2ff18a0
SM
88132020-04-02 Simon Marchi <simon.marchi@polymtl.ca>
8814
8815 * exec.c (build_section_table): Replace internal_error with
8816 gdb_assert.
8817 (section_table_xfer_memory_partial): Likewise.
8818 * mdebugread.c (parse_partial_symbols): Likewise.
8819 * psymtab.c (lookup_partial_symbol): Likewise.
8820 * utils.c (wrap_here): Likewise.
8821
0830d301
TT
88222020-04-02 Tom Tromey <tromey@adacore.com>
8823
8824 * f-lang.c (build_fortran_types): Use arch_type to initialize
8825 builtin_complex_s32 in the TYPE_CODE_ERROR case.
8826
e7da7f8f
TT
88272020-04-02 Tom Tromey <tromey@adacore.com>
8828
8829 * dwarf2/read.c (partial_die_info::read): Do not create a vector
8830 of attributes.
8831
c90d28ac
AB
88322020-04-02 Andrew Burgess <andrew.burgess@embecosm.com>
8833 Bernd Edlinger <bernd.edlinger@hotmail.de>
8834 Tom Tromey <tromey@adacore.com>
8835
8836 * buildsym.c (buildsym_compunit::record_line): Remove
8837 deduplication code.
8838
1aa98955
TV
88392020-04-02 Tom de Vries <tdevries@suse.de>
8840
8841 PR ada/24671
8842 * dwarf2/read.c (dw2_map_matching_symbols): Handle -readnow.
8843
d3214198
TV
88442020-04-02 Tom de Vries <tdevries@suse.de>
8845
8846 * dwarf2/read.c (dwarf2_gdb_index_functions,
8847 dwarf2_debug_names_functions): Init lookup_global_symbol_language with
8848 NULL.
8849 * psymtab.c (psym_lookup_global_symbol_language): New function.
8850 (psym_functions): Init psym_lookup_global_symbol_language with
8851 psym_lookup_global_symbol_language.
8852 * symfile-debug.c (debug_sym_quick_functions): Init
8853 lookup_global_symbol_language with NULL.
8854 * symfile.c (set_initial_language): Remove fixme comment.
8855 * symfile.h (struct quick_symbol_functions): Add
8856 lookup_global_symbol_language.
8857 * symtab.c (find_quick_global_symbol_language): New function.
8858 (find_main_name): Use find_quick_global_symbol_language.
8859
2836752f
SM
88602020-04-01 Simon Marchi <simon.marchi@polymtl.ca>
8861
8862 * windows-tdep.c (is_linked_with_cygwin_dll): Fix style.
8863
64dc2d4b
BE
88642020-04-01 Bernd Edlinger <bernd.edlinger@hotmail.de>
8865
8866 * buildsym.c (record_line): Fix undefined behavior and preserve
8867 lines at eof.
8868
bbe3dc41
BE
88692020-04-01 Bernd Edlinger <bernd.edlinger@hotmail.de>
8870
8871 * buildsym.c (record_line): Fix the resizing condition.
8872
6b4a335b
TT
88732020-04-01 Tom Tromey <tom@tromey.com>
8874
8875 * value.h (value_literal_complex): Add comment.
8876 * valops.c (value_literal_complex): Refer to value.h.
8877
3638a098
TT
88782020-04-01 Tom Tromey <tom@tromey.com>
8879
8880 * c-exp.y (FLOAT_KEYWORD, COMPLEX): New tokens.
8881 (scalar_type): New rule, from typebase.
8882 (typebase): Use scalar_type. Recognize complex types.
8883 (field_name): Handle FLOAT_KEYWORD.
8884 (ident_tokens): Add _Complex and __complex__.
8885
c34e8714
TT
88862020-04-01 Tom Tromey <tom@tromey.com>
8887
8888 PR exp/25299:
8889 * valarith.c (promotion_type, complex_binop): New functions.
8890 (scalar_binop): Handle complex numbers. Use promotion_type.
8891 (value_pos, value_neg, value_complement): Handle complex numbers.
8892
fa649bb7
TT
88932020-04-01 Tom Tromey <tom@tromey.com>
8894
8895 * c-exp.y (COMPLEX_INT, COMPLEX_FLOAT): New tokens.
8896 (exp) <COMPLEX_INT, COMPLEX_FLOAT>: New rules.
8897 (parse_number): Handle complex numbers.
8898
981c08ce
TT
88992020-04-01 Tom Tromey <tom@tromey.com>
8900
8901 * c-valprint.c (c_decorations): Change complex suffix to "i".
8902
4c99290d
TT
89032020-04-01 Tom Tromey <tom@tromey.com>
8904
8905 * valprint.c (generic_value_print_complex): Use accessors.
8906 * value.h (value_real_part, value_imaginary_part): Declare.
8907 * valops.c (value_real_part, value_imaginary_part): New
8908 functions.
8909 * value.c (creal_internal_fn, cimag_internal_fn): Use accessors.
8910
5b930b45
TT
89112020-04-01 Tom Tromey <tom@tromey.com>
8912
8913 * stabsread.c (rs6000_builtin_type, read_sun_floating_type)
8914 (read_range_type): Update.
8915 * mdebugread.c (basic_type): Update.
8916 * go-lang.c (build_go_types): Use init_complex_type.
8917 * gdbtypes.h (struct main_type) <complex_type>: New member.
8918 (init_complex_type): Update.
8919 (arch_complex_type): Don't declare.
8920 * gdbtypes.c (init_complex_type): Remove "objfile" parameter.
8921 Make name if none given. Use alloc_type_copy. Look for cached
8922 complex type.
8923 (arch_complex_type): Remove.
8924 (gdbtypes_post_init): Use init_complex_type.
8925 * f-lang.c (build_fortran_types): Use init_complex_type.
8926 * dwarf2/read.c (read_base_type): Update.
8927 * d-lang.c (build_d_types): Use init_complex_type.
8928 * ctfread.c (read_base_type): Update.
8929
53cccef1
TBA
89302020-04-01 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
8931
8932 * infrun.c (stop_all_threads): Update assertion, plus when
8933 stopping threads, take into account that we might be trying
8934 to stop an all-stop target.
8935 (stop_waiting): Call 'stop_all_threads' if there exists a
8936 non-stop target.
8937
a0714d30
TBA
89382020-04-01 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
8939
8940 * target.h (exists_non_stop_target): New function declaration.
8941 * target.c (exists_non_stop_target): New function.
8942
60e22c1e
HD
89432020-04-01 Hannes Domani <ssbssa@yahoo.de>
8944
8945 PR gdb/24789
8946 * eval.c (is_integral_or_integral_reference): New function.
8947 (evaluate_subexp_standard): Allow integer references in
8948 pointer arithmetic.
8949
e139a727
TBA
89502020-04-01 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
8951
8952 * remote.c (remote_target::remote_parse_stop_reply): Remove the
8953 check for no ptid in the stop reply when the target is non-stop.
8954
e0802d59
TT
89552020-04-01 Tom Tromey <tromey@adacore.com>
8956
8957 * symtab.h (class lookup_name_info) <lookup_name_info>: Change
8958 "name" parameter to rvalue reference. Initialize m_name_holder.
8959 <lookup_name_info>: New overloads.
8960 <name>: Return gdb::string_view.
8961 <c_str>: New method.
8962 <make_ignore_params>: Update.
8963 <search_name_hash>: Update.
8964 <language_lookup_name>: Return const char *.
8965 <m_name>: Change type.
8966 * symtab.c (demangle_for_lookup_info::demangle_for_lookup_info)
8967 (demangle_for_lookup_info::demangle_for_lookup_info): Update.
8968 (lookup_name_info::match_any): Update.
8969 * psymtab.c (match_partial_symbol, lookup_partial_symbol):
8970 Update.
8971 * minsyms.c (linkage_name_str): Update.
8972 * language.c (default_symbol_name_matcher): Update.
8973 * dwarf2/read.c (mapped_index_base::find_name_components_bounds):
8974 Update.
8975 * ada-lang.c (ada_fold_name): Change parameter to string_view.
8976 (ada_lookup_name_info::ada_lookup_name_info): Update.
8977 (literal_symbol_name_matcher): Update.
8978
8c072cb6
TT
89792020-04-01 Tom Tromey <tromey@adacore.com>
8980
8981 * psymtab.c (psymtab_search_name): Remove function.
8982 (psym_lookup_symbol): Create search name and lookup name here.
8983 (lookup_partial_symbol): Remove "name" parameter; add
8984 lookup_name.
8985 (psym_expand_symtabs_for_function): Update.
8986
6f29a534
TT
89872020-03-31 Joel Jones <joelkevinjones@gmail.com>
8988
8989 PR tui/25597:
8990 * python/py-tui.c: Include gdb_curses.h inside of #ifdef TUI.
8991
af62665e
TT
89922020-03-31 Tom Tromey <tromey@adacore.com>
8993
8994 * dwarf2/abbrev.c (abbrev_table::read): Conditionally call
8995 memcpy.
8996
d1a89da5
NC
89972020-03-30 Nelson Chu <nelson.chu@sifive.com>
8998
8999 * features/riscv/32bit-csr.xml: Regenerated.
9000 * features/riscv/64bit-csr.xml: Regenerated.
9001
d8af9068
TT
90022020-03-30 Tom Tromey <tromey@adacore.com>
9003
9004 * ada-valprint.c (print_variant_part): Update.
9005 * ada-lang.h (ada_which_variant_applies): Update.
9006 * ada-lang.c (ada_which_variant_applies): Remove outer_type and
9007 outer_valaddr parameters; replace with "outer" value parameter.
9008 (to_fixed_variant_branch_type): Update.
9009
227c0bf4
PFC
90102020-03-30 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
9011
9012 * ppc-linux-nat.c: Include <algorithm>, <unordered_map>, and
9013 <list>. Remove inclusion of observable.h.
9014 (PPC_DEBUG_CURRENT_VERSION): Move up define.
9015 (struct arch_lwp_info): New struct.
9016 (class ppc_linux_dreg_interface): New class.
9017 (struct ppc_linux_process_info): New struct.
9018 (struct ppc_linux_nat_target) <low_delete_thread, low_new_fork>
9019 <low_new_clone, low_forget_process, low_prepare_to_resume>
9020 <copy_thread_dreg_state, mark_thread_stale>
9021 <mark_debug_registers_changed, register_hw_breakpoint>
9022 <clear_hw_breakpoint, register_wp, clear_wp>
9023 <can_use_watchpoint_cond_accel, calculate_dvc, check_condition>
9024 <num_memory_accesses, get_trigger_type>
9025 <create_watchpoint_request, hwdebug_point_cmp>
9026 <init_arch_lwp_info, get_arch_lwp_info>
9027 <low_stopped_by_watchpoint, low_stopped_data_address>: Declare as
9028 methods.
9029 <struct ptid_hash>: New inner struct.
9030 <m_dreg_interface, m_process_info, m_installed_hw_bps>: Declare
9031 members.
9032 (saved_dabr_value, hwdebug_info, max_slots_number)
9033 (struct hw_break_tuple, struct thread_points, ppc_threads)
9034 (have_ptrace_hwdebug_interface)
9035 (hwdebug_find_thread_points_by_tid)
9036 (hwdebug_insert_point, hwdebug_remove_point): Remove.
9037 (ppc_linux_nat_target::can_use_hw_breakpoint): Use
9038 m_dreg_interface, remove call to PTRACE_SET_DEBUGREG.
9039 (ppc_linux_nat_target::region_ok_for_hw_watchpoint): Add comment,
9040 use m_dreg_interface.
9041 (hwdebug_point_cmp): Change to...
9042 (ppc_linux_nat_target::hwdebug_point_cmp): ...this method. Use
9043 reference arguments instead of pointers.
9044 (ppc_linux_nat_target::ranged_break_num_registers): Use
9045 m_dreg_interface.
9046 (ppc_linux_nat_target::insert_hw_breakpoint): Add comment, use
9047 m_dreg_interface. Call register_hw_breakpoint.
9048 (ppc_linux_nat_target::remove_hw_breakpoint): Add comment, use
9049 m_dreg_interface. Call clear_hw_breakpoint.
9050 (get_trigger_type): Change to...
9051 (ppc_linux_nat_target::get_trigger_type): ...this method. Add
9052 comment.
9053 (ppc_linux_nat_target::insert_mask_watchpoint): Update comment,
9054 use m_dreg_interface. Call register_hw_breakpoint.
9055 (ppc_linux_nat_target::remove_mask_watchpoint): Update comment,
9056 use m_dreg_interface. Call clear_hw_breakpoint.
9057 (can_use_watchpoint_cond_accel): Change to...
9058 (ppc_linux_nat_target::can_use_watchpoint_cond_accel): ...this
9059 method. Update comment, use m_dreg_interface and
9060 m_process_info.
9061 (calculate_dvc): Change to...
9062 (ppc_linux_nat_target::calculate_dvc): ...this method. Use
9063 m_dreg_interface.
9064 (num_memory_accesses): Change to...
9065 (ppc_linux_nat_target::num_memory_accesses): ...this method.
9066 (check_condition): Change to...
9067 (ppc_linux_nat_target::check_condition): ...this method.
9068 (ppc_linux_nat_target::can_accel_watchpoint_condition): Update
9069 comment, use m_dreg_interface.
9070 (create_watchpoint_request): Change to...
9071 (ppc_linux_nat_target::create_watchpoint_request): ...this
9072 method. Use m_dreg_interface.
9073 (ppc_linux_nat_target::insert_watchpoint): Add comment, use
9074 m_dreg_interface. Call register_hw_breakpoint or register_wp.
9075 (ppc_linux_nat_target::remove_watchpoint): Add comment, use
9076 m_dreg_interface. Call clear_hw_breakpoint or clear_wp.
9077 (ppc_linux_nat_target::low_forget_process)
9078 (ppc_linux_nat_target::low_new_fork)
9079 (ppc_linux_nat_target::low_new_clone)
9080 (ppc_linux_nat_target::low_delete_thread)
9081 (ppc_linux_nat_target::low_prepare_to_resume): New methods.
9082 (ppc_linux_nat_target::low_new_thread): Remove previous logic,
9083 only call mark_thread_stale.
9084 (ppc_linux_thread_exit): Remove.
9085 (ppc_linux_nat_target::stopped_data_address): Change to...
9086 (ppc_linux_nat_target::low_stopped_data_address): This. Add
9087 comment, use m_dreg_interface and m_thread_hw_breakpoints.
9088 (ppc_linux_nat_target::stopped_by_watchpoint): Change to...
9089 (ppc_linux_nat_target::stopped_by_watchpoint): This. Add
9090 comment. Call low_stopped_data_address.
9091 (ppc_linux_nat_target::watchpoint_addr_within_range): Use
9092 m_dreg_interface.
9093 (ppc_linux_nat_target::masked_watch_num_registers): Use
9094 m_dreg_interface.
9095 (ppc_linux_nat_target::copy_thread_dreg_state)
9096 (ppc_linux_nat_target::mark_thread_stale)
9097 (ppc_linux_nat_target::mark_debug_registers_changed)
9098 (ppc_linux_nat_target::register_hw_breakpoint)
9099 (ppc_linux_nat_target::clear_hw_breakpoint)
9100 (ppc_linux_nat_target::register_wp)
9101 (ppc_linux_nat_target::clear_wp)
9102 (ppc_linux_nat_target::init_arch_lwp_info)
9103 (ppc_linux_nat_target::get_arch_lwp_info): New methods.
9104 (_initialize_ppc_linux_nat): Remove observer callback.
9105
4db10d8f
PFC
91062020-03-30 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
9107
9108 * ppc-linux-nat.c (ppc_linux_nat_target::store_registers)
9109 (ppc_linux_nat_target::auxv_parse)
9110 (ppc_linux_nat_target::read_description)
9111 (supply_gregset, fill_gregset, supply_fpregset, fill_fpregset):
9112 Move up.
9113
1310c1b0
PFC
91142020-03-30 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
9115
9116 * linux-nat.h (low_new_clone): New method.
9117 * linux-nat.c (linux_handle_extended_wait): Call low_new_clone.
9118
69b037c3
SM
91192020-03-29 Simon Marchi <simon.marchi@polymtl.ca>
9120
9121 * dbxread.c (dbx_psymtab_to_symtab_1): Rename to...
9122 (dbx_expand_psymtab): ... this.
9123 (start_psymtab): Update.
9124 * mdebugread.c (psymtab_to_symtab_1): Rename to...
9125 (mdebug_expand_psymtab): ... this.
9126 (parse_partial_symbols): Update.
9127 (new_psymtab): Update.
9128 * xcoffread.c (xcoff_psymtab_to_symtab_1): Rename to...
9129 (xcoff_expand_psymtab): ... this.
9130 (xcoff_start_psymtab): Update.
9131
48993951
SM
91322020-03-29 Simon Marchi <simon.marchi@polymtl.ca>
9133
9134 * psympriv.h (partial_symtab) <read_dependencies>: Rename to...
9135 <expand_dependencies>: ... this.
9136 * psymtab.c (partial_symtab::read_dependencies): Rename to...
9137 (partial_symtab::expand_dependencies): ... this.
9138 * dwarf2/read.c (dwarf2_include_psymtab) <expand_psymtab>:
9139 Update.
9140 (dwarf2_psymtab::expand_psymtab): Update.
9141 * dbxread.c (dbx_psymtab_to_symtab_1): Update.
9142 * mdebugread.c (psymtab_to_symtab_1): Update.
9143 * xcoffread.c (xcoff_psymtab_to_symtab_1): Update.
9144
3ad83046
SM
91452020-03-29 Simon Marchi <simon.marchi@polymtl.ca>
9146
9147 * psympriv.h (discard_psymtab): Remove.
9148 * dbxread.c (dbx_end_psymtab): Update.
9149 * xcoffread.c (xcoff_end_psymtab): Update.
9150
4d1b9ab6
TT
91512020-03-28 Tom Tromey <tom@tromey.com>
9152
9153 * dwarf2/attribute.h (struct attribute) <form_is_constant>: Update
9154 comment.
9155
f1749218
TT
91562020-03-28 Tom Tromey <tom@tromey.com>
9157
9158 * dwarf2/read.c (read_attribute_reprocess): Fix formatting.
9159
ebea7626
HD
91602020-03-27 Hannes Domani <ssbssa@yahoo.de>
9161
9162 * windows-nat.c (windows_add_all_dlls): Fix system dll paths.
9163
a879b4d5
JB
91642020-03-26 John Baldwin <jhb@FreeBSD.org>
9165
9166 * fbsd-tdep.c (fbsd_print_auxv_entry): Handle AT_FREEBSD_BSDFLAGS.
9167
0826b30a
TT
91682020-03-26 Tom Tromey <tom@tromey.com>
9169
9170 * dwarf2/read.c (handle_data_member_location, dwarf2_add_field)
9171 (mark_common_block_symbol_computed, read_tag_string_type)
9172 (attr_to_dynamic_prop, read_subrange_type): Update.
9173 (dwarf2_get_ref_die_offset, dwarf2_get_attr_constant_value): Move
9174 to be methods on struct attribute.
9175 (skip_one_die, process_imported_unit_die, read_namespace_alias)
9176 (read_call_site_scope, partial_die_info::read)
9177 (partial_die_info::read, lookup_die_type, follow_die_ref):
9178 Update.
9179 * dwarf2/attribute.c (attribute::get_ref_die_offset): New method,
9180 from dwarf2_get_ref_die_offset.
9181 (attribute::constant_value): New method, from
9182 dwarf2_get_attr_constant_value.
9183 * dwarf2/attribute.h (struct attribute) <get_ref_die_offset>:
9184 Declare method.
9185 <constant_value>: New method.
9186
2b2558bf
TT
91872020-03-26 Tom Tromey <tom@tromey.com>
9188
9189 * dwarf2/read.c (dwarf_unit_type_name, dwarf_tag_name)
9190 (dwarf_attr_name, dwarf_form_name, dwarf_bool_name)
9191 (dwarf_type_encoding_name): Move to stringify.c.
9192 * Makefile.in (COMMON_SFILES): Add dwarf2/stringify.c.
9193 * dwarf2/stringify.c: New file.
9194 * dwarf2/stringify.h: New file.
9195
eeb64781
TT
91962020-03-26 Tom Tromey <tom@tromey.com>
9197
9198 * dwarf2/die.h (struct die_info) <addr_base, ranges_base>:
9199 Rewrite.
9200
a39fdb41
TT
92012020-03-26 Tom Tromey <tom@tromey.com>
9202
9203 * dwarf2/die.h (struct die_info) <addr_base, ranges_base>: New
9204 methods.
9205 * dwarf2/read.c (lookup_addr_base): Move to die.h.
9206 (lookup_ranges_base): Likewise.
9207 (read_cutu_die_from_dwo, read_full_die_1): Update.
9208
436c571c
TT
92092020-03-26 Tom Tromey <tom@tromey.com>
9210
9211 * dwarf2/read.c (read_import_statement, read_file_scope)
9212 (read_type_unit_scope, inherit_abstract_dies, read_func_scope)
9213 (read_lexical_block_scope, read_call_site_scope)
9214 (dwarf2_get_subprogram_pc_bounds, get_scope_pc_bounds)
9215 (handle_struct_member_die, process_structure_scope)
9216 (update_enumeration_type_from_children)
9217 (process_enumeration_scope, read_array_type, read_common_block)
9218 (read_namespace, read_module, read_subroutine_type): Update.
9219 (sibling_die): Remove.
9220
052c8bb8
TT
92212020-03-26 Tom Tromey <tom@tromey.com>
9222
9223 * dwarf2/read.c (lookup_addr_base, lookup_ranges_base)
9224 (build_type_psymtabs_reader, read_structure_type)
9225 (read_enumeration_type, read_full_die_1): Update.
9226 (dwarf2_attr_no_follow): Move to die.h.
9227 * dwarf2/die.h (struct die_info) <attr>: New method.
9228
2b24b6e4
TT
92292020-03-26 Tom Tromey <tom@tromey.com>
9230
9231 * dwarf2/read.c (struct dwarf2_cu) <base_known>: Remove.
9232 <base_address>: Now an optional.
9233 (dwarf2_find_base_address, dwarf2_rnglists_process)
9234 (dwarf2_ranges_process, fill_in_loclist_baton)
9235 (dwarf2_symbol_mark_computed): Update.
9236
c2d50fd0
TT
92372020-03-26 Tom Tromey <tom@tromey.com>
9238
9239 * dwarf2/read.c (struct die_info): Move to die.h.
9240 * dwarf2/die.h: New file.
9241
0df7ad3a
TT
92422020-03-26 Tom Tromey <tom@tromey.com>
9243
9244 * dwarf2/line-header.h (dwarf_decode_line_header): Declare.
9245 * dwarf2/read.c
9246 (dwarf2_statement_list_fits_in_line_number_section_complaint):
9247 Move to line-header.c.
9248 (read_checked_initial_length_and_offset, read_formatted_entries):
9249 Likewise.
9250 (dwarf_decode_line_header): Split into two.
9251 * dwarf2/line-header.c
9252 (dwarf2_statement_list_fits_in_line_number_section_complaint):
9253 Move from read.c.
9254 (read_checked_initial_length_and_offset, read_formatted_entries):
9255 Likewise.
9256 (dwarf_decode_line_header): New function, split from read.c.
9257
86c0bb4c
TT
92582020-03-26 Tom Tromey <tom@tromey.com>
9259
9260 * dwarf2/read.h (struct dwarf2_per_objfile) <read_line_string>:
9261 Declare method.
9262 * dwarf2/read.c (read_attribute_value): Update.
9263 (dwarf2_per_objfile::read_line_string): Rename from
9264 read_indirect_line_string.
9265 (read_formatted_entries): Update.
9266
2ef46c2f
TT
92672020-03-26 Tom Tromey <tom@tromey.com>
9268
9269 * dwarf2/macro.c (dwarf_decode_macro_bytes): Use objfile local
9270 variable.
9271
4f9c1eda
TT
92722020-03-26 Tom Tromey <tom@tromey.com>
9273
9274 * dwarf2/macro.h (dwarf_decode_macros): Make section parameter
9275 const.
9276 * dwarf2/macro.c (skip_form_bytes, skip_unknown_opcode)
9277 (dwarf_decode_macro_bytes, dwarf_decode_macros): Make section
9278 parameter const.
9279
5a0e026f
TT
92802020-03-26 Tom Tromey <tom@tromey.com>
9281
9282 * dwarf2/read.c (dwarf_decode_macros): Make "lh" const.
9283 * dwarf2/macro.h (dwarf_decode_macros): Constify "lh" parameter.
9284 * dwarf2/macro.c (macro_start_file): Constify "lh" parameter.
9285 (dwarf_decode_macro_bytes, dwarf_decode_macros): Likewise.
9286
8844c11b
TT
92872020-03-26 Tom Tromey <tom@tromey.com>
9288
9289 * dwarf2/line-header.h (struct line_header) <is_valid_file_index,
9290 file_names_size, file_full_name, file_file_name>: Use const.
9291 <file_name_at, file_names>: Add const overload.
9292 * dwarf2/line-header.c (line_header::file_file_name)
9293 (line_header::file_full_name): Update.
9294
c90ec28a
TT
92952020-03-26 Tom Tromey <tom@tromey.com>
9296
9297 * dwarf2/read.c (dwarf2_macro_malformed_definition_complaint)
9298 (macro_start_file, consume_improper_spaces)
9299 (parse_macro_definition, skip_form_bytes, skip_unknown_opcode)
9300 (dwarf_parse_macro_header, dwarf_decode_macro_bytes)
9301 (dwarf_decode_macros): Move to macro.c.
9302 * dwarf2/macro.c: New file.
9303 * dwarf2/macro.h: New file.
9304 * Makefile.in (COMMON_SFILES): Add dwarf2/macro.c.
9305
4f44ae6c
TT
93062020-03-26 Tom Tromey <tom@tromey.com>
9307
9308 * dwarf2/section.h (struct dwarf2_section_info) <read_string>: New
9309 method.
9310 * dwarf2/section.c: New method. From
9311 read_indirect_string_at_offset_from.
9312 * dwarf2/read.c (mapped_debug_names::namei_to_name): Update.
9313 (read_indirect_string_at_offset_from): Move to section.c.
9314 (read_indirect_string_at_offset): Rewrite.
9315 (read_indirect_line_string_at_offset): Remove.
9316 (read_indirect_string, read_indirect_line_string)
9317 (dwarf_decode_macro_bytes): Update.
9318
a0194fa8
TT
93192020-03-26 Tom Tromey <tom@tromey.com>
9320
9321 * dwarf2/section.h (struct dwarf2_section_info)
9322 <overload_complaint>: Declare.
9323 (dwarf2_section_buffer_overflow_complaint): Don't declare.
9324 * dwarf2/section.c (dwarf2_section_info::overflow_complaint):
9325 Rename from dwarf2_section_buffer_overflow_complaint.
9326 * dwarf2/read.c (skip_one_die, partial_die_info::read)
9327 (skip_form_bytes, dwarf_decode_macro_bytes): Update.
9328
3d27bbdb
TT
93292020-03-26 Tom Tromey <tom@tromey.com>
9330
9331 * dwarf2/section.h (dwarf2_section_buffer_overflow_complaint):
9332 Declare.
9333 * dwarf2/section.c (dwarf2_section_buffer_overflow_complaint):
9334 Move from read.c.
9335 * dwarf2/read.c (dwarf2_section_buffer_overflow_complaint): Move
9336 to section.c.
9337
9eac9650
TT
93382020-03-26 Tom Tromey <tom@tromey.com>
9339
9340 * dwarf2/read.c (dwarf_decode_macros): Split into two overloads.
9341
bf80d710
TT
93422020-03-26 Tom Tromey <tom@tromey.com>
9343
9344 * dwarf2/read.c (macro_start_file): Change "cu" parameter to
9345 "builder".
9346 (dwarf_decode_macro_bytes): Likewise. Add dwarf2_per_objfile
9347 parameter.
9348 (dwarf_decode_macros): Update.
9349
0314b390
TT
93502020-03-26 Tom Tromey <tom@tromey.com>
9351
9352 * dwarf2/read.c (read_attribute_value): Update.
9353 (read_indirect_string_from_dwz): Move to dwz.c; change into
9354 method.
9355 (dwarf_decode_macro_bytes): Update.
9356 * dwarf2/dwz.h (struct dwz_file) <read_string>: Declare method.
9357 * dwarf2/dwz.c: New file.
9358 * Makefile.in (COMMON_SFILES): Add dwz.c.
9359
9fda78b6
TT
93602020-03-26 Tom Tromey <tom@tromey.com>
9361
9362 * dwarf2/read.h (struct dwz_file): Move to dwz.h.
9363 * dwarf2/read.c: Add include.
9364 * dwarf2/index-write.c: Add include.
9365 * dwarf2/index-cache.c: Add include.
9366 * dwarf2/dwz.h: New file.
9367
33aa3c10
TT
93682020-03-25 Tom Tromey <tom@tromey.com>
9369
9370 * compile/compile-object-load.c (get_out_value_type): Mention
9371 correct symbol name in error message.
9372
d503b685
HD
93732020-03-25 Hannes Domani <ssbssa@yahoo.de>
9374
9375 * windows-nat.c (windows_add_all_dlls): Fix system dll paths.
9376
7b1eff95
TV
93772020-03-25 Tom de Vries <tdevries@suse.de>
9378
9379 * symtab.h (is_main_symtab_of_compunit_symtab): New function.
9380 * symmisc.c (dump_symtab_1): Print user and includes fields.
9381 (maintenance_info_symtabs): Same.
9382
dd895392
AB
93832020-03-25 Andrew Burgess <andrew.burgess@embecosm.com>
9384
9385 PR gdb/25534
9386 * riscv-tdep.c (riscv_arg_info::c_offset): Update comment.
9387 (riscv_regcache_cooked_write): New function.
9388 (riscv_push_dummy_call): Use new function.
9389 (riscv_return_value): Likewise.
9390
5ab2fbf1
SM
93912020-03-24 Simon Marchi <simon.marchi@polymtl.ca>
9392
9393 * fbsd-nat.c (fbsd_nat_target::follow_fork): Change bool to int.
9394 * fbsd-nat.h (class fbsd_nat_target) <follow_fork>: Likewise.
9395 * inf-ptrace.c (inf_ptrace_target::follow_fork): Likewise.
9396 * inf-ptrace.h (struct inf_ptrace_target) <follow_fork>: Likewise.
9397 * infrun.c (follow_fork): Likewise.
9398 (follow_fork_inferior): Likewise.
9399 * linux-nat.c (linux_nat_target::follow_fork): Likewise.
9400 * linux-nat.h (class linux_nat_target): Likewise.
9401 * remote.c (class remote_target) <follow_fork>: Likewise.
9402 (remote_target::follow_fork): Likewise.
9403 * target-delegates.c: Re-generate.
9404 * target.c (default_follow_fork): Likewise.
9405 (target_follow_fork): Likewise.
9406 * target.h (struct target_ops) <follow_fork>: Likewise.
9407 (target_follow_fork): Likewise.
9408
a64fafb5
TV
94092020-03-24 Tom de Vries <tdevries@suse.de>
9410
9411 * psymtab.c (maintenance_info_psymtabs): Print user field.
9412
fe26d3a3
TT
94132020-03-20 Tom Tromey <tromey@adacore.com>
9414
9415 * dwarf2/loc.h (dwarf2_evaluate_property): Make "addr_stack"
9416 const.
9417 * dwarf2/loc.c (dwarf2_evaluate_property): Make "addr_stack"
9418 const.
9419
c884cc46
SM
94202020-03-20 Simon Marchi <simon.marchi@efficios.com>
9421
9422 * ptrace.m4: Don't check for ptrace declaration.
9423 * config.in: Re-generate.
9424 * configure: Re-generate.
9425 * nat/gdb_ptrace.h: Don't declare ptrace if HAVE_DECL_PTRACE is
9426 not defined.
9427
1ff700c2
KR
94282020-03-20 Kamil Rytarowski <n54@gmx.com>
9429
9430 * amd64-bsd-nat.c (gdb_ptrace): Change return type from `int' to
9431 `PTRACE_TYPE_RET'.
9432 * i386-bsd-nat.c (gdb_ptrace): Likewise.
9433 * sparc-nat.c (gdb_ptrace): Likewise.
9434 * x86-bsd-nat.c (gdb_ptrace): Likewise.
9435
f7d4f0b1
TT
94362020-03-20 Tom Tromey <tromey@adacore.com>
9437
9438 * c-exp.y (lex_one_token): Fix assert.
9439
f67210ff
TT
94402020-03-20 Tom Tromey <tromey@adacore.com>
9441
9442 * ada-tasks.c (read_atcb): Use smaller length in strncpy call.
9443 * linux-tdep.c (linux_fill_prpsinfo): Use smaller length in
9444 strncpy call.
9445
1773be9e
TT
94462020-03-20 Tom Tromey <tromey@adacore.com>
9447
9448 * symmisc.c (maintenance_print_one_line_table): Use ui_out.
9449
70304be9
TT
94502020-03-20 Tom Tromey <tromey@adacore.com>
9451
9452 * ada-valprint.c (print_variant_part): Remove parameters; switch
9453 to value-based API.
9454 (print_field_values): Likewise.
9455 (ada_val_print_struct_union): Likewise.
9456 (ada_value_print_1): Update.
9457
9faa006d
KR
94582020-03-20 Kamil Rytarowski <n54@gmx.com>
9459
9460 * ppc-nbsd-nat.c (ppc_nbsd_nat_target): Inherit from
9461 nbsd_nat_target instead of inf_ptrace_target.
9462 * ppc-nbsd-nat.c: Include "nbsd-nat.h", as we are now using
9463 nbsd_nat_target.
9464
4a90f062
KR
94652020-03-20 Kamil Rytarowski <n54@gmx.com>
9466
9467 * hppa-nbsd-nat.c (fetch_registers): New variable lwp and pass
9468 it to the ptrace call.
9469 * (store_registers): Likewise.
9470
94712020-03-20 Kamil Rytarowski <n54@gmx.com>
c7da12c7
KR
9472
9473 * ppc-nbsd-nat.c (fetch_registers): New variable lwp and pass
9474 it to the ptrace call.
9475 * (store_registers): Likewise.
9476
2d07da27
LM
94772020-03-19 Luis Machado <luis.machado@linaro.org>
9478
9479 * nat/aarch64-sve-linux-ptrace.c (aarch64_sve_set_vq): If vg is not
9480 valid, fetch vg value from ptrace.
9481
f09db380
KR
94822020-03-19 Kamil Rytarowski <n54@gmx.com>
9483 * inf-ptrace.h: Disable get_ptrace_pid on NetBSD.
9484 * inf-ptrace.c: Likewise.
9485 * (gdb_ptrace): Add.
9486 * (inf_ptrace_target::resume): Update.
9487 * (inf_ptrace_target::xfer_partial): Likewise.
9488 * (inf_ptrace_peek_poke): Change argument `pid' to `ptid'.
9489 * (inf_ptrace_peek_poke): Update.
9490
fcc7376e
KR
94912020-03-19 Kamil Rytarowski <n54@gmx.com>
9492
9493 * x86-bsd-nat.c (gdb_ptrace): New.
9494 * (x86bsd_dr_set): Add new argument `ptid'.
9495 * (x86bsd_dr_get, x86bsd_dr_set, x86bsd_dr_set_control,
9496 x86bsd_dr_set_addr): Update.
9497
cada5fc9
AB
94982020-03-19 Andrew Burgess <andrew.burgess@embecosm.com>
9499
9500 * remote.c (remote_target::process_stop_reply): Handle events for
9501 all threads differently.
9502
19a2740f
AB
95032020-03-19 Andrew Burgess <andrew.burgess@embecosm.com>
9504
9505 * completer.c (completion_tracker::remove_completion): Define new
9506 function.
9507 * completer.h (completion_tracker::remove_completion): Declare new
9508 function.
9509 * symtab.c (completion_list_add_symbol): Remove aliasing msymbols
9510 when adding a C++ function symbol.
9511
724fd9ba
AB
95122020-03-19 Andrew Burgess <andrew.burgess@embecosm.com>
9513
9514 * completer.c (completion_tracker::completion_hash_entry): Define
9515 new class.
9516 (advance_to_filename_complete_word_point): Call
9517 recompute_lowest_common_denominator.
9518 (completion_tracker::completion_tracker): Call discard_completions
9519 to setup the hash table.
9520 (completion_tracker::discard_completions): Allow for being called
9521 from the constructor, pass new equal function, and element deleter
9522 when constructing the hash table. Initialise new class member
9523 variables.
9524 (completion_tracker::maybe_add_completion): Remove use of
9525 m_entries_vec, and store more information into m_entries_hash.
9526 (completion_tracker::recompute_lcd_visitor): New function, most
9527 content taken from...
9528 (completion_tracker::recompute_lowest_common_denominator):
9529 ...here, this now just visits each item in the hash calling the
9530 above visitor.
9531 (completion_tracker::build_completion_result): Remove use of
9532 m_entries_vec, call recompute_lowest_common_denominator.
9533 * completer.h (completion_tracker::have_completions): Remove use
9534 of m_entries_vec.
9535 (completion_tracker::completion_hash_entry): Declare new class.
9536 (completion_tracker::recompute_lowest_common_denominator): Change
9537 function signature.
9538 (completion_tracker::recompute_lcd_visitor): Declare new function.
9539 (completion_tracker::m_entries_vec): Delete.
9540 (completion_tracker::m_entries_hash): Initialize to NULL.
9541 (completion_tracker::m_lowest_common_denominator_valid): New
9542 member variable.
9543 (completion_tracker::m_lowest_common_denominator_max_length): New
9544 member variable.
9545
5a82b8a1
KR
95462020-03-17 Kamil Rytarowski <n54@gmx.com>
9547
9548 * regformats/regdef.h: Put reg in gdb namespace.
9549
fb516a69
KR
95502020-03-17 Kamil Rytarowski <n54@gmx.com>
9551
9552 * i386-bsd-nat.c (gdb_ptrace): New.
9553 * (i386bsd_fetch_inferior_registers,
9554 i386bsd_store_inferior_registers) Switch from pid_t to ptid_t.
9555 * (i386bsd_fetch_inferior_registers,
9556 i386bsd_store_inferior_registers) Use gdb_ptrace.
9557
1c0aa1fb
KR
95582020-03-17 Kamil Rytarowski <n54@gmx.com>
9559
9560 * amd64-bsd-nat.c (gdb_ptrace): New.
9561 * (amd64bsd_fetch_inferior_registers,
9562 amd64bsd_store_inferior_registers) Switch from pid_t to ptid_t.
9563 * (amd64bsd_fetch_inferior_registers,
9564 amd64bsd_store_inferior_registers) Use gdb_ptrace.
9565
5ccd2fb7
KR
95662020-03-17 Kamil Rytarowski <n54@gmx.com>
9567
9568 * user-regs.c (user_reg::read): Rename to...
9569 (user_reg::xread): ...this.
9570 * (append_user_reg): Rename argument `read' to `xread'.
9571 * (user_reg_add_builtin): Likewise.
9572 * (user_reg_add): Likewise.
9573 * (value_of_user_reg): Likewise.
9574
2108a63a
KR
95752020-03-17 Kamil Rytarowski <n54@gmx.com>
9576
9577 * sparc-nat.c (gdb_ptrace): New.
9578 * sparc-nat.c (sparc_fetch_inferior_registers)
9579 (sparc_store_inferior_registers) Remove obsolete comment.
9580 * sparc-nat.c (sparc_fetch_inferior_registers)
9581 (sparc_store_inferior_registers) Switch from pid_t to ptid_t.
9582 * sparc-nat.c (sparc_fetch_inferior_registers)
9583 (sparc_store_inferior_registers) Use gdb_ptrace.
9584
a225c9a8
KR
95852020-03-17 Kamil Rytarowski <n54@gmx.com>
9586
9587 * sh-nbsd-nat.c (fetch_registers): New variable lwp and pass
9588 it to the ptrace call.
9589 * sh-nbsd-nat.c (store_registers): Likewise.
9590
98097623
KR
95912020-03-17 Kamil Rytarowski <n54@gmx.com>
9592
9593 * sh-nbsd-nat.c (sh_nbsd_nat_target): Inherit from
9594 nbsd_nat_target instead of inf_ptrace_target.
9595 * sh-nbsd-nat.c: Include "nbsd-nat.h", as we are now using
9596 nbsd_nat_target.
9597
9e38d619
KR
95982020-03-17 Kamil Rytarowski <n54@gmx.com>
9599
9600 * amd64-bsd-nat.c: Include amd64-bsd-nat.h".
9601
a2ecbe9f
KR
96022020-03-17 Kamil Rytarowski <n54@gmx.com>
9603
9604 * nbsd-nat.c: Include <sys/types.h>, <sys/ptrace.h> and
9605 <sys/sysctl.h>.
9606 * nbsd-nat.c (nbsd_nat_target::pid_to_exec_file): Rewrite.
9607
58990295
TV
96082020-03-17 Tom de Vries <tdevries@suse.de>
9609
9610 PR gdb/23710
9611 * dwarf2/read.h (struct dwarf2_per_cu_data): Add unit_type and lang
9612 fields.
9613 * dwarf2/read.c (process_psymtab_comp_unit): Initialize unit_type and lang
9614 fields.
9615 (process_imported_unit_die): Skip import of c++ CUs.
9616
771dd3a8
TT
96172020-03-16 Tom Tromey <tom@tromey.com>
9618
9619 * p-valprint.c (pascal_object_print_value): Initialize
9620 base_value.
9621
817a7585
AK
96222020-03-16 Anton Kolesov <anton.kolesov@synopsys.com>
9623 Shahab Vahedi <shahab@synopsys.com>
9624
9625 * Makefile.in: Add arch/arc.o
9626 * configure.tgt: Likewise.
9627 * arc-tdep.c (arc_tdesc_init): Use arc_read_description.
9628 (_initialize_arc_tdep): Don't initialize old target descriptions.
aac66a4c 9629 (arc_read_description): New function to cache target descriptions.
817a7585
AK
9630 * arc-tdep.h (arc_read_description): Add proto type.
9631 * arch/arc.c: New file.
9632 * arch/arc.h: Likewise.
9633 * features/Makefile: Replace old target descriptions with new.
9634 * features/arc-arcompact.c: Remove.
9635 * features/arc-arcompact.xml: Likewise.
9636 * features/arc-v2.c: Likewise
9637 * features/arc-v2.xml: Likewise
9638 * features/arc/aux-arcompact.xml: New file.
9639 * features/arc/aux-v2.xml: Likewise.
9640 * features/arc/core-arcompact.xml: Likewise.
9641 * features/arc/core-v2.xml: Likewise.
9642 * features/arc/aux-arcompact.c: Generate.
9643 * features/arc/aux-v2.c: Likewise.
9644 * features/arc/core-arcompact.c: Likewise.
9645 * features/arc/core-v2.c: Likewise.
9646 * target-descriptions (maint_print_c_tdesc_cmd): Support ARC features.
9647
67430cd0
TT
96482020-03-16 Tom Tromey <tromey@adacore.com>
9649
9650 PR gdb/25663:
9651 * dwarf2/read.c (dwarf2_name): Strip leading namespaces after
9652 putting value into bcache.
9653
30efb6c7
SM
96542020-03-16 Simon Marchi <simon.marchi@efficios.com>
9655
9656 PR gdb/21500
9657 * amd64-windows-tdep.c (amd64_windows_init_abi): Rename
9658 to...
9659 (amd64_windows_init_abi_common): ... this. Don't set size of
9660 long type.
9661 (amd64_windows_init_abi): New function.
9662 (amd64_cygwin_init_abi): New function.
9663 (_initialize_amd64_windows_tdep): Use amd64_cygwin_init_abi for
9664 the Cygwin OS ABI.
9665 * i386-windows-tdep.c (_initialize_i386_windows_tdep): Clarify
9666 comment.
9667
8db52437
SM
96682020-03-16 Simon Marchi <simon.marchi@efficios.com>
9669
9670 * windows-tdep.h (is_linked_with_cygwin_dll): New declaration.
9671 * windows-tdep.c (CYGWIN_DLL_NAME): New.
9672 (pe_import_directory_entry): New struct type.
9673 (is_linked_with_cygwin_dll): New function.
9674 * amd64-windows-tdep.c (amd64_windows_osabi_sniffer): Select
9675 GDB_OSABI_CYGWIN if the BFD is linked with the Cygwin DLL.
9676 * i386-windows-tdep.c (i386_windows_osabi_sniffer): Likewise.
9677
5982a56a
SM
96782020-03-16 Simon Marchi <simon.marchi@efficios.com>
9679
9680 * i386-windows-tdep.c: Mass-rename "cygwin" to "windows", except
9681 i386_cygwin_core_osabi_sniffer.
9682
7a1998df
SM
96832020-03-16 Simon Marchi <simon.marchi@efficios.com>
9684
9685 * i386-cygwin-tdep.c: Rename to...
9686 * i386-windows-tdep.c: ... this.
9687 * Makefile.in (ALL_TARGET_OBS): Rename i386-cygwin-tdep.c to
9688 i386-windows-tdep.c.
9689 * configure.tgt: Likewise.
9690
053205cc
SM
96912020-03-16 Simon Marchi <simon.marchi@efficios.com>
9692
9693 * osabi.h (enum gdb_osabi): Add GDB_OSABI_WINDOWS.
9694 * osabi.c (gdb_osabi_names): Add "Windows".
9695 * i386-cygwin-tdep.c (i386_cygwin_osabi_sniffer): Return
9696 GDB_OSABI_WINDOWS when the binary's target is "pei-i386".
9697 (i386_cygwin_core_osabi_sniffer): New function, extracted from
9698 i386_cygwin_osabi_sniffer.
9699 (_initialize_i386_cygwin_tdep): Register OS ABI
9700 GDB_OSABI_WINDOWS for i386.
9701 * amd64-windows-tdep.c (amd64_windows_osabi_sniffer): Return
9702 GDB_OSABI_WINDOWS when the binary's target is "pei-x86-64".
9703 (_initialize_amd64_windows_tdep): Register OS ABI GDB_OSABI_WINDOWS
9704 for x86-64.
9705 * configure.tgt: Use GDB_OSABI_WINDOWS as the default OS ABI
9706 when the target matches '*-*-mingw*'.
9707
fe4b2ee6
SM
97082020-03-16 Simon Marchi <simon.marchi@efficios.com>
9709
9710 * defs.h (enum gdb_osabi): Move to...
9711 * osabi.h (enum gdb_osabi): ... here.
9712 * gdbarch.sh: Include osabi.h in gdbarch.h.
9713 * gdbarch.h: Re-generate.
9714
cb9b645d
SM
97152020-03-16 Simon Marchi <simon.marchi@efficios.com>
9716
9717 * amd64-windows-tdep.c (amd64_windows_osabi_sniffer): New
9718 function.
9719 (_initialize_amd64_windows_tdep): Register osabi sniffer.
9720
3293bbaf
TT
97212020-03-14 Tom Tromey <tom@tromey.com>
9722
9723 * c-typeprint.c (cp_type_print_method_args): Print "__restrict__"
9724 for C++.
9725 (c_type_print_modifier): Likewise. Add "language" parameter.
9726 (c_type_print_varspec_prefix, c_type_print_base_struct_union)
9727 (c_type_print_base_1): Update.
9728 * type-stack.h (enum type_pieces) <tp_atomic, tp_restrict>: New
9729 constants.
9730 * type-stack.c (type_stack::insert): Handle tp_atomic and
9731 tp_restrict.
9732 (type_stack::follow_type_instance_flags): Likewise.
9733 (type_stack::follow_types): Likewise. Merge type-following code.
9734 * c-exp.y (RESTRICT, ATOMIC): New tokens.
9735 (space_identifier, cv_with_space_id)
9736 (const_or_volatile_or_space_identifier_noopt)
9737 (const_or_volatile_or_space_identifier): Remove.
9738 (single_qualifier, qualifier_seq_noopt, qualifier_seq): New
9739 rules.
9740 (ptr_operator, typebase): Update.
9741 (enum token_flag) <FLAG_C>: New constant.
9742 (ident_tokens): Add "restrict", "__restrict__", "__restrict", and
9743 "_Atomic".
9744 (lex_one_token): Handle FLAG_C.
9745
154151a6
KR
97462020-03-14 Kamil Rytarowski <n54@gmx.com>
9747
9748 * m68k-bsd-nat.c (fetch_registers): New variable lwp and pass
9749 it to the ptrace call.
9750 * m68k-bsd-nat.c (store_registers): Likewise.
9751
bc107784
KR
97522020-03-14 Kamil Rytarowski <n54@gmx.com>
9753
9754 * m68k-bsd-nat.c (m68kbsd_supply_gregset): Change type of regs to
9755 gdb_byte *.
9756 * m68k-bsd-nat.c (m68kbsd_supply_fpregset): Likewise.
9757 * m68k-bsd-nat.c (m68kbsd_collect_gregset): Likewise.
9758 * m68k-bsd-nat.c (m68kbsd_supply_pcb): Cast &tmp to gdb_byte *.
9759
01a80117
KR
97602020-03-14 Kamil Rytarowski <n54@gmx.com>
9761
9762 * m68k-bsd-nat.c (m68k_bsd_nat_target): Inherit from
9763 nbsd_nat_target instead of inf_ptrace_target.
9764 * m68k-bsd-nat.c: Include "nbsd-nat.h", as we are now using
9765 nbsd_nat_target.
9766
f90280ca
KR
97672020-03-14 Kamil Rytarowski <n54@gmx.com>
9768
9769 * m68k-bsd-nat.c: Define _KERNTYPES to get the declaration of
9770 register_t.
9771
6def66f1
KR
97722020-03-14 Kamil Rytarowski <n54@gmx.com>
9773
9774 * alpha-bsd-nat.c (fetch_registers): New variable lwp and pass
9775 it to the ptrace call.
9776 * alpha-bsd-nat.c (store_registers): Likewise.
9777
66eaca97
KR
97782020-03-14 Kamil Rytarowski <n54@gmx.com>
9779
9780 * alpha-bsd-nat.c: Remove <sys/procfs.h> and "gregset.h" from
9781 includes.
9782 * alpha-bsd-nat.c (gregset_t, fpregset_t): Remove.
9783 * alpha-bsd-nat.c (supply_gregset, fill_gregset, supply_fpregset,
9784 fill_fpregset): Likewise.
9785
4fed520b
KR
97862020-03-14 Kamil Rytarowski <n54@gmx.com>
9787
9788 * alpha-bsd-nat.c (alpha_netbsd_nat_target): Inherit from
9789 nbsd_nat_target instead of inf_ptrace_target.
9790 * alpha-bsd-nat.c: Include "nbsd-nat.h", as we are now using
9791 nbsd_nat_target.
9792
2190cf06
KR
97932020-03-14 Kamil Rytarowski <n54@gmx.com>
9794
9795 * alpha-bsd-nat.c: Define _KERNTYPES to get the declaration of
9796 register_t.
9797
75c56d3d
KR
97982020-03-14 Kamil Rytarowski <n54@gmx.com>
9799
9800 * arm-nbsd-nat.c (fetch_register): New variable lwp and pass
9801 it to the ptrace call.
9802 * arm-nbsd-nat.c (fetch_fp_register): Likewise.
9803 * arm-nbsd-nat.c (fetch_fp_regs): Likewise.
9804 * arm-nbsd-nat.c (store_register): Likewise.
9805 * arm-nbsd-nat.c (store_regs): Likewise.
9806 * arm-nbsd-nat.c (store_fp_register): Likewise.
9807 * arm-nbsd-nat.c (store_fp_regs): Likewise.
9808
6018d381
KR
98092020-03-14 Kamil Rytarowski <n54@gmx.com>
9810
9811 * arm-nbsd-nat.c (arm_netbsd_nat_target): Inherit from
9812 nbsd_nat_target instead of inf_ptrace_target.
9813 * arm-nbsd-nat.c: Include "nbsd-nat.h", as we are now using
9814 nbsd_nat_target.
9815
013f99f0
KR
98162020-03-14 Kamil Rytarowski <n54@gmx.com>
9817
9818 * x86-bsd-nat.c (x86bsd_dr_get): New variable lwp and pass
9819 it to the ptrace call.
9820 * x86-bsd-nat.c (x86bsd_dr_set): Likewise.
9821
12753073
KR
98222020-03-14 Kamil Rytarowski <n54@gmx.com>
9823
6227b330
KR
9824 * vax-bsd-nat.c (vaxbsd_supply_gregset): New variable lwp and pass
9825 it to the ptrace call.
9826 * vax-bsd-nat.c (vaxbsd_collect_gregset): Likewise.
9827
98282020-03-14 Kamil Rytarowski <n54@gmx.com>
9829
9830 * vax-bsd-nat.c (vaxbsd_supply_gregset): Cast gregs to const
9831 gdb_byte *.
12753073
KR
9832 * vax-bsd-nat.c (vaxbsd_collect_gregset): Cast gregs to void *.
9833
d5be5fa4
KR
98342020-03-14 Kamil Rytarowski <n54@gmx.com>
9835
9836 * vax-bsd-nat.c (vax_bsd_nat_target): Inherit from nbsd_nat_target
9837 instead of inf_ptrace_target.
9838 * vax-bsd-nat.c: Include "nbsd-nat.h", as we are now using
9839 nbsd_nat_target.
9840
8110f842
KR
98412020-03-14 Kamil Rytarowski <n54@gmx.com>
9842
9843 * mips-nbsd-nat.c: Define _KERNTYPES to get the declaration of
9844 register_t.
9845
52feded7
KR
98462020-03-14 Kamil Rytarowski <n54@gmx.com>
9847
9848 * ppc-nbsd-nat.c: Define _KERNTYPES to get the declaration of
9849 register_t.
9850
25567eee
KR
98512020-03-14 Kamil Rytarowski <n54@gmx.com>
9852
9853 * vax-bsd-nat.c: Define _KERNTYPES to get the declaration of
9854 register_t.
9855
426a9c18
TT
98562020-03-13 Tom Tromey <tom@tromey.com>
9857
9858 * value.h (val_print): Don't declare.
9859 * valprint.h (val_print_array_elements)
9860 (val_print_scalar_formatted, generic_val_print): Don't declare.
9861 * valprint.c (generic_val_print_array): Take a struct value.
9862 (generic_val_print_ptr, generic_val_print_memberptr)
9863 (generic_val_print_bool, generic_val_print_int)
9864 (generic_val_print_char, generic_val_print_complex)
9865 (generic_val_print): Remove.
9866 (generic_value_print): Update.
9867 (do_val_print): Remove unused parameters. Don't call
9868 la_val_print.
9869 (val_print): Remove.
9870 (common_val_print): Update. Don't call value_check_printable.
9871 (val_print_scalar_formatted, val_print_array_elements): Remove.
9872 * rust-lang.c (rust_val_print): Remove.
9873 (rust_language_defn): Update.
9874 * p-valprint.c (pascal_val_print): Remove.
9875 (pascal_value_print_inner): Update.
9876 (pascal_object_print_val_fields, pascal_object_print_val):
9877 Remove.
9878 (pascal_object_print_static_field): Update.
9879 * p-lang.h (pascal_val_print): Don't declare.
9880 * p-lang.c (pascal_language_defn): Update.
9881 * opencl-lang.c (opencl_language_defn): Update.
9882 * objc-lang.c (objc_language_defn): Update.
9883 * m2-valprint.c (m2_print_unbounded_array, m2_val_print): Remove.
9884 * m2-lang.h (m2_val_print): Don't declare.
9885 * m2-lang.c (m2_language_defn): Update.
9886 * language.h (struct language_defn) <la_val_print>: Remove.
9887 * language.c (unk_lang_value_print_inner): Rename. Change
9888 argument types.
9889 (unknown_language_defn, auto_language_defn): Update.
9890 * go-valprint.c (go_val_print): Remove.
9891 * go-lang.h (go_val_print): Don't declare.
9892 * go-lang.c (go_language_defn): Update.
9893 * f-valprint.c (f_val_print): Remove.
9894 * f-lang.h (f_value_print): Don't declare.
9895 * f-lang.c (f_language_defn): Update.
9896 * d-valprint.c (d_val_print): Remove.
9897 * d-lang.h (d_value_print): Don't declare.
9898 * d-lang.c (d_language_defn): Update.
9899 * cp-valprint.c (cp_print_value_fields)
9900 (cp_print_value_fields_rtti, cp_print_value): Remove.
9901 (cp_print_static_field): Update.
9902 * c-valprint.c (c_val_print_array, c_val_print_ptr)
9903 (c_val_print_struct, c_val_print_union, c_val_print_int)
9904 (c_val_print_memberptr, c_val_print): Remove.
9905 * c-lang.h (c_val_print_array, cp_print_value_fields)
9906 (cp_print_value_fields_rtti): Don't declare.
9907 * c-lang.c (c_language_defn, cplus_language_defn)
9908 (asm_language_defn, minimal_language_defn): Update.
9909 * ada-valprint.c (ada_val_print_ptr, ada_val_print_num): Remove.
9910 (ada_val_print_enum): Take a struct value.
9911 (ada_val_print_flt, ada_val_print_array, ada_val_print_1)
9912 (ada_val_print): Remove.
9913 (ada_value_print_1): Update.
9914 (printable_val_type): Remove.
9915 * ada-lang.h (ada_val_print): Don't declare.
9916 * ada-lang.c (ada_language_defn): Update.
9917
42331a1e
TT
99182020-03-13 Tom Tromey <tom@tromey.com>
9919
9920 * valprint.c (do_val_print): Update.
9921 * python/python-internal.h (gdbpy_apply_val_pretty_printer): Take
9922 a struct value.
9923 (value_to_value_object_no_release): Declare.
9924 * python/py-value.c (value_to_value_object_no_release): New
9925 function.
9926 * python/py-prettyprint.c (gdbpy_apply_val_pretty_printer): Take a
9927 struct value.
9928 * guile/scm-value.c (vlscm_scm_from_value_no_release): New
9929 function.
9930 * guile/scm-pretty-print.c (gdbscm_apply_val_pretty_printer): Take
9931 a struct value.
9932 * guile/guile-internal.h (vlscm_scm_from_value_no_release):
9933 Declare.
9934 (gdbscm_apply_val_pretty_printer): Take a struct value.
9935 * extension.h (apply_ext_lang_val_pretty_printer): Take a struct
9936 value.
9937 * extension.c (apply_ext_lang_val_pretty_printer): Take a struct
9938 value.
9939 * extension-priv.h (struct extension_language_ops)
9940 <apply_val_pretty_printer>: Take a struct value.
9941 * cp-valprint.c (cp_print_value): Create a struct value.
9942 (cp_print_value): Update.
9943
3a916a97
TT
99442020-03-13 Tom Tromey <tom@tromey.com>
9945
9946 * ada-valprint.c (print_field_values): Call common_val_print.
9947
b59eac37
TT
99482020-03-13 Tom Tromey <tom@tromey.com>
9949
9950 * ada-valprint.c (val_print_packed_array_elements): Remove
9951 bitoffset and val parameters. Call common_val_print.
9952 (ada_val_print_string): Remove offset, address, and original_value
9953 parameters.
9954 (ada_val_print_array): Update.
9955 (ada_value_print_array): New function.
9956 (ada_value_print_1): Call it.
9957
03371129
TT
99582020-03-13 Tom Tromey <tom@tromey.com>
9959
9960 * ada-valprint.c (ada_value_print): Use common_val_print.
9961
2e088f8b
TT
99622020-03-13 Tom Tromey <tom@tromey.com>
9963
9964 * ada-valprint.c (ada_val_print_ref): Use common_val_print.
9965
39ef85a8
TT
99662020-03-13 Tom Tromey <tom@tromey.com>
9967
9968 * ada-valprint.c (ada_value_print_num): New function.
9969 (ada_value_print_1): Use it.
9970
b9fa6e07
TT
99712020-03-13 Tom Tromey <tom@tromey.com>
9972
9973 * ada-valprint.c (ada_value_print_1) <TYPE_CODE_FLT>: Rewrite.
9974
416595d6
TT
99752020-03-13 Tom Tromey <tom@tromey.com>
9976
9977 * ada-valprint.c (ada_value_print_ptr): New function.
9978 (ada_value_print_1): Use it.
9979
5b5e15ec
TT
99802020-03-13 Tom Tromey <tom@tromey.com>
9981
9982 * ada-valprint.c (ada_val_print_gnat_array): Take a struct value;
9983 call common_val_print.
9984 (ada_val_print_1): Update.
9985 (ada_value_print_1): New function.
9986 (ada_value_print_inner): Rewrite.
9987
fbf54e75
TT
99882020-03-13 Tom Tromey <tom@tromey.com>
9989
9990 * cp-valprint.c (cp_print_value_fields): Update.
9991 (cp_print_value): New function.
9992
64b653ca
TT
99932020-03-13 Tom Tromey <tom@tromey.com>
9994
9995 * m2-valprint.c (m2_value_print_inner): Use
9996 cp_print_value_fields.
9997 * cp-valprint.c (cp_print_value_fields): New function.
9998 * c-valprint.c (c_value_print_struct): New function.
9999 (c_value_print_inner): Use c_value_print_struct.
10000 * c-lang.h (cp_print_value_fields): Declare.
10001
6999f067
TT
100022020-03-13 Tom Tromey <tom@tromey.com>
10003
10004 * c-valprint.c (c_value_print_array): New function.
10005 (c_value_print_inner): Use it.
10006
ce80b8bd
TT
100072020-03-13 Tom Tromey <tom@tromey.com>
10008
10009 * c-valprint.c (c_value_print_memberptr): New function.
10010 (c_value_print_inner): Use it.
10011
2faac269
TT
100122020-03-13 Tom Tromey <tom@tromey.com>
10013
10014 * c-valprint.c (c_value_print_int): New function.
10015 (c_value_print_inner): Use it.
10016
da3e2c29
TT
100172020-03-13 Tom Tromey <tom@tromey.com>
10018
10019 * c-valprint.c (c_value_print_ptr): New function.
10020 (c_value_print_inner): Use it.
10021
50836231
TT
100222020-03-13 Tom Tromey <tom@tromey.com>
10023
10024 * c-valprint.c (c_value_print_inner): Rewrite.
10025
4f412b6e
TT
100262020-03-13 Tom Tromey <tom@tromey.com>
10027
10028 * valprint.c (generic_value_print_complex): New function.
10029 (generic_value_print): Use it.
10030
f5354008
TT
100312020-03-13 Tom Tromey <tom@tromey.com>
10032
10033 * valprint.c (generic_val_print_float): Don't call
10034 val_print_scalar_formatted.
10035 (generic_val_print, generic_value_print): Update.
10036
3eec3b05
TT
100372020-03-13 Tom Tromey <tom@tromey.com>
10038
10039 * valprint.c (generic_value_print_char): New function
10040 (generic_value_print): Use it.
10041
fdddfccb
TT
100422020-03-13 Tom Tromey <tom@tromey.com>
10043
10044 * valprint.c (generic_value_print_int): New function.
10045 (generic_value_print): Use it.
10046
6dde7521
TT
100472020-03-13 Tom Tromey <tom@tromey.com>
10048
10049 * valprint.c (generic_value_print_bool): New function.
10050 (generic_value_print): Use it.
10051
4112d2e6
TT
100522020-03-13 Tom Tromey <tom@tromey.com>
10053
10054 * valprint.c (generic_val_print_func): Simplify.
10055 (generic_val_print, generic_value_print): Update.
10056
65786af6
TT
100572020-03-13 Tom Tromey <tom@tromey.com>
10058
10059 * valprint.c (generic_val_print_flags): Remove.
10060 (generic_val_print, generic_value_print): Update.
10061 (val_print_type_code_flags): Add original_value parameter.
10062
40f3ce18
TT
100632020-03-13 Tom Tromey <tom@tromey.com>
10064
10065 * valprint.c (generic_val_print): Update.
10066 (generic_value_print): Update.
10067 * valprint.c (generic_val_print_enum): Don't call
10068 val_print_scalar_formatted.
10069
2a5b130b
TT
100702020-03-13 Tom Tromey <tom@tromey.com>
10071
10072 * valprint.c (generic_value_print): Call generic_value_print_ptr.
10073 * valprint.c (generic_value_print_ptr): New function.
10074
abc66ce9
TT
100752020-03-13 Tom Tromey <tom@tromey.com>
10076
10077 * valprint.c (generic_value_print): Rewrite.
10078
07a32858
TT
100792020-03-13 Tom Tromey <tom@tromey.com>
10080
10081 * p-valprint.c (pascal_object_print_value_fields)
10082 (pascal_object_print_value): New functions.
10083
64d64d3a
TT
100842020-03-13 Tom Tromey <tom@tromey.com>
10085
10086 * p-valprint.c (pascal_value_print_inner): Rewrite.
10087
6a95a1f5
TT
100882020-03-13 Tom Tromey <tom@tromey.com>
10089
10090 * f-valprint.c (f_value_print_innner): Rewrite.
10091
59fcdac6
TT
100922020-03-13 Tom Tromey <tom@tromey.com>
10093
10094 * m2-valprint.c (m2_print_unbounded_array): New overload.
10095 (m2_print_unbounded_array): Update.
10096 (m2_print_array_contents): Take a struct value.
10097 (m2_value_print_inner): Rewrite.
10098
d133c3e1
TT
100992020-03-13 Tom Tromey <tom@tromey.com>
10100
10101 * d-valprint.c (dynamic_array_type): Call d_value_print_inner.
10102 (d_value_print_inner): New function.
10103 * d-lang.h (d_value_print_inner): Declare.
10104 * d-lang.c (d_language_defn): Use d_value_print_inner.
10105
23b0f06b
TT
101062020-03-13 Tom Tromey <tom@tromey.com>
10107
10108 * go-valprint.c (go_value_print_inner): New function.
10109 * go-lang.h (go_value_print_inner): Declare.
10110 * go-lang.c (go_language_defn): Use go_value_print_inner.
10111
5f56f7cb
TT
101122020-03-13 Tom Tromey <tom@tromey.com>
10113
10114 * rust-lang.c (val_print_struct, rust_print_enum): Use the value
10115 API.
10116 (rust_val_print): Rewrite.
10117 (rust_value_print_inner): New function, from rust_val_print.
10118 (rust_language_defn): Use rust_value_print_inner.
10119
26792ee0
TT
101202020-03-13 Tom Tromey <tom@tromey.com>
10121
10122 * ada-valprint.c (ada_value_print_inner): New function.
10123 * ada-lang.h (ada_value_print_inner): Declare.
10124 * ada-lang.c (ada_language_defn): Use ada_value_print_inner.
10125
24051bbe
TT
101262020-03-13 Tom Tromey <tom@tromey.com>
10127
10128 * f-valprint.c (f_value_print_innner): New function.
10129 * f-lang.h (f_value_print_innner): Declare.
10130 * f-lang.c (f_language_defn): Use f_value_print_innner.
10131
c0941be6
TT
101322020-03-13 Tom Tromey <tom@tromey.com>
10133
10134 * p-valprint.c (pascal_value_print_inner): New function.
10135 * p-lang.h (pascal_value_print_inner): Declare.
10136 * p-lang.c (pascal_language_defn): Use pascal_value_print_inner.
10137
62c4663d
TT
101382020-03-13 Tom Tromey <tom@tromey.com>
10139
10140 * m2-valprint.c (m2_value_print_inner): New function.
10141 * m2-lang.h (m2_value_print_inner): Declare.
10142 * m2-lang.c (m2_language_defn): Use m2_value_print_inner.
10143
62182190
TT
101442020-03-13 Tom Tromey <tom@tromey.com>
10145
10146 * opencl-lang.c (opencl_language_defn): Use c_value_print_inner.
10147 * objc-lang.c (objc_language_defn): Use c_value_print_inner.
10148 * c-valprint.c (c_value_print_inner): New function.
10149 * c-lang.h (c_value_print_inner): Declare.
10150 * c-lang.c (c_language_defn, cplus_language_defn)
10151 (asm_language_defn, minimal_language_defn): Use
10152 c_value_print_inner.
10153
1e592a8a
TT
101542020-03-13 Tom Tromey <tom@tromey.com>
10155
10156 * p-valprint.c (pascal_object_print_value_fields): Now static.
10157 * p-lang.h (pascal_object_print_value_fields): Don't declare.
10158
7fe471e9
TT
101592020-03-13 Tom Tromey <tom@tromey.com>
10160
10161 * c-valprint.c (c_val_print_array): Simplify.
10162
d121c6ce
TT
101632020-03-13 Tom Tromey <tom@tromey.com>
10164
10165 * valprint.c (value_print_array_elements): New function.
10166 * valprint.h (value_print_array_elements): Declare.
10167
4dba70ee
TT
101682020-03-13 Tom Tromey <tom@tromey.com>
10169
10170 * printcmd.c (print_formatted): Use value_print_scalar_formatted.
10171 * mips-tdep.c (mips_print_register): Use
10172 value_print_scalar_formatted.
10173
4f9ae810
TT
101742020-03-13 Tom Tromey <tom@tromey.com>
10175
10176 * valprint.h (value_print_scalar_formatted): Declare.
10177 * valprint.c (value_print_scalar_formatted): New function.
10178
156bfec9
TT
101792020-03-13 Tom Tromey <tom@tromey.com>
10180
10181 * valprint.h (generic_value_print): Declare.
10182 * valprint.c (generic_value_print): New function.
10183
2b4e573d
TT
101842020-03-13 Tom Tromey <tom@tromey.com>
10185
10186 * valprint.c (do_val_print): Call la_value_print_inner, if
10187 available.
10188 * rust-lang.c (rust_language_defn): Update.
10189 * p-lang.c (pascal_language_defn): Update.
10190 * opencl-lang.c (opencl_language_defn): Update.
10191 * objc-lang.c (objc_language_defn): Update.
10192 * m2-lang.c (m2_language_defn): Update.
10193 * language.h (struct language_defn) <la_value_print_inner>: New
10194 member.
10195 * language.c (unknown_language_defn, auto_language_defn): Update.
10196 * go-lang.c (go_language_defn): Update.
10197 * f-lang.c (f_language_defn): Update.
10198 * d-lang.c (d_language_defn): Update.
10199 * c-lang.c (c_language_defn, cplus_language_defn)
10200 (asm_language_defn, minimal_language_defn): Update.
10201 * ada-lang.c (ada_language_defn): Update.
10202
a1f6a07c
TT
102032020-03-13 Tom Tromey <tom@tromey.com>
10204
10205 * c-valprint.c (c_value_print): Use common_val_print.
10206
410cf315
TT
102072020-03-13 Tom Tromey <tom@tromey.com>
10208
10209 * cp-valprint.c (cp_print_static_field): Use common_val_print.
10210
72a45c93
TT
102112020-03-13 Tom Tromey <tom@tromey.com>
10212
10213 * f-valprint.c (f77_print_array_1, f_val_print): Use
10214 common_val_print.
10215
040f66bd
TT
102162020-03-13 Tom Tromey <tom@tromey.com>
10217
10218 * riscv-tdep.c (riscv_print_one_register_info): Use
10219 common_val_print.
10220
a6e05a6c
TT
102212020-03-13 Tom Tromey <tom@tromey.com>
10222
10223 * mi/mi-main.c (output_register): Use common_val_print.
10224
3444c526
TT
102252020-03-13 Tom Tromey <tom@tromey.com>
10226
10227 * infcmd.c (default_print_one_register_info): Use
10228 common_val_print.
10229
c2a44efe
TT
102302020-03-13 Tom Tromey <tom@tromey.com>
10231
10232 * valprint.h (common_val_print_checked): Declare.
10233 * valprint.c (common_val_print_checked): New function.
10234 * stack.c (print_frame_arg): Use common_val_print_checked.
10235
b0c26e99
TT
102362020-03-13 Tom Tromey <tom@tromey.com>
10237
10238 * valprint.c (do_val_print): New function, from val_print.
10239 (val_print): Use do_val_print.
10240 (common_val_print): Use do_val_print.
10241
ce3acbe9
TT
102422020-03-13 Tom Tromey <tom@tromey.com>
10243
10244 * valprint.c (value_print): Use scoped_value_mark.
10245
96c7f873
TV
102462020-03-13 Tom de Vries <tdevries@suse.de>
10247
10248 PR symtab/25646
10249 * psymtab.c (partial_symtab::partial_symtab): Don't set
10250 globals_offset and statics_offset. Push element onto
10251 current_global_psymbols and current_static_psymbols stacks.
10252 (concat): New function.
10253 (end_psymtab_common): Set globals_offset and statics_offset. Pop
10254 element from current_global_psymbols and current_static_psymbols
10255 stacks. Concat popped elements to global_psymbols and
10256 static_symbols.
10257 (add_psymbol_to_list): Use current_global_psymbols and
10258 current_static_psymbols stacks.
10259 * psymtab.h (class psymtab_storage): Add current_global_psymbols and
10260 current_static_psymbols fields.
10261
6ba0a321
CB
102622020-03-12 Christian Biesinger <cbiesinger@google.com>
10263
10264 * corelow.c (sniff_core_bfd): Remove.
10265 (class core_target) <m_core_vec>: Remove.
10266 (core_target::core_target): Update.
10267 (core_file_fns): Remove.
10268 (deprecated_add_core_fns): Remove.
10269 (default_core_sniffer): Remove.
10270 (sniff_core_bfd): Remove.
10271 (default_check_format): Remove.
10272 (gdb_check_format): Remove.
10273 (core_target_open): Update.
10274 (core_target::get_core_register_section): Update.
10275 (get_core_registers_cb): Update.
10276 (core_target::fetch_registers): Update.
10277 * gdbcore.h (struct core_fns): Remove.
10278 (deprecated_add_core_fns): Remove.
10279 (default_core_sniffer): Remove.
10280 (default_check_format): Remove.
10281
227031b2
TT
102822020-03-12 Tom Tromey <tom@tromey.com>
10283
10284 * arm-tdep.c (struct arm_mapping_symbol) <value>: Now a
10285 CORE_ADDR.
10286 (struct arm_exidx_entry) <addr>: Now a CORE_ADDR.
10287
53807e9f
TT
102882020-03-12 Tom Tromey <tom@tromey.com>
10289
10290 * remote.c (remote_target::download_tracepoint)
10291 (remote_target::enable_tracepoint)
10292 (remote_target::disable_tracepoint): Use phex, not sprintf_vma.
10293 * breakpoint.c (print_recreate_masked_watchpoint): Use phex, not
10294 sprintf_vma.
10295
64f25102
TT
102962020-03-12 Tom Tromey <tom@tromey.com>
10297
10298 * symfile-mem.c: Update CORE_ADDR size assert.
10299
272cd5a3
SM
103002020-03-12 Simon Marchi <simon.marchi@efficios.com>
10301
10302 * selftest.m4: Move to gdbsupport/.
10303 * acinclude.m4: Update path to selftest.m4.
10304
74cd3f9d
SM
103052020-03-12 Simon Marchi <simon.marchi@efficios.com>
10306
10307 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Rename to...
10308 (SELFTESTS_SRCS): ... this. Add disasm-selftests.c,
10309 gdbarch-selfselftests.c and selftest-arch.c.
10310 (SUBDIR_UNITTESTS_OBS): Rename to...
10311 (SELFTESTS_OBS): ... this.
10312 (COMMON_SFILES): Remove disasm-selftests.c and
10313 gdbarch-selftests.c.
10314 * configure.ac: Don't add selftest-arch.{c,o} to
10315 CONFIG_{SRCS,OBS}.
10316 * disasm-selftests.c, gdbarch-selftests.c: Remove GDB_SELF_TEST
10317 preprocessor conditions.
10318
db6878ac
SM
103192020-03-12 Simon Marchi <simon.marchi@efficios.com>
10320
10321 * configure.ac: Don't source bfd/development.sh.
10322 * selftest.m4: Modify comment.
10323 * configure: Re-generate.
10324
4d696a5c
SM
103252020-03-12 Simon Marchi <simon.marchi@efficios.com>
10326
10327 * selftest.m4 (GDB_AC_SELFTEST): Error out if $development is
10328 not "true" or "false".
10329 * configure: Re-generate.
10330
8dd8e1c7
CB
103312020-03-12 Christian Biesinger <cbiesinger@google.com>
10332
10333 * Makefile.in (HFILES_NO_SRCDIR): Add new arm-nbsd-tdep.h file.
10334 * arm-nbsd-nat.c (arm_supply_gregset): Moved to arm-nbsd-tdep and
10335 renamed to arm_nbsd_supply_gregset.
10336 (fetch_register): Update to call arm_nbsd_supply_gregset.
10337 (fetch_regs): Remove in favor of fetch_register with a -1 regno.
10338 (arm_netbsd_nat_target::fetch_registers): Update.
10339 (fetch_elfcore_registers): Removed.
10340 (_initialize_arm_netbsd_nat): Removed call to deprecated_add_core_fns.
10341 * arm-nbsd-tdep.c (struct arm_nbsd_reg): New struct.
10342 (arm_nbsd_supply_gregset): Moved from arm-nbsd-nat.c and updated to
10343 not require NetBSD system headers.
10344 (arm_nbsd_regset): New struct.
10345 (arm_nbsd_iterate_over_regset_sections): New function.
10346 (arm_netbsd_init_abi_common): Updated to call
10347 set_gdbarch_iterate_over_regset_sections.
10348 * arm-nbsd-tdep.h: New file.
10349
dd69bf7a
KB
103502020-03-11 Kevin Buettner <kevinb@redhat.com>
10351
10352 * symtab.c (find_pc_sect_line): Add check which prevents infinite
10353 recursion.
10354
a0761e34
SM
103552020-03-11 Simon Marchi <simon.marchi@efficios.com>
10356
10357 * configure: Re-generate.
10358
e7a82140
TT
103592020-03-11 Tom Tromey <tromey@adacore.com>
10360
10361 * ada-typeprint.c (print_choices): Fix comment.
10362
dcc050c8
AB
103632020-03-11 Andrew Burgess <andrew.burgess@embecosm.com>
10364
10365 * buildsyms.c (buildsym_compunit::record_line): Avoid accessing
10366 previous item in the list, when the list has no items.
10367
1c33af77
TV
103682020-03-11 Tom de Vries <tdevries@suse.de>
10369
10370 * dwarf2/loc.c (dwarf2_evaluate_property): Handle NULL frame in
10371 PROP_LOCLIST handling code.
10372
8c95582d
AB
103732020-03-10 Andrew Burgess <andrew.burgess@embecosm.com>
10374
10375 * buildsym-legacy.c (record_line): Pass extra parameter to
10376 record_line.
10377 * buildsym.c (buildsym_compunit::record_line): Take an extra
10378 parameter, reduce duplication in the line table, and record the
10379 is_stmt flag in the line table.
10380 * buildsym.h (buildsym_compunit::record_line): Add extra
10381 parameter.
10382 * disasm.c (do_mixed_source_and_assembly_deprecated): Ignore
10383 non-statement lines.
10384 * dwarf2/read.c (dwarf_record_line_1): Add extra parameter, pass
10385 this to the symtab builder.
10386 (dwarf_finish_line): Pass extra parameter to dwarf_record_line_1.
10387 (lnp_state_machine::record_line): Pass a suitable is_stmt flag
10388 through to dwarf_record_line_1.
10389 * infrun.c (process_event_stop_test): When stepping, don't stop at
10390 a non-statement instruction, and only refresh the step info when
10391 we land in the middle of a line's range. Also add an extra
10392 comment.
10393 * jit.c (jit_symtab_line_mapping_add_impl): Initialise is_stmt
10394 field.
10395 * record-btrace.c (btrace_find_line_range): Only record lines
10396 marked as is-statement.
10397 * stack.c (frame_show_address): Show the frame address if we are
10398 in a non-statement sal.
10399 * symmisc.c (dump_symtab_1): Print the is_stmt flag.
10400 (maintenance_print_one_line_table): Print a header for the is_stmt
10401 column, and include is_stmt information in the output.
10402 * symtab.c (find_pc_sect_line): Find lines marked as statements in
10403 preference to non-statements.
10404 (find_pcs_for_symtab_line): Prefer is-statement entries.
10405 (find_line_common): Likewise.
10406 * symtab.h (struct linetable_entry): Add is_stmt field.
10407 (struct symtab_and_line): Likewise.
10408 * xcoffread.c (arrange_linetable): Initialise is_stmt field when
10409 arranging the line table.
10410
e4003a34
TV
104112020-03-07 Tom de Vries <tdevries@suse.de>
10412
10413 * dwarf2/read.c (read_typedef): Treat anonymous typedef as forwarder
10414 DIE.
10415
e8932576
TT
104162020-03-07 Tom Tromey <tom@tromey.com>
10417
10418 * valops.c (value_literal_complex): Remove obsolete comment.
10419 * gdbtypes.h (enum type_code) <TYPE_CODE_FLT>: Remove obsolete
10420 comment.
10421
29734269
SM
104222020-03-06 Simon Marchi <simon.marchi@polymtl.ca>
10423
10424 * infrun.h: Forward-declare thread_info.
10425 (set_step_info): Add thread_info parameter, add doc.
10426 * infrun.c (set_step_info): Add thread_info parameter, move doc
10427 to header.
10428 * infrun.c (process_event_stop_test): Pass thread to
10429 set_step_info call.
10430 * infcmd.c (set_step_frame): Add thread_info pointer, pass it to
10431 set_step_info.
10432 (prepare_one_step): Add thread_info parameter, pass it to
10433 set_step_frame and prepare_one_step (recursive) call.
10434 (step_1): Pass thread to prepare_one_step call.
10435 (step_command_fsm::should_stop): Pass thread to
10436 prepare_one_step.
10437 (until_next_fsm): Pass thread to set_step_frame call.
10438 (finish_command): Pass thread to set_step_info call.
10439
b7d64b29
HD
104402020-03-06 Hannes Domani <ssbssa@yahoo.de>
10441
10442 * windows-tdep.c (windows_solib_create_inferior_hook):
10443 Check if inferior is running.
10444
09f2921c
TV
104452020-03-06 Tom de Vries <tdevries@suse.de>
10446
10447 * NEWS: Fix "the the".
10448 * ctfread.c: Same.
10449
fd760e79
TV
104502020-03-06 Tom de Vries <tdevries@suse.de>
10451
10452 * psymtab.c (psymtab_to_symtab): Don't print "done.".
10453
20ea4a60
AB
104542020-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
10455
10456 * .dir-locals.el: Add a comment referencing the other copies of
10457 this file.
10458
0afbabf0
JB
104592020-03-05 John Baldwin <jhb@FreeBSD.org>
10460
10461 * fbsd-tdep.c (fbsd_make_corefile_notes): Use std::string for
10462 psargs.
10463
842806cb
TBA
104642020-03-05 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
10465
10466 * .gitattributes: New file.
10467
be1e3d3e
TT
104682020-03-04 Tom Tromey <tom@tromey.com>
10469
10470 * symmisc.c (print_symbol_bcache_statistics)
10471 (print_objfile_statistics): Update.
10472 * symfile.c (allocate_symtab): Use intern.
10473 * psymtab.c (partial_symtab::partial_symtab): Use intern.
10474 * objfiles.h (struct objfile_per_bfd_storage) <filename_cache,
10475 macro_cache>: Remove.
10476 <string_cache>: New member.
10477 (struct objfile) <intern>: New methods.
10478 * elfread.c (elf_symtab_read): Use intern.
10479 * dwarf2/read.c (fixup_go_packaging): Intern package name.
10480 (dwarf2_compute_name, dwarf2_physname)
10481 (create_dwo_unit_in_dwp_v1, create_dwo_unit_in_dwp_v2): Intern
10482 names.
10483 (guess_partial_die_structure_name): Update.
10484 (partial_die_info::fixup): Intern name.
10485 (dwarf2_canonicalize_name): Change parameter to objfile. Intern
10486 name.
10487 (dwarf2_name): Intern name. Update.
10488 * buildsym.c (buildsym_compunit::get_macro_table): Use
10489 string_cache.
10490
4e7625fd
TT
104912020-03-04 Tom Tromey <tom@tromey.com>
10492
10493 * jit.c (bfd_open_from_target_memory): Make "target" const.
10494 * corefile.c (gnutarget): Now const.
10495 * gdbcore.h (gnutarget): Now const.
10496
46f9f931
HD
104972020-03-04 Hannes Domani <ssbssa@yahoo.de>
10498
10499 * NEWS: Mention support for WOW64 processes.
10500 * amd64-windows-nat.c (amd64_mappings): Rename and remove static.
10501 (amd64_windows_segment_register_p): Remove static.
10502 (_initialize_amd64_windows_nat): Update.
10503 * configure.nat <windows> (NATDEPFILES): Add i386-windows-nat.o.
10504 * i386-windows-nat.c (context_offset): Update.
10505 (i386_mappings): Rename and remove static.
10506 (i386_windows_segment_register_p): Remove static.
10507 (_initialize_i386_windows_nat): Update.
10508 * windows-nat.c (STATUS_WX86_BREAKPOINT): New macro.
10509 (STATUS_WX86_SINGLE_STEP): New macro.
10510 (EnumProcessModulesEx): New macro.
10511 (Wow64SuspendThread): New macro.
10512 (Wow64GetThreadContext): New macro.
10513 (Wow64SetThreadContext): New macro.
10514 (Wow64GetThreadSelectorEntry): New macro.
10515 (windows_set_context_register_offsets): Add static.
10516 (windows_set_segment_register_p): Likewise.
10517 (windows_add_thread): Adapt for WOW64 processes.
10518 (windows_fetch_one_register): Likewise.
10519 (windows_nat_target::fetch_registers): Likewise.
10520 (windows_store_one_register): Likewise.
10521 (display_selector): Likewise.
10522 (display_selectors): Likewise.
10523 (handle_exception): Likewise.
10524 (windows_continue): Likewise.
10525 (windows_nat_target::resume): Likewise.
10526 (windows_add_all_dlls): Likewise.
10527 (do_initial_windows_stuff): Likewise.
10528 (windows_nat_target::attach): Likewise.
10529 (windows_get_exec_module_filename): Likewise.
10530 (windows_nat_target::create_inferior): Likewise.
10531 (windows_xfer_siginfo): Likewise.
10532 (_initialize_loadable): Initialize Wow64SuspendThread,
10533 Wow64GetThreadContext, Wow64SetThreadContext,
10534 Wow64GetThreadSelectorEntry and EnumProcessModulesEx.
10535 * windows-nat.h (windows_set_context_register_offsets):
10536 Remove declaration.
10537 (windows_set_segment_register_p): Likewise.
10538 (i386_windows_segment_register_p): Add declaration.
10539 (amd64_windows_segment_register_p): Likewise.
10540
440cf44e
LM
105412020-03-04 Luis Machado <luis.machado@linaro.org>
10542
10543 Revert aa66aac47b4dd38f9524ddb5546c08cc09930d37 due to regressions
10544 in "info registers" for AArch64/ARM.
10545
10546 The change caused "info registers" to not print GPR's.
10547
10548 gdb/ChangeLog:
10549
10550 2020-02-01 Shahab Vahedi <shahab@synopsys.com>
10551
10552 * target-descriptions.c (tdesc_register_in_reggroup_p): Return 0
10553 when reg->group is empty and reggroup is not.
10554
1009d92f
TT
105552020-03-03 Tom Tromey <tromey@adacore.com>
10556
10557 * dwarf2/frame.c (struct dwarf2_frame_cache)
10558 <checked_tailcall_bottom, entry_cfa_sp_offset,
10559 entry_cfa_sp_offset_p>: Remove members.
10560 (dwarf2_frame_cache): Call dwarf2_tailcall_sniffer_first.
10561 (dwarf2_frame_prev_register): Don't call
10562 dwarf2_tailcall_sniffer_first.
10563 (dwarf2_append_unwinders): Don't append tailcall unwinder.
10564 * frame-unwind.c (add_unwinder): New fuction.
10565 (frame_unwind_init): Use it. Add tailcall unwinder.
10566
5e5d66b6
AB
105672020-03-03 Andrew Burgess <andrew.burgess@embecosm.com>
10568 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
10569
10570 * f-valprint.c (f_val_print): Handle TYPE_CODE_BOOL, any non-zero
10571 value should be printed as true.
10572
584cf46d
HD
105732020-03-03 Hannes Domani <ssbssa@yahoo.de>
10574
10575 * windows-tdep.c (windows_solib_create_inferior_hook): New function.
10576 (windows_init_abi): Set and use windows_so_ops.
10577
7b973adc
SDJ
105782020-03-03 Sergio Durigan Junior <sergiodj@redhat.com>
10579
10580 * printcmd.c (print_c_string): Check also for TYPE_CODE_PTR
10581 when verifying if dealing with a convenience variable.
10582
bb7b70ab
LM
105832020-03-03 Luis Machado <luis.machado@linaro.org>
10584
10585 * auxv.c (default_print_auxv_entry): Add new AUXV entries.
10586
9822cb57
SM
105872020-03-02 Simon Marchi <simon.marchi@polymtl.ca>
10588
10589 * infrun.c (gdbarch_supports_displaced_stepping): New.
10590 (use_displaced_stepping): Break up conditions in smaller pieces.
10591 Use gdbarch_supports_displaced_stepping.
10592 (displaced_step_prepare_throw): Use
10593 gdbarch_supports_displaced_stepping.
10594
63e163f2
AB
105952020-03-02 Andrew Burgess <andrew.burgess@embecosm.com>
10596
10597 * NEWS: Mention new behaviour of the history filename.
10598 * top.c (write_history_p): Add comment.
10599 (show_write_history_p): Add header comment, give a different
10600 message when history writing is on, but the history filename is
10601 empty.
10602 (history_filename): Add comment.
10603 (history_filename_empty): New function.
10604 (show_history_filename): Add header comment, give a different
10605 message when the filename is empty.
10606 (init_history): Compare history_filename against nullptr, and only
10607 read history if the filename is not empty.
10608 (set_history_filename): Add header comment, and only make
10609 non-empty filenames absolute.
10610 (init_main): Make the filename argument to 'set history filename'
10611 optional.
10612
81b86b97
CB
106132020-03-02 Christian Biesinger <cbiesinger@google.com>
10614
10615 * arm-nbsd-nat.c (arm_supply_fparegset): Rename to...
10616 (arm_supply_vfpregset): ...this, and update to use VFP registers.
10617 (fetch_fp_register): Update.
10618 (fetch_fp_regs): Update.
10619 (store_fp_register): Update.
10620 (store_fp_regs): Update.
10621 (arm_netbsd_nat_target::read_description): New function.
10622 (fetch_elfcore_registers): Update.
10623
24ed6739
AB
106242020-03-02 Andrew Burgess <andrew.burgess@embecosm.com>
10625
10626 * remote.c (remote_target::remote_parse_stop_reply): Don't use the
10627 general_thread if the stop reply is missing a thread-id.
10628 (remote_target::process_stop_reply): Use the first non-exited
10629 thread if the target didn't pass a thread-id.
10630 * infrun.c (do_target_wait): Move call to
10631 switch_to_inferior_no_thread to ....
10632 (do_target_wait_1): ... here.
10633
a84bb2a0
JT
106342020-02-29 Jon Turney <jon.turney@dronecode.org.uk>
10635
10636 * debuginfod-support.c: Include defs.h first.
10637
658dadf0
TV
106382020-02-28 Tom de Vries <tdevries@suse.de>
10639
10640 * symfile.c (set_initial_language): Use default language for lookup.
10641
4ebe4877
SM
106422020-02-28 Simon Marchi <simon.marchi@efficios.com>
10643
10644 * dwarf2/read.c (cutu_reader::init_tu_and_read_dwo_dies): Remove
10645 reader variable, pass `this` to read_cutu_die_from_dwo.
10646
e5da1139
AM
106472020-02-27 Aaron Merey <amerey@redhat.com>
10648
10649 * source.c (open_source_file): Check for nullptr when computing
10650 srcpath.
10651
317f7127
TT
106522020-02-27 Tom Tromey <tromey@adacore.com>
10653
10654 * dwarf2/read.c (struct field_info) <nfields>: Now a method, not a
10655 member.
10656 (dwarf2_add_field): Don't update nfields.
10657 (dwarf2_attach_fields_to_type, process_structure_scope): Update.
10658
3104d9ee
AB
106592020-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
10660
10661 * gdbtypes.c (create_array_type_with_stride): Use std::abs not
10662 abs.
10663
b83470bf
TT
106642020-02-26 Tom Tromey <tom@tromey.com>
10665
10666 * dwarf2/read.c (struct dwarf2_include_psymtab): New.
10667 (dwarf2_create_include_psymtab): Use dwarf2_include_psymtab.
10668 (dwarf2_psymtab::expand_psymtab, dwarf2_psymtab::readin_p)
10669 (dwarf2_psymtab::get_compunit_symtab): Remove null checks for
10670 per_cu_data.
10671
edfe0a0c
TT
106722020-02-26 Tom Tromey <tom@tromey.com>
10673
10674 * dwarf2/index-write.c (psym_index_map): Change type.
10675 (add_address_entry_worker, write_one_signatured_type)
10676 (recursively_count_psymbols, recursively_write_psymbols)
10677 (class debug_names, psyms_seen_size, write_gdbindex)
10678 (write_debug_names): Use partial_symtab, not dwarf2_psymtab.
10679
0d79cdc4
AM
106802020-02-26 Aaron Merey <amerey@redhat.com>
10681
10682 * Makefile.in: Handle optional debuginfod support.
10683 * NEWS: Update.
10684 * README: Add --with-debuginfod summary.
10685 * config.in: Regenerate.
10686 * configure: Regenerate.
10687 * configure.ac: Handle optional debuginfod support.
10688 * debuginfod-support.c: debuginfod helper functions.
10689 * debuginfod-support.h: Ditto.
10690 * doc/gdb.texinfo: Add --with-debuginfod to configure options
10691 summary.
10692 * dwarf2/read.c (dwarf2_get_dwz_file): Query debuginfod servers
10693 when a dwz file cannot be found.
10694 * elfread.c (elf_symfile_read): Query debuginfod servers when a
10695 debuginfo file cannot be found.
10696 * source.c (open_source_file): Query debuginfod servers when a
10697 source file cannot be found.
10698 * top.c (print_gdb_configuration): Include
10699 --{with,without}-debuginfod in the output.
10700
b65ce565
JG
107012020-02-26 Jérémie Galarneau <jeremie.galarneau@efficios.com>
10702
10703 * thread.c (thr_try_catch_cmd): Print thread name.
10704
d4c9a4f8
SM
107052020-02-26 Simon Marchi <simon.marchi@efficios.com>
10706
10707 * dwarf2/loc.h (dwarf2_fetch_die_loc_sect_off,
10708 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
10709 dwarf2_fetch_die_type_sect_off): Move to...
10710 * dwarf2/read.h (dwarf2_fetch_die_loc_sect_off,
10711 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
10712 dwarf2_fetch_die_type_sect_off): ... here.
10713 * dwarf2/read.c (dwarf2_fetch_die_loc_sect_off,
10714 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
10715 dwarf2_fetch_die_type_sect_off): Move doc to header file.
10716
0dce4280
TV
107172020-02-26 Tom de Vries <tdevries@suse.de>
10718
10719 PR gdb/25603
10720 * symfile.c (set_initial_language): Exit-early if
10721 language_mode == language_mode_manual.
10722
450a1bfc
SM
107232020-02-25 Simon Marchi <simon.marchi@polymtl.ca>
10724
10725 * dwarf2/loc.h (dwarf2_read_addr_index): Move...
10726 * dwarf2/read.h (dwarf2_read_addr_index): ... here.
10727 * dwarf2/read.c (dwarf2_read_addr_index): Move doc to header.
10728
9e80cfa1
AB
107292020-02-25 Andrew Burgess <andrew.burgess@embecosm.com>
10730
10731 * gdbtypes.c (create_array_type_with_stride): Handle negative
10732 array strides.
10733 * valarith.c (value_subscripted_rvalue): Likewise.
10734
09624f1f
LM
107352020-02-25 Luis Machado <luis.machado@linaro.org>
10736
10737 * aarch64-tdep.c (aarch64_vnv_type): Fix comment typo.
10738
8cb5117c
SM
107392020-02-25 Simon Marchi <simon.marchi@polymtl.ca>
10740
10741 * loc.h (dwarf2_get_die_type): Move to...
10742 * read.h (dwarf2_get_die_type): ... here.
10743 * read.c (dwarf2_get_die_type): Move doc to header.
10744
c325c44e
JB
107452020-02-25 Joel Brobecker <brobecker@adacore.com>
10746
10747 * copypright.py (EXCLUDE_LIST): Add 'gnulib/config.in' and
10748 'gnulib/Makefile.in' to the list.
10749
4ac93832
TT
107502020-02-24 Tom Tromey <tom@tromey.com>
10751
10752 * dwarf2/read.h (struct type_unit_unshareable) <num_symtabs>:
10753 Remove.
10754 * dwarf2/read.c (dwarf2_cu::setup_type_unit_groups): Use
10755 XOBNEWVEC.
10756
197400e8
TT
107572020-02-24 Tom Tromey <tom@tromey.com>
10758
10759 * dwarf2/read.h (struct dwarf2_per_cu_data) <type_unit_group_p>:
10760 New method.
10761 * dwarf2/read.c (IS_TYPE_UNIT_GROUP): Remove.
10762 (dw2_do_instantiate_symtab, dw2_get_file_names)
10763 (build_type_psymtab_dependencies, load_full_type_unit): Update.
10764
76935768
TT
107652020-02-24 Tom Tromey <tom@tromey.com>
10766
10767 * dwarf2read.c (dwarf2_build_psymtabs_hard): Use
10768 make_scoped_restore.
10769 (dwarf2_psymtab::read_symtab): Don't clear
10770 reading_partial_symbols.
10771
a88ef40d
TV
107722020-02-24 Tom de Vries <tdevries@suse.de>
10773
10774 PR gdb/25592
10775 * stack.c (iterate_over_block_locals): Handle LOC_CONST.
10776
c9af6521
TV
107772020-02-24 Tom de Vries <tdevries@suse.de>
10778
10779 * tui/tui-layout.c (_initialize_tui_layout): Fix help messages for
10780 commands layout next/prev/regs.
10781
5707a07a
TT
107822020-02-22 Tom Tromey <tom@tromey.com>
10783
10784 * dwarf2/loc.h (dwarf2_compile_expr_to_ax): Don't declare.
10785 * dwarf2/loc.c (dwarf2_compile_expr_to_ax): Now static.
10786
3b0fb49e
TT
107872020-02-22 Tom Tromey <tom@tromey.com>
10788
10789 * tui/tui-data.h (TUI_DISASM_WIN): Cast to tui_disasm_window.
10790
283be8bf
TT
107912020-02-22 Tom Tromey <tom@tromey.com>
10792
10793 * tui/tui-win.c (_initialize_tui_win): Add usage text.
10794 * tui/tui-stack.c (_initialize_tui_stack): Add usage text.
10795 * tui/tui-regs.c (_initialize_tui_regs): Add usage text.
10796 * tui/tui.c (_initialize_tui): Add usage text.
10797
ca793b96
TT
107982020-02-22 Tom Tromey <tom@tromey.com>
10799
10800 * tui/tui-win.c (tui_set_focus_command)
10801 (tui_set_win_height_command): Use error_no_arg.
10802 (_initialize_tui_win): Update help text.
10803 (FOCUS_USAGE, WIN_HEIGHT_USAGE): Don't define.
10804
432b5c40
TT
108052020-02-22 Tom Tromey <tom@tromey.com>
10806
10807 * tui/tui-layout.c (extract_display_start_addr): Rewrite.
10808 * tui/tui-disasm.h (struct tui_disasm_window)
10809 <display_start_addr>: Declare.
10810 * tui/tui-source.h (struct tui_source_window)
10811 <display_start_addr>: Declare.
10812 * tui/tui-winsource.h (struct tui_source_window_base)
10813 <show_source_line, display_start_addr>: New methods.
10814 <m_horizontal_offset, m_start_line_or_addr, m_gdbarch, m_content>:
10815 Rename and move to protected section.
10816 * tui/tui-winsource.c (tui_source_window_base::update_source_window)
10817 (tui_source_window_base::do_erase_source_content): Update.
10818 (tui_source_window_base::show_source_line): Now a method.
10819 (tui_source_window_base::show_source_content)
10820 (tui_source_window_base::tui_source_window_base)
10821 (tui_source_window_base::rerender)
10822 (tui_source_window_base::refill)
10823 (tui_source_window_base::do_scroll_horizontal)
10824 (tui_source_window_base::set_is_exec_point_at)
10825 (tui_source_window_base::update_breakpoint_info)
10826 (tui_source_window_base::update_exec_info): Update.
10827 * tui/tui-source.c (tui_source_window::set_contents)
10828 (tui_source_window::showing_source_p)
10829 (tui_source_window::do_scroll_vertical)
10830 (tui_source_window::location_matches_p)
10831 (tui_source_window::line_is_displayed): Update.
10832 (tui_source_window::display_start_addr): New method.
10833 * tui/tui-disasm.c (tui_disasm_window::set_contents)
10834 (tui_disasm_window::do_scroll_vertical)
10835 (tui_disasm_window::location_matches_p): Update.
10836 (tui_disasm_window::display_start_addr): New method.
10837
01b1af32
TT
108382020-02-22 Tom Tromey <tom@tromey.com>
10839
10840 * NEWS: Add entry for gdb.register_window_type.
10841 * tui/tui-layout.h (window_factory): New typedef.
10842 (tui_register_window): Declare.
10843 * tui/tui-layout.c (saved_tui_windows): New global.
10844 (tui_apply_current_layout): Use it.
10845 (tui_register_window): New function.
10846 * python/python.c (do_start_initialization): Call
10847 gdbpy_initialize_tui.
10848 (python_GdbMethods): Add "register_window_type" function.
10849 * python/python-internal.h (gdbpy_register_tui_window)
10850 (gdbpy_initialize_tui): Declare.
10851 * python/py-tui.c: New file.
10852 * Makefile.in (SUBDIR_PYTHON_SRCS): Add py-tui.c.
10853
fc96d20b
TT
108542020-02-22 Tom Tromey <tom@tromey.com>
10855
10856 * tui/tui-io.c (do_tui_putc): Don't omit annotations.
10857
935c78c0
TT
108582020-02-22 Tom Tromey <tom@tromey.com>
10859
10860 * tui/tui-win.c (tui_set_win_focus_to): Move to tui-data.c.
10861 * tui/tui-data.h (tui_set_win_with_focus): Don't declare.
10862 * tui/tui-data.c (tui_set_win_with_focus): Remove.
10863 (tui_set_win_focus_to): Move from tui-win.c.
10864
0240c8f1
TT
108652020-02-22 Tom Tromey <tom@tromey.com>
10866
10867 * tui/tui-layout.c (make_standard_window, get_locator_window): New
10868 functions.
10869 (known_window_types): New global.
10870 (tui_get_window_by_name): Reimplement.
10871 (initialize_known_windows): New function.
10872 (validate_window_name): Rewrite.
10873 (_initialize_tui_layout): Call initialize_known_windows.
10874
fdb01f0c
TT
108752020-02-22 Tom Tromey <tom@tromey.com>
10876
10877 * tui/tui.h (enum tui_win_type) <LOCATOR_WIN, DATA_ITEM_WIN>:
10878 Remove constants.
10879 * tui/tui-winsource.h (struct tui_source_window_base)
10880 <tui_source_window_base>: Remove parameter.
10881 * tui/tui-winsource.c
10882 (tui_source_window_base::tui_source_window_base): Remove
10883 parameter.
10884 (tui_source_window_base::refill): Update.
10885 * tui/tui-stack.h (struct tui_locator_window)
10886 <tui_locator_window>: Update.
10887 * tui/tui-source.h (struct tui_source_window) <tui_source_window>:
10888 Default the constructor.
10889 * tui/tui-regs.h (struct tui_data_item_window)
10890 <tui_data_item_window>: Default the constructor.
10891 (struct tui_data_window) <tui_data_window>: Likewise.
10892 * tui/tui-disasm.h (struct tui_disasm_window) <tui_disasm_window>:
10893 Default the constructor.
10894 * tui/tui-data.h (struct tui_gen_win_info) <tui_gen_win_info>:
10895 Default the constructor.
10896 <type>: Remove.
10897 (struct tui_win_info) <tui_win_info>: Default the constructor.
10898 * tui/tui-data.c (tui_win_info::tui_win_info): Remove.
10899 * tui/tui-command.h (struct tui_cmd_window) <tui_cmd_window>:
10900 Default the constructor.
10901
865a5aec
TT
109022020-02-22 Tom Tromey <tom@tromey.com>
10903
10904 * tui/tui-wingeneral.h (tui_make_all_invisible): Don't declare.
10905 * tui/tui-wingeneral.c (tui_make_all_invisible): Remove.
10906 * tui/tui-win.c (tui_resize_all): Don't call
10907 tui_delete_invisible_windows.
10908 * tui/tui-layout.c (tui_apply_current_layout): Delete windows when
10909 done.
10910 (tui_set_layout): Update.
10911 (tui_add_win_to_layout): Don't call tui_delete_invisible_windows.
10912 * tui/tui-data.h (tui_delete_invisible_windows): Don't declare.
10913 * tui/tui-data.c (tui_delete_invisible_windows): Remove.
10914
e098d18c
TT
109152020-02-22 Tom Tromey <tom@tromey.com>
10916
10917 * tui/tui-win.c (tui_partial_win_by_name): Handle ambiguity
10918 correctly.
10919
eb9c8874
TT
109202020-02-22 Tom Tromey <tom@tromey.com>
10921
10922 * tui/tui-data.c (tui_next_win, tui_prev_win): Reimplement.
10923
7eed1a8e
TT
109242020-02-22 Tom Tromey <tom@tromey.com>
10925
10926 * tui/tui-winsource.h (struct tui_source_window_iterator)
10927 <inner_iterator>: New etytypedef.
10928 <tui_source_window_iterator>: Take "end" parameter.
10929 <tui_source_window_iterator>: Take iterator.
10930 <operator*, advance>: Update.
10931 <m_iter>: Change type.
10932 <m_end>: New field.
10933 (struct tui_source_windows) <begin, end>: Update.
10934 * tui/tui-layout.c (tui_windows): New global.
10935 (tui_apply_current_layout): Clear tui_windows.
10936 (tui_layout_window::apply): Update tui_windows.
10937 * tui/tui-data.h (tui_windows): Declare.
10938 (all_tui_windows): Now inline function.
10939 (class tui_window_iterator, struct all_tui_windows): Remove.
10940
7c043ba6
TT
109412020-02-22 Tom Tromey <tom@tromey.com>
10942
10943 PR tui/17850:
10944 * tui/tui-win.c (tui_gen_win_info::max_width): New method.
10945 * tui/tui-layout.h (class tui_layout_base) <get_sizes>: Add
10946 "height" argument.
10947 (class tui_layout_window) <get_sizes>: Likewise.
10948 (class tui_layout_split) <tui_layout_split>: Add "vertical"
10949 argument.
10950 <get_sizes>: Add "height" argument.
10951 <m_vertical>: New field.
10952 * tui/tui-layout.c (tui_layout_split::clone): Update.
10953 (tui_layout_split::get_sizes): Add "height" argument.
10954 (tui_layout_split::adjust_size, tui_layout_split::apply): Update.
10955 (tui_new_layout_command): Parse "-horizontal".
10956 (_initialize_tui_layout): Update help string.
10957 (tui_layout_split::specification): Add "-horizontal" when needed.
10958 * tui/tui-layout.c (tui_layout_window::get_sizes): Add "height"
10959 argument.
10960 * tui/tui-data.h (struct tui_gen_win_info) <max_width, min_width>:
10961 New methods.
10962
6bc56648
TT
109632020-02-22 Tom Tromey <tom@tromey.com>
10964
10965 * tui/tui-layout.h (enum tui_adjust_result): New.
10966 (class tui_layout_base) <adjust_size>: Return tui_adjust_result.
10967 (class tui_layout_window) <adjust_size>: Return
10968 tui_adjust_result. Rewrite.
10969 (class tui_layout_split) <adjust_size>: Return tui_adjust_result.
10970 * tui/tui-layout.c (tui_layout_split::adjust_size): Update.
10971
c22fef7e
TT
109722020-02-22 Tom Tromey <tom@tromey.com>
10973
10974 * tui/tui-layout.h (class tui_layout_split) <add_split>: Change
10975 parameter and return types.
10976 (class tui_layout_base) <specification>: Add "depth".
10977 (class tui_layout_window) <specification>: Add "depth".
10978 (class tui_layout_split) <specification>: Add "depth".
10979 * tui/tui-layout.c (tui_layout_split::add_split): Change parameter
10980 and return types.
10981 (tui_new_layout_command): Parse sub-layouts.
10982 (_initialize_tui_layout): Update help string.
10983 (tui_layout_window::specification): Add "depth".
10984 (add_layout_command): Update.
10985
ee325b61
TT
109862020-02-22 Tom Tromey <tom@tromey.com>
10987
10988 * NEWS: Add "tui new-layout" item.
10989 * tui/tui-layout.c (add_layout_command): Return cmd_list_element.
10990 Add new-layout command to help text.
10991 (validate_window_name): New function.
10992 (tui_new_layout_command): New function.
10993 (_initialize_tui_layout): Register "new-layout".
10994 (tui_layout_window::specification): New method.
10995 (tui_layout_window::specification): New method.
10996 * tui/tui-layout.h (class tui_layout_base) <specification>: New
10997 method.
10998 (class tui_layout_window) <specification>: New method.
10999 (class tui_layout_split) <specification>: New method.
11000
416eb92d
TT
110012020-02-22 Tom Tromey <tom@tromey.com>
11002
11003 * tui/tui.c (tui_enable): Call tui_set_initial_layout.
11004 * tui/tui-win.c (window_name_completer): Update comment.
11005 * tui/tui-layout.h (class tui_layout_base) <replace_window>:
11006 Declare method.
11007 (class tui_layout_window) <replace_window>: Likewise.
11008 (class tui_layout_split) <replace_window>: Likewise.
11009 (tui_set_layout): Don't declare.
11010 (tui_set_initial_layout): Declare function.
11011 * tui/tui-layout.c (layouts, applied_skeleton, src_regs_layout)
11012 (asm_regs_layout): New globals.
11013 (tui_current_layout, show_layout): Remove.
11014 (tui_set_layout, tui_add_win_to_layout): Rewrite.
11015 (find_layout, tui_apply_layout): New function.
11016 (layout_completer): Remove.
11017 (tui_next_layout): Reimplement.
11018 (tui_next_layout_command): New function.
11019 (tui_set_initial_layout, tui_prev_layout_command): New functions.
11020 (tui_regs_layout): Reimplement.
11021 (tui_regs_layout_command): New function.
11022 (extract_display_start_addr): Rewrite.
11023 (next_layout, prev_layout): Remove.
11024 (tui_layout_window::replace_window): New method.
11025 (tui_layout_split::replace_window): New method.
11026 (destroy_layout): New function.
11027 (layout_list): New global.
11028 (add_layout_command): New function.
11029 (initialize_layouts): Update.
11030 (tui_layout_command): New function.
11031 (_initialize_tui_layout): Install "layout" commands.
11032 * tui/tui-data.h (enum tui_layout_type): Remove.
11033 (tui_current_layout): Don't declare.
11034
0dbc2fc7
TT
110352020-02-22 Tom Tromey <tom@tromey.com>
11036
11037 * tui/tui-regs.c (tui_reg_layout): Remove.
11038 (tui_reg_command): Use tui_regs_layout.
11039 * tui/tui-layout.h (tui_reg_command): Declare.
11040 * tui/tui-layout.c (tui_reg_command): New function.
11041
5afe342e
TT
110422020-02-22 Tom Tromey <tom@tromey.com>
11043
11044 * tui/tui.c (tui_rl_delete_other_windows): Call
11045 tui_remove_some_windows.
11046 * tui/tui-layout.h (class tui_layout_base) <remove_windows>:
11047 Declare method.
11048 (class tui_layout_window) <remove_windows>: New method.
11049 (class tui_layout_split) <remove_windows>: Declare.
11050 (tui_remove_some_windows): Declare.
11051 * tui/tui-layout.c (tui_remove_some_windows): New function.
11052 (tui_layout_split::remove_windows): New method.
11053
427326a8
TT
110542020-02-22 Tom Tromey <tom@tromey.com>
11055
11056 * tui/tui.c (tui_rl_change_windows): Call tui_next_layout.
11057 * tui/tui-layout.h (tui_next_layout): Declare.
11058 * tui/tui-layout.c (tui_next_layout): New function.
11059
3fe12b6d
TT
110602020-02-22 Tom Tromey <tom@tromey.com>
11061
11062 * tui/tui-regs.c (tui_data_window::display_registers_from): Use
11063 correct coordinates.
11064
59b8b5d2
TT
110652020-02-22 Tom Tromey <tom@tromey.com>
11066
11067 * tui/tui-layout.h (tui_add_win_to_layout): Add comment.
11068 * tui/tui-layout.c (tui_add_win_to_layout): Add assert. Remove
11069 DATA_WIN case.
11070
2a3d458b
TT
110712020-02-22 Tom Tromey <tom@tromey.com>
11072
11073 * tui/tui-disasm.c (tui_get_low_disassembly_address): Use
11074 TUI_DISASM_WIN, not tui_win_list.
11075
3f0cbb04
TT
110762020-02-22 Tom Tromey <tom@tromey.com>
11077
11078 * valprint.c (generic_val_print_enum_1)
11079 (val_print_type_code_flags): Style member names.
11080 * rust-lang.c (val_print_struct, rust_print_enum)
11081 (rust_print_struct_def, rust_internal_print_type): Style member
11082 names.
11083 * p-valprint.c (pascal_object_print_value_fields): Style member
11084 names. Only call fprintf_symbol_filtered for static members.
11085 * m2-typeprint.c (m2_record_fields, m2_enum): Style member names.
11086 * f-valprint.c (f_val_print): Style member names.
11087 * f-typeprint.c (f_type_print_base): Style member names.
11088 * cp-valprint.c (cp_print_value_fields): Style member names. Only
11089 call fprintf_symbol_filtered for static members.
11090 (cp_print_class_member): Style member names.
11091 * c-typeprint.c (c_print_type_1, c_type_print_base_1): Style
11092 member names.
11093 * ada-valprint.c (ada_print_scalar): Style enum names.
11094 (ada_val_print_enum): Likewise.
11095 * ada-typeprint.c (print_enum_type): Style enum names.
11096
d4d947ae
TT
110972020-02-21 Tom Tromey <tom@tromey.com>
11098
11099 * psympriv.h (struct partial_symtab): Update comment.
11100
e94e944b
TT
111012020-02-21 Tom Tromey <tromey@adacore.com>
11102
11103 * mips-tdep.h (mips_pc_is_mips16, mips_pc_is_micromips): Parameter
11104 type is CORE_ADDR.
11105
1eb73179
TV
111062020-02-21 Tom de Vries <tdevries@suse.de>
11107
11108 PR gdb/25534
11109 * psymtab.c (partial_symtab::read_dependencies): Don't read dependency
11110 if dependencies[i]->user != NULL.
11111
4f180d53
AT
111122020-02-21 Ali Tamur <tamur@google.com>
11113
11114 * dwarf2/read.c (dwarf2_name): Add null check.
11115
22b6cd70
TT
111162020-02-20 Tom Tromey <tom@tromey.com>
11117
11118 * dwarf2/read.c (dwarf2_find_containing_comp_unit): Use ">", not
11119 ">=", in binary search.
11120 (dwarf2_find_containing_comp_unit): New overload.
11121 (run_test): New self-test.
11122 (_initialize_dwarf2_read): Register new test.
11123
bd0cf5a6
NC
111242020-02-20 Nelson Chu <nelson.chu@sifive.com>
11125
11126 * riscv-tdep.c: Updated since the DECLARE_CSR is changed.
11127 * riscv-tdep.h: Likewise.
11128 * features/riscv/rebuild-csr-xml.sh: Generate the 64bit-csr.xml without
11129 rv32-only CSR.
11130 * features/riscv/64bit-csr.xml: Regenerated.
11131
3f702acd
SDJ
111322020-02-20 Sergio Durigan Junior <sergiodj@redhat.com>
11133 Tom Tromey <tom@tromey.com>
11134
11135 * utils.c (fputs_maybe_filtered): Call 'stream->puts' instead
11136 of 'fputc_unfiltered'.
11137 (putchar_unfiltered): Call 'fputc_unfiltered'.
11138 (fputc_unfiltered): Call 'fputs_unfiltered'.
11139
d13c7322
AB
111402020-02-20 Andrew Burgess <andrew.burgess@embecosm.com>
11141
11142 * config.in: Regenerate.
11143 * configure: Regenerate.
11144 * configure.ac: Add --with-python-libdir option.
11145 * main.c: Use WITH_PYTHON_LIBDIR.
11146
869d8950
TT
111472020-02-19 Tom Tromey <tom@tromey.com>
11148
11149 * symtab.c (general_symbol_info::compute_and_set_names): Use
11150 obstack_strndup. Simplify call to symbol_set_demangled_name.
11151
298e9637
SM
111522020-02-19 Simon Marchi <simon.marchi@efficios.com>
11153
11154 * dwarf2/read.c (allocate_signatured_type_table,
11155 allocate_dwo_unit_table, allocate_type_unit_groups_table,
11156 allocate_dwo_file_hash_table, allocate_dwp_loaded_cutus_table):
11157 Remove objfile parameter, update all callers.
11158
08410482
DE
111592020-02-19 Doug Evans <dje@google.com>
11160
11161 PR rust/25535
11162 * rust-lang.c (rust_print_enum): Apply embedded_offset to
11163 rust_enum_variant calculation.
11164
dfdeeca1
TT
111652020-02-19 Tom Tromey <tromey@adacore.com>
11166
11167 * mips-tdep.h (mips_pc_is_mips): Parameter type is CORE_ADDR.
11168
2ef5453b
TT
111692020-02-19 Tom Tromey <tromey@adacore.com>
11170
11171 * ada-lang.c (cache_symbol): Use obstack_strdup.
11172
9f1528a1
AB
111732020-02-19 Andrew Burgess <andrew.burgess@embecosm.com>
11174
11175 * configure: Regenerate.
11176
d3c22fa8
TT
111772020-02-19 Tom Tromey <tromey@adacore.com>
11178
11179 * python/python.c (do_start_initialization): Use XNEWVEC. Remove
11180 NULL check.
11181
bf84f706
MR
111822020-02-19 Maciej W. Rozycki <macro@wdc.com>
11183
11184 * NEWS: Mention RISC-V GNU/Linux GDBserver support.
11185
d1c9b20f
AB
111862020-02-19 Andrew Burgess <andrew.burgess@embecosm.com>
11187
11188 * arch/riscv.c (struct riscv_gdbarch_features_hasher): Only define
11189 if GDBSERVER is not defined.
11190 (riscv_tdesc_cache): Likewise, also store const target_desc.
11191 (STATIC_IN_GDB): Define.
11192 (riscv_create_target_description): Update declaration with
11193 STATIC_IN_GDB.
11194 (riscv_lookup_target_description): New function, only define if
11195 GDBSERVER is not defined.
11196 * arch/riscv.h (riscv_create_target_description): Declare only
11197 when GDBSERVER is defined.
11198 (riscv_lookup_target_description): New declaration when GDBSERVER
11199 is not defined.
11200 * nat/riscv-linux-tdesc.c (riscv_linux_read_description): Rename to...
11201 (riscv_linux_read_features): ...this, and return
11202 riscv_gdbarch_features instead of target_desc.
11203 * nat/riscv-linux-tdesc.h: Include 'arch/riscv.h'.
11204 (riscv_linux_read_description): Rename to...
11205 (riscv_linux_read_features): ...this.
11206 * riscv-linux-nat.c (riscv_linux_nat_target::read_description):
11207 Update to use riscv_gdbarch_features and
11208 riscv_lookup_target_description.
11209 * riscv-tdep.c (riscv_find_default_target_description): Use
11210 riscv_lookup_target_description instead of
11211 riscv_create_target_description.
11212
373d7ac0
SM
112132020-02-18 Simon Marchi <simon.marchi@efficios.com>
11214
11215 * valprint.c (generic_val_print_enum_1): When printing a flag
11216 enum with value 0 and there is no enumerator with value 0, print
11217 just "0" instead of "(unknown: 0x0)".
11218
b29a2df0
SM
112192020-02-18 Simon Marchi <simon.marchi@efficios.com>
11220
11221 * valprint.c (generic_val_print_enum_1): Print unknown part of
11222 flag enum in hex.
11223
6740f0cc
SM
112242020-02-18 Simon Marchi <simon.marchi@efficios.com>
11225
11226 * dwarf2/read.c (update_enumeration_type_from_children): Allow
11227 flag enums to contain duplicate enumerators.
11228 * valprint.c (generic_val_print_enum_1): Update comment.
11229
edd45eb0
SM
112302020-02-18 Simon Marchi <simon.marchi@efficios.com>
11231
11232 * dwarf2/read.c: Include "count-one-bits.h".
11233 (update_enumeration_type_from_children): If an enumerator has
11234 multiple bits set, don't treat the enumeration as a "flag enum".
11235 * valprint.c (generic_val_print_enum_1): Assert that enumerators
11236 of flag enums have 0 or 1 bit set.
11237
6d0cf446
BE
112382020-02-18 Bernd Edlinger <bernd.edlinger@hotmail.de>
11239
11240 * aarch64-tdep.c (aarch64_displaced_step_copy_insn): Use an explicit
11241 conversion.
11242 * amd64-tdep.c (amd64_displaced_step_copy_insn): Likewise.
11243 * arm-linux-tdep.c (arm_linux_displaced_step_copy_insn): Likewise.
11244 * i386-tdep.c (i386_displaced_step_copy_insn): Likewise.
11245 * rs6000-tdep.c (ppc_displaced_step_copy_insn): Likewise.
11246 * s390-tdep.c (s390_displaced_step_copy_insn): Likewise.
11247
7001c1b7
SM
112482020-02-18 Simon Marchi <simon.marchi@efficios.com>
11249
11250 * MAINTAINERS: Change palmer@sifive.com to palmer@dabbelt.com.
11251
fdb61c6c
SM
112522020-02-14 Simon Marchi <simon.marchi@efficios.com>
11253
11254 * aarch64-tdep.c (aarch64_displaced_step_copy_insn): Use
11255 displaced_step_closure_up.
11256 * aarch64-tdep.h (aarch64_displaced_step_copy_insn): Likewise.
11257 (struct displaced_step_closure_up):
11258 * amd64-tdep.c (amd64_displaced_step_copy_insn): Likewise.
11259 * amd64-tdep.h (amd64_displaced_step_copy_insn): Likewise.
11260 * arm-linux-tdep.c (arm_linux_displaced_step_copy_insn):
11261 Likewise.
11262 * gdbarch.sh (displaced_step_copy_insn): Likewise.
11263 * gdbarch.c, gdbarch.h: Re-generate.
11264 * i386-linux-tdep.c (i386_linux_displaced_step_copy_insn): Use
11265 displaced_step_closure_up.
11266 * i386-tdep.c (i386_displaced_step_copy_insn): Likewise.
11267 * i386-tdep.h (i386_displaced_step_copy_insn): Likewise.
11268 * infrun.h (displaced_step_closure_up): New type alias.
11269 (struct displaced_step_inferior_state) <step_closure>: Change
11270 type to displaced_step_closure_up.
11271 * rs6000-tdep.c (ppc_displaced_step_copy_insn): Use
11272 displaced_step_closure_up.
11273 * s390-tdep.c (s390_displaced_step_copy_insn): Likewise.
11274
a4a38eb4
TT
112752020-02-14 Tom Tromey <tom@tromey.com>
11276
11277 * minidebug.c (gnu_debug_key): New global.
11278 (find_separate_debug_file_in_section): Use it.
11279
e8217e61
SM
112802020-02-14 Simon Marchi <simon.marchi@efficios.com>
11281
11282 * gdbarch.sh (displaced_step_copy_insn): Change return type to an
11283 std::unique_ptr.
11284 * gdbarch.c: Re-generate.
11285 * gdbarch.h: Re-generate.
11286 * infrun.c (displaced_step_prepare_throw): Adjust to std::unique_ptr
11287 change.
11288 * aarch64-tdep.c (aarch64_displaced_step_copy_insn): Change return
11289 type to std::unique_ptr.
11290 * aarch64-tdep.h (aarch64_displaced_step_copy_insn): Likewise.
11291 * amd64-tdep.c (amd64_displaced_step_copy_insn): Likewise.
11292 * amd64-tdep.h (amd64_displaced_step_copy_insn): Likewise.
11293 * arm-linux-tdep.c (arm_linux_displaced_step_copy_insn): Likewise.
11294 * i386-linux-tdep.c (i386_linux_displaced_step_copy_insn): Likewise.
11295 * i386-tdep.c (i386_displaced_step_copy_insn): Likewise.
11296 * i386-tdep.h (i386_displaced_step_copy_insn): Likewise.
11297 * rs6000-tdep.c (ppc_displaced_step_copy_insn): Likewise.
11298 * s390-tdep.c (s390_displaced_step_copy_insn): Likewise.
11299
d8d83535
SM
113002020-02-14 Simon Marchi <simon.marchi@efficios.com>
11301
11302 * infrun.c (get_displaced_step_closure_by_addr): Adjust to
11303 std::unique_ptr.
11304 (displaced_step_clear): Rename to...
11305 (displaced_step_reset): ... this. Just call displaced->reset ().
11306 (displaced_step_clear_cleanup): Rename to...
11307 (displaced_step_reset_cleanup): ... this.
11308 (displaced_step_prepare_throw): Adjust to std::unique_ptr.
11309 (displaced_step_fixup): Likewise.
11310 (resume_1): Likewise.
11311 (handle_inferior_event): Restore child's memory before calling
11312 displaced_step_fixup on the parent.
11313 * infrun.h (displaced_step_inferior_state) <reset>: Adjust
11314 to std::unique_ptr.
11315 <step_closure>: Change type to std::unique_ptr.
11316
5f661e03
SM
113172020-02-14 Simon Marchi <simon.marchi@efficios.com>
11318
11319 * arm-tdep.c: Include count-one-bits.h.
11320 (cleanup_block_store_pc): Use count_one_bits.
11321 (cleanup_block_load_pc): Use count_one_bits.
11322 (arm_copy_block_xfer): Use count_one_bits.
11323 (thumb2_copy_block_xfer): Use count_one_bits.
11324 (thumb_copy_pop_pc_16bit): Use count_one_bits.
11325 * arch/arm-get-next-pcs.c: Include count-one-bits.h.
11326 (thumb_get_next_pcs_raw): Use count_one_bits.
11327 (arm_get_next_pcs_raw): Use count_one_bits_l.
11328 * arch/arm.c (bitcount): Remove.
11329 * arch/arm.h (bitcount): Remove.
11330
8084e579
TT
113312020-02-14 Tom Tromey <tromey@adacore.com>
11332
11333 * dwarf2/frame-tailcall.c (dwarf2_tailcall_sniffer_first):
11334 Update.
11335 * dwarf2/loc.h (call_site_find_chain): Return unique_xmalloc_ptr.
11336 * dwarf2/loc.c (call_site_find_chain_1): Return
11337 unique_xmalloc_ptr.
11338 (call_site_find_chain): Likewise.
11339
258bf0ee
RB
113402020-02-14 Richard Biener <rguenther@suse.de>
11341
11342 * dwarf2/read.c (lnp_state_machine::handle_special_opcode): Apply CSE
11343 on expression with division operators.
11344
f98a8458
AKS
113452020-02-13 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
11346
11347 * MAINTAINERS (Write After Approval): Adding myself.
11348
d1437c0e
TT
113492020-02-12 Tom Tromey <tom@tromey.com>
11350
11351 * event-loop.c (event_data, gdb_event, event_handler_func):
11352 Remove.
11353
3d4560f7
TT
113542020-02-12 Tom Tromey <tom@tromey.com>
11355
11356 * dwarf2/frame.c (dwarf2_frame_bfd_data): New global.
11357 (dwarf2_frame_objfile_data): Add comment.
11358 (find_comp_unit, set_comp_unit): New functions.
11359 (dwarf2_frame_find_fde): Use find_comp_unit.
11360 (dwarf2_build_frame_info): Use set_comp_unit.
11361
21982304
TT
113622020-02-12 Tom Tromey <tom@tromey.com>
11363
11364 * dwarf2/frame.c (struct comp_unit) <objfile>: Remove.
11365 (comp_unit): Don't initialize objfile.
11366 (execute_cfa_program): Add text_offset parameter.
11367 (execute_cfa_program_test, dwarf2_fetch_cfa_info)
11368 (dwarf2_frame_cache): Update.
11369 (dwarf2_build_frame_info): Don't set "objfile" member.
11370
4debb237
TT
113712020-02-12 Tom Tromey <tom@tromey.com>
11372
11373 * dwarf2/frame.c (decode_frame_entry_1): Add gdbarch parameter.
11374 (decode_frame_entry): Likewise.
11375 (dwarf2_build_frame_info): Update.
11376
0d404d44
TT
113772020-02-12 Tom Tromey <tom@tromey.com>
11378
11379 * dwarf2/frame.c (struct comp_unit) <obstack>: New member.
11380 (decode_frame_entry_1): Use the comp_unit obstack.
11381
a7a3ae5c
TT
113822020-02-12 Tom Tromey <tom@tromey.com>
11383
11384 * dwarf2/frame.c (struct comp_unit): Add initializers and
11385 constructor.
11386 (dwarf2_frame_objfile_data): Store a comp_unit.
11387 (dwarf2_frame_find_fde): Update.
11388 (dwarf2_build_frame_info): Use "new".
11389
a9d65418
TT
113902020-02-12 Tom Tromey <tom@tromey.com>
11391
11392 * dwarf2/frame.c (struct dwarf2_fde_table): Remove.
11393 (dwarf2_fde_table): Typedef for std::vector.
11394 (dwarf2_frame_objfile_data): Remove the deleter. Now static.
11395 (dwarf2_frame_find_fde, add_fde, decode_frame_entry_1)
11396 (decode_frame_entry): Update.
11397 (dwarf2_build_frame_info): Use "new".
11398
7559c217
CB
113992020-02-12 Christian Biesinger <cbiesinger@google.com>
11400
11401 * arm-tdep.c (arm_gdbarch_init): Update.
11402 * arm-tdep.h (struct gdbarch_tdep) <have_fpa_registers,
11403 have_wmmx_registers, have_vfp_pseudos, have_neon_pseudos,
11404 have_neon, is_m>: Change to bool.
11405
aeefc73c
CB
114062020-02-12 Christian Biesinger <cbiesinger@google.com>
11407
11408 * arm-tdep.c (arm_dump_tdep): Print more fields of tdep.
11409
d27b8e5f
TT
114102020-02-12 Tom Tromey <tom@tromey.com>
11411
11412 * dwarf2/loc.c (struct dwarf_expr_baton): Remove.
11413
cd5900f3
HD
114142020-02-12 Hannes Domani <ssbssa@yahoo.de>
11415
11416 * windows-tdep.c (struct windows_gdbarch_data): Add tib_ptr_type.
11417 (windows_get_tlb_type): Use windows_gdbarch_data->tib_ptr_type.
11418
f056b22b
TT
114192020-02-11 Tom Tromey <tom@tromey.com>
11420
11421 * psymtab.h: Update comment.
11422
f92ff6b5
TT
114232020-02-11 Tom Tromey <tom@tromey.com>
11424
11425 * gdb_obstack.h (struct auto_obstack): Use
11426 DISABLE_COPY_AND_ASSIGN.
11427
3fd6912b
TT
114282020-02-11 Tom Tromey <tom@tromey.com>
11429
11430 * dwarf2/frame.h (struct objfile): Don't forward declare.
11431
69ed9b74
CB
114322020-02-11 Christian Biesinger <cbiesinger@google.com>
11433
11434 * cris-tdep.c (cris_supply_gregset): Change signature to match
11435 what struct regset expects.
11436 (cris_regset): New struct.
11437 (fetch_core_registers): Remove.
11438 (cris_iterate_over_regset_sections): New function.
11439 (_initialize_cris_tdep): Don't call deprecated_add_core_fns.
11440 (cris_gdbarch_init): Call set_gdbarch_iterate_over_regset_sections.
11441
bda874f6
CB
114422020-02-11 Christian Biesinger <cbiesinger@google.com>
11443
11444 * arch/arm.h (enum gdb_regnum): Add comment for the FP0..7
11445 registers.
11446
754e1564
CB
114472020-02-11 Christian Biesinger <cbiesinger@google.com>
11448
11449 * arm-tdep.c (arm_dump_tdep): Add \n in fprintf.
11450
8ddd8e0e
SM
114512020-02-11 Simon Marchi <simon.marchi@efficios.com>
11452
11453 * configure: Re-generate.
11454
898e7f60
SM
114552020-02-11 Simon Marchi <simon.marchi@efficios.com>
11456
11457 * configure: Re-generate.
11458
58df732b
SM
114592020-02-11 Simon Marchi <simon.marchi@efficios.com>
11460
11461 * acinclude: Update warning.m4 path.
11462 * warning.m4: Move to gdbsupport.
11463
da5bd37e
TT
114642020-02-11 Tom Tromey <tromey@adacore.com>
11465
11466 * remote.c (remote_console_output): Update.
11467 * printcmd.c (printf_command): Update.
11468 * event-loop.c (gdb_wait_for_event): Update.
11469 * linux-nat.c (sigchld_handler): Update.
11470 * remote-sim.c (gdb_os_write_stdout): Update.
11471 (gdb_os_flush_stdout): Update.
11472 (gdb_os_flush_stderr): Update.
11473 (gdb_os_write_stderr): Update.
11474 * exceptions.c (print_exception): Update.
11475 * remote-fileio.c (remote_fileio_func_read): Update.
11476 (remote_fileio_func_write): Update.
11477 * tui/tui.c (tui_enable): Update.
11478 * tui/tui-interp.c (tui_interp::init): Update.
11479 * utils.c (init_page_info): Update.
11480 (putchar_unfiltered, fputc_unfiltered): Update.
11481 (gdb_flush): Update.
11482 (emit_style_escape): Update.
11483 (flush_wrap_buffer, fputs_maybe_filtered): Update.
11484 * ui-file.c (ui_file_isatty, ui_file_read, ui_file_write)
11485 (ui_file_write_async_safe, ui_file_flush, ui_file_puts): Remove.
11486 (stderr_file::write): Update.
11487 (stderr_file::puts): Update.
11488 * ui-file.h (ui_file_isatty, ui_file_write)
11489 (ui_file_write_async_safe, ui_file_read, ui_file_flush)
11490 (ui_file_puts): Don't declare.
11491
85f0dd3c
TV
114922020-02-10 Tom de Vries <tdevries@suse.de>
11493
11494 * dwarf2/read.c (process_psymtab_comp_unit_reader): Cast concat NULL
11495 sentinel to char *.
11496
2e927613
TV
114972020-02-09 Tom de Vries <tdevries@suse.de>
11498
11499 * dwarf2read.c (process_psymtab_comp_unit_reader): Append CU offset to
11500 filename if it matches "<artificial>".
11501
6bafc845
HD
115022020-02-09 Hannes Domani <ssbssa@yahoo.de>
11503
11504 * windows-tdep.c (struct enum_value_name): New struct.
11505 (create_enum): New function.
11506 (windows_get_siginfo_type): Create and use enum types.
11507
7928d571
HD
115082020-02-09 Hannes Domani <ssbssa@yahoo.de>
11509
11510 * NEWS: Mention $_siginfo support for Windows.
11511 * windows-nat.c (handle_exception): Set siginfo_er.
11512 (windows_nat_target::mourn_inferior): Reset siginfo_er.
11513 (windows_xfer_siginfo): New function.
11514 (windows_nat_target::xfer_partial): Call windows_xfer_siginfo.
11515 * windows-tdep.c (struct windows_gdbarch_data): New struct.
11516 (init_windows_gdbarch_data): New function.
11517 (get_windows_gdbarch_data): New function.
11518 (windows_get_siginfo_type): New function.
11519 (windows_init_abi): Register windows_get_siginfo_type.
11520 (_initialize_windows_tdep): Register init_windows_gdbarch_data.
11521
6751ebae
TT
115222020-02-08 Tom Tromey <tom@tromey.com>
11523
11524 * dwarf2/read.c (class cutu_reader) <cutu_reader,
11525 init_tu_and_read_dwo_dies>: Remove "keep" parameter.
11526 <keep>: Declare method.
11527 <m_keep>: Remove member.
11528 <~cutu_reader>: Remove.
11529 (cutu_reader::init_tu_and_read_dwo_dies): Update.
11530 (cutu_reader::cutu_reader): Update.
11531 (cutu_reader::keep): Rename from ~cutu_reader.
11532 (process_psymtab_comp_unit, build_type_psymtabs_1)
11533 (process_skeletonless_type_unit, load_partial_comp_unit)
11534 (load_full_comp_unit, dwarf2_read_addr_index)
11535 (read_signatured_type): Update.
11536
135f5437
TT
115372020-02-08 Tom Tromey <tom@tromey.com>
11538
11539 * dwarf2/read.c (process_psymtab_comp_unit_reader): Remove
11540 "want_partial_unit" parameter.
11541 (process_psymtab_comp_unit): Change want_partial_unit to bool.
11542 Inline check for DW_TAG_partial_unit.
11543 (dwarf2_build_psymtabs_hard, scan_partial_symbols): Update.
11544
9f66ff1c
TT
115452020-02-08 Tom Tromey <tom@tromey.com>
11546
11547 * dwarf2/read.c (read_n_bytes, read_direct_string): Move to
11548 read.c.
11549 * dwarf2/leb.h (read_n_bytes, read_direct_string): Move from
11550 read.c.
11551
c8a7a66f
TT
115522020-02-08 Tom Tromey <tom@tromey.com>
11553
11554 * dwarf2/read.c (read_address): Move to comp-unit.c.
11555 (dwarf2_rnglists_process, dwarf2_ranges_process)
11556 (read_attribute_value, dwarf_decode_lines_1)
11557 (var_decode_location, decode_locdesc): Update.
11558 * dwarf2/comp-unit.c (comp_unit_head::read_address): Move from
11559 read.c. Remove "cu" parameter.
11560 * dwarf2/comp-unit.h (struct comp_unit_head) <read_address>: New
11561 method.
11562
8266302d
TT
115632020-02-08 Tom Tromey <tom@tromey.com>
11564
11565 * dwarf2/read.c (read_attribute_value, read_indirect_string)
11566 (read_indirect_line_string): Update.
11567 * dwarf2/comp-unit.c (read_offset): Remove.
11568 (read_comp_unit_head): Update.
11569 * dwarf2/comp-unit.h (struct comp_unit_head) <read_offset>: New
11570 method.
11571 (read_offset): Don't declare.
11572
4057dfde
TT
115732020-02-08 Tom Tromey <tom@tromey.com>
11574
11575 * Makefile.in (COMMON_SFILES): Add dwarf2/comp-unit.c.
11576 * dwarf2/read.c (struct comp_unit_head): Move to
11577 dwarf2/comp-unit.h.
11578 (enum class rcuh_kind): Move to comp-unit.h.
11579 (get_cu_length, offset_in_cu_p): Now methods on comp_unit_head.
11580 (read_comp_unit_head, error_check_comp_unit_head)
11581 (read_and_check_comp_unit_head): Move to comp-unit.c.
11582 (read_offset, dwarf_unit_type_name): Likewise.
11583 (create_debug_type_hash_table, read_cutu_die_from_dwo)
11584 (cutu_reader::cutu_reader, read_call_site_scope)
11585 (find_partial_die, follow_die_offset): Update.
11586 * dwarf2/comp-unit.h: New file, from dwarf2read.c.
11587
24aa364d
TT
115882020-02-08 Tom Tromey <tom@tromey.com>
11589
11590 * dwarf2/read.c (read_offset_1): Move to leb.c.
11591 (read_abbrev_offset, read_offset, dwarf_decode_line_header)
11592 (dwarf_decode_macro_bytes): Update.
11593 * dwarf2/leb.c (read_offset): Rename; move from read.c.
11594 * dwarf2/leb.h (read_offset): Declare.
11595
2c7d5afc
TT
115962020-02-08 Tom Tromey <tom@tromey.com>
11597
11598 * dwarf2/read.c (dwarf2_section_size): Remove.
11599 (error_check_comp_unit_head, dwarf2_symbol_mark_computed):
11600 Update.
11601 * dwarf2/section.h (struct dwarf2_section_info) <get_size>: New method.
11602
4075cb26
TT
116032020-02-08 Tom Tromey <tom@tromey.com>
11604
11605 * dwarf2/read.c (read_initial_length): Move to leb.c.
11606 * dwarf2/leb.h (read_initial_length): Declare.
11607 * dwarf2/leb.c (read_initial_length): Move from read.c. Add
11608 handle_nonstd parameter.
11609 * dwarf2/frame.c (read_initial_length): Remove.
11610 (decode_frame_entry_1): Update.
11611
09ba997f
TT
116122020-02-08 Tom Tromey <tom@tromey.com>
11613
11614 * dwarf2/loc.c (dwarf2_find_location_expression)
11615 (dwarf_evaluate_loc_desc::get_tls_address)
11616 (dwarf_evaluate_loc_desc::push_dwarf_reg_entry_value)
11617 (rw_pieced_value, dwarf2_evaluate_loc_desc_full)
11618 (dwarf2_locexpr_baton_eval, dwarf2_evaluate_property)
11619 (dwarf2_compile_property_to_c)
11620 (dwarf2_loc_desc_get_symbol_read_needs)
11621 (dwarf2_compile_expr_to_ax, locexpr_describe_location)
11622 (locexpr_tracepoint_var_ref, locexpr_generate_c_location)
11623 (loclist_describe_location, loclist_tracepoint_var_ref)
11624 (loclist_generate_c_location): Update.
11625 * compile/compile-loc2c.c (do_compile_dwarf_expr_to_c): Update.
11626 * dwarf2/loc.h (dwarf2_per_cu_objfile, dwarf2_per_cu_addr_size)
11627 (dwarf2_per_cu_ref_addr_size, dwarf2_per_cu_offset_size)
11628 (dwarf2_per_cu_text_offset, dwarf2_version): Don't declare.
11629 * dwarf2/read.c (dwarf2_per_cu_data::objfile)
11630 (dwarf2_per_cu_data::addr_size)
11631 (dwarf2_per_cu_data::ref_addr_size)
11632 (dwarf2_per_cu_data::text_offset)
11633 (dwarf2_per_cu_data::addr_type): Now methods.
11634 (per_cu_header_read_in): Make per_cu "const".
11635 (dwarf2_version): Remove.
11636 (dwarf2_per_cu_data::int_type): Now a method.
11637 (dwarf2_per_cu_data::_addr_sized_int_type): Likewise.
11638 (set_die_type, read_array_type, read_subrange_index_type)
11639 (read_tag_string_type, read_subrange_type): Update.
11640 * dwarf2/read.h (struct dwarf2_per_cu_data) <addr_size,
11641 offset_size, ref_addr_size, text_offset, addr_type, version,
11642 objfile, int_type, addr_sized_int_type>: Declare methods.
11643
96c738c0
TT
116442020-02-08 Tom Tromey <tom@tromey.com>
11645
11646 * dwarf2/read.h (struct dwarf2_per_cu_data) <imported_symtabs>:
11647 Move earlier.
11648
8fdd972c
TT
116492020-02-08 Tom Tromey <tom@tromey.com>
11650
11651 * dwarf2/read.h (dwarf_line_debug): Declare.
11652 * Makefile.in (COMMON_SFILES): Add dwarf2/line-header.c.
11653 * dwarf2/read.c: Move line_header code to new files.
11654 (dwarf_line_debug): No longer static.
11655 * dwarf2/line-header.c: New file.
11656 * dwarf2/line-header.h: New file.
11657
03075812
TT
116582020-02-08 Tom Tromey <tom@tromey.com>
11659
11660 * dwarf2/read.c (struct line_header) <file_full_name,
11661 file_file_name>: Return unique_xmalloc_ptr.
11662 (line_header::file_file_name): Update.
11663 (line_header::file_full_name): Update.
11664 (dw2_get_file_names_reader): Update.
11665 (macro_start_file): Update.
11666
bb822404
TT
116672020-02-08 Tom Tromey <tom@tromey.com>
11668
11669 * dwarf2/read.c (struct line_header) <file_full_name,
11670 file_file_name>: Declare methods.
11671 (dw2_get_file_names_reader): Update.
11672 (file_file_name): Now a method.
11673 (file_full_name): Likewise.
11674 (macro_start_file): Update.
11675
009b64fc
TT
116762020-02-08 Tom Tromey <tom@tromey.com>
11677
11678 * dwarf2/read.c (dwarf_always_disassemble)
11679 (show_dwarf_always_disassemble): Move to loc.c.
11680 (_initialize_dwarf2_read): Move "always-disassemble" registration
11681 to loc.c.
11682 * dwarf2/read.h (dwarf_always_disassemble): Don't declare.
11683 * dwarf2/loc.c (dwarf_always_disassemble): Move from read.c. Now
11684 static.
11685 (show_dwarf_always_disassemble): Move from read.c.
11686 (_initialize_dwarf2loc): Move always-disassemble from read.c.
11687
5895093f
TT
116882020-02-08 Tom Tromey <tom@tromey.com>
11689
11690 * dwarf2/read.c (~dwarf2_per_objfile): Update.
11691 (create_quick_file_names_table): Return htab_up.
11692 (dw2_get_file_names_reader, dw2_forget_cached_source_info):
11693 Update.
11694 * dwarf2/read.h (struct dwarf2_per_objfile)
11695 <quick_file_names_table>: Now htab_up.
11696
b3b32279
TT
116972020-02-08 Tom Tromey <tom@tromey.com>
11698
11699 * dwarf2/abbrev.c (abbrev_table::read): Simplify.
11700
1d33d811
TT
117012020-02-08 Tom Tromey <tom@tromey.com>
11702
11703 * dwarf2/abbrev.c (abbrev_table): Move constructor from header.
11704 Rewrite.
11705 (abbrev_table::add_abbrev, abbrev_table::lookup_abbrev): Rewrite.
11706 * dwarf2/abbrev.h (struct abbrev_info) <next>: Remove.
11707 (abbrev_table::abbrev_table): No longer inline.
11708 (ABBREV_HASH_SIZE): Remove.
11709 (abbrev_table::m_abbrevs): Now an htab_up.
11710
86de1d91
TT
117112020-02-08 Tom Tromey <tom@tromey.com>
11712
11713 * dwarf2/read.c (read_cutu_die_from_dwo): Update.
11714 (cutu_reader): Update.
11715 (build_type_psymtabs_1): Update.
11716 * dwarf2/abbrev.c (abbrev_table::read): Rename.
11717 (abbrev_table::alloc_abbrev): Update.
11718 * dwarf2/abbrev.h (abbrev_table_up): Move earlier.
11719 (abbrev_table::read): New static method, renamed from
11720 abbrev_table_read_table.
11721 (abbrev_table::alloc_abbrev)
11722 (abbrev_table::add_abbrev): Now private.
11723 (abbrev_table::abbrev_table): Now private.
11724 (abbrev_table::m_abbrev_obstack): Now private. Rename.
11725
0335378b
TT
117262020-02-08 Tom Tromey <tom@tromey.com>
11727
11728 * dwarf2/read.c (set_die_type, get_die_type_at_offset): Update.
11729 * dwarf2/read.h (struct dwarf2_per_objfile) <die_type_hash>: Now
11730 htab_up.
11731
48b490f2
TT
117322020-02-08 Tom Tromey <tom@tromey.com>
11733
11734 * dwarf2/read.c (struct dwp_file) <loaded_cus, loaded_tus>: Now
11735 htab_up.
11736 (lookup_dwo_unit_in_dwp): Update.
11737 (allocate_dwp_loaded_cutus_table): Return htab_up. Don't allocate
11738 on obstack.
11739
bc68fb19
TT
117402020-02-08 Tom Tromey <tom@tromey.com>
11741
11742 * dwarf2/read.c (allocate_dwo_file_hash_table): Don't allocate on
11743 obstack.
11744
d15acc42
TT
117452020-02-08 Tom Tromey <tom@tromey.com>
11746
11747 * dwarf2/read.c (~dwarf2_per_objfile): Don't delete
11748 line_header_hash.
11749 (handle_DW_AT_stmt_list): Update. Don't allocate on obstack.
11750 * dwarf2/read.h (struct dwarf2_per_objfile) <line_header_hash>:
11751 Change type to htab_up.
11752
eaa5fa8b
TT
117532020-02-08 Tom Tromey <tom@tromey.com>
11754
11755 * dwarf2/read.c (allocate_type_unit_groups_table): Return
11756 htab_up. Don't allocate on obstack.
11757 (get_type_unit_group, dwarf2_build_psymtabs_hard): Update.
11758 * dwarf2/read.h (struct dwarf2_per_objfile) <type_unit_groups>:
11759 Change type to htab_up.
11760
b0b6a987
TT
117612020-02-08 Tom Tromey <tom@tromey.com>
11762
11763 * dwarf2/read.h (struct dwarf2_per_objfile) <signatured_types>:
11764 Change type to htab_up.
11765 * dwarf2/read.c (create_signatured_type_table_from_index)
11766 (create_signatured_type_table_from_debug_names)
11767 (create_all_type_units, add_type_unit)
11768 (lookup_dwo_signatured_type, lookup_signatured_type)
11769 (process_skeletonless_type_unit): Update.
11770 (create_debug_type_hash_table, create_debug_types_hash_table):
11771 Change type of types_htab.
11772 (allocate_signatured_type_table, allocate_dwo_unit_table): Return
11773 htab_up. Don't allocate on obstack.
11774 (create_cus_hash_table): Change type of cus_htab parameter.
11775 (struct dwo_file) <cus, tus>: Now htab_up.
11776 (lookup_dwo_signatured_type, lookup_dwo_cutu)
11777 (process_dwo_file_for_skeletonless_type_units, lookup_dwo_cutu)
11778 (queue_and_load_all_dwo_tus): Update.
11779 * dwarf2/index-write.c (write_gdbindex): Update.
11780 (write_debug_names): Update.
11781
39856def
TT
117822020-02-08 Tom Tromey <tom@tromey.com>
11783
11784 * dwarf2/read.h (struct dwarf2_queue_item): Move from
11785 dwarf2/read.c. Remove "next" member. Add constructor ntad
11786 destructor.
11787 (struct dwarf2_per_objfile) <queue>: New member.
11788 * dwarf2/read.c (struct dwarf2_queue_item): Move to
11789 dwarf2/read.h.
11790 (dwarf2_queue, dwarf2_queue_tail): Remove.
11791 (class dwarf2_queue_guard): Add parameter to constructor. Use
11792 DISABLE_COPY_AND_ASSIGN.
11793 <m_per_objfile>: New member.
11794 <~dwarf2_queue_guard>: Rewrite.
11795 (dw2_do_instantiate_symtab, queue_comp_unit, process_queue):
11796 Update.
11797 (~dwarf2_queue_item): New.
11798
3e225074
TT
117992020-02-08 Tom Tromey <tom@tromey.com>
11800
11801 * dwarf2/read.c (struct die_info) <has_children>: New member.
11802 (dw2_get_file_names_reader): Remove has_children.
11803 (dw2_get_file_names): Update.
11804 (read_cutu_die_from_dwo): Remove has_children.
11805 (cutu_reader::init_tu_and_read_dwo_dies)
11806 (cutu_reader::cutu_reader): Update.
11807 (process_psymtab_comp_unit_reader, build_type_psymtabs_reader):
11808 Remove has_children.
11809 (build_type_psymtabs_1, process_skeletonless_type_unit)
11810 (load_partial_comp_unit, load_full_comp_unit): Update.
11811 (create_dwo_cu_reader): Remove has_children.
11812 (create_cus_hash_table, read_die_and_children): Update.
11813 (read_full_die_1,read_full_die): Remove has_children.
11814 (read_signatured_type): Update.
11815 (class cutu_reader) <has_children>: Remove.
11816
82ca8957
TT
118172020-02-08 Tom Tromey <tom@tromey.com>
11818
11819 * dwarf2/expr.c: Rename from dwarf2expr.c.
11820 * dwarf2/expr.h: Rename from dwarf2expr.h.
11821 * dwarf2/frame-tailcall.c: Rename from dwarf2-frame-tailcall.c.
11822 * dwarf2/frame-tailcall.h: Rename from dwarf2-frame-tailcall.h.
11823 * dwarf2/frame.c: Rename from dwarf2-frame.c.
11824 * dwarf2/frame.h: Rename from dwarf2-frame.h.
11825 * dwarf2/index-cache.c: Rename from dwarf-index-cache.c.
11826 * dwarf2/index-cache.h: Rename from dwarf-index-cache.h.
11827 * dwarf2/index-common.c: Rename from dwarf-index-common.c.
11828 * dwarf2/index-common.h: Rename from dwarf-index-common.h.
11829 * dwarf2/index-write.c: Rename from dwarf-index-write.c.
11830 * dwarf2/index-write.h: Rename from dwarf-index-write.h.
11831 * dwarf2/loc.c: Rename from dwarf2loc.c.
11832 * dwarf2/loc.h: Rename from dwarf2loc.h.
11833 * dwarf2/read.c: Rename from dwarf2read.c.
11834 * dwarf2/read.h: Rename from dwarf2read.h.
11835 * dwarf2/abbrev.c, aarch64-tdep.c, alpha-tdep.c,
11836 amd64-darwin-tdep.c, arc-tdep.c, arm-tdep.c, bfin-tdep.c,
11837 compile/compile-c-symbols.c, compile/compile-cplus-symbols.c,
11838 compile/compile-loc2c.c, cris-tdep.c, csky-tdep.c, findvar.c,
11839 gdbtypes.c, guile/scm-type.c, h8300-tdep.c, hppa-bsd-tdep.c,
11840 hppa-linux-tdep.c, i386-darwin-tdep.c, i386-linux-tdep.c,
11841 i386-tdep.c, iq2000-tdep.c, m32c-tdep.c, m68hc11-tdep.c,
11842 m68k-tdep.c, microblaze-tdep.c, mips-tdep.c, mn10300-tdep.c,
11843 msp430-tdep.c, nds32-tdep.c, nios2-tdep.c, or1k-tdep.c,
11844 riscv-tdep.c, rl78-tdep.c, rs6000-tdep.c, rx-tdep.c, s12z-tdep.c,
11845 s390-tdep.c, score-tdep.c, sh-tdep.c, sparc-linux-tdep.c,
11846 sparc-tdep.c, sparc64-linux-tdep.c, sparc64-tdep.c, tic6x-tdep.c,
11847 tilegx-tdep.c, v850-tdep.c, xstormy16-tdep.c, xtensa-tdep.c:
11848 Update.
11849 * Makefile.in (COMMON_SFILES): Update.
11850 (HFILES_NO_SRCDIR): Update.
11851
9e35d499
TT
118522020-02-08 Tom Tromey <tom@tromey.com>
11853
11854 * dwarf2read.c (struct die_reader_specs) <comp_dir>: Remove.
11855 (init_cu_die_reader, read_cutu_die_from_dwo): Update.
11856
1eba2311
TT
118572020-02-08 Tom Tromey <tom@tromey.com>
11858
11859 * dwarf2read.h (struct die_info): Don't declare.
11860
e41c2da2
TT
118612020-02-08 Tom Tromey <tom@tromey.com>
11862
11863 * dwarf2read.h (die_info_ptr): Remove typedef.
11864
4fc6c0d5
TT
118652020-02-08 Tom Tromey <tom@tromey.com>
11866
11867 * dwarf2read.c (read_call_site_scope)
11868 (handle_data_member_location, dwarf2_add_member_fn)
11869 (mark_common_block_symbol_computed, read_common_block)
11870 (attr_to_dynamic_prop, partial_die_info::read)
11871 (var_decode_location, dwarf2_fetch_die_loc_sect_off)
11872 (dwarf2_symbol_mark_computed, set_die_type): Update.
11873 * dwarf2/attribute.h (struct attribute) <form_is_block>: Declare
11874 method.
11875 (attr_form_is_block): Don't declare.
11876 * dwarf2/attribute.c (attribute::form_is_block): Now a method.
11877
cd6c91b4
TT
118782020-02-08 Tom Tromey <tom@tromey.com>
11879
11880 * dwarf2read.c (dwarf2_find_base_address, )
11881 (read_call_site_scope, rust_containing_type)
11882 (dwarf2_get_pc_bounds, dwarf2_record_block_ranges)
11883 (handle_data_member_location, dwarf2_add_member_fn)
11884 (get_alignment, read_structure_type, process_structure_scope)
11885 (mark_common_block_symbol_computed, read_common_block)
11886 (read_tag_string_type, attr_to_dynamic_prop, read_subrange_type)
11887 (partial_die_info::read, read_attribute_value, new_symbol)
11888 (lookup_die_type, dwarf2_get_ref_die_offset)
11889 (dwarf2_get_attr_constant_value, follow_die_ref_or_sig)
11890 (dwarf2_fetch_die_loc_sect_off, get_DW_AT_signature_type)
11891 (dwarf2_symbol_mark_computed): Update.
11892 * dwarf2/attribute.h (struct attribute) <value_as_address,
11893 form_is_section_offset, form_is_constant, form_is_ref>: Declare
11894 methods.
11895 (value_as_address, attr_form_is_section_offset)
11896 (attr_form_is_constant, attr_form_is_ref): Don't declare.
11897 * dwarf2/attribute.c (attribute::value_as_address)
11898 (attribute::form_is_section_offset, attribute::form_is_constant)
11899 (attribute::form_is_ref): Now methods.
11900
162dce55
TT
119012020-02-08 Tom Tromey <tom@tromey.com>
11902
11903 * dwarf2read.c (struct attribute, DW_STRING)
11904 (DW_STRING_IS_CANONICAL, DW_UNSND, DW_BLOCK, DW_SND, DW_ADDR)
11905 (DW_SIGNATURE, struct dwarf_block, attr_value_as_address)
11906 (attr_form_is_block, attr_form_is_section_offset)
11907 (attr_form_is_constant, attr_form_is_ref): Move.
11908 * dwarf2/attribute.h: New file.
11909 * dwarf2/attribute.c: New file, from dwarf2read.c.
11910 * Makefile.in (COMMON_SFILES): Add dwarf2/attribute.c.
11911
3054dd54
TT
119122020-02-08 Tom Tromey <tom@tromey.com>
11913
11914 * dwarf2read.c (abbrev_table_up, struct abbrev_info)
11915 (struct attr_abbrev, ABBREV_HASH_SIZE, struct abbrev_table):
11916 Move.
11917 (read_cutu_die_from_dwo, build_type_psymtabs_1): Update.
11918 (abbrev_table::alloc_abbrev, abbrev_table::add_abbrev)
11919 (abbrev_table::lookup_abbrev, abbrev_table_read_table): Move to
11920 abbrev.c.
11921 * dwarf2/abbrev.h: New file.
11922 * dwarf2/abbrev.c: New file, from dwarf2read.c.
11923 * Makefile.in (COMMON_SFILES): Add dwarf2/abbrev.c.
11924
96b79293
TT
119252020-02-08 Tom Tromey <tom@tromey.com>
11926
11927 * dwarf2read.c (dwarf2_section_buffer_overflow_complaint)
11928 (dwarf2_section_size, dwarf2_get_section_info)
11929 (create_signatured_type_table_from_debug_names)
11930 (create_addrmap_from_aranges, read_debug_names_from_section)
11931 (get_gdb_index_contents_from_section, read_comp_unit_head)
11932 (error_check_comp_unit_head, read_abbrev_offset)
11933 (create_debug_type_hash_table, init_cu_die_reader)
11934 (read_cutu_die_from_dwo, dwarf2_build_psymtabs_hard)
11935 (read_comp_units_from_section, create_cus_hash_table)
11936 (create_dwp_hash_table, create_dwo_unit_in_dwp_v1)
11937 (create_dwp_v2_section, dwarf2_rnglists_process)
11938 (dwarf2_ranges_process, read_die_and_siblings, read_full_die)
11939 (abbrev_table_read_table, read_indirect_string_at_offset_from)
11940 (read_indirect_string_from_dwz, read_addr_index_1)
11941 (read_str_index, dwarf_decode_line_header, skip_form_bytes)
11942 (dwarf_decode_macro_bytes, dwarf_decode_macros)
11943 (fill_in_loclist_baton): Update.
11944 * dwarf2/section.h (struct dwarf2_section_info) <get_name,
11945 get_containing_section, get_bfd_owner, get_bfd_section,
11946 get_file_name, get_id, get_flags, empty, read>: Declare methods.
11947 (dwarf2_read_section, get_section_name, get_section_file_name)
11948 (get_containing_section, get_section_bfd_owner)
11949 (get_section_bfd_section, get_section_name, get_section_file_name)
11950 (get_section_id, get_section_flags, dwarf2_section_empty_p): Don't
11951 declare.
11952 * dwarf2/section.c (dwarf2_section_info::get_containing_section)
11953 (dwarf2_section_info::get_bfd_owner)
11954 (dwarf2_section_info::get_bfd_section)
11955 (dwarf2_section_info::get_name)
11956 (dwarf2_section_info::get_file_name, dwarf2_section_info::get_id)
11957 (dwarf2_section_info::get_flags, dwarf2_section_info::empty)
11958 (dwarf2_section_info::read): Now methods.
11959 * dwarf-index-write.c (class debug_names): Update.
11960
2c86cff9
TT
119612020-02-08 Tom Tromey <tom@tromey.com>
11962
11963 * dwarf2read.h (struct dwarf2_section_info, dwarf2_read_section):
11964 Move to dwarf2/section.h.
11965 * dwarf2read.c (get_containing_section, get_section_bfd_owner)
11966 (get_section_bfd_section, get_section_name)
11967 (get_section_file_name, get_section_id, get_section_flags)
11968 (dwarf2_section_empty_p, dwarf2_read_section): Moe to
11969 dwarf2/section.c.
11970 * dwarf2/section.h: New file.
11971 * dwarf2/section.c: New file, from dwarf2read.c.
11972 * Makefile.in (COMMON_SFILES): Add dwarf2/section.c.
11973
f4382c45
TT
119742020-02-08 Tom Tromey <tom@tromey.com>
11975
11976 * dwarf2read.h (read_unsigned_leb128): Don't declare.
11977 * dwarf2read.c (read_1_byte, read_1_signed_byte, read_2_bytes)
11978 (read_2_signed_bytes, read_3_bytes, read_4_bytes)
11979 (read_4_signed_bytes, read_8_bytes): Move to dwarf2/leb.h.
11980 (read_unsigned_leb128, read_signed_leb128): Move to dwarf2/leb.c.
11981 * dwarf2/leb.h: New file, from dwarf2read.c.
11982 * dwarf2/leb.c: New file, from dwarf2read.c.
11983 * dwarf2-frame.c (read_1_byte, read_4_bytes, read_8_bytes):
11984 Remove.
11985 * Makefile.in (CONFIG_SRC_SUBDIR): Add dwarf2.
11986 (COMMON_SFILES): Add dwarf2/leb.c.
11987
01840b7a
JB
119882020-02-08 Joel Brobecker <brobecker@adacore.com>
11989
11990 GDB 9.1 released.
11991
dfcb27e4
IB
119922020-02-05 Iain Buclaw <ibuclaw@gdcproject.org>
11993
11994 PR gdb/25190:
aac66a4c
SM
11995 * gdb/remote-sim.c (gdb_os_write_stderr): Update.
11996 * gdb/remote.c (remote_console_output): Update.
11997 * gdb/ui-file.c (fputs_unfiltered): Rename to...
11998 (ui_file_puts): ...this.
11999 * gdb/ui-file.h (ui_file_puts): Add declaration.
12000 * gdb/utils.c (emit_style_escape): Update.
12001 (flush_wrap_buffer): Update.
12002 (fputs_maybe_filtered): Update.
12003 (fputs_unfiltered): Add function.
dfcb27e4 12004
faa17681
IB
120052020-02-05 Iain Buclaw <ibuclaw@gdcproject.org>
12006
aac66a4c
SM
12007 * gdb/event-loop.c (gdb_wait_for_event): Update.
12008 * gdb/printcmd.c (printf_command): Update.
12009 * gdb/remote-fileio.c (remote_fileio_func_write): Update.
12010 * gdb/remote-sim.c (gdb_os_flush_stdout): Update.
12011 (gdb_os_flush_stderr): Update.
12012 * gdb/remote.c (remote_console_output): Update.
12013 * gdb/ui-file.c (gdb_flush): Rename to...
12014 (ui_file_flush): ...this.
12015 (stderr_file::write): Update.
12016 (stderr_file::puts): Update.
12017 * gdb/ui-file.h (gdb_flush): Rename to...
12018 (ui_file_flush): ...this.
12019 * gdb/utils.c (gdb_flush): Add function.
12020 * gdb/utils.h (gdb_flush): Add declaration.
faa17681 12021
5abbbe1d
TT
120222020-02-07 Tom Tromey <tromey@adacore.com>
12023
12024 PR breakpoints/24915:
12025 * source.c (find_and_open_source): Do not check basenames_may_differ.
12026
919adfe8
TT
120272020-02-07 Tom Tromey <tom@tromey.com>
12028
12029 * README: Update gdbserver documentation.
12030 * gdbserver: Move to top level.
12031 * configure.tgt (build_gdbserver): Remove.
12032 * configure.ac: Remove --enable-gdbserver.
12033 * configure: Rebuild.
12034 * Makefile.in (distclean): Don't mention gdbserver.
12035
1d5d29e7
SV
120362020-02-06 Shahab Vahedi <shahab@synopsys.com>
12037
12038 * source-cache.c (source_cache::ensure): Surround
12039 get_plain_source_lines with a try/catch.
12040 (source_cache::get_line_charpos): Get rid of try/catch
12041 and only check for the return value of "ensure".
12042 * tui/tui-source.c (tui_source_window::set_contents):
12043 Simplify "nlines" calculation.
12044
6eb1129c
SV
120452020-02-06 Shahab Vahedi <shahab@synopsys.com>
12046
12047 * MAINTAINERS (Write After Approval): Add myself.
12048
c6a42d11
CB
120492020-02-05 Christian Biesinger <cbiesinger@google.com>
12050
12051 * sparc-nat.h (struct sparc_target) <xfer_partial>: Fix base class
12052 function call.
12053
c8ecdda6
CB
120542020-02-05 Christian Biesinger <cbiesinger@google.com>
12055
12056 * ppc-nbsd-tdep.h: Fix macro name in #endif comment.
12057
f6480e70
MR
120582020-02-05 Maciej W. Rozycki <macro@wdc.com>
12059
12060 * nat/riscv-linux-tdesc.h: New file.
12061 * nat/riscv-linux-tdesc.c: New file, taking code from...
12062 * riscv-linux-nat.c (riscv_linux_nat_target::read_description):
12063 ... here.
12064 * configure.nat <linux> <riscv*>: Add nat/riscv-linux-tdesc.o to
12065 NATDEPFILES.
12066
dcc9fbc6
AB
120672020-02-04 Andrew Burgess <andrew.burgess@embecosm.com>
12068
12069 * remote-sim.c (sim_inferior_data::sim_inferior_data): Assert that
12070 we don't set the fake simulator ptid to the null_ptid.
12071
719546c4
SM
120722020-02-03 Simon Marchi <simon.marchi@efficios.com>
12073
12074 * fork-child.c (gdb_startup_inferior): Use bool instead of int.
12075 * gdbthread.h (class thread_info) <resumed>: Likewise.
12076 * infrun.c (resume_1): Likewise.
12077 (proceed): Likewise.
12078 (infrun_thread_stop_requested): Likewise.
12079 (stop_all_threads): Likewise.
12080 (handle_inferior_event): Likewise.
12081 (restart_threads): Likewise.
12082 (finish_step_over): Likewise.
12083 (keep_going_stepped_thread): Likewise.
12084 * linux-nat.c (attach_proc_task_lwp_callback): Likewise.
12085 (linux_handle_extended_wait): Likewise.
12086 * record-btrace.c (get_thread_current_frame_id): Likewise.
12087 * record-full.c (record_full_wait_1): Likewise.
12088 * remote.c (remote_target::process_initial_stop_replies): Likewise.
12089 * target.c (target_resume): Likewise.
12090 * thread.c (set_running_thread): Likewise.
12091
e409c542
AKS
120922020-02-03 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
12093
12094 * f-valprint.c (f77_print_array_1): Changed datatype of index
12095 variable to LONGEST from int to enable it to contain bound
12096 values correctly.
12097
ee98c0da
MR
120982020-02-03 Maciej W. Rozycki <macro@wdc.com>
12099
12100 * riscv-linux-nat.c [!NFPREG] (NFPREG): New macro.
12101 (supply_fpregset_regnum, fill_fpregset): Handle regset buffer
12102 offsets according to FLEN determined.
12103 (riscv_linux_nat_target::read_description): Determine FLEN
12104 dynamically.
12105 (riscv_linux_nat_target::fetch_registers): Size regset buffer
12106 according to FLEN determined.
12107 (riscv_linux_nat_target::store_registers): Likewise.
12108
aa66aac4
SV
121092020-02-01 Shahab Vahedi <shahab@synopsys.com>
12110
12111 * target-descriptions.c (tdesc_register_in_reggroup_p): Return 0
12112 when reg->group is empty and reggroup is not.
12113
fd9faca8
TT
121142020-01-31 Tom Tromey <tromey@adacore.com>
12115
12116 * ravenscar-thread.c (ravenscar_thread_target::mourn_inferior):
12117 Call beneath target's mourn_inferior after unpushing.
12118
42330a68
AB
121192020-01-31 Andrew Burgess <andrew.burgess@embecosm.com>
12120
12121 PR tui/9765
12122 * tui/tui-disasm.c (tui_find_disassembly_address): If we don't
12123 have enough lines to fill the screen, still return the lowest
12124 address we found.
12125
7a27a45b
AB
121262020-01-31 Andrew Burgess <andrew.burgess@embecosm.com>
12127
12128 * tui/tui-win.c (_initialize_tui_win): Update help text for '+',
12129 '-', '<', and '>' commands.
12130
c47f70e2
PA
121312020-01-29 Pedro Alves <palves@redhat.com>
12132 Sergio Durigan Junior <sergiodj@redhat.com>
12133
12134 * infcmd.c (construct_inferior_arguments): Assert that
12135 'argc' is greater than 0.
12136
5133a315
LM
121372020-01-29 Luis Machado <luis.machado@linaro.org>
12138
12139 * aarch64-tdep.c (BRK_INSN_MASK): Define to 0xffe0001f.
12140 (BRK_INSN_MASK): Define to 0xd4200000.
12141 (aarch64_program_breakpoint_here_p): New function.
12142 (aarch64_gdbarch_init): Set gdbarch_program_breakpoint_here_p hook.
12143 * arch-utils.c (default_program_breakpoint_here_p): Moved from
12144 breakpoint.c.
12145 * arch-utils.h (default_program_breakpoint_here_p): Moved from
12146 breakpoint.h
12147 * breakpoint.c (bp_loc_is_permanent): Changed return type to bool and
12148 call gdbarch_program_breakpoint_here_p.
12149 (program_breakpoint_here): Moved to arch-utils.c, renamed to
12150 default_program_breakpoint_here_p, changed return type to bool and
12151 simplified.
12152 * breakpoint.h (program_breakpoint_here): Moved prototype to
12153 arch-utils.h, renamed to default_program_breakpoint_here_p and changed
12154 return type to bool.
12155 * gdbarch.c: Regenerate.
12156 * gdbarch.h: Regenerate.
12157 * gdbarch.sh (program_breakpoint_here_p): New method.
12158 * infrun.c (handle_signal_stop): Call
12159 gdbarch_program_breakpoint_here_p.
12160
168f8c6b
TT
121612020-01-26 Tom Tromey <tom@tromey.com>
12162
12163 * ctfread.c (struct ctf_fp_info): Reindent.
12164 (_initialize_ctfread): Remove.
12165
128a391f
TT
121662020-01-26 Tom Tromey <tom@tromey.com>
12167
12168 * psymtab.c (partial_map_expand_apply)
12169 (psym_find_pc_sect_compunit_symtab, psym_lookup_symbol)
12170 (psymtab_to_symtab, psym_find_last_source_symtab, dump_psymtab)
12171 (psym_print_stats, psym_expand_symtabs_for_function)
12172 (psym_map_symbol_filenames, psym_map_matching_symbols)
12173 (psym_expand_symtabs_matching)
12174 (partial_symtab::read_dependencies, maintenance_info_psymtabs)
12175 (maintenance_check_psymtabs): Use new methods.
12176 * psympriv.h (struct partial_symtab) <readin_p,
12177 get_compunit_symtab>: New methods.
12178 <readin, compunit_symtab>: Remove members.
12179 (struct standard_psymtab): New.
12180 (struct legacy_psymtab): Derive from standard_psymtab.
12181 * dwarf2read.h (struct dwarf2_psymtab): Derive from
12182 standard_psymtab.
12183 * ctfread.c (struct ctf_psymtab): Derive from standard_psymtab.
12184
0494dbec
TT
121852020-01-26 Tom Tromey <tom@tromey.com>
12186
12187 * xcoffread.c (xcoff_psymtab_to_symtab_1): Call
12188 read_dependencies. Add assert.
12189 * psymtab.c (partial_symtab::read_dependencies): New method.
12190 * psympriv.h (struct partial_symtab) <read_dependencies>: New
12191 method.
12192 * mdebugread.c (psymtab_to_symtab_1): Call read_dependencies.
12193 * dwarf2read.c (dwarf2_psymtab::expand_psymtab): Call
12194 read_dependencies.
12195 * dbxread.c (dbx_psymtab_to_symtab_1): Call read_dependencies.
12196 Add assert.
12197
8566b89b
TT
121982020-01-26 Tom Tromey <tom@tromey.com>
12199
12200 * xcoffread.c (xcoff_psymtab_to_symtab_1): Change argument order.
12201 Call expand_psymtab.
12202 (xcoff_read_symtab): Call expand_psymtab.
12203 (xcoff_start_psymtab, xcoff_end_psymtab): Set
12204 legacy_expand_psymtab.
12205 * psympriv.h (struct partial_symtab) <expand_psymtab>: New
12206 method.
12207 (struct legacy_psymtab) <expand_psymtab>: Implement.
12208 <legacy_expand_psymtab>: New member.
12209 * mdebugread.c (mdebug_read_symtab): Call expand_psymtab.
12210 (parse_partial_symbols): Set legacy_expand_psymtab.
12211 (psymtab_to_symtab_1): Change argument order. Call
12212 expand_psymtab.
12213 (new_psymtab): Set legacy_expand_psymtab.
12214 * dwarf2read.h (struct dwarf2_psymtab) <expand_psymtab>: Declare.
12215 * dwarf2read.c (dwarf2_psymtab::read_symtab): Call
12216 expand_psymtab.
12217 (dwarf2_psymtab::expand_psymtab): Rename from
12218 psymtab_to_symtab_1. Call expand_psymtab.
12219 * dbxread.c (start_psymtab): Set legacy_expand_psymtab.
12220 (dbx_end_psymtab): Likewise.
12221 (dbx_psymtab_to_symtab_1): Change argument order. Call
12222 expand_psymtab.
12223 (dbx_read_symtab): Call expand_psymtab.
12224 * ctfread.c (struct ctf_psymtab) <expand_psymtab>: Declare.
12225 (ctf_psymtab::expand_psymtab): Rename from psymtab_to_symtab.
12226 (ctf_psymtab::read_symtab): Call expand_psymtab.
12227
077cbab2
TT
122282020-01-26 Tom Tromey <tom@tromey.com>
12229
12230 * xcoffread.c (xcoff_read_symtab): Remove prints. Add assert.
12231 * psymtab.c (psymtab_to_symtab): Print verbose "Reading"
12232 messages.
12233 * mdebugread.c (mdebug_read_symtab): Remove prints.
12234 * dwarf2read.c (dwarf2_psymtab::read_symtab): Remove prints. Add
12235 assert.
12236 * dbxread.c (dbx_read_symtab): Remove prints. Add assert.
12237
891813be
TT
122382020-01-26 Tom Tromey <tom@tromey.com>
12239
12240 * xcoffread.c (this_symtab_psymtab, read_xcoff_symtab)
12241 (xcoff_psymtab_to_symtab_1, xcoff_read_symtab)
12242 (xcoff_start_psymtab, xcoff_end_psymtab, scan_xcoff_symtab): Use
12243 legacy_symtab.
12244 * stabsread.h (dbx_end_psymtab): Use legacy_symtab.
12245 * psymtab.c (psymtab_to_symtab): Call method.
12246 (dump_psymtab): Update.
12247 * psympriv.h (struct partial_symtab): Add virtual destructor.
12248 <read_symtab>: New method.
12249 (struct legacy_symtab): New.
12250 * mdebugread.c (mdebug_read_symtab): Use legacy_psymtab.
12251 (struct pst_map) <pst>: Now a legacy_psymtab.
12252 (parse_procedure, parse_partial_symbols, psymtab_to_symtab_1)
12253 (new_psymtab): Use legacy_psymtab.
12254 * dwarf2read.h (struct dwarf2_psymtab): New.
12255 (struct dwarf2_per_cu_data) <psymtab>: Use it.
12256 * dwarf2read.c (dwarf2_create_include_psymtab)
12257 (dwarf2_build_include_psymtabs, create_type_unit_group)
12258 (create_partial_symtab, process_psymtab_comp_unit_reader)
12259 (build_type_psymtabs_reader, build_type_psymtab_dependencies)
12260 (set_partial_user): Use dwarf2_psymtab.
12261 (dwarf2_psymtab::read_symtab): Rename from dwarf2_read_symtab.
12262 (psymtab_to_symtab_1, process_full_comp_unit)
12263 (process_full_type_unit, dwarf2_ranges_read)
12264 (dwarf2_get_pc_bounds, psymtab_include_file_name)
12265 (dwarf_decode_lines): Use dwarf2_psymtab.
12266 * dwarf-index-write.c (psym_index_map): Use dwarf2_psymtab.
12267 (add_address_entry_worker, write_one_signatured_type)
12268 (recursively_count_psymbols, recursively_write_psymbols)
12269 (write_one_signatured_type, psyms_seen_size, write_gdbindex)
12270 (write_debug_names): Likewise.
12271 * dbxread.c (struct header_file_location): Take a legacy_psymtab.
12272 <pst>: Now a legacy_psymtab.
12273 (find_corresponding_bincl_psymtab): Return a legacy_psymtab.
12274 (read_dbx_symtab, start_psymtab, dbx_end_psymtab)
12275 (dbx_psymtab_to_symtab_1, read_ofile_symtab): Use legacy_psymtab.
12276 * ctfread.c (struct ctf_psymtab): New.
12277 (ctf_start_symtab, ctf_end_symtab, psymtab_to_symtab): Take a
12278 ctf_psymtab.
12279 (ctf_psymtab::read_symtab): Rename from ctf_read_symtab.
12280 (create_partial_symtab): Return a ctf_psymtab.
12281 (scan_partial_symbols): Update.
12282
c3693a1d
TT
122832020-01-26 Tom Tromey <tom@tromey.com>
12284
12285 * xcoffread.c (xcoff_start_psymtab): Use new.
12286 * psymtab.c (partial_symtab::partial_symtab): New constructor,
12287 renamed from start_psymtab_common.
12288 * psympriv.h (struct partial_symtab): Add new constructor.
12289 (start_psymtab_common): Don't declare.
12290 * mdebugread.c (parse_partial_symbols): Use new.
12291 * dwarf2read.c (create_partial_symtab): Use new.
12292 * dbxread.c (start_psymtab): Use new.
12293 * ctfread.c (create_partial_symtab): Use new.
12294
32caafd0
TT
122952020-01-26 Tom Tromey <tom@tromey.com>
12296
12297 * xcoffread.c (xcoff_end_psymtab): Use new.
12298 * psymtab.c (start_psymtab_common): Use new.
12299 (partial_symtab::partial_symtab): Rename from allocate_psymtab.
12300 Update.
12301 * psympriv.h (struct partial_symtab): Add parameters to
12302 constructor. Don't inline.
12303 (allocate_psymtab): Don't declare.
12304 * mdebugread.c (new_psymtab): Use new.
12305 * dwarf2read.c (dwarf2_create_include_psymtab): Use new.
12306 * dbxread.c (dbx_end_psymtab): Use new.
12307
abaa2f23
TT
123082020-01-26 Tom Tromey <tom@tromey.com>
12309
12310 * psymtab.h (class psymtab_storage) <install_psymtab>: Rename from
12311 allocate_psymtab. Update documentation.
12312 * psymtab.c (psymtab_storage::install_psymtab): Rename from
12313 allocate_psymtab. Do not use new.
12314 (allocate_psymtab): Use new. Update.
12315
6d94535f
TT
123162020-01-26 Tom Tromey <tom@tromey.com>
12317
12318 * xcoffread.c (xcoff_psymtab_to_symtab_1): Update.
12319 * psymtab.c (psym_print_stats): Update.
12320 * psympriv.h (struct partial_symtab) <readin,
12321 psymtabs_addrmap_supported, anonymous>: Now bool.
12322 * mdebugread.c (psymtab_to_symtab_1): Update.
12323 * dwarf2read.c (create_type_unit_group, create_partial_symtab)
12324 (build_type_psymtabs_reader, psymtab_to_symtab_1)
12325 (process_full_comp_unit, process_full_type_unit): Update.
12326 * dbxread.c (dbx_psymtab_to_symtab_1): Update.
12327 * ctfread.c (psymtab_to_symtab): Update.
12328
6f17252b
TT
123292020-01-26 Tom Tromey <tom@tromey.com>
12330
12331 * mdebugread.c (parse_partial_symbols): Use discard_psymtab.
12332 * psymtab.h (class psymtab_storage) <free_psymtabs>: Remove.
12333 * psymtab.c (psymtab_storage): Delete psymtabs.
12334 (psymtab_storage::allocate_psymtab): Use new.
12335 (psymtab_storage::discard_psymtab): Use delete.
12336 * psympriv.h (struct partial_symtab): Add constructor and
12337 initializers.
12338
f6f1cebc
TT
123392020-01-26 Tom Tromey <tom@tromey.com>
12340
12341 * machoread.c: Do not include psympriv.h.
12342
e47e48f6
PW
123432020-01-25 Philippe Waroquiers <philippe.waroquiers@skynet.be>
12344
12345 * NEWS: Mention the new option and the set/show commands.
12346
a2fedca9
PW
123472020-01-25 Philippe Waroquiers <philippe.waroquiers@skynet.be>
12348
12349 * exec.c (exec_file_mismatch_names, exec_file_mismatch_mode)
12350 (show_exec_file_mismatch_command, set_exec_file_mismatch_command)
12351 (validate_exec_file): New variables, enums, functions.
12352 (exec_file_locate_attach, print_section_info): Style the filenames.
12353 (_initialize_exec): Install show_exec_file_mismatch_command and
12354 set_exec_file_mismatch_command.
12355 * gdbcore.h (validate_exec_file): Declare.
12356 * infcmd.c (attach_command): Call validate_exec_file.
12357 * remote.c ( remote_target::remote_add_inferior): Likewise.
12358
7ffa82e1
AB
123592020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
12360
12361 * frame.c (find_frame_sal): Move call to get_next_frame into more
12362 inner scope.
12363 * inline-frame.c (inilne_state) <inline_state>: Update argument
12364 types.
12365 (inilne_state) <skipped_symbol>: Rename to...
12366 (inilne_state) <skipped_symbols>: ...this, and change to a vector.
12367 (skip_inline_frames): Build vector of skipped symbols and use this
12368 to reate the inline_state.
12369 (inline_skipped_symbol): Add a comment and some assertions, fetch
12370 skipped symbol from the list.
12371
3d92a3e3
AB
123722020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
12373
12374 * buildsym.c (lte_is_less_than): Delete.
12375 (buildsym_compunit::end_symtab_with_blockvector): Create local
12376 lambda function to sort line table entries, and use
12377 std::stable_sort instead of std::sort.
12378 * symtab.c (find_pc_sect_line): Skip backward over end of sequence
12379 markers when looking for a previous line.
12380
94a72be7
AB
123812020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
12382
12383 * dwarf2read.c (lnp_state_machine::record_line): Include
12384 end_sequence parameter in debug print out. Record the line if we
12385 are at an end_sequence marker even if it's not the start of a
12386 statement.
12387 * symmisc.c (maintenance_print_one_line_table): Print end of
12388 sequence markers with 'END' not '0'.
12389
53af73bf
PA
123902020-01-24 Pedro Alves <palves@redhat.com>
12391
12392 PR gdb/25410
12393 * thread.c (scoped_restore_current_thread::restore): Use
12394 switch_to_inferior_no_thread.
12395 * exec.c: Include "progspace-and-thread.h".
12396 (add_target_sections, remove_target_sections):
12397 scoped_restore_current_pspace_and_thread instead of
12398 scoped_restore_current_thread.
12399 * infrun.c (handle_vfork_child_exec_or_exit): Assign the pspace
12400 and aspace to the inferior before calling clone_program_space.
12401 Remove stale comment.
12402
3050c6f4
CB
124032020-01-24 Christian Biesinger <cbiesinger@google.com>
12404
12405 * arm-nbsd-nat.c (arm_nbsd_nat_target::fetch_registers): Rename to...
12406 (arm_netbsd_nat_target::fetch_registers): ...this.
12407 (arm_nbsd_nat_target::store_registers): Rename to...
12408 (arm_netbsd_nat_target::store_registers): ...this.
12409
73685c7e
CB
124102020-01-24 Christian Biesinger <cbiesinger@google.com>
12411
12412 * arm-nbsd-nat.c: Define _KERNTYPES to get the declaration of
12413 register_t.
12414
89203d40
CB
124152020-01-24 Christian Biesinger <cbiesinger@google.com>
12416
12417 * aarch64-fbsd-tdep.c (aarch64_fbsd_iterate_over_regset_sections):
12418 Update comment.
12419 * aarch64-linux-tdep.c (aarch64_linux_iterate_over_regset_sections):
12420 Likewise.
12421 * arm-fbsd-tdep.c (arm_fbsd_iterate_over_regset_sections): Likewise.
12422 * gdbcore.h (deprecated_add_core_fns): Update comment to point to
12423 the correct replacement (iterate_over_regset_sections).
12424 * riscv-fbsd-tdep.c (riscv_fbsd_iterate_over_regset_sections):
12425 Update comment.
12426
1ba1ac88
AB
124272020-01-24 Graham Markall <graham.markall@embecosm.com>
12428
12429 PR gdb/23718
12430 * gdb/python/python.c (execute_gdb_command): Call
12431 async_enable_stdin in catch block.
12432
f3364a6d
AB
124332020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
12434
12435 * event-loop.c (start_event_loop): Wrap async_enable_stdin with
12436 SWITCH_THRU_ALL_UIS.
12437
733d0a67
AB
124382020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
12439
12440 PR tui/9765
12441 * minsyms.c (lookup_minimal_symbol_by_pc_section): Update header
12442 comment, add extra parameter, and update to store previous symbol
12443 when appropriate.
12444 * minsyms.h (lookup_minimal_symbol_by_pc_section): Update comment,
12445 add extra parameter.
12446 * tui/tui-disasm.c (tui_disassemble): Update header comment,
12447 remove unneeded parameter, add try/catch around gdb_print_insn,
12448 rewrite to add items to asm_lines vector.
12449 (tui_find_backward_disassembly_start_address): New function.
12450 (tui_find_disassembly_address): Updated throughout.
12451 (tui_disasm_window::set_contents): Update for changes to
12452 tui_disassemble.
12453 (tui_disasm_window::do_scroll_vertical): No need to adjust the
12454 number of lines to scroll.
12455
b3b3bada
SM
124562020-01-23 Simon Marchi <simon.marchi@polymtl.ca>
12457
12458 * objfiles.h (ALL_OBJFILE_OSECTIONS): Move up.
12459 (SECT_OFF_DATA): Likewise.
12460 (SECT_OFF_RODATA): Likewise.
12461 (SECT_OFF_TEXT): Likewise.
12462 (SECT_OFF_BSS): Likewise.
12463 (struct objfile) <text_section_offset, data_section_offset>: New
12464 methods.
12465 * amd64-windows-tdep.c (amd64_windows_find_unwind_info): Use
12466 objfile::text_section_offset.
12467 * coff-pe-read.c (add_pe_forwarded_sym): Likewise.
12468 * coffread.c (coff_symtab_read): Likewise.
12469 (enter_linenos): Likewise.
12470 (process_coff_symbol): Likewise.
12471 * ctfread.c (get_objfile_text_range): Likewise.
12472 * dtrace-probe.c (dtrace_probe::get_relocated_address):
12473 Use objfile::data_section_offset.
12474 * dwarf2-frame.c (execute_cfa_program): Use
12475 objfile::text_section_offset.
12476 (dwarf2_frame_find_fde): Likewise.
12477 * dwarf2read.c (create_addrmap_from_index): Likewise.
12478 (create_addrmap_from_aranges): Likewise.
12479 (dw2_find_pc_sect_compunit_symtab): Likewise.
12480 (process_psymtab_comp_unit_reader): Likewise.
12481 (add_partial_symbol): Likewise.
12482 (add_partial_subprogram): Likewise.
12483 (process_full_comp_unit): Likewise.
12484 (read_file_scope): Likewise.
12485 (read_func_scope): Likewise.
12486 (read_lexical_block_scope): Likewise.
12487 (read_call_site_scope): Likewise.
12488 (dwarf2_rnglists_process): Likewise.
12489 (dwarf2_ranges_process): Likewise.
12490 (dwarf2_ranges_read): Likewise.
12491 (dwarf_decode_lines_1): Likewise.
12492 (new_symbol): Likewise.
12493 (dwarf2_fetch_die_loc_sect_off): Likewise.
12494 (dwarf2_per_cu_text_offset): Likewise.
12495 * hppa-bsd-tdep.c (hppabsd_find_global_pointer): Likewise.
12496 * hppa-tdep.c (read_unwind_info): Likewise.
12497 * ia64-tdep.c (ia64_find_unwind_table): Likewise.
12498 * psympriv.h (struct partial_symtab): Likewise.
12499 * psymtab.c (find_pc_sect_psymtab): Likewise.
12500 * solib-svr4.c (enable_break): Likewise.
12501 * stap-probe.c (relocate_address): Use
12502 objfile::data_section_offset.
12503 * xcoffread.c (enter_line_range): Use
12504 objfile::text_section_offset.
12505 (read_xcoff_symtab): Likewise.
12506
ab53f382
SM
125072020-01-23 Simon Marchi <simon.marchi@efficios.com>
12508
12509 * darwin-nat.c (darwin_nat_target::wait_1): Move `inf`
12510 declaration to narrower scopes.
12511
e7eee665
SM
125122020-01-23 Simon Marchi <simon.marchi@efficios.com>
12513
12514 * darwin-nat.h (struct darwin_exception_msg, enum
12515 darwin_msg_state, struct darwin_thread_info, darwin_thread_t):
12516 Move up.
12517 (class darwin_nat_target) <wait_1, check_new_threads,
12518 decode_exception_message, decode_message, stop_inferior,
12519 init_thread_list, ptrace_him, cancel_breakpoint>: Declare.
12520 * darwin-nat.c (darwin_check_new_threads): Rename to...
12521 (darwin_nat_target::check_new_threads): ... this.
12522 (darwin_suspend_inferior_it): Remove.
12523 (darwin_decode_exception_message): Rename to...
12524 (darwin_nat_target::decode_exception_message): ... this.
12525 (darwin_nat_target::resume): Pass target to find_inferior_ptid.
12526 (darwin_decode_message): Rename to...
12527 (darwin_nat_target::decode_message): ... this.
12528 (cancel_breakpoint): Rename to...
12529 (darwin_nat_target::cancel_breakpoint): ... this.
12530 (darwin_wait): Rename to...
12531 (darwin_nat_target::wait_1): ... this. Use range-based for loop
12532 instead of iterate_over_inferiors.
12533 (darwin_nat_target::wait): Call wait_1 instead of darwin_wait.
12534 (darwin_stop_inferior): Rename to...
12535 (darwin_nat_target::stop_inferior): ... this.
12536 (darwin_nat_target::kill): Call wait_1 instead of darwin_wait.
12537 (darwin_init_thread_list): Rename to...
12538 (darwin_nat_target::init_thread_list): ... this.
12539 (darwin_ptrace_him): Rename to...
12540 (darwin_nat_target::ptrace_him): ... this.
12541 (darwin_nat_target::create_inferior): Pass lambda function to
12542 fork_inferior.
12543 (darwin_nat_target::detach): Call stop_inferior instead of
12544 darwin_stop_inferior.
12545 * fork-inferior.h (fork_inferior): Change init_trace_fun
12546 parameter to gdb::function_view.
12547 * fork-inferior.c (fork_inferior): Likewise.
12548
c162ed3e
HD
125492020-01-23 Hannes Domani <ssbssa@yahoo.de>
12550
12551 * i386-cygwin-tdep.c (core_process_module_section): Update.
12552 * windows-nat.c (struct lm_info_windows): Add text_offset.
12553 (windows_xfer_shared_libraries): Update.
12554 * windows-tdep.c (windows_xfer_shared_library):
12555 Add text_offset_cached argument.
12556 * windows-tdep.h (windows_xfer_shared_library): Update.
12557
a1237872
SM
125582020-01-21 Simon Marchi <simon.marchi@efficios.com>
12559
12560 * gdbarch.sh: Add declaration for _initialize_gdbarch.
12561
b3ee6dd9
SM
125622020-01-21 Simon Marchi <simon.marchi@efficios.com>
12563
12564 * remote-sim.c (check_for_duplicate_sim_descriptor): Remove.
12565 (get_sim_inferior_data): Remove use of iterate_over_inferiors,
12566 replace with range-based for.
12567 (gdbsim_interrupt_inferior): Remove.
12568 (gdbsim_target::interrupt): Replace iterate_over_inferiors use
12569 with a range-based for. Inline code from
12570 gdbsim_interrupt_inferior.
12571
f9fac3c8
SM
125722020-01-21 Simon Marchi <simon.marchi@efficios.com>
12573
12574 * infrun.c (proceed): Fix indentation.
12575
f6474de9
TT
125762020-01-21 Tom Tromey <tromey@adacore.com>
12577
12578 * source-cache.c (source_cache::ensure): Call ext_lang_colorize.
12579 * python/python.c (python_extension_ops): Update.
12580 (gdbpy_colorize): New function.
12581 * python/lib/gdb/__init__.py (colorize): New function.
12582 * extension.h (ext_lang_colorize): Declare.
12583 * extension.c (ext_lang_colorize): New function.
12584 * extension-priv.h (struct extension_language_ops) <colorize>: New
12585 member.
12586 * cli/cli-style.c (_initialize_cli_style): Update help text.
12587
f0c702d4
LM
125882020-01-21 Luis Machado <luis.machado@linaro.org>
12589
12590 * aarch64-tdep.c (struct aarch64_displaced_step_closure)
12591 <cond>: Change type to bool.
12592 (aarch64_displaced_step_b_cond): Update cond to use bool type.
12593 (aarch64_displaced_step_cb): Likewise.
12594 (aarch64_displaced_step_tb): Likewise.
12595
1ab139e5
LM
125962020-01-21 Luis Machado <luis.machado@linaro.org>
12597
12598 * aarch64-tdep.c (aarch64_displaced_step_fixup): Add more debugging
12599 output.
12600
0c271889
LM
126012020-01-21 Luis Machado <luis.machado@linaro.org>
12602
12603 * aarch64-tdep.c (struct aarch64_displaced_step_closure )
12604 <pc_adjust>: Adjust the documentation.
12605 (aarch64_displaced_step_fixup): Check if PC really moved before
12606 adjusting it.
12607
4d89c1c7
TT
126082020-01-19 Tom Tromey <tom@tromey.com>
12609
12610 * disasm.c (~gdb_disassembler): New destructor.
12611 (gdb_buffered_insn_length): Call disassemble_free_target.
12612 * disasm.h (class gdb_disassembler): Declare destructor. Use
12613 DISABLE_COPY_AND_ASSIGN.
12614
c0ab21c2
TT
126152020-01-19 Tom Tromey <tom@tromey.com>
12616
12617 * dwarf2read.c (abbrev_table_up): Move typedef earlier.
12618 (die_reader_func_ftype): Remove.
12619 (cutu_reader): New class.
12620 (dw2_get_file_names_reader): Remove "data" parameter.
12621 (dw2_get_file_names): Use cutu_reader.
12622 (create_debug_type_hash_table): Update.
12623 (read_cutu_die_from_dwo): Update comment.
12624 (lookup_dwo_unit): Add dwo_name parameter.
12625 (cutu_reader::init_tu_and_read_dwo_dies): Now a method. Remove
12626 die_reader_func_ftype and data parameters.
12627 (cutu_reader::cutu_reader): Rename from init_cutu_and_read_dies.
12628 Remove die_reader_func_ftype and data parameters.
12629 (~cutu_reader): New; from init_cutu_and_read_dies.
12630 (cutu_reader::cutu_reader): Rename from
12631 init_cutu_and_read_dies_no_follow. Remove die_reader_func_ftype
12632 and data parameters.
12633 (init_cutu_and_read_dies_simple): Remove.
12634 (struct process_psymtab_comp_unit_data): Remove.
12635 (process_psymtab_comp_unit_reader): Remove data parameter; add
12636 want_partial_unit and pretend_language parameters.
12637 (process_psymtab_comp_unit): Use cutu_reader.
12638 (build_type_psymtabs_reader): Remove data parameter.
12639 (build_type_psymtabs_1): Use cutu_reader.
12640 (process_skeletonless_type_unit): Likewise.
12641 (load_partial_comp_unit_reader): Remove.
12642 (load_partial_comp_unit): Use cutu_reader.
12643 (load_full_comp_unit_reader): Remove.
12644 (load_full_comp_unit): Use cutu_reader.
12645 (struct create_dwo_cu_data): Remove.
12646 (create_dwo_cu_reader): Remove datap parameter; add dwo_file and
12647 dwo_unit parameters.
12648 (create_cus_hash_table): Use cutu_reader.
12649 (struct dwarf2_read_addr_index_data): Remove.
12650 (dwarf2_read_addr_index_reader): Remove.
12651 (dwarf2_read_addr_index): Use cutu_reader.
12652 (read_signatured_type_reader): Remove.
12653 (read_signatured_type): Use cutu_reader.
12654
45bbae5c
TT
126552020-01-19 Tom Tromey <tom@tromey.com>
12656
12657 * tui/tui.c (tui_show_assembly): Use tui_suppress_output.
12658 * tui/tui-wingeneral.h (class tui_suppress_output): New.
12659 (tui_wrefresh): Declare.
12660 * tui/tui-wingeneral.c (suppress_output): New global.
12661 (tui_suppress_output, ~tui_suppress_output): New constructor and
12662 destructor.
12663 (tui_wrefresh): New function.
12664 (tui_gen_win_info::refresh_window): Use tui_wrefresh.
12665 (tui_gen_win_info::make_window): Call wnoutrefresh when needed.
12666 * tui/tui-regs.h (struct tui_data_window) <no_refresh>: Declare
12667 method.
12668 * tui/tui-regs.c (tui_data_window::erase_data_content): Call
12669 tui_wrefresh.
12670 (tui_data_window::no_refresh): New method.
12671 (tui_data_item_window::refresh_window): Call tui_wrefresh.
12672 (tui_reg_command): Use tui_suppress_output
12673 * tui/tui-layout.c (tui_set_layout): Use tui_suppress_output.
12674 * tui/tui-data.h (struct tui_gen_win_info) <no_refresh>: New
12675 method.
12676 * tui/tui-command.c (tui_refresh_cmd_win): Call tui_wrefresh.
12677
4f13c1c0
TT
126782020-01-19 Tom Tromey <tom@tromey.com>
12679
12680 * tui/tui-winsource.c (tui_update_source_windows_with_line):
12681 Handle case where symtab is null.
12682
fa47e446
SM
126832020-01-19 Simon Marchi <simon.marchi@polymtl.ca>
12684
12685 * linux-fork.c (one_fork_p): Simplify.
12686
26f42329
SM
126872020-01-17 Simon Marchi <simon.marchi@efficios.com>
12688
12689 * top.c (struct qt_args): Remove.
12690 (kill_or_detach): Change return type to void, replace `void *`
12691 parameter with a proper one.
12692 (print_inferior_quit_action): Likewise.
12693 (quit_confirm): Use range-based for loop to iterate over inferiors.
12694 (quit_force): Likewise.
12695
a9ac81b1
SM
126962020-01-17 Simon Marchi <simon.marchi@efficios.com>
12697
12698 * mi/mi-main.c (run_one_inferior): Change return type to void, replace
12699 `void *` parameter with proper parameters.
12700 (mi_cmd_exec_run): Use range-based loop to iterate over inferiors.
12701 (print_one_inferior): Change return type to void, replace `void *`
12702 parameter with proper parameters.
12703 (mi_cmd_list_thread_groups): Use range-based loop to iterate over
12704 inferiors.
12705 (get_other_inferior): Remove.
12706 (mi_cmd_remove_inferior): Use range-based loop to iterate over
12707 inferiors.
12708
788eca49
SM
127092020-01-17 Simon Marchi <simon.marchi@efficios.com>
12710
12711 * mi/mi-interp.c (report_initial_inferior): Remove.
12712 (mi_interp::init): Use range-based for to iterate over inferiors.
12713
d9bc85b6
SM
127142020-01-17 Simon Marchi <simon.marchi@efficios.com>
12715
12716 * python/py-inferior.c (build_inferior_list): Remove.
12717 (gdbpy_ref): Use range-based for loop to iterate over inferiors.
12718
40c94099
CB
127192020-01-16 Christian Biesinger <cbiesinger@google.com>
12720
12721 * btrace.c (btrace_compute_ftrace_1): Fix spelling error (Unkown).
12722 (btrace_stitch_trace): Likewise.
12723 * charset.c (intermediate_encoding): Likewise (vaild).
12724 * nat/linux-btrace.c (linux_read_pt): Likewise (Unkown).
12725 * python/py-record-btrace.c (struct PyMethodDef): Likewise (occurences).
12726 * record-btrace.c (record_btrace_print_conf): Likewise (unkown).
12727
e0cdfe3c
HD
127282020-01-16 Hannes Domani <ssbssa@yahoo.de>
12729
12730 * windows-tdep.c (windows_get_tlb_type):
12731 Add rtl_user_process_parameters type.
12732
790f1718 127332020-01-16 Pedro Alves <palves@redhat.com>
aac66a4c 12734 Norbert Lange <nolange79@gmail.com>
790f1718
PA
12735
12736 PR build/24805
12737 * gdbsupport/gdb_proc_service.h (PS_EXPORT): New.
12738 (ps_get_thread_area, ps_getpid, ps_lcontinue, ps_lgetfpregs)
12739 (ps_lgetregs, ps_lsetfpregs, ps_lsetregs, ps_lstop, ps_pcontinue)
12740 (ps_pdread, ps_pdwrite, ps_pglobal_lookup, ps_pstop, ps_ptread)
12741 (ps_ptwrite, ps_lgetxregs, ps_lgetxregsize, ps_lsetxregs)
12742 (ps_plog): Redeclare exported functions with default visibility.
12743
3112ed97
NA
127442020-01-16 Nitika Achra <Nitika.Achra@amd.com>
12745
12746 * dwarf2loc.c (decode_debug_loclists_addresses): Handle
12747 DW_LLE_base_addressx, DW_LLE_startx_length, DW_LLE_start_length.
12748
8dc3273e
SM
127492020-01-15 Simon Marchi <simon.marchi@efficios.com>
12750
12751 * infcmd.c (post_create_inferior): Use get_thread_regcache
12752 instead of get_current_regcache.
12753
ff47f4f0
TT
127542020-01-14 Tom Tromey <tom@tromey.com>
12755
12756 PR symtab/12535:
12757 * python/python.c (gdbpy_decode_line): Treat empty string the same
12758 as no argument.
12759
975f45b7
TT
127602020-01-14 Tom Tromey <tom@tromey.com>
12761
12762 * Makefile.in (CLIBS): Remove second use of $(LIBIBERTY).
12763
25e57356
TT
127642020-01-14 Tom Tromey <tom@tromey.com>
12765
12766 * nat/linux-btrace.c: Don't include <config.h>.
12767 * nat/linux-ptrace.c: Don't include <config.h>.
12768 * nat/x86-linux-dregs.c: Don't include <config.h>.
12769
05ea2a05
TT
127702020-01-14 Tom Tromey <tom@tromey.com>
12771
12772 * configure: Rebuild.
12773 * configure.ac: Move many checks to ../gdbsupport/common.m4.
12774
01027315
TT
127752020-01-14 Tom Tromey <tom@tromey.com>
12776
12777 * nat/x86-linux-dregs.c: Include configh.h.
12778 * nat/linux-ptrace.c: Include configh.h.
12779 * nat/linux-btrace.c: Include configh.h.
12780 * defs.h: Include config.h, bfd.h.
12781 * configure.ac: Don't source common.host.
12782 (CONFIG_OBS, CONFIG_SRCS): Remove gdbsupport files.
12783 * configure: Rebuild.
12784 * acinclude.m4: Update path.
12785 * Makefile.in (SUPPORT, LIBSUPPORT, INCSUPPORT): New variables.
12786 (CONFIG_SRC_SUBDIR): Remove gdbsupport.
12787 (INTERNAL_CFLAGS_BASE): Add INCSUPPORT.
12788 (CLIBS): Add LIBSUPPORT.
12789 (CDEPS): Likewise.
12790 (COMMON_SFILES): Remove gdbsupport files.
12791 (HFILES_NO_SRCDIR): Likewise.
12792 (stamp-version): Update path to create-version.sh.
12793 (ALLDEPFILES): Remove gdbsupport files.
12794
b2ceabe8
TT
127952020-01-14 Tom Tromey <tom@tromey.com>
12796
12797 * gdbsupport/common.m4 (GDB_AC_COMMON): Define WIN32APILIBS and
12798 USE_WIN32API when needed.
12799 * configure.ac (USE_WIN32API): Don't define.
12800 (WIN32LIBS): Use WIN32APILIBS.
12801 * configure: Rebuild.
12802
25c51f71
TT
128032020-01-14 Tom Tromey <tom@tromey.com>
12804
12805 * configure: Rebuild.
12806 * gdbsupport/common.m4 (GDB_AC_COMMON): Fix indentation.
12807
717c684d
BE
128082020-01-14 Bernd Edlinger <bernd.edlinger@hotmail.de>
12809
12810 * skip.c (skip_function_command): Make skip w/o arguments use the
12811 name of the inlined function if pc is inside any inlined function.
12812
7da6a5b9
LM
128132020-01-14 Luis Machado <luis.machado@linaro.org>
12814
12815 * inf-ptrace.c (inf_ptrace_target::resume): Update comments.
12816 * infrun.c (resume_1): Likewise.
12817 (handle_inferior_event): Remove stale comment.
12818 * linux-nat.c (linux_nat_target::resume): Update comments.
12819 (save_stop_reason): Likewise.
12820 (linux_nat_filter_event): Likewise.
12821 * linux-nat.h (struct lwp_info) <stop_pc>, <stop_reason>: Likewise.
12822
44e4c775
AB
128232020-01-13 Andrew Burgess <andrew.burgess@embecosm.com>
12824
12825 * elfread.c (record_minimal_symbol): Set section index to 0 for
12826 non-allocatable sections.
12827
18a8505e
AT
12828
128292020-01-13 Ali Tamur <tamur@google.com>
12830
12831 * dwarf2read.c (dwarf2_debug_sections): Add debug_str_offsets sections.
12832 (dwarf2_cu): Add str_offsets_base field. Change the type of addr_base
12833 to gdb::optional. Update comments.
12834 (dwo_file): Update comments.
12835 (read_attribute): Update API to take an additional out parameter,
12836 need_reprocess. This is used to mark attributes that need other
12837 attributes (e.g. str_offsets_base) for correct computation which may not
12838 have been read yet.
12839 (read_attribute_reprocess): New function declaration.
12840 (read_addr_index): Likewise.
12841 (read_dwo_str_index): Likewise.
12842 (read_stub_str_index): Likewise.
12843 (dwarf2_per_objfile::locate_sections): Handle debug_str_offsets section.
12844 (lookup_addr_base): New function definition.
12845 (lookup_ranges_base): Likewise.
12846 (read_cutu_die_from_dwo): Use the new functions: lookup_addr_base,
12847 lookup_ranges_base.
12848 (init_cutu_and_read_dies): Update comments.
12849 (init_cutu_and_read_dies_no_follow): Change API to take parent compile
12850 unit. This is used to inherit parent's str_offsets_base and addr_base.
12851 Update comments.
12852 (init_cutu_and_read_dies_simple): Reflect API changes.
12853 (skip_one_die): Reflect API changes. Handle DW_FORM_rnglistx.
12854 (create_cus_hash_table): Change API to take parent compile unit.
12855 Reflect API changes.
12856 (open_and_init_dwo_file): Reflect API changes.
12857 (dwarf2_get_pc_bounds): Update comments.
12858 (dwarf2_record_block_ranges): Likewise.
12859 (read_full_die_1): Change implementation to reprocess attributes that
12860 need str_offsets_base and addr_base.
12861 (partial_die_info::read): Likewise.
12862 (read_attribute_reprocess): New function definition.
12863 (read_attribute_value): Change API to take an additional out parameter,
12864 need_reprocess. Handle DW_FORM_rnglistx. No longer trigger an error
12865 when a non-dwo compile unit has index based attributes.
12866 (read_attribute): Reflect API changes.
12867 (read_addr_index_1): Reflect API changes. Update comments.
12868 (dwarf2_read_addr_index_data): Reflect API changes.
12869 (dwarf2_read_addr_index): Likewise.
12870 (read_str_index): Change API and implementation. This becomes a helper
12871 to be used by the new string index related methods. Update error
12872 message and comments.
12873 (read_dwo_str_index): New function definition.
12874 (read_stub_str_index): Likewise.
12875 * dwarf2read.h (dwarf2_per_objfile): Add str_offsets field.
12876 * symfile.h (dwarf2_debug_sections): Likewise.
12877 * xcoffread.c (dwarf2_debug_sections): Likewise.
12878
0cac9354
SM
128792020-01-13 Simon Marchi <simon.marchi@efficios.com>
12880
12881 * gdbcore.h (struct core_fns) <core_read_registers>: Change
12882 core_reg_sect type to gdb_byte *.
12883 * arm-nbsd-nat.c (fetch_elfcore_registers): Likewise.
12884 * cris-tdep.c (fetch_core_registers): Likewise.
12885 * corelow.c (core_target::get_core_register_section): Change
12886 type of `contents` to gdb::byte_vector.
12887
9a6d629c
AB
128882020-01-13 Andrew Burgess <andrew.burgess@embecosm.com>
12889
12890 * tui/tui-wingeneral.c (box_win): Position the title in the center
12891 of the border.
12892
d8b2f9e3
SM
128932020-01-13 Simon Marchi <simon.marchi@polymtl.ca>
12894
12895 * corelow.c (core_target::get_core_register_section): Use
12896 std::vector instead of alloca.
12897
bb564c58
SM
128982020-01-13 Simon Marchi <simon.marchi@efficios.com>
12899
12900 * warning.m4: Add -Wmissing-declarations to build_warnings.
12901 * configure: Re-generate.
12902
6b366111
SM
129032020-01-13 Simon Marchi <simon.marchi@efficios.com>
12904
12905 * python/python.c (init__gdb_module): Add declaration.
12906
6c265988
SM
129072020-01-13 Simon Marchi <simon.marchi@efficios.com>
12908
12909 * aarch64-fbsd-nat.c (_initialize_aarch64_fbsd_nat): Add declaration.
12910 * aarch64-fbsd-tdep.c (_initialize_aarch64_fbsd_tdep): Add declaration.
12911 * aarch64-linux-nat.c (_initialize_aarch64_linux_nat): Add declaration.
12912 * aarch64-linux-tdep.c (_initialize_aarch64_linux_tdep): Add declaration.
12913 * aarch64-newlib-tdep.c (_initialize_aarch64_newlib_tdep): Add declaration.
12914 * aarch64-tdep.c (_initialize_aarch64_tdep): Add declaration.
12915 * ada-exp.y (_initialize_ada_exp): Add declaration.
12916 * ada-lang.c (_initialize_ada_language): Add declaration.
12917 * ada-tasks.c (_initialize_tasks): Add declaration.
12918 * agent.c (_initialize_agent): Add declaration.
12919 * aix-thread.c (_initialize_aix_thread): Add declaration.
12920 * alpha-bsd-nat.c (_initialize_alphabsd_nat): Add declaration.
12921 * alpha-linux-nat.c (_initialize_alpha_linux_nat): Add declaration.
12922 * alpha-linux-tdep.c (_initialize_alpha_linux_tdep): Add declaration.
12923 * alpha-nbsd-tdep.c (_initialize_alphanbsd_tdep): Add declaration.
12924 * alpha-obsd-tdep.c (_initialize_alphaobsd_tdep): Add declaration.
12925 * alpha-tdep.c (_initialize_alpha_tdep): Add declaration.
12926 * amd64-darwin-tdep.c (_initialize_amd64_darwin_tdep): Add declaration.
12927 * amd64-dicos-tdep.c (_initialize_amd64_dicos_tdep): Add declaration.
12928 * amd64-fbsd-nat.c (_initialize_amd64fbsd_nat): Add declaration.
12929 * amd64-fbsd-tdep.c (_initialize_amd64fbsd_tdep): Add declaration.
12930 * amd64-linux-nat.c (_initialize_amd64_linux_nat): Add declaration.
12931 * amd64-linux-tdep.c (_initialize_amd64_linux_tdep): Add declaration.
12932 * amd64-nbsd-nat.c (_initialize_amd64nbsd_nat): Add declaration.
12933 * amd64-nbsd-tdep.c (_initialize_amd64nbsd_tdep): Add declaration.
12934 * amd64-obsd-nat.c (_initialize_amd64obsd_nat): Add declaration.
12935 * amd64-obsd-tdep.c (_initialize_amd64obsd_tdep): Add declaration.
12936 * amd64-sol2-tdep.c (_initialize_amd64_sol2_tdep): Add declaration.
12937 * amd64-tdep.c (_initialize_amd64_tdep): Add declaration.
12938 * amd64-windows-nat.c (_initialize_amd64_windows_nat): Add declaration.
12939 * amd64-windows-tdep.c (_initialize_amd64_windows_tdep): Add declaration.
12940 * annotate.c (_initialize_annotate): Add declaration.
12941 * arc-newlib-tdep.c (_initialize_arc_newlib_tdep): Add declaration.
12942 * arc-tdep.c (_initialize_arc_tdep): Add declaration.
12943 * arch-utils.c (_initialize_gdbarch_utils): Add declaration.
12944 * arm-fbsd-nat.c (_initialize_arm_fbsd_nat): Add declaration.
12945 * arm-fbsd-tdep.c (_initialize_arm_fbsd_tdep): Add declaration.
12946 * arm-linux-nat.c (_initialize_arm_linux_nat): Add declaration.
12947 * arm-linux-tdep.c (_initialize_arm_linux_tdep): Add declaration.
12948 * arm-nbsd-nat.c (_initialize_arm_netbsd_nat): Add declaration.
12949 * arm-nbsd-tdep.c (_initialize_arm_netbsd_tdep): Add declaration.
12950 * arm-obsd-tdep.c (_initialize_armobsd_tdep): Add declaration.
12951 * arm-pikeos-tdep.c (_initialize_arm_pikeos_tdep): Add declaration.
12952 * arm-symbian-tdep.c (_initialize_arm_symbian_tdep): Add declaration.
12953 * arm-tdep.c (_initialize_arm_tdep): Add declaration.
12954 * arm-wince-tdep.c (_initialize_arm_wince_tdep): Add declaration.
12955 * auto-load.c (_initialize_auto_load): Add declaration.
12956 * auxv.c (_initialize_auxv): Add declaration.
12957 * avr-tdep.c (_initialize_avr_tdep): Add declaration.
12958 * ax-gdb.c (_initialize_ax_gdb): Add declaration.
12959 * bfin-linux-tdep.c (_initialize_bfin_linux_tdep): Add declaration.
12960 * bfin-tdep.c (_initialize_bfin_tdep): Add declaration.
12961 * break-catch-sig.c (_initialize_break_catch_sig): Add declaration.
12962 * break-catch-syscall.c (_initialize_break_catch_syscall): Add declaration.
12963 * break-catch-throw.c (_initialize_break_catch_throw): Add declaration.
12964 * breakpoint.c (_initialize_breakpoint): Add declaration.
12965 * bsd-uthread.c (_initialize_bsd_uthread): Add declaration.
12966 * btrace.c (_initialize_btrace): Add declaration.
12967 * charset.c (_initialize_charset): Add declaration.
12968 * cli/cli-cmds.c (_initialize_cli_cmds): Add declaration.
12969 * cli/cli-dump.c (_initialize_cli_dump): Add declaration.
12970 * cli/cli-interp.c (_initialize_cli_interp): Add declaration.
12971 * cli/cli-logging.c (_initialize_cli_logging): Add declaration.
12972 * cli/cli-script.c (_initialize_cli_script): Add declaration.
12973 * cli/cli-style.c (_initialize_cli_style): Add declaration.
12974 * coff-pe-read.c (_initialize_coff_pe_read): Add declaration.
12975 * coffread.c (_initialize_coffread): Add declaration.
12976 * compile/compile-cplus-types.c (_initialize_compile_cplus_types): Add declaration.
12977 * compile/compile.c (_initialize_compile): Add declaration.
12978 * complaints.c (_initialize_complaints): Add declaration.
12979 * completer.c (_initialize_completer): Add declaration.
12980 * copying.c (_initialize_copying): Add declaration.
12981 * corefile.c (_initialize_core): Add declaration.
12982 * corelow.c (_initialize_corelow): Add declaration.
12983 * cp-abi.c (_initialize_cp_abi): Add declaration.
12984 * cp-namespace.c (_initialize_cp_namespace): Add declaration.
12985 * cp-support.c (_initialize_cp_support): Add declaration.
12986 * cp-valprint.c (_initialize_cp_valprint): Add declaration.
12987 * cris-linux-tdep.c (_initialize_cris_linux_tdep): Add declaration.
12988 * cris-tdep.c (_initialize_cris_tdep): Add declaration.
12989 * csky-linux-tdep.c (_initialize_csky_linux_tdep): Add declaration.
12990 * csky-tdep.c (_initialize_csky_tdep): Add declaration.
12991 * ctfread.c (_initialize_ctfread): Add declaration.
12992 * d-lang.c (_initialize_d_language): Add declaration.
12993 * darwin-nat-info.c (_initialize_darwin_info_commands): Add declaration.
12994 * darwin-nat.c (_initialize_darwin_nat): Add declaration.
12995 * dbxread.c (_initialize_dbxread): Add declaration.
12996 * dcache.c (_initialize_dcache): Add declaration.
12997 * disasm-selftests.c (_initialize_disasm_selftests): Add declaration.
12998 * disasm.c (_initialize_disasm): Add declaration.
12999 * dtrace-probe.c (_initialize_dtrace_probe): Add declaration.
13000 * dummy-frame.c (_initialize_dummy_frame): Add declaration.
13001 * dwarf-index-cache.c (_initialize_index_cache): Add declaration.
13002 * dwarf-index-write.c (_initialize_dwarf_index_write): Add declaration.
13003 * dwarf2-frame-tailcall.c (_initialize_tailcall_frame): Add declaration.
13004 * dwarf2-frame.c (_initialize_dwarf2_frame): Add declaration.
13005 * dwarf2expr.c (_initialize_dwarf2expr): Add declaration.
13006 * dwarf2loc.c (_initialize_dwarf2loc): Add declaration.
13007 * dwarf2read.c (_initialize_dwarf2_read): Add declaration.
13008 * elfread.c (_initialize_elfread): Add declaration.
13009 * exec.c (_initialize_exec): Add declaration.
13010 * extension.c (_initialize_extension): Add declaration.
13011 * f-lang.c (_initialize_f_language): Add declaration.
13012 * f-valprint.c (_initialize_f_valprint): Add declaration.
13013 * fbsd-nat.c (_initialize_fbsd_nat): Add declaration.
13014 * fbsd-tdep.c (_initialize_fbsd_tdep): Add declaration.
13015 * filesystem.c (_initialize_filesystem): Add declaration.
13016 * findcmd.c (_initialize_mem_search): Add declaration.
13017 * findvar.c (_initialize_findvar): Add declaration.
13018 * fork-child.c (_initialize_fork_child): Add declaration.
13019 * frame-base.c (_initialize_frame_base): Add declaration.
13020 * frame-unwind.c (_initialize_frame_unwind): Add declaration.
13021 * frame.c (_initialize_frame): Add declaration.
13022 * frv-linux-tdep.c (_initialize_frv_linux_tdep): Add declaration.
13023 * frv-tdep.c (_initialize_frv_tdep): Add declaration.
13024 * ft32-tdep.c (_initialize_ft32_tdep): Add declaration.
13025 * gcore.c (_initialize_gcore): Add declaration.
13026 * gdb-demangle.c (_initialize_gdb_demangle): Add declaration.
13027 * gdb_bfd.c (_initialize_gdb_bfd): Add declaration.
13028 * gdbarch-selftests.c (_initialize_gdbarch_selftests): Add declaration.
13029 * gdbarch.c (_initialize_gdbarch): Add declaration.
13030 * gdbtypes.c (_initialize_gdbtypes): Add declaration.
13031 * gnu-nat.c (_initialize_gnu_nat): Add declaration.
13032 * gnu-v2-abi.c (_initialize_gnu_v2_abi): Add declaration.
13033 * gnu-v3-abi.c (_initialize_gnu_v3_abi): Add declaration.
13034 * go-lang.c (_initialize_go_language): Add declaration.
13035 * go32-nat.c (_initialize_go32_nat): Add declaration.
13036 * guile/guile.c (_initialize_guile): Add declaration.
13037 * h8300-tdep.c (_initialize_h8300_tdep): Add declaration.
13038 * hppa-linux-nat.c (_initialize_hppa_linux_nat): Add declaration.
13039 * hppa-linux-tdep.c (_initialize_hppa_linux_tdep): Add declaration.
13040 * hppa-nbsd-nat.c (_initialize_hppanbsd_nat): Add declaration.
13041 * hppa-nbsd-tdep.c (_initialize_hppanbsd_tdep): Add declaration.
13042 * hppa-obsd-nat.c (_initialize_hppaobsd_nat): Add declaration.
13043 * hppa-obsd-tdep.c (_initialize_hppabsd_tdep): Add declaration.
13044 * hppa-tdep.c (_initialize_hppa_tdep): Add declaration.
13045 * i386-bsd-nat.c (_initialize_i386bsd_nat): Add declaration.
13046 * i386-cygwin-tdep.c (_initialize_i386_cygwin_tdep): Add declaration.
13047 * i386-darwin-nat.c (_initialize_i386_darwin_nat): Add declaration.
13048 * i386-darwin-tdep.c (_initialize_i386_darwin_tdep): Add declaration.
13049 * i386-dicos-tdep.c (_initialize_i386_dicos_tdep): Add declaration.
13050 * i386-fbsd-nat.c (_initialize_i386fbsd_nat): Add declaration.
13051 * i386-fbsd-tdep.c (_initialize_i386fbsd_tdep): Add declaration.
13052 * i386-gnu-nat.c (_initialize_i386gnu_nat): Add declaration.
13053 * i386-gnu-tdep.c (_initialize_i386gnu_tdep): Add declaration.
13054 * i386-go32-tdep.c (_initialize_i386_go32_tdep): Add declaration.
13055 * i386-linux-nat.c (_initialize_i386_linux_nat): Add declaration.
13056 * i386-linux-tdep.c (_initialize_i386_linux_tdep): Add declaration.
13057 * i386-nbsd-nat.c (_initialize_i386nbsd_nat): Add declaration.
13058 * i386-nbsd-tdep.c (_initialize_i386nbsd_tdep): Add declaration.
13059 * i386-nto-tdep.c (_initialize_i386nto_tdep): Add declaration.
13060 * i386-obsd-nat.c (_initialize_i386obsd_nat): Add declaration.
13061 * i386-obsd-tdep.c (_initialize_i386obsd_tdep): Add declaration.
13062 * i386-sol2-nat.c (_initialize_amd64_sol2_nat): Add declaration.
13063 * i386-sol2-tdep.c (_initialize_i386_sol2_tdep): Add declaration.
13064 * i386-tdep.c (_initialize_i386_tdep): Add declaration.
13065 * i386-windows-nat.c (_initialize_i386_windows_nat): Add declaration.
13066 * ia64-libunwind-tdep.c (_initialize_libunwind_frame): Add declaration.
13067 * ia64-linux-nat.c (_initialize_ia64_linux_nat): Add declaration.
13068 * ia64-linux-tdep.c (_initialize_ia64_linux_tdep): Add declaration.
13069 * ia64-tdep.c (_initialize_ia64_tdep): Add declaration.
13070 * ia64-vms-tdep.c (_initialize_ia64_vms_tdep): Add declaration.
13071 * infcall.c (_initialize_infcall): Add declaration.
13072 * infcmd.c (_initialize_infcmd): Add declaration.
13073 * inflow.c (_initialize_inflow): Add declaration.
13074 * infrun.c (_initialize_infrun): Add declaration.
13075 * interps.c (_initialize_interpreter): Add declaration.
13076 * iq2000-tdep.c (_initialize_iq2000_tdep): Add declaration.
13077 * jit.c (_initialize_jit): Add declaration.
13078 * language.c (_initialize_language): Add declaration.
13079 * linux-fork.c (_initialize_linux_fork): Add declaration.
13080 * linux-nat.c (_initialize_linux_nat): Add declaration.
13081 * linux-tdep.c (_initialize_linux_tdep): Add declaration.
13082 * linux-thread-db.c (_initialize_thread_db): Add declaration.
13083 * lm32-tdep.c (_initialize_lm32_tdep): Add declaration.
13084 * m2-lang.c (_initialize_m2_language): Add declaration.
13085 * m32c-tdep.c (_initialize_m32c_tdep): Add declaration.
13086 * m32r-linux-nat.c (_initialize_m32r_linux_nat): Add declaration.
13087 * m32r-linux-tdep.c (_initialize_m32r_linux_tdep): Add declaration.
13088 * m32r-tdep.c (_initialize_m32r_tdep): Add declaration.
13089 * m68hc11-tdep.c (_initialize_m68hc11_tdep): Add declaration.
13090 * m68k-bsd-nat.c (_initialize_m68kbsd_nat): Add declaration.
13091 * m68k-bsd-tdep.c (_initialize_m68kbsd_tdep): Add declaration.
13092 * m68k-linux-nat.c (_initialize_m68k_linux_nat): Add declaration.
13093 * m68k-linux-tdep.c (_initialize_m68k_linux_tdep): Add declaration.
13094 * m68k-tdep.c (_initialize_m68k_tdep): Add declaration.
13095 * machoread.c (_initialize_machoread): Add declaration.
13096 * macrocmd.c (_initialize_macrocmd): Add declaration.
13097 * macroscope.c (_initialize_macroscope): Add declaration.
13098 * maint-test-options.c (_initialize_maint_test_options): Add declaration.
13099 * maint-test-settings.c (_initialize_maint_test_settings): Add declaration.
13100 * maint.c (_initialize_maint_cmds): Add declaration.
13101 * mdebugread.c (_initialize_mdebugread): Add declaration.
13102 * memattr.c (_initialize_mem): Add declaration.
13103 * mep-tdep.c (_initialize_mep_tdep): Add declaration.
13104 * mi/mi-cmd-env.c (_initialize_mi_cmd_env): Add declaration.
13105 * mi/mi-cmds.c (_initialize_mi_cmds): Add declaration.
13106 * mi/mi-interp.c (_initialize_mi_interp): Add declaration.
13107 * mi/mi-main.c (_initialize_mi_main): Add declaration.
13108 * microblaze-linux-tdep.c (_initialize_microblaze_linux_tdep): Add declaration.
13109 * microblaze-tdep.c (_initialize_microblaze_tdep): Add declaration.
13110 * mips-fbsd-nat.c (_initialize_mips_fbsd_nat): Add declaration.
13111 * mips-fbsd-tdep.c (_initialize_mips_fbsd_tdep): Add declaration.
13112 * mips-linux-nat.c (_initialize_mips_linux_nat): Add declaration.
13113 * mips-linux-tdep.c (_initialize_mips_linux_tdep): Add declaration.
13114 * mips-nbsd-nat.c (_initialize_mipsnbsd_nat): Add declaration.
13115 * mips-nbsd-tdep.c (_initialize_mipsnbsd_tdep): Add declaration.
13116 * mips-sde-tdep.c (_initialize_mips_sde_tdep): Add declaration.
13117 * mips-tdep.c (_initialize_mips_tdep): Add declaration.
13118 * mips64-obsd-nat.c (_initialize_mips64obsd_nat): Add declaration.
13119 * mips64-obsd-tdep.c (_initialize_mips64obsd_tdep): Add declaration.
13120 * mipsread.c (_initialize_mipsread): Add declaration.
13121 * mn10300-linux-tdep.c (_initialize_mn10300_linux_tdep): Add declaration.
13122 * mn10300-tdep.c (_initialize_mn10300_tdep): Add declaration.
13123 * moxie-tdep.c (_initialize_moxie_tdep): Add declaration.
13124 * msp430-tdep.c (_initialize_msp430_tdep): Add declaration.
13125 * nds32-tdep.c (_initialize_nds32_tdep): Add declaration.
13126 * nios2-linux-tdep.c (_initialize_nios2_linux_tdep): Add declaration.
13127 * nios2-tdep.c (_initialize_nios2_tdep): Add declaration.
13128 * nto-procfs.c (_initialize_procfs): Add declaration.
13129 * objc-lang.c (_initialize_objc_language): Add declaration.
13130 * observable.c (_initialize_observer): Add declaration.
13131 * opencl-lang.c (_initialize_opencl_language): Add declaration.
13132 * or1k-linux-tdep.c (_initialize_or1k_linux_tdep): Add declaration.
13133 * or1k-tdep.c (_initialize_or1k_tdep): Add declaration.
13134 * osabi.c (_initialize_gdb_osabi): Add declaration.
13135 * osdata.c (_initialize_osdata): Add declaration.
13136 * p-valprint.c (_initialize_pascal_valprint): Add declaration.
13137 * parse.c (_initialize_parse): Add declaration.
13138 * ppc-fbsd-nat.c (_initialize_ppcfbsd_nat): Add declaration.
13139 * ppc-fbsd-tdep.c (_initialize_ppcfbsd_tdep): Add declaration.
13140 * ppc-linux-nat.c (_initialize_ppc_linux_nat): Add declaration.
13141 * ppc-linux-tdep.c (_initialize_ppc_linux_tdep): Add declaration.
13142 * ppc-nbsd-nat.c (_initialize_ppcnbsd_nat): Add declaration.
13143 * ppc-nbsd-tdep.c (_initialize_ppcnbsd_tdep): Add declaration.
13144 * ppc-obsd-nat.c (_initialize_ppcobsd_nat): Add declaration.
13145 * ppc-obsd-tdep.c (_initialize_ppcobsd_tdep): Add declaration.
13146 * printcmd.c (_initialize_printcmd): Add declaration.
13147 * probe.c (_initialize_probe): Add declaration.
13148 * proc-api.c (_initialize_proc_api): Add declaration.
13149 * proc-events.c (_initialize_proc_events): Add declaration.
13150 * proc-service.c (_initialize_proc_service): Add declaration.
13151 * procfs.c (_initialize_procfs): Add declaration.
13152 * producer.c (_initialize_producer): Add declaration.
13153 * psymtab.c (_initialize_psymtab): Add declaration.
13154 * python/python.c (_initialize_python): Add declaration.
13155 * ravenscar-thread.c (_initialize_ravenscar): Add declaration.
13156 * record-btrace.c (_initialize_record_btrace): Add declaration.
13157 * record-full.c (_initialize_record_full): Add declaration.
13158 * record.c (_initialize_record): Add declaration.
13159 * regcache-dump.c (_initialize_regcache_dump): Add declaration.
13160 * regcache.c (_initialize_regcache): Add declaration.
13161 * reggroups.c (_initialize_reggroup): Add declaration.
13162 * remote-notif.c (_initialize_notif): Add declaration.
13163 * remote-sim.c (_initialize_remote_sim): Add declaration.
13164 * remote.c (_initialize_remote): Add declaration.
13165 * reverse.c (_initialize_reverse): Add declaration.
13166 * riscv-fbsd-nat.c (_initialize_riscv_fbsd_nat): Add declaration.
13167 * riscv-fbsd-tdep.c (_initialize_riscv_fbsd_tdep): Add declaration.
13168 * riscv-linux-nat.c (_initialize_riscv_linux_nat): Add declaration.
13169 * riscv-linux-tdep.c (_initialize_riscv_linux_tdep): Add declaration.
13170 * riscv-tdep.c (_initialize_riscv_tdep): Add declaration.
13171 * rl78-tdep.c (_initialize_rl78_tdep): Add declaration.
13172 * rs6000-aix-tdep.c (_initialize_rs6000_aix_tdep): Add declaration.
13173 * rs6000-lynx178-tdep.c (_initialize_rs6000_lynx178_tdep):
13174 Add declaration.
13175 * rs6000-nat.c (_initialize_rs6000_nat): Add declaration.
13176 * rs6000-tdep.c (_initialize_rs6000_tdep): Add declaration.
13177 * run-on-main-thread.c (_initialize_run_on_main_thread): Add declaration.
13178 * rust-exp.y (_initialize_rust_exp): Add declaration.
13179 * rx-tdep.c (_initialize_rx_tdep): Add declaration.
13180 * s12z-tdep.c (_initialize_s12z_tdep): Add declaration.
13181 * s390-linux-nat.c (_initialize_s390_nat): Add declaration.
13182 * s390-linux-tdep.c (_initialize_s390_linux_tdep): Add declaration.
13183 * s390-tdep.c (_initialize_s390_tdep): Add declaration.
13184 * score-tdep.c (_initialize_score_tdep): Add declaration.
13185 * ser-go32.c (_initialize_ser_dos): Add declaration.
13186 * ser-mingw.c (_initialize_ser_windows): Add declaration.
13187 * ser-pipe.c (_initialize_ser_pipe): Add declaration.
13188 * ser-tcp.c (_initialize_ser_tcp): Add declaration.
13189 * ser-uds.c (_initialize_ser_socket): Add declaration.
13190 * ser-unix.c (_initialize_ser_hardwire): Add declaration.
13191 * serial.c (_initialize_serial): Add declaration.
13192 * sh-linux-tdep.c (_initialize_sh_linux_tdep): Add declaration.
13193 * sh-nbsd-nat.c (_initialize_shnbsd_nat): Add declaration.
13194 * sh-nbsd-tdep.c (_initialize_shnbsd_tdep): Add declaration.
13195 * sh-tdep.c (_initialize_sh_tdep): Add declaration.
13196 * skip.c (_initialize_step_skip): Add declaration.
13197 * sol-thread.c (_initialize_sol_thread): Add declaration.
13198 * solib-aix.c (_initialize_solib_aix): Add declaration.
13199 * solib-darwin.c (_initialize_darwin_solib): Add declaration.
13200 * solib-dsbt.c (_initialize_dsbt_solib): Add declaration.
13201 * solib-frv.c (_initialize_frv_solib): Add declaration.
13202 * solib-svr4.c (_initialize_svr4_solib): Add declaration.
13203 * solib-target.c (_initialize_solib_target): Add declaration.
13204 * solib.c (_initialize_solib): Add declaration.
13205 * source-cache.c (_initialize_source_cache): Add declaration.
13206 * source.c (_initialize_source): Add declaration.
13207 * sparc-linux-nat.c (_initialize_sparc_linux_nat): Add declaration.
13208 * sparc-linux-tdep.c (_initialize_sparc_linux_tdep): Add declaration.
13209 * sparc-nat.c (_initialize_sparc_nat): Add declaration.
13210 * sparc-nbsd-nat.c (_initialize_sparcnbsd_nat): Add declaration.
13211 * sparc-nbsd-tdep.c (_initialize_sparcnbsd_tdep): Add declaration.
13212 * sparc-obsd-tdep.c (_initialize_sparc32obsd_tdep): Add declaration.
13213 * sparc-sol2-tdep.c (_initialize_sparc_sol2_tdep): Add declaration.
13214 * sparc-tdep.c (_initialize_sparc_tdep): Add declaration.
13215 * sparc64-fbsd-nat.c (_initialize_sparc64fbsd_nat): Add declaration.
13216 * sparc64-fbsd-tdep.c (_initialize_sparc64fbsd_tdep): Add declaration.
13217 * sparc64-linux-nat.c (_initialize_sparc64_linux_nat): Add declaration.
13218 * sparc64-linux-tdep.c (_initialize_sparc64_linux_tdep): Add declaration.
13219 * sparc64-nat.c (_initialize_sparc64_nat): Add declaration.
13220 * sparc64-nbsd-nat.c (_initialize_sparc64nbsd_nat): Add declaration.
13221 * sparc64-nbsd-tdep.c (_initialize_sparc64nbsd_tdep): Add declaration.
13222 * sparc64-obsd-nat.c (_initialize_sparc64obsd_nat): Add declaration.
13223 * sparc64-obsd-tdep.c (_initialize_sparc64obsd_tdep): Add declaration.
13224 * sparc64-sol2-tdep.c (_initialize_sparc64_sol2_tdep): Add declaration.
13225 * sparc64-tdep.c (_initialize_sparc64_adi_tdep): Add declaration.
13226 * stabsread.c (_initialize_stabsread): Add declaration.
13227 * stack.c (_initialize_stack): Add declaration.
13228 * stap-probe.c (_initialize_stap_probe): Add declaration.
13229 * std-regs.c (_initialize_frame_reg): Add declaration.
13230 * symfile-debug.c (_initialize_symfile_debug): Add declaration.
13231 * symfile-mem.c (_initialize_symfile_mem): Add declaration.
13232 * symfile.c (_initialize_symfile): Add declaration.
13233 * symmisc.c (_initialize_symmisc): Add declaration.
13234 * symtab.c (_initialize_symtab): Add declaration.
13235 * target.c (_initialize_target): Add declaration.
13236 * target-connection.c (_initialize_target_connection): Add
13237 declaration.
13238 * target-dcache.c (_initialize_target_dcache): Add declaration.
13239 * target-descriptions.c (_initialize_target_descriptions): Add declaration.
13240 * thread.c (_initialize_thread): Add declaration.
13241 * tic6x-linux-tdep.c (_initialize_tic6x_linux_tdep): Add declaration.
13242 * tic6x-tdep.c (_initialize_tic6x_tdep): Add declaration.
13243 * tilegx-linux-nat.c (_initialize_tile_linux_nat): Add declaration.
13244 * tilegx-linux-tdep.c (_initialize_tilegx_linux_tdep): Add declaration.
13245 * tilegx-tdep.c (_initialize_tilegx_tdep): Add declaration.
13246 * tracectf.c (_initialize_ctf): Add declaration.
13247 * tracefile-tfile.c (_initialize_tracefile_tfile): Add declaration.
13248 * tracefile.c (_initialize_tracefile): Add declaration.
13249 * tracepoint.c (_initialize_tracepoint): Add declaration.
13250 * tui/tui-hooks.c (_initialize_tui_hooks): Add declaration.
13251 * tui/tui-interp.c (_initialize_tui_interp): Add declaration.
13252 * tui/tui-layout.c (_initialize_tui_layout): Add declaration.
13253 * tui/tui-regs.c (_initialize_tui_regs): Add declaration.
13254 * tui/tui-stack.c (_initialize_tui_stack): Add declaration.
13255 * tui/tui-win.c (_initialize_tui_win): Add declaration.
13256 * tui/tui.c (_initialize_tui): Add declaration.
13257 * typeprint.c (_initialize_typeprint): Add declaration.
13258 * ui-style.c (_initialize_ui_style): Add declaration.
13259 * unittests/array-view-selftests.c (_initialize_array_view_selftests): Add declaration.
13260 * unittests/child-path-selftests.c (_initialize_child_path_selftests): Add declaration.
13261 * unittests/cli-utils-selftests.c (_initialize_cli_utils_selftests): Add declaration.
13262 * unittests/common-utils-selftests.c (_initialize_common_utils_selftests): Add declaration.
13263 * unittests/copy_bitwise-selftests.c (_initialize_copy_bitwise_utils_selftests): Add declaration.
13264 * unittests/environ-selftests.c (_initialize_environ_selftests): Add declaration.
13265 * unittests/filtered_iterator-selftests.c
13266 (_initialize_filtered_iterator_selftests): Add declaration.
13267 * unittests/format_pieces-selftests.c (_initialize_format_pieces_selftests): Add declaration.
13268 * unittests/function-view-selftests.c (_initialize_function_view_selftests): Add declaration.
13269 * unittests/help-doc-selftests.c (_initialize_help_doc_selftests): Add declaration.
13270 * unittests/lookup_name_info-selftests.c (_initialize_lookup_name_info_selftests): Add declaration.
13271 * unittests/main-thread-selftests.c
13272 (_initialize_main_thread_selftests): Add declaration.
13273 * unittests/memory-map-selftests.c (_initialize_memory_map_selftests): Add declaration.
13274 * unittests/memrange-selftests.c (_initialize_memrange_selftests): Add declaration.
13275 * unittests/mkdir-recursive-selftests.c (_initialize_mkdir_recursive_selftests): Add declaration.
13276 * unittests/observable-selftests.c (_initialize_observer_selftest): Add declaration.
13277 * unittests/offset-type-selftests.c (_initialize_offset_type_selftests): Add declaration.
13278 * unittests/optional-selftests.c (_initialize_optional_selftests): Add declaration.
13279 * unittests/parse-connection-spec-selftests.c (_initialize_parse_connection_spec_selftests): Add declaration.
13280 * unittests/rsp-low-selftests.c (_initialize_rsp_low_selftests): Add declaration.
13281 * unittests/scoped_fd-selftests.c (_initialize_scoped_fd_selftests): Add declaration.
13282 * unittests/scoped_mmap-selftests.c (_initialize_scoped_mmap_selftests): Add declaration.
13283 * unittests/scoped_restore-selftests.c (_initialize_scoped_restore_selftests): Add declaration.
13284 * unittests/string_view-selftests.c (_initialize_string_view_selftests): Add declaration.
13285 * unittests/style-selftests.c (_initialize_style_selftest): Add declaration.
13286 * unittests/tracepoint-selftests.c (_initialize_tracepoint_selftests): Add declaration.
13287 * unittests/tui-selftests.c (_initialize_tui_selftest): Add
13288 declaration.
13289 * unittests/unpack-selftests.c (_initialize_unpack_selftests): Add declaration.
13290 * unittests/utils-selftests.c (_initialize_utils_selftests): Add declaration.
13291 * unittests/vec-utils-selftests.c (_initialize_vec_utils_selftests): Add declaration.
13292 * unittests/xml-utils-selftests.c (_initialize_xml_utils): Add declaration.
13293 * user-regs.c (_initialize_user_regs): Add declaration.
13294 * utils.c (_initialize_utils): Add declaration.
13295 * v850-tdep.c (_initialize_v850_tdep): Add declaration.
13296 * valops.c (_initialize_valops): Add declaration.
13297 * valprint.c (_initialize_valprint): Add declaration.
13298 * value.c (_initialize_values): Add declaration.
13299 * varobj.c (_initialize_varobj): Add declaration.
13300 * vax-bsd-nat.c (_initialize_vaxbsd_nat): Add declaration.
13301 * vax-nbsd-tdep.c (_initialize_vaxnbsd_tdep): Add declaration.
13302 * vax-tdep.c (_initialize_vax_tdep): Add declaration.
13303 * windows-nat.c (_initialize_windows_nat): Add declaration.
13304 (_initialize_check_for_gdb_ini): Add declaration.
13305 (_initialize_loadable): Add declaration.
13306 * windows-tdep.c (_initialize_windows_tdep): Add declaration.
13307 * x86-bsd-nat.c (_initialize_x86_bsd_nat): Add declaration.
13308 * x86-linux-nat.c (_initialize_x86_linux_nat): Add declaration.
13309 * xcoffread.c (_initialize_xcoffread): Add declaration.
13310 * xml-support.c (_initialize_xml_support): Add declaration.
13311 * xstormy16-tdep.c (_initialize_xstormy16_tdep): Add declaration.
13312 * xtensa-linux-nat.c (_initialize_xtensa_linux_nat): Add declaration.
13313 * xtensa-linux-tdep.c (_initialize_xtensa_linux_tdep): Add declaration.
13314 * xtensa-tdep.c (_initialize_xtensa_tdep): Add declaration.
13315
e2de1eec
SM
133162020-01-13 Simon Marchi <simon.marchi@polymtl.ca>
13317
13318 * regformats/regdat.sh: Generate declaration for init function.
13319
e0037b4c
SM
133202020-01-13 Simon Marchi <simon.marchi@polymtl.ca>
13321
13322 * remote-sim.c (next_pid, INITIAL_PID, sim_inferior_data): Move
13323 up.
13324 (gdbsim_target) <get_inferior_data_by_ptid, resume_one_inferior,
13325 close_one_inferior>: New methods.
13326 (get_sim_inferior_data_by_ptid): Move to gdbsim_target,
13327 pass down target to find_inferior_pid.
13328 (gdbsim_target::fetch_registers, gdbsim_target::store_registers):
13329 Pass down target to find_inferior_ptid.
13330 (gdbsim_target::create_inferior): Pass down target to
13331 add_thread_silent.
13332 (gdbsim_close_inferior): Move to gdbsim_close_inferior, pass
13333 target down to find_inferior_ptid and switch_to_thread.
13334 (gdbsim_target::close): Update to call close_one_inferior.
13335 (struct resume_data): Remove.
13336 (gdbsim_resume_inferior): Move to gdbsim_target. Take arguments
13337 directly, rather than through a void pointer.
13338 (gdbsim_target::resume): Update to call resume_one_inferior.
13339
58920b5b
SM
133402020-01-12 Simon Marchi <simon.marchi@polymtl.ca>
13341
13342 * gdbsupport/gdb_wait.c: Include gdb_wait.h.
13343
4ec89149
PA
133442020-01-12 Pedro Alves <palves@redhat.com>
13345
13346 * bsd-kvm.c (bsd_kvm_target::close): Call exit_inferior_silent
13347 directly for the current inferior instead of
13348 discard_all_inferiors.
13349 (discard_all_inferiors): Delete.
13350
7c392d1d
TT
133512020-01-11 Tom Tromey <tom@tromey.com>
13352
13353 * tui/tui-wingeneral.c (box_win): Check cli_styling.
13354 * tui/tui-winsource.c (tui_source_window_base::refill): Use
13355 deprecated_safe_get_selected_frame.
13356
d9ebdab7
TBA
133572020-01-10 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
13358
13359 * inferior.c (print_inferior): Switch inferior before printing it.
13360
f3c469b9
PA
133612020-01-10 Aleksandar Paunovic <aleksandar.paunovic@intel.com>
13362 Pedro Alves <palves@redhat.com>
13363
13364 * progspace-and-thread.c (switch_to_program_space_and_thread):
13365 Assert there's an inferior for PSPACE. Use
13366 switch_to_inferior_no_thread to switch the inferior too.
13367 * progspace.c (program_space::~program_space): Call
13368 clear_symtab_users here, with SYMFILE_DEFER_BP_RESET.
13369 (program_space::free_all_objfiles): Don't call clear_symtab_users
13370 here.
13371 * symfile.c (symbol_file_clear): Call clear_symtab_users here.
13372
65c574f6
PA
133732020-01-10 Pedro Alves <palves@redhat.com>
13374
13375 * NEWS: Mention multi-target debugging, "info connections", and
13376 "add-inferior -no-connection".
13377
2f4fcf00
PA
133782020-01-10 Pedro Alves <palves@redhat.com>
13379
13380 * infrun.c: Include "target-connection.h".
13381 (check_multi_target_resumption): New.
13382 (proceed): Call it.
13383 * target-connection.c (make_target_connection_string): Make
13384 extern.
13385 * target-connection.h (make_target_connection_string): Declare.
13386
121b3efd
PA
133872020-01-10 Pedro Alves <palves@redhat.com>
13388
13389 * Makefile.in (COMMON_SFILES): Add target-connection.c.
13390 * inferior.c (uiout_field_connection): New function.
13391 (print_inferior): Add new "connection-id" column.
13392 (add_inferior_command): Show connection number/string of added
13393 inferior.
13394 * process-stratum-target.h
13395 (process_stratum_target::connection_string): New virtual method.
13396 (process_stratum_target::connection_number): New field.
13397 * remote.c (remote_target::connection_string): New override.
13398 * target-connection.c: New file.
13399 * target-connection.h: New file.
13400 * target.c (decref_target): Remove process_stratum targets from
13401 the connection list.
13402 (target_stack::push): Add process_stratum targets to the
13403 connection list.
13404
4f837581
PA
134052020-01-10 Pedro Alves <palves@redhat.com>
13406
13407 Revert:
13408 2016-04-12 Pedro Alves <palves@redhat.com>
13409 * serial.c (serial_open, serial_fdopen_ops, do_serial_close):
13410 Remove references to name.
13411 * serial.h (struct serial) <name>: Delete.
13412
f4ec508e
PA
134132020-01-10 Pedro Alves <palves@redhat.com>
13414
13415 * gdbarch-selftests.c (register_to_value_test): Remove "target
13416 already pushed" check.
13417
5b6d1e4f
PA
134182020-01-10 Pedro Alves <palves@redhat.com>
13419 John Baldwin <jhb@FreeBSD.org>
13420
13421 * aarch64-linux-nat.c
13422 (aarch64_linux_nat_target::thread_architecture): Adjust.
13423 * ada-tasks.c (print_ada_task_info): Adjust find_thread_ptid call.
13424 (task_command_1): Likewise.
13425 * aix-thread.c (sync_threadlists, aix_thread_target::resume)
13426 (aix_thread_target::wait, aix_thread_target::fetch_registers)
13427 (aix_thread_target::store_registers)
13428 (aix_thread_target::thread_alive): Adjust.
13429 * amd64-fbsd-tdep.c: Include "inferior.h".
13430 (amd64fbsd_get_thread_local_address): Pass down target.
13431 * amd64-linux-nat.c (ps_get_thread_area): Use ps_prochandle
13432 thread's gdbarch instead of target_gdbarch.
13433 * break-catch-sig.c (signal_catchpoint_print_it): Adjust call to
13434 get_last_target_status.
13435 * break-catch-syscall.c (print_it_catch_syscall): Likewise.
13436 * breakpoint.c (breakpoints_should_be_inserted_now): Consider all
13437 inferiors.
13438 (update_inserted_breakpoint_locations): Skip if inferiors with no
13439 execution.
13440 (update_global_location_list): When handling moribund locations,
13441 find representative inferior for location's pspace, and use thread
13442 count of its process_stratum target.
13443 * bsd-kvm.c (bsd_kvm_target_open): Pass target down.
13444 * bsd-uthread.c (bsd_uthread_target::wait): Use
13445 as_process_stratum_target and adjust thread_change_ptid and
13446 add_thread calls.
13447 (bsd_uthread_target::update_thread_list): Use
13448 as_process_stratum_target and adjust find_thread_ptid,
13449 thread_change_ptid and add_thread calls.
13450 * btrace.c (maint_btrace_packet_history_cmd): Adjust
13451 find_thread_ptid call.
13452 * corelow.c (add_to_thread_list): Adjust add_thread call.
13453 (core_target_open): Adjust add_thread_silent and thread_count
13454 calls.
13455 (core_target::pid_to_str): Adjust find_inferior_ptid call.
13456 * ctf.c (ctf_target_open): Adjust add_thread_silent call.
13457 * event-top.c (async_disconnect): Pop targets from all inferiors.
13458 * exec.c (add_target_sections): Push exec target on all inferiors
13459 sharing the program space.
13460 (remove_target_sections): Remove the exec target from all
13461 inferiors sharing the program space.
13462 (exec_on_vfork): New.
13463 * exec.h (exec_on_vfork): Declare.
13464 * fbsd-nat.c (fbsd_add_threads): Add fbsd_nat_target parameter.
13465 Pass it down.
13466 (fbsd_nat_target::update_thread_list): Adjust.
13467 (fbsd_nat_target::resume): Adjust.
13468 (fbsd_handle_debug_trap): Add fbsd_nat_target parameter. Pass it
13469 down.
13470 (fbsd_nat_target::wait, fbsd_nat_target::post_attach): Adjust.
13471 * fbsd-tdep.c (fbsd_corefile_thread): Adjust
13472 get_thread_arch_regcache call.
13473 * fork-child.c (gdb_startup_inferior): Pass target down to
13474 startup_inferior and set_executing.
13475 * gdbthread.h (struct process_stratum_target): Forward declare.
13476 (add_thread, add_thread_silent, add_thread_with_info)
13477 (in_thread_list): Add process_stratum_target parameter.
13478 (find_thread_ptid(inferior*, ptid_t)): New overload.
13479 (find_thread_ptid, thread_change_ptid): Add process_stratum_target
13480 parameter.
13481 (all_threads()): Delete overload.
13482 (all_threads, all_non_exited_threads): Add process_stratum_target
13483 parameter.
13484 (all_threads_safe): Use brace initialization.
13485 (thread_count): Add process_stratum_target parameter.
13486 (set_resumed, set_running, set_stop_requested, set_executing)
13487 (threads_are_executing, finish_thread_state): Add
13488 process_stratum_target parameter.
13489 (switch_to_thread): Use is_current_thread.
13490 * i386-fbsd-tdep.c: Include "inferior.h".
13491 (i386fbsd_get_thread_local_address): Pass down target.
13492 * i386-linux-nat.c (i386_linux_nat_target::low_resume): Adjust.
13493 * inf-child.c (inf_child_target::maybe_unpush_target): Remove
13494 have_inferiors check.
13495 * inf-ptrace.c (inf_ptrace_target::create_inferior)
13496 (inf_ptrace_target::attach): Adjust.
13497 * infcall.c (run_inferior_call): Adjust.
13498 * infcmd.c (run_command_1): Pass target to
13499 scoped_finish_thread_state.
13500 (proceed_thread_callback): Skip inferiors with no execution.
13501 (continue_command): Rename 'all_threads' local to avoid hiding
13502 'all_threads' function. Adjust get_last_target_status call.
13503 (prepare_one_step): Adjust set_running call.
13504 (signal_command): Use user_visible_resume_target. Compare thread
13505 pointers instead of inferior_ptid.
13506 (info_program_command): Adjust to pass down target.
13507 (attach_command): Mark target's 'thread_executing' flag.
13508 (stop_current_target_threads_ns): New, factored out from ...
13509 (interrupt_target_1): ... this. Switch inferior before making
13510 target calls.
13511 * inferior-iter.h
13512 (struct all_inferiors_iterator, struct all_inferiors_range)
13513 (struct all_inferiors_safe_range)
13514 (struct all_non_exited_inferiors_range): Filter on
13515 process_stratum_target too. Remove explicit.
13516 * inferior.c (inferior::inferior): Push dummy target on target
13517 stack.
13518 (find_inferior_pid, find_inferior_ptid, number_of_live_inferiors):
13519 Add process_stratum_target parameter, and pass it down.
13520 (have_live_inferiors): Adjust.
13521 (switch_to_inferior_and_push_target): New.
13522 (add_inferior_command, clone_inferior_command): Handle
13523 "-no-connection" parameter. Use
13524 switch_to_inferior_and_push_target.
13525 (_initialize_inferior): Mention "-no-connection" option in
13526 the help of "add-inferior" and "clone-inferior" commands.
13527 * inferior.h: Include "process-stratum-target.h".
13528 (interrupt_target_1): Use bool.
13529 (struct inferior) <push_target, unpush_target, target_is_pushed,
13530 find_target_beneath, top_target, process_target, target_at,
13531 m_stack>: New.
13532 (discard_all_inferiors): Delete.
13533 (find_inferior_pid, find_inferior_ptid, number_of_live_inferiors)
13534 (all_inferiors, all_non_exited_inferiors): Add
13535 process_stratum_target parameter.
13536 * infrun.c: Include "gdb_select.h" and <unordered_map>.
13537 (target_last_proc_target): New global.
13538 (follow_fork_inferior): Push target on new inferior. Pass target
13539 to add_thread_silent. Call exec_on_vfork. Handle target's
13540 reference count.
13541 (follow_fork): Adjust get_last_target_status call. Also consider
13542 target.
13543 (follow_exec): Push target on new inferior.
13544 (struct execution_control_state) <target>: New field.
13545 (user_visible_resume_target): New.
13546 (do_target_resume): Call target_async.
13547 (resume_1): Set target's threads_executing flag. Consider resume
13548 target.
13549 (commit_resume_all_targets): New.
13550 (proceed): Also consider resume target. Skip threads of inferiors
13551 with no execution. Commit resumtion in all targets.
13552 (start_remote): Pass current inferior to wait_for_inferior.
13553 (infrun_thread_stop_requested): Consider target as well. Pass
13554 thread_info pointer to clear_inline_frame_state instead of ptid.
13555 (infrun_thread_thread_exit): Consider target as well.
13556 (random_pending_event_thread): New inferior parameter. Use it.
13557 (do_target_wait): Rename to ...
13558 (do_target_wait_1): ... this. Add inferior parameter, and pass it
13559 down.
13560 (threads_are_resumed_pending_p, do_target_wait): New.
13561 (prepare_for_detach): Adjust calls.
13562 (wait_for_inferior): New inferior parameter. Handle it. Use
13563 do_target_wait_1 instead of do_target_wait.
13564 (fetch_inferior_event): Adjust. Switch to representative
13565 inferior. Pass target down.
13566 (set_last_target_status): Add process_stratum_target parameter.
13567 Save target in global.
13568 (get_last_target_status): Add process_stratum_target parameter and
13569 handle it.
13570 (nullify_last_target_wait_ptid): Clear 'target_last_proc_target'.
13571 (context_switch): Check inferior_ptid == null_ptid before calling
13572 inferior_thread().
13573 (get_inferior_stop_soon): Pass down target.
13574 (wait_one): Rename to ...
13575 (poll_one_curr_target): ... this.
13576 (struct wait_one_event): New.
13577 (wait_one): New.
13578 (stop_all_threads): Adjust.
13579 (handle_no_resumed, handle_inferior_event): Adjust to consider the
13580 event's target.
13581 (switch_back_to_stepped_thread): Also consider target.
13582 (print_stop_event): Update.
13583 (normal_stop): Update. Also consider the resume target.
13584 * infrun.h (wait_for_inferior): Remove declaration.
13585 (user_visible_resume_target): New declaration.
13586 (get_last_target_status, set_last_target_status): New
13587 process_stratum_target parameter.
13588 * inline-frame.c (clear_inline_frame_state(ptid_t)): Add
13589 process_stratum_target parameter, and use it.
13590 (clear_inline_frame_state (thread_info*)): New.
13591 * inline-frame.c (clear_inline_frame_state(ptid_t)): Add
13592 process_stratum_target parameter.
13593 (clear_inline_frame_state (thread_info*)): Declare.
13594 * linux-fork.c (delete_checkpoint_command): Pass target down to
13595 find_thread_ptid.
13596 (checkpoint_command): Adjust.
13597 * linux-nat.c (linux_nat_target::follow_fork): Switch to thread
13598 instead of just tweaking inferior_ptid.
13599 (linux_nat_switch_fork): Pass target down to thread_change_ptid.
13600 (exit_lwp): Pass target down to find_thread_ptid.
13601 (attach_proc_task_lwp_callback): Pass target down to
13602 add_thread/set_running/set_executing.
13603 (linux_nat_target::attach): Pass target down to
13604 thread_change_ptid.
13605 (get_detach_signal): Pass target down to find_thread_ptid.
13606 Consider last target status's target.
13607 (linux_resume_one_lwp_throw, resume_lwp)
13608 (linux_handle_syscall_trap, linux_handle_extended_wait, wait_lwp)
13609 (stop_wait_callback, save_stop_reason, linux_nat_filter_event)
13610 (linux_nat_wait_1, resume_stopped_resumed_lwps): Pass target down.
13611 (linux_nat_target::async_wait_fd): New.
13612 (linux_nat_stop_lwp, linux_nat_target::thread_address_space): Pass
13613 target down.
13614 * linux-nat.h (linux_nat_target::async_wait_fd): Declare.
13615 * linux-tdep.c (get_thread_arch_regcache): Pass target down.
13616 * linux-thread-db.c (struct thread_db_info::process_target): New
13617 field.
13618 (add_thread_db_info): Save target.
13619 (get_thread_db_info): New process_stratum_target parameter. Also
13620 match target.
13621 (delete_thread_db_info): New process_stratum_target parameter.
13622 Also match target.
13623 (thread_from_lwp): Adjust to pass down target.
13624 (thread_db_notice_clone): Pass down target.
13625 (check_thread_db_callback): Pass down target.
13626 (try_thread_db_load_1): Always push the thread_db target.
13627 (try_thread_db_load, record_thread): Pass target down.
13628 (thread_db_target::detach): Pass target down. Always unpush the
13629 thread_db target.
13630 (thread_db_target::wait, thread_db_target::mourn_inferior): Pass
13631 target down. Always unpush the thread_db target.
13632 (find_new_threads_callback, thread_db_find_new_threads_2)
13633 (thread_db_target::update_thread_list): Pass target down.
13634 (thread_db_target::pid_to_str): Pass current inferior down.
13635 (thread_db_target::get_thread_local_address): Pass target down.
13636 (thread_db_target::resume, maintenance_check_libthread_db): Pass
13637 target down.
13638 * nto-procfs.c (nto_procfs_target::update_thread_list): Adjust.
13639 * procfs.c (procfs_target::procfs_init_inferior): Declare.
13640 (proc_set_current_signal, do_attach, procfs_target::wait): Adjust.
13641 (procfs_init_inferior): Rename to ...
13642 (procfs_target::procfs_init_inferior): ... this and adjust.
13643 (procfs_target::create_inferior, procfs_notice_thread)
13644 (procfs_do_thread_registers): Adjust.
13645 * ppc-fbsd-tdep.c: Include "inferior.h".
13646 (ppcfbsd_get_thread_local_address): Pass down target.
13647 * proc-service.c (ps_xfer_memory): Switch current inferior and
13648 program space as well.
13649 (get_ps_regcache): Pass target down.
13650 * process-stratum-target.c
13651 (process_stratum_target::thread_address_space)
13652 (process_stratum_target::thread_architecture): Pass target down.
13653 * process-stratum-target.h
13654 (process_stratum_target::threads_executing): New field.
13655 (as_process_stratum_target): New.
13656 * ravenscar-thread.c
13657 (ravenscar_thread_target::update_inferior_ptid): Pass target down.
13658 (ravenscar_thread_target::wait, ravenscar_add_thread): Pass target
13659 down.
13660 * record-btrace.c (record_btrace_target::info_record): Adjust.
13661 (record_btrace_target::record_method)
13662 (record_btrace_target::record_is_replaying)
13663 (record_btrace_target::fetch_registers)
13664 (get_thread_current_frame_id, record_btrace_target::resume)
13665 (record_btrace_target::wait, record_btrace_target::stop): Pass
13666 target down.
13667 * record-full.c (record_full_wait_1): Switch to event thread.
13668 Pass target down.
13669 * regcache.c (regcache::regcache)
13670 (get_thread_arch_aspace_regcache, get_thread_arch_regcache): Add
13671 process_stratum_target parameter and handle it.
13672 (current_thread_target): New global.
13673 (get_thread_regcache): Add process_stratum_target parameter and
13674 handle it. Switch inferior before calling target method.
13675 (get_thread_regcache): Pass target down.
13676 (get_thread_regcache_for_ptid): Pass target down.
13677 (registers_changed_ptid): Add process_stratum_target parameter and
13678 handle it.
13679 (registers_changed_thread, registers_changed): Pass target down.
13680 (test_get_thread_arch_aspace_regcache): New.
13681 (current_regcache_test): Define a couple local test_target_ops
13682 instances and use them for testing.
13683 (readwrite_regcache): Pass process_stratum_target parameter.
13684 (cooked_read_test, cooked_write_test): Pass mock_target down.
13685 * regcache.h (get_thread_regcache, get_thread_arch_regcache)
13686 (get_thread_arch_aspace_regcache): Add process_stratum_target
13687 parameter.
13688 (regcache::target): New method.
13689 (regcache::regcache, regcache::get_thread_arch_aspace_regcache)
13690 (regcache::registers_changed_ptid): Add process_stratum_target
13691 parameter.
13692 (regcache::m_target): New field.
13693 (registers_changed_ptid): Add process_stratum_target parameter.
13694 * remote.c (remote_state::supports_vCont_probed): New field.
13695 (remote_target::async_wait_fd): New method.
13696 (remote_unpush_and_throw): Add remote_target parameter.
13697 (get_current_remote_target): Adjust.
13698 (remote_target::remote_add_inferior): Push target.
13699 (remote_target::remote_add_thread)
13700 (remote_target::remote_notice_new_inferior)
13701 (get_remote_thread_info): Pass target down.
13702 (remote_target::update_thread_list): Skip threads of inferiors
13703 bound to other targets. (remote_target::close): Don't discard
13704 inferiors. (remote_target::add_current_inferior_and_thread)
13705 (remote_target::process_initial_stop_replies)
13706 (remote_target::start_remote)
13707 (remote_target::remote_serial_quit_handler): Pass down target.
13708 (remote_target::remote_unpush_target): New remote_target
13709 parameter. Unpush the target from all inferiors.
13710 (remote_target::remote_unpush_and_throw): New remote_target
13711 parameter. Pass it down.
13712 (remote_target::open_1): Check whether the current inferior has
13713 execution instead of checking whether any inferior is live. Pass
13714 target down.
13715 (remote_target::remote_detach_1): Pass down target. Use
13716 remote_unpush_target.
13717 (extended_remote_target::attach): Pass down target.
13718 (remote_target::remote_vcont_probe): Set supports_vCont_probed.
13719 (remote_target::append_resumption): Pass down target.
13720 (remote_target::append_pending_thread_resumptions)
13721 (remote_target::remote_resume_with_hc, remote_target::resume)
13722 (remote_target::commit_resume): Pass down target.
13723 (remote_target::remote_stop_ns): Check supports_vCont_probed.
13724 (remote_target::interrupt_query)
13725 (remote_target::remove_new_fork_children)
13726 (remote_target::check_pending_events_prevent_wildcard_vcont)
13727 (remote_target::remote_parse_stop_reply)
13728 (remote_target::process_stop_reply): Pass down target.
13729 (first_remote_resumed_thread): New remote_target parameter. Pass
13730 it down.
13731 (remote_target::wait_as): Pass down target.
13732 (unpush_and_perror): New remote_target parameter. Pass it down.
13733 (remote_target::readchar, remote_target::remote_serial_write)
13734 (remote_target::getpkt_or_notif_sane_1)
13735 (remote_target::kill_new_fork_children, remote_target::kill): Pass
13736 down target.
13737 (remote_target::mourn_inferior): Pass down target. Use
13738 remote_unpush_target.
13739 (remote_target::core_of_thread)
13740 (remote_target::remote_btrace_maybe_reopen): Pass down target.
13741 (remote_target::pid_to_exec_file)
13742 (remote_target::thread_handle_to_thread_info): Pass down target.
13743 (remote_target::async_wait_fd): New.
13744 * riscv-fbsd-tdep.c: Include "inferior.h".
13745 (riscv_fbsd_get_thread_local_address): Pass down target.
13746 * sol2-tdep.c (sol2_core_pid_to_str): Pass down target.
13747 * sol-thread.c (sol_thread_target::wait, ps_lgetregs, ps_lsetregs)
13748 (ps_lgetfpregs, ps_lsetfpregs, sol_update_thread_list_callback):
13749 Adjust.
13750 * solib-spu.c (spu_skip_standalone_loader): Pass down target.
13751 * solib-svr4.c (enable_break): Pass down target.
13752 * spu-multiarch.c (parse_spufs_run): Pass down target.
13753 * spu-tdep.c (spu2ppu_sniffer): Pass down target.
13754 * target-delegates.c: Regenerate.
13755 * target.c (g_target_stack): Delete.
13756 (current_top_target): Return the current inferior's top target.
13757 (target_has_execution_1): Refer to the passed-in inferior's top
13758 target.
13759 (target_supports_terminal_ours): Check whether the initial
13760 inferior was already created.
13761 (decref_target): New.
13762 (target_stack::push): Incref/decref the target.
13763 (push_target, push_target, unpush_target): Adjust.
13764 (target_stack::unpush): Defref target.
13765 (target_is_pushed): Return bool. Adjust to refer to the current
13766 inferior's target stack.
13767 (dispose_inferior): Delete, and inline parts ...
13768 (target_preopen): ... here. Only dispose of the current inferior.
13769 (target_detach): Hold strong target reference while detaching.
13770 Pass target down.
13771 (target_thread_name): Add assertion.
13772 (target_resume): Pass down target.
13773 (target_ops::beneath, find_target_at): Adjust to refer to the
13774 current inferior's target stack.
13775 (get_dummy_target): New.
13776 (target_pass_ctrlc): Pass the Ctrl-C to the first inferior that
13777 has a thread running.
13778 (initialize_targets): Rename to ...
13779 (_initialize_target): ... this.
13780 * target.h: Include "gdbsupport/refcounted-object.h".
13781 (struct target_ops): Inherit refcounted_object.
13782 (target_ops::shortname, target_ops::longname): Make const.
13783 (target_ops::async_wait_fd): New method.
13784 (decref_target): Declare.
13785 (struct target_ops_ref_policy): New.
13786 (target_ops_ref): New typedef.
13787 (get_dummy_target): Declare function.
13788 (target_is_pushed): Return bool.
13789 * thread-iter.c (all_matching_threads_iterator::m_inf_matches)
13790 (all_matching_threads_iterator::all_matching_threads_iterator):
13791 Handle filter target.
13792 * thread-iter.h (struct all_matching_threads_iterator, struct
13793 all_matching_threads_range, class all_non_exited_threads_range):
13794 Filter by target too. Remove explicit.
13795 * thread.c (threads_executing): Delete.
13796 (inferior_thread): Pass down current inferior.
13797 (clear_thread_inferior_resources): Pass down thread pointer
13798 instead of ptid_t.
13799 (add_thread_silent, add_thread_with_info, add_thread): Add
13800 process_stratum_target parameter. Use it for thread and inferior
13801 searches.
13802 (is_current_thread): New.
13803 (thread_info::deletable): Use it.
13804 (find_thread_ptid, thread_count, in_thread_list)
13805 (thread_change_ptid, set_resumed, set_running): New
13806 process_stratum_target parameter. Pass it down.
13807 (set_executing): New process_stratum_target parameter. Pass it
13808 down. Adjust reference to 'threads_executing'.
13809 (threads_are_executing): New process_stratum_target parameter.
13810 Adjust reference to 'threads_executing'.
13811 (set_stop_requested, finish_thread_state): New
13812 process_stratum_target parameter. Pass it down.
13813 (switch_to_thread): Also match inferior.
13814 (switch_to_thread): New process_stratum_target parameter. Pass it
13815 down.
13816 (update_threads_executing): Reimplement.
13817 * top.c (quit_force): Pop targets from all inferior.
13818 (gdb_init): Don't call initialize_targets.
13819 * windows-nat.c (windows_nat_target) <get_windows_debug_event>:
13820 Declare.
13821 (windows_add_thread, windows_delete_thread): Adjust.
13822 (get_windows_debug_event): Rename to ...
13823 (windows_nat_target::get_windows_debug_event): ... this. Adjust.
13824 * tracefile-tfile.c (tfile_target_open): Pass down target.
13825 * gdbsupport/common-gdbthread.h (struct process_stratum_target):
13826 Forward declare.
13827 (switch_to_thread): Add process_stratum_target parameter.
13828 * mi/mi-interp.c (mi_on_resume_1): Add process_stratum_target
13829 parameter. Use it.
13830 (mi_on_resume): Pass target down.
13831 * nat/fork-inferior.c (startup_inferior): Add
13832 process_stratum_target parameter. Pass it down.
13833 * nat/fork-inferior.h (startup_inferior): Add
13834 process_stratum_target parameter.
13835 * python/py-threadevent.c (py_get_event_thread): Pass target down.
13836
75c6c844
PA
138372020-01-10 Pedro Alves <palves@redhat.com>
13838
13839 * remote.c (remote_target::start_remote): Don't set inferior_ptid
13840 directly. Instead find the first thread in the thread list and
13841 use switch_to_thread.
13842
78f2c40a
PA
138432020-01-10 Pedro Alves <palves@redhat.com>
13844
13845 * remote.c (remote_target::remote_add_inferior): Don't bind a
13846 process to the current inferior if the current inferior is already
13847 bound to a process.
13848
e7af6c70
TBA
138492020-01-10 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
13850 Pedro Alves <palves@redhat.com>
13851
13852 * remote.c (remote_target::remote_parse_stop_reply) <W/X packets>:
13853 If no process is specified, return null_ptid instead of
13854 inferior_ptid.
13855 (remote_target::wait_as): Handle TARGET_WAITKIND_EXITED /
13856 TARGET_WAITKIND_SIGNALLED with no pid.
13857
31ba933e
PA
138582020-01-10 Pedro Alves <palves@redhat.com>
13859
13860 * remote.c (first_remote_resumed_thread): New.
13861 (remote_target::wait_as): Use it as default event_ptid instead of
13862 inferior_ptid.
13863
735fc2ca
PA
138642020-01-10 Pedro Alves <palves@redhat.com>
13865
13866 * infrun.c (handle_no_resumed): Use all_non_exited_inferiors.
13867
c17e02e1
PA
138682020-01-10 Pedro Alves <palves@redhat.com>
13869
13870 * tracefile-tfile.c (tfile_target::close): Assert that trace_fd is
13871 not -1.
13872
ab1ddbcf
PA
138732020-01-10 Pedro Alves <palves@redhat.com>
13874
13875 * break-catch-sig.c (signal_catchpoint_print_it): Don't pass a
13876 ptid to get_last_target_status.
13877 * break-catch-syscall.c (print_it_catch_syscall): Don't pass a
13878 ptid to get_last_target_status.
13879 * infcmd.c (continue_command): Don't pass a target_waitstatus to
13880 get_last_target_status.
13881 (info_program_command): Don't pass a target_waitstatus to
13882 get_last_target_status.
13883 * infrun.c (init_wait_for_inferior): Use
13884 nullify_last_target_wait_ptid.
13885 (get_last_target_status): Handle nullptr arguments.
13886 (nullify_last_target_wait_ptid): Clear target_last_waitstatus.
13887 (print_stop_event): Don't pass a ptid to get_last_target_status.
13888 (normal_stop): Don't pass a ptid to get_last_target_status.
13889 * infrun.h (get_last_target_status, set_last_target_status): Move
13890 comments here and update.
13891 (nullify_last_target_wait_ptid): Declare.
13892 * linux-fork.c (fork_load_infrun_state): Remove local extern
13893 declaration of nullify_last_target_wait_ptid.
13894 * linux-nat.c (get_detach_signal): Don't pass a target_waitstatus
13895 to get_last_target_status.
13896
f3f8ece4
PA
138972020-01-10 Pedro Alves <palves@redhat.com>
13898
13899 * gdbthread.h (scoped_restore_current_thread)
13900 <dont_restore, restore, m_dont_restore>: Declare.
13901 * thread.c (thread_alive): Add assertion. Return bool.
13902 (switch_to_thread_if_alive): New.
13903 (prune_threads): Switch inferior/thread.
13904 (print_thread_info_1): Switch thread before calling target methods.
13905 (scoped_restore_current_thread::restore): New, factored out from
13906 ...
13907 (scoped_restore_current_thread::~scoped_restore_current_thread):
13908 ... this.
13909 (scoped_restore_current_thread::scoped_restore_current_thread):
13910 Add assertion.
13911 (thread_apply_all_command, thread_select): Use
13912 switch_to_thread_if_alive.
13913 * infrun.c (proceed, restart_threads, handle_signal_stop)
13914 (switch_back_to_stepped_thread): Switch current thread before
13915 calling target methods.
13916
db2d40f7
PA
139172020-01-10 Pedro Alves <palves@redhat.com>
13918
13919 * inferior.c (switch_to_inferior_no_thread): New function,
13920 factored out from ...
13921 (inferior_command): ... here.
13922 * inferior.h (switch_to_inferior_no_thread): Declare.
13923 * mi/mi-main.c (run_one_inferior): Use
13924 switch_to_inferior_no_thread.
13925
bd420a2d
PA
139262020-01-10 Pedro Alves <palves@redhat.com>
13927
13928 * infcmd.c (kill_command): Remove dead code.
13929
ddf5db90
PA
139302020-01-10 Pedro Alves <palves@redhat.com>
13931
13932 * remote.c (remote_target::mourn_inferior): No longer check
13933 whether the target is running.
13934
5018ce90
PA
139352020-01-10 Pedro Alves <palves@redhat.com>
13936
13937 * corelow.c (core_target::has_execution): Change parameter type to
13938 inferior pointer.
13939 * inferior.c (number_of_live_inferiors): Use
13940 inferior::has_execution instead of target_has_execution_1.
13941 * inferior.h (inferior::has_execution): New.
13942 * linux-thread-db.c (thread_db_target::update_thread_list): Use
13943 inferior::has_execution instead of target_has_execution_1.
13944 * process-stratum-target.c
13945 (process_stratum_target::has_execution): Change parameter type to
13946 inferior pointer. Check the inferior's PID instead of
13947 inferior_ptid.
13948 * process-stratum-target.h
13949 (process_stratum_target::has_execution): Change parameter type to
13950 inferior pointer.
13951 * record-full.c (record_full_core_target::has_execution): Change
13952 parameter type to inferior pointer.
13953 * target.c (target_has_execution_1): Change parameter type to
13954 inferior pointer.
13955 (target_has_execution_current): Adjust.
13956 * target.h (target_ops::has_execution): Change parameter type to
13957 inferior pointer.
13958 (target_has_execution_1): Change parameter type to inferior
13959 pointer. Change return type to bool.
13960 * tracefile.h (tracefile_target::has_execution): Change parameter
13961 type to inferior pointer.
13962
74375d18
PA
139632020-01-10 Pedro Alves <palves@redhat.com>
13964
13965 * exceptions.c (print_flush): Remove current_top_target() check.
13966
acdf84a6
PA
139672020-01-10 Pedro Alves <palves@redhat.com>
13968
13969 * remote.c (show_remote_exec_file): Show the current inferior's
13970 exec-file instead of the command variable's value.
13971
ec506636
PA
139722020-01-10 Pedro Alves <palves@redhat.com>
13973
13974 * record-full.c (record_full_resume_ptid): New global.
13975 (record_full_target::resume): Set it.
13976 (record_full_wait_1): Use record_full_resume_ptid instead of
13977 inferior_ptid.
13978
873657b9
PA
139792020-01-10 Pedro Alves <palves@redhat.com>
13980
13981 * gdbthread.h (scoped_restore_current_thread)
13982 <dont_restore, restore, m_dont_restore>: Declare.
13983 * thread.c (thread_alive): Add assertion. Return bool.
13984 (switch_to_thread_if_alive): New.
13985 (prune_threads): Switch inferior/thread.
13986 (print_thread_info_1): Switch thread before calling target methods.
13987 (scoped_restore_current_thread::restore): New, factored out from
13988 ...
13989 (scoped_restore_current_thread::~scoped_restore_current_thread):
13990 ... this.
13991 (scoped_restore_current_thread::scoped_restore_current_thread):
13992 Add assertion.
13993 (thread_apply_all_command, thread_select): Use
13994 switch_to_thread_if_alive.
13995
7f0ae84c
GB
139962020-01-10 George Barrett <bob@bob131.so>
13997
13998 * stap-probe.c (stap_modify_semaphore): Don't check for null
13999 semaphores.
14000 (stap_probe::set_semaphore, stap_probe::clear_semaphore): Check
14001 for null semaphores.
14002
f5a7c406
AB
140032020-01-09 Andrew Burgess <andrew.burgess@embecosm.com>
14004
14005 * tui/tui-source.c (tui_source_window::do_scroll_vertical): Update
14006 all source windows, and maintain horizontal scroll status while
14007 doing so.
14008
9ae6bf64
TT
140092020-01-09 Tom Tromey <tom@tromey.com>
14010
14011 PR tui/18932:
14012 * tui/tui-source.c (tui_source_window::do_scroll_vertical): Call
14013 update_source_window, not print_source_lines.
14014
b2efe70c
AB
140152020-01-09 Andrew Burgess <andrew.burgess@embecosm.com>
14016
14017 * tui/tui.c (tui_enable): Register tui hooks after calling
14018 tui_display_main.
14019
5f23a082
CB
140202020-01-09 Christian Biesinger <cbiesinger@google.com>
14021
14022 * gdbsupport/common-defs.h: Don't define _FORTIFY_SOURCE on MinGW.
14023
3061113b
SM
140242020-01-08 Simon Marchi <simon.marchi@efficios.com>
14025
14026 * thread.c (print_thread_info_1): Fix indentation.
14027
57d75002
CB
140282020-01-09 Christian Biesinger <cbiesinger@google.com>
14029
14030 * symtab.c (general_symbol_info::compute_and_set_names): Move the
14031 unique_xmalloc_ptr outside the if to always free the demangled name.
14032
6a053cb1
TT
140332020-01-08 Tom Tromey <tromey@adacore.com>
14034
14035 * xcoffread.c (enter_line_range, read_xcoff_symtab)
14036 (process_xcoff_symbol, xcoff_symfile_offsets): Update.
14037 * symtab.h (MSYMBOL_VALUE_ADDRESS): Update.
14038 (struct section_offsets, ANOFFSET, SIZEOF_N_SECTION_OFFSETS):
14039 Remove.
14040 (section_offsets): New typedef.
14041 * symtab.c (fixup_section, get_msymbol_address): Update.
14042 * symmisc.c (dump_msymbols): Update.
14043 * symfile.h (relative_addr_info_to_section_offsets)
14044 (symfile_map_offsets_to_segments): Update.
14045 * symfile.c (build_section_addr_info_from_objfile)
14046 (init_objfile_sect_indices): Update.
14047 (struct place_section_arg): Change type of "offsets".
14048 (place_section): Update.
14049 (relative_addr_info_to_section_offsets): Change type of
14050 "section_offsets". Remove "num_sections" parameter.
14051 (default_symfile_offsets, syms_from_objfile_1)
14052 (set_objfile_default_section_offset): Update.
14053 (reread_symbols): No need to preserve section offsets by hand.
14054 (symfile_map_offsets_to_segments): Change type of "offsets".
14055 * stap-probe.c (relocate_address): Update.
14056 * stabsread.h (process_one_symbol): Update.
14057 * solib-target.c (struct lm_info_target) <offsets>: Change type.
14058 (solib_target_relocate_section_addresses): Update.
14059 * solib-svr4.c (enable_break, svr4_relocate_main_executable):
14060 Update.
14061 * solib-frv.c (frv_relocate_main_executable): Update.
14062 * solib-dsbt.c (dsbt_relocate_main_executable): Update.
14063 * solib-aix.c (solib_aix_get_section_offsets): Change return
14064 type.
14065 (solib_aix_solib_create_inferior_hook): Update.
14066 * remote.c (remote_target::get_offsets): Update.
14067 * psymtab.c (find_pc_sect_psymtab): Update.
14068 * psympriv.h (struct partial_symbol) <address, text_low,
14069 text_high>: Update.
14070 * objfiles.h (obj_section_offset): Update.
14071 (struct objfile) <section_offsets>: Change type.
14072 <num_sections>: Remove.
14073 (objfile_relocate): Update.
14074 * objfiles.c (entry_point_address_query): Update
14075 (relocate_one_symbol): Change type of "section_offsets".
14076 (objfile_relocate1, objfile_relocate1): Change type of
14077 "new_offsets".
14078 (objfile_rebase1): Update.
14079 * mipsread.c (mipscoff_symfile_read): Update.
14080 (read_alphacoff_dynamic_symtab): Remove "section_offsets"
14081 parameter.
14082 * mdebugread.c (parse_symbol): Change type of "section_offsets".
14083 (parse_external, psymtab_to_symtab_1): Update.
14084 * machoread.c (macho_symfile_offsets): Update.
14085 * ia64-tdep.c (ia64_find_unwind_table): Update.
14086 * hppa-tdep.c (read_unwind_info): Update.
14087 * hppa-bsd-tdep.c (hppabsd_find_global_pointer): Update.
14088 * dwarf2read.c (create_addrmap_from_index)
14089 (create_addrmap_from_aranges, dw2_find_pc_sect_compunit_symtab)
14090 (process_psymtab_comp_unit_reader, add_partial_symbol)
14091 (add_partial_subprogram, process_full_comp_unit)
14092 (read_file_scope, read_func_scope, read_lexical_block_scope)
14093 (read_call_site_scope, dwarf2_rnglists_process)
14094 (dwarf2_ranges_process, dwarf2_ranges_read)
14095 (dwarf_decode_lines_1, var_decode_location, new_symbol)
14096 (dwarf2_fetch_die_loc_sect_off, dwarf2_per_cu_text_offset):
14097 Update.
14098 * dwarf2-frame.c (execute_cfa_program, dwarf2_frame_find_fde):
14099 Update.
14100 * dtrace-probe.c (dtrace_probe::get_relocated_address): Update.
14101 * dbxread.c (read_dbx_symtab, read_ofile_symtab): Update.
14102 (process_one_symbol): Change type of "section_offsets".
14103 * ctfread.c (get_objfile_text_range): Update.
14104 * coffread.c (coff_symtab_read, enter_linenos)
14105 (process_coff_symbol): Update.
14106 * coff-pe-read.c (add_pe_forwarded_sym): Update.
14107 * amd64-windows-tdep.c (amd64_windows_find_unwind_info): Update.
14108
456e800a
TT
141092020-01-08 Tom Tromey <tromey@adacore.com>
14110
14111 * dwarf2read.c (parse_macro_definition): Use std::string.
14112 (parse_macro_definition): Likewise.
14113
6dfa2fc2
TT
141142020-01-08 Tom Tromey <tromey@adacore.com>
14115
14116 * dwarf2read.c (abbrev_table_read_table): Use std::vector.
14117 (ATTR_ALLOC_CHUNK): Remove.
14118
421d1616
TT
141192020-01-08 Tom Tromey <tromey@adacore.com>
14120
14121 * dwarf2read.c (fixup_go_packaging): Use unique_xmalloc_ptr.
14122
43816ebc
TT
141232020-01-08 Tom Tromey <tromey@adacore.com>
14124
14125 * dwarf2read.c (add_partial_symbol): Use unique_xmalloc_ptr.
14126 (dwarf2_compute_name, open_dwo_file): Likewise.
14127 (process_enumeration_scope): Use std::vector.
14128 (guess_partial_die_structure_name): Use unique_xmalloc_ptr.
14129 (partial_die_info::fixup, dwarf2_start_subfile)
14130 (guess_full_die_structure_name, dwarf2_name): Likewise.
14131 (determine_prefix): Update.
14132 (guess_full_die_structure_name): Make return type const.
14133 (partial_die_full_name): Return unique_xmalloc_ptr.
14134 (DW_FIELD_ALLOC_CHUNK): Remove.
14135
4212d509
TT
141362020-01-07 Tom Tromey <tromey@adacore.com>
14137
14138 PR build/24937:
14139 * stap-probe.c (class stap_static_probe_ops): Add constructor.
14140
06a6207a
JT
141412020-01-02 Jon Turney <jon.turney@dronecode.org.uk>
14142
14143 * cli/cli-style.c: Set cli_styling to 'true' in the Cygwin build.
14144
153d79c4
AB
141452020-01-06 Andrew Burgess <andrew.burgess@embecosm.com>
14146
14147 * stack.c (print_frame_info): Move disassemble_next_line code
14148 inside source_print block.
14149
66182876
EZ
141502020-01-06 Eli Zaretskii <eliz@gnu.org>
14151
14152 * gdbsupport/gdb_wait.c: Include <signal.h> instead of
14153 gdb/signals.h, as we are now using native signal symbols.
14154
cbfa8581
SV
141552020-01-06 Shahab Vahedi <shahab@synopsys.com>
14156
14157 * tui/tui-disasm.c (tui_disasm_window::addr_is_displayed): Avoid
14158 overflow by an early check of content vs threshold.
aac66a4c 14159 * tui/tui-source.c (tui_source_window::line_is_displayed):
cbfa8581
SV
14160 Likewise.
14161
3f602821
EZ
141622020-01-06 Eli Zaretskii <eliz@gnu.org>
14163
14164 * NEWS: Mention the recent fix of $_exitsignal on MS-Windows.
14165
a08c904d
JT
141662020-01-02 Jon Turney <jon.turney@dronecode.org.uk>
14167
14168 * coff-pe-read.c (read_pe_exported_syms): Don't try to read the
14169 export table if no section contains it's RVA.
14170
89a65580
EZ
141712020-01-06 Eli Zaretskii <eliz@gnu.org>
14172
14173 * windows-tdep.c: Fix a typo in WINDOWS_SIGABRT.
14174
8b7fcda2
HD
141752020-01-06 Hannes Domani <ssbssa@yahoo.de>
14176
14177 * source.c (print_source_lines_base): Set last_line_listed.
14178
a61b4f69
SV
141792020-01-06 Shahab Vahedi <shahab@synopsys.com>
14180
14181 * tui/tui-disasm.c: Remove trailing spaces.
14182
559e7e50
EZ
141832020-01-06 Eli Zaretskii <eliz@gnu.org>
14184 Pedro Alves <palves@redhat.com>
14185
14186 * Makefile.in (COMMON_SFILES): Add gdbsupport/gdb_wait.c.
14187 * windows-tdep.c: New enumeration of WINDOWS_SIG* signals.
14188 (windows_gdb_signal_to_target): New function, uses the above
14189 enumeration to convert GDB internal signal codes to equivalent
14190 Windows codes.
14191 (windows_init_abi): Call set_gdbarch_gdb_signal_to_target.
14192 * windows-nat.c: Include "gdb_wait.h".
14193 (get_windows_debug_event): Extract the fatal exception from the
14194 exit status and convert to the equivalent Posix signal number.
14195 * cli/cli-cmds.c (exit_status_set_internal_vars): Account for the
14196 possibility that WTERMSIG returns GDB_SIGNAL_UNKNOWN.
14197 * gdbsupport/gdb_wait.c: New file, implements
14198 windows_status_to_termsig.
14199 * gdbsupport/gdb_wait.h (WIFEXITED, WIFSIGNALED, WEXITSTATUS)
14200 (WTERMSIG) [__MINGW32__]: Separate definitions for MinGW.
14201
f2302a34
AB
142022020-01-05 Andrew Burgess <andrew.burgess@embecosm.com>
14203
14204 * tui/tui-layout.c (tui_add_win_to_layout): Use tui_set_layout not
14205 show_layout.
14206
6a5206eb
LM
142072020-01-05 Luis Machado <luis.machado@linaro.org>
14208
14209 * aarch64-linux-nat.c
14210 (aarch64_linux_nat_target::thread_architecture): Use bfd_arch_aarch64
14211 and bfd_mach_aarch64.
14212
6ec1d75e
PW
142132020-01-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
14214
14215 * ui-file.c (stdio_file::can_emit_style_escape)
14216 (tee_file::can_emit_style_escape): Ensure style is used also on
14217 gdb_stderr when gdb_stderr is a tty supporting styling, similarly
14218 to gdb_stdout.
14219 * main.c (set_gdb_data_directory): Use file style to output the
14220 warning that the given pathname is not a directory.
14221 * top.c (show_history_filename, gdb_safe_append_history)
14222 (show_gdb_datadir): Use file style.
14223
44f81a76
HD
142242020-01-03 Hannes Domani <ssbssa@yahoo.de>
14225
14226 * solib-target.c (struct lm_info_target):
14227 Change offsets to be a unique_xmalloc_ptr.
14228 (solib_target_relocate_section_addresses): Update.
14229
25057eb0
HD
142302020-01-03 Hannes Domani <ssbssa@yahoo.de>
14231
14232 * windows-nat.c (windows_clear_solib): Free so_list linked list.
14233
6e2118f5
BE
142342020-01-03 Bernd Edlinger <bernd.edlinger@hotmail.de>
14235
14236 * MAINTAINERS (Write After Approval): Add myself.
14237
8133c7dc
LM
142382020-01-02 Luis Machado <luis.machado@linaro.org>
14239
14240 * proc-service.c (get_ps_regcache): Remove reference to obsolete
14241 Cell BE architecture.
14242 * target.h (struct target_ops) <thread_architecture>: Likewise.
14243
48189bec
HD
142442020-01-01 Hannes Domani <ssbssa@yahoo.de>
14245
14246 * Makefile.in: Use INSTALL_PROGRAM_ENV.
14247
ead1063b
HD
142482020-01-01 Hannes Domani <ssbssa@yahoo.de>
14249
14250 * MAINTAINERS (Write After Approval): Add myself.
14251
e5d78223
JB
142522020-01-01 Joel Brobecker <brobecker@adacore.com>
14253
14254 * gdbarch.sh: Update copyright year range of generated files.
14255
b811d2c2
JB
142562020-01-01 Joel Brobecker <brobecker@adacore.com>
14257
14258 Update copyright year range in all GDB files.
14259
5f4def5c
JB
142602020-01-01 Joel Brobecker <brobecker@adacore.com>
14261
14262 * copyright.py: Convert to Python 3.
14263
51fd4002
JB
142642020-01-01 Joel Brobecker <brobecker@adacore.com>
14265
14266 * copyright.py: Adapt after move of gnulib directory from gdb
14267 directory to toplevel directory.
14268
5fb651f2
JB
142692020-01-01 Joel Brobecker <brobecker@adacore.com>
14270
14271 * copyright.py (main): Exit if run from the wrong directory.
14272
5dd8bf88
JB
142732020-01-01 Joel Brobecker <brobecker@adacore.com>
14274
14275 * top.c (print_gdb_version): Change copyright year to 2020.
14276
9f71dacb 142772020-01-01 Joel Brobecker <brobecker@adacore.com>
3d34df0a 14278
9f71dacb 14279 * config/djgpp/fnchange.lst: Add entry for gdb/ChangeLog-2019.
3d34df0a 14280
9f71dacb 14281For older changes see ChangeLog-2019.
c906108c
SS
14282\f
14283Local Variables:
14284mode: change-log
14285left-margin: 8
14286fill-column: 74
14287version-control: never
57da7796 14288coding: utf-8
c906108c 14289End: