gdb: fix formatting of _debug_printf macros
[deliverable/binutils-gdb.git] / gdb / ChangeLog
CommitLineData
956bdb59
SM
12020-09-25 Simon Marchi <simon.marchi@efficios.com>
2
3 * infrun.h (infrun_debug_printf): Fix formatting.
4 * linux-nat.c (linux_nat_debug_printf): Fix formatting.
5
3b93626b
SJ
62020-09-25 Saagar Jha <saagar@saagarjha.com>
7
8 * compile/compile-object-load.h (struct munmap_list): Add
9 explicitly-defined move constructor.
10
b551a89f
TT
112020-09-24 Tom Tromey <tromey@adacore.com>
12
13 PR tui/26638:
14 * tui/tui-stack.h (struct tui_locator_window) <can_focus>: New
15 method.
16 * tui/tui-data.h (struct tui_win_info) <can_focus>: New method.
17 * tui/tui-data.c (tui_next_win): Exclude non-focusable windows.
18 (tui_prev_win): Rewrite.
19
99bb393f
HD
202020-09-23 Hannes Domani <ssbssa@yahoo.de>
21
22 * nat/windows-nat.c (handle_exception): Handle 64bit breakpoints
23 in WOW64 processes as SIGINT.
24 * nat/windows-nat.h: Make wow64_process a shared variable.
25 * windows-nat.c: Remove static wow64_process variable.
26
20a5fcbd
TT
272020-09-23 Tom Tromey <tom@tromey.com>
28
29 PR symtab/25470:
30 * value.c (unpack_long, pack_long, pack_unsigned_long): Handle bit
31 offset and bit size.
32 * printcmd.c (print_scalar_formatted): Handle zero-length
33 integer.
34 (print_scalar_formatted): Use bit_size_differs_p.
35 * gdbtypes.h (enum type_specific_kind) <TYPE_SPECIFIC_INT>: New
36 constant.
37 (union type_specific): <int_stuff>: New member.
38 (struct type) <bit_size_differs_p, bit_size, bit_offset>: New
39 methods.
40 * gdbtypes.c (init_integer_type, init_boolean_type): Initialize
41 TYPE_SPECIFIC_FIELD.
42 (recursive_dump_type, copy_type_recursive): Update.
43 * dwarf2/read.c (read_base_type): Handle DW_AT_bit_size and
44 DW_AT_data_bit_offset.
45
bac51ab7
TT
462020-09-23 Tom Tromey <tom@tromey.com>
47
48 * utils.h (class gdb_argv): Add move operators.
49 <append>: New methods.
50 * compile/compile.c (build_argc_argv): Remove.
51 (compile_args_argc): Remove.
52 (compile_args_argv): Change type.
53 (set_compile_args): Simplify.
54 (append_args): Remove.
55 (filter_args): Remove argcp parameter.
56 (get_args): Return gdb_argv. Simplify.
57 (compile_to_object): Update.
58
92677124
TT
592020-09-23 Tom Tromey <tom@tromey.com>
60
61 * compile/compile-object-run.c (do_module_cleanup)
62 <~do_module_cleanup> :Remove.
63 (do_module_cleanup): Update.
64 * compile/compile-object-load.h (struct munmap_list): Add move
65 assignment operator.
66 <source_file>: Now a std::string.
67 <munmap_list>: Rename. No longer a pointer.
68 * compile/compile-object-load.c (struct setup_sections_data): Add
69 constructor.
70 <setup_one_section>: Declare.
71 <munmap_list>: Move earlier.
72 <m_bfd>: New member.
73 <m_last_size, m_last_section_first, m_last_prot,
74 m_last_max_alignment>: Rename, add initializers where needed.
75 (setup_sections_data::setup_one_section): Rename from
76 setup_sections. Update.
77 (compile_object_load): Update. Don't use bfd_map_over_sections.
78
e616f60a
TT
792020-09-23 Tom Tromey <tom@tromey.com>
80
81 * compile/compile-object-run.c (struct do_module_cleanup): Add
82 parameters to constructor. Update destructor.
83 <source_file, scope, scope_data, out_value_type, out_value_addr,
84 munmap_list_head, objfile_name_string>: Remove.
85 <module>: New member.
86 (do_module_cleanup): Update.
87 (compile_object_run): Update.
88
e947a848
TT
892020-09-23 Tom Tromey <tom@tromey.com>
90
91 * compile/compile.c (eval_compile_command): Update.
92 * compile/compile-object-run.h (compile_object_run): Take a
93 compile_module_up.
94 * compile/compile-object-run.c (compile_object_run): Take a
95 compile_module_up.
96 * compile/compile-object-load.h (struct compile_module): Add
97 constructor, destructor.
98 (compile_module_up): New typedef.
99 (compile_object_load): Return compile_object_up.
100 * compile/compile-object-load.c (compile_object_load): Return
101 compile_module_up.
102
0dbf6ee6
TT
1032020-09-23 Tom Tromey <tom@tromey.com>
104
105 * compile/compile-object-run.c (struct do_module_cleanup): Add
106 constructor, destructor.
107 <objfile_name_string>: Don't use struct hack.
108 (do_module_cleanup): Use delete.
109 (compile_object_run): Use new.
110
ebe824f5
TT
1112020-09-23 Tom Tromey <tom@tromey.com>
112
113 * compile/compile-cplus-types.c
114 (compile_cplus_convert_struct_or_union): Use std::vector.
115 (compile_cplus_convert_func): Likewise.
116 * compile/compile-c-types.c (convert_func): Use std::vector.
117
5dd918d9
TT
1182020-09-21 Tom Tromey <tromey@adacore.com>
119
120 * sparc-tdep.c (sparc32_skip_prologue): Use
121 skip_prologue_using_sal.
122
5486c517
TT
1232020-09-19 Tom Tromey <tom@tromey.com>
124
125 * symfile.c (add_section_size_callback): Remove.
126 (load_one_section): Rename from load_section_callback. Change
127 parameters.
128 (generic_load): Use foreach.
129
8a6bb1d1
TT
1302020-09-19 Tom Tromey <tom@tromey.com>
131
132 * exec.c (add_to_section_table): Remove.
133 (build_section_table): Use foreach.
134
08f93a1a
TT
1352020-09-19 Tom Tromey <tom@tromey.com>
136
137 * elfread.c (elf_locate_sections): Change parameters.
138 (elf_symfile_read): Use foreach.
139
03cd72b8
TT
1402020-09-19 Tom Tromey <tom@tromey.com>
141
142 * cli/cli-dump.c (struct callback_data): Remove.
143 (restore_one_section): Rename from restore_section_callback.
144 Change parameters.
145 (restore_binary_file): Change parameters.
146 (restore_command): Use foreach.
147
f4f2b85f
TT
1482020-09-19 Tom Tromey <tom@tromey.com>
149
150 * gcore.c (make_output_phdrs): Remove 'ignored' parameter.
151 (gcore_copy_callback): Likewise.
152 (gcore_memory_sections): Use foreach.
153
b35c1d1c
TT
1542020-09-19 Tom Tromey <tom@tromey.com>
155
156 * osabi.h (generic_elf_osabi_sniff_abi_tag_sections): Update.
157 * osabi.c (generic_elf_osabi_sniff_abi_tag_sections): Change
158 parameters.
159 (generic_elf_osabi_sniffer): Use foreach.
160 * mips-sde-tdep.c (mips_sde_elf_osabi_sniffer): Use foreach.
161 * arm-tdep.c (arm_elf_osabi_sniffer): Use foreach.
162
5bb6e9dd
TT
1632020-09-19 Tom Tromey <tom@tromey.com>
164
165 * dwarf2/read.c (locate_dwz_sections): Change parameters.
166 (dwarf2_get_dwz_file): Use foreach.
167 (dwarf2_locate_dwo_sections): Change parameters.
168 (open_and_init_dwo_file): Use foreach.
169 (dwarf2_locate_common_dwp_sections): Change parameters.
170 (open_and_init_dwp_file): Use foreach.
171
ad7277da
TT
1722020-09-19 Tom Tromey <tom@tromey.com>
173
174 * symfile.h: (find_lowest_section): Don't declare.
175 * symfile.c (find_lowest_section): Now static. Change
176 parameters.
177 (struct place_section_arg): Remove.
178 (place_section): Change parameters.
179 (addr_info_make_relative): Use foreach.
180 (symfile_dummy_outputs): Remove.
181 (default_symfile_relocate): Use foreach.
182
cb814f2e
TT
1832020-09-19 Tom Tromey <tom@tromey.com>
184
185 * objfiles.c (add_to_objfile_sections): Rename from
186 add_to_objfile_sections_full.
187 (add_to_objfile_sections): Remove.
188 (build_objfile_section_table): Use foreach.
189
3cabfd26
TT
1902020-09-19 Tom Tromey <tom@tromey.com>
191
192 * stap-probe.c (get_stap_base_address_1): Remove.
193 (get_stap_base_address): Use foreach.
194
1ce51eb5
TT
1952020-09-19 Tom Tromey <tom@tromey.com>
196
197 * gdb_bfd.c (free_one_bfd_section): Remove 'abfd' and 'ignore'
198 parameters.
199 (gdb_bfd_close_or_warn): Use foreach.
200
a190fabb
TT
2012020-09-19 Tom Tromey <tom@tromey.com>
202
203 * corelow.c (add_to_thread_list): Change parameters.
204 (core_target_open): Use foreach.
205
cafb0d81
TT
2062020-09-19 Tom Tromey <tom@tromey.com>
207
208 * gdb_bfd.h (gdb_bfd_sections): New overload. Fix formatting of
209 existing function.
210
c8d5abea
AB
2112020-09-19 Andrew Burgess <andrew.burgess@embecosm.com>
212
213 * f-valprint.c (f77_print_array_1): Adjust printing of whitespace
214 for arrays.
215
6d816919
AB
2162020-09-19 Andrew Burgess <andrew.burgess@embecosm.com>
217
218 * eval.c: Remove 'f-lang.h' include.
219 (value_f90_subarray): Moved to f-lang.c.
220 (eval_call): Renamed to...
221 (evaluate_subexp_do_call): ...this, is no longer static, header
222 comment moved into header file.
223 (evaluate_funcall): Update call to eval_call.
224 (skip_undetermined_arglist): Moved to f-lang.c.
225 (fortran_value_subarray): Likewise.
226 (evaluate_subexp_standard): OP_F77_UNDETERMINED_ARGLIST handling
227 moved to evaluate_subexp_f.
228 (calc_f77_array_dims): Moved to f-lang.c
229 * expprint.c (print_subexp_funcall): New function.
230 (print_subexp_standard): OP_F77_UNDETERMINED_ARGLIST handling
231 moved to print_subexp_f, OP_FUNCALL uses new function.
232 (dump_subexp_body_funcall): New function.
233 (dump_subexp_body_standard): OP_F77_UNDETERMINED_ARGLIST handling
234 moved to dump_subexp_f, OP_FUNCALL uses new function.
235 * expression.h (evaluate_subexp_do_call): Declare.
236 * f-lang.c (value_f90_subarray): Moved from eval.c.
237 (skip_undetermined_arglist): Likewise.
238 (calc_f77_array_dims): Likewise.
239 (fortran_value_subarray): Likewise.
240 (evaluate_subexp_f): Add OP_F77_UNDETERMINED_ARGLIST support.
241 (operator_length_f): Likewise.
242 (print_subexp_f): Likewise.
243 (dump_subexp_body_f): Likewise.
244 * fortran-operator.def (OP_F77_UNDETERMINED_ARGLIST): Move
245 declaration of this operation to here.
246 * parse.c (operator_length_standard): OP_F77_UNDETERMINED_ARGLIST
247 support moved to operator_length_f.
248 * parser-defs.h (dump_subexp_body_funcall): Declare.
249 (print_subexp_funcall): Declare.
250 * std-operator.def (OP_F77_UNDETERMINED_ARGLIST): Moved to
251 fortran-operator.def.
252
8c37706a
AB
2532020-09-19 Andrew Burgess <andrew.burgess@embecosm.com>
254
255 * eval.c (fortran_value_subarray): New function, content is taken
256 from...
257 (evaluate_subexp_standard): ...here, in two places. Now arrays
258 and strings both call the new function.
259 (calc_f77_array_dims): Add header comment, handle strings.
260
14f9473c
VC
2612020-09-18 Victor Collod <vcollod@nvidia.com>
262
263 PR gdb/26635
264 * i386-tdep.c (i386_skip_endbr): Add a helper function to skip endbr.
265 (i386_analyze_prologue): Call i386_skip_endbr.
266
b60cea74
TT
2672020-09-18 Tom Tromey <tromey@adacore.com>
268
269 * windows-nat.c (struct windows_nat_target) <wait>: Update.
270 (windows_nat_target::wait): Update.
271 * target/wait.h (enum target_wait_flag): New. Use
272 DEF_ENUM_FLAGS_TYPE.
273 * target/target.h (target_wait): Change type of options.
274 * target.h (target_options_to_string, default_target_wait):
275 Update.
276 (struct target_ops) <wait>: Change type of options.
277 * target.c (target_wait, default_target_wait, do_option): Change
278 type of "options".
279 (target_options_to_string): Likewise.
280 * target-delegates.c: Rebuild.
281 * target-debug.h (target_debug_print_target_wait_flags): Rename
282 from target_debug_print_options.
283 * sol-thread.c (class sol_thread_target) <wait>: Update.
284 (sol_thread_target::wait): Update.
285 * rs6000-nat.c (class rs6000_nat_target) <wait>: Update.
286 (rs6000_nat_target::wait): Update.
287 * remote.c (class remote_target) <wait, wait_ns, wait_as>:
288 Update.
289 (remote_target::wait_ns, remote_target::wait_as): Change type of
290 "options".
291 (remote_target::wait): Update.
292 * remote-sim.c (struct gdbsim_target) <wait>: Update.
293 (gdbsim_target::wait): Update.
294 * record-full.c (class record_full_base_target) <wait>: Update.
295 (record_full_wait_1): Change type of "options".
296 (record_full_base_target::wait): Update.
297 * record-btrace.c (class record_btrace_target) <wait>: Update.
298 (record_btrace_target::wait): Update.
299 * ravenscar-thread.c (struct ravenscar_thread_target) <wait>:
300 Update.
301 (ravenscar_thread_target::wait): Update.
302 * procfs.c (class procfs_target) <wait>: Update.
303 (procfs_target::wait): Update.
304 * obsd-nat.h (class obsd_nat_target) <wait>: Update.
305 * obsd-nat.c (obsd_nat_target::wait): Update.
306 * nto-procfs.c (struct nto_procfs_target) <wait>: Update.
307 (nto_procfs_target::wait): Update.
308 * nbsd-nat.h (struct nbsd_nat_target) <wait>: Update.
309 * nbsd-nat.c (nbsd_wait): Change type of "options".
310 (nbsd_nat_target::wait): Update.
311 * linux-thread-db.c (class thread_db_target) <wait>: Update.
312 (thread_db_target::wait): Update.
313 * linux-nat.h (class linux_nat_target) <wait>: Update.
314 * linux-nat.c (linux_nat_target::wait): Update.
315 (linux_nat_wait_1): Update.
316 * infrun.c (do_target_wait_1, do_target_wait): Change type of
317 "options".
318 * inf-ptrace.h (struct inf_ptrace_target) <wait>: Update.
319 * inf-ptrace.c (inf_ptrace_target::wait): Update.
320 * go32-nat.c (struct go32_nat_target) <wait>: Update.
321 (go32_nat_target::wait): Update.
322 * gnu-nat.h (struct gnu_nat_target) <wait>: Update.
323 * gnu-nat.c (gnu_nat_target::wait): Update.
324 * fbsd-nat.h (class fbsd_nat_target) <wait>: Update.
325 * fbsd-nat.c (fbsd_nat_target::wait): Update.
326 * darwin-nat.h (class darwin_nat_target) <wait>: Update.
327 * darwin-nat.c (darwin_nat_target::wait): Update.
328 * bsd-uthread.c (struct bsd_uthread_target) <wait>: Update.
329 (bsd_uthread_target::wait): Update.
330 * aix-thread.c (class aix_thread_target) <wait>: Update.
331 (aix_thread_target::wait): Update.
332
0295dde6
AB
3332020-09-18 Andrew Burgess <andrew.burgess@embecosm.com>
334
335 * compile/compile-object-run.c (create_copied_type_recursive): New
336 function.
337 (compile_object_run): Use new function.
338
d3483b43
JT
3392020-08-21 Jon Turney <jon.turney@dronecode.org.uk>
340
341 * NEWS: Mention x86_64 Cygwin core file support.
342
e7d612ad
JT
3432020-07-01 Jon Turney <jon.turney@dronecode.org.uk>
344
345 * windows-tdep.c (NOTE_INFO_MODULE, NOTE_INFO_MODULE64): Define.
346 (core_process_module_section): Handle NOTE_INFO_MODULE64.
347
aff9d387
JT
3482020-07-01 Jon Turney <jon.turney@dronecode.org.uk>
349
62a5151b
JT
350 * windows-tdep.h: Add prototypes.
351 * i386-windows-tdep.c(windows_core_xfer_shared_libraries): Move.
352 (i386_windows_core_pid_to_str): Move and rename ...
353 * windows-tdep.c (windows_core_xfer_shared_libraries): ... to here
354 (windows_core_pid_to_str): ... and here.
355 * amd64-windows-tdep.c (amd64_windows_init_abi_common): Register here.
356
3572020-07-01 Jon Turney <jon.turney@dronecode.org.uk>
aff9d387
JT
358 * amd64-windows-tdep.c(amd64_windows_gregset_reg_offset): Add.
359 (amd64_windows_init_abi_common): ... and register.
360
7d155da3
JT
3612020-07-01 Jon Turney <jon.turney@dronecode.org.uk>
362
363 * amd64-windows-tdep.c (amd64_cygwin_core_osabi_sniffer): New.
364 (_initialize_amd64_windows_tdep): Register amd64_cygwin_core_osabi_sniffer.
365
e8ef12b9
PA
3662020-09-18 Pedro Alves <pedro@palves.net>
367
368 PR gdb/26631
369 * thread.c (thread_find_command): Switch inferior before calling
370 target methods.
371
c1e1314d
TT
3722020-09-17 Tom Tromey <tromey@adacore.com>
373
374 * tic6x-tdep.c (tic6x_gdbarch_init): Update.
375 * target-descriptions.h (struct tdesc_arch_data_deleter): New.
376 (tdesc_arch_data_up): New typedef.
377 (tdesc_use_registers, tdesc_data_alloc): Update.
378 (tdesc_data_cleanup): Don't declare.
379 * target-descriptions.c (tdesc_data_alloc): Return a
380 tdesc_arch_data_up.
381 (tdesc_arch_data_deleter::operator()): Rename from
382 tdesc_data_cleanup. Change argument type.
383 (tdesc_use_registers): Change early_data to an rvalue reference.
384 (tdesc_use_registers): Don't use delete.
385 * sparc-tdep.c (sparc32_gdbarch_init): Update.
386 * s390-tdep.c (s390_gdbarch_init): Update.
387 * rx-tdep.c (rx_gdbarch_init): Update.
388 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
389 * riscv-tdep.c (riscv_gdbarch_init): Update.
390 * or1k-tdep.c (or1k_gdbarch_init): Update.
391 * nios2-tdep.c (nios2_gdbarch_init): Update.
392 * nds32-tdep.c (nds32_gdbarch_init): Update.
393 * mips-tdep.c (mips_gdbarch_init): Update.
394 * microblaze-tdep.c (microblaze_gdbarch_init): Update.
395 * m68k-tdep.c (m68k_gdbarch_init): Update.
396 * i386-tdep.c (i386_gdbarch_init): Update.
397 * arm-tdep.c (arm_gdbarch_init): Update.
398 * arc-tdep.c (arc_tdesc_init): Update.
399 (arc_gdbarch_init): Update.
400 * aarch64-tdep.c (aarch64_gdbarch_init): Update.
401
0363df3d
HD
4022020-09-17 Hannes Domani <ssbssa@yahoo.de>
403
404 * windows-nat.c (ctrl_c_handler): Use 32bit DbgUiRemoteBreakin
405 for WOW64 processes.
406
280a9412
TT
4072020-09-17 Tom Tromey <tom@tromey.com>
408
409 * dwarf2/read.c (compute_compunit_symtab_includes): Use htab_up.
410
6108fd18
TT
4112020-09-17 Tom Tromey <tom@tromey.com>
412
413 * value.c (preserve_values): Update.
414 * python/py-type.c (save_objfile_types): Update.
415 * guile/scm-type.c (save_objfile_types): Update.
416 * gdbtypes.h (create_copied_types_hash): Return htab_up.
417 * gdbtypes.c (create_copied_types_hash): Return htab_up.
418 * compile/compile-object-run.c (compile_object_run): Update.
419
fa9b1164
TT
4202020-09-17 Tom Tromey <tom@tromey.com>
421
422 * typeprint.h (class typedef_hash_table) <~typedef_hash_table>:
423 Remove.
424 <m_table>: Now htab_up.
425 * typeprint.c (typedef_hash_table::recursively_update)
426 (typedef_hash_table::add_template_parameters)
427 (typedef_hash_table::typedef_hash_table): Update.
428 (typedef_hash_table::~typedef_hash_table): Remove.
429 (typedef_hash_table::typedef_hash_table)
430 (typedef_hash_table::find_global_typedef)
431 (typedef_hash_table::find_typedef): Update.
432
eb53f105
TT
4332020-09-17 Tom Tromey <tom@tromey.com>
434
435 * target-descriptions.c (tdesc_use_registers): Use htab_up.
436
7a8a5d47
TT
4372020-09-17 Tom Tromey <tom@tromey.com>
438
439 * linespec.c (class decode_compound_collector)
440 <~decode_compound_collector>: Remove.
441 <m_unique_syms>: Now htab_up.
442 (decode_compound_collector::operator ()): Update.
443 (class symtab_collector) <~symtab_collector>: Remove.
444 <m_symtab_table>: Now htab_up.
445 (symtab_collector::operator ()): Update.
446
99032cfc
TT
4472020-09-17 Tom Tromey <tom@tromey.com>
448
449 * filename-seen-cache.c (filename_seen_cache::filename_seen_cache)
450 (filename_seen_cache::clear): Update.
451 (~filename_seen_cache): Remove.
452 (filename_seen_cache::seen): Update.
453 * filename-seen-cache.h (class filename_seen_cache) <m_tab>: Now
454 htab_up.
455 <~filename_seen_cache>: Remove.
456 <traverse>: Update.
457
32580f6d
TT
4582020-09-17 Tom Tromey <tom@tromey.com>
459
460 * completer.c (completion_tracker::discard_completions)
461 (completion_tracker::~completion_tracker)
462 (completion_tracker::maybe_add_completion)
463 (completion_tracker::remove_completion)
464 (completion_tracker::recompute_lowest_common_denominator)
465 (completion_tracker::build_completion_result): Update.
466 * completer.h (class completion_tracker) <have_completions>:
467 Update.
468 <m_entries_hash>: Now htab_up.
469
c1fb9836
TT
4702020-09-17 Tom Tromey <tom@tromey.com>
471
472 * breakpoint.c (ambiguous_names_p): Use htab_up.
473
88f07206
TT
4742020-09-17 Tom Tromey <tom@tromey.com>
475
476 * auto-load.c (struct auto_load_pspace_info)
477 <~auto_load_pspace_info, auto_load_pspace_info>: Remove.
478 <loaded_script_files, loaded_script_texts>: Change type to
479 htab_up.
480 (~auto_load_pspace_info) Remove.
481 (init_loaded_scripts_info, maybe_add_script_file)
482 (maybe_add_script_text, auto_load_info_scripts): Update.
483
9519b2ee
TT
4842020-09-17 Tom Tromey <tromey@adacore.com>
485
486 * c-exp.y (name_obstack): Now static.
487
d2cd4113
CC
4882020-09-17 Chungyi Chi <demonic@csie.io>
489
490 * riscv-tdep.c (riscv-insn::decode): Fix recorded insn type.
491
b650a282
SM
4922020-09-16 Simon Marchi <simon.marchi@efficios.com>
493
494 * breakpoint.h (init_catchpoint): Change int parameter to bool.
495 (add_solib_catchpoint): Likewise.
496 * breakpoint.c (struct solib_catchpoint) <is_load>: Change type
497 to bool.
498 (add_solib_catchpoint): Change int parameter/variable to bool.
499 (catch_load_or_unload): Likewise.
500 (init_catchpoint): Likewise.
501 (create_fork_vfork_event_catchpoint): Likewise.
502 (catch_fork_command_1): Likewise.
503 (catch_exec_command_1): Likewise.
504
4d0bcfcf
SM
5052020-09-16 Simon Marchi <simon.marchi@efficios.com>
506
507 * gdb-gdb.py.in (class StructTypePrettyPrinter) <to_string>:
508 Change instance_flags to m_instance_flags.
509
fe830662
TT
5102020-09-16 Tom Tromey <tromey@adacore.com>
511
512 PR gdb/26598:
513 * infrun.c (fill_in_stop_func): Use find_pc_partial_function_sym.
514
fe5ddfc3
JB
5152020-09-16 John Baldwin <jhb@FreeBSD.org>
516
517 * fbsd-nat.c (fbsd_nat_target::wait): Always check for
518 PL_FLAG_EXEC.
519 (fbsd_nat_target::insert_exec_catchpoint)
520 (fbsd_nat_target::remove_exec_catchpoint): Always define.
521 * fbsd-nat.h (fbsd_nat_target::insert_exec_catchpoint)
522 (fbsd_nat_target::remove_exec_catchpoint): Always declare.
523
e911c666
JB
5242020-09-16 John Baldwin <jhb@FreeBSD.org>
525
526 * configure.ac: Remove check for kinfo_getvmmap().
527 * configure, config.in: Regenerate.
528 * fbsd-nat.c (fbsd_read_mapping): Remove
529 (fbsd_nat_target::find_memory_regions): Remove the procfs version.
530 (fbsd_nat_target::info_proc): Assume kinfo_getfile() and
531 kinfo_get_vmmap() are always present.
532
1f17d372
JB
5332020-09-16 John Baldwin <jhb@FreeBSD.org>
534
535 * fbsd-nat.c: Always include support for
536 TARGET_OBJECT_SIGNAL_INFO.
537
bcb1da7f
JB
5382020-09-16 John Baldwin <jhb@FreeBSD.org>
539
540 * fbsd-nat.c (fbsd_nat_target::pid_to_exec_file): Always use
541 sysctl and remove procfs fallback.
542
5515f729
JB
5432020-09-16 John Baldwin <jhb@FreeBSD.org>
544
545 * fbsd-nat.c: Assume PT_LWPINFO is always defined.
546 * fbsd-nat.h: Likewise.
547
da1df1db
TBA
5482020-09-16 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
549
550 * breakpoint.c (commands_command_1): Make a copy of the 'arg'
551 argument.
552
0e25e767
AB
5532020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
554
555 * ada-lang.c (ada_language_data): Delete.
556 (ada_language): Remove references to ada_language_data.
557 * c-lang.c (c_language_data): Delete.
558 (c_language): Remove references to c_language_data.
559 (cplus_language_data): Delete.
560 (cplus_language): Remove references to cplus_language_data.
561 (asm_language_data): Delete.
562 (asm_language): Remove references to asm_language_data.
563 (minimal_language_data): Delete.
564 (minimal_language): Remove references to minimal_language_data.
565 * d-lang.c (d_language_data): Delete.
566 (d_language): Remove references to d_language_data.
567 * f-lang.c (f_language_data): Delete.
568 (f_language): Remove references to f_language_data.
569 * go-lang.c (go_language_data): Delete.
570 (go_language): Remove references to go_language_data.
571 * language.c (unknown_language_data): Delete.
572 (unknown_language): Remove references to unknown_language_data.
573 (auto_language_data): Delete.
574 (auto_language): Remove references to auto_language_data.
575 * language.h (language_data): Delete struct.
576 (language_defn): No longer inherit from language_data.
577 * m2-lang.c (m2_language_data): Delete.
578 (m2_language): Remove references to m2_language_data.
579 * objc-lang.c (objc_language_data): Delete.
580 (objc_language): Remove references to objc_language_data.
581 * opencl-lang.c (opencl_language_data): Delete.
582 (opencl_language): Remove references to opencl_language_data.
583 * p-lang.c (pascal_language_data): Delete.
584 (pascal_language): Remove references to pascal_language_data.
585 * rust-lang.c (rust_language_data): Delete.
586 (rust_language): Remove references to rust_language_data.
587
b7c6e27d
AB
5882020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
589
590 * ada-lang.c (ada_language_data): Remove la_op_print_tab
591 initializer.
592 (ada_language::opcode_print_table): New member function.
593 * c-lang.c (c_language_data): Remove la_op_print_tab initializer.
594 (c_language::opcode_print_table): New member function.
595 (cplus_language_data): Remove la_op_print_tab initializer.
596 (cplus_language::opcode_print_table): New member function.
597 (asm_language_data): Remove la_op_print_tab initializer.
598 (asm_language::opcode_print_table): New member function.
599 (minimal_language_data): Remove la_op_print_tab initializer.
600 (minimal_language::opcode_print_table): New member function.
601 * d-lang.c (d_language_data): Remove la_op_print_tab initializer.
602 (d_language::opcode_print_table): New member function.
603 * expprint.c (print_subexp_standard): Update call to
604 opcode_print_table.
605 (op_string): Likewise.
606 * f-lang.c (f_language_data): Remove la_op_print_tab initializer.
607 (f_language::opcode_print_table): New member function.
608 * go-lang.c (go_language_data): Remove la_op_print_tab
609 initializer.
610 (go_language::opcode_print_table): New member function.
611 * language.c (unknown_language_data): Remove la_op_print_tab
612 initializer.
613 (unknown_language::opcode_print_table): New member function.
614 (auto_language_data): Remove la_op_print_tab initializer.
615 (auto_language::opcode_print_table): New member function.
616 * language.h (language_data): Remove la_op_print_tab field.
617 (language_defn::opcode_print_table): Declare new member function.
618 * m2-lang.c (m2_language_data): Remove la_op_print_tab
619 initializer.
620 (m2_language::opcode_print_table): New member function.
621 * objc-lang.c (objc_language_data): Remove la_op_print_tab
622 initializer.
623 (objc_language::opcode_print_table): New member function.
624 * opencl-lang.c (opencl_language_data): Remove la_op_print_tab
625 initializer.
626 (opencl_language::opcode_print_table): New member function.
627 * p-lang.c (pascal_language_data): Remove la_op_print_tab
628 initializer.
629 (pascal_language::opcode_print_table): New member function.
630 * rust-lang.c (rust_language_data): Remove la_op_print_tab
631 initializer.
632 (rust_language::opcode_print_table): New member function.
633
5aba6ebe
AB
6342020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
635
636 * ada-lang.c (ada_language_data): Remove la_exp_desc initializer.
637 (ada_language::expression_ops): New member function.
638 * c-lang.c (c_language_data): Remove la_exp_desc initializer.
639 (c_language::expression_ops): New member function.
640 (cplus_language_data): Remove la_exp_desc initializer.
641 (cplus_language::expression_ops): New member function.
642 (asm_language_data): Remove la_exp_desc initializer.
643 (asm_language::expression_ops): New member function.
644 (minimal_language_data): Remove la_exp_desc initializer.
645 (minimal_language::expression_ops): New member function.
646 * d-lang.c (d_language_data): Remove la_exp_desc initializer.
647 (d_language::expression_ops): New member function.
648 * eval.c (evaluate_subexp): Update call to expression_ops.
649 * expprint.c (print_subexp): Likewise.
650 (op_name): Likewise.
651 (dump_subexp_body): Likewise.
652 * f-lang.c (f_language_data): Remove la_exp_desc initializer.
653 (f_language::expression_ops): New member function.
654 * go-lang.c (go_language_data): Remove la_exp_desc initializer.
655 (go_language::expression_ops): New member function.
656 * language.c (language_defn::expression_ops): New function.
657 (unknown_language_data): Remove la_exp_desc initializer.
658 (auto_language_data): Likewise.
659 * language.h (language_data): Remove la_exp_desc field.
660 (language_defn::expression_ops): Declare new member function.
661 * m2-lang.c (m2_language_data): Remove la_exp_desc initializer.
662 (m2_language::expression_ops): New member function.
663 * objc-lang.c (objc_language_data): Remove la_exp_desc
664 initializer.
665 * opencl-lang.c (opencl_language_data): Remove la_exp_desc
666 initializer.
667 (opencl_language::expression_ops): New member function.
668 * p-lang.c (pascal_language_data): Remove la_exp_desc initializer.
669 * parse.c (operator_length): Update call to expression_ops.
670 (exp_iterate): Likewise.
671 * rust-lang.c (rust_language_data): Remove la_exp_desc
672 initializer.
673 (ruse_language::expression_ops): New member function.
674
b63a3f3f
AB
6752020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
676
677 * ada-lang.c (ada_language_data): Remove la_varobj_ops
678 initializer.
679 (ada_language::varobj_ops): New member function.
680 * c-lang.c (c_language_data): Remove la_varobj_ops
681 initializer.
682 (cplus_language_data): Likewise.
683 (cplus_language::varobj_ops): New member function.
684 (asm_language_data): Remove la_varobj_ops initializer.
685 (minimal_language_data): Likewise.
686 * d-lang.c (d_language_data): Likewise.
687 * f-lang.c (f_language_data): Likewise.
688 * go-lang.c (go_language_data): Likewise.
689 * language.c (language_defn::varobj_ops): New function.
690 (unknown_language_data): Remove la_varobj_ops
691 initializer.
692 (auto_language_data): Likewise.
693 * language.h (language_data): Remove la_varobj_ops field.
694 (language_defn::varobj_ops): Declare new member function.
695 * m2-lang.c (m2_language_data): Remove la_varobj_ops initializer.
696 * objc-lang.c (objc_language_data): Likewise.
697 * opencl-lang.c (opencl_language_data): Likewise.
698 * p-lang.c (pascal_language_data): Likewise.
699 * rust-lang.c (rust_language_data): Likewise.
700 * varobj.c (varobj_create): Update call to varobj_ops.
701 * varobj.h (default_varobj_ops): Delete define.
702
1ac14a04
AB
7032020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
704
705 * ada-lang.c (ada_language_data): Remove la_macro_expansion
706 initializer.
707 * c-lang.c (c_language_data): Likewise.
708 (c_language::macro_expansion): New member function.
709 (cplus_language_data): Likewise.
710 (cplus_language::macro_expansion): New member function.
711 (asm_language_data): Likewise.
712 (asm_language::macro_expansion): New member function.
713 (minimal_language_data): Likewise.
714 (minimal_language::macro_expansion): New member function.
715 * d-lang.c (d_language_data): Remove la_macro_expansion
716 initializer.
717 * f-lang.c (f_language_data): Likewise.
718 * go-lang.c (go_language_data): Likewise.
719 * language.c (unknown_language_data): Likewise.
720 (auto_language_data): Likewise.
721 * language.h (language_data): Remove la_macro_expansion field.
722 (language_defn::macro_expansion): New member function.
723 * m2-lang.c (m2_language_data): Remove la_macro_expansion
724 initializer.
725 * objc-lang.c (objc_language_data): Likewise.
726 (objc_language::macro_expansion): New member function.
727 * opencl-lang.c (opencl_language_data): Likewise.
728 (opencl_language::macro_expansion): New member function.
729 * p-lang.c (pascal_language_data): Remove la_macro_expansion
730 initializer.
731 * rust-lang.c (rust_language_data): Likewise.
732 * symtab.c (default_collect_symbol_completion_matches_break_on):
733 Update call to macro_expansion.
734
3a3440fb
AB
7352020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
736
737 * ada-lang.c (ada_language_data): Remove la_array_ordering
738 initializer.
739 * c-lang.c (c_language_data): Likewise.
740 (cplus_language_data): Likewise.
741 (asm_language_data): Likewise.
742 (minimal_language_data): Likewise.
743 * d-lang.c (d_language_data): Likewise.
744 * dwarf2/read.c (read_array_order): Update for call to
745 array_ordering.
746 * f-lang.c (f_language_data): Remove la_array_ordering
747 initializer.
748 (f_language::array_ordering): New member function.
749 * go-lang.c (go_language_data): Remove la_array_ordering
750 initializer.
751 * language.c (unknown_language_data): Likewise.
752 (auto_language_data): Likewise.
753 * language.h (language_data): Delete la_array_ordering field.
754 (language_defn::array_ordering): New member function.
755 * m2-lang.c (m2_language_data): Remove la_array_ordering
756 initializer.
757 * objc-lang.c (objc_language_data): Likewise.
758 * opencl-lang.c (opencl_language_data): Likewise.
759 * p-lang.c (pascal_language_data): Likewise.
760 * rust-lang.c (rust_language_data): Likewise.
761
0d201fa4
AB
7622020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
763
764 * ada-lang.c (ada_language_data): Remove la_case_sensitivity
765 initializer.
766 * c-lang.c (c_language_data): Likewise.
767 (cplus_language_data): Likewise.
768 (asm_language_data): Likewise.
769 (minimal_language_data): Likewise.
770 * d-lang.c (d_language_data): Likewise.
771 * f-lang.c (f_language_data): Likewise.
772 (f_language::case_sensitivity): New member function.
773 * go-lang.c (go_language_data): Remove la_case_sensitivity
774 initializer.
775 * language.c (enum case_mode): Moved here from language.h.
776 (case_mode): Make static.
777 (show_case_command): Update for case_sensitivity being a method.
778 (set_case_command): Likewise.
779 (set_range_case): Likewise.
780 (unknown_language_data): Remove la_case_sensitivity initializer.
781 (auto_language_data): Likewise.
782 * language.h (case_mode): Delete, move enum declaration to
783 language.c.
784 (language_data): Delete la_case_sensitivity field.
785 (language_defn::case_sensitivity): New member function.
786 * m2-lang.c (m2_language_data): Remove la_case_sensitivity
787 initializer.
788 * objc-lang.c (objc_language_data): Likewise.
789 * opencl-lang.c (opencl_language_data): Likewise.
790 * p-lang.c (pascal_language_data): Likewise.
791 * rust-lang.c (rust_language_data): Likewise.
792
efdf6a73
AB
7932020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
794
795 * ada-lang.c (ada_language_data): Remove la_range_check
796 initializer.
797 * c-lang.c (c_language_data): Likewise.
798 (cplus_language_data): Likewise.
799 (asm_language_data): Likewise.
800 (minimal_language_data): Likewise.
801 * d-lang.c (d_language_data): Likewise.
802 * f-lang.c (f_language_data): Likewise.
803 (f_language::range_checking_on_by_default): New member function.
804 * go-lang.c (go_language_data): Remove la_range_check initializer.
805 * language.c (enum range_mode): Moved here from language.h.
806 (range_mode): Made static.
807 (show_range_command): Update to use
808 range_checking_on_by_default.
809 (set_range_command): Likewise.
810 (set_range_case): Likewise.
811 (unknown_language_data): Remove la_range_check initializer.
812 (auto_language_data): Likewise.
813 * language.h (range_mode): Delete. Enum definition moved to
814 language.c.
815 (language_data): Remove la_range_check field.
816 (language_defn::range_checking_on_by_default): New member
817 function.
818 * m2-lang.c (m2_language_data): Remove la_range_check initializer.
819 (m2_language::range_checking_on_by_default): New member function.
820 * objc-lang.c (objc_language_data): Remove la_range_check
821 initializer.
822 * opencl-lang.c (opencl_language_data): Likewise.
823 * p-lang.c (pascal_language_data): Likewise.
824 (pascal_language::range_checking_on_by_default): New member
825 function.
826 * rust-lang.c (rust_language_data): Remove la_range_check
827 initializer.
828 (rust_language::range_checking_on_by_default): New member
829 function.
830
bf92aec5
AB
8312020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
832
833 * dwarf2/read.c (dwarf2_physname): Remove special case for
834 language_go.
835 * go-lang.c (go_language::store_sym_names_in_linkage_form_p): New
836 member function.
837
d3355e4d
AB
8382020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
839
840 * ada-lang.c (ada_language_data): Remove
841 la_store_sym_names_in_linkage_form_p initializer.
842 (ada_language::store_sym_names_in_linkage_form_p): New member
843 function.
844 * c-lang.c (c_language_data): Remove
845 la_store_sym_names_in_linkage_form_p initializer.
846 (c_language::store_sym_names_in_linkage_form_p): New member
847 function.
848 (cplus_language_data): Remove la_store_sym_names_in_linkage_form_p
849 initializer.
850 (asm_language_data): Likewise.
851 (asm_language::store_sym_names_in_linkage_form_p): New member
852 function.
853 (minimal_language_data): Remove
854 la_store_sym_names_in_linkage_form_p initializer.
855 (minimal_language::store_sym_names_in_linkage_form_p): New member
856 function.
857 * d-lang.c (d_language_data): Remove
858 la_store_sym_names_in_linkage_form_p initializer.
859 * dwarf2/read.c (dwarf2_physname): Update call to
860 store_sym_names_in_linkage_form_p.
861 * f-lang.c (f_language_data): Remove
862 la_store_sym_names_in_linkage_form_p initializer.
863 * go-lang.c (go_language_data): Remove
864 la_store_sym_names_in_linkage_form_p initializer.
865 * language.c (unknown_language_data): Remove
866 la_store_sym_names_in_linkage_form_p initializer.
867 (unknown_language::store_sym_names_in_linkage_form_p): New member
868 function.
869 (auto_language_data): Remove la_store_sym_names_in_linkage_form_p
870 initializer.
871 (auto_language::store_sym_names_in_linkage_form_p): New member
872 function.
873 * language.h (language_data): Remove
874 la_store_sym_names_in_linkage_form_p member variable.
875 (language_defn::store_sym_names_in_linkage_form_p): New member
876 function.
877 * m2-lang.c (m2_language_data): Remove
878 la_store_sym_names_in_linkage_form_p initializer.
879 * objc-lang.c (objc_language_data): Likewise.
880 * opencl-lang.c (opencl_language_data): Likewise.
881 * p-lang.c (pascal_language_data): Likewise.
882 * rust-lang.c (rust_language_data): Likewise.
883
22c12a6c
AB
8842020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
885
886 * ada-lang.c (ada_language_data): Remove string_lower_bound
887 initializer.
888 * c-lang.c (c_language_data): Likewise.
889 (cplus_language_data): Likewise.
890 (asm_language_data): Likewise.
891 (minimal_language_data): Likewise.
892 * d-lang.c (d_language_data): Likewise.
893 * f-lang.c (f_language_data): Likewise.
894 * go-lang.c (go_language_data): Likewise.
895 * language.c (unknown_language_data): Likewise.
896 (auto_language_data): Likewise.
897 * language.h (language_data): Remove string_lower_bound field.
898 (language_defn::string_lower_bound): New member function.
899 * m2-lang.c (m2_language_data): Remove string_lower_bound
900 initializer.
901 (m2_language::string_lower_bound): New member function.
902 * objc-lang.c (objc_language_data): Remove string_lower_bound
903 initializer.
904 * opencl-lang.c (opencl_language_data): Likewise.
905 * p-lang.c (pascal_language_data): Likewise.
906 * rust-lang.c (rust_language_data): Likewise.
907 * valops.c (value_cstring): Update call to string_lower_bound.
908 (value_string): Likewise.
909 * value.c (allocate_repeated_value): Likewise.
910
1c236ddd
AB
9112020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
912
913 * valops.c (value_repeat): Fix incorrect argument name in comment.
914
67bd3fd5
AB
9152020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
916
917 * ada-lang.c (ada_language_data): Remove c_style_arrays
918 initializer.
919 (ada_language::c_style_arrays_p): New member fuction.
920 * c-lang.c (c_language_data): Remove c_style_arrays
921 initializer.
922 (cplus_language_data): Likewise.
923 (asm_language_data): Likewise.
924 (minimal_language_data): Likewise.
925 * d-lang.c (d_language_data): Likewise.
926 * eval.c (ptrmath_type_p): Update call to c_style_arrays_p.
927 * f-lang.c (f_language_data): Remove c_style_arrays initializer.
928 (f_language::c_style_arrays_p): New member function.
929 * go-lang.c (go_language_data): Remove c_style_arrays initializer.
930 * infcall.c (value_arg_coerce): Update call to c_style_arrays_p.
931 * language.c (unknown_language_data): Remove c_style_arrays
932 initializer.
933 (auto_language_data): Likewise.
934 * language.h (language_data): Remove c_style_arrays field.
935 (language_defn::c_style_arrays_p): New member function.
936 * m2-lang.c (m2_language_data): Remove c_style_arrays initializer.
937 (m2_language::c_style_arrays_p): New member function.
938 * objc-lang.c (objc_language_data): Remove c_style_arrays
939 initializer.
940 * opencl-lang.c (opencl_language_data): Likewise.
941 * p-lang.c (pascal_language_data): Likewise.
942 * rust-lang.c (rust_language_data): Likewise.
943 * valarith.c (value_subscript): Update call to c_style_arrays_p,
944 and update local variable to a bool.
945 * valops.c (value_cast): Update call to c_style_arrays_p.
946 (value_array): Likewise.
947 * value.c (coerce_array): Likewise.
948
85967615
AB
9492020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
950
951 * ada-lang.c (ada_language_data): Remove la_language initializer.
952 * c-lang.c (c_language_data): Likewise.
953 (cplus_language_data): Likewise.
954 (asm_language_data): Likewise.
955 (minimal_language_data): Likewise.
956 * d-lang.c (d_language_data): Likewise.
957 * f-lang.c (f_language_data): Likewise.
958 * go-lang.c (go_language_data): Likewise.
959 * language.c (unknown_language_data): Likewise.
960 (auto_language_data): Likewise.
961 * language.h (language_data): Remove la_language field.
962 (language_defn::language_defn): Initialise la_language field.
963 (language_defn::la_language): New member variable.
964 * m2-lang.c (m2_language_data): Remove la_language field.
965 * objc-lang.c (objc_language_data): Likewise.
966 * opencl-lang.c (opencl_language_data): Likewise.
967 * p-lang.c (pascal_language_data): Likewise.
968 * rust-lang.c (rust_language_data): Likewise.
969
e171d6f1
AB
9702020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
971
972 * ada-lang.c (ada_extensions): Delete, moved into
973 ada_language::filename_extensions.
974 (ada_language_data): Remove la_filename_extensions initializer.
975 (ada_language::filename_extensions): New member function.
976 * c-lang.c (c_extensions): Delete, moved into
977 c_language::filename_extensions.
978 (c_language_data): Remove la_filename_extensions initializer.
979 (c_language::filename_extensions): New member function.
980 (cplus_extensions): Delete, moved into
981 cplus_language::filename_extensions.
982 (cplus_language_data): Remove la_filename_extensions initializer.
983 (cplus_language::filename_extensions): New member function.
984 (asm_extensions): Delete, moved into
985 asm_language::filename_extensions.
986 (asm_language_data): Remove la_filename_extensions initializer.
987 (asm_language::filename_extensions): New member function.
988 (minimal_language_data): Remove la_filename_extensions
989 initializer.
990 * d-lang.c (d_extensions): Delete, moved into
991 d_language::filename_extensions.
992 (d_language_data): Remove la_filename_extensions initializer.
993 (d_language::filename_extensions): New member function.
994 * f-lang.c (f_extensions): Delete, moved into
995 f_language::filename_extensions.
996 (f_language_data): Remove la_filename_extensions initializer.
997 (f_language::filename_extensions): New member function.
998 * go-lang.c (go_language_data): Remove la_filename_extensions
999 initializer.
1000 * language.c (add_set_language_command): Update now that
1001 filename_extensions returns a vector.
1002 (unknown_language_data): Remove la_filename_extensions
1003 initializer.
1004 (auto_language_data): Likewise.
1005 * language.h (language_data): Remove la_filename_extensions field.
1006 (language_defn::filename_extensions): New member function.
1007 * m2-lang.c (m2_language_data): Remove la_filename_extensions
1008 initializer.
1009 * objc-lang.c (objc_extensions): Delete, moved into
1010 objc_language::filename_extensions.
1011 (objc_language_data): Remove la_filename_extensions initializer.
1012 (objc_language::filename_extensions): New member function.
1013 * opencl-lang.c (opencl_language_data): Remove
1014 la_filename_extensions initializer.
1015 * p-lang.c (pascal_extensions): Delete, moved into
1016 pascal_language::filename_extensions.
1017 (pascal_language_data): Remove la_filename_extensions initializer.
1018 (pascal_language::filename_extensions): New member function.
1019 * rust-lang.c (rust_extensions): Delete, moved into
1020 rust_language::filename_extensions.
1021 (rust_language_data): Remove la_filename_extensions initializer.
1022 (rust_language::filename_extensions): New member function.
1023 * symfile.c (add_filename_language): Add new assert.
1024
6f7664a9
AB
10252020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
1026
1027 * ada-lang.c (ada_language_data): Remove la_name and
1028 la_natural_name initializers.
1029 (ada_language::name): New member function.
1030 (ada_language::natural_name): New member function.
1031 * c-lang.c (c_language_data): Remove la_name and
1032 la_natural_name initializers.
1033 (c_language::name): New member function.
1034 (c_language::natural_name): New member function.
1035 (cplus_language_data): Remove la_name and
1036 la_natural_name initializers.
1037 (cplus_language::name): New member function.
1038 (cplus_language::natural_name): New member function.
1039 (asm_language_data): Remove la_name and
1040 la_natural_name initializers.
1041 (asm_language::name): New member function.
1042 (asm_language::natural_name): New member function.
1043 (minimal_language_data): Remove la_name and
1044 la_natural_name initializers.
1045 (minimal_language::name): New member function.
1046 (minimal_language::natural_name): New member function.
1047 * compile/compile.c (compile_to_object): Update call to
1048 lanugage_defn::name.
1049 * d-lang.c (d_language_data): Remove la_name and
1050 la_natural_name initializers.
1051 (d_language::name): New member function.
1052 (d_language::natural_name): New member function.
1053 * expprint.c (print_subexp_standard): Update call to
1054 language_defn::name.
1055 (dump_raw_expression): Likewise
1056 (dump_prefix_expression): Likewise.
1057 * f-lang.c (f_language_data): Remove la_name and
1058 la_natural_name initializers.
1059 (f_language::name): New member function.
1060 (f_language::natural_name): New member function.
1061 * go-lang.c (go_language_data): Remove la_name and
1062 la_natural_name initializers.
1063 (go_language::name): New member function.
1064 (go_language::natural_name): New member function.
1065 * language.c (show_language_command): Update call to
1066 language_defn::name.
1067 (set_language_command): Likewise.
1068 (language_enum): Likewise.
1069 (language_str): Likewise.
1070 (add_set_language_command): Likewise, use
1071 language_defn::natural_name in the doc string.
1072 (unknown_language_data): Remove la_name and
1073 la_natural_name initializers.
1074 (unknown_language::name): New member function.
1075 (unknown_language::natural_name): New member function.
1076 (auto_language_data): Remove la_name and
1077 la_natural_name initializers.
1078 (auto_language::name): New member function.
1079 (auto_language::natural_name): New member function.
1080 (language_lookup_primitive_type_as_symbol): Update call to
1081 language_defn::name.
1082 * language.h (language_data): Remove la_name and la_natural_name
1083 member variables.
1084 (language_defn::name): New member function.
1085 (language_defn::natural_name): New member function.
1086 * m2-lang.c (m2_language_data): Remove la_name and
1087 la_natural_name initializers.
1088 (m2_language::name): New member function.
1089 (m2_language::natural_name): New member function.
1090 * mi/mi-cmd-var.c (mi_cmd_var_info_expression): Update call to
1091 language_defn::natural_name.
1092 * objc-lang.c (objc_language_data): Remove la_name and
1093 la_natural_name initializers.
1094 (objc_language::name): New member function.
1095 (objc_language::natural_name): New member function.
1096 * opencl-lang.c (opencl_language_data): Remove la_name and
1097 la_natural_name initializers.
1098 (opencl_language::name): New member function.
1099 (opencl_language::natural_name): New member function.
1100 * p-lang.c (pascal_language_data): Remove la_name and
1101 la_natural_name initializers.
1102 (pascal_language::name): New member function.
1103 (pascal_language::natural_name): New member function.
1104 * rust-lang.c (rust_language_data): Remove la_name and
1105 la_natural_name initializers.
1106 (rust_language::name): New member function.
1107 (rust_language::natural_name): New member function.
1108 * symtab.c (lookup_language_this): Update call to
1109 language_defn::name.
1110
5bae7c4e
AB
11112020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
1112
1113 * ada-lang.c (ada_language_data): Remove la_name_of_this
1114 initializer.
1115 * ax-gdb.c (gen_expr): Update call to name_of_this.
1116 * c-exp.y (classify_name): Likewise.
1117 * c-lang.c (c_language_data): Remove la_name_of_this initializer.
1118 (cplus_language_data): Likewise.
1119 (cplus_language::name_of_this): New member function.
1120 (asm_language_data): Remove la_name_of_this initializer.
1121 (minimal_language_data): Likewise.
1122 * d-lang.c (d_language_data): Likewise.
1123 (d_language::name_of_this): New member function.
1124 * expprint.c (print_subexp_standard): Update call to name_of_this.
1125 * f-lang.c (f_language_data): Remove la_name_of_this initializer.
1126 * go-lang.c (go_language_data): Likewise.
1127 * language.c (unknown_language_data): Likewise.
1128 (unknown_language::name_of_this): New member function.
1129 (auto_language_data): Remove la_name_of_this initializer.
1130 (auto_language::name_of_this): New member function.
1131 * language.h (language_data): Delete la_name_of_this member
1132 variable.
1133 (language_defn::name_of_this): New member function.
1134 * m2-lang.c (m2_language_data): Remove la_name_of_this
1135 initializer.
1136 * objc-lang.c (objc_language_data): Likewise.
1137 (objc_language::name_of_this): New member function.
1138 * opencl-lang.c (opencl_language_data): Remove la_name_of_this
1139 initializer.
1140 * p-lang.c (pascal_language_data): Likewise.
1141 (pascal_language::name_of_this): New member function.
1142 * rust-lang.c (rust_language_data): Remove la_name_of_this
1143 initializer.
1144 * symtab.c (lookup_language_this): Update call to name_of_this.
1145 (lookup_symbol_aux): Likewise.
1146 * valops.c (value_of_this): Likewise.
1147
22e3f3ed
AB
11482020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
1149
1150 * ada-lang.c (ada_language_data): Remove
1151 la_struct_too_deep_ellipsis initializer.
1152 (ada_language::struct_too_deep_ellipsis): New member function.
1153 * c-lang.c (c_language_data): Remove la_struct_too_deep_ellipsis
1154 initializer.
1155 (cplus_language_data): Likewise.
1156 (asm_language_data): Likewise.
1157 (minimal_language_data): Likewise.
1158 * cp-valprint.c (cp_print_value): Update call to
1159 struct_too_deep_ellipsis.
1160 * d-lang.c (d_language_data): Remove la_struct_too_deep_ellipsis
1161 initializer.
1162 * f-lang.c (f_language_data): Likewise.
1163 (f_language::struct_too_deep_ellipsis): New member function.
1164 * go-lang.c (go_language_data): Remove la_struct_too_deep_ellipsis
1165 initializer.
1166 * language.c (unknown_language_data): Likewise.
1167 (auto_language_data): Likewise.
1168 * language.h (language_data): Delete la_struct_too_deep_ellipsis
1169 member variable.
1170 (language_defn::struct_too_deep_ellipsis): New member function.
1171 * m2-lang.c (m2_language_data): Remove la_struct_too_deep_ellipsis
1172 initializer.Q
1173 * objc-lang.c (objc_language_data): Likewise.
1174 * opencl-lang.c (opencl_language_data): Likewise.
1175 * p-lang.c (pascal_language_data): Likewise.
1176 * rust-lang.c (rust_language_data): Likewise.
1177 * valprint.c (val_print_check_max_depth): Update call to
1178 struct_too_deep_ellipsis.
1179
ed29e1c7
FW
11802020-09-16 Felix Willgerodt <felix.willgerodt@intel.com>
1181
1182 * MAINTAINERS (Write After Approval): Add myself.
1183
12d8f940
TT
11842020-09-15 Tom Tromey <tom@tromey.com>
1185
1186 * f-valprint.c (f_value_print_inner) <case TYPE_CODE_INT>:
1187 Remove.
1188
6b5a7bc7
TT
11892020-09-15 Tom Tromey <tom@tromey.com>
1190
1191 * rust-lang.c (rust_value_print_inner): Remove TYPE_CODE_MEMBERPTR
1192 and TYPE_CODE_METHODPTR cases.
1193 * c-valprint.c (c_value_print_memberptr): Move to valprint.c.
1194 (c_value_print_inner): Update.
1195 * valprint.c (generic_value_print_memberptr): New function, from
1196 c_value_print_memberptr.
1197 (generic_value_print): Use it. Call cplus_print_method_ptr.
1198
47f0e2ff
TT
11992020-09-15 Tom Tromey <tromey@adacore.com>
1200
1201 * python/python-internal.h (PyInt_FromLong): Remove define.
1202 * python/py-value.c (convert_value_from_python): Use
1203 gdb_py_object_from_longest.
1204 * python/py-type.c (typy_get_code): Use
1205 gdb_py_object_from_longest.
1206 * python/py-symtab.c (salpy_get_line): Use
1207 gdb_py_object_from_longest.
1208 * python/py-symbol.c (sympy_get_addr_class, sympy_line): Use
1209 gdb_py_object_from_longest.
1210 * python/py-record.c (recpy_gap_reason_code): Use
1211 gdb_py_object_from_longest.
1212 * python/py-record-btrace.c (recpy_bt_insn_size)
1213 (recpy_bt_func_level, btpy_list_count): Use
1214 gdb_py_object_from_longest.
1215 * python/py-infthread.c (gdbpy_create_ptid_object): Use
1216 gdb_py_object_from_longest. Fix error handling.
1217 * python/py-framefilter.c (bootstrap_python_frame_filters): Use
1218 gdb_py_object_from_longest.
1219 * python/py-frame.c (frapy_type, frapy_unwind_stop_reason): Use
1220 gdb_py_object_from_longest.
1221 * python/py-breakpoint.c (bppy_get_type, bppy_get_number)
1222 (bppy_get_thread, bppy_get_task, bppy_get_hit_count)
1223 (bppy_get_ignore_count): Use gdb_py_object_from_longest.
1224
512116ce
TT
12252020-09-15 Tom Tromey <tromey@adacore.com>
1226
1227 * python/python.c (gdbpy_parameter_value): Use
1228 gdb_py_object_from_ulongest.
1229
4ab1029c
TT
12302020-09-15 Tom Tromey <tromey@adacore.com>
1231
1232 * python/py-infevents.c (create_register_changed_event_object):
1233 Use gdb_py_object_from_longest.
1234 * python/py-exitedevent.c (create_exited_event_object): Use
1235 gdb_py_object_from_longest.
1236
062534d4
TT
12372020-09-15 Tom Tromey <tromey@adacore.com>
1238
1239 * python/python.c (gdbpy_parameter_value): Use
1240 gdb_py_object_from_longest.
1241 * python/py-type.c (convert_field, typy_range): Use
1242 gdb_py_object_from_longest.
1243 * python/py-tui.c (gdbpy_tui_width, gdbpy_tui_height): Use
1244 gdb_py_object_from_longest.
1245 * python/py-lazy-string.c (stpy_get_length): Use
1246 gdb_py_object_from_longest.
1247 * python/py-infthread.c (thpy_get_num, thpy_get_global_num): Use
1248 gdb_py_object_from_longest.
1249 * python/py-infevents.c (create_memory_changed_event_object): Use
1250 gdb_py_object_from_longest.
1251 * python/py-inferior.c (infpy_get_num): Use
1252 gdb_py_object_from_longest.
1253 (infpy_get_pid): Likewise.
1254
d1cab987
TT
12552020-09-15 Tom Tromey <tromey@adacore.com>
1256
1257 * python/python-internal.h (gdb_py_long_from_ulongest): Remove
1258 defines.
1259 * python/py-value.c (valpy_long): Use
1260 gdb_py_object_from_ulongest.
1261 * python/py-symtab.c (salpy_get_pc): Use
1262 gdb_py_object_from_ulongest.
1263 (salpy_get_last): Likewise.
1264 * python/py-record-btrace.c (recpy_bt_insn_pc): Use
1265 gdb_py_object_from_ulongest.
1266 * python/py-lazy-string.c (stpy_get_address): Use
1267 gdb_py_object_from_ulongest.
1268 * python/py-frame.c (frapy_pc): Use gdb_py_object_from_ulongest.
1269 * python/py-arch.c (archpy_disassemble): Use
1270 gdb_py_object_from_ulongest and gdb_py_object_from_longest. Fix
1271 error handling.
1272
4bde49dc
TT
12732020-09-15 Tom Tromey <tromey@adacore.com>
1274
1275 * python/python-internal.h (gdb_py_long_from_longest): Remove
1276 defines.
1277 * python/py-value.c (valpy_long): Use gdb_py_object_from_longest.
1278 * python/py-type.c (convert_field, typy_get_sizeof): Use
1279 gdb_py_object_from_longest.
1280 * python/py-record-btrace.c (btpy_list_index): Use
1281 gdb_py_object_from_longest.
1282
37431074
TT
12832020-09-15 Tom Tromey <tromey@adacore.com>
1284
1285 * python/python-internal.h (PyInt_FromSsize_t): Remove define.
1286 * python/py-record.c (recpy_element_number): Use
1287 gdb_py_object_from_longest.
1288 (recpy_gap_number): Likewise.
1289
cbe25684
TT
12902020-09-15 Tom Tromey <tromey@adacore.com>
1291
1292 * top.c (ui::ui): Update.
1293 (highest_ui_num): Remove.
1294 * top.h (struct ui) <num>: Remove.
1295
db92ac45
TT
12962020-09-15 Tom Tromey <tromey@adacore.com>
1297
1298 * unittests/memory-map-selftests.c (valid_mem_map): Now array.
1299 * ui-style.c (ansi_regex_text): Now array.
1300 * rust-exp.y (number_regex_text): Now array.
1301 * linespec.c (linespec_quote_characters): Now array.
1302 * jit.c (jit_break_name, jit_descriptor_name, reader_init_fn_sym):
1303 Now arrays.
1304
d2b31b67
SM
13052020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
1306
1307 * debuginfod-support.c (debuginfod_client_deleter): New.
1308 (debuginfod_client_up): New.
1309 (debuginfod_init): Return debuginfod_client_up.
1310 (debuginfod_source_query): Adjust.
1311 (debuginfod_debuginfo_query): Adjust.
1312
3246bd8e
SM
13132020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
1314
1315 * debuginfod-support.c (debuginfod_source_query): Use
1316 make_unique_xstrdup.
1317
10242f36
SM
13182020-09-14 Simon Marchi <simon.marchi@efficios.com>
1319
1320 * gdbtypes.h (TYPE_INSTANCE_FLAGS): Remove, replace all uses
1321 with `type::instance_flags`.
1322
e1044e6a
MM
13232020-09-14 Michael Mullin <masmullin@gmail.com>
1324
1325 * xml-tdesc.c [!defined(HAVE_LIBEXPAT)] (tdesc_parse_xml):
1326 Remove baton parameter.
1327
04902b09
PA
13282020-09-14 Pedro Alves <pedro@palves.net>
1329
1330 * Makefile.in (SELFTESTS_SRCS): Add
1331 unittests/enum-flags-selftests.c.
1332 * btrace.c (ftrace_update_caller, ftrace_fixup_calle): Use
1333 btrace_function_flags instead of enum btrace_function_flag.
1334 * compile/compile-c-types.c (convert_qualified): Use
1335 enum_flags::raw.
1336 * compile/compile-cplus-symbols.c (convert_one_symbol)
1337 (convert_symbol_bmsym):
1338 * compile/compile-cplus-types.c (compile_cplus_convert_method)
1339 (compile_cplus_convert_struct_or_union_methods)
1340 (compile_cplus_instance::convert_qualified_base):
1341 * go-exp.y (parse_string_or_char): Add cast to int.
1342 * unittests/enum-flags-selftests.c: New file.
1343 * record-btrace.c (btrace_thread_flag_to_str): Change parameter's
1344 type to btrace_thread_flags from btrace_thread_flag.
1345 (record_btrace_cancel_resume, record_btrace_step_thread): Change
1346 local's type to btrace_thread_flags from btrace_thread_flag. Add
1347 cast in DEBUG call.
1348
69896a2c
PA
13492020-09-14 Pedro Alves <pedro@palves.net>
1350
1351 * c-typeprint.c (c_type_print_modifier): Adjust to rename.
1352 * gdbtypes.c (address_space_name_to_int): Rename to ...
1353 (address_space_name_to_type_instance_flags): ... this.
1354 (address_space_int_to_name): Rename to ...
1355 (address_space_type_instance_flags_to_name): ... this.
1356 * gdbtypes.h (address_space_name_to_int): Rename to ...
1357 (address_space_name_to_type_instance_flags): ... this.
1358 (address_space_int_to_name): Rename to ...
1359 (address_space_type_instance_flags_to_name): ... this.
1360 * type-stack.c (type_stack::insert): Adjust to rename.
1361 * type-stack.h (type_stack::insert): Likewise.
1362
314ad88d
PA
13632020-09-14 Pedro Alves <pedro@palves.net>
1364 Andrew Burgess <andrew.burgess@embecosm.com>
1365
1366 * avr-tdep.c (avr_address_class_type_flags): Return
1367 type_instance_flags.
1368 (avr_address_class_type_flags_to_name): Take a
1369 type_instance_flags.
1370 (avr_address_class_name_to_type_flags): Return bool and take a
1371 type_instance_flags.
1372 * d-lang.c (build_d_types): Use type::set_instance_flags.
1373 * ft32-tdep.c (ft32_address_class_type_flags): Return
1374 type_instance_flags.
1375 (ft32_address_class_type_flags_to_name): Take a
1376 type_instance_flags.
1377 (ft32_address_class_name_to_type_flags): Return bool and take a
1378 type_instance_flags.
1379 (ft32_gdbarch_init): Use type::set_instance_flags.
1380 * eval.c (fake_method::fake_method): Use type::set_instance_flags.
1381 * gdbarch.h, gdbarch.c: Regenerate.
1382 * gdbarch.sh (address_class_type_flags): Use type_instance_flags.
1383 (address_class_name_to_type_flags): Use type_instance_flags and
1384 bool.
1385 * gdbtypes.c (address_space_name_to_int)
1386 (address_space_int_to_name, make_qualified_type): Use
1387 type_instance_flags.
1388 (make_qualified_type): Use type_instance_flags and
1389 type::set_instance_flags.
1390 (make_type_with_address_space, make_cv_type, make_vector_type)
1391 (check_typedef): Use type_instance_flags.
1392 (recursive_dump_type): Cast type_instance_flags to unsigned for
1393 printing.
1394 (copy_type_recursive): Use type::set_instance_flags.
1395 (gdbtypes_post_init): Use type::set_instance_flags.
1396 * gdbtypes.h (struct type) <instance_flags>: Rename to ...
1397 <m_instance_flags>: ... this.
1398 <instance_flags, set_instance_flags>: New methods.
1399 (TYPE_INSTANCE_FLAGS): Use the instance_flags method.
1400 (SET_TYPE_INSTANCE_FLAGS): New.
1401 (address_space_name_to_int, address_space_int_to_name)
1402 (make_type_with_address_space): Pass flags using
1403 type_instance_flags instead of int.
1404 * stabsread.c (cleanup_undefined_types_noname): Use
1405 type::set_instance_flags.
1406 * s390-tdep.c (s390_address_class_type_flags): Return
1407 type_instance_flags.
1408 (s390_address_class_type_flags_to_name): Take a
1409 type_instance_flags.
1410 (s390_address_class_name_to_type_flags): Return bool and take a
1411 type_instance_flags.
1412 * type-stack.c (type_stack::follow_types): Use
1413 type_instance_flags.
1414 * dwarf2/read.c (read_tag_pointer_type): Use type_instance_flags.
1415
27087b7f
TT
14162020-09-14 Tom Tromey <tromey@adacore.com>
1417
1418 * x86-tdep.h (x86_in_indirect_branch_thunk): Update.
1419 * x86-tdep.c (x86_is_thunk_register_name)
1420 (x86_in_indirect_branch_thunk): Update.
1421 * sparc64-tdep.c (sparc64_fpu_register_names)
1422 (sparc64_cp0_register_names, sparc64_register_names)
1423 (sparc64_pseudo_register_names): Now const.
1424 * sparc-tdep.h (struct gdbarch_tdep) <fpu_register_names,
1425 cp0_registers_num>: Now const.
1426 * sparc-tdep.c (sparc_core_register_names)
1427 (sparc32_fpu_register_names, sparc32_cp0_register_names)
1428 (sparc32_pseudo_register_names): Now const.
1429 (validate_tdesc_registers): Update.
1430 * rust-lang.c (rust_extensions): Now const.
1431 * p-lang.c (p_extensions): Now const.
1432 * objc-lang.c (objc_extensions): Now const.
1433 * nto-tdep.c (nto_thread_state_str): Now const.
1434 * moxie-tdep.c (moxie_register_names): Now const.
1435 * mips-tdep.h (struct gdbarch_tdep) <mips_processor_reg_names>:
1436 Now const.
1437 * mips-tdep.c (mips_generic_reg_names, mips_tx39_reg_names)
1438 (mips_linux_reg_names): Now const.
1439 (mips_gdbarch_init): Update.
1440 * microblaze-tdep.c (microblaze_register_names): Now const.
1441 * m68k-tdep.c (m68k_register_names): Now const.
1442 * m32r-tdep.c (m32r_register_names): Now const.
1443 * ia64-tdep.c (ia64_register_names): Now const.
1444 * i386-tdep.h (struct gdbarch_tdep) <register_names,
1445 ymmh_register_names, ymm16h_regnum, mpx_register_names,
1446 k_register_names, zmmh_register_names, xmm_avx512_register_names,
1447 ymm_avx512_register_names, pkeys_register_names>: Now const.
1448 * i386-tdep.c (i386_register_names, i386_zmm_names)
1449 (i386_zmmh_names, i386_k_names, i386_ymm_names, i386_ymmh_names)
1450 (i386_mpx_names, i386_pkeys_names, i386_bnd_names)
1451 (i386_mmx_names, i386_byte_names, i386_word_names): Now const.
1452 * f-lang.c (f_extensions): Now const.
1453 * d-lang.c (d_extensions): Now const.
1454 * csky-tdep.c (csky_register_names): Now const.
1455 * charset.c (default_charset_names, charset_enum): Now const.
1456 (_initialize_charset): Update.
1457 * c-lang.c (c_extensions, cplus_extensions, asm_extensions): Now
1458 const.
1459 * bsd-uthread.c (bsd_uthread_solib_names): Now const.
1460 (bsd_uthread_solib_loaded): Update.
1461 (bsd_uthread_state): Now const.
1462 * amd64-tdep.c (amd64_register_names, amd64_ymm_names)
1463 (amd64_ymm_avx512_names, amd64_ymmh_names)
1464 (amd64_ymmh_avx512_names, amd64_mpx_names, amd64_k_names)
1465 (amd64_zmmh_names, amd64_zmm_names, amd64_xmm_avx512_names)
1466 (amd64_pkeys_names, amd64_byte_names, amd64_word_names)
1467 (amd64_dword_names): Now const.
1468 * agent.c (can_use_agent_enum): Now const.
1469 * ada-tasks.c (task_states, long_task_states): Now const.
1470 * ada-lang.c (known_runtime_file_name_patterns)
1471 (known_auxiliary_function_name_patterns, attribute_names)
1472 (standard_exc, ada_extensions): Now const.
1473
89806626
SM
14742020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
1475
1476 * bcache.h (struct bcache) <bcache>: Remove constructor.
1477 <m_hash_function, m_compare_function>: Remove.
1478 <~bcache>: Make virtual.
1479 <compare>: Remove static method, introduce virtual method.
1480 <default_hash>: Remove.
1481 <hash>: New virtual method.
1482 * bcache.c (bcache::expand_hash_table): Update.
1483 (bcache::insert): Update.
1484 (bcache::hash): New.
1485 (bcache::compare): Update comment and parameter names.
1486 * gdbtypes.c (types_deeply_equal): Update.
1487 * psymtab.h (struct psymbol_bcache): New struct.
1488 (class psymtab_storage) <psymtab_storage>: Make default.
1489 <psymbol_cache>: Change type to psymbol_bcache.
1490 * psymtab.c (psymtab_storage::psymtab_storage): Remove.
1491 (psymbol_hash): Change to...
1492 (psymbol_bcache::hash): ... this.
1493 (psymbol_compare): Change to...
1494 (psymbol_bcache::compare): ... this.
1495
677c92fe
SM
14962020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
1497
1498 * linux-nat.c (linux_nat_wait_1): Don't use inferior_ptid when
1499 checking for initial lwp.
1500
3eba3a01
TT
15012020-09-14 Tom Tromey <tromey@adacore.com>
1502
1503 * m68k-tdep.c (m68k_extract_return_value): Use
1504 pointer_result_regnum.
1505 (m68k_store_return_value): Likewise.
1506 (m68k_reg_struct_return_p): Handle vectors and arrays.
1507 (m68k_return_value): Handle arrays.
1508 (m68k_svr4_return_value): Fix single-element aggregate handling.
1509 Handle long double. Adjust for embedded ABI.
1510 (m68k_svr4_init_abi): Set pointer_result_regnum.
1511 (m68k_embedded_init_abi): New function.
1512 (m68k_gdbarch_init): Handle Tag_GNU_M68K_ABI_FP.
1513 (m68k_osabi_sniffer): New function.
1514 (_initialize_m68k_tdep): Register osabi sniffer.
1515 * m68k-tdep.h (struct gdbarch_tdep) <pointer_result_regnum>: New
1516 member.
1517
33f4dd48
SM
15182020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
1519
1520 * xml-support.c (xml_fetch_content_from_file): Replace xfree
1521 with gdb::unique_xmalloc_ptr<char>.
1522
8400a90d
SM
15232020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
1524
1525 * xml-support.h (xml_fetch_another): Change type to be a
1526 function_view.
1527 (xml_process_xincludes): Remove baton parameter.
1528 (xml_fetch_content_from_file): Change baton parameter to
1529 dirname.
1530 * xml-support.c (struct xinclude_parsing_data)
1531 <xinclude_parsing_data>: Remove baton parameter.
1532 <fetcher_baton>: Remove.
1533 (xinclude_start_include): Adjust.
1534 (xml_process_xincludes): Adjust.
1535 (xml_fetch_content_from_file): Replace baton parameter with
1536 dirname.
1537 * xml-syscall.c (syscall_parse_xml): Remove baton parameter.
1538 (xml_init_syscalls_info): Use a lambda.
1539 * xml-tdesc.c (tdesc_parse_xml): Remove baton parameter.
1540 (file_read_description_xml): Use a lambda.
1541 (fetch_available_features_from_target): Change baton parameter
1542 to target_ops.
1543 (target_read_description_xml): Use a lambda.
1544 (target_fetch_description_xml): Use a lambda.
1545 (string_read_description_xml): Update.
1546
04f5bab2
SM
15472020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
1548
1549 * gdbtypes.h (TYPE_ENDIANITY_NOT_DEFAULT): Remove, replace all
1550 uses with type::endianity_is_not_default.
1551
db558e34
SM
15522020-09-14 Simon Marchi <simon.marchi@efficios.com>
1553
1554 * gdbtypes.h (struct type) <endianity_is_not_default,
1555 set_endianity_is_not_default>: New methods.
1556 (TYPE_ENDIANITY_NOT_DEFAULT): Use
1557 type::endianity_is_not_default, change all write call sites to
1558 use type::set_endianity_is_not_default.
1559
22c4c60c
SM
15602020-09-14 Simon Marchi <simon.marchi@efficios.com>
1561
1562 * gdbtypes.h (TYPE_FIXED_INSTANCE): Remove, replace all
1563 uses with type::is_fixed_instance.
1564
9cdd0d12
SM
15652020-09-14 Simon Marchi <simon.marchi@efficios.com>
1566
1567 * gdbtypes.h (struct type) <is_fixed_instance,
1568 set_is_fixed_instance>: New methods.
1569 (TYPE_FIXED_INSTANCE): Use type::is_fixed_instance, change all
1570 write call sites to use type::set_is_fixed_instance.
1571
0becda7a
SM
15722020-09-14 Simon Marchi <simon.marchi@efficios.com>
1573
1574 * gdbtypes.h (TYPE_GNU_IFUNC): Remove, replace all
1575 uses with type::is_gnu_ifunc.
1576
03cc7249
SM
15772020-09-14 Simon Marchi <simon.marchi@efficios.com>
1578
1579 * gdbtypes.h (struct type) <is_gnu_ifunc, set_is_gnu_ifunc>: New methods.
1580 (TYPE_GNU_IFUNC): Use type::is_gnu_ifunc, change all write call sites to
1581 use type::set_is_gnu_ifunc.
1582
3f46044c
SM
15832020-09-14 Simon Marchi <simon.marchi@efficios.com>
1584
1585 * gdbtypes.h (TYPE_STUB_SUPPORTED): Remove, replace all
1586 uses with type::stub_is_supported.
1587
9baccff6
SM
15882020-09-14 Simon Marchi <simon.marchi@efficios.com>
1589
1590 * gdbtypes.h (struct type) <stub_is_supported, set_stub_is_supported>: New methods.
1591 (TYPE_STUB_SUPPORTED): Use type::stub_is_supported, change all write call sites to
1592 use type::set_stub_is_supported.
1593
bd63c870
SM
15942020-09-14 Simon Marchi <simon.marchi@efficios.com>
1595
1596 * gdbtypes.h (TYPE_VECTOR): Remove, replace all
1597 uses with type::is_vector.
1598
2062087b
SM
15992020-09-14 Simon Marchi <simon.marchi@efficios.com>
1600
1601 * gdbtypes.h (struct type) <is_vector, set_is_vector>: New methods.
1602 (TYPE_VECTOR): Use type::is_vector, change all write call sites to
1603 use type::set_is_vector.
1604
a409645d
SM
16052020-09-14 Simon Marchi <simon.marchi@efficios.com>
1606
1607 * gdbtypes.h (TYPE_VARARGS): Remove, replace all
1608 uses with type::has_varargs.
1609
1d6286ed
SM
16102020-09-14 Simon Marchi <simon.marchi@efficios.com>
1611
1612 * gdbtypes.h (struct type) <has_varargs, set_has_varargs>: New methods.
1613 (TYPE_VARARGS): Use type::has_varargs, change all write call sites to
1614 use type::set_has_varargs.
1615
7f9f399b
SM
16162020-09-14 Simon Marchi <simon.marchi@efficios.com>
1617
1618 * gdbtypes.h (TYPE_PROTOTYPED): Remove, replace all
1619 uses with type::is_prototyped.
1620
27e69b7a
SM
16212020-09-14 Simon Marchi <simon.marchi@efficios.com>
1622
1623 * gdbtypes.h (struct type) <is_prototyped, set_is_prototyped>:
1624 New methods.
1625 (TYPE_PROTOTYPED): Use type::is_prototyped, change all write
1626 call sites to use type::set_is_prototyped.
1627
d2183968
SM
16282020-09-14 Simon Marchi <simon.marchi@efficios.com>
1629
1630 * gdbtypes.h (TYPE_TARGET_STUB): Remove, replace all
1631 uses with type::target_is_stub.
1632
8f53807e
SM
16332020-09-14 Simon Marchi <simon.marchi@efficios.com>
1634
1635 * gdbtypes.h (struct type) <target_is_stub, set_target_is_stub>:
1636 New methods.
1637 (TYPE_TARGET_STUB): Use type::is_stub, change all write call
1638 sites to use type::set_target_is_stub.
1639
e46d3488
SM
16402020-09-14 Simon Marchi <simon.marchi@efficios.com>
1641
1642 * gdbtypes.h (TYPE_STUB): Remove, replace all
1643 uses with type::is_stub.
1644
b4b73759
SM
16452020-09-14 Simon Marchi <simon.marchi@efficios.com>
1646
1647 * gdbtypes.h (struct type) <is_stub, set_is_stub>: New methods.
1648 (TYPE_STUB): Use type::is_stub, change all write call sites to
1649 use type::set_is_stub.
1650
20ce4123
SM
16512020-09-14 Simon Marchi <simon.marchi@efficios.com>
1652
1653 * gdbtypes.h (TYPE_NOSIGN): Remove, replace all uses with
1654 type::has_no_signedness.
1655
15152a54
SM
16562020-09-14 Simon Marchi <simon.marchi@efficios.com>
1657
1658 * gdbtypes.h (struct type) <has_no_signedness,
1659 set_has_no_signedness>: New methods.
1660 (TYPE_NOSIGN): Use type::has_no_signedness, change all write
1661 call sites to use type::set_has_no_signedness.
1662
c6d940a9
SM
16632020-09-14 Simon Marchi <simon.marchi@efficios.com>
1664
1665 * gdbtypes.h (TYPE_UNSIGNED): Remove, replace all uses with
1666 type::is_unsigned.
1667
653223d3
SM
16682020-09-14 Simon Marchi <simon.marchi@efficios.com>
1669
1670 * gdbtypes.h (struct type) <is_unsigned, set_is_unsigned>: New
1671 methods.
1672 (TYPE_UNSIGNED): Use type::is_unsigned. Change all write call
1673 sites to use type::set_is_unsigned.
1674
55ea94da 16752020-09-14 Fredrik Hederstierna <fredrik.hederstierna@verisure.com>
e851246a 1676 Adam Renquinha <arenquinha@cimeq.qc.ca>
55ea94da 1677
e851246a
SM
1678 * arm-tdep.c (arm_m_exception_cache): Try use correct stack
1679 pointer and stack frame offset when unwinding.
55ea94da 1680
6791b117
PA
16812020-09-13 Pedro Alves <pedro@palves.net>
1682
1683 * NEWS: Document "-break-insert --qualified".
1684 * mi/mi-cmd-break.c (mi_cmd_break_insert_1): Handle "--qualified".
1685
77f2120b
PA
16862020-09-13 Pedro Alves <pedro@palves.net>
1687
1688 * linespec.c (classify_mtype, compare_msyms): Delete.
1689 (search_minsyms_for_name): Remove classification logic. Instead
1690 filter out trampoline symbols if we also found an external
1691 function of the same name.
1692
ed6a896c
JB
16932020-09-13 Joel Brobecker <brobecker@adacore.com>
1694
1695 * NEWS: Create a new section for the next release branch.
1696 Rename the section of the current branch, now that it has
1697 been cut.
1698
32aea73e
JB
16992020-09-13 Joel Brobecker <brobecker@adacore.com>
1700
1701 GDB 10 branch created (8087c3fa8b5d695e3e29e69d70d0b35ec902ac59):
1702 * version.in: Bump version to 11.0.50.DATE-git.
1703
8087c3fa
JB
17042020-09-12 Joel Brobecker <brobecker@adacore.com>
1705
1706 * infrun.c (namespace selftests): Only define #if GDB_SELF_TEST.
1707
2a67f09d
FW
17082020-09-11 Moritz Riesterer <moritz.riesterer@intel.com>
1709 Felix Willgerodt <Felix.Willgerodt@intel.com>
1710
1711 * gdbarch.sh: Added bfloat16 type.
1712 * gdbarch.c: Regenerated.
1713 * gdbarch.h: Regenerated.
1714 * gdbtypes.c (floatformats_bfloat16): New struct.
1715 (gdbtypes_post_init): Add builtin_bfloat16.
1716 * gdbtypes.h (struct builtin_type) <builtin_bfloat16>: New member.
1717 (floatformats_bfloat16): New struct.
1718 * i386-tdep.c (i386_zmm_type): Add field "v32_bfloat16"
1719 (i386_ymm_type): Add field "v16_bfloat16"
1720 (i386_gdbarch_init): Add set_gdbarch_bfloat16_format.
1721 * target-descriptions.c (make_gdb_type): Add case TDESC_TYPE_BFLOAT16.
1722 * gdbsupport/tdesc.cc (tdesc_predefined_types): New member bfloat16.
1723 * gdbsupport/tdesc.h (tdesc_type_kind): New member TDESC_TYPE_BFLOAT16.
1724 * features/i386/64bit-avx512.xml: Add bfloat16 type.
1725 * features/i386/64bit-avx512.c: Regenerated.
1726 * features/i386/64bit-sse.xml: Add bfloat16 type.
1727 * features/i386/64bit-sse.c: Regenerated.
1728
1347d111
FW
17292020-09-11 Felix Willgerodt <felix.willgerodt@intel.com>
1730
1731 * i386-tdep.c (i386_zmm_type): Fix field names.
1732 (i386_ymm_type): Fix field names.
1733
7a4e8e7d
TBA
17342020-09-11 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1735
1736 * breakpoint.c: Fix typo in the help message of the
1737 "set breakpoint condition-evaluation" command.
1738
cf4ac4be
KR
17392020-09-10 Kamil Rytarowski <n54@gmx.com>
1740
1741 * nbsd-nat.c: Include "nat/netbsd-nat.h".
1742 * (nbsd_nat_target::pid_to_exec_file)
1743 (nbsd_nat_target::thread_alive, nbsd_nat_target::thread_name)
1744 (nbsd_nat_target::post_startup_inferior)
1745 (nbsd_nat_target::post_attach, nbsd_nat_target::xfer_partial)
1746 (nbsd_add_threads): Switch local code to common gdb/nat functions.
1747 * (nbsd_pid_to_cmdline): Call sysctl from the global namespace.
1748 * (nbsd_thread_lister): Remove.
1749
f404573e
KR
17502020-09-10 Kamil Rytarowski <n54@gmx.com>
1751
1752 * fork-inferior.c (startup_inferior): Avoid double free.
1753
1ccb2c17
KR
17542020-09-10 Kamil Rytarowski <n54@gmx.com>
1755
1756 * netbsd-nat.h (netbsd_nat::qxfer_siginfo): Add.
1757 * netbsd-nat.c (netbsd_nat::qxfer_siginfo): Likewise.
1758
feedfcc7
KR
17592020-09-10 Kamil Rytarowski <n54@gmx.com>
1760
1761 * netbsd-nat.h (netbsd_nat::enable_proc_events): Add.
1762 * netbsd-nat.c: Include <sys/ptrace.h>.
1763 * (netbsd_nat::enable_proc_events): Add.
1764
c489f8c6
KR
17652020-09-10 Kamil Rytarowski <n54@gmx.com>
1766
1767 * netbsd-nat.h: Include "gdbsupport/function-view.h".
1768 * (netbsd_nat::thread_alive, netbsd_nat::thread_name)
1769 (netbsd_nat::for_each_thread): Add.
1770 * netbsd-nat.c: Include "gdbsupport/common-defs.h" and
1771 "gdbsupport/common-debug.h".
1772 * (netbsd_nat::netbsd_thread_lister)
1773 (netbsd_nat::thread_alive, netbsd_nat::thread_name)
1774 (netbsd_nat::for_each_thread): Add.
1775
330662f6
KR
17762020-09-10 Kamil Rytarowski <n54@gmx.com>
1777
1778 * netbsd-nat.h: Include <unistd.h>.
1779 * (netbsd_nat::pid_to_exec_file): Add.
1780 * netbsd-nat.c: Include <sys/types.h> and <sys/sysctl.h>.
1781 * (netbsd_nat::pid_to_exec_file) Add.
1782
70b67307
KR
17832020-09-10 Kamil Rytarowski <n54@gmx.com>
1784
1785 * configure.nat (NATDEPFILES): Add nat/netbsd-nat.o when needed.
1786
99cf6da6
KR
17872020-09-10 Kamil Rytarowski <n54@gmx.com>
1788
1789 * netbsd-nat.h: New file.
1790 * netbsd-nat.c: Likewise.
1791
1b788fb6
TT
17922020-09-09 Tom Tromey <tromey@adacore.com>
1793
1794 * ada-lang.c (remove_extra_symbols): Do not increment when
1795 removing an element
1796
03b0a45f
TT
17972020-09-08 Tom Tromey <tromey@adacore.com>
1798
1799 * gdb_bfd.c (gdb_bfd_open): Call bfd_fopen when fstat fails.
1800
3cae4447
TT
18012020-09-08 Tom Tromey <tromey@adacore.com>
1802
1803 PR win32/25302:
1804 * gdb_bfd.c (gdb_bfd_data): Add "st" parameter.
1805 (gdb_bfd_init_data): New function.
1806 (gdb_bfd_open, gdb_bfd_ref): Use gdb_bfd_init_data.
1807
7f08fd51
TBA
18082020-09-07 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1809
1810 * infrun.c (fetch_inferior_event): Use
1811 `switch_to_target_no_thread` to switch the target.
1812
3e6ff933
TT
18132020-09-06 Tom Tromey <tom@tromey.com>
1814
1815 * symfile.h (dwarf2_free_objfile): Don't declare.
1816
e56798df
AKS
18172020-09-03 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
1818
1819 * gdb/i386-tdep.c (i386_floatformat_for_type): Added conditions
1820 to match 16 byte real/complex type generated by Flang compiler.
1821
8f5c6526
TV
18222020-09-03 Tom de Vries <tdevries@suse.de>
1823
1824 PR breakpoint/26546
1825 * dwarf2/read.c (new_symbol): Tag label symbol without DW_AT_low_pc as
1826 LOC_OPTIMIZED_OUT instead of LOC_LABEL.
1827
c5065df0
SM
18282020-09-02 Simon Marchi <simon.marchi@polymtl.ca>
1829
1830 * maint.c (index_digits): New function.
1831 (struct maint_print_section_data): Remove.
1832 (print_bfd_section_info): Remove print_data parameter, add arg
1833 and index_digits.
1834 (print_objfile_section_info): Likewise.
1835 (print_bfd_section_info_maybe_relocated): Likewise (plus
1836 objfile).
1837 (maintenance_info_sections): Adjust calls.
1838
02c6f3f1
TT
18392020-09-02 Tom Tromey <tromey@adacore.com>
1840
1841 * ada-varobj.c (ada_varobj_get_ptr_number_of_children): Return 0
1842 for null pointers.
1843 (ada_varobj_adjust_for_child_access): Special-case null pointers.
1844
ef5e5b0b
SM
18452020-09-01 Simon Marchi <simon.marchi@polymtl.ca>
1846
1847 * bcache.h (struct bcache) <insert>: Change type of `added` to
1848 pointer to bool.
1849 * bcache.c (bcache::insert): Likewise.
1850 * gdbtypes.c (check_types_worklist): Adjust.
1851 * psymtab.c (add_psymbol_to_bcache): Adjust.
1852
973695d6
KB
18532020-08-31 Kevin Buettner <kevinb@redhat.com>
1854
1855 * corelow.c (unordered_set): Include.
1856 (class core_target): Add field 'm_core_unavailable_mappings'.
1857 (core_target::build_file_mappings): Print only one warning
1858 per inaccessible file. Add unavailable/broken mappings
1859 to m_core_unavailable_mappings.
1860 (core_target::xfer_partial): Call...
1861 (core_target::xfer_memory_via_mappings): New method.
1862
264fc0e2
SM
18632020-08-31 Simon Marchi <simon.marchi@polymtl.ca>
1864
1865 * dwarf2/read.c (struct field_info) <non_public_fields>: Change
1866 type to bool.
1867
2de01bdb
SM
18682020-08-31 Simon Marchi <simon.marchi@polymtl.ca>
1869
1870 * dwarf2/read.c (struct field_info): Fix indentation.
1871
f3bd50f1
SM
18722020-08-31 Simon Marchi <simon.marchi@efficios.com>
1873
1874 * frame-unwind.h (frame_prev_register_ftype): Fix adjective
1875 ordering in comment.
1876 * frame.c (frame_id_eq): Fix indentation.
1877
22b9b4b0
SL
18782020-08-31 Scott Linder <scott@scottlinder.com>
1879 Simon Marchi <simon.marchi@efficios.com>
1880
1881 * inline-frame.c (inline_frame_this_id): Remove assert that prevents
1882 inline frame ids in outer frame.
1883
84154d16
SM
18842020-08-31 Simon Marchi <simon.marchi@efficios.com>
1885
1886 * frame.h (enum frame_id_stack_status) <FID_STACK_OUTER>: New.
1887 * frame.c (fprint_frame_id): Handle FID_STACK_OUTER.
1888 (outer_frame_id): Use FID_STACK_OUTER instead of
1889 FID_STACK_INVALID.
1890 (frame_id_p): Don't check for outer_frame_id.
1891
8efaf6b3
SM
18922020-08-31 Simon Marchi <simon.marchi@efficios.com>
1893
1894 * frame-unwind.c (frame_unwind_got_optimized): Don't set
1895 regnum/frame in value. Call allocate_value_lazy.
1896 * frame.c (frame_unwind_register_value): Use
1897 val_print_not_saved.
1898
fe1fe7ea
SM
18992020-08-31 Simon Marchi <simon.marchi@efficios.com>
1900
1901 * gdbtypes.h (NULL_TYPE): Remove, change all uses to nullptr.
1902
f7c7700d
PA
19032020-08-29 Pedro Alves <pedro@palves.net>
1904
1905 * progspace.c (print_program_space): Use all_inferiors. Switch to
1906 the inferior before calling target_pid_to_str.
1907
e0814aae
TT
19082020-08-28 Tom Tromey <tom@tromey.com>
1909
1910 * xcoffread.c (xcoff_end_psymtab): Update comment.
1911 * dbxread.c (dbx_end_psymtab): Update comment.
1912
626d2320
TV
19132020-08-28 Tom de Vries <tdevries@suse.de>
1914
1915 PR breakpoint/26544
1916 * breakpoint.c (parse_breakpoint_sals): Remove const from struct
1917 event_location.
1918 (create_breakpoint): Same.
1919 (base_breakpoint_decode_location): Same.
1920 (bkpt_create_sals_from_location): Same.
1921 (bkpt_decode_location): Same.
1922 (bkpt_probe_create_sals_from_location): Same.
1923 (bkpt_probe_decode_location): Same.
1924 (tracepoint_create_sals_from_location): Same.
1925 (tracepoint_decode_location): Same.
1926 (tracepoint_probe_decode_location): Same.
1927 (strace_marker_create_sals_from_location): Same.
1928 (strace_marker_decode_location): Same.
1929 (create_sals_from_location_default): Same.
1930 (decode_location_default): Same.
1931 * breakpoint.h (struct breakpoint_ops): Same.
1932 (create_breakpoint): Same.
1933 * linespec.h (decode_line_full): Same.
1934 * linespec.c (decode_line_full): Same. Throw error if
1935 result.size () == 0.
1936
df631783
PA
19372020-08-27 Pedro Alves <pedro@palves.net>
1938
1939 PR gdb/26524
1940 * breakpoint.c (until_break_fsm) <location_breakpoint,
1941 caller_breakpoint>: Delete fields.
1942 <breakpoints>: New field.
1943 <until_break_fsm>: Adjust to save a breakpoint vector instead of
1944 two individual breakpoints.
1945 (until_break_fsm::should_stop): Loop over breakpoints in the
1946 breakpoint vector.
1947 (until_break_fsm::clean_up): Adjust to clear the breakpoints
1948 vector.
1949 (until_break_command): Handle location expanding into multiple
1950 sals.
1951
b2b38aa4
PA
19522020-08-27 Pedro Alves <pedro@palves.net>
1953
1954 PR gdb/26523
1955 * inline-frame.c (stopped_by_user_bp_inline_frame): Also consider
1956 bp_until breakpoints user-specified locations. Update intro
1957 comment.
1958
b886559f
SM
19592020-08-27 Simon Marchi <simon.marchi@polymtl.ca>
1960
1961 * gdb_bfd.h (gdb_bfd_section_iterator, gdb_bfd_section_range,
1962 gdb_bfd_sections): New.
1963 * maint.c (print_bfd_section_info): Change param type to
1964 maint_print_section_data.
1965 (print_objfile_section_info): Likewise.
1966 (print_bfd_section_info_maybe_relocated): Likewise.
1967 (maintenance_info_sections): Use gdb_bfd_sections.
1968
4c6e63bf
SV
19692020-08-25 Shahab Vahedi <shahab@synopsys.com>
1970
1971 * MAINTAINERS: Add ARC target and maintainer.
1972
8d7f0635
AK
19732020-08-25 Anton Kolesov <anton.kolesov@synopsys.com>
1974
1975 * configure.tgt: ARC support for GNU/Linux.
1976 * Makefile.in (ALL_TARGET_OBJS): Likewise.
1977 * arc-linux-tdep.c: New file.
1978 * arc-tdep.h (ARC_STATUS32_L_MASK, ARC_STATUS32_DE_MASK): Declare.
1979 * arc-tdep.c (arc_write_pc): Use it.
1980
fdd8731b
SV
19812020-08-25 Shahab Vahedi <shahab@synopsys.com>
1982
1983 * arc-tdep.c (arc_check_for_hardware_loop): New.
1984 * arc-tdep.h (gdbarch_tdep): New field has_hw_loops.
1985
22459524
SV
19862020-08-25 Shahab Vahedi <shahab@synopsys.com>
1987
1988 * arc-tdep.h: Include "gdbarch.h".
1989
995d3a19
SV
19902020-08-25 Shahab Vahedi <shahab@synopsys.com>
1991
1992 * arch/arc.h
1993 (arc_gdbarch_features): New class to stir the selection of target XML.
1994 (arc_create_target_description): Use FEATURES to choose XML target.
1995 (arc_lookup_target_description): Use arc_create_target_description
1996 to create _new_ target descriptions or return the already created
1997 ones if the FEATURES is the same.
1998 * arch/arc.c: Implementation of prototypes described above.
1999 * gdb/arc-tdep.h (arc_regnum enum): Add more registers.
2000 (arc_gdbarch_features_init): Initialize the FEATURES struct.
2001 * arc-tdep.c (*_feature_name): Make feature names consistent.
2002 (arc_register_feature): A new struct to hold information about
2003 registers of a particular target/feature.
2004 (arc_check_tdesc_feature): Check if XML provides registers in
2005 compliance with ARC_REGISTER_FEATURE structs.
2006 (arc_update_acc_reg_names): Add aliases for r58 and r59.
2007 (determine_*_reg_feature_set): Which feature name to look for.
2008 (arc_gdbarch_features_init): Given MACH and ABFD, initialize FEATURES.
2009 (mach_type_to_arc_isa): Convert from a set of binutils machine types
2010 to expected ISA enums to be used in arc_gdbarch_features structs.
2011 * features/Makefile (FEATURE_XMLFILES): Add new files.
2012 * gdb/features/arc/v1-aux.c: New file.
2013 * gdb/features/arc/v1-aux.xml: Likewise.
2014 * gdb/features/arc/v1-core.c: Likewise.
2015 * gdb/features/arc/v1-core.xml: Likewise.
2016 * gdb/features/arc/v2-aux.c: Likewise.
2017 * gdb/features/arc/v2-aux.xml: Likewise.
2018 * gdb/features/arc/v2-core.c: Likewise.
2019 * gdb/features/arc/v2-core.xml: Likewise.
2020 * NEWS (Changes since GDB 9): Announce obsolence of old feature names.
2021
3945d2d7
GM
20222020-08-25 Gaius Mulley <gaiusmod2@gmail.com>
2023 Andrew Burgess <andrew.burgess@embecosm.com>
2024
2025 PR m2/26372
fc5d6901 2026 * m2-exp.y (exp): Improve comment for non_empty_arglist case, add
3945d2d7
GM
2027 an assert. Remove single element array indexing pattern as the
2028 MULTI_SUBSCRIPT support will handle this case too.
2029
2677f2d3
SM
20302020-08-24 Simon Marchi <simon.marchi@polymtl.ca>
2031
2032 * value.h (valprint_check_validity): Move declaration from
2033 here...
2034 * valprint.h (valprint_check_validity): ... to here.
2035
c426fddb
SM
20362020-08-24 Simon Marchi <simon.marchi@efficios.com>
2037
2038 * debug.h: New file.
2039 * debug.c (debug_prefixed_vprintf): New function.
2040 * infrun.c (infrun_debug_printf_1): Use debug_prefixed_vprintf.
2041 * linux-nat.c (linux_nat_debug_printf_1): Likewise.
2042
1eb8556f
SM
20432020-08-24 Simon Marchi <simon.marchi@efficios.com>
2044
2045 * infrun.h (infrun_debug_printf_1): New function declaration.
2046 (infrun_debug_printf): New macro.
2047 * infrun.c (infrun_debug_printf_1): Use infrun_debug_printf
2048 throughout.
2049 (infrun_debug_printf): New function.
2050 * breakpoint.c (should_be_inserted): Use infrun_debug_printf.
2051 (handle_jit_event): Likewise.
2052
b8fff44e
MW
20532020-08-21 Mark Wielaard <mark@klomp.org>
2054
2055 * ada-lex.l: Extend register warnings diagnostics comment for g++.
2056
d19c3068
SM
20572020-08-22 Simon Marchi <simon.marchi@efficios.com>
2058
2059 * frame.c (enum class frame_id_status): New.
2060 (struct frame_info) <this_id::p>: Change type to frame_id_status.
2061 (fprintf_frame): Update.
2062 (compute_frame_id): Set frame id status to "computing" on entry.
2063 Set it back to "not_computed" on failure and to "computed" on
2064 success.
2065 (get_frame_id): Assert the frame id is not being computed.
2066 (create_sentinel_frame): Use frame_id_status::COMPUTED.
2067 (create_new_frame): Likewise.
2068 (frame_cleanup_after_sniffer): Update assert.
2069
b70e516e
SM
20702020-08-20 Simon Marchi <simon.marchi@polymtl.ca>
2071
2072 * regcache.c (pid_ptid_regcache_map): New type.
2073 (target_ptid_regcache_map): Remove.
2074 (target_pid_ptid_regcache_map): New type.
2075 (regcaches): Change type to target_pid_ptid_regcache_map.
2076 (get_thread_arch_aspace_regcache): Update.
2077 (regcache_thread_ptid_changed): Update, handle pid-like ptid
2078 case.
2079 (regcaches_size): Update.
2080 (regcache_count): Update.
2081 (registers_changed_ptid_target_pid_test): New.
2082 (_initialize_regcache): Register new test.
2083
cdd9148a
SM
20842020-08-20 Simon Marchi <simon.marchi@polymtl.ca>
2085
2086 * regcache.c (regcache_count): New.
2087 (struct regcache_test_data): New.
2088 (regcache_test_data_up): New.
2089 (populate_regcaches_for_test): New.
2090 (regcaches_test): Remove.
2091 (get_thread_arch_aspace_regcache_test): New.
2092 (registers_changed_ptid_all_test): New.
2093 (registers_changed_ptid_target_test): New.
2094 (registers_changed_ptid_target_ptid_test): New.
2095 (regcache_thread_ptid_changed): Remove regcache_count lambda.
2096 (_initialize_regcache): Register new tests.
2097
dd125343
SM
20982020-08-20 Simon Marchi <simon.marchi@polymtl.ca>
2099
2100 * regcache.c (test_get_thread_arch_aspace_regcache): Rename to...
2101 (get_thread_arch_aspace_regcache_and_check): ... this. Remove
2102 gdbarch and aspace parameter. Use current inferior's aspace.
2103 Validate regcache's arch value.
2104 (regcaches_test): Update.
2105
3ee93972
SM
21062020-08-20 Simon Marchi <simon.marchi@polymtl.ca>
2107
2108 * regcache.c (regcaches_test): Call registers_changed.
2109
33bf4c5c
TBA
21102020-08-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2111
2112 * infrun.c (process_event_stop_test): Fix typo "breapoint".
2113
c2fd7fae
AKS
21142020-08-19 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
2115
2116 * amd64-tdep.c (amd64_skip_prologue): Using symbol table
2117 to find the end of prologue for flang compiled binaries.
2118 * arm-tdep.c (arm_skip_prologue): Likewise.
2119 * i386-tdep.c (i386_skip_prologue): Likewise.
2120 * producer.c (producer_is_llvm): New function.
2121 (producer_parsing_tests): Added new tests for clang/flang.
2122 * producer.h (producer_is_llvm): New declaration.
2123
9327494e
SM
21242020-08-18 Simon Marchi <simon.marchi@efficios.com>
2125
2126 * linux-nat.c (linux_nat_debug_printf): New function.
2127 (linux_nat_debug_printf_1): New macro. Use throughout the file.
2128
d138725a
AM
21292020-08-18 Aaron Merey <amerey@redhat.com>
2130
2131 * Makefile.in (DEBUGINFOD_CFLAGS, DEBUGINFOD_LIBS): New variables.
2132 (INTERNAL_CFLAGS_BASE): Add DEBUGINFOD_CFLAGS.
2133 (CLIBS): Add DEBUGINFOD_LIBS.
2134
f9b11e6b
ST
21352020-08-17 Sergei Trofimovich <siarheit@google.com>
2136
2137 * ia64-linux-nat.c: Include "gdbarch.h" to declare used
2138 'gdbarch_num_regs'.
2139
3ae7ab99
TT
21402020-08-17 Tom Tromey <tromey@adacore.com>
2141
2142 * ada-varobj.c (ada_varobj_decode_var): Handle case where
2143 ada_get_decoded_value returns NULL.
2144
b017825f
TT
21452020-08-17 Tom Tromey <tromey@adacore.com>
2146
2147 * python/py-inferior.c (infpy_search_memory): Use
2148 gdb_py_object_from_ulongest.
2149 * python/py-infevents.c (create_inferior_call_event_object)
2150 (create_memory_changed_event_object): Use
2151 gdb_py_object_from_ulongest.
2152 * python/py-linetable.c (ltpy_entry_get_pc): Use
2153 gdb_py_object_from_ulongest.
2154
7635cf79
SM
21552020-08-17 Simon Marchi <simon.marchi@polymtl.ca>
2156
2157 * loc.c (class symbol_needs_eval_context): Fix indentation.
2158
f54be24b
SM
21592020-08-17 Simon Marchi <simon.marchi@polymtl.ca>
2160
2161 * dwarf2/loc.c (dwarf2_loc_desc_get_symbol_read_needs): Use
2162 bool.
2163
53d5a2a5
TV
21642020-08-17 Tom de Vries <tdevries@suse.de>
2165
2166 PR gdb/26393
2167 * gdbtypes.c (dump_dynamic_prop): New function.
2168 (recursive_dump_type): Use dump_dynamic_prop for TYPE_CODE_RANGE.
2169
547ce8f0
TV
21702020-08-15 Tom de Vries <tdevries@suse.de>
2171
2172 PR backtrace/26390
2173 * stack.c (print_frame_args): Temporarily set the selected
2174 frame to FRAME while printing the frame's arguments.
2175
6ea815e7
PFC
21762020-08-14 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
2177
2178 PR breakpoints/26385
2179 * ppc-linux-nat.c (ppc_linux_nat_target::low_prepare_to_resume):
2180 Always clear watchpoint with PTRACE_SET_DEBUGREG.
2181
6e562fa3
PFC
21822020-08-14 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
2183
2184 * ppc-linux-nat.c (ppc_linux_dreg_interface::detect)
2185 (ppc_linux_nat_target::low_prepare_to_resume): Use ptrace () < 0
2186 and >= to check return value instead of == -1 and != -1.
2187
d369b608
SM
21882020-08-14 Simon Marchi <simon.marchi@polymtl.ca>
2189
2190 * utils.h (class gdb_argv) <as_array_view>: New method.
2191 * utils.c (gdb_argv_as_array_view_test): New.
2192 (_initialize_utils): Register selftest.
2193 * maint.c (maintenance_selftest): Use the new method.
2194
b31488a3
KR
21952020-08-13 Kamil Rytarowski <n54@gmx.com>
2196
2197 * target.h (supports_dumpcore, dumpcore): New
2198 function declarations.
2199 * target.c (supports_dumpcore, dumpcore): New
2200 functions.
2201 * target-delegates.c: Rebuild.
2202 * gcore.c (gcore_command): Use target_supports_dumpcore ()
2203 and target_dumpcore ().
2204
002a3166
AM
22052020-08-13 Aaron Merey <amerey@redhat.com>
2206
2207 * debuginfod-support.c: Replace global variables with user_data.
2208
ece5bc8a
SM
22092020-08-13 Simon Marchi <simon.marchi@polymtl.ca>
2210
2211 * maint.c (maintenance_selftest): Split args and pass array_view
2212 to run_tests.
2213
6d8a0a5e
LM
22142020-08-12 Luis Machado <luis.machado@linaro.org>
2215
2216 * value.c (check_type_length_before_alloc): Use ULONGEST to store a
2217 type's length.
2218 Use %s and pulongest to print the length.
2219
7cf663a9
PA
22202020-08-12 Pedro Alves <palves@redhat.com>
2221
2222 * NEWS: Move "Multi-target debugging support" item to the
2223 "Changes since GDB 9" section.
2224
27c7b875
PA
22252020-08-12 Pedro Alves <palves@redhat.com>
2226
2227 PR gdb/26336
2228 * progspace.c (program_space::remove_objfile): Invalidate the
2229 frame cache.
2230
1796a2a1
TV
22312020-08-11 Tom de Vries <tdevries@suse.de>
2232
2233 * MAINTAINERS: Mark ms1 as deleted.
2234
f8e3fe0d
LM
22352020-08-10 Luis Machado <luis.machado@linaro.org>
2236
2237 PR gdb/26310
2238
2239 * aarch64-tdep.c (aarch64_analyze_prologue): Track use of SP/FP and
2240 act accordingly.
2241 (aarch64_analyze_prologue_test): Add more unit tests to exercise
2242 movz/str/stur/stp skipping behavior.
2243
cc308722
LM
22442020-08-10 Luis Machado <luis.machado@linaro.org>
2245
2246 * nat/aarch64-sve-linux-sigcontext.h (SVE_PT_REGS_OFFSET): Use
2247 struct user_sve_header instead of struct sve_context.
2248
041d9819
SM
22492020-08-09 Simon Marchi <simon.marchi@polymtl.ca>
2250
2251 * read.h (dwarf2_fetch_die_loc_sect_off,
2252 dwarf2_fetch_die_loc_cu_off): Replace function pointer +
2253 `void *` parameter with function_view.
2254 * read.c (dwarf2_fetch_die_loc_sect_off,
2255 dwarf2_fetch_die_loc_cu_off): Likewise.
2256 * loc.c (get_frame_pc_for_per_cu_dwarf_call): Remove.
2257 (per_cu_dwarf_call): Adjust.
2258 (get_frame_address_in_block_wrapper): Remove.
2259 (indirect_synthetic_pointer): Adjust.
2260 (get_ax_pc): Remove.
2261 (dwarf2_compile_expr_to_ax): Adjust.
2262
38f8aa06
TV
22632020-08-08 Tom de Vries <tdevries@suse.de>
2264
2265 PR build/26344
2266 * arch/riscv.c (riscv_lookup_target_description): Use an explicit
2267 constructor.
2268 * regcache.c (get_thread_arch_aspace_regcache): Same.
2269
a52b3ae2
TT
22702020-08-07 Tom Tromey <tromey@adacore.com>
2271
2272 * ravenscar-thread.c
2273 (ravenscar_thread_target::set_base_thread_from_ravenscar_task):
2274 New method.
2275 (ravenscar_thread_target::wait): Check
2276 runtime_initialized.
2277 (ravenscar_thread_target::prepare_to_store)
2278 (ravenscar_thread_target::stopped_by_sw_breakpoint)
2279 (ravenscar_thread_target::stopped_by_hw_breakpoint)
2280 (ravenscar_thread_target::stopped_by_watchpoint)
2281 (ravenscar_thread_target::stopped_data_address)
2282 (ravenscar_thread_target::core_of_thread): Use
2283 scoped_restore_current_thread and
2284 set_base_thread_from_ravenscar_task.
2285
0e29517d
TT
22862020-08-07 Tom Tromey <tromey@adacore.com>
2287
2288 * ravenscar-thread.c (update_thread_list): Set inferior_ptid.
2289
592f9bd7
TT
22902020-08-07 Tom Tromey <tromey@adacore.com>
2291
2292 * ravenscar-thread.c (ravenscar_thread_target::wait): Call
2293 update_inferior_ptid before update_thread_list.
2294 (temporarily_change_regcache_ptid): New class.
2295 (ravenscar_thread_target::fetch_registers)
2296 (ravenscar_thread_target::store_registers)
2297 (ravenscar_thread_target::prepare_to_store): Use base thread when
2298 forwarding operation.
2299
39e2018a
TT
23002020-08-07 Tom Tromey <tromey@adacore.com>
2301
2302 * ravenscar-thread.c (ravenscar_thread_target::resume): Handle
2303 "is_pid" case.
2304
2080266b
TT
23052020-08-07 Tom Tromey <tromey@adacore.com>
2306
2307 * ravenscar-thread.c (xfer_partial, enable_btrace, add_thread):
2308 New methods.
2309 (ravenscar_thread_target::get_thread_base_cpu): Check m_cpu_map
2310 first.
2311 (ravenscar_thread_target::add_thread): Rename from
2312 ravenscar_add_thread.
2313 (ravenscar_thread_target::update_thread_list): Use a lambda.
2314 (ravenscar_thread_target::xfer_partial): New method.
2315
78c02f21
TT
23162020-08-07 Tom Tromey <tromey@adacore.com>
2317
2318 * ada-lang.h (ada_task_list_iterator_ftype): Now a
2319 gdb::function_view.
2320 (iterate_over_live_ada_tasks): Change type of argument.
2321 * ada-tasks.c (iterate_over_live_ada_tasks): Change type
2322 of argument.
2323
d5d833af
TT
23242020-08-07 Tom Tromey <tromey@adacore.com>
2325
2326 * ravenscar-thread.c (ravenscar_thread_target) <extra_thread_info>:
2327 Remove.
2328 (ravenscar_thread_target::extra_thread_info): Remove.
2329 (ravenscar_thread_target::pid_to_str): Mention Ravenscar in result;
2330 defer to target beneath for non-Ravenscar threads.
2331
a8ac85bb
TT
23322020-08-07 Tom Tromey <tromey@adacore.com>
2333
2334 * ravenscar-thread.c (ravenscar_thread_target) <get_base_cpu,
2335 get_base_thread_from_ravenscar_task>: Now methods.
2336 <m_cpu_map>: New member.
2337 (ravenscar_thread_target::get_thread_base_cpu): Rename from
2338 ravenscar_get_thread_base_cpu. Check m_cpu_map.
2339 (ravenscar_thread_target::task_is_currently_active): Update.
2340 (ravenscar_thread_target::get_base_thread_from_ravenscar_task):
2341 Now a method.
2342 (ravenscar_thread_target::add_active_thread): Put initial thread
2343 into the m_cpu_map.
2344
550ab58d
TT
23452020-08-07 Tom Tromey <tromey@adacore.com>
2346
2347 * ravenscar-thread.c (ravenscar_thread_target::wait): Return
2348 event_ptid.
2349
e9546579
TT
23502020-08-07 Tom Tromey <tromey@adacore.com>
2351
2352 * ravenscar-thread.c (ravenscar_thread_target::wait): Check
2353 runtime_initialized.
2354
3d4470e5
TT
23552020-08-07 Tom Tromey <tromey@adacore.com>
2356
2357 * ravenscar-thread.c (ravenscar_thread_target): Don't call
2358 add_active_thread.
2359 (ravenscar_thread_target::add_active_thread): Now public.
2360 (ravenscar_inferior_created): Call add_active_thread after pushing
2361 the target.
2362
888bdb2b
SM
23632020-08-07 Simon Marchi <simon.marchi@polymtl.ca>
2364
2365 * regcache.c (ptid_regcache_map): New type.
2366 (target_ptid_regcache_map): New type.
2367 (regcaches): Change type to target_ptid_regcache_map.
2368 (get_thread_arch_aspace_regcache): Update to regcaches' new
2369 type.
2370 (regcache_thread_ptid_changed): Likewise.
2371 (registers_changed_ptid): Likewise.
2372 (regcaches_size): Likewise.
2373 (regcaches_test): Update.
2374 (regcache_thread_ptid_changed): Update.
2375 * regcache.h (regcache_up): New type.
2376 * gdbsupport/ptid.h (hash_ptid): New struct.
2377
b161a60d
SM
23782020-08-07 Simon Marchi <simon.marchi@efficios.com>
2379
2380 * observable.h (thread_ptid_changed): Add parameter
2381 `process_stratum_target *`.
2382 * infrun.c (infrun_thread_ptid_changed): Add parameter
2383 `process_stratum_target *` and use it.
2384 (selftests): New namespace.
2385 (infrun_thread_ptid_changed): New function.
2386 (_initialize_infrun): Register selftest.
2387 * regcache.c (regcache_thread_ptid_changed): Add parameter
2388 `process_stratum_target *` and use it.
2389 (regcache_thread_ptid_changed): New function.
2390 (_initialize_regcache): Register selftest.
2391 * thread.c (thread_change_ptid): Pass target to
2392 thread_ptid_changed observable.
2393
d2854d8d
CT
23942020-08-06 Caroline Tice <cmtice@google.com>
2395
fe4c3d43
SM
2396 * dwarf2/read.c (struct dwo_file): Update comment on 'sections' field.
2397 (struct dwp_sections): Update field comments. Add loclists and
2398 rnglists fields.
2399 (struct virtual_v2_dwo_sections): Rename struct to
2400 'virtual_v2_or_v5_dwo_sections'; update comments at top of struct; add
2401 size & offset fields for loclists and rnglists.
2402 (struct dwp_hash_table): Add a 'v5' struct field to the union section.
2403 (create_debug_type_hash_table): Add 'DW_UT_split_type' to the check for
2404 skipping dummy type units.
2405 (create_dwp_hash_table): Update the large comment above the function to
2406 discuss Version 5 DWP files as well, with references. Update all the
2407 version checks in the function to check for version 5 as well. Add new
2408 section at the end to create dwp hash table for version 5.
2409 (create_dwp_v2_section): Rename function to
2410 'create_dwp_v2_or_v5_section'. Update function comment appropriately.
2411 Add V5 to error message text.
2412 (create_dwo_unit_in_dwp_v2): Change calls to create_dwp_v2_section
2413 into calls to create_dwp_v2_or_v5_section.
2414 (create_dwo_unit_in_dwp_v5): New function.
2415 (lookup_dwo_unit_in_dwp): Update conditional statement to explicitly
2416 check for version2; add else clause to handle version 5.
2417 (open_and_init_dwo_file): Add code to check dwarf version & only call
2418 create_debug_types_hash_table (with sections.types) if version is not 5;
2419 else call create_debug_type_hash_table, with sections.info.
2420 (dwarf2_locate_v2_dwp_sections): Update function comment to mention
2421 version 5.
2422 (dwarf2_locate_v5_dwp_sections): New function.
2423 (open_and_init_dwp_file): Add else-if clause for version 5 to call
2424 bfd_map_over_sections with dwarf2_locate_v5_dwp_sections.
d2854d8d 2425
159ed7d9
SM
24262020-08-06 Simon Marchi <simon.marchi@efficios.com>
2427
2428 * regcache.h (class regcache): Remove friend
2429 registers_changed_ptid.
2430 <regcache_thread_ptid_changed>: Remove.
2431 <regcaches>: Remove.
2432 * regcache.c (regcache::regcaches): Rename to...
2433 (regcaches): ... this. Make static.
2434 (get_thread_arch_aspace_regcache): Update.
2435 (regcache::regcache_thread_ptid_changed): Rename to...
2436 (regcache_thread_ptid_changed): ... this. Update.
2437 (class regcache_access): Remove.
2438 (regcaches_test): Update.
2439 (_initialize_regcache): Update.
2440 * sparc64-tdep.c, dwarf2/index-write.c, record-btrace.c: Include
2441 <forward_list>.
2442
174981ae
SM
24432020-08-06 Simon Marchi <simon.marchi@efficios.com>
2444
2445 * regcache.h (class regcache) <current_regcache>: Rename to...
2446 <regcaches>: ... this. Move doc here.
2447 * regcache.c (regcache::current_regcache) Rename to...
2448 (regcache::regcaches): ... this. Move doc to header.
2449 (get_thread_arch_aspace_regcache): Update.
2450 (regcache::regcache_thread_ptid_changed): Update.
2451 (registers_changed_ptid): Update.
2452 (class regcache_access) <current_regcache_size>: Rename to...
2453 <regcaches_size>: ... this.
2454 (current_regcache_test): Rename to...
2455 (regcaches_test): ... this.
2456 (_initialize_regcache): Update.
2457
ed908db6
VC
24582020-08-06 Victor Collod <vcollod@nvidia.com>
2459
2460 * amd64-tdep.c (amd64_analyze_prologue): Fix incorrect comment.
2461
b5582ab7
KB
24622020-08-05 Kevin Buettner <kevinb@redhat.com>
2463
2464 * corelow.c (core_target::build_file_mappings): Don't output
2465 null pathname in warning.
2466
ea946b86
SM
24672020-08-05 Simon Marchi <simon.marchi@polymtl.ca>
2468
2469 * gdb.dwarf2/clztest.exp, gdb.dwarf2/dw2-common-block.exp,
2470 gdb.dwarf2/dw2-dup-frame.exp, gdb.dwarf2/dw2-reg-undefined.exp,
2471 gdb.dwarf2/dw2-single-line-discriminators.exp,
2472 dw2-undefined-ret-addr.exp: Pass nopie to compilation options.
2473
57d02173
TT
24742020-08-05 Tom Tromey <tromey@adacore.com>
2475
2476 PR rust/26197:
2477 * dwarf2/read.c (alloc_rust_variant): Handle univariant case.
2478 (quirk_rust_enum): Call alloc_rust_variant for univariant case.
2479 Fix off-by-one and type size errors in ordinary case.
2480
5555c86d
TV
24812020-08-05 Tom de Vries <tdevries@suse.de>
2482
2483 * gdbtypes.c (type_not_allocated, type_not_associated): Use
2484 "prop->const_val () == 0" instead of "prop->const_val () != 0".
2485
97916bfe
SM
24862020-08-04 Simon Marchi <simon.marchi@efficios.com>
2487
2488 * frame.h (frame_id_p): Return bool.
2489 (frame_id_artificial_p): Return bool.
2490 (frame_id_eq): Return bool.
2491 (has_stack_frames): Return bool.
2492 (get_selected_frame): Fix typo in comment.
2493 (get_frame_pc_if_available): Return bool.
2494 (get_frame_address_in_block_if_available): Return bool.
2495 (get_frame_func_if_available): Return bool.
2496 (read_frame_register_unsigned): Return bool.
2497 (get_frame_register_bytes): Return bool.
2498 (safe_frame_unwind_memory): Return bool.
2499 (deprecated_frame_register_read): Return bool.
2500 (frame_unwinder_is): Return bool.
2501 * frame.c (struct frame_info) <prev_arch::p>: Change type to
2502 bool.
2503 <this_id::p>: Likewise.
2504 <prev_p>: Likewise.
2505 (frame_stash_add): Return bool.
2506 (get_frame_id): Use bool.
2507 (frame_id_build_special) Use bool.
2508 (frame_id_build_unavailable_stack): Use bool.
2509 (frame_id_build): Use bool.
2510 (frame_id_p): Return bool, use true/false instead of 1/0.
2511 (frame_id_artificial_p): Likewise.
2512 (frame_id_eq): Likewise.
2513 (frame_id_inner): Likewise.
2514 (get_frame_func_if_available): Likewise.
2515 (read_frame_register_unsigned): Likewise.
2516 (deprecated_frame_register_read): Likewise.
2517 (get_frame_register_bytes): Likewise.
2518 (has_stack_frames): Likewise.
2519 (inside_main_func): Likewise.
2520 (inside_entry_func): Likewise.
2521 (get_frame_pc_if_available): Likewise.
2522 (get_frame_address_in_block_if_available): Likewise.
2523 (frame_unwinder_is): Likewise.
2524 (safe_frame_unwind_memory): Likewise.
2525 (frame_unwind_arch): Likewise.
2526
fedfee88
SM
25272020-08-04 Simon Marchi <simon.marchi@efficios.com>
2528
2529 * frame.c (frame_info) <prev_func> <p>: Rename to status, change
2530 type to cached_copy_status.
2531 (fprintf_frame): Adjust.
2532 (get_frame_func_if_available): Adjust.
2533 (frame_cleanup_after_sniffer): Adjust.
2534
6cfa9b59
MW
25352020-08-04 Mark Wielaard <mark@klomp.org>
2536
2537 * MAINTAINERS (Write After Approval): Update email address.
2538
66d6346b
SM
25392020-08-04 Simon Marchi <simon.marchi@polymtl.ca>
2540
2541 * gdbtypes.h (TYPE_DYN_PROP_ADDR): Remove, replace uses with
2542 dynamic_prop::const_val.
2543
8a6d5e35
SM
25442020-08-04 Simon Marchi <simon.marchi@polymtl.ca>
2545
2546 * gdbtypes.h (TYPE_DYN_PROP_KIND): Remove, replace uses with
2547 dynamic_prop::kind.
2548
51d6067d
SM
25492020-08-04 Simon Marchi <simon.marchi@polymtl.ca>
2550
2551 * gdbtypes.h (TYPE_DYN_PROP_BATON): Remove.
2552
b26e2ae7
JM
25532020-08-04 Jose E. Marchesi <jose.marchesi@oracle.com>
2554
2555 * configure.tgt: Set gdb_sim for bpf-*-* targets.
2556
39791af2
JM
25572020-08-04 Weimin Pan <weimin.pan@oracle.com>
2558 Jose E. Marchesi <jose.marchesi@oracle.com>
2559
2560 * configure.tgt: Add entry for bpf-*-*.
2561 * Makefile.in (ALL_TARGET_OBS): Add bpf-tdep.o
2562 (ALLDEPFILES): Add bpf-tdep.c.
2563 * bpf-tdep.c: New file.
2564 * MAINTAINERS: Add bpf target and maintainer.
2565 * NEWS: Mention the support for the new target.
2566
521894aa
TV
25672020-08-04 Tom de Vries <tdevries@suse.de>
2568
2569 PR symtab/23270
2570 * dwarf2/read.c (find_partial_die): Change internal error into Dwarf
2571 Error.
2572
5d6356e9
JB
25732020-08-03 John Baldwin <jhb@FreeBSD.org>
2574
2575 * syscalls/freebsd.xml: Regenerate.
2576
0cf82b81
JB
25772020-08-03 John Baldwin <jhb@FreeBSD.org>
2578
2579 * syscalls/update-freebsd.sh: Fix usage and year range.
2580
8f34b746
TV
25812020-08-03 Tom de Vries <tdevries@suse.de>
2582
2583 PR symtab/26333
2584 * dwarf2/read.c (dwarf_decode_lines_1): Ignore
2585 DW_LNE_lo_user/DW_LNE_hi_user range.
2586
5e500d33
SM
25872020-07-30 Simon Marchi <simon.marchi@polymtl.ca>
2588
2589 PR ada/26318
2590 * ada-lang.c (ada_modulus): Return 0 if property is not of const
2591 kind.
2592
78319c15
TBA
25932020-07-30 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2594
2595 * breakpoint.c (set_breakpoint_condition): Do minor refactoring.
2596
4c55e970
TBA
25972020-07-30 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2598
2599 * breakpoint.c (set_breakpoint_condition): Update the condition
2600 expressions after checking that the input condition string parses
2601 successfully and does not contain junk at the end.
2602
1e620590
TBA
26032020-07-30 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2604
2605 * breakpoint.c (set_breakpoint_condition): Update the
2606 condition string after parsing the new condition successfully.
2607
c8693053
RO
26082020-07-30 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
2609
2610 * proc-api.c (_STRUCTURED_PROC): Don't define.
2611 * proc-events.c: Likewise.
2612 * proc-flags.c: Likewise.
2613 * proc-why.c: Likewise.
2614 * procfs.c: Likewise.
2615
2616 * Makefile.in (INTERNAL_CPPFLAGS): Add LARGEFILE_CPPFLAGS.
2617 * configure, config.in: Regenerate.
2618
5a99adb8
TV
26192020-07-30 Tom de Vries <tdevries@suse.de>
2620
2621 PR build/26320
2622 * ui-style.h (struct ui_file_style::color): Wrap m_value and
2623 m_red/m_green/m_blue in a union.
2624
8ba83e91
TV
26252020-07-29 Tom de Vries <tdevries@suse.de>
2626
2627 PR tdep/26280
2628 * s390-tdep.c (s390_displaced_step_fixup): Fix Wmaybe-uninitialized.
2629
f75a0693
AB
26302020-07-28 Tom Tromey <tromey@adacore.com>
2631
2632 PR symtab/26270:
2633 * symtab.h (find_pc_partial_function_sym): Declare.
2634 * cli/cli-cmds.c (disassemble_command): Use
2635 find_pc_partial_function_sym. Check asm_demangle.
2636 * blockframe.c (cache_pc_function_sym): New global.
2637 (cache_pc_function_name): Remove.
2638 (clear_pc_function_cache): Update.
2639 (find_pc_partial_function_sym): New function, from
2640 find_pc_partial_function.
2641 (find_pc_partial_function): Rewrite using
2642 find_pc_partial_function_sym.
2643
16f3242c
TT
26442020-07-28 Tom Tromey <tromey@adacore.com>
2645
2646 * cli/cli-cmds.c (_initialize_cli_cmds): Rearrange "disassemble"
2647 help. Add usage.
2648
4888741a
TT
26492020-07-28 Tom Tromey <tromey@adacore.com>
2650
2651 * dwarf2/expr.c (dwarf_expr_context::execute_stack_op)
2652 <DW_OP_GNU_variable_value>: Cast to address type.
2653
4d46f402
KR
26542020-07-28 Kamil Rytarowski <n54@gmx.com>
2655
2656 * nbsd-nat.h (nbsd_nat_target::xfer_partial): New declaration.
2657 * nbsd-nat.c (nbsd_nat_target::xfer_partial): New function.
2658 * nbsd-tdep.c (nbsd_gdbarch_data_handle, struct nbsd_gdbarch_data)
2659 (init_nbsd_gdbarch_data, get_nbsd_gdbarch_data)
2660 (nbsd_get_siginfo_type): New.
2661 (nbsd_init_abi): Install gdbarch "get_siginfo_type" method.
2662 (_initialize_nbsd_tdep): New.
2663
d70f978b
L
26642020-07-28 H.J. Lu <hongjiu.lu@intel.com>
2665
2666 PR binutils/26301
2667 * configure: Regenerated.
2668
377170fa
L
26692020-07-28 H.J. Lu <hongjiu.lu@intel.com>
2670
2671 PR binutils/26301
2672 * configure: Regenerated.
2673
43d5901d
AB
26742020-07-28 Andrew Burgess <andrew.burgess@embecosm.com>
2675
2676 * python/py-frame.c: Remove 'user-regs.h' include.
2677 (frapy_read_register): Rewrite to make use of
2678 gdbpy_parse_register_id.
2679 * python/py-registers.c (gdbpy_parse_register_id): New function,
2680 moved here from python/py-unwind.c. Updated the return type, and
2681 also accepts register descriptor objects.
2682 * python/py-unwind.c: Remove 'user-regs.h' include.
2683 (pyuw_parse_register_id): Moved to python/py-registers.c.
2684 (unwind_infopy_add_saved_register): Update to use
2685 gdbpy_parse_register_id.
2686 (pending_framepy_read_register): Likewise.
2687 * python/python-internal.h (gdbpy_parse_register_id): Declare.
2688
14fa8fb3
AB
26892020-07-28 Andrew Burgess <andrew.burgess@embecosm.com>
2690
2691 * python/py-registers.c: Add 'user-regs.h' include.
2692 (register_descriptor_iter_find): New function.
2693 (register_descriptor_iterator_object_methods): New static global
2694 methods array.
2695 (register_descriptor_iterator_object_type): Add pointer to methods
2696 array.
2697
ddce1758
JB
26982020-07-27 John Baldwin <jhb@FreeBSD.org>
2699
2700 * fbsd-nat.h: Include <osreldate.h>. Define USE_SIGTRAP_SIGINFO
2701 for all architectures on FreeBSD 11.3 and later.
2702
a4089f52
TT
27032020-07-27 Tom Tromey <tromey@adacore.com>
2704
2705 * gcore.h (load_corefile): Don't declare.
2706
95420d30
TV
27072020-07-27 Tom de Vries <tdevries@suse.de>
2708
2709 * configure.ac: Fix sys/sockets.h -> sys/socket.h typo.
2710 * config.in: Regenerate.
2711 * configure: Regenerate.
2712
05a6b8c2
EZ
27132020-07-26 Eli Zaretskii <eliz@gnu.org>
2714
2715 * configure.ac (AC_CHECK_HEADERS): Check for sys/socket.h and
2716 ws2tcpip.h. When checking whether socklen_t type is defined, use
2717 ws2tcpip.h if it is available and sys/socket.h isn't.
2718 * configure: Regenerate.
2719 * config.in: Regenerate.
2720
e79eb02f
AB
27212020-07-25 Andrew Burgess <andrew.burgess@embecosm.com>
2722
2723 PR fortran/23051
2724 PR fortran/26139
2725 * valops.c (value_ind): Pass address to
2726 readjust_indirect_value_type.
2727 * value.c (readjust_indirect_value_type): Make parameter
2728 non-const, and add extra address parameter. Resolve original type
2729 before using it.
2730 * value.h (readjust_indirect_value_type): Update function
2731 signature and comment.
2732
876518dd
TV
27332020-07-25 Tom de Vries <tdevries@suse.de>
2734
2735 PR symtab/26243
2736 * dwarf2/read.c (lnp_state_machine::record_line): Ignore zero line
2737 entries.
2738
f6720b1c
AM
27392020-07-24 Aaron Merey <amerey@redhat.com>
2740
2741 * Makefile.in: Replace LIBDEBUGINFOD with DEBUGINFOD_LIBS.
2742 * configure: Rebuild.
2743
513487e1
KB
27442020-07-23 Kevin Buettner <kevinb@redhat.com>
2745
2746 PR corefiles/26294
2747 * corelow.c (_initialize_corelow): Add period to help text
2748 for "maintenance print core-file-backed-mappings".
2749
e7bc9db8
PA
27502020-07-23 Pedro Alves <pedro@palves.net>
2751
2752 * frame-unwind.c (frame_unwind_try_unwinder): On exception, don't
2753 touch THIS_CACHE/THIS_FRAME if the frame cache was cleared
2754 meanwhile.
2755 * frame.c (frame_cache_generation, get_frame_cache_generation):
2756 New.
2757 (reinit_frame_cache): Increment FRAME_CACHE_GENERATION.
2758 (get_prev_frame_if_no_cycle): On exception, don't touch
2759 PREV_FRAME/THIS_FRAME if the frame cache was cleared meanwhile.
2760 * frame.h (get_frame_cache_generation): Declare.
2761
90fcc466
TV
27622020-07-23 Tom de Vries <tdevries@suse.de>
2763
2764 PR tui/26282
2765 * tui/tui-winsource.h (struct tui_source_windows::tui_source_windows):
2766 New default constructor.
2767
78344df7
AB
27682020-07-23 Andrew Burgess <andrew.burgess@embecosm.com>
2769
2770 * disasm.c (do_mixed_source_and_assembly_deprecated): Don't
2771 exclude non-statement entries.
2772
b089853a
KB
27732020-07-22 Kevin Buettner <kevinb@redhat.com>
2774
2775 * NEWS (New commands): Mention new command
2776 "maintenance print core-file-backed-mappings".
2777
09c2f5d4
KB
27782020-07-22 Kevin Buettner <kevinb@redhat.com>
2779
2780 * corelow.c (gdbcmd.h): Include.
2781 (core_target::info_proc_mappings): New method.
2782 (get_current_core_target): New function.
2783 (maintenance_print_core_file_backed_mappings): New function.
2784 (_initialize_corelow): Add core-file-backed-mappings to
2785 "maint print" commands.
2786
9c5ec5c2 27872020-07-22 Kevin Buettner <kevinb@redhat.com>
fe4c3d43 2788
9c5ec5c2
KB
2789 * linux-tdep.c (dump_note_entry_p): New function.
2790 (linux_dump_mapping_p_ftype): New typedef.
2791 (linux_find_memory_regions_full): Add new parameter,
2792 should_dump_mapping_p.
2793 (linux_find_memory_regions): Adjust call to
2794 linux_find_memory_regions_full.
2795 (linux_make_mappings_core_file_notes): Use dump_note_entry_p in
2796 call to linux_find_memory_regions_full.
2797
db082f59
KB
27982020-07-22 Kevin Buettner <kevinb@redhat.com>
2799
2800 * corelow.c (solist.h, unordered_map): Include.
2801 (class core_target): Add field m_core_file_mappings and
2802 method build_file_mappings.
2803 (core_target::core_target): Call build_file_mappings.
2804 (core_target::~core_target): Free memory associated with
2805 m_core_file_mappings.
2806 (core_target::build_file_mappings): New method.
2807 (core_target::xfer_partial): Use m_core_file_mappings
2808 for memory transfers.
2809 * linux-tdep.c (linux_read_core_file_mappings): New
2810 function.
2811 (linux_core_info_proc_mappings): Rewrite to use
2812 linux_read_core_file_mappings.
2813 (linux_init_abi): Register linux_read_core_file_mappings.
2814
7e183d27
KB
28152020-07-22 Kevin Buettner <kevinb@redhat.com>
2816
2817 * arch-utils.c (default_read_core_file_mappings): New function.
2818 * arch-utils.c (default_read_core_file_mappings): Declare.
2819 * gdbarch.sh (read_core_file_mappings): New gdbarch method.
2820 * gdbarch.h, gdbarch.c: Regenerate.
2821
2735d421
KB
28222020-07-22 Kevin Buettner <kevinb@redhat.com>
2823
2824 PR corefiles/25631
2825 * corelow.c (core_target:xfer_partial): Revise
2826 TARGET_OBJECT_MEMORY case to consider non-SEC_HAS_CONTENTS
2827 case after first checking the stratum beneath the core
2828 target.
2829 (has_all_memory): Return true.
2830 * target.c (raw_memory_xfer_partial): Revise comment
2831 regarding use of has_all_memory.
2832
e56cb451
KB
28332020-07-22 Kevin Buettner <kevinb@redhat.com>
2834
2835 * exec.h (section_table_xfer_memory): Revise declaration,
2836 replacing section name parameter with an optional callback
2837 predicate.
2838 * exec.c (section_table_xfer_memory): Likewise.
2839 * bfd-target.c, exec.c, target.c, corelow.c: Adjust all callers
2840 of section_table_xfer_memory.
2841
32fa152e
TT
28422020-07-22 Tom Tromey <tromey@adacore.com>
2843
2844 * mi/mi-cmd-stack.c (list_args_or_locals): Use
2845 lookup_symbol_search_name.
2846
a67a1c41
AB
28472020-07-22 Andrew Burgess <andrew.burgess@embecosm.com>
2848
2849 * python/py-registers.c (gdbpy_register_object_data_init): Remove
2850 redundant local variable.
2851 (gdbpy_get_register_descriptor): Extract descriptor vector as a
2852 reference, not pointer, update code accordingly.
2853
a7b4ff4f
SM
28542020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
2855 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2856
2857 * objfiles.h (struct objfile) <skip_jit_symbol_lookup>: New field.
2858 * jit.c (jit_breakpoint_re_set_internal): Use the
2859 `skip_jit_symbol_lookup` field.
2860
2340e834
SM
28612020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
2862 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2863
2864 * jit.c (jit_read_descriptor): Define the descriptor address once,
2865 use twice.
2866 (jit_breakpoint_deleted): Move the declaration of the loop variable
2867 `iter` into the loop header.
2868 (jit_breakpoint_re_set_internal): Move the declaration of the local
2869 variable `objf_data` to the first point of definition.
2870 (jit_event_handler): Move the declaration of local variables
2871 `code_entry`, `entry_addr`, and `objf` to their first point of use.
2872 Rename `objf` to `jited`.
2873
c1072906
SM
28742020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
2875
2876 * jit.h (struct jiter_objfile_data) <jiter_objfile_data, objfile>:
2877 Remove.
2878 * jit.c (get_jiter_objfile_data): Update.
2879
c8474dc3
TBA
28802020-07-22 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2881 Simon Marchi <simon.marchi@polymtl.ca>
2882
2883 * jit.c (struct jit_program_space_data): Remove.
2884 (jit_program_space_key): Remove.
2885 (jiter_objfile_data::~jiter_objfile_data): Remove program space
2886 stuff.
2887 (get_jit_program_space_data): Remove.
2888 (jit_breakpoint_deleted): Iterate on all of the program space's
2889 objfiles.
2890 (jit_inferior_init): Likewise.
2891 (jit_breakpoint_re_set_internal): Likewise. Also change return
2892 type to void.
2893 (jit_breakpoint_re_set): Pass current_program_space to
2894 jit_breakpoint_re_set_internal.
2895
77208eb7
SM
28962020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
2897
2898 * jit.h (struct jiter_objfile_data) <cached_code_address,
2899 jit_breakpoint>: Move to here from ...
2900 * jit.c (jit_program_space_data): ... here.
2901 (jiter_objfile_data::~jiter_objfile_data): Update.
2902 (jit_breakpoint_deleted): Update.
2903 (jit_breakpoint_re_set_internal): Update.
2904
8c1c720f
SM
29052020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
2906
2907 * jit.c (jiter_objfile_data::~jiter_objfile_data): Remove some
2908 checks.
2909 (jit_read_descriptor): Remove NULL check.
2910 (jit_event_handler): Add an assertion.
2911
0e74a041
SM
29122020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
2913
2914 * jit.h (struct jit_objfile_data): Split into...
2915 (struct jiter_objfile_data): ... this ...
2916 (struct jited_objfile_data): ... and this.
2917 * objfiles.h (struct objfile) <jit_data>: Remove.
2918 <jiter_data, jited_data>: New fields.
2919 * jit.c (jit_objfile_data::~jit_objfile_data): Rename to ...
2920 (jiter_objfile_data::~jiter_objfile_data): ... this.
2921 (get_jit_objfile_data): Rename to ...
2922 (get_jiter_objfile_data): ... this.
2923 (add_objfile_entry): Update.
2924 (jit_read_descriptor): Use get_jiter_objfile_data.
2925 (jit_find_objf_with_entry_addr): Use objfile's jited_data field.
2926 (jit_breakpoint_re_set_internal): Use get_jiter_objfile_data.
2927 (jit_inferior_exit_hook): Use objfile's jited_data field.
2928
238b5c9f
SM
29292020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
2930
2931 * jit.h: Forward-declare `struct minimal_symbol`.
2932 (struct jit_objfile_data): Migrate to here from jit.c; also add a
2933 constructor, destructor, and an objfile* field.
2934 * jit.c (jit_objfile_data): Remove.
2935 (struct jit_objfile_data): Migrate from here to jit.h.
2936 (jit_objfile_data::~jit_objfile_data): New destructor
2937 implementation with code moved from free_objfile_data.
2938 (free_objfile_data): Delete.
2939 (get_jit_objfile_data): Update to use the jit_data field of objfile.
2940 (jit_find_objf_with_entry_addr): Ditto.
2941 (jit_inferior_exit_hook): Ditto.
2942 (_initialize_jit): Remove the call to
2943 register_objfile_data_with_cleanup.
2944 * objfiles.h (struct objfile) <jit_data>: New field.
2945
fe053b9e
TBA
29462020-07-22 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2947
2948 * jit.h: Forward-declare `struct objfile`.
2949 (jit_event_handler): Add a second parameter, the JITer objfile.
2950 * jit.c (jit_read_descriptor): Change the signature to take the
2951 JITer objfile as an argument instead of the jit_program_space_data.
2952 (jit_inferior_init): Update the call to jit_read_descriptor.
2953 (jit_event_handler): Use the new JITer objfile argument when calling
2954 jit_read_descriptor.
2955 * breakpoint.c (handle_jit_event): Update the call to
2956 jit_event_handler to pass the JITer objfile.
2957
4cec0c66
JB
29582020-07-21 John Baldwin <jhb@FreeBSD.org>
2959
2960 * gdbarch.c: Regenerate.
2961 * gdbarch.h: Regenerate.
2962 * gdbarch.sh (handle_segmentation_fault): Remove method.
2963 * infrun.c (handle_segmentation_fault): Remove.
2964 (print_signal_received_reason): Remove call to
2965 handle_segmentation_fault.
2966
0e42f66a
JB
29672020-07-21 John Baldwin <jhb@FreeBSD.org>
2968
2969 * sparc64-linux-tdep.c (sparc64_linux_handle_segmentation_fault):
2970 Rename to sparc64_linux_report_signal_info and add siggnal
2971 argument.
2972 (sparc64_linux_init_abi): Use sparc64_linux_report_signal_info
2973 instead of sparc64_linux_handle_segmentation_fault.
2974
77bdfeb2
JB
29752020-07-21 John Baldwin <jhb@FreeBSD.org>
2976
2977 * amd64-linux-tdep.c (amd64_linux_init_abi_common): Use
2978 i386_linux_report_signal_info instead of
2979 i386_linux_handle_segmentation_fault.
2980 * i386-linux-tdep.c (i386_linux_handle_segmentation_fault): Rename
2981 to i386_linux_report_signal_info and add siggnal argument.
2982 (i386_linux_init_abi): Use i386_linux_report_signal_info instead
2983 of i386_linux_handle_segmentation_fault.
2984 * i386-linux-tdep.h (i386_linux_handle_segmentation_fault): Rename
2985 to i386_linux_report_signal_info and add siggnal argument.
2986
ad97bfc5
JB
29872020-07-21 John Baldwin <jhb@FreeBSD.org>
2988
2989 * corelow.c (core_target_open): Invoke gdbarch report_signal_info
2990 hook if present.
2991
272bb05c
JB
29922020-07-21 John Baldwin <jhb@FreeBSD.org>
2993
2994 * gdbarch.c: Regenerate.
2995 * gdbarch.h: Regenerate.
2996 * gdbarch.sh (report_signal_info): New method.
2997 * infrun.c (print_signal_received_reason): Invoke gdbarch
2998 report_signal_info hook if present.
2999
baf8791e
AB
30002020-07-21 Andrew Burgess <andrew.burgess@embecosm.com>
3001
3002 * python/py-registers.c : Add 'unordered_map' include.
3003 (gdbpy_new_reggroup): Renamed to...
3004 (gdbpy_get_reggroup): ...this. Update to only create register
3005 group descriptors when needed.
3006 (gdbpy_reggroup_iter_next): Update.
3007
f7306dac
AB
30082020-07-21 Andrew Burgess <andrew.burgess@embecosm.com>
3009
3010 * python/py-registers.c (gdbpy_register_object_data): New static
3011 global.
3012 (gdbpy_register_object_data_init): New function.
3013 (gdbpy_new_register_descriptor): Renamed to...
3014 (gdbpy_get_register_descriptor): ...this, and update to reuse
3015 existing register descriptors where possible.
3016 (gdbpy_register_descriptor_iter_next): Update.
3017 (gdbpy_initialize_registers): Register new gdbarch data.
3018
05c309a8
SM
30192020-07-21 Simon Marchi <simon.marchi@efficios.com>
3020
3021 * linux-nat.c (stopped_pids): Make static.
3022
d1fd641e
SM
30232020-07-21 Simon Marchi <simon.marchi@polymtl.ca>
3024
3025 PR ada/26235
3026 * gdbtypes.c (ada_discrete_type_low_bound,
3027 ada_discrete_type_high_bound): Handle undefined bounds.
3028
1de14d77
KR
30292020-07-21 Kamil Rytarowski <n54@gmx.com>
3030
3031 * nbsd-nat.h (nbsd_nat_target::supports_multi_process): New
3032 declaration.
3033 * nbsd-nat.c (nbsd_nat_target::supports_multi_process): New
3034 function.
3035
ed810cc7
JB
30362020-07-20 John Baldwin <jhb@FreeBSD.org>
3037
3038 * fbsd-tdep.c (fbsd_skip_solib_resolver): New function.
3039 (fbsd_init_abi): Install gdbarch "skip_solib_resolver" method.
3040 * fbsd-tdep.h (fbsd_skip_solib_resolver): New prototype.
3041 * mips-fbsd-tdep.c (mips_fbsd_skip_solib_resolver): New function.
3042 (mips_fbsd_init_abi): Install gdbarch "skip_solib_resolver"
3043 method.
3044
ae5369e7
LC
30452020-07-20 Ludovic Courtès <ludo@gnu.org>
3046
3047 * guile/scm-math.c (vlscm_integer_fits_p): Use 'uintmax_t'
3048 and 'intmax_t' instead of 'scm_t_uintmax' and 'scm_t_intmax',
3049 which are deprecated in Guile 3.0.
3050 * configure.ac (try_guile_versions): Add "guile-3.0".
3051 * configure (try_guile_versions): Regenerate.
3052 * NEWS: Update entry.
3053
68cf161c
LC
30542020-07-20 Ludovic Courtès <ludo@gnu.org>
3055 Doug Evans <dje@google.com>
3056
3057 PR gdb/21104
3058 * guile/scm-ports.c (USING_GUILE_BEFORE_2_2): New macro.
3059 (ioscm_memory_port)[read_buf_size, write_buf_size]: Wrap in #if
3060 USING_GUILE_BEFORE_2_2.
3061 (stdio_port_desc, memory_port_desc) [!USING_GUILE_BEFORE_2_2]:
3062 Change type to 'scm_t_port_type *'.
3063 (natural_buffer_size) [!USING_GUILE_BEFORE_2_2]: New variable.
3064 (ioscm_open_port) [USING_GUILE_BEFORE_2_2]: Add 'stream'
3065 parameter and honor it. Update callers.
3066 (ioscm_open_port) [!USING_GUILE_BEFORE_2_2]: New function.
3067 (ioscm_read_from_port, ioscm_write) [!USING_GUILE_BEFORE_2_2]: New
3068 functions.
3069 (ioscm_fill_input, ioscm_input_waiting, ioscm_flush): Wrap in #if
3070 USING_GUILE_BEFORE_2_2.
3071 (ioscm_init_gdb_stdio_port) [!USING_GUILE_BEFORE_2_2]: Use
3072 'ioscm_read_from_port'. Call 'scm_set_port_read_wait_fd'.
3073 (ioscm_init_stdio_buffers) [!USING_GUILE_BEFORE_2_2]: New function.
3074 (gdbscm_stdio_port_p) [!USING_GUILE_BEFORE_2_2]: Use 'SCM_PORTP'
3075 and 'SCM_PORT_TYPE'.
3076 (gdbscm_memory_port_end_input, gdbscm_memory_port_seek)
3077 (ioscm_reinit_memory_port): Wrap in #if USING_GUILE_BEFORE_2_2.
3078 (gdbscm_memory_port_read, gdbscm_memory_port_write)
3079 (gdbscm_memory_port_seek, gdbscm_memory_port_close)
3080 [!USING_GUILE_BEFORE_2_2]: New functions.
3081 (gdbscm_memory_port_print): Remove use of 'SCM_PTOB_NAME'.
3082 (ioscm_init_memory_port_type) [!USING_GUILE_BEFORE_2_2]: Use
3083 'gdbscm_memory_port_read'.
3084 Wrap 'scm_set_port_end_input', 'scm_set_port_flush', and
3085 'scm_set_port_free' calls in #if USING_GUILE_BEFORE_2_2.
3086 (gdbscm_get_natural_buffer_sizes) [!USING_GUILE_BEFORE_2_2]: New
3087 function.
3088 (ioscm_init_memory_port): Remove.
3089 (ioscm_init_memory_port_stream): New function
3090 (ioscm_init_memory_port_buffers) [USING_GUILE_BEFORE_2_2]: New
3091 function.
3092 (gdbscm_memory_port_read_buffer_size) [!USING_GUILE_BEFORE_2_2]:
3093 Return scm_from_uint (0).
3094 (gdbscm_set_memory_port_read_buffer_size_x)
3095 [!USING_GUILE_BEFORE_2_2]: Call 'scm_setvbuf'.
3096 (gdbscm_memory_port_write_buffer_size) [!USING_GUILE_BEFORE_2_2]:
3097 Return scm_from_uint (0).
3098 (gdbscm_set_memory_port_write_buffer_size_x)
3099 [!USING_GUILE_BEFORE_2_2]: Call 'scm_setvbuf'.
3100 * configure.ac (try_guile_versions): Add "guile-2.2".
3101 * configure: Regenerate.
3102 * NEWS: Add entry.
3103
aee91db3
TT
31042020-07-18 Tom Tromey <tom@tromey.com>
3105
3106 * linux-nat.c (linux_multi_process): Remove.
3107 (linux_nat_target::supports_multi_process): Return true.
3108
0e267416
AB
31092020-07-17 Andrew Burgess <andrew.burgess@embecosm.com>
3110
3111 * arch/riscv.c (riscv_tdesc_cache): Change map type.
3112 (riscv_lookup_target_description): Return pointer out of
3113 unique_ptr.
3114 * target-descriptions.c (allocate_target_description): Add
3115 comment.
3116 (target_desc_deleter::operator()): Likewise.
3117 * target-descriptions.h (struct target_desc_deleter): Moved to
3118 gdbsupport/tdesc.h.
3119 (target_desc_up): Likewise.
3120
f80c8ec4
TT
31212020-07-17 Tom Tromey <tromey@adacore.com>
3122
3123 * linux-nat.c (linux_nat_target::supports_non_stop)
3124 (linux_nat_target::always_non_stop_p): Use "true".
3125 (linux_nat_target::supports_disable_randomization): Use "true" and
3126 "false".
3127
d0ce17d8
CT
31282020-07-16 Caroline Tice <cmtice@google.com>
3129
3130 * dwarf2/read.c (RNGLIST_HEADER_SIZE32) New constant definition.
3131 (RNGLIST_HEADER_SIZE64): New constant definition.
3132 (struct dwop_section_names): Add rnglists_dwo.
3133 (dwop_section_names): Add .debug_rnglists.dwo, .zdebug_rnglists.dwo.
3134 (struct loclist_header): Rename to 'loclists_rnglists_header'.
3135 (struct dwo_sections): Add rnglists field.
3136 (read_attribut_reprocess): Add tag parameter.
3137 (dwarf2_ranges_read): Add tag parameter & remove forward function decl.
3138 (cu_debug_rnglists_section): New function (decl & definition).
3139 (dwarf2_locate_dwo_sections): Add code to read rnglists_dwo section.
3140 (dwarf2_rnglists_process): Add a dwarf_tag parameter, for the kind of
3141 die whose range is being checked; get rnglist section from
3142 cu_debug_rnglists_section, to get from either objfile or dwo file as
3143 appropriate. Add cases for DW_RLE_base_addressx,
3144 DW_RLE_startx_length, DW_RLE_startx_endx. Also, update to only add
3145 the base address to DW_RLE_offset_pairs (not to all ranges), moving
3146 test inside if-condition and updating complaint message.
3147 (dwarf2_ranges_process): Add dwarf tag parameter and pass it to
3148 dwarf2_rnglists_process.
3149 (dwarf2_ranges_read): Add dwarf tag parameter and pass it to
3150 dwarf2_ranges_process.
3151 (dwarf2_get_pc_bounds): Check for DW_FORM_rnglistx when setting
3152 need_ranges_base and update comment appropriately. Also pass die tag
3153 to dwarf2_ranges_read.
3154 (dwarf2_record_block_ranges): Check for DW_FORM_rnglistx when setting
3155 need_ranges_base and update comment appropriately. Also pass die tag
3156 to dwarf2_ranges_process.
3157 (read_full_die_1): Add code to read DW_AT_rnglists_base and assign to
3158 cu->ranges_base. Also pass die tag to read_attribute_reprocess.
3159 (partial_die_info::read): Check for DW_FORM_rnglistx when setting
3160 need_ranges_base and update comment appropriately. Also pass die tag
3161 to read_attribute_reprocess and dwarf2_ranges_read.
3162 (read_loclist_header): Rename function to read_loclists_rnglists_header,
3163 and update function comment appropriately.
3164 (read_loclist_index): Call read_loclists_rnglists_header instead of
3165 read_loclist_header.
3166 (read_rnglist_index): New function.
3167 (read_attribute_reprocess): Add tag parameter. Add code for
3168 DW_FORM_rnglistx, passing tag to read_rnglist_index.
3169 (read_attribute_value): Mark DW_FORM_rnglistx with need_reprocess.
3170
3dcc261c
AB
31712020-07-15 Andrew Burgess <andrew.burgess@embecosm.com>
3172
3173 * f-typeprint.c (f_type_print_base): Allow for dynamic types not
3174 being resolved.
3175
ccb9eba6
AB
31762020-07-14 Andrew Burgess <andrew.burgess@embecosm.com>
3177
3178 * arch-utils.c (show_architecture): Update formatting of messages.
3179
cf88be68
SM
31802020-07-12 Simon Marchi <simon.marchi@efficios.com>
3181
3182 * gdbtypes.h (struct type) <bounds>: Handle array and string
3183 types.
3184 * ada-lang.c (assign_aggregate): Use type::bounds on
3185 array/string type.
3186 * c-typeprint.c (c_type_print_varspec_suffix): Likewise.
3187 * c-varobj.c (c_number_of_children): Likewise.
3188 (c_describe_child): Likewise.
3189 * eval.c (evaluate_subexp_for_sizeof): Likewise.
3190 * f-typeprint.c (f_type_print_varspec_suffix): Likewise.
3191 (f_type_print_base): Likewise.
3192 * f-valprint.c (f77_array_offset_tbl): Likewise.
3193 (f77_get_upperbound): Likewise.
3194 (f77_print_array_1): Likewise.
3195 * guile/scm-type.c (gdbscm_type_range): Likewise.
3196 * m2-typeprint.c (m2_array): Likewise.
3197 (m2_is_long_set_of_type): Likewise.
3198 * m2-valprint.c (get_long_set_bounds): Likewise.
3199 * p-typeprint.c (pascal_type_print_varspec_prefix): Likewise.
3200 * python/py-type.c (typy_range): Likewise.
3201 * rust-lang.c (rust_internal_print_type): Likewise.
3202 * type-stack.c (type_stack::follow_types): Likewise.
3203 * valarith.c (value_subscripted_rvalue): Likewise.
3204 * valops.c (value_cast): Likewise.
3205
509971ae
SM
32062020-07-12 Simon Marchi <simon.marchi@efficios.com>
3207
3208 * gdbtypes.c (TYPE_ARRAY_BIT_STRIDE): Remove. Update all
3209 callers to use the equivalent accessor methods.
3210
107406b7
SM
32112020-07-12 Simon Marchi <simon.marchi@efficios.com>
3212
3213 * gdbtypes.h (struct range_bounds) <bit_stride>: New method.
3214 (struct type) <bit_stride>: New method.
3215 (TYPE_BIT_STRIDE): Remove.
3216 * gdbtypes.c (update_static_array_size): Use type::bit_stride.
3217
bb789949
SM
32182020-07-12 Simon Marchi <simon.marchi@efficios.com>
3219
3220 * gdbtypes.h (TYPE_ARRAY_LOWER_BOUND_VALUE,
3221 TYPE_ARRAY_UPPER_BOUND_VALUE): Remove. Update all
3222 callers to use the equivalent accessor methods instead.
3223
39498edb
SM
32242020-07-12 Simon Marchi <simon.marchi@efficios.com>
3225
3226 * gdbtypes.h (TYPE_ARRAY_UPPER_BOUND_IS_UNDEFINED,
3227 TYPE_ARRAY_LOWER_BOUND_IS_UNDEFINED): Remove. Update all
3228 callers to use the equivalent accessor methods instead.
3229
3b606f38
SM
32302020-07-12 Simon Marchi <simon.marchi@efficios.com>
3231
3232 * gdbtypes.h (TYPE_LOW_BOUND_KIND,
3233 TYPE_HIGH_BOUND_KIND): Remove. Update all callers
3234 to use dynamic_prop::kind.
3235
064d9cb9
SM
32362020-07-12 Simon Marchi <simon.marchi@efficios.com>
3237
3238 * gdbtypes.h (TYPE_LOW_BOUND_UNDEFINED,
3239 TYPE_HIGH_BOUND_UNDEFINED): Remove. Update all callers
3240 to get the bound property's kind and check against
3241 PROP_UNDEFINED.
3242
5537ddd0
SM
32432020-07-12 Simon Marchi <simon.marchi@efficios.com>
3244
3245 * gdbtypes.h (TYPE_LOW_BOUND, TYPE_HIGH_BOUND): Remove. Update
3246 all callers to use type::range_bounds followed by
3247 dynamic_prop::{low,high}.
3248
8c2e4e06
SM
32492020-07-12 Simon Marchi <simon.marchi@polymtl.ca>
3250
3251 * gdbtypes.h (struct dynamic_prop) <kind, set_undefined,
3252 const_val, set_const_val, baton, set_locexpr, set_loclist,
3253 set_addr_offset, variant_parts, set_variant_parts,
3254 original_type, set_original_type>: New methods.
3255 <kind>: Rename to...
3256 <m_kind>: ... this. Update all users to use the new methods
3257 instead.
3258 <data>: Rename to...
3259 <m_data>: ... this. Update all users to use the new methods
3260 instead.
3261
7c6f2712
SM
32622020-07-12 Simon Marchi <simon.marchi@efficios.com>
3263
3264 * gdbtypes.c (get_discrete_bounds): Return failure if
3265 the range type's bounds are not both defined and constant
3266 values.
3267 (get_array_bounds): Update comment. Remove undefined bound check.
3268
599088e3
SM
32692020-07-12 Simon Marchi <simon.marchi@polymtl.ca>
3270
3271 * gdbtypes.h (TYPE_RANGE_DATA): Remove. Update callers to use
3272 the type::bounds method directly.
3273
c4dfcb36
SM
32742020-07-12 Simon Marchi <simon.marchi@efficios.com>
3275
3276 * gdbtypes.h (struct type) <bounds, set_bounds>: New methods.
3277 (TYPE_RANGE_DATA): Use type::bounds. Change all uses that
3278 are used to set the range type's bounds to use set_bounds.
3279
0a278aa7
PW
32802020-07-11 Philippe Waroquiers <philippe.waroquiers@skynet.be>
3281
3282 * exec.c (_initialize_exec): Update exec-file-mismatch help.
3283
cce20f10
PA
32842020-07-10 Pedro Alves <pedro@palves.net>
3285
3286 * gdbthread.h (inferior_ref): Define.
3287 (scoped_restore_current_thread) <m_thread>: Now a thread_info_ref.
3288 (scoped_restore_current_thread) <m_inf>: Now an inferior_ref.
3289 * thread.c
3290 (scoped_restore_current_thread::restore):
3291 Adjust to gdb::ref_ptr.
3292 (scoped_restore_current_thread::~scoped_restore_current_thread):
3293 Remove manual decref handling.
3294 (scoped_restore_current_thread::scoped_restore_current_thread):
3295 Adjust to use
3296 inferior_ref::new_reference/thread_info_ref::new_reference.
3297 Incref the thread before calling get_frame_id instead of after.
3298 Let TARGET_CLOSE_ERROR propagate.
3299
6d7aa592
PA
33002020-07-10 Pedro Alves <pedro@palves.net>
3301
3302 * frame-tailcall.c (dwarf2_tailcall_sniffer_first): Only swallow
3303 NO_ENTRY_VALUE_ERROR / MEMORY_ERROR / OPTIMIZED_OUT_ERROR /
3304 NOT_AVAILABLE_ERROR.
3305 * value.c (value_optimized_out): Only swallow MEMORY_ERROR /
3306 OPTIMIZED_OUT_ERROR / NOT_AVAILABLE_ERROR.
3307
b3e3a4c1
SM
33082020-07-10 Simon Marchi <simon.marchi@polymtl.ca>
3309 Pedro Alves <pedro@palves.net>
3310
3311 PR gdb/26199
3312 * infrun.c (threads_are_resumed_pending_p): Delete.
3313 (do_target_wait): Remove threads_are_executing and
3314 threads_are_resumed_pending_p checks from the inferior_matches
3315 lambda. Update comments.
3316
d6cc5d98
PA
33172020-07-10 Pedro Alves <pedro@palves.net>
3318
3319 PR gdb/26199
3320 * infrun.c (handle_no_resumed): Transfer terminal to inferior with
3321 executing threads.
3322
7d3badc6
PA
33232020-07-10 Pedro Alves <pedro@palves.net>
3324
3325 PR gdb/26199
3326 * infrun.c (handle_no_resumed): Handle multiple targets.
3327
42bd97a6
PA
33282020-07-10 Pedro Alves <pedro@palves.net>
3329
3330 PR gdb/26199
3331 * infrun.c (prepare_to_wait): Check target_can_async_p instead of
3332 target_is_async_p.
3333
43667cc6
PA
33342020-07-10 Pedro Alves <pedro@palves.net>
3335
3336 PR gdb/26199
3337 * target.c (target_pass_ctrlc): Look at the inferior's non-exited
3338 threads, not all threads.
3339
96118d11
PA
33402020-07-10 Pedro Alves <pedro@palves.net>
3341
3342 PR gdb/26199
3343 * remote.c (remote_target::open_1): Pass remote target pointer as
3344 data to create_async_event_handler.
3345 (remote_async_inferior_event_handler): Mark async event handler
3346 before returning if the remote target still has either pending
3347 events or unacknowledged notifications.
3348
54904d81
JB
33492020-07-10 John Baldwin <jhb@FreeBSD.org>
3350
3351 * fbsd-nat.h (fbsd_nat_target::supports_multi_process): New
3352 declaration.
3353 * fbsd-nat.c (fbsd_nat_target::supports_multi_process): New
3354 function.
3355
f37e5866
JB
33562020-07-09 John Baldwin <jhb@FreeBSD.org>
3357
3358 * inf-ptrace.c (inf_ptrace_target::wait): Don't compare against
3359 inferior_ptid.
3360
fc238d4a
JB
33612020-07-09 John Baldwin <jhb@FreeBSD.org>
3362
3363 * fbsd-tdep.c (fbsd_print_auxv_entry): Handle AT_FREEBSD_ARGC,
3364 AT_FREEBSD_ARGV, AT_FREEBSD_ENVC, AT_FREEBSD_ENVV,
3365 AT_FREEBSD_PS_STRINGS.
3366
6e2469ff
HD
33672020-07-08 Hannes Domani <ssbssa@yahoo.de>
3368
3369 * auto-load.c (auto_load_objfile_script_1): Convert drive part
3370 of debugfile path on Windows.
3371
d1076c41
JB
33722020-07-08 John Baldwin <jhb@FreeBSD.org>
3373
3374 * fbsd-nat.c (fbsd_nat_target::find_memory_regions): Rename 'obfd'
3375 argument to 'data'.
3376
15f3b077
TT
33772020-07-08 Tom Tromey <tromey@adacore.com>
3378
3379 * ada-lang.c (ada_exception_message_1): Use read_memory.
3380
9fc501fd
AB
33812020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
3382
3383 PR python/22748
3384 * dwarf2/frame-tailcall.c (dwarf2_tailcall_sniffer_first): Remove
3385 special handling for inline frames.
3386 * findvar.c (value_of_register_lazy): Skip inline frames when
3387 creating lazy register values.
3388 * frame.c (frame_id_computed_p): Delete definition.
3389 * frame.h (frame_id_computed_p): Delete declaration.
3390
64cb3757
AB
33912020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
3392
3393 * NEWS: Mention additions to Python API.
3394 * python/py-arch.c (archpy_register_groups): New function.
3395 (arch_object_methods): Add 'register_groups' method.
3396 * python/py-registers.c (reggroup_iterator_object): New struct.
3397 (reggroup_object): New struct.
3398 (gdbpy_new_reggroup): New function.
3399 (gdbpy_reggroup_to_string): New function.
3400 (gdbpy_reggroup_name): New function.
3401 (gdbpy_reggroup_iter): New function.
3402 (gdbpy_reggroup_iter_next): New function.
3403 (gdbpy_new_reggroup_iterator): New function
3404 (gdbpy_initialize_registers): Register new types.
3405 (reggroup_iterator_object_type): Define new Python type.
3406 (gdbpy_reggroup_getset): New static global.
3407 (reggroup_object_type): Define new Python type.
3408 * python/python-internal.h
3409
0f767f94
AB
34102020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
3411
3412 * Makefile.in (SUBDIR_PYTHON_SRCS): Add py-registers.c
3413 * python/py-arch.c (archpy_registers): New function.
3414 (arch_object_methods): Add 'registers' method.
3415 * python/py-registers.c: New file.
3416 * python/python-internal.h
3417 (gdbpy_new_register_descriptor_iterator): Declare.
3418 (gdbpy_initialize_registers): Declare.
3419 * python/python.c (do_start_initialization): Call
3420 gdbpy_initialize_registers.
3421 * NEWS: Mention additions to the Python API.
3422
87dbc774
AB
34232020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
3424
3425 * NEWS: Mention new Python API method.
3426 * python/py-unwind.c (pending_framepy_architecture): New function.
3427 (pending_frame_object_methods): Add architecture method.
3428
3bc98c0c
AB
34292020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
3430
3431 * gdbarch.c: Regenerate.
3432 * gdbarch.h: Regenerate.
3433 * gdbarch.sh (deprecated_set_gdbarch_data): Delete.
3434 (gdbarch_data): Use internal_error for the case where
3435 deprecated_set_gdbarch_data was originally needed.
3436 * ia64-libunwind-tdep.c (libunwind_descr_init): Update parameters,
3437 and use passed in obstack.
3438 (libunwind_frame_set_descr): Should no longer get back NULL from
3439 gdbarch_data.
3440 (_initialize_libunwind_frame): Register as a pre-init gdbarch data
3441 type.
3442 * user-regs.c (user_regs_init): Update parameters, and use passed
3443 in obstack.
3444 (user_reg_add): Should no longer get back NULL from gdbarch_data.
3445 (_initialize_user_regs): Register as a pre-init gdbarch data type.
3446
d8cc8af6
TV
34472020-07-06 Tom de Vries <tdevries@suse.de>
3448
3449 * buildsym.c (buildsym_compunit::end_symtab_with_blockvector): Handle
3450 End-Of-Sequence in lte_is_less_than.
3451 * symtab.c (find_pc_sect_line): Revert change from commit 3d92a3e313
3452 "gdb: Don't reorder line table entries too much when sorting".
3453
947f7597
TV
34542020-07-06 Tom de Vries <tdevries@suse.de>
3455
3456 PR tui/26205
3457 * tui/tui-win.c (tui_partial_win_by_name): Don't test for NULL name.
3458
1e7c1b22
TV
34592020-07-05 Tom de Vries <tdevries@suse.de>
3460
3461 PR build/26187
3462 * inferior.h (struct infcall_suspend_state_deleter): If available, use
3463 std::uncaught_exceptions instead of deprecated
3464 std::uncaught_exception.
3465
a36158ec
SM
34662020-07-02 Simon Marchi <simon.marchi@polymtl.ca>
3467
3468 * macroexp.h (macro_stringify): Return
3469 gdb::unique_xmalloc_ptr<char>.
3470 * macroexp.c (macro_stringify): Likewise.
3471 * macrotab.c (fixup_definition): Update.
3472
14d960c8
SM
34732020-07-02 Simon Marchi <simon.marchi@polymtl.ca>
3474
3475 * c-exp.y (scan_macro_expansion): Don't free `expansion`.
3476 (lex_one_token): Update.
3477 * macroexp.c (struct macro_buffer) <release>: Return
3478 gdb::unique_xmalloc_ptr<char>.
3479 (macro_stringify): Update.
3480 (macro_expand): Update.
3481 (macro_expand_next): Return gdb::unique_xmalloc_ptr<char>.
3482 * macroexp.h (macro_expand_next): Likewise.
3483
211d5b1c
SM
34842020-07-02 Simon Marchi <simon.marchi@efficios.com>
3485
3486 * macroexp.h (macro_lookup_ftype): Remove.
3487 (macro_expand, macro_expand_once, macro_expand_next): Remove
3488 lookup function parameters, add scope parameter.
3489 * macroexp.c (scan, substitute_args, expand, maybe_expand,
3490 macro_expand, macro_expand_once, macro_expand_next): Likewise.
3491 * macroscope.h (standard_macro_lookup): Change parameter type
3492 to macro_scope.
3493 * macroscope.c (standard_macro_lookup): Likewise.
3494 * c-exp.y (lex_one_token): Update.
3495 * macrocmd.c (macro_expand_command): Likewise.
3496 (macro_expand_once_command): Likewise.
3497
b1a35af2
SM
34982020-07-02 Simon Marchi <simon.marchi@polymtl.ca>
3499
3500 * inf-loop.c (inferior_event_handler): Remove client_data param.
3501 * inf-loop.h (inferior_event_handler): Likewise.
3502 * infcmd.c (step_1): Adjust.
3503 * infrun.c (proceed): Adjust.
3504 (fetch_inferior_event): Remove client_data param.
3505 (infrun_async_inferior_event_handler): Adjust.
3506 * infrun.h (fetch_inferior_event): Remove `void *` param.
3507 * linux-nat.c (handle_target_event): Adjust.
3508 * record-btrace.c (record_btrace_handle_async_inferior_event):
3509 Adjust.
3510 * record-full.c (record_full_async_inferior_event_handler):
3511 Adjust.
3512 * remote.c (remote_async_inferior_event_handler): Adjust.
3513
1cdf9e33
TT
35142020-07-01 Tom Tromey <tom@tromey.com>
3515
3516 * tui/tui-data.h (struct tui_win_info) <name>: Now pure virtual.
3517 * tui/tui-stack.h (struct tui_locator_window) <name>: New method.
3518
32c1e210
TT
35192020-07-01 Tom Tromey <tom@tromey.com>
3520
3521 * tui/tui-wingeneral.c (tui_win_info::refresh_window): Move from
3522 tui_gen_win_info.
3523 (tui_win_info::make_window): Merge with
3524 tui_gen_win_info::make_window.
3525 (tui_win_info::make_visible): Move from tui_gen_win_info.
3526 * tui/tui-win.c (tui_win_info::max_width): Move from
3527 tui_gen_win_info.
3528 * tui/tui-layout.h (class tui_layout_window) <m_window>: Change
3529 type.
3530 <window_factory>: Likewise.
3531 * tui/tui-layout.c (tui_win_info::resize): Move from
3532 tui_gen_win_info.
3533 (make_standard_window): Change return type.
3534 (get_locator_window, tui_get_window_by_name): Likewise.
3535 (tui_layout_window::apply): Remove a cast.
3536 * tui/tui-data.h (MIN_WIN_HEIGHT): Move earlier.
3537 (struct tui_win_info): Merge with tui_gen_win_info.
3538 (struct tui_gen_win_info): Remove.
3539
a30cb6da
TT
35402020-07-01 Tom Tromey <tom@tromey.com>
3541
3542 * tui/tui-stack.h (struct tui_locator_window): Derive from
3543 tui_win_info.
3544 <do_scroll_horizontal, do_scroll_vertical>: New methods.
3545 <can_box>: New method.
3546
1eb2161f
TT
35472020-07-01 Tom Tromey <tom@tromey.com>
3548
3549 * tui/tui-stack.h (struct tui_locator_window): Remove body.
3550
7134f2eb
TT
35512020-07-01 Tom Tromey <tom@tromey.com>
3552
3553 * tui/tui-regs.c (tui_data_window::display_registers_from)
3554 (tui_data_window::display_registers_from)
3555 (tui_data_window::first_data_item_displayed)
3556 (tui_data_window::delete_data_content_windows): Update.
3557 (tui_data_window::refresh_window, tui_data_window::no_refresh):
3558 Remove.
3559 (tui_data_window::check_register_values): Update.
3560 (tui_data_item_window::rerender): Add parameters. Update.
3561 (tui_data_item_window::refresh_window): Remove.
3562 * tui/tui-data.h (struct tui_gen_win_info) <no_refresh>: No longer
3563 virtual.
3564 * tui/tui-regs.h (struct tui_data_item_window): Don't derive from
3565 tui_gen_win_info.
3566 <refresh_window, max_height, min_height>: Remove.
3567 <rerender>: Add parameters.
3568 <x, y, visible>: New members.
3569 (struct tui_data_window) <refresh_window, no_refresh>: Remove.
3570 <m_item_width>: New member.
3571
22b7b041
TT
35722020-07-01 Tom Tromey <tom@tromey.com>
3573
3574 * tui/tui-regs.c (tui_data_window::show_register_group)
3575 (tui_data_window::check_register_values): Update.
3576 * tui/tui-regs.h (struct tui_data_item_window) <regno>: Rename
3577 from item_no.
3578
c9753adb
TT
35792020-07-01 Tom Tromey <tom@tromey.com>
3580
3581 * tui/tui-regs.c (tui_data_window::show_register_group): Remove
3582 useless "if".
3583
9ab26b4a
TT
35842020-07-01 Tom Tromey <tom@tromey.com>
3585
3586 * tui/tui-regs.c (tui_data_window::show_register_group): Update.
3587 * tui/tui-regs.h (struct tui_data_item_window) <name>: Remove.
3588
e555083f
TT
35892020-07-01 Tom Tromey <tom@tromey.com>
3590
3591 * tui/tui-stack.c (SINGLE_KEY): Move from tui-data.h
3592 * tui/tui-winsource.h (enum tui_line_or_address_kind)
3593 (struct tui_line_or_address): Move from tui-data.h.
3594 * tui/tui-win.c (DEFAULT_TAB_LEN): Move from tui-data.h.
3595 * tui/tui-data.h (DEFAULT_TAB_LEN): Move to tui-win.c.
3596 (tui_cmd_window, tui_source_window_base, tui_source_window)
3597 (tui_disasm_window): Don't declare.
3598 (enum tui_line_or_address_kind, struct tui_line_or_address): Move
3599 to tui-winsource.h.
3600 (SINGLE_KEY): Move to tui-stack.c.
3601
7a02bab7
TT
36022020-07-01 Tom Tromey <tom@tromey.com>
3603
3604 * tui/tui-regs.h (struct tui_data_item_window) <content>: Now a
3605 std::string.
3606 * tui/tui-regs.c (class tab_expansion_file): New.
3607 (tab_expansion_file::write): New method.
3608 (tui_register_format): Change return type. Use
3609 tab_expansion_file.
3610 (tui_get_register, tui_data_window::display_registers_from)
3611 (tui_data_item_window::rerender): Update.
3612 * tui/tui-io.h (tui_expand_tabs): Don't declare.
3613 * tui/tui-io.c (tui_expand_tabs): Remove.
3614
ea68593b
TT
36152020-07-01 Tom Tromey <tom@tromey.com>
3616
3617 * tui/tui-regs.c (tui_reggroup_completer): Use complete_on_enum.
3618
a8caed5d
FS
36192020-07-01 Fangrui Song <maskray@google.com>
3620
3621 * dwarf2/read.c (lnp_state_machine::check_line_address): Test -1.
3622
9cdf9820
AKS
36232020-07-01 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
3624
3625 * dwarf2/read.c (set_die_type): Removed conditions to restrict
3626 forms for DW_AT_associated and DW_AT_allocated attributes,
3627 which is already checked in function attr_to_dynamic_prop.
3628
a1520ad8
TT
36292020-06-30 Tom Tromey <tromey@adacore.com>
3630
3631 * dwarf2/read.c (quirk_rust_enum): Correctly call
3632 alloc_rust_variant for default-less enum.
3633
5ac58899
TT
36342020-06-30 Tom Tromey <tromey@adacore.com>
3635
3636 PR build/26183:
3637 * ada-lang.c (ada_lookup_name_info::ada_lookup_name_info): Use
3638 gdb::to_string.
3639
19b187a9
SM
36402020-06-29 Simon Marchi <simon.marchi@efficios.com>
3641
3642 * gdbarch.sh (displaced_step_copy_insn): Update doc.
3643 * gdbarch.h: Re-generate.
3644
cd4c4c07
TT
36452020-06-28 Tom Tromey <tom@tromey.com>
3646
3647 * command.h (cmd_types): Remove.
3648 (cmd_type): Don't declare.
3649 * cli/cli-decode.h (enum cmd_types): Uncomment. No longer a
3650 typedef.
3651 * cli/cli-cmds.c (setting_cmd): Use cmd->type directly.
3652 * cli/cli-decode.c (cmd_type): Remove.
3653
05779d57
PA
36542020-06-27 Pedro Alves <palves@redhat.com>
3655
3656 * fork-child.c (prefork_hook): Adjust.
3657 * infcmd.c (set_inferior_io_terminal, get_inferior_io_terminal):
3658 Delete.
3659 (set_inferior_tty_command, show_inferior_tty_command): Adjust.
3660 * inferior.c (inferior::set_tty, inferior::tty): New methods.
3661 * inferior.h (set_inferior_io_terminal, get_inferior_io_terminal):
3662 Remove declarations.
3663 (struct inferior) <set_tty, tty>: New methods.
3664 (struct inferior) <terminal>: Rename to ...
3665 (struct inferior) <m_terminal>: ... this and make private.
3666 * main.c (captured_main_1): Adjust.
3667 * mi/mi-cmd-env.c (mi_cmd_inferior_tty_set): Adjust.
3668 (mi_cmd_inferior_tty_show): Adjust.
3669 * nto-procfs.c (nto_procfs_target::create_inferior): Adjust.
3670 * windows-nat.c (windows_nat_target::create_inferior): Adjust.
3671
1776e3e5
NA
36722020-06-26 Nick Alcock <nick.alcock@oracle.com>
3673
3674 * configure.ac: Add --enable-libctf: handle --disable-static
3675 properly.
3676 * acinclude.m4: sinclude ../config/enable.m4.
3677 * Makefile.in (aclocal_m4_deps): Adjust accordingly.
3678 (LIBCTF): Substitute in.
3679 (CTF_DEPS): New, likewise.
3680 (CLIBS): libctf needs symbols from libbfd: move earlier.
3681 (CDEPS): Use CTF_DEPS, not LIBCTF, now LIBCTF can include rpath
3682 flags.
3683 * ctfread.c: Surround in ENABLE_LIBCTF.
3684 (elfctf_build_psymtabs) [!ENABLE_LIBCTF]: New stub.
3685 * configure: Regenerate.
3686 * config.in: Likewise.
3687
58373b80
SM
36882020-06-25 Simon Marchi <simon.marchi@efficios.com>
3689
3690 * infcmd.c (set_inferior_io_terminal): Use make_unique_xstrdup.
3691
277474ee
SM
36922020-06-25 Simon Marchi <simon.marchi@efficios.com>
3693
3694 * inferior.h (struct inferior) <terminal>: Change type to
3695 gdb::unique_xmalloc_ptr<char>.
3696 * inferior.c (inferior::~inferior): Don't free inf->terminal.
3697 * infcmd.c (set_inferior_io_terminal): Don't free terminal
3698 field, adjust to unique pointer.
3699 (get_inferior_io_terminal): Adjust to unique pointer.
3700
6d74da72
AB
37012020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
3702
3703 * riscv-tdep.c (riscv_print_registers_info): Loop over all
3704 registers, not just the known core set of registers.
3705
2e52d038
AB
37062020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
3707
3708 * riscv-tdep.c (riscv_register_name): Return NULL for duplicate
3709 fflags, frm, and fcsr registers.
3710 (riscv_register_reggroup_p): Remove unknown CSRs from save and
3711 restore groups.
3712 (riscv_tdesc_unknown_reg): New function.
3713 (riscv_gdbarch_init): Pass riscv_tdesc_unknown_reg to
3714 tdesc_use_registers.
3715 * riscv-tdep.h (struct gdbarch_tdep): Add
3716 unknown_csrs_first_regnum, unknown_csrs_count,
3717 duplicate_fflags_regnum, duplicate_frm_regnum, and
3718 duplicate_fcsr_regnum fields.
3719
be64fd07
AB
37202020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
3721
3722 * target-descriptions.c (tdesc_use_registers): Add new parameter a
3723 callback, use the callback (when not null) to help number unknown
3724 registers.
3725 * target-descriptions.h (tdesc_unknown_register_ftype): New typedef.
3726 (tdesc_use_registers): Add extra parameter to declaration.
3727
3b9fce96
AB
37282020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
3729
3730 * riscv-tdep.c (value_of_riscv_user_reg): Moved to here from later
3731 in the file.
3732 (class riscv_pending_register_alias): Likewise.
3733 (riscv_register_feature::register_info): Change 'required_p' field
3734 to 'required', and change its type. Add 'check' member function.
3735 (riscv_register_feature::register_info::check): Define new member
3736 function.
3737 (riscv_xreg_feature): Change initialisation of 'required' field.
3738 (riscv_freg_feature): Likewise.
3739 (riscv_virtual_feature): Likewise.
3740 (riscv_csr_feature): Likewise.
3741 (riscv_check_tdesc_feature): Take extra parameter, the csr
3742 tdesc_feature, rewrite the function to use the new
3743 riscv_register_feature::register_info::check function.
3744 (riscv_gdbarch_init): Pass the csr tdesc_feature where needed.
3745
865bad26
AB
37462020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
3747
3748 * features/Makefile: Remove all references to the deleted files
3749 below.
3750 * features/riscv/32bit-csr.c: Deleted.
3751 * features/riscv/32bit-csr.xml: Deleted.
3752 * features/riscv/64bit-csr.c: Deleted.
3753 * features/riscv/64bit-csr.xml: Deleted.
3754 * features/riscv/rebuild-csr-xml.sh: Deleted.
3755
ed69cbc8
AB
37562020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
3757
3758 * riscv-tdep.c (struct riscv_register_feature::register_info): Fix
3759 whitespace error for declaration of names member variable.
3760 (struct riscv_register_feature): Add new prefer_first_name member
3761 variable, and fix whitespace error in declaration of registers.
3762 (riscv_xreg_feature): Initialize prefer_first_name field.
3763 (riscv_freg_feature): Likewise.
3764 (riscv_virtual_feature): Likewise.
3765 (riscv_csr_feature): Likewise.
3766 (riscv_register_name): Expand on comments. Remove register name
3767 modifications for CSR and virtual registers.
3768
4445e8f5
AB
37692020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
3770
3771 * riscv-tdep.c (struct riscv_register_feature): Fix whitespace
3772 errors.
3773
767a879e
AB
37742020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
3775
3776 * riscv-tdep.c (riscv_create_csr_aliases): Handle csr aliases from
3777 riscv-opc.h.
3778 (class riscv_pending_register_alias): New class.
3779 (riscv_check_tdesc_feature): Take vector of pending aliases and
3780 populate it as appropriate.
3781 (riscv_setup_register_aliases): Delete.
3782 (riscv_gdbarch_init): Create vector of pending aliases and pass it
3783 to riscv_check_tdesc_feature in all cases. Use the vector to
3784 create the register aliases.
3785
bb6e55f3
RO
37862020-06-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
3787
3788 * sol2-tdep.c (sol2_static_transform_name): Remove.
3789 (sol2_init_abi): Don't register it.
3790 * gdbarch.sh (static_transform_name): Remove.
3791 * gdbarch.c, gdbarch.h: Regenerate.
3792
3793 * dbxread.c (read_dbx_symtab) <'S'>: Remove call to
3794 gdbarch_static_transform_name.
3795 * mdebugread.c (parse_partial_symbols) <'S'>: Likewise.
3796 * stabsread.c (define_symbol) <'X'>: Remove.
3797 (define_symbol) <'S'>: Remove gdbarch_static_transform_name
3798 handling.
3799 <'V'>: Likewise.
3800 * xcoffread.c (scan_xcoff_symtab): Remove gdbarch.
3801 <'S'>: Remove call to gdbarch_static_transform_name.
3802
c6d36836
RO
38032020-06-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
3804
3805 * procfs.c (procfs_pre_trace): New function.
3806 (procfs_target::create_inferior): Pass it to fork_inferior.
3807
a7e6196b
RO
38082020-06-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
3809
3810 * configure.tgt <sparc-*-linux*> (gdb_target_obs): Remove
3811 sparc-sol2-tdep.o, sol2-tdep.o, sparc64-sol2-tdep.o.
3812 <sparc64-*-linux*> (gdb_target_obs): Remove sparc64-sol2-tdep.o,
3813 sol2-tdep.o, sparc-sol2-tdep.o.
3814 * sparc-sol2-tdep.c (sparc32_sol2_init_abi): Make static.
3815 * sparc-tdep.h (sparc32_sol2_init_abi): Remove.
3816 * sparc64-sol2-tdep.c (sparc64_sol2_init_abi): Make static.
3817 * sparc64-tdep.h (sparc64_sol2_init_abi): Remove.
3818
d412e696
RO
38192020-06-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
3820
3821 * amd64-sol2-tdep.c (amd64_sol2_sigtramp_p): Remove.
3822 (amd64_sol2_init_abi): Use sol2_sigtramp_p.
3823 Call sol2_init_abi.
3824 Remove calls to set_gdbarch_skip_solib_resolver,
3825 set_gdbarch_core_pid_to_str.
3826 * i386-sol2-tdep.c (i386_sol2_sigtramp_p): Remove.
3827 (i386_sol2_static_transform_name): Remove.
3828 (i386_sol2_init_abi): Call sol2_init_abi.
3829 Remove calls to set_gdbarch_sofun_address_maybe_missing,
3830 set_gdbarch_static_transform_name,
3831 set_gdbarch_skip_solib_resolver, set_gdbarch_core_pid_to_str.
3832 Use sol2_sigtramp_p.
3833 * sol2-tdep.c (sol2_pc_in_sigtramp): New function.
3834 (sol2_sigtramp_p): New function.
3835 (sol2_static_transform_name): New function.
3836 (sol2_skip_solib_resolver, sol2_core_pid_to_str): Make static.
3837 (sol2_init_abi): New function.
3838 * sol2-tdep.h (sol2_sigtramp_p, sol2_init_abi): Declare.
3839 (sol2_skip_solib_resolver, sol2_core_pid_to_str): Remove.
3840 * sparc-sol2-tdep.c (sparc_sol2_pc_in_sigtramp): Remove.
3841 (sparc32_sol2_sigtramp_frame_sniffer): Just call sol2_sigtramp_p.
3842 (sparc_sol2_static_transform_name): Remove.
3843 (sparc32_sol2_init_abi): Call sol2_init_abi.
3844 Remove calls to set_gdbarch_sofun_address_maybe_missing,
3845 set_gdbarch_static_transform_name,
3846 set_gdbarch_skip_solib_resolver,
3847 set_gdbarch_core_pid_to_str.
3848 * sparc-tdep.h (sparc_sol2_pc_in_sigtramp)
3849 (sparc_sol2_static_transform_name): Remove
3850 * sparc64-sol2-tdep.c (sparc64_sol2_sigtramp_frame_sniffer): Just
3851 call sol2_sigtramp_p.
3852 (sparc64_sol2_init_abi): Call sol2_init_abi.
3853 Remove calls to set_gdbarch_sofun_address_maybe_missing,
3854 set_gdbarch_static_transform_name,
3855 set_gdbarch_skip_solib_resolver, set_gdbarch_core_pid_to_str.
3856
a8654e7d
PW
38572020-06-24 Philippe Waroquiers <philippe.waroquiers@skynet.be>
3858
3859 * symfile-add-flags.h: New flag SYMFILE_ALWAYS_CONFIRM.
3860 * exec.c (validate_exec_file): If from_tty, set both
3861 SYMFILE_VERBOSE (== from_tty) and SYMFILE_ALWAYS_CONFIRM.
3862 * symfile.c (symbol_file_add_with_addrs): if always_confirm
3863 and from_tty, unconditionally ask a confirmation.
3864
caa7fd04
AB
38652020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
3866
3867 * target-descriptions.c (tdesc_architecture_name): Protect against
3868 NULL pointer dereference.
3869 (maint_print_xml_tdesc_cmd): New function.
3870 (_initialize_target_descriptions): Register new 'maint print
3871 xml-tdesc' command and give it the filename completer.
3872 * NEWS: Mention new 'maint print xml-tdesc' command.
3873
fbf42f4e
AB
38742020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
3875
3876 * target-descriptions.c (class tdesc_compatible_info): New class.
3877 (struct target_desc): Change type of compatible vector.
3878 (tdesc_compatible_p): Update for change in type of
3879 target_desc::compatible.
3880 (tdesc_compatible_info_list): New function.
3881 (tdesc_compatible_info_arch_name): New function.
3882 (tdesc_add_compatible): Update for change in type of
3883 target_desc::compatible.
3884 (print_c_tdesc::visit_pre): Likewise.
3885
20821f4e
AB
38862020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
3887
3888 * target-descriptions.c (print_c_tdesc::print_c_tdesc): Change
3889 whitespace to underscore.
3890 (maint_print_c_tdesc_cmd): Use fake filename for target
3891 descriptions that came from the target.
3892 (_initialize_target_descriptions): Add filename command completion
3893 for 'maint print c-tdesc'.
3894
1fb5ee62
SM
38952020-06-23 Simon Marchi <simon.marchi@efficios.com>
3896
3897 * dwarf2/loc.c (decode_debug_loclists_addresses): Add empty
3898 lines.
3899
fc3ecb3e
SM
39002020-06-23 Simon Marchi <simon.marchi@efficios.com>
3901
3902 * dwarf2/loc.c (decode_debug_loc_dwo_addresses): Add empty
3903 lines.
3904 (dwarf2_find_location_expression): Likewise.
3905 (call_site_parameter_matches): Likewise.
3906 (dwarf2_compile_expr_to_ax): Likewise.
3907 (disassemble_dwarf_expression): Likewise.
3908 (loclist_describe_location): Likewise.
3909
236ef034
PA
39102020-06-23 Pedro Alves <palves@redhat.com>
3911
3912 * gdbarch-selftests.c: Don't include inferior.h, gdbthread.h or
3913 progspace-and-thread.h. Include scoped-mock-context.h instead.
3914 (register_to_value_test): Use scoped_mock_context.
3915 * regcache.c: Include "scoped-mock-context.h".
3916 (cooked_read_test): Don't error out if a target is already pushed.
3917 Use scoped_mock_context. Adjust.
3918 * scoped-mock-context.h: New file.
3919
39e7ecca
AB
39202020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
3921
3922 * ada-lang.c (ada_language_data): Delete la_is_string_type_p
3923 initializer.
3924 (ada_language::is_string_type_p): New member function.
3925 * c-lang.c (c_language_data): Delete la_is_string_type_p
3926 initializer.
3927 (cplus_language_data): Likewise.
3928 (asm_language_data): Likewise.
3929 (minimal_language_data): Likewise.
3930 * d-lang.c (d_language_data): Likewise.
3931 * f-lang.c (f_is_string_type_p): Delete function, implementation
3932 moved to f_language::is_string_type_p.
3933 (f_language_data): Delete la_is_string_type_p initializer.
3934 (f_language::is_string_type_p): New member function,
3935 implementation from f_is_string_type_p.
3936 * go-lang.c (go_is_string_type_p): Delete function, implementation
3937 moved to go_language::is_string_type_p.
3938 (go_language_data): Delete la_is_string_type_p initializer.
3939 (go_language::is_string_type_p): New member function,
3940 implementation from go_is_string_type_p.
3941 * language.c (language_defn::is_string_type_p): Define new member
3942 function.
3943 (default_is_string_type_p): Make static, add comment copied from
3944 header file.
3945 (unknown_language_data): Delete la_is_string_type_p initializer.
3946 (unknown_language::is_string_type_p): New member function.
3947 (auto_language_data): Delete la_is_string_type_p initializer.
3948 (auto_language::is_string_type_p): New member function.
3949 * language.h (language_data): Delete la_is_string_type_p field.
3950 (language_defn::is_string_type_p): Declare new function.
3951 (default_is_string_type_p): Delete desclaration, move comment to
3952 definition.
3953 * m2-lang.c (m2_is_string_type_p): Delete function, implementation
3954 moved to m2_language::is_string_type_p.
3955 (m2_language_data): Delete la_is_string_type_p initializer.
3956 (m2_language::is_string_type_p): New member function,
3957 implementation from m2_is_string_type_p.
3958 * objc-lang.c (objc_language_data): Delete la_is_string_type_p
3959 initializer.
3960 * opencl-lang.c (opencl_language_data): Likewise.
3961 * p-lang.c (pascal_is_string_type_p): Delete function,
3962 implementation moved to pascal_language::is_string_type_p.
3963 (pascal_language_data): Delete la_is_string_type_p initializer.
3964 (pascal_language::is_string_type_p): New member function,
3965 implementation from pascal_is_string_type_p.
3966 * rust-lang.c (rust_is_string_type_p): Delete function,
3967 implementation moved to rust_language::is_string_type_p.
3968 (rust_language_data): Delete la_is_string_type_p initializer.
3969 (rust_language::is_string_type_p): New member function,
3970 implementation from rust_is_string_type_p.
3971 * valprint.c (val_print_scalar_or_string_type_p): Update call to
3972 is_string_type_p.
3973
4ffc13fb
AB
39742020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
3975
3976 * ada-lang.c (ada_language_data): Delete la_print_typedef
3977 initializer.
3978 (ada_language::print_typedef): New member function.
3979 * c-lang.c (c_language_data): Delete la_print_typedef initializer.
3980 (cplus_language_data): Likewise.
3981 (asm_language_data): Likewise.
3982 (minimal_language_data): Likewise.
3983 * d-lang.c (d_language_data): Likewise.
3984 * f-lang.c (f_language_data): Likewise.
3985 (f_language::print_typedef): New member function.
3986 * go-lang.c (go_language_data): Delete la_print_typedef
3987 initializer.
3988 * language.c (language_defn::print_typedef): Define member
3989 function.
3990 (unknown_language_data): Delete la_print_typedef initializer.
3991 (unknown_language::print_typedef): New member function.
3992 (auto_language_data): Delete la_print_typedef initializer.
3993 (auto_language::print_typedef): New member function.
3994 * language.h (language_data): Delete la_print_typedef field.
3995 (language_defn::print_typedef): Declare new member function.
3996 (LA_PRINT_TYPEDEF): Update call to print_typedef.
3997 (default_print_typedef): Delete declaration.
3998 * m2-lang.c (m2_language_data): Delete la_print_typedef
3999 initializer.
4000 (m2_language::print_typedef): New member function.
4001 * objc-lang.c (objc_language_data): Delete la_print_typedef
4002 initializer.
4003 * opencl-lang.c (opencl_language_data): Likewise.
4004 * p-lang.c (pascal_language_data): Likewise.
4005 (pascal_language::print_typedef): New member function.
4006 * rust-lang.c (rust_print_typedef): Delete function,
4007 implementation moved to rust_language::print_typedef.
4008 (rust_language): Delete la_print_typedef initializer.
4009 (rust_language::print_typedef): New member function,
4010 implementation from rust_print_typedef.
4011 * typeprint.c (default_print_typedef): Delete.
4012
d711ee67
AB
40132020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
4014
4015 * ada-lang.c (ada_language_data): Delete la_printstr initializer.
4016 (ada_language::printstr): New member function.
4017 * c-lang.c (c_language_data): Delete la_printstr initializer.
4018 (cplus_language_data): Likewise.
4019 (asm_language_data): Likewise.
4020 (minimal_language_data): Likewise.
4021 * d-lang.c (d_language_data): Likewise.
4022 * f-lang.c (f_printstr): Rename to f_language::printstr.
4023 (f_language_data): Delete la_printstr initializer.
4024 (f_language::printstr): New member function, implementation from
4025 f_printstr.
4026 * go-lang.c (go_language_data): Delete la_printstr initializer.
4027 * language.c (language_defn::printstr): Define new member
4028 function.
4029 (unk_lang_printstr): Delete.
4030 (unknown_language_data): Delete la_printstr initializer.
4031 (unknown_language::printstr): New member function.
4032 (auto_language_data): Delete la_printstr initializer.
4033 (auto_language::printstr): New member function.
4034 * language.h (language_data): Delete la_printstr field.
4035 (language_defn::printstr): Declare new member function.
4036 (LA_PRINT_STRING): Update call to printstr.
4037 * m2-lang.c (m2_printstr): Rename to m2_language::printstr.
4038 (m2_language_data): Delete la_printstr initializer.
4039 (m2_language::printstr): New member function, implementation from
4040 m2_printstr.
4041 * objc-lang.c (objc_language_data): Delete la_printstr
4042 initializer.
4043 * opencl-lang.c (opencl_language_data): Likewise.
4044 * p-lang.c (pascal_printstr): Rename to pascal_language::printstr.
4045 (pascal_language_data): Delete la_printstr initializer.
4046 (pascal_language::printstr): New member function, implementation
4047 from pascal_printstr.
4048 * p-lang.h (pascal_printstr): Delete declaration.
4049 * rust-lang.c (rust_printstr): Update header comment.
4050 (rust_language_data): Delete la_printstr initializer.
4051 (rust_language::printstr): New member function.
4052
52b50f2c
AB
40532020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
4054
4055 * ada-lang.c (ada_language_data): Delete la_printchar initializer.
4056 (ada_language::printchar): New member function.
4057 * c-lang.c (c_language_data): Delete la_printchar initializer.
4058 (cplus_language_data): Likewise.
4059 (asm_language_data): Likewise.
4060 (minimal_language_data): Likewise.
4061 * d-lang.c (d_language_data): Likewise.
4062 * f-lang.c (f_printchar): Rename to f_language::printchar.
4063 (f_language_data): Delete la_printchar initializer.
4064 (f_language::printchar): New member function, implementation from
4065 f_printchar.
4066 * go-lang.c (go_language_data): Delete la_printchar initializer.
4067 * language.c (unk_lang_printchar): Delete.
4068 (language_defn::printchar): Define new member function.
4069 (unknown_language_data): Delete la_printchar initializer.
4070 (unknown_language::printchar): New member function.
4071 (auto_language_data): Delete la_printchar initializer.
4072 (auto_language::printchar): New member function.
4073 * language.h (language_data): Delete la_printchar field.
4074 (language_defn::printchar): Declare new member function.
4075 (LA_PRINT_CHAR): Update call to printchar.
4076 * m2-lang.c (m2_language_data): Delete la_printchar initializer.
4077 (m2_language::printchar): New member function.
4078 * objc-lang.c (objc_language_data): Delete la_printchar
4079 initializer.
4080 * opencl-lang.c (opencl_language_data): Likewise.
4081 * p-lang.c (pascal_language_data): Delete la_printchar
4082 initializer.
4083 (pascal_language::printchar): New member function.
4084 * rust-lang.c (rust_printchar): Rename to
4085 rust_language::printchar.
4086 (rust_language_data): Delete la_printchar initializer.
4087 (rust_language::printchar): New member function, implementation
4088 from rust_printchar.
4089
ec8cec5b
AB
40902020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
4091
4092 * ada-lang.c (emit_char): Renamed to ada_language::emitchar.
4093 (ada_language_data): Delete la_emitchar initializer.
4094 (ada_language::emitchar): New member function, implementation from
4095 emit_char.
4096 * c-lang.c (c_language_data): Delete la_emitchar initializer.
4097 (cplus_language_data): Likewise.
4098 (asm_language_data): Likewise.
4099 (minimal_language_data): Likewise.
4100 * d-lang.c (d_language_data): Likewise.
4101 * f-lang.c (f_emit_char): Rename to f_language::emitchar.
4102 (f_language_data): Delete la_emitchar initializer.
4103 (f_language::emitchar): New member function, implementation from
4104 f_emit_char.
4105 * go-lang.c (go_language_data): Delete la_emitchar initializer.
4106 * language.c (unk_lang_emit_char): Delete.
4107 (language_defn::emitchar): New member function definition.
4108 (unknown_language_data): Delete la_emitchar initializer.
4109 (unknown_language::emitchar): New member function.
4110 (auto_language_data): Delete la_emitchar initializer.
4111 (auto_language::emitchar): New member function.
4112 * language.h (language_data): Delete la_emitchar field.
4113 (language_defn::emitchar): New member field declaration.
4114 (LA_EMIT_CHAR): Update call to emitchar.
4115 * m2-lang.c (m2_emit_char): Rename to m2_language::emitchar.
4116 (m2_language_data): Delete la_emitchar initializer.
4117 (m2_language::emitchar): New member function, implementation from
4118 m2_emit_char.
4119 * objc-lang.c (objc_language_data): Delete la_emitchar
4120 initializer.
4121 * opencl-lang.c (opencl_language_data): Likewise.
4122 * p-lang.c (pascal_emit_char): Rename to pascal_language::emitchar.
4123 (pascal_language_data): Delete la_emitchar initializer.
4124 (pascal_language::emitchar): New member function, implementation
4125 from pascal_emit_char.
4126 * rust-lang.c (rust_emitchar): Rename to rust_language::emitchar.
4127 (rust_language_data): Delete la_emitchar initializer.
4128 (rust_language::emitchar): New member function, implementation
4129 from rust_emitchar.
4130
1bf9c363
AB
41312020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
4132
4133 * ada-lang.c (resolve): Rename to ada_language::post_parser.
4134 (ada_language_data): Delete la_post_parser initializer.
4135 (ada_language::post_parser): New member function.
4136 * c-lang.c (c_language_data): Delete la_post_parser initializer.
4137 (cplus_language_data): Likewise.
4138 (asm_language_data): Likewise.
4139 (minimal_language_data): Likewise.
4140 * d-lang.c (d_language_data): Likewise.
4141 * f-lang.c (f_language_data): Likewise.
4142 * go-lang.c (go_language_data): Likewise.
4143 * language.c (unknown_language_data): Likewise.
4144 (auto_language_data): Likewise.
4145 * language.h (language_data): Delete la_post_parser field.
4146 (language_defn::post_parser): New member function.
4147 * m2-lang.c (m2_language_data): Delete la_post_parser initializer.
4148 * objc-lang.c (objc_language_data): Likewise.
4149 * opencl-lang.c (opencl_language_data): Likewise.
4150 * p-lang.c (pascal_language_data): Likewise.
4151 * parse.c (parse_exp_in_context): Update call to post_parser.
4152 (null_post_parser): Delete definition.
4153 * parser-defs.h (null_post_parser): Delete declaration.
4154 * rust-lang.c (rust_language_data): Delete la_post_parser
4155 initializer.
4156
87afa652
AB
41572020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
4158
4159 * ada-lang.c (parse): Rename to ada_language::parser.
4160 (ada_language_data): Delete la_parser initializer.
4161 (ada_language::parser): New member function, implementation from
4162 parse.
4163 * c-lang.c (c_language_data): Delete la_parser initializer.
4164 (cplus_language_data): Likewise.
4165 (asm_language_data): Likewise.
4166 (minimal_language_data): Likewise.
4167 * d-lang.c (d_language_data): Likewise.
4168 (d_language::parser): New member function.
4169 * f-lang.c (f_language_data): Delete la_parser initializer.
4170 (f_language::parser): New member function.
4171 * go-lang.c (go_language_data): Delete la_parser initializer.
4172 (go_language::parser): New member function.
4173 * language.c (unk_lang_parser): Delete.
4174 (language_defn::parser): Define new member function.
4175 (unknown_language_data): Delete la_parser initializer.
4176 (unknown_language::parser): New member function.
4177 (auto_language_data): Delete la_parser initializer.
4178 (auto_language::parser): New member function.
4179 * language.h (language_data): Delete la_parser field.
4180 (language_defn::parser): Declare new member function.
4181 * m2-lang.c (m2_language_data): Delete la_parser initializer.
4182 (m2_language::parser): New member function.
4183 * objc-lang.c (objc_language_data): Delete la_parser initializer.
4184 * opencl-lang.c (opencl_language_data): Likewise.
4185 * p-lang.c (pascal_language_data): Likewise.
4186 (pascal_language::parser): New member function.
4187 * parse.c (parse_exp_in_context): Update call to parser.
4188 * rust-lang.c (rust_language_data): Delete la_parser initializer.
4189 (rust_language::parser): New member function.
4190
37825800
AB
41912020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
4192
4193 * top.c (print_gdb_configuration): Print --with-python-libdir
4194 configuration value.
4195
5b860c93
PW
41962020-06-22 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4197
4198 * NEWS: Mention change to the alias command.
4199
cf00cd6f
PW
42002020-06-22 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4201
4202 * cli/cli-cmds.c (lookup_cmd_for_default_args)
4203 (alias_command_completer)
4204 (make_alias_options_def_group): New functions.
4205 (alias_opts, alias_option_defs): New struct and array.
4206 (alias_usage_error): Update usage.
4207 (alias_command): Handles optional DEFAULT-ARGS... arguments.
4208 Use option framework.
4209 (_initialize_cli_cmds): Update alias command help.
4210 Update aliases command help.
4211 (show_user):
4212 Add NULL for new default_args lookup_cmd argument.
4213 (valid_command_p): Rename to validate_aliased_command.
4214 Add NULL for new default_args lookup_cmd argument. Verify that the
4215 aliased_command has no default args.
4216 * cli/cli-decode.c (help_cmd): Show aliases definitions.
4217 (lookup_cmd_1, lookup_cmd): New argument default_args.
4218 (add_alias_cmd):
4219 Add NULL for new default_args lookup_cmd argument.
4220 (print_help_for_command): Show default args under the layout
4221 alias some_alias = some_aliased_cmd some_alias_default_arg.
4222 * cli/cli-decode.h (struct cmd_list_element): New member default_args.
4223 xfree default_args in destructor.
4224 * cli/cli-script.c (process_next_line, do_define_command):
4225 Add NULL for new default_args lookup_cmd argument.
4226 * command.h: Declare new default_args argument in lookup_cmd
4227 and lookup_cmd_1.
4228 * completer.c (complete_line_internal_1):
4229 Add NULL for new default_args lookup_cmd or lookup_cmd_1 argument.
4230 * guile/scm-cmd.c (gdbscm_parse_command_name): Likewise.
4231 * guile/scm-param.c (add_setshow_generic, pascm_parameter_defined_p):
4232 Likewise.
4233 * infcmd.c (_initialize_infcmd): Likewise.
4234 * python/py-auto-load.c (gdbpy_initialize_auto_load): Likewise.
4235 * python/py-cmd.c (gdbpy_parse_command_name): Likewise.
4236 * python/py-param.c (add_setshow_generic): Likewise.
4237 * remote.c (_initialize_remote): Likewise.
4238 * top.c (execute_command): Prepend default_args if command has some.
4239 (set_verbose):
4240 Add NULL for new default_args lookup_cmd or lookup_cmd_1 argument.
4241 * tracepoint.c (validate_actionline, encode_actions_1):
4242 Add NULL for new default_args lookup_cmd or lookup_cmd_1 argument.
4243
bd920864
TBA
42442020-06-22 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4245
4246 * jit.c (jit_read_descriptor): Use bool as the return type.
4247 (jit_breakpoint_re_set_internal): Use bool as the return type.
4248 Invert the return value logic; return true if the jit breakpoint
4249 has been successfully initialized.
4250 (jit_inferior_init): Update the call to
4251 jit_breakpoint_re_set_internal.
4252
f8098322
PA
42532020-06-22 Pedro Alves <palves@redhat.com>
4254
4255 PR gdb/25939
4256 * procfs.c (procfs_target::wait): Don't reference inferior_ptid.
4257 Use the current inferior instead. Don't return
4258 TARGET_WAITKIND_SPURIOUS/inferior_ptid -- instead continue and
4259 wait again.
4260 * sol-thread.c (sol_thread_target::wait): Don't reference
4261 inferior_ptid.
4262 (ps_lgetregs, ps_lsetregs, ps_lgetfpregs, ps_lsetfpregs)
4263 (sol_update_thread_list_callback): Use the current inferior's pid
4264 instead of inferior_ptid.
4265
196535a6
RO
42662020-06-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
4267
4268 * procfs.c: Cleanup many comments.
4269
4270 (READ_WATCHFLAG, WRITE_WATCHFLAG, EXEC_WATCHFLAG)
4271 (AFTER_WATCHFLAG): Replace by value.
4272
4273 (MAIN_PROC_NAME_FORMAT): Inline ...
4274 (create_procinfo): ... here.
4275
4276 (procfs_debug_inferior): Remove SYS_exec handling.
4277 (syscall_is_exec): Likewise.
4278 (procfs_set_exec_trap): Likewise.
4279
4280 (syscall_is_lwp_exit): Inline in callers.
4281 (syscall_is_exit): Likewise.
4282 (syscall_is_exec): Likewise.
4283 (syscall_is_lwp_create): Likewise.
4284
4285 (invalidate_cache): Remove #if 0 code.
4286
4287 (make_signal_thread_runnable): Remove.
4288 (procfs_target::resume): Remove #if 0 code.
4289
cf6f3e86
RO
42902020-06-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
4291
4292 PR gdb/25939
4293 * procfs.c (procfs_target::procfs_init_inferior): Move push_target
4294 call ...
4295 (procfs_target::create_inferior): ... here.
4296
48e9cc84
PW
42972020-06-21 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4298
4299 * exec.c (validate_exec_file): Ensure the build-id is up to
4300 date by calling reopen_exec_file (that checks file timestamp
4301 to decide to re-read the file).
4302
3922b302
PA
43032020-06-18 Pedro Alves <palves@redhat.com>
4304
4305 PR gdb/25412
4306 * gdbthread.h (delete_thread, delete_thread_silent)
4307 (find_thread_ptid): Update comments.
4308 * thread.c (current_thread_): New global.
4309 (is_current_thread): Move higher, and reimplement.
4310 (inferior_thread): Reimplement.
4311 (set_thread_exited): Use bool. Add assertions.
4312 (add_thread_silent): Simplify thread-reuse handling by always
4313 calling delete_thread.
4314 (delete_thread): Remove intro comment.
4315 (find_thread_ptid): Skip exited threads.
4316 (switch_to_thread_no_regs): Write to current_thread_.
4317 (switch_to_no_thread): Check CURRENT_THREAD_ instead of
4318 INFERIOR_PTID. Clear current_thread_.
4319
6dbdab44
PA
43202020-06-18 Pedro Alves <palves@redhat.com>
4321
4322 * aix-thread.c (pd_update): Use switch_to_thread.
4323
2da4b788
PA
43242020-06-18 Pedro Alves <palves@redhat.com>
4325
4326 * ravenscar-thread.c (ravenscar_thread_target): Update.
4327 (ravenscar_thread_target::update_inferior_ptid): Rename to ...
4328 (ravenscar_thread_target::add_active_thread): ... this. Don't
4329 set m_base_ptid here. Update to avoid referencing inferior_ptid.
4330 (ravenscar_thread_target::wait): Don't write to inferior_ptid.
4331
50838d1b
PA
43322020-06-18 Pedro Alves <palves@redhat.com>
4333
4334 * nat/windows-nat.c (current_windows_thread): Remove.
4335 * nat/windows-nat.h (current_windows_thread): Remove.
4336 * windows-nat.c (windows_nat_target::stopped_by_sw_breakpoint):
4337 Adjust.
4338 (display_selectors): Adjust to fetch the current
4339 windows_thread_info based on inferior_ptid.
4340 (fake_create_process): No longer write to current_windows_thread.
4341 (windows_nat_target::get_windows_debug_event):
4342 Don't set inferior_ptid or current_windows_thread.
4343 (windows_nat_target::wait): Adjust to not rely on
4344 current_windows_thread.
4345 (do_initial_windows_stuff): Now a method of windows_nat_target.
4346 Switch to the last_ptid thread.
4347 (windows_nat_target::attach): Adjust.
4348 (windows_nat_target::detach): Use switch_to_no_thread instead of
4349 writing to inferior_ptid directly.
4350 (windows_nat_target::create_inferior): Adjust.
4351
31ce04e9
PA
43522020-06-18 Pedro Alves <palves@redhat.com>
4353
4354 * windows-nat.c (do_initial_windows_stuff): No longer set inferior_ptid.
4355
1ee1a363
PA
43562020-06-18 Pedro Alves <palves@redhat.com>
4357
4358 * go32-nat.c (go32_nat_target::create_inferior): Switch to thread
4359 after creating it, instead of writing to inferior_ptid. Don't
4360 write to inferior_ptid.
4361
6d350754
PA
43622020-06-18 Pedro Alves <palves@redhat.com>
4363
4364 * fork-child.c (postfork_hook): Don't write to inferior_ptid.
4365
5d971d48
PA
43662020-06-18 Pedro Alves <palves@redhat.com>
4367
4368 * bsd-kvm.c (bsd_kvm_target_open): Switch to thread after adding
4369 it, instead of writing to inferior_ptid.
4370
86e57d1b
PA
43712020-06-18 Pedro Alves <palves@redhat.com>
4372
4373 * btrace.c (btrace_fetch): Use switch_to_thread instead of writing
4374 to inferior_ptid.
4375
f2e1c129
PA
43762020-06-18 Pedro Alves <palves@redhat.com>
4377
4378 * bsd-kvm.c (bsd_kvm_target::close): Use switch_to_no_thread
4379 instead of writing to inferior_ptid directly.
4380
60db1b85
PA
43812020-06-18 Pedro Alves <palves@redhat.com>
4382
4383 * corelow.c (core_target::close): Use switch_to_no_thread instead
4384 of writing to inferior_ptid directly.
4385 (add_to_thread_list, core_target_open): Use switch_to_thread
4386 instead of writing to inferior_ptid directly.
4387
fe7d6a8d
PA
43882020-06-18 Pedro Alves <palves@redhat.com>
4389
4390 * darwin-nat.c (darwin_nat_target::decode_message): Don't write to
4391 inferior_ptid.
4392 (darwin_nat_target::stop_inferior, darwin_nat_target::kill): Avoid
4393 inferior_ptid.
4394 (darwin_attach_pid): Use switch_to_no_thread instead of writing to
4395 inferior_ptid directly.
4396 (darwin_nat_target::init_thread_list): Switch to thread, instead
4397 of writing to inferior_ptid.
4398 (darwin_nat_target::attach): Don't write to inferior_ptid.
4399 (darwin_nat_target::get_ada_task_ptid): Avoid inferior_ptid.
4400
975f8708
PA
44012020-06-18 Pedro Alves <palves@redhat.com>
4402
4403 * gnu-nat.c (gnu_nat_target::create_inferior): Switch to the added
4404 thread.
4405 (gnu_nat_target::attach): Don't write to inferior_ptid directly.
4406 Instead use switch_to_thread.
4407 (gnu_nat_target::detach): Use switch_to_no_thread
4408 instead of writing to inferior_ptid directly. Used passed-in
4409 inferior instead of looking up the inferior by pid.
4410
1a204730
PA
44112020-06-18 Pedro Alves <palves@redhat.com>
4412
4413 * go32-nat.c (go32_nat_target::create_inferior): Don't write to
4414 inferior_ptid.
4415
ebe84f23
PA
44162020-06-18 Pedro Alves <palves@redhat.com>
4417
4418 * nto-procfs.c (nto_procfs_target::update_thread_list): Avoid
4419 inferior_ptid.
4420 (nto_procfs_target::attach): Avoid inferior_ptid. Switch to
4421 thread.
4422 (nto_procfs_target::detach): Avoid referencing
4423 inferior_ptid. Use switch_to_no_thread instead of writing to
4424 inferior_ptid directly.
4425 (nto_procfs_target::mourn_inferior): Use switch_to_no_thread
4426 instead of writing to inferior_ptid directly.
4427 (nto_procfs_target::create_inferior): Avoid inferior_ptid. Switch
4428 to thread.
4429
191f02e5
PA
44302020-06-18 Pedro Alves <palves@redhat.com>
4431
4432 * remote-sim.c (gdbsim_target::create_inferior): Switch to thread
4433 after creating it, instead of writing to inferior_ptid.
4434 (gdbsim_target_open): Use switch_to_no_thread instead of writing
4435 to inferior_ptid directly.
4436 (gdbsim_target::wait): Don't write to inferior_ptid.
4437
0ac55310
PA
44382020-06-18 Pedro Alves <palves@redhat.com>
4439
4440 * remote.c (remote_target::remote_notice_new_inferior): Use
4441 switch_to_thread instead of writing to inferior_ptid directly.
4442 (remote_target::add_current_inferior_and_thread): Use
4443 switch_to_no_thread instead of writing to inferior_ptid directly.
4444 (extended_remote_target::attach): Use switch_to_inferior_no_thread
4445 and switch_to_thread instead of using set_current_inferior or
4446 writing to inferior_ptid directly.
4447
5233f39b
PA
44482020-06-18 Pedro Alves <palves@redhat.com>
4449
4450 * tracectf.c (ctf_target_open): Switch to added thread instead of
4451 writing to inferior_ptid directly.
4452 (ctf_target::close): Use switch_to_no_thread instead of writing to
4453 inferior_ptid directly.
4454
087e161b
PA
44552020-06-18 Pedro Alves <palves@redhat.com>
4456
4457 * tracefile-tfile.c (tfile_target_open): Don't write to
4458 inferior_ptid directly, instead switch to added thread.
4459 (tfile_target::close): Use switch_to_no_thread instead of writing
4460 to inferior_ptid directly.
4461
7fb43e53
PA
44622020-06-18 Pedro Alves <palves@redhat.com>
4463
4464 * procfs.c (procfs_target::attach): Don't write to inferior_ptid.
4465 (procfs_target::detach): Use switch_to_no_thread
4466 instead of writing to inferior_ptid directly.
4467 (do_attach): Change return type to void. Switch to the added
4468 thread.
4469 (procfs_target::create_inferior): Switch to the added thread.
4470 (procfs_do_thread_registers): Don't write to inferior_ptid.
4471
18493a00
PA
44722020-06-18 Pedro Alves <palves@redhat.com>
4473
4474 * infrun.c (generic_mourn_inferior): Use switch_to_thread instead
4475 of writing to inferior_ptid.
4476 (scoped_restore_exited_inferior): Delete.
4477 (handle_vfork_child_exec_or_exit): Simplify using
4478 scoped_restore_current_pspace_and_thread. Use switch_to_thread
4479 instead of writing to inferior_ptid.
4480 (THREAD_STOPPED_BY): Delete.
4481 (thread_stopped_by_watchpoint, thread_stopped_by_sw_breakpoint)
4482 (thread_stopped_by_hw_breakpoint): Delete.
4483 (save_waitstatus): Use
4484 scoped_restore_current_thread+switch_to_thread, and call
4485 target_stopped_by_watchpoint instead of
4486 thread_stopped_by_watchpoint, target_stopped_by_sw_breakpoint
4487 instead of thread_stopped_by_sw_breakpoint, and
4488 target_stopped_by_hw_breakpoint instead of
4489 thread_stopped_by_hw_breakpoint.
4490 (handle_inferior_event)
4491 <TARGET_WAITKIND_EXITED/TARGET_WAITKIND_SIGNALLED>: Don't write to
4492 inferior_ptid directly, nor
4493 set_current_inferior/set_current_program_space. Use
4494 switch_to_thread / switch_to_inferior_no_thread instead.
4495
a0776b13
PA
44962020-06-18 Pedro Alves <palves@redhat.com>
4497
4498 * target.c (generic_mourn_inferior): Use switch_to_no_thread
4499 instead of writing to inferior_ptid.
4500
6155c136
PA
45012020-06-18 Pedro Alves <palves@redhat.com>
4502
4503 * inf-ptrace.c (inf_ptrace_target::create_inferior): Switch to the
4504 added thread.
4505 (inf_ptrace_target::attach): Don't write to inferior_ptid. Switch
4506 to the added thread.
4507 (inf_ptrace_target::detach_success): Use switch_to_no_thread
4508 instead of writing to inferior_ptid.
4509
c5316fc6
PA
45102020-06-18 Pedro Alves <palves@redhat.com>
4511
4512 * gdbarch-selftests.c: Include "progspace-and-thread.h".
4513 (register_to_value_test): Mock a program_space too. Heap-allocate
4514 the address space. Don't write to inferior_ptid. Use
4515 switch_to_thread instead.
4516
8df01799
PA
45172020-06-18 Pedro Alves <palves@redhat.com>
4518
4519 * linux-tdep.c (find_signalled_thread(thread_info *,void *)):
4520 Delete.
4521 (find_signalled_thread()): New, factored out from
4522 linux_make_corefile_notes and adjusted to handle exited threads.
4523 (linux_make_corefile_notes): Adjust to use the new
4524 find_signalled_thread.
4525
41792d68
PA
45262020-06-18 Pedro Alves <palves@redhat.com>
4527
4528 * linux-tdep.c (btrace_fetch): Save/restore current thread instead
4529 of saving/restoring inferior_ptid.
4530
612f258a
TT
45312020-06-17 Tom Tromey <tom@tromey.com>
4532
4533 * tui/tui-win.h (tui_scroll_forward, tui_scroll_backward)
4534 (tui_scroll_left, tui_scroll_right, struct tui_win_info): Don't
4535 declare.
4536 * tui/tui-data.h (MIN_CMD_WIN_HEIGHT): Remove.
4537
efb763a5
SM
45382020-06-15 Simon Marchi <simon.marchi@efficios.com>
4539
4540 * dwarf2/read.c (dwarf2_initialize_objfile): Check for presence
4541 of partial symtabs.
4542
2951f6c0
SM
45432020-06-17 Simon Marchi <simon.marchi@efficios.com>
4544
4545 * regformats/reg-arm.dat: Remove.
4546 * regformats/reg-bfin.dat: Remove.
4547 * regformats/reg-cris.dat: Remove.
4548 * regformats/reg-crisv32.dat: Remove.
4549 * regformats/reg-m32r.dat: Remove.
4550 * regformats/reg-tilegx.dat: Remove.
4551 * regformats/reg-tilegx32.dat: Remove.
4552
7d458ea5
SM
45532020-06-17 Simon Marchi <simon.marchi@efficios.com>
4554
4555 * features/Makefile (WHICH): Remove arm files.
4556 * regformats/arm/arm-with-iwmmxt.dat: Remove.
4557 * regformats/arm/arm-with-neon.dat: Remove.
4558 * regformats/arm/arm-with-vfpv2.dat: Remove.
4559 * regformats/arm/arm-with-vfpv3.dat: Remove.
4560
3af96c0d
SM
45612020-06-17 Simon Marchi <simon.marchi@efficios.com>
4562
4563 * features/Makefile (XMLTOC): Remove rx.xml.
4564
b25e22fd
PA
45652020-06-17 Pedro Alves <palves@redhat.com>
4566
4567 * gdbthread.h (thread_control_state) <trap_expected> Update
4568 comments.
4569
a78a19b1
AB
45702020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
4571
4572 * ada-lang.c (ada_lookup_symbol_nonlocal): Rename to
4573 ada_language::lookup_symbol_nonlocal.
4574 (ada_language_data): Delete la_lookup_symbol_nonlocal initializer.
4575 (ada_language::lookup_symbol_nonlocal): New member function,
4576 implementation from ada_lookup_symbol_nonlocal.
4577 * c-lang.c (c_language_data): Delete la_lookup_symbol_nonlocal
4578 initializer.
4579 (cplus_language_data): Delete la_lookup_symbol_nonlocal
4580 initializer.
4581 (cplus_language::lookup_symbol_nonlocal): New member function.
4582 (asm_language_data): Delete la_lookup_symbol_nonlocal initializer.
4583 (minimal_language_data) Likewise.
4584 * cp-namespace.c (cp_lookup_nested_symbol): Update comment.
4585 * d-lang.c (d_language_data): Delete la_lookup_symbol_nonlocal
4586 initializer.
4587 (d_language::lookup_symbol_nonlocal): New member function.
4588 * f-lang.c (f_language_data): Delete la_lookup_symbol_nonlocal
4589 initializer.
4590 (f_language::lookup_symbol_nonlocal): New member function.
4591 * go-lang.c (go_language_data): Delete la_lookup_symbol_nonlocal
4592 initializer.
4593 * language.c (unknown_language_data): Likewise.
4594 (auto_language_data): Likewise.
4595 * language.h (language_data): Delete la_lookup_symbol_nonlocal
4596 field.
4597 (language_defn::lookup_symbol_nonlocal): New member function.
4598 * m2-lang.c (m2_language_data): Delete la_lookup_symbol_nonlocal
4599 initializer.
4600 * objc-lang.c (objc_language_data): Likewise.
4601 * opencl-lang.c (opencl_language_data): Likewise.
4602 * p-lang.c (pascal_language_data): Likewise.
4603 * rust-lang.c (rust_lookup_symbol_nonlocal): Rename to
4604 rust_language::lookup_symbol_nonlocal.
4605 (rust_language_data): Delete la_lookup_symbol_nonlocal
4606 initializer.
4607 (rust_language::lookup_symbol_nonlocal): New member function,
4608 implementation from rust_lookup_symbol_nonlocal.
4609 * symtab.c (lookup_symbol_aux): Update call to
4610 lookup_symbol_nonlocal.
4611 (basic_lookup_symbol_nonlocal): Rename to...
4612 (language_defn::lookup_symbol_nonlocal): ...this, and update
4613 header comment. Remove language_defn parameter, and replace with
4614 uses of `this'.
4615 * symtab.h (basic_lookup_symbol_nonlocal): Delete declaration.
4616
ebe2334e
AB
46172020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
4618
4619 * ada-lang.c (ada_language_data): Delete la_value_print_inner
4620 initializer.
4621 (ada_language::value_print_inner): New member function.
4622 * c-lang.c (c_language_data): Delete la_value_print_inner
4623 initializer.
4624 (cplus_language_data): Likewise.
4625 (asm_language_data): Likewise.
4626 (minimal_language_data): Likewise.
4627 * d-lang.c (d_language_data): Likewise.
4628 (d_language::value_print_inner): New member function.
4629 * f-lang.c (f_language_data): Delete la_value_print_inner
4630 initializer.
4631 (f_language::value_print_inner): New member function.
4632 * f-lang.h (f_value_print_innner): Rename to...
4633 (f_value_print_inner): ...this (note spelling of 'inner').
4634 * f-valprint.c (f_value_print_innner): Rename to...
4635 (f_value_print_inner): ...this (note spelling of 'inner').
4636 * go-lang.c (go_language_data): Delete la_value_print_inner
4637 initializer.
4638 (go_language::value_print_inner): New member function.
4639 * language.c (language_defn::value_print_inner): Define new member
4640 function.
4641 (unk_lang_value_print_inner): Delete.
4642 (unknown_language_data): Delete la_value_print_inner initializer.
4643 (unknown_language::value_print_inner): New member function.
4644 (auto_language_data): Delete la_value_print_inner initializer.
4645 (auto_language::value_print_inner): New member function.
4646 * language.h (language_data): Delete la_value_print_inner field.
4647 (language_defn::value_print_inner): Delcare new member function.
4648 * m2-lang.c (m2_language_data): Delete la_value_print_inner
4649 initializer.
4650 (m2_language::value_print_inner): New member function.
4651 * objc-lang.c (objc_language_data): Delete la_value_print_inner
4652 initializer.
4653 * opencl-lang.c (opencl_language_data): Likewise.
4654 * p-lang.c (pascal_language_data): Likewise.
4655 (pascal_language::value_print_inner): New member function.
4656 * rust-lang.c (rust_language_data): Delete la_value_print_inner
4657 initializer.
4658 (rust_language::value_print_inner): New member function.
4659 * valprint.c (do_val_print): Update call to value_print_inner.
4660
a1d1fa3e
AB
46612020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
4662
4663 * ada-lang.c (ada_language_data): Delete la_value_print
4664 initializer.
4665 (ada_language::value_print): New member function.
4666 * c-lang.c (c_language_data): Delete la_value_print initializer.
4667 (cplus_language_data): Likewise.
4668 (asm_language_data): Likewise.
4669 (minimal_language_data): Likewise.
4670 * d-lang.c (d_language_data): Likewise.
4671 * f-lang.c (f_language_data): Likewise.
4672 * go-lang.c (go_language_data): Likewise.
4673 * language.c (unk_lang_value_print): Delete.
4674 (language_defn::value_print): Define new member function.
4675 (unknown_language_data): Delete la_value_print initializer.
4676 (unknown_language::value_print): New member function.
4677 (auto_language_data): Delete la_value_print initializer.
4678 (auto_language::value_print): New member function.
4679 * language.h (language_data): Delete la_value_print field.
4680 (language_defn::value_print): Declare new member function.
4681 (LA_VALUE_PRINT): Update call to value_print.
4682 * m2-lang.c (m2_language_data): Delete la_value_print initializer.
4683 * objc-lang.c (objc_language_data): Likewise.
4684 * opencl-lang.c (opencl_language_data): Likewise.
4685 * p-lang.c (pascal_language_data): Likewise.
4686 (pascal_language::value_print): New member function.
4687 * rust-lang.c (rust_language_data): Delete la_value_print
4688 initializer.
4689
f16a9f57
AB
46902020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
4691
4692 * ada-lang.c (ada_watch_location_expression): Rename to
4693 ada_language::watch_location_expression.
4694 (ada_language_data): Delete la_watch_location_expression
4695 initializer.
4696 (ada_language::watch_location_expression): New member function,
4697 implementation from ada_watch_location_expression.
4698 * breakpoint.c (watch_command_1): Update call to
4699 watch_location_expression.
4700 * c-lang.c (c_watch_location_expression): Rename to
4701 language_defn::watch_location_expression.
4702 (c_language_data): Delete la_watch_location_expression
4703 initializer.
4704 (cplus_language_data): Likewise.
4705 (asm_language_data): Likewise.
4706 (minimal_language_data): Likewise.
4707 * c-lang.h (c_watch_location_expression): Delete declaration.
4708 * d-lang.c (d_language_data): Delete la_watch_location_expression
4709 initializer.
4710 * f-lang.c (f_language_data): Likewise.
4711 * go-lang.c (go_language_data): Likewise.
4712 * language.c (language_defn::watch_location_expression): Member
4713 function implementation from c_watch_location_expression.
4714 (unknown_language_data): Delete la_watch_location_expression
4715 initializer.
4716 (auto_language_data): Likewise.
4717 * language.h (language_data): Delete la_watch_location_expression
4718 field.
4719 (language_defn::watch_location_expression): Declare new member
4720 function.
4721 * m2-lang.c (m2_language_data): Delete
4722 la_watch_location_expression initializer.
4723 * objc-lang.c (objc_language_data): Likewise.
4724 * opencl-lang.c (opencl_language_data): Likewise.
4725 * p-lang.c (pascal_language_data): Likewise.
4726 * rust-lang.c (rust_watch_location_expression): Rename to
4727 rust_language::watch_location_expression.
4728 (rust_language_data): Delete la_watch_location_expression
4729 initializer.
4730 (rust_language::watch_location_expression): New member function,
4731 implementation from rust_watch_location_expression.
4732
7e56227d
AB
47332020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
4734
4735 * ada-lang.c (ada_collect_symbol_completion_matches): Rename to
4736 ada_language::collect_symbol_completion_matches.
4737 (ada_language_data): Delete la_collect_symbol_completion_matches
4738 initializer.
4739 (ada_language::collect_symbol_completion_matches): New member
4740 function, implementation from
4741 ada_collect_symbol_completion_matches.
4742 * c-lang.c (c_language_data): Delete
4743 la_collect_symbol_completion_matches initializer.
4744 (cplus_language_data): Likewise.
4745 (asm_language_data): Likewise.
4746 (minimal_language_data): Likewise.
4747 * d-lang.c (d_language_data): Likewise.
4748 * f-lang.c (f_collect_symbol_completion_matches): Rename to
4749 f_language::collect_symbol_completion_matches.
4750 (f_language_data): Delete la_collect_symbol_completion_matches
4751 initializer.
4752 (f_language::collect_symbol_completion_matches) New member
4753 function, implementation from f_collect_symbol_completion_matches.
4754 * go-lang.c (go_language_data): Delete
4755 la_collect_symbol_completion_matches initializer.
4756 * language.c (unknown_language_data): Likewise.
4757 (auto_language_data): Likewise.
4758 * language.h (language_data): Delete
4759 la_collect_symbol_completion_matches field.
4760 (language_defn::collect_symbol_completion_matches): New member
4761 function.
4762 * m2-lang.c (m2_language_data): Delete
4763 la_collect_symbol_completion_matches initializer.
4764 * objc-lang.c (objc_language_data): Likewise.
4765 * opencl-lang.c (opencl_language_data): Likewise.
4766 * p-lang.c (pascal_language_data): Likewise.
4767 * rust-lang.c (rust_language_data): Likewise.
4768 * symtab.c (default_collect_symbol_completion_matches): Delete.
4769 (collect_symbol_completion_matches): Update call to
4770 collect_symbol_completion_matches.
4771 (collect_symbol_completion_matches_type): Likewise.
4772 * symtab.h (default_collect_symbol_completion_matches): Delete
4773 declaration.
4774
53fc67f8
AB
47752020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
4776
4777 * ada-lang.c (ada_get_gdb_completer_word_break_characters): Delete.
4778 (ada_language_data): Delete la_word_break_characters initializer.
4779 (ada_language::word_break_characters): New member function.
4780 * c-lang.c (c_language_data): Delete la_word_break_characters
4781 initializer.
4782 (cplus_language_data): Likewise.
4783 (asm_language_data): Likewise.
4784 (minimal_language_data): Likewise.
4785 * completer.c: Update global comment.
4786 (advance_to_expression_complete_word_point): Update call to
4787 word_break_characters.
4788 (complete_files_symbols): Likewise.
4789 (complete_line_internal_1): Likewise.
4790 (default_completer_handle_brkchars): Likewise.
4791 (skip_quoted_chars): Likewise.
4792 * d-lang.c (d_language_data): Delete la_word_break_characters
4793 initializer.
4794 * f-lang.c (f_word_break_characters): Delete.
4795 (f_language_data): Delete la_word_break_characters initializer.
4796 (f_language::word_break_characters): New member function.
4797 * go-lang.c (go_language_data): Delete la_word_break_characters
4798 initializer.
4799 * language.c (unknown_language_data): Likewise.
4800 (auto_language_data): Likewise.
4801 * language.h (default_word_break_characters): Move declaration to
4802 earlier in the file.
4803 (language_data): Delete la_word_break_characters field.
4804 (language_defn::word_break_characters): New member function.
4805 * m2-lang.c (m2_language_data): Delete la_word_break_characters
4806 initializer.
4807 * objc-lang.c (objc_language_data): Likewise.
4808 * opencl-lang.c (opencl_language_data): Likewise.
4809 * p-lang.c (pascal_language_data): Likewise.
4810 * rust-lang.c (rust_language_data): Likewise.
4811
c9debfb9
AB
48122020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
4813
4814 * ada-lang.c (ada_get_symbol_name_matcher): Update header comment.
4815 (ada_language_data): Delete la_get_symbol_name_matcher
4816 initializer.
4817 (language_defn::get_symbol_name_matcher_inner): New member
4818 function.
4819 * c-lang.c (c_language_data): Delete la_get_symbol_name_matcher
4820 initializer.
4821 (cplus_language_data): Likewise.
4822 (cplus_language::get_symbol_name_matcher_inner): New member
4823 function.
4824 (asm_language_data): Delete la_get_symbol_name_matcher initializer.
4825 (minimal_language_data): Likewise.
4826 * cp-support.h (cp_get_symbol_name_matcher): Update header comment.
4827 * d-lang.c (d_language_data): Delete la_get_symbol_name_matcher
4828 initializer.
4829 * dictionary.c (iter_match_first_hashed): Update call to
4830 get_symbol_name_matcher.
4831 (iter_match_next_hashed): Likewise.
4832 (iter_match_next_linear): Likewise.
4833 * dwarf2/read.c (dw2_expand_symtabs_matching_symbol): Likewise.
4834 * f-lang.c (f_language_data): Delete la_get_symbol_name_matcher
4835 initializer.
4836 (f_language::get_symbol_name_matcher_inner): New member function.
4837 * go-lang.c (go_language_data): Delete la_get_symbol_name_matcher
4838 initializer.
4839 * language.c (default_symbol_name_matcher): Update header comment,
4840 make static.
4841 (language_defn::get_symbol_name_matcher): New definition.
4842 (language_defn::get_symbol_name_matcher_inner): Likewise.
4843 (get_symbol_name_matcher): Delete.
4844 (unknown_language_data): Delete la_get_symbol_name_matcher
4845 initializer.
4846 (auto_language_data): Likewise.
4847 * language.h (language_data): Delete la_get_symbol_name_matcher
4848 field.
4849 (language_defn::get_symbol_name_matcher): New member function.
4850 (language_defn::get_symbol_name_matcher_inner): Likewise.
4851 (default_symbol_name_matcher): Delete declaration.
4852 * linespec.c (find_methods): Update call to
4853 get_symbol_name_matcher.
4854 * m2-lang.c (m2_language_data): Delete la_get_symbol_name_matcher
4855 initializer.
4856 * minsyms.c (lookup_minimal_symbol): Update call to
4857 get_symbol_name_matcher.
4858 (iterate_over_minimal_symbols): Likewise.
4859 * objc-lang.c (objc_language_data): Delete
4860 la_get_symbol_name_matcher initializer.
4861 * opencl-lang.c (opencl_language_data): Likewise.
4862 * p-lang.c (pascal_language_data): Likewise.
4863 * psymtab.c (psymbol_name_matches): Update call to
4864 get_symbol_name_matcher.
4865 * rust-lang.c (rust_language_data): Delete
4866 la_get_symbol_name_matcher initializer.
4867 * symtab.c (symbol_matches_search_name): Update call to
4868 get_symbol_name_matcher.
4869 (compare_symbol_name): Likewise.
4870
9a49ad8c
AB
48712020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
4872
4873 * ada-lang.c (ada_language_data): Delete la_compute_program
4874 initializer.
4875 * c-lang.c (c_language_data): Likewise.
4876 (c_language::compute_program): New member function.
4877 (cplus_language_data): Delete la_compute_program initializer.
4878 (cplus_language::compute_program): New member function.
4879 (asm_language_data): Delete la_compute_program initializer.
4880 (minimal_language_data): Likewise.
4881 * c-lang.h (c_compute_program): Update comment.
4882 (cplus_compute_program): Likewise.
4883 * compile/compile-c-support.c (c_compute_program): Likewise.
4884 (cplus_compute_program): Likewise.
4885 * compile/compile.c (compile_to_object): Update call to
4886 la_compute_program.
4887 * d-lang.c (d_language_data): Delete la_compute_program
4888 initializer.
4889 * f-lang.c (f_language_data): Likewise.
4890 * go-lang.c (go_language_data): Likewise.
4891 * language.c (unknown_language_data): Likewise.
4892 (auto_language_data): Likewise.
4893 * language.h (language_data): Delete la_compute_program field.
4894 (language_defn::compute_program): New member function.
4895 * m2-lang.c (m2_language_data): Delete la_compute_program
4896 initializer.
4897 * objc-lang.c (objc_language_data): Likewise.
4898 * opencl-lang.c (opencl_language_data): Likewise.
4899 * p-lang.c (pascal_language_data): Likewise.
4900 * rust-lang.c (rust_language_data): Likewise.
4901
eff93b4d
AB
49022020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
4903
4904 * ada-lang.c (ada_language_data) Delete
4905 la_class_name_from_physname initializer.
4906 * c-lang.c (c_language_data): Likewise.
4907 (cplus_language_data): Likewise.
4908 (cplus_language::class_name_from_physname): New member function.
4909 (asm_language_data): Delete la_class_name_from_physname
4910 initializer.
4911 (minimal_language_data): Likewise.
4912 * d-lang.c (d_language_data): Likewise.
4913 * dwarf2/read.c (guess_partial_die_structure_name): Update to call
4914 method on language_defn class.
4915 (guess_full_die_structure_name): Likewise.
4916 * f-lang.c (f_language_data): Delete la_class_name_from_physname
4917 initializer.
4918 * go-lang.c (go_language_data): Likewise.
4919 * language.c (language_class_name_from_physname): Delete.
4920 (unk_lang_class_name): Delete.
4921 (unknown_language_data): Delete la_class_name_from_physname
4922 initializer.
4923 (auto_language_data): Likewise.
4924 * language.h (language_data): Delete la_class_name_from_physname
4925 field.
4926 (language_defn::class_name_from_physname): New function.
4927 (language_class_name_from_physname): Delete declaration.
4928 * m2-lang.c (m2_language_data): Delete la_class_name_from_physname
4929 initializer.
4930 * objc-lang.c (objc_language_data): Likewise.
4931 * opencl-lang.c (opencl_language_data): Likewise.
4932 * p-lang.c (pascal_language_data): Likewise.
4933 * rust-lang.c (rust_language_data): Likewise.
4934
de543742
TT
49352020-06-16 Tom Tromey <tom@tromey.com>
4936
4937 * tui/tui-data.h (STATUS_NAME): New macro.
4938 * tui/tui-layout.c (tui_remove_some_windows)
4939 (initialize_known_windows, tui_register_window)
4940 (tui_layout_split::remove_windows, initialize_layouts)
4941 (tui_new_layout_command): Don't use hard-coded window names.
4942
a350efd4
TT
49432020-06-16 Tom Tromey <tom@tromey.com>
4944
4945 PR tui/25348:
4946 * tui/tui.c (tui_ensure_readline_initialized): Rename from
4947 tui_initialize_readline. Only run once. Call rl_initialize.
4948 * tui/tui.h (tui_ensure_readline_initialized): Rename from
4949 tui_initialize_readline.
4950 * tui/tui-io.c (tui_setup_io): Call
4951 tui_ensure_readline_initialized.
4952 * tui/tui-interp.c (tui_interp::init): Update.
4953
39ec0490
TT
49542020-06-16 Tom Tromey <tom@tromey.com>
4955
4956 * tui/tui-layout.c (tui_layout_split::remove_windows): Fix logic.
4957 Also preserve the status window.
4958
d2d1ea20
TT
49592020-06-16 Tom Tromey <tom@tromey.com>
4960
4961 * python/py-tui.c (tui_py_window::~tui_py_window): Handle case
4962 where m_window==nullptr.
4963
66920317
TT
49642020-06-15 Tom Tromey <tromey@adacore.com>
4965
4966 * windows-nat.c (windows_nat::handle_output_debug_string):
4967 Update.
4968 (windows_nat::handle_ms_vc_exception): Update.
4969 * target.h (target_read_string): Change API.
4970 * target.c (target_read_string): Change API.
4971 * solib-svr4.c (open_symbol_file_object, svr4_read_so_list):
4972 Update.
4973 * solib-frv.c (frv_current_sos): Update.
4974 * solib-dsbt.c (dsbt_current_sos): Update.
4975 * solib-darwin.c (darwin_current_sos): Update.
4976 * linux-thread-db.c (inferior_has_bug): Update.
4977 * expprint.c (print_subexp_standard): Update.
4978 * ada-lang.c (ada_main_name, ada_tag_name_from_tsd)
4979 (ada_exception_message_1): Update.
4980
a5d871dd
TT
49812020-06-15 Tom Tromey <tromey@adacore.com>
4982
4983 * linux-tdep.c (dump_mapping_p): Use target_read_memory.
4984
670e35fa
TT
49852020-06-15 Tom Tromey <tromey@adacore.com>
4986
4987 * valprint.c (read_string): Update comment.
4988 * target.c (MIN): Remove.
4989 (target_read_string): Rewrite.
4990
f5272a3b
TT
49912020-06-15 Tom Tromey <tromey@adacore.com>
4992
4993 * corefile.c (read_memory_string): Remove.
4994 * ada-valprint.c (ada_value_print_ptr): Update.
4995 * ada-lang.h (ada_tag_name): Change return type.
4996 * ada-lang.c (type_from_tag): Update.
4997 (ada_tag_name_from_tsd): Change return type. Use
4998 target_read_string.
4999 (ada_tag_name): Likewise.
5000 * gdbcore.h (read_memory_string): Don't declare.
5001
2c074f49
HD
50022020-06-14 Hannes Domani <ssbssa@yahoo.de>
5003
5004 * symtab.c (rbreak_command): Ignore Windows drive colon.
5005
6a17d503
SM
50062020-06-12 Simon Marchi <simon.marchi@efficios.com>
5007
5008 * NEWS: Mention removed GDBserver host support.
5009
453c733f
NC
50102020-06-12 Nelson Chu <nelson.chu@sifive.com>
5011
5012 * features/riscv/rebuild-csr-xml.sh: Updated.
5013
2b4e6a3f
TT
50142020-06-11 Tom Tromey <tom@tromey.com>
5015
5016 PR gdb/18318:
5017 * c-exp.y (lex_one_token): Handle 'p' like 'e'.
5018
4412332f
JG
50192020-06-09 Jonny Grant <jg@jguk.org>
50202020-06-09 Simon Marchi <simon.marchi@polymtl.ca>
5021
5022 * main.c (captured_main_1): Don't print new line after help.
5023 (print_gdb_help): add mailing list and IRC channel information
5024 to --help. Add new lines between items in the footer. Remove
5025 quotes around bug url.
5026
2f33032a
KS
50272020-06-11 Keith Seitz <keiths@redhat.com>
5028
5029 PR gdb/21356
5030 * gdbtypes.c (resolve_dynamic_union, resolve_dynamic_struct):
5031 Resolve typedefs for type length calculations.
5032
7ab96794
TV
50332020-06-10 Tom de Vries <tdevries@suse.de>
5034
5035 PR ada/24713
5036 * dwarf2/index-write.c (struct mapped_symtab): Add m_string_obstack.
5037 (write_psymbols): Enable .gdb_index for ada.
5038 * dwarf2/read.c: Remove comment stating .gdb_index is unsupported for
5039 ada.
5040
e5f3ece2
TV
50412020-06-10 Tom de Vries <tdevries@suse.de>
5042
5043 * dwarf2/read.c (dw2_symtab_iter_init_common): Factor out of ...
5044 (dw2_symtab_iter_init): ... here. Add variant with "offset_type
5045 namei" instead of "const char *name" argument.
5046 (dw2_map_matching_symbols): Use "offset_type namei" variant of
5047 dw2_symtab_iter_init.
5048
940da03e
SM
50492020-06-08 Simon Marchi <simon.marchi@efficios.com>
5050
5051 * gdbtypes.h (TYPE_FIELD_TYPE): Remove. Change all call sites
5052 to use type::field and field::type instead.
5053
b6cdac4b
SM
50542020-06-08 Simon Marchi <simon.marchi@efficios.com>
5055
5056 * gdbtypes.h (FIELD_TYPE): Remove. Change all call sites
5057 to use field::type instead.
5058
5d14b6e5
SM
50592020-06-08 Simon Marchi <simon.marchi@efficios.com>
5060
5061 * gdbtypes.h (struct field) <type, set_type>: New methods.
5062 Rename `type` field to...
5063 <m_type>: ... this. Change references throughout to use type or
5064 set_type methods.
5065 (FIELD_TYPE): Use field::type. Change call sites that modify
5066 the field's type to use field::set_type instead.
5067
3d967001
SM
50682020-06-08 Simon Marchi <simon.marchi@efficios.com>
5069
5070 * gdbtypes.h (TYPE_INDEX_TYPE): Remove. Change all call sites
5071 to use type::index_type instead.
5072
262abc0d
SM
50732020-06-08 Simon Marchi <simon.marchi@efficios.com>
5074
5075 * gdbtypes.h (struct type) <index_type, set_index_type>: New
5076 methods.
5077 (TYPE_INDEX_TYPE): Use type::index_type.
5078 * gdbtypes.c (create_array_type_with_stride): Likewise.
5079
82836c92
TT
50802020-06-07 Tom Tromey <tom@tromey.com>
5081
5082 * valprint.c (generic_val_print_float): Remove "embedded_offset"
5083 parameter.
5084 (generic_value_print): Update.
5085
940dace9
AB
50862020-06-05 Andrew Burgess <andrew.burgess@embecosm.com>
5087
5088 Revert commit 982a38f60b0.
5089 * python/py-tui.c (gdbpy_tui_set_title): Restore use of get.
5090
982a38f6
AB
50912020-06-05 Andrew Burgess <andrew.burgess@embecosm.com>
5092
5093 * python/py-tui.c (gdbpy_tui_set_title): Use release, not get, to
5094 avoid use after free.
5095
82f06518
TV
50962020-06-05 Tom de Vries <tdevries@suse.de>
5097
5098 * NEWS: Fix typos.
5099
f8c41851
SM
51002020-06-04 Simon Marchi <simon.marchi@efficios.com>
5101
5102 * dwarf2/read.c (dwarf2_read_gdb_index): Save partial_symtabs in
5103 the per_bfd object.
5104 (dwarf2_read_debug_names): Likewise.
5105 (dwarf2_initialize_objfile): Use partial_symtabs from per_bfd
5106 object when re-using a per_bfd object with an index.
5107
f9b5d5ea
TV
51082020-06-03 Tom de Vries <tdevries@suse.de>
5109
5110 PR symtab/26046
5111 * dwarf2/read.c (scan_partial_symbols): Recurse into DW_TAG_subprogram
5112 children for C++.
5113 (load_partial_dies): Don't skip DW_TAG_inlined_subroutine child of
5114 DW_TAG_subprogram.
5115
f6eee2d0
AB
51162020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
5117
5118 * ada-lang.c (ada_language_data): Delete skip_trampoline
5119 initializer.
5120 * c-lang.c (c_language_data): Likewise.
5121 (cplus_language_data): Likewise.
5122 (cplus_language::skip_trampoline): New member function.
5123 (asm_language_data): Delete skip_trampoline initializer.
5124 (minimal_language_data): Likewise.
5125 * d-lang.c (d_language_data): Likewise.
5126 * f-lang.c (f_language_data): Likewise.
5127 * go-lang.c (go_language_data): Likewise.
5128 * language.c (unk_lang_trampoline): Delete function.
5129 (skip_language_trampoline): Update.
5130 (unknown_language_data): Delete skip_trampoline initializer.
5131 (auto_language_data): Likewise.
5132 * language.h (language_data): Delete skip_trampoline field.
5133 (language_defn::skip_trampoline): New function.
5134 * m2-lang.c (m2_language_data): Delete skip_trampoline
5135 initializer.
5136 * objc-lang.c (objc_skip_trampoline): Delete function, move
5137 implementation to objc_language::skip_trampoline.
5138 (objc_language_data): Delete skip_trampoline initializer.
5139 (objc_language::skip_trampoline): New member function with
5140 implementation from objc_skip_trampoline.
5141 * opencl-lang.c (opencl_language_data): Delete skip_trampoline
5142 initializer.
5143 * p-lang.c (pascal_language_data): Likewise.
5144 * rust-lang.c (rust_language_data): Likewise.
5145
0a50df5d
AB
51462020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
5147
5148 * ada-lang.c (ada_language_data): Delete la_demangle initializer.
5149 (ada_language::demangle): New member function.
5150 * c-lang.c (c_language_data): Delete la_demangle initializer.
5151 (cplus_language_data): Delete la_demangle initializer.
5152 (cplus_language::demangle): New member function.
5153 (asm_language_data): Delete la_demangle initializer.
5154 (minimal_language_data): Delete la_demangle initializer.
5155 * d-lang.c (d_language_data): Delete la_demangle initializer.
5156 (d_language::demangle): New member function.
5157 * f-lang.c (f_language_data): Delete la_demangle initializer.
5158 (f_language::demangle): New member function.
5159 * go-lang.c (go_language_data): Delete la_demangle initializer.
5160 (go_language::demangle): New member function.
5161 * language.c (language_demangle): Update.
5162 (unk_lang_demangle): Delete.
5163 (unknown_language_data): Delete la_demangle initializer.
5164 (unknown_language::demangle): New member function.
5165 (auto_language_data): Delete la_demangle initializer.
5166 (auto_language::demangle): New member function.
5167 * language.h (language_data): Delete la_demangle field.
5168 (language_defn::demangle): New function.
5169 * m2-lang.c (m2_language_data): Delete la_demangle initializer.
5170 * objc-lang.c (objc_language_data): Delete la_demangle
5171 initializer.
5172 (objc_language::demangle): New member function.
5173 * opencl-lang.c (opencl_language_data): Delete la_demangle
5174 initializer.
5175 * p-lang.c (pascal_language_data): Likewise.
5176 * rust-lang.c (rust_language_data): Likewise.
5177 (rust_language::demangle): New member function.
5178
fbfb0a46
AB
51792020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
5180
5181 * ada-lang.c (ada_language_data): Delete la_print_type
5182 initializer.
5183 (ada_language::print_type): New member function.
5184 * c-lang.c (c_language_data): Delete la_print_type initializer.
5185 (c_language::print_type): New member function.
5186 (cplus_language_data): Delete la_print_type initializer.
5187 (cplus_language::print_type): New member function.
5188 (asm_language_data): Delete la_print_type initializer.
5189 (asm_language::print_type): New member function.
5190 (minimal_language_data): Delete la_print_type initializer.
5191 (minimal_language::print_type): New member function.
5192 * d-lang.c (d_language_data): Delete la_print_type initializer.
5193 (d_language::print_type): New member function.
5194 * f-lang.c (f_language_data): Delete la_print_type initializer.
5195 (f_language::print_type): New member function.
5196 * go-lang.c (go_language_data): Delete la_print_type initializer.
5197 (go_language::print_type): New member function.
5198 * language.c (unk_lang_print_type): Delete.
5199 (unknown_language_data): Delete la_print_type initializer.
5200 (unknown_language::print_type): New member function.
5201 (auto_language_data): Delete la_print_type initializer.
5202 (auto_language::print_type): New member function.
5203 * language.h (language_data): Delete la_print_type field.
5204 (language_defn::print_type): New function.
5205 (LA_PRINT_TYPE): Update.
5206 * m2-lang.c (m2_language_data): Delete la_print_type initializer.
5207 (m2_language::print_type): New member function.
5208 * objc-lang.c (objc_language_data): Delete la_print_type
5209 initializer.
5210 (objc_language::print_type): New member function.
5211 * opencl-lang.c (opencl_print_type): Delete, implementation moved
5212 to opencl_language::print_type.
5213 (opencl_language_data): Delete la_print_type initializer.
5214 (opencl_language::print_type): New member function, implementation
5215 from opencl_print_type.
5216 * p-lang.c (pascal_language_data): Delete la_print_type
5217 initializer.
5218 (pascal_language::print_type): New member function.
5219 * rust-lang.c (rust_print_type): Delete, implementation moved to
5220 rust_language::print_type.
5221 (rust_language_data): Delete la_print_type initializer.
5222 (rust_language::print_type): New member function, implementation
5223 from rust_print_type.
5224
6f827019
AB
52252020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
5226
5227 * ada-lang.c (ada_sniff_from_mangled_name): Delete function,
5228 implementation moves to...
5229 (ada_language::sniff_from_mangled_name): ...here. Update return
5230 type.
5231 (ada_language_data): Delete la_sniff_from_mangled_name
5232 initializer.
5233 * c-lang.c (c_language_data): Likewise.
5234 (cplus_language_data): Likewise.
5235 (cplus_language::sniff_from_mangled_name): New member function,
5236 implementation taken from gdb_sniff_from_mangled_name.
5237 (asm_language_data): Delete la_sniff_from_mangled_name
5238 initializer.
5239 (minimal_language_data): Likewise.
5240 * cp-support.c (gdb_sniff_from_mangled_name): Delete,
5241 implementation moves to cplus_language::sniff_from_mangled_name.
5242 * cp-support.h (gdb_sniff_from_mangled_name): Delete declaration.
5243 * d-lang.c (d_sniff_from_mangled_name): Delete, implementation
5244 moves to...
5245 (d_language::sniff_from_mangled_name): ...here.
5246 (d_language_data): Delete la_sniff_from_mangled_name initializer.
5247 * f-lang.c (f_language_data): Likewise.
5248 * go-lang.c (go_sniff_from_mangled_name): Delete, implementation
5249 moves to...
5250 (go_language::sniff_from_mangled_name): ...here.
5251 (go_language_data): Delete la_sniff_from_mangled_name initializer.
5252 * language.c (language_sniff_from_mangled_name): Delete.
5253 (unknown_language_data): Delete la_sniff_from_mangled_name
5254 initializer.
5255 (auto_language_data): Likewise.
5256 * language.h (language_data): Delete la_sniff_from_mangled_name
5257 field.
5258 (language_defn::sniff_from_mangled_name): New function.
5259 (language_sniff_from_mangled_name): Delete declaration.
5260 * m2-lang.c (m2_language_data): Delete la_sniff_from_mangled_name
5261 field.
5262 * objc-lang.c (objc_sniff_from_mangled_name): Delete,
5263 implementation moves to...
5264 (objc_language::sniff_from_mangled_name): ...here.
5265 (objc_language_data): Delete la_sniff_from_mangled_name initializer.
5266 * opencl-lang.c (opencl_language_data): Likewise.
5267 * p-lang.c (pascal_language_data): Likewise.
5268 * rust-lang.c (rust_sniff_from_mangled_name): Delete,
5269 implementation moves to...
5270 (rust_language::sniff_from_mangled_name): ...here.
5271 (rust_language_data): Delete la_sniff_from_mangled_name
5272 initializer.
5273 * symtab.c (symbol_find_demangled_name): Call
5274 sniff_from_mangled_name member function.
5275
fb8006fd
AB
52762020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
5277
5278 * ada-lang.c (ada_language_data): Delete la_search_name_hash
5279 initializer.
5280 * c-lang.c (c_language_data): Likewise.
5281 (cplus_language_data): Likewise.
5282 (cplus_language::search_name_hash): New member function.
5283 (asm_language_data): Delete la_search_name_hash initializer.
5284 (minimal_language_data): Likewise.
5285 * d-lang.c (d_language_data): Likewise.
5286 * dictionary.c (default_search_name_hash): Rename to...
5287 (language_defn::search_name_hash): ...this.
5288 * f-lang.c (f_language_data): Likewise.
5289 (f_language::search_name_hash): New member function.
5290 * go-lang.c (go_language_data): Delete la_search_name_hash
5291 initializer.
5292 * language.c (unknown_language_data): Likewise.
5293 (auto_language_data): Likewise.
5294 * language.h (struct language_data): Delete la_search_name_hash
5295 field.
5296 (language_defn::search_name_hash): Declare new member function.
5297 (default_search_name_hash): Delete declaration.
5298 * m2-lang.c (m2_language_data): Delete la_search_name_hash
5299 initializer.
5300 * objc-lang.c (objc_language_data): Likewise.
5301 * opencl-lang.c (opencl_language_data): Likewise.
5302 * p-lang.c (pascal_language_data): Likewise.
5303 * rust-lang.c (rust_language_data): Likewise.
5304 * symtab.c (search_name_hash): Update call.
5305
8e25bafe
AB
53062020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
5307
5308 * ada-lang.c (ada_language_data): Delete la_get_compile_instance
5309 initializer.
5310 * c-lang.c (class compile_instance): Declare.
5311 (c_language_data): Delete la_get_compile_instance initializer.
5312 (c_language::get_compile_instance): New member function.
5313 (cplus_language_data): Delete la_get_compile_instance initializer.
5314 (cplus_language::get_compile_instance): New member function.
5315 (asm_language_data): Delete la_get_compile_instance initializer.
5316 (minimal_language_data): Likewise.
5317 * c-lang.h (c_get_compile_context): Update comment.
5318 (cplus_get_compile_context): Update comment.
5319 * compile/compile.c (compile_to_object): Update calls, don't rely
5320 on function pointer being NULL.
5321 * d-lang.c (d_language_data): Delete la_get_compile_instance
5322 initializer.
5323 * f-lang.c (f_language_data): Likewise.
5324 * go-lang.c (go_language_data): Likewise.
5325 * language.c (unknown_language_data): Likewise.
5326 (auto_language_data): Likewise.
5327 * language.h (language_data): Delete la_get_compile_instance field.
5328 (language_defn::get_compile_instance): New member function.
5329 * m2-lang.c (m2_language_data): Delete la_get_compile_instance
5330 initializer.
5331 * objc-lang.c (objc_language_data): Likewise.
5332 * opencl-lang.c (opencl_language_data): Likewise.
5333 * p-lang.c (pascal_language_data): Likewise.
5334 * rust-lang.c (rust_language_data): Likewise.
5335
4009ee92
AB
53362020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
5337
5338 * ada-lang.c (ada_add_all_symbols): Update comment.
5339 (ada_iterate_over_symbols): Delete, move implementation to...
5340 (ada_language::iterate_over_symbols): ...here, a new member
5341 function, rewrite to use range based for loop.
5342 (ada_language_data): Delete la_iterate_over_symbols initializer.
5343 * c-lang.c (c_language_data): Likewise.
5344 (cplus_language_data): Likewise.
5345 (asm_language_data): Likewise.
5346 (minimal_language_data): Likewise.
5347 * d-lang.c (d_language_data): Likewise.
5348 * f-lang.c (f_language_data): Likewise.
5349 * go-lang.c (go_language_data): Likewise.
5350 * language.c (unknown_language_data): Likewise.
5351 (auto_language_data): Likewise.
5352 * language.h (language_data): Delete la_iterate_over_symbols field.
5353 (language_defn::iterate_over_symbols): New member function.
5354 (LA_ITERATE_OVER_SYMBOLS): Update.
5355 * linespec.c (iterate_over_all_matching_symtabs): Update.
5356 * m2-lang.c (m2_language_data): Delete la_iterate_over_symbols
5357 initializer.
5358 * objc-lang.c (objc_language_data): Likewise.
5359 * opencl-lang.c (opencl_language_data): Likewise.
5360 * p-lang.c (pascal_language_data): Likewise.
5361 * rust-lang.c (rust_language_data): Likewise.
5362
54f4ca46
AB
53632020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
5364
5365 * ada-lang.c (ada_language_data): Delete
5366 la_lookup_transparent_type initializer.
5367 * c-lang.c (c_language_data): Likewise.
5368 (cplus_language_data): Likewise.
5369 (cplus_language::lookup_transparent_type): New member function.
5370 (asm_language_data): Delete la_lookup_transparent_type
5371 initializer.
5372 (minimal_language_data): Likewise.
5373 * d-lang.c (d_language_data): Likewise.
5374 * f-lang.c (f_language_data): Likewise.
5375 * go-lang.c (go_language_data): Likewise.
5376 * language.c (unknown_language_data): Likewise.
5377 (auto_language_data): Likewise.
5378 * language.h (struct language_data): Delete
5379 la_lookup_transparent_type field.
5380 (language_defn::lookup_transparent_type): New member function.
5381 * m2-lang.c (m2_language_data): Delete la_lookup_transparent_type
5382 initializer.
5383 * objc-lang.c (objc_language_data): Likewise.
5384 * opencl-lang.c (opencl_language_data): Likewise.
5385 * p-lang.c (pascal_language_data): Likewise.
5386 * rust-lang.c (rust_language_data): Likewise.
5387 * symtab.c (symbol_matches_domain): Update call.
5388
1fb314aa
AB
53892020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
5390
5391 * ada-lang.c (ada_language_arch_info): Delete function, move
5392 implementation to...
5393 (ada_language::language_arch_info): ...here, a new member
5394 function.
5395 (ada_language_data): Delete la_language_arch_info.
5396 * c-lang.c (c_language_data): Likewise.
5397 (c_language::language_arch_info): New member function.
5398 (cplus_language_arch_info): Delete function, move
5399 implementation to...
5400 (cplus_language::language_arch_info): ...here, a new member
5401 function.
5402 (cplus_language_data): Delete la_language_arch_info.
5403 (asm_language_data): Likewise.
5404 (asm_language::language_arch_info): New member function.
5405 (minimal_language_data): Delete la_language_arch_info.
5406 (minimal_language::language_arch_info): New member function.
5407 * d-lang.c (d_language_arch_info): Delete function, move
5408 implementation to...
5409 (d_language::language_arch_info): ...here, a new member
5410 function.
5411 (d_language_data): Delete la_language_arch_info.
5412 * f-lang.c (f_language_arch_info): Delete function, move
5413 implementation to...
5414 (f_language::language_arch_info): ...here, a new member
5415 function.
5416 (f_language_data): Delete la_language_arch_info.
5417 * go-lang.c (go_language_arch_info): Delete function, move
5418 implementation to...
5419 (go_language::language_arch_info): ...here, a new member
5420 function.
5421 (go_language_data): Delete la_language_arch_info.
5422 * language.c (unknown_language_data): Likewise.
5423 (unknown_language::language_arch_info): New member function.
5424 (auto_language_data): Delete la_language_arch_info.
5425 (auto_language::language_arch_info): New member function.
5426 (language_gdbarch_post_init): Update call to
5427 la_language_arch_info.
5428 * language.h (language_data): Delete la_language_arch_info
5429 function pointer.
5430 (language_defn::language_arch_info): New function.
5431 * m2-lang.c (m2_language_arch_info): Delete function, move
5432 implementation to...
5433 (m2_language::language_arch_info): ...here, a new member
5434 function.
5435 (m2_language_data): Delete la_language_arch_info.
5436 * objc-lang.c (objc_language_arch_info): Delete function, move
5437 implementation to...
5438 (objc_language::language_arch_info): ...here, a new member
5439 function.
5440 (objc_language_data): Delete la_language_arch_info.
5441 * opencl-lang.c (opencl_language_arch_info): Delete function, move
5442 implementation to...
5443 (opencl_language::language_arch_info): ...here, a new member
5444 function.
5445 (opencl_language_data): Delete la_language_arch_info.
5446 * p-lang.c (pascal_language_arch_info): Delete function, move
5447 implementation to...
5448 (pascal_language::language_arch_info): ...here, a new member
5449 function.
5450 (pascal_language_data): Delete la_language_arch_info.
5451 * rust-lang.c (rust_language_arch_info): Delete function, move
5452 implementation to...
5453 (rust_language::language_arch_info): ...here, a new member
5454 function.
5455 (rust_language_data): Delete la_language_arch_info.
5456
48448202
AB
54572020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
5458
5459 * ada-lang.c (ada_language_data): Delete la_pass_by_reference
5460 initializer.
5461 * c-lang.c (c_language_data): Likewise.
5462 (cplus_language_data): Likewise.
5463 (cplus_language::pass_by_reference_info): New method.
5464 (asm_language_data): Delete la_pass_by_reference initializer.
5465 (minimal_language_data): Likewise.
5466 * cp-abi.c (cp_pass_by_reference): Remove use of
5467 default_pass_by_reference.
5468 * d-lang.c (d_language_data): Likewise.
5469 * f-lang.c (f_language_data): Likewise.
5470 * gnu-v3-abi.c (gnuv3_pass_by_reference): Remove use of
5471 default_pass_by_reference.
5472 * go-lang.c (go_language_data): Likewise.
5473 * language.c (language_pass_by_reference): Update.
5474 (default_pass_by_reference): Delete.
5475 (unknown_language_data): Delete la_pass_by_reference
5476 initializer.
5477 (auto_language_data): Likewise.
5478 * language.h (struct language_data): Delete la_pass_by_reference
5479 field.
5480 (language_defn::pass_by_reference_info): New member function.
5481 (default_pass_by_reference): Delete declaration.
5482 * m2-lang.c (m2_language_data): Delete la_pass_by_reference
5483 initializer.
5484 * objc-lang.c (objc_language_data): Likewise.
5485 * opencl-lang.c (opencl_language_data): Likewise.
5486 * p-lang.c (pascal_language_data): Likewise.
5487 * rust-lang.c (rust_language_data): Likewise.
5488
15e5fd35
AB
54892020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
5490
5491 * ada-lang.c (ada_read_var_value): Delete function, move
5492 implementation to...
5493 (ada_language::read_var_value): ...here.
5494 (ada_language_data): Delete la_read_var_value initializer.
5495 * c-lang.c (c_language_data): Likewise.
5496 (cplus_language_data): Likewise.
5497 (minimal_language_data): Likewise.
5498 * d-lang.c (d_language_data): Likewise.
5499 * f-lang.c (f_language_data): Likewise.
5500 * findvar.c (default_read_var_value): Rename to...
5501 (language_defn::read_var_value): ...this.
5502 * findvar.c (read_var_value): Update header comment, and change to
5503 call member function instead of function pointer.
5504 * go-lang.c (go_language_data): Likewise.
5505 * language.c (unknown_language_data): Delete la_read_var_value
5506 initializer.
5507 (auto_language_data): Likewise.
5508 * language.h (struct language_data): Delete la_read_var_value
5509 field.
5510 (language_defn::read_var_value): New member function.
5511 (default_read_var_value): Delete declaration.
5512 * m2-lang.c (m2_language_data): Delete la_read_var_value
5513 initializer.
5514 * objc-lang.c (objc_language_data): Likewise.
5515 * opencl-lang.c (opencl_language_data): Likewise.
5516 * p-lang.c (pascal_language_data): Likewise.
5517 * rust-lang.c (rust_language_data): Likewise.
5518 * value.h (default_read_var_value): Delete declaration.
5519
5bd40f2a
AB
55202020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
5521
5522 * ada-lang.c (ada_print_array_index): Delete function, move
5523 implementation to...
5524 (ada_language::print_array_index): ...here.
5525 (ada_language_data): Delete la_print_array_index initializer.
5526 * c-lang.c (c_language_data): Likewise.
5527 (cplus_language_data): Likewise.
5528 (minimal_language_data): Likewise.
5529 * d-lang.c (d_language_data): Likewise.
5530 * f-lang.c (f_language_data): Likewise.
5531 * go-lang.c (go_language_data): Likewise.
5532 * language.c (default_print_array_index): Delete function, move
5533 implementation to...
5534 (language_defn::print_array_index): ...here.
5535 (unknown_language_data): Delete la_print_array_index initializer.
5536 (auto_language_data): Likewise.
5537 * language.h (struct language_data): Delete la_print_array_index
5538 field.
5539 (language_defn::print_array_index): New member function.
5540 (LA_PRINT_ARRAY_INDEX): Update.
5541 (default_print_array_index): Delete declaration.
5542 * m2-lang.c (m2_language_data): Delete la_print_array_index
5543 initializer.
5544 * objc-lang.c (objc_language_data): Likewise.
5545 * opencl-lang.c (opencl_language_data): Likewise.
5546 * p-lang.c (pascal_language_data): Likewise.
5547 * rust-lang.c (rust_language_data): Likewise.
5548
0874fd07
AB
55492020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
5550
5551 * gdb/ada-lang.c (ada_language_defn): Convert to...
5552 (ada_language_data): ...this.
5553 (class ada_language): New class.
5554 (ada_language_defn): New static global.
5555 * gdb/c-lang.c (c_language_defn): Convert to...
5556 (c_language_data): ...this.
5557 (class c_language): New class.
5558 (c_language_defn): New static global.
5559 (cplus_language_defn): Convert to...
5560 (cplus_language_data): ...this.
5561 (class cplus_language): New class.
5562 (cplus_language_defn): New static global.
5563 (asm_language_defn): Convert to...
5564 (asm_language_data): ...this.
5565 (class asm_language): New class.
5566 (asm_language_defn): New static global.
5567 (minimal_language_defn): Convert to...
5568 (minimal_language_data): ...this.
5569 (class minimal_language): New class.
5570 (minimal_language_defn): New static global.
5571 * gdb/d-lang.c (d_language_defn): Convert to...
5572 (d_language_data): ...this.
5573 (class d_language): New class.
5574 (d_language_defn): New static global.
5575 * gdb/f-lang.c (f_language_defn): Convert to...
5576 (f_language_data): ...this.
5577 (class f_language): New class.
5578 (f_language_defn): New static global.
5579 * gdb/go-lang.c (go_language_defn): Convert to...
5580 (go_language_data): ...this.
5581 (class go_language): New class.
5582 (go_language_defn): New static global.
5583 * gdb/language.c (unknown_language_defn): Remove declaration.
5584 (current_language): Initialize to nullptr, real initialization is
5585 moved to _initialize_language.
5586 (languages): Delete global.
5587 (language_defn::languages): Define.
5588 (set_language_command): Use language_defn::languages.
5589 (set_language): Likewise.
5590 (range_error): Likewise.
5591 (language_enum): Likewise.
5592 (language_def): Likewise.
5593 (add_set_language_command): Use language_def::languages for the
5594 language list, and language_def to lookup language pointers.
5595 (skip_language_trampoline): Use language_defn::languages.
5596 (unknown_language_defn): Convert to...
5597 (unknown_language_data): ...this.
5598 (class unknown_language): New class.
5599 (unknown_language_defn): New static global.
5600 (auto_language_defn): Convert to...
5601 (auto_language_data): ...this.
5602 (class auto_language): New class.
5603 (auto_language_defn): New static global.
5604 (language_gdbarch_post_init): Use language_defn::languages.
5605 (_initialize_language): Initialize current_language.
5606 * gdb/language.h (struct language_defn): Rename to...
5607 (struct language_data): ...this.
5608 (struct language_defn): New.
5609 (auto_language_defn): Delete.
5610 (unknown_language_defn): Delete.
5611 (minimal_language_defn): Delete.
5612 (ada_language_defn): Delete.
5613 (asm_language_defn): Delete.
5614 (c_language_defn): Delete.
5615 (cplus_language_defn): Delete.
5616 (d_language_defn): Delete.
5617 (f_language_defn): Delete.
5618 (go_language_defn): Delete.
5619 (m2_language_defn): Delete.
5620 (objc_language_defn): Delete.
5621 (opencl_language_defn): Delete.
5622 (pascal_language_defn): Delete.
5623 (rust_language_defn): Delete.
5624 * gdb/m2-lang.c (m2_language_defn): Convert to...
5625 (m2_language_data): ...this.
5626 (class m2_language): New class.
5627 (m2_language_defn): New static global.
5628 * gdb/objc-lang.c (objc_language_defn): Convert to...
5629 (objc_language_data): ...this.
5630 (class objc_language): New class.
5631 (objc_language_defn): New static global.
5632 * gdb/opencl-lang.c (opencl_language_defn): Convert to...
5633 (opencl_language_data): ...this.
5634 (class opencl_language): New class.
5635 (opencl_language_defn): New static global.
5636 * gdb/p-lang.c (pascal_language_defn): Convert to...
5637 (pascal_language_data): ...this.
5638 (class pascal_language): New class.
5639 (pascal_language_defn): New static global.
5640 * gdb/rust-exp.y (rust_lex_tests): Use language_def to find
5641 language pointer, update comment format.
5642 * gdb/rust-lang.c (rust_language_defn): Convert to...
5643 (rust_language_data): ...this.
5644 (class rust_language): New class.
5645 (rust_language_defn): New static global.
5646
1313c56e
AB
56472020-06-01 Andrew Burgess <andrew.burgess@embecosm.com>
5648
5649 * dwarf2/read.c (class lnp_state_machine) <m_last_address>: New
5650 member variable.
5651 <m_stmt_at_address>: New member variable.
5652 (lnp_state_machine::record_line): Don't record some lines, update
5653 tracking of is_stmt at the same address.
5654 (lnp_state_machine::lnp_state_machine): Initialise new member
5655 variables.
5656
b7ed9f3d
ST
56572020-06-01 Samuel Thibault <samuel.thibault@ens-lyon.org>
5658
5659 * config/i386/i386gnu.mn [%_S.o %_U.o] (COMPILE.post): Add
5660 "-include gnu-nat-mig.h".
5661 * gnu-nat-mig.h: New file.
5662 * gnu-nat.c: Include "gnu-nat-mig.h".
5663 (exc_server, msg_reply_server, notify_server,
5664 process_reply_server): Remove declarations.
5665
14a8ad62
ST
56662020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
5667
5668 * gnu-nat.h (inf_validate_procs, inf_suspend, inf_set_traced,
5669 steal_exc_port, proc_get_state, inf_clear_wait, inf_cleanup,
5670 inf_startup, inf_update_suspends, inf_set_pid, inf_steal_exc_ports,
5671 inf_validate_procinfo, inf_validate_task_sc, inf_restore_exc_ports,
5672 inf_set_threads_resume_sc, inf_set_threads_resume_sc_for_signal_thread,
5673 inf_resume, inf_set_step_thread, inf_detach, inf_attach, inf_signal,
5674 inf_continue, make_proc, proc_abort, _proc_free, proc_update_sc,
5675 proc_get_exception_port, proc_set_exception_port, _proc_get_exc_port,
5676 proc_steal_exc_port, proc_restore_exc_port, proc_trace): Move functions
5677 to gnu_nat_target class.
5678 * gnu-nat.c: Likewise.
5679 (inf_update_procs, S_proc_wait_reply, set_task_pause_cmd,
5680 set_task_exc_port_cmd, set_signals_cmd, set_thread_pause_cmd,
5681 set_thread_exc_port_cmd): Call inf_validate_procs through gnu_target
5682 object.
5683 (gnu_nat_target::create_inferior, gnu_nat_target::detach): Pass `this'
5684 instead of `gnu_target'.
5685
0af5e106
ST
56862020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
5687
5688 * i386-gnu-tdep.c: Include "gdbcore.h"
5689 (gnu_sigtramp_code, i386_gnu_sc_reg_offset): New arrays.
5690 (GNU_SIGTRAMP_LEN, GNU_SIGTRAMP_TAIL,
5691 I386_GNU_SIGCONTEXT_THREAD_STATE_OFFSET): New macros
5692 (i386_gnu_sigtramp_start, i386_gnu_sigtramp_p,
5693 i386_gnu_sigcontext_addr): New functions
5694 (i386gnu_init_abi): Register i386_gnu_sigtramp_p,
5695 i386_gnu_sigcontext_addr, and i386_gnu_sc_reg_offset in the gdbarch
5696 tdep.
5697
078f2fc9
ST
56982020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
5699
5700 * gnu-nat.c (gnu_nat_target::create_inferior): Move push_target call
5701 before fork_inferior call. Avoid calling it if target_is_pushed returns
5702 true.
5703
53dff92c
ST
57042020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
5705
5706 * gnu-nat.h (gnu_target): New variable declaration.
5707 * i386-gnu-nat.c (_initialize_i386gnu_nat): Initialize
5708 gnu_target.
5709 * gnu-nat.c (gnu_target): New variable.
5710 (inf_validate_procs): Pass gnu_target to thread_change_ptid,
5711 add_thread_silent, and add_thread calls.
5712 (gnu_nat_target::create_inferior): Pass gnu_target to
5713 add_thread_silent, thread_change_ptid call.
5714 (gnu_nat_target::detach): Pass gnu_target to detach_inferior
5715 call.
5716
5a8b8627
ST
57172020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
5718
5719 * gnu-nat.c (gnu_xfer_auxv): Remove unused `res' variable.
5720 (gnu_nat_target::find_memory_regions): Remove unused
5721 `old_address' variable.
5722
366f550a
ST
57232020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
5724
5725 * gnu-nat.c: Include "gdbarch.h".
5726
f14871bf
ST
57272020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
5728
5729 * reply_mig_hack.awk (Error return): Cast function through
5730 void *, to bypass compiler function call check.
5731
c6887cfb
ST
57322020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
5733
5734 * config/i386/i386gnu.mn (%_reply_S.c): Add dependency on
5735 $(srcdir)/reply_mig_hack.awk.
5736
6930bffe
ST
57372020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
5738
5739 * gnu-nat.h (gnu_debug_flag): Set type to bool.
5740
112c22ed
JG
57412020-05-30 Jonny Grant <jg@jguk.org>
5742
5743 * configure.ac (ACX_BUGURL): change bug URL to https.
5744
f68f85b5
PA
57452020-05-30 Pedro Alves <palves@redhat.com>
5746
5747 * cp-support.c (replace_typedefs_template): New.
5748 (replace_typedefs_qualified_name): Handle
5749 DEMANGLE_COMPONENT_TEMPLATE.
5750
976ca316
SM
57512020-05-29 Simon Marchi <simon.marchi@efficios.com>
5752
5753 * dwarf2/comp-unit.c, dwarf2/comp-unit.h, dwarf2/index-cache.c,
5754 dwarf2/index-cache.h, dwarf2/index-write.c,
5755 dwarf2/index-write.h, dwarf2/line-header.c,
5756 dwarf2/line-header.h, dwarf2/macro.c, dwarf2/macro.h,
5757 dwarf2/read.c, dwarf2/read.h: Rename struct dwarf2_per_objfile
5758 variables and fields from `dwarf2_per_objfile` to just
5759 `per_objfile` throughout.
5760
989ade05
SM
57612020-05-28 Simon Marchi <simon.marchi@polymtl.ca>
5762
5763 * dwarf2/loc.c (class dwarf_evaluate_loc_desc)
5764 <push_dwarf_reg_entry_value>: Add comment.
5765
c47bae85
KB
57662020-05-28 Kevin Buettner <kevinb@redhat.com>
5767 Keith Seitz <keiths@redhat.com>
5768
5769 * python/python.c (do_start_initialization): Call PyEval_SaveThread
5770 instead of PyEval_ReleaseLock.
5771 (class gdbpy_gil): Move to earlier in file.
5772 (finalize_python): Set gdb_python_initialized.
5773 (gdbpy_check_quit_flag): Acquire GIL via gdbpy_gil. Return early
5774 when not initialized.
5775
44486dcf
SM
57762020-05-28 Simon Marchi <simon.marchi@efficios.com>
5777
5778 * dwarf2/loc.c (class dwarf_evaluate_loc_desc)
5779 <push_dwarf_reg_entry_value>: Remove assert. Override
5780 per_objfile with caller_per_objfile.
5781
f030440d
TV
57822020-05-28 Tom de Vries <tdevries@suse.de>
5783
5784 * dwarf2/read.c (dw2_symtab_iter_next, dw2_expand_marked_cus): Limit
5785 PR gold/15646 workaround to symbol kind "type".
5786
f0fbb768
TT
57872020-05-27 Tom Tromey <tromey@adacore.com>
5788
5789 * dwarf2/read.c (load_partial_dies): Use add_partial_symbol.
5790
af0b2a3e
TT
57912020-05-27 Tom Tromey <tromey@adacore.com>
5792
5793 * dwarf2/abbrev.h (struct abbrev_table) <lookup_abbrev>: Inline.
5794 Use htab_find_with_hash.
5795 <add_abbrev>: Remove "abbrev_number" parameter.
5796 * dwarf2/abbrev.c (abbrev_table::add_abbrev): Remove
5797 "abbrev_number" parameter. Use htab_find_slot_with_hash.
5798 (hash_abbrev): Add comment.
5799 (abbrev_table::lookup_abbrev): Move to header file.
5800 (abbrev_table::read): Update.
5801
7d00ffec
TT
58022020-05-27 Tom Tromey <tromey@adacore.com>
5803
5804 * dwarf2/read.c (struct partial_die_info) <name>: Declare new
5805 method.
5806 <canonical_name>: New member.
5807 <raw_name>: Rename from "name".
5808 (partial_die_info): Initialize canonical_name.
5809 (scan_partial_symbols): Check raw_name.
5810 (partial_die_parent_scope, partial_die_full_name)
5811 (add_partial_symbol, add_partial_subprogram)
5812 (add_partial_enumeration, load_partial_dies): Use "name" method.
5813 (partial_die_info::name): New method.
5814 (partial_die_info::read, guess_partial_die_structure_name)
5815 (partial_die_info::fixup): Update.
5816
697bba18
TT
58172020-05-27 Tom Tromey <tromey@adacore.com>
5818
5819 * dwarf2/attribute.h (struct attribute) <form_is_ref>: Inline.
5820 <get_ref_die_offset>: Inline.
5821 <get_ref_die_offset_complaint>: New method.
5822 * dwarf2/attribute.c (attribute::form_is_ref): Move to header.
5823 (attribute::get_ref_die_offset_complaint): Rename from
5824 get_ref_die_offset. Just issue complaint.
5825
c17ace43
HD
58262020-05-27 Hannes Domani <ssbssa@yahoo.de>
5827
5828 * cli/cli-cmds.c (shell_escape): Move exit_status_set_internal_vars.
5829
96445f0b
HD
58302020-05-27 Hannes Domani <ssbssa@yahoo.de>
5831
5832 * exec.c (exec_file_attach): Use errno value of first openp failure.
5833
ac637ec3
HD
58342020-05-27 Hannes Domani <ssbssa@yahoo.de>
5835
5836 * nat/windows-nat.c (windows_thread_info::~windows_thread_info):
5837 Don't close thread handle.
5838
17ee85fc
TT
58392020-05-27 Tom Tromey <tom@tromey.com>
5840 Simon Marchi <simon.marchi@efficios.com>
5841
5842 * objfiles.h (struct objfile) <partial_symtabs>: Now a
5843 shared_ptr.
5844 * dwarf2/read.h (struct dwarf2_per_objfile) <partial_symtabs>: New
5845 member.
5846 * dwarf2/read.c (dwarf2_per_bfd_bfd_data_key,
5847 dwarf2_per_bfd_objfile_data_key>: New globals.
5848 (dwarf2_has_info): Use shared dwarf2_per_bfd if possible.
5849 (dwarf2_get_section_info): Use get_dwarf2_per_objfile.
5850 (dwarf2_initialize_objfile): Consider cases where per_bfd can be
5851 shared.
5852 (dwarf2_build_psymtabs): Set objfile::partial_symtabs and
5853 short-circuit when sharing.
5854 (dwarf2_build_psymtabs): Set dwarf2_per_objfile::partial_symtabs.
5855 (dwarf2_psymtab::expand_psymtab): Use free_cached_comp_units.
5856
39b16f87
SM
58572020-05-27 Simon Marchi <simon.marchi@efficios.com>
5858
5859 * dwarf2/read.h (struct dwarf2_per_bfd) <line_header_hash>: Move
5860 to...
5861 (struct dwarf2_per_objfile) <line_header_hash>: ... here.
5862 * dwarf2/read.c (handle_DW_AT_stmt_list): Update.
5863
fcf23d5b
SM
58642020-05-27 Simon Marchi <simon.marchi@efficios.com>
5865
5866 * dwarf2/read.c (struct mapped_index_base) <symbol_name_at,
5867 build_name_components, find_name_components_bounds>:
5868 Add per_objfile parameter.
5869 (struct mapped_index) <symbol_name_at>: Likewise.
5870 (struct mapped_debug_names): Remove constructor.
5871 <dwarf2_per_objfile>: Remove field.
5872 <namei_to_name, symbol_name_at>: Add per_objfile parameter.
5873 (mapped_index_base::find_name_components_bounds,
5874 mapped_index_base::build_name_components,
5875 dw2_expand_symtabs_matching_symbol): Likewise.
5876 (class mock_mapped_index) <symbol_name_at>: Likewise.
5877 (check_match): Likewise.
5878 (check_find_bounds_finds): Likewise.
5879 (test_mapped_index_find_name_component_bounds): Update.
5880 (CHECK_MATCH): Update.
5881 (dw2_expand_symtabs_matching): Update.
5882 (class dw2_debug_names_iterator) <dw2_debug_names_iterator>: Add
5883 per_objfile parameter.
5884 <find_vec_in_debug_names>: Likewise.
5885 <m_per_objfile>: New field.
5886 (mapped_debug_names::namei_to_name): Add dwarf2_per_objfile
5887 parameter.
5888 (dw2_debug_names_iterator::find_vec_in_debug_names): Likewise.
5889 (dw2_debug_names_iterator::next): Update.
5890 (dw2_debug_names_lookup_symbol): Update.
5891 (dw2_debug_names_expand_symtabs_for_function): Update.
5892 (dw2_debug_names_map_matching_symbols): Update.
5893 (dw2_debug_names_expand_symtabs_matching): Update.
5894 (dwarf2_read_debug_names): Update.
5895
7188ed02
SM
58962020-05-27 Simon Marchi <simon.marchi@efficios.com>
5897
5898 * dwarf2/read.h (struct dwarf2_cu): Forward-declare.
5899 (struct dwarf2_per_bfd) <free_cached_comp_units>: Remove,
5900 move to dwarf2_per_objfile.
5901 <read_in_chain>: Remove.
5902 (struct dwarf2_per_objfile) <get_cu, set_cu, remove_cu,
5903 remove_all_cus, age_comp_units>: New methods.
5904 <m_dwarf2_cus>: New member.
5905 (struct dwarf2_per_cu_data) <cu>: Remove.
5906 * dwarf2/read.c (struct dwarf2_cu) <read_in_chain>: Remove.
5907 (age_cached_comp_units, free_one_cached_comp_unit): Remove,
5908 moved to methods of dwarf2_per_objfile.
5909 (dwarf2_clear_marks): Remove.
5910 (dwarf2_queue_item::~dwarf2_queue_item): Update.
5911 (dwarf2_per_bfd::~dwarf2_per_bfd): Don't free dwarf2_cus.
5912 (dwarf2_per_bfd::free_cached_comp_units): Remove.
5913 (dwarf2_per_objfile::remove_all_cus): New.
5914 (class free_cached_comp_units) <~free_cached_comp_units>:
5915 Update.
5916 (load_cu): Update.
5917 (dw2_do_instantiate_symtab): Adjust.
5918 (fill_in_sig_entry_from_dwo_entry): Adjust.
5919 (cutu_reader::init_tu_and_read_dwo_dies): Update.
5920 (cutu_reader::cutu_reader): Likewise.
5921 (cutu_reader::keep): Use dwarf2_per_objfile::set_cu.
5922 (cutu_reader::cutu_reader): Use dwarf2_per_objfile::get_cu.
5923 (process_psymtab_comp_unit): Use dwarf2_per_objfile::remove_cu
5924 and dwarf2_per_objfile::age_comp_units.
5925 (load_partial_comp_unit): Update.
5926 (maybe_queue_comp_unit): Use dwarf2_per_objfile::get_cu.
5927 (process_queue): Likewise.
5928 (find_partial_die): Use dwarf2_per_objfile::get_cu instead of cu
5929 backlink.
5930 (dwarf2_read_addr_index): Likewise.
5931 (follow_die_offset): Likewise.
5932 (dwarf2_fetch_die_loc_sect_off): Likewise.
5933 (dwarf2_fetch_constant_bytes): Likewise.
5934 (dwarf2_fetch_die_type_sect_off): Likewise.
5935 (follow_die_sig_1): Likewise.
5936 (load_full_type_unit): Likewise.
5937 (read_signatured_type): Likewise.
5938 (dwarf2_cu::dwarf2_cu): Don't set cu field.
5939 (dwarf2_cu::~dwarf2_cu): Remove.
5940 (dwarf2_per_objfile::get_cu): New.
5941 (dwarf2_per_objfile::set_cu): New.
5942 (age_cached_comp_units): Rename to...
5943 (dwarf2_per_objfile::age_comp_units): ... this. Adjust
5944 to std::unordered_map.
5945 (free_one_cached_comp_unit): Rename to...
5946 (dwarf2_per_objfile::remove_cu): ... this. Adjust
5947 to std::unordered_map.
5948 (dwarf2_per_objfile::~dwarf2_per_objfile): New.
5949 (dwarf2_mark_helper): Use dwarf2_per_objfile::get_cu, expect
5950 a dwarf2_per_objfile in data.
5951 (dwarf2_mark): Pass dwarf2_per_objfile in data to htab_traverse.
5952 (dwarf2_clear_marks): Remove.
5953
2e671100
SM
59542020-05-27 Simon Marchi <simon.marchi@efficios.com>
5955
5956 * dwarf2/read.c (class cutu_reader) <cutu_reader>: Replace
5957 `int use_existing_cu` parameter with `dwarf2_cu *existing_cu`.
5958 (init_tu_and_read_dwo_dies): Likewise.
5959 (cutu_reader::init_tu_and_read_dwo_dies): Likewise.
5960 (cutu_reader::cutu_reader): Likewise.
5961 (load_partial_comp_unit): Likewise.
5962 (process_psymtab_comp_unit): Update.
5963 (build_type_psymtabs_1): Update.
5964 (process_skeletonless_type_unit): Update.
5965 (load_full_comp_unit): Update.
5966 (find_partial_die): Update.
5967 (dwarf2_read_addr_index): Update.
5968 (read_signatured_type): Update.
5969
2e6a9f79
SM
59702020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
5971
5972 * dwarf2/read.h (struct dwarf2_per_cu_data) <m_header,
5973 m_header_read_in>: New fields.
5974 <get_header>: New method.
5975 * dwarf2/read.c (per_cu_header_read_in): Remove.
5976 (dwarf2_per_cu_data::get_header): New.
5977 (dwarf2_per_cu_data::addr_size): Update.
5978 (dwarf2_per_cu_data::offset_size): Update.
5979 (dwarf2_per_cu_data::ref_addr_size): Update.
5980
1b555f17
SM
59812020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
5982
5983 * dwarf2/read.c (load_cu): Return dwarf2_cu.
5984 (dw2_do_instantiate_symtab): Update.
5985 (queue_and_load_all_dwo_tus): Change parameter from
5986 dwarf2_per_cu_data to dwarf2_cu.
5987 (dwarf2_fetch_die_loc_sect_off): Update.
5988 (dwarf2_fetch_constant_bytes): Update.
5989 (dwarf2_fetch_die_type_sect_off): Update.
5990
8fc0b21d
SM
59912020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
5992
5993 * dwarf2/read.c (process_full_comp_unit,
5994 process_full_type_unit): Remove per_cu, per_objfile paramters.
5995 Add dwarf2_cu parameter.
5996 (process_queue): Update.
5997
168c9250
SM
59982020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
5999
6000 * dwarf2/read.c (create_cu_from_index_list): Replace
6001 dwarf2_per_objfile parameter with dwarf2_per_bfd.
6002 (create_cus_from_index_list): Likewise.
6003 (create_cus_from_index): Likewise.
6004 (create_signatured_type_table_from_index): Likewise.
6005 (create_cus_from_debug_names_list): Likewise.
6006 (create_cus_from_debug_names): Likewise.
6007 (dwarf2_read_gdb_index): Update.
6008 (dwarf2_read_debug_names): Update.
6009
e286671b
TT
60102020-05-27 Tom Tromey <tom@tromey.com>
6011 Simon Marchi <simon.marchi@efficios.com>
6012
6013 * dwarf2/read.h (struct dwarf2_per_objfile)
6014 <get_type_for_signatured_type, set_type_for_signatured_type>:
6015 New methods.
6016 <m_type_map>: New member.
6017 (struct signatured_type) <type>: Remove.
6018 * dwarf2/read.c
6019 (dwarf2_per_objfile::get_type_for_signatured_type,
6020 dwarf2_per_objfile::set_type_for_signatured_type): New.
6021 (get_signatured_type): Use new methods.
6022
8adb8487
TT
60232020-05-27 Tom Tromey <tom@tromey.com>
6024 Simon Marchi <simon.marchi@efficios.com>
6025
6026 * dwarf2/read.h (struct type_unit_group_unshareable): New.
6027 (struct dwarf2_per_objfile) <type_units>: New member.
6028 <get_type_unit_group_unshareable>: New method.
6029 * dwarf2/read.c (struct type_unit_group) <compunit_symtab,
6030 num_symtabs, symtabs>: Remove; move to
6031 type_unit_group_unshareable.
6032 (dwarf2_per_objfile::get_type_unit_group_unshareable): New.
6033 (process_full_type_unit, dwarf2_cu::setup_type_unit_groups)
6034 (dwarf2_cu::setup_type_unit_groups): Use type_unit_group_unshareable.
6035
127bbf4b
SM
60362020-05-27 Simon Marchi <simon.marchi@efficios.com>
6037
6038 * dwarf2/read.h (struct dwarf2_per_cu_data):
6039 <dwarf2_per_objfile>: Remove.
6040 * dwarf2/read.c (create_cu_from_index_list): Don't assign
6041 dwarf2_per_objfile.
6042 (create_signatured_type_table_from_index): Likewise.
6043 (create_signatured_type_table_from_debug_names): Likewise.
6044 (create_debug_type_hash_table): Likewise.
6045 (fill_in_sig_entry_from_dwo_entry): Likewise.
6046 (create_type_unit_group): Likewise.
6047 (read_comp_units_from_section): Likewise.
6048 (create_cus_hash_table): Likewise.
6049
f6e649dd
SM
60502020-05-27 Simon Marchi <simon.marchi@efficios.com>
6051
6052 * dwarf2/read.c (process_psymtab_comp_unit): Remove reference to
6053 dwarf2_per_cu_data::dwarf2_per_objfile.
6054 (compute_compunit_symtab_includes): Likewise.
6055 (dwarf2_cu::start_symtab): Likewise.
6056
aa66c379
SM
60572020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
6058
6059 * dwarf2/read.h (dwarf2_get_die_type): Add dwarf2_per_objfile
6060 parameter.
6061 * dwarf2/read.c (get_die_type_at_offset): Likewise.
6062 (read_namespace_alias): Update.
6063 (lookup_die_type): Update.
6064 (dwarf2_get_die_type): Add dwarf2_per_objfile parameter.
6065 * dwarf2/loc.c (class dwarf_evaluate_loc_desc) <get_base_type>:
6066 Update.
6067 (disassemble_dwarf_expression): Update.
6068
120ce1b5
SM
60692020-05-27 Simon Marchi <simon.marchi@efficios.com>
6070
6071 * dwarf2/read.h (struct dwarf2_queue_item): Add
6072 dwarf2_per_objfile parameter, assign new parameter.
6073 <per_objfile>: New field.
6074 * dwarf2/read.c (free_one_cached_comp_unit): Add
6075 dwarf2_per_objfile parameter.
6076 (queue_comp_unit): Likewise.
6077 (dw2_do_instantiate_symtab): Update.
6078 (process_psymtab_comp_unit): Update.
6079 (maybe_queue_comp_unit): Add dwarf2_per_objfile parameter.
6080 (process_imported_unit_die): Update.
6081 (queue_and_load_dwo_tu): Update.
6082 (follow_die_offset): Update.
6083 (follow_die_sig_1): Update.
6084
9f47c707
SM
60852020-05-27 Simon Marchi <simon.marchi@efficios.com>
6086
6087 * dwarf2/read.h (struct dwarf2_per_cu_data) <objfile>: Remove.
6088 * dwarf2/read.c (dwarf2_compute_name): Pass per_objfile down.
6089 (read_call_site_scope): Assign per_objfile.
6090 (dwarf2_per_cu_data::objfile): Remove.
6091 * gdbtypes.h (struct call_site) <per_objfile>: New member.
6092 * dwarf2/loc.h (dwarf2_evaluate_loc_desc): Add
6093 dwarf2_per_objfile parameter.
6094 * dwarf2/loc.c (dwarf2_evaluate_loc_desc_full): Add
6095 dwarf2_per_objfile parameter.
6096 (dwarf_expr_reg_to_entry_parameter): Add output
6097 dwarf2_per_objfile parameter.
6098 (locexpr_get_frame_base): Update.
6099 (class dwarf_evaluate_loc_desc) <get_tls_address>: Update.
6100 <push_dwarf_reg_entry_value>: Update.
6101 <call_site_to_target_addr>: Update.
6102 (dwarf_entry_parameter_to_value): Add dwarf2_per_objfile
6103 parameter.
6104 (value_of_dwarf_reg_entry): Update.
6105 (rw_pieced_value): Update.
6106 (indirect_synthetic_pointer): Update.
6107 (dwarf2_evaluate_property): Update.
6108 (dwarf2_loc_desc_get_symbol_read_needs): Add dwarf2_per_objfile
6109 parameter.
6110 (locexpr_read_variable): Update.
6111 (locexpr_get_symbol_read_needs): Update.
6112 (loclist_read_variable): Update.
6113
14095eb3
SM
61142020-05-27 Simon Marchi <simon.marchi@efficios.com>
6115
6116 * dwarf2/read.h (dwarf2_fetch_die_loc_sect_off,
6117 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
6118 dwarf2_fetch_die_type_sect_off): Add dwarf2_per_objfile
6119 parameter.
6120 * dwarf2/read.c (dwarf2_fetch_die_loc_sect_off,
6121 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
6122 dwarf2_fetch_die_type_sect_off): Add dwarf2_per_objfile
6123 parameter.
6124 * dwarf2/loc.c (indirect_synthetic_pointer, per_cu_dwarf_call,
6125 sect_variable_value): Add dwarf2_per_objfile parameter.
6126 (class dwarf_evaluate_loc_desc) <dwarf_call,
6127 dwarf_variable_value>: Update.
6128 (fetch_const_value_from_synthetic_pointer): Add
6129 dwarf2_per_objfile parameter.
6130 (fetch_const_value_from_synthetic_pointer): Update.
6131 (coerced_pieced_ref): Update.
6132 (class symbol_needs_eval_context) <dwarf_call,
6133 dwarf_variable_value>: Update.
6134 (dwarf2_compile_expr_to_ax): Update.
6135
3c3cd3d4
SM
61362020-05-27 Simon Marchi <simon.marchi@efficios.com>
6137
6138 * dwarf2/loc.c (allocate_piece_closure): Add dwarf2_per_objfile
6139 parameter.
6140 (dwarf2_evaluate_loc_desc_full): Update.
6141
82ca3f51
SM
61422020-05-27 Simon Marchi <simon.marchi@efficios.com>
6143
6144 * dwarf2/read.h (dwarf2_read_addr_index): Add dwarf2_per_objfile
6145 parameter.
6146 * dwarf2/read.c (dwarf2_read_addr_index): Likewise.
6147 * dwarf2/loc.c (decode_debug_loclists_addresses): Add
6148 dwarf2_per_objfile parameter.
6149 (decode_debug_loc_dwo_addresses): Likewise.
6150 (dwarf2_find_location_expression): Update.
6151 (class dwarf_evaluate_loc_desc) <get_addr_index>: Update.
6152 (locexpr_describe_location_piece): Add dwarf2_per_objfile
6153 parameter.
6154 (disassemble_dwarf_expression): Add dwarf2_per_objfile
6155 parameter.
6156 (locexpr_describe_location_1): Likewise.
6157 (locexpr_describe_location): Update.
6158
4b167ea1
SM
61592020-05-27 Simon Marchi <simon.marchi@efficios.com>
6160
6161 * dwarf2/read.h (struct dwarf2_per_cu_data) <text_offset>:
6162 Remove.
6163 * dwarf2/read.c (dwarf2_per_cu_data::text_offset): Remove.
6164 * dwarf2/loc.c (dwarf2_find_location_expression): Update.
6165 (dwarf2_compile_property_to_c): Update.
6166 (dwarf2_compile_expr_to_ax): Add dwarf2_per_objfile parameter,
6167 use text offset from objfile.
6168 (locexpr_tracepoint_var_ref): Update.
6169 (locexpr_generate_c_location): Update.
6170 (loclist_describe_location): Update.
6171 (loclist_tracepoint_var_ref): Update.
6172 * dwarf2/compile.h (compile_dwarf_bounds_to_c): Add
6173 dwarf2_per_objfile parameter.
6174 * dwarf2/loc2c.c (do_compile_dwarf_expr_to_c): Likewise,
6175 use text offset from objfile.
6176 (compile_dwarf_expr_to_c): Add dwarf2_per_objfile parameter.
6177
89b07335
SM
61782020-05-27 Simon Marchi <simon.marchi@efficios.com>
6179
6180 * dwarf2/expr.h (struct dwarf_expr_context)
6181 <dwarf_expr_context>: Add dwarf2_per_objfile parameter.
6182 <offset>: Remove.
6183 <per_objfile>: New member.
6184 * dwarf2/expr.c (dwarf_expr_context::dwarf_expr_context): Add
6185 dwarf2_per_objfile parameter. Don't set offset, set
6186 per_objfile.
6187 (dwarf_expr_context::execute_stack_op): Use offset from objfile.
6188 * dwarf2/frame.c (dwarf2_frame_find_fde): Return (by parameter)
6189 a dwarf2_per_objfile object instead of an offset.
6190 (class dwarf_expr_executor) <dwarf_expr_executor>: Add
6191 constructor.
6192 (execute_stack_op): Add dwarf2_per_objfile parameter, pass it
6193 to dwarf2_expr_executor constructor. Don't set offset.
6194 (dwarf2_fetch_cfa_info): Update.
6195 (struct dwarf2_frame_cache) <text_offset>: Remove.
6196 <per_objfile>: New field.
6197 (dwarf2_frame_cache): Update.
6198 (dwarf2_frame_prev_register): Update.
6199 * dwarf2/loc.c (class dwarf_evaluate_loc_desc)
6200 <dwarf_evaluate_loc_desc>: Add constructor.
6201 (dwarf2_evaluate_loc_desc_full): Update.
6202 (dwarf2_locexpr_baton_eval): Update.
6203 (class symbol_needs_eval_context) <symbol_needs_eval_context>:
6204 Add constructor.
6205 (dwarf2_loc_desc_get_symbol_read_needs): Update.
6206
293e7e51
SM
62072020-05-27 Simon Marchi <simon.marchi@efficios.com>
6208
6209 * dwarf2/read.h (struct dwarf2_per_cu_data) <addr_type,
6210 addr_sized_int_type>: Move to dwarf2_cu.
6211 <int_type>: Move to dwarf2_per_objfile.
6212 (struct dwarf2_per_objfile) <int_type>: Move here.
6213 * dwarf2/read.c (struct dwarf2_cu) <addr_type,
6214 addr_sized_int_type>: Move here.
6215 (read_func_scope): Update.
6216 (read_array_type): Update.
6217 (read_tag_string_type): Update.
6218 (attr_to_dynamic_prop): Update.
6219 (dwarf2_per_cu_data::int_type): Rename to...
6220 (dwarf2_per_objfile::int_type): ... this.
6221 (dwarf2_per_cu_data::addr_sized_int_type): Rename to...
6222 (dwarf2_cu::addr_sized_int_type): ... this.
6223 (read_subrange_type): Update.
6224 (dwarf2_per_cu_data::addr_type): Rename to...
6225 (dwarf2_cu::addr_type): ... this.
6226 (set_die_type): Update.
6227
64874a40
SM
62282020-05-27 Simon Marchi <simon.marchi@efficios.com>
6229
6230 * dwarf2/read.c (queue_and_load_all_dwo_tus): Access per_objfile
6231 data through per_cu->cu.
6232
4ab09049
SM
62332020-05-27 Simon Marchi <simon.marchi@efficios.com>
6234
6235 * dwarf2/read.c (lookup_dwo_comp_unit): Change
6236 dwarf2_per_cu_data parameter fo dwarf2_cu.
6237 (lookup_dwo_type_unit): Likewise.
6238 (read_cutu_die_from_dwo): Likewise.
6239 (lookup_dwo_unit): Likewise.
6240 (open_and_init_dwo_file): Likewise.
6241 (lookup_dwo_cutu): Likewise.
6242 (lookup_dwo_comp_unit): Likewise.
6243 (lookup_dwo_type_unit): Likewise.
6244 (cutu_reader::init_tu_and_read_dwo_dies): Update.
6245 (cutu_reader::cutu_reader): Update.
6246
47b14e86
SM
62472020-05-27 Simon Marchi <simon.marchi@efficios.com>
6248
6249 * dwarf2/read.c (process_full_comp_unit): Add dwarf2_per_objfile
6250 parameter.
6251 (process_full_type_unit): Likewise.
6252 (process_queue): Update.
6253
43182c09
SM
62542020-05-27 Simon Marchi <simon.marchi@efficios.com>
6255
6256 * dwarf2/read.c (recursively_compute_inclusions): Add
6257 dwarf2_per_objfile parameter.
6258 (compute_compunit_symtab_includes): Likewise.
6259 (process_cu_includes): Update.
6260
7aa104c4
SM
62612020-05-27 Simon Marchi <simon.marchi@efficios.com>
6262
6263 * dwarf2/read.c (create_partial_symtab): Add dwarf2_per_objfile
6264 parameter.
6265 (create_type_unit_group): Update.
6266 (process_psymtab_comp_unit_reader): Update.
6267 (build_type_psymtabs_reader): Update.
6268
e3beb21d
SM
62692020-05-27 Simon Marchi <simon.marchi@efficios.com>
6270
6271 * dwarf2/read.c (cutu_reader::keep): Access dwarf2_per_objfile
6272 object through m_this_cu->cu.
6273
d460f660
SM
62742020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
6275
6276 * dwarf2/read.c (queue_and_load_dwo_tu): Expect a dwarf2_cu as
6277 the info parameter.
6278 (queue_and_load_all_dwo_tus): Pass per_cu->cu.
6279
ab432490
SM
62802020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
6281
6282 * dwarf2/read.c (class cutu_reader) <cutu_reader>: Add
6283 per_objfile parameter.
6284 (load_full_type_unit): Add per_objfile parameter.
6285 (read_signatured_type): Likewise.
6286 (load_full_comp_unit): Likewise.
6287 (load_cu): Likewise.
6288 (dw2_do_instantiate_symtab): Likewise.
6289 (dw2_get_file_names): Likewise.
6290 (dw2_map_symtabs_matching_filename): Update.
6291 (dw_expand_symtabs_matching_file_matcher): Update.
6292 (dw2_map_symbol_filenames): Update.
6293 (process_psymtab_comp_unit): Add per_objfile parameter.
6294 (build_type_psymtabs_1): Update.
6295 (process_skeletonless_type_unit): Update.
6296 (dwarf2_build_psymtabs_hard): Update.
6297 (load_partial_comp_unit): Add per_objfile parameter.
6298 (scan_partial_symbols): Update.
6299 (load_full_comp_unit): Add per_objfile parameter.
6300 (process_imported_unit_die): Update.
6301 (create_cus_hash_table): Update.
6302 (find_partial_die): Update.
6303 (dwarf2_read_addr_index): Update.
6304 (follow_die_offset): Update.
6305 (dwarf2_fetch_die_loc_sect_off): Update.
6306 (dwarf2_fetch_constant_bytes): Update.
6307 (dwarf2_fetch_die_type_sect_off): Update.
6308 (follow_die_sig_1): Update.
6309 (load_full_type_unit): Add per_objfile parameter.
6310 (read_signatured_type): Likewise.
6311
313bad1b
SM
63122020-05-27 Simon Marchi <simon.marchi@efficios.com>
6313
6314 * dwarf2/read.c (lookup_dwo_unit): Use bfd_get_filename instead
6315 of objfile_name.
6316
c3699833
SM
63172020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
6318
6319 * dwarf2/read.h (struct dwarf2_per_bfd) <obfd>: New member.
6320 (dwarf2_get_dwz_file): Replace parameter with dwarf2_per_bfd.
6321 * dwarf2/read.c (dwarf2_per_bfd::dwarf2_per_bfd): Assign obfd
6322 field.
6323 (dwarf2_get_dwz_file): Replace parameter with dwarf2_per_bfd.
6324 (create_cus_from_index): Update.
6325 (dwarf2_read_gdb_index): Update.
6326 (create_cus_from_debug_names): Update.
6327 (dwarf2_read_debug_names): Update.
6328 (get_abbrev_section_for_cu): Update.
6329 (create_all_comp_units): Update.
6330 (read_attribute_value): Update.
6331 (get_debug_line_section): Update.
6332 * dwarf2/index-cache.c (index_cache::store): Update.
6333 * dwarf2/index-write.c (save_gdb_index_command): Update.
6334 * dwarf2/macro.c (dwarf_decode_macro_bytes): Update.
6335
1859c670
SM
63362020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
6337
6338 * dwarf2/read.h (struct dwarf2_per_cu_data) <per_bfd>: New
6339 member.
6340 * dwarf2/read.c (dwarf2_per_bfd::allocate_per_cu): Initialize
6341 dwarf2_per_cu_data::per_bfd.
6342 (dwarf2_per_bfd::allocate_signatured_type): Likewise.
6343 (create_type_unit_group): Likewise.
6344 (queue_comp_unit): Remove reference to
6345 per_cu->dwarf2_per_objfile.
6346 (maybe_queue_comp_unit): Likewise.
6347 (fill_in_sig_entry_from_dwo_entry): Assign new field.
6348 (create_cus_hash_table): Assign new field.
6349
5e22e966
SM
63502020-05-27 Simon Marchi <simon.marchi@efficios.com>
6351
6352 * dwarf2/read.c: Replace
6353 dwarf2_cu->per_cu->dwarf2_per_objfile references with
6354 dwarf2_cu->per_objfile throughout.
6355
97a1449a
SM
63562020-05-27 Simon Marchi <simon.marchi@efficios.com>
6357
6358 * dwarf2/read.c (dw2_do_instantiate_symtab): Add per_objfile
6359 parameter, don't use per_cu->dwarf2_per_objfile.
6360 (dw2_instantiate_symtab): Likewise.
6361 (dw2_find_last_source_symtab): Update.
6362 (dw2_map_expand_apply): Update.
6363 (dw2_lookup_symbol): Update.
6364 (dw2_expand_symtabs_for_function): Update.
6365 (dw2_expand_all_symtabs): Update.
6366 (dw2_expand_symtabs_with_fullname): Update.
6367 (dw2_expand_symtabs_matching_one): Add per_objfile parameter,
6368 don't use per_cu->dwarf2_per_objfile.
6369 (dw2_expand_marked_cus): Update.
6370 (dw2_find_pc_sect_compunit_symtab): Update.
6371 (dw2_debug_names_lookup_symbol): Update.
6372 (dw2_debug_names_expand_symtabs_for_function): Update.
6373 (dw2_debug_names_map_matching_symbols): Update.
6374 (dwarf2_psymtab::expand_psymtab): Update.
6375
9e021579
SM
63762020-05-27 Simon Marchi <simon.marchi@efficios.com>
6377
6378 * dwarf2/read.c (struct dwarf2_cu) <dwarf2_cu>: Add parameter.
6379 <per_objfile>: New member.
6380 (class cutu_reader) <init_tu_and_read_dwo_dies>: Add parameter.
6381 (cutu_reader::init_tu_and_read_dwo_dies): Add parameter, update
6382 call to dwarf2_cu.
6383 (cutu_reader::cutu_reader): Update.
6384 (dwarf2_cu::dwarf2_cu): Add parameter, initialize per_objfile.
6385
ae090bdb
SM
63862020-05-27 Simon Marchi <simon.marchi@efficios.com>
6387
6388 * dwarf2/read.h (struct dwarf2_per_bfd) <die_type_hash>: Move to
6389 struct dwarf2_per_objfile.
6390 (struct dwarf2_per_objfile) <die_type_hash>: Move from struct
6391 dwarf2_per_bfd.
6392 * dwarf2/read.c (set_die_type): Update.
6393 (get_die_type_at_offset): Update.
6394
af758d11
SM
63952020-05-27 Tom Tromey <tom@tromey.com>
6396 Simon Marchi <simon.marchi@efficios.com>
6397
6398 * dwarf2/read.h (struct dwarf2_per_bfd) <num_psymtabs>: New
6399 method.
6400 (struct dwarf2_per_objfile) <resize_symtabs, symtab_set_p,
6401 get_symtab, set_symtab>: New methods.
6402 <m_symtabs>: New field.
6403 (struct dwarf2_psymtab): Derive from partial_symtab.
6404 <readin_p, get_compunit_symtab>: Declare methods.
6405 * dwarf2/read.c (dwarf2_per_objfile::symtab_set_p,
6406 dwarf2_per_objfile::get_symtab, dwarf2_per_objfile::set_symtab):
6407 New methods.
6408 (struct dwarf2_per_cu_quick_data) <compunit_symtab>: Remove.
6409 (dw2_do_instantiate_symtab, dw2_instantiate_symtab)
6410 (dw2_map_expand_apply, dw2_map_symtabs_matching_filename)
6411 (dw2_symtab_iter_next, dw2_print_stats)
6412 (dw2_expand_symtabs_with_fullname)
6413 (dw2_expand_symtabs_matching_one)
6414 (dw_expand_symtabs_matching_file_matcher)
6415 (dw2_find_pc_sect_compunit_symtab, dw2_map_symbol_filenames)
6416 (dw2_debug_names_iterator::next)
6417 (dw2_debug_names_map_matching_symbols)
6418 (fill_in_sig_entry_from_dwo_entry, dwarf2_psymtab::read_symtab)
6419 (process_queue, dwarf2_psymtab::expand_psymtab): Update.
6420 (dwarf2_psymtab::readin_p, dwarf2_psymtab::get_compunit_symtab):
6421 New methods.
6422 (get_compunit_symtab, process_full_comp_unit)
6423 (process_full_type_unit): Update.
6424 (dwarf2_build_psymtabs, dwarf2_initialize_objfile, add_type_unit): Call
6425
5989a64e
SM
64262020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
6427
6428 * dwarf2/read.h (dwarf2_per_objfile): Rename to dwarf2_per_bfd,
6429 then introduce a new dwarf2_per_objfile type.
6430 <read_line_string>: Move to the new dwarf2_per_objfile type.
6431 <objfile>: Likewise.
6432 (dwarf2_per_bfd): Rename dwarf2_per_objfile to this.
6433 * dwarf2/read.c: Replace references to dwarf2_per_objfile with
6434 dwarf2_per_objfile->per_bfd.
6435 (dwarf2_per_objfile::dwarf2_per_objfile): Rename to...
6436 (dwarf2_per_bfd::dwarf2_per_bfd): ... this.
6437 (dwarf2_per_objfile::free_cached_comp_units): Rename to...
6438 (dwarf2_per_bfd::free_cached_comp_units): ... this.
6439 (dwarf2_has_info): Allocate dwarf2_per_bfd.
6440 (dwarf2_per_objfile::locate_sections): Rename to...
6441 (dwarf2_per_bfd::locate_sections): ... this.
6442 (dwarf2_per_objfile::get_cutu): Rename to...
6443 (dwarf2_per_bfd::get_cutu): ... this.
6444 (dwarf2_per_objfile::get_cu): Rename to...
6445 (dwarf2_per_bfd::get_cu): ... this.
6446 (dwarf2_per_objfile::get_tu): Rename to...
6447 (dwarf2_per_bfd::get_tu): ... this.
6448 (dwarf2_per_objfile::allocate_per_cu): Rename to...
6449 (dwarf2_per_bfd::allocate_per_cu): ... this.
6450 (dwarf2_per_objfile::allocate_signatured_type): Rename to...
6451 (dwarf2_per_bfd::allocate_signatured_type): ... this.
6452 (get_gdb_index_contents_ftype): Change parameter from
6453 dwarf2_per_objfile to dwarf2_per_bfd.
6454 * dwarf2/macro.c, dwarf2/index-write.c: Replace references to
6455 dwarf2_per_objfile with dwarf2_per_objfile->per_bfd.
6456
a50264ba
TT
64572020-05-27 Tom Tromey <tom@tromey.com>
6458 Simon Marchi <simon.marchi@efficios.com>
6459
6460 * dwarf2/loc.c (struct piece_closure) <per_objfile>: New member.
6461 (allocate_piece_closure): Set "per_objfile" member.
6462 (dwarf2_find_location_expression, dwarf2_locexpr_baton_eval)
6463 (locexpr_describe_location, loclist_describe_location): Use new
6464 member.
6465 * dwarf2/read.c (read_call_site_scope)
6466 (mark_common_block_symbol_computed, attr_to_dynamic_prop)
6467 (dwarf2_const_value_attr, dwarf2_fetch_die_loc_sect_off)
6468 (fill_in_loclist_baton, dwarf2_symbol_mark_computed,
6469 handle_data_member_location): Set per_objfile member.
6470 * dwarf2/loc.h (struct dwarf2_locexpr_baton) <per_objfile>: New
6471 member.
6472 (struct dwarf2_loclist_baton) <per_objfile>: New member.
6473
d3473f0c
TT
64742020-05-27 Tom Tromey <tom@tromey.com>
6475
6476 * dwarf2/read.h (struct dwarf2_per_objfile) <allocate_per_cu,
6477 allocate_signatured_type>: Declare new methods.
6478 <m_num_psymtabs>: New member.
6479 (struct dwarf2_per_cu_data) <index>: New member.
6480 * dwarf2/read.c (dwarf2_per_objfile::allocate_per_cu)
6481 (dwarf2_per_objfile::allocate_signatured_type): New methods.
6482 (create_cu_from_index_list): Use allocate_per_cu.
6483 (create_signatured_type_table_from_index)
6484 (create_signatured_type_table_from_debug_names)
6485 (create_debug_type_hash_table, add_type_unit)
6486 (read_comp_units_from_section): Use allocate_signatured_type.
6487
5717c425
TT
64882020-05-27 Tom Tromey <tom@tromey.com>
6489
6490 * psymtab.c (partial_map_expand_apply)
6491 (psym_find_pc_sect_compunit_symtab, psym_lookup_symbol)
6492 (psym_lookup_global_symbol_language)
6493 (psymtab_to_symtab, psym_find_last_source_symtab, dump_psymtab)
6494 (psym_print_stats, psym_expand_symtabs_for_function)
6495 (psym_map_symbol_filenames, psym_map_matching_symbols)
6496 (psym_expand_symtabs_matching)
6497 (partial_symtab::read_dependencies, maintenance_info_psymtabs)
6498 (maintenance_check_psymtabs): Update.
6499 * psympriv.h (struct partial_symtab) <readin_p,
6500 get_compunit_symtab>: Add objfile parameter.
6501 (struct standard_psymtab) <readin_p, get_compunit_symtab>:
6502 Likewise.
6503 * dwarf2/read.c (struct dwarf2_include_psymtab) <readin_p,
6504 get_compunit_symtab>: Likewise.
6505 (dwarf2_psymtab::expand_psymtab): Pass objfile argument.
6506
45940949
TT
65072020-05-27 Tom Tromey <tom@tromey.com>
6508
6509 * dwarf2/read.h (struct dwarf2_per_objfile) <obstack>: New
6510 member.
6511 * dwarf2/read.c (delete_file_name_entry): Fix comment.
6512 (create_cu_from_index_list)
6513 (create_signatured_type_table_from_index)
6514 (create_signatured_type_table_from_debug_names)
6515 (dw2_get_file_names_reader, dwarf2_initialize_objfile)
6516 (dwarf2_create_include_psymtab)
6517 (create_debug_type_hash_table, add_type_unit)
6518 (create_type_unit_group, read_comp_units_from_section)
6519 (dwarf2_compute_name, create_cus_hash_table)
6520 (create_dwp_hash_table, create_dwo_unit_in_dwp_v1)
6521 (create_dwo_unit_in_dwp_v2, open_and_init_dwp_file): Use new
6522 obstack.
6523 (dw2_get_real_path): Likewise. Change argument to
6524 dwarf2_per_objfile.
6525
f8c6d152
LM
65262020-05-27 Luis Machado <luis.machado@linaro.org>
6527
6528 PR tdep/26000
6529 * arm-tdep.c (thumb_analyze_prologue): Fix instruction matching
6530 for ldrd (immediate).
6531
e98d2e6d
PW
65322020-05-26 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6533
6534 * command.h: Add comment giving the name of class_tui.
6535 * cli/cli-cmds.c (_initialize_cli_cmds): If TUI defined,
6536 create the fake command for the help for class_tui.
6537
53a47a3e
TT
65382020-05-26 Tom Tromey <tromey@adacore.com>
6539
6540 * ada-lang.c (ada_print_array_index): Change type. Call val_atr.
6541 (ada_value_ptr_subscript): Don't call pos_atr on the lower bound.
6542 (val_atr): New function.
6543 (value_val_atr): Use it.
6544 * ada-valprint.c (print_optional_low_bound): Change low bound
6545 handling for enums.
6546 (val_print_packed_array_elements): Don't call discrete_position.
6547 * gdbtypes.c (get_discrete_bounds) <TYPE_CODE_RANGE>: Call
6548 discrete_position for enum types.
6549 * language.c (default_print_array_index): Change type.
6550 * language.h (struct language_defn) <la_print_array_index>: Add
6551 index_type parameter, change type of index_value.
6552 (LA_PRINT_ARRAY_INDEX): Add index_type parameter.
6553 (default_print_array_index): Update.
6554 * valprint.c (maybe_print_array_index): Don't call
6555 value_from_longest. Update.
6556 (value_print_array_elements): Don't call discrete_position.
6557
0bc2354b
TT
65582020-05-26 Tom Tromey <tromey@adacore.com>
6559
6560 * ada-lang.c (value_val_atr): Handle TYPE_CODE_RANGE.
6561 * gdbtypes.c (discrete_position): Handle TYPE_CODE_RANGE.
6562
1218a4bf
CDA
65632020-05-25 Cristiano De Alti <cristiano_dealti@hotmail.com>
6564
6565 PR gdb/13519
6566 * avr-tdep.c (avr_integer_to_address): Return data or code
6567 address accordingly to the second 'type' argument of the
6568 function.
6569
92651b1d
MW
65702020-05-25 Michael Weghorn <m.weghorn@posteo.de>
6571
6572 * infcmd.c, inferior.h: (construct_inferior_arguments):
6573 Moved function from here to gdbsupport/common-inferior.{h,cc}
6574
0a4f5f8c
TT
65752020-05-23 Tom Tromey <tom@tromey.com>
6576
6577 Revert commit eca1f90c:
6578 * NEWS: Remove entry for completion styling.
6579 * completer.c (_rl_completion_prefix_display_length): Move
6580 declaration later.
6581 (gdb_fnprint): Revert.
6582 (gdb_display_match_list_1): Likewise.
6583 * cli/cli-style.c (completion_prefix_style)
6584 (completion_difference_style, completion_suffix_style): Remove.
6585 (_initialize_cli_style): Revert.
6586 * cli/cli-style.h (completion_prefix_style)
6587 (completion_difference_style, completion_suffix_style): Don't
6588 declare.
6589
e08bd6c5
PA
65902020-05-24 Pedro Alves <palves@redhat.com>
6591
6592 * symtab.c (completion_list_add_name): Return boolean indication
6593 of whether the symbol matched.
6594 (completion_list_add_symbol): Don't try to remove C++ aliases if
6595 the symbol didn't match in the first place.
6596 * symtab.h (completion_list_add_name): Return bool.
6597
ceacbf6e
SM
65982020-05-23 Simon Marchi <simon.marchi@polymtl.ca>
6599
6600 * gdbtypes.h (TYPE_FIELD): Remove. Replace all uses with
6601 type::field.
6602
26f16254
JB
66032020-05-23 Joel Brobecker <brobecker@adacore.com>
6604
6605 GDB 9.2 released.
6606
eca1f90c
TT
66072020-05-23 Tom Tromey <tom@tromey.com>
6608
6609 * NEWS: Add entry for completion styling.
6610 * completer.c (_rl_completion_prefix_display_length): Move
6611 declaration earlier.
6612 (gdb_fnprint): Use completion_style.
6613 (gdb_display_match_list_1): Likewise.
6614 * cli/cli-style.c (completion_prefix_style)
6615 (completion_difference_style, completion_suffix_style): New
6616 globals.
6617 (_initialize_cli_style): Register new globals.
6618 * cli/cli-style.h (completion_prefix_style)
6619 (completion_difference_style, completion_suffix_style): Declare.
6620
51e2cfa2
PA
66212020-05-23 Pedro Alves <palves@redhat.com>
6622
6623 * utils.c: Include "gdbsupport/gdb-safe-ctype.h".
6624 (parse_escape): Use ISDIGIT instead of isdigit.
6625 (puts_debug): Use gdb_isprint instead of isprint.
6626 (fprintf_symbol_filtered): Use ISALNUM instead of isalnum.
6627 (cp_skip_operator_token, skip_ws, strncmp_iw_with_mode): Use
6628 ISSPACE instead of isspace.
6629 (strncmp_iw_with_mode): Use TOLOWER instead of tolower and ISSPACE
6630 instead of isspace.
6631 (strcmp_iw_ordered): Use ISSPACE instead of isspace.
6632 (string_to_core_addr): Use TOLOWER instead of tolower, ISXDIGIT
6633 instead of isxdigit and ISDIGIT instead of isdigit.
6634
80fc5e77
SM
66352020-05-22 Simon Marchi <simon.marchi@efficios.com>
6636
6637 * gdbtypes.h (struct type) <field>: New method.
6638 (TYPE_FIELDS): Remove, replace all uses with either type::fields
6639 or type::field.
6640
3cabb6b0
SM
66412020-05-22 Simon Marchi <simon.marchi@efficios.com>
6642
6643 * gdbtypes.h (struct type) <fields, set_fields>: New methods.
6644 (TYPE_FIELDS): Use type::fields. Change all call sites that
6645 modify the propery to use type::set_fields instead.
6646
1f704f76
SM
66472020-05-22 Simon Marchi <simon.marchi@efficios.com>
6648
6649 * gdbtypes.h (TYPE_NFIELDS): Remove. Change all cal sites to use
6650 type::num_fields instead.
6651
5e33d5f4
SM
66522020-05-22 Simon Marchi <simon.marchi@efficios.com>
6653
6654 * gdbtypes.h (struct type) <num_fields, set_num_fields>: New
6655 methods.
6656 (TYPE_NFIELDS): Use type::num_fields. Change all call sites
6657 that modify the number of fields to use type::set_num_fields
6658 instead.
6659
9392ebb3
TT
66602020-05-22 Tom Tromey <tromey@adacore.com>
6661
6662 * compile/compile-object-load.h (munmap_list_free): Don't
6663 declare.
6664
7c13f4e8
AB
66652020-05-22 Andrew Burgess <andrew.burgess@embecosm.com>
6666
6667 * annotate.c (annotate_source_line): Update return type, add call
6668 to update current symtab and line.
6669 * annotate.h (annotate_source_line): Update return type, and
6670 extend header comment.
6671 * source.c (info_line_command): Check annotation_level before
6672 calling annotate_source_line.
6673 * stack.c (print_frame_info): If calling annotate_source_line
6674 returns true, then don't print any other source line information.
6675
aa370940
SM
66762020-05-21 Simon Marchi <simon.marchi@efficios.com>
6677
6678 * lm32-tdep.c (lm32_register_reggroup_p): Fix condition.
6679
84d53fa9
SM
66802020-05-21 Simon Marchi <simon.marchi@efficios.com>
6681
6682 * coffread.c (patch_type): Remove NULL check before xfree.
6683 * corefile.c (set_gnutarget): Likewise.
6684 * cp-abi.c (set_cp_abi_as_auto_default): Likewise.
6685 * exec.c (build_section_table): Likewise.
6686 * remote.c (remote_target::pass_signals): Likewise.
6687 * utils.c (n_spaces): Likewise.
6688 * cli/cli-script.c (document_command): Likewise.
6689 * i386-windows-tdep.c (core_process_module_section): Likewise.
6690 * linux-fork.c (struct fork_info) <~fork_info>: Likewise.
6691
9d428aae
SM
66922020-05-20 Simon Marchi <simon.marchi@efficios.com>
6693
6694 * symfile.c (reread_symbols): Clear objfile's section_offsets
6695 vector and section indices, re-compute them by calling
6696 sym_offsets.
6697
250106a7
TT
66982020-05-20 Tom Tromey <tromey@adacore.com>
6699
6700 * ada-lang.c (bound_name, MAX_ADA_DIMENS): Remove.
ec16513e 6701 (desc_one_bound, desc_index_type): Compute field name.
250106a7 6702
9a0bacfb
TV
67032020-05-20 Tom de Vries <tdevries@suse.de>
6704
6705 PR symtab/25833
6706 * dwarf2/read.c (dw2_map_matching_symbols): Handle .gdb_index.
6707
7b958a48
AM
67082020-05-20 Alan Modra <amodra@gmail.com>
6709
6710 PR 25993
6711 * solib-darwin.c (darwin_bfd_open): Don't strdup pathname for
6712 bfd_set_filename.
6713 * solib-aix.c (solib_aix_bfd_open): Use std::string for name
6714 passed to bfd_set_filename.
6715 * symfile-mem.c (add_vsyscall_page): Likewise for string
6716 passed to symbol_file_add_from_memory.
6717 (symbol_file_add_from_memory): Make name param a const char* and
6718 don't strdup.
6719
c7e97679
AM
67202020-05-20 Alan Modra <amodra@gmail.com>
6721
6722 * coff-pe-read.c (read_pe_exported_syms): Use bfd_get_filename
6723 rather than accessing bfd->filename directly.
6724 * dtrace-probe.c (dtrace_static_probe_ops::get_probes): Likewise,
6725 and use bfd_section_name.
6726 * dwarf2/frame.c (decode_frame_entry): Likewise.
6727 * exec.c (exec_set_section_address): Likewise.
6728 * solib-aix.c (solib_aix_bfd_open): Likewise.
6729 * stap-probe.c (get_stap_base_address): Likewise.
6730 * symfile.c (reread_symbols): Likewise.
6731
563c591b
TT
67322020-05-19 Tom Tromey <tromey@adacore.com>
6733
6734 * sparc64-tdep.c (adi_tag_fd): Update call to target_fileio_open.
6735
f408d82c
SM
67362020-05-19 Simon Marchi <simon.marchi@efficios.com>
6737
6738 * dwarf2/read.c (quirk_rust_enum): Allocate enough fields.
6739
98c59b52
PA
67402020-05-19 Pedro Alves <palves@redhat.com>
6741
6742 * NEWS (set exec-file-mismatch): Adjust entry.
6743 * exec.c: Include "build-id.h".
6744 (validate_exec_file): Try to match build IDs instead of filenames.
6745 * gdb_bfd.c (struct gdb_bfd_open_closure): New.
6746 (gdb_bfd_iovec_fileio_open): Adjust to use gdb_bfd_open_closure
6747 and pass down 'warn_if_slow'.
6748 (gdb_bfd_open): Add 'warn_if_slow' parameter. Use
6749 gdb_bfd_open_closure to pass it down.
6750 * gdb_bfd.h (gdb_bfd_open): Add 'warn_if_slow' parameter.
6751
4111f652
PA
67522020-05-19 Pedro Alves <palves@redhat.com>
6753
6754 * gdb_bfd.c (gdb_bfd_iovec_fileio_open): Adjust.
6755 * target.c (target_fileio_open_1): Rename to target_fileio_open
6756 and make extern. Use bool.
6757 (target_fileio_open, target_fileio_open_warn_if_slow): Delete.
6758 (target_fileio_read_alloc_1): Adjust.
6759 * target.h (target_fileio_open): Add 'warn_if_slow' parameter.
6760 (target_fileio_open_warn_if_slow): Delete declaration.
6761
ad80db5b
PA
67622020-05-19 Pedro Alves <palves@redhat.com>
6763
6764 * gdb_bfd.h: (gdb_bfd_open): Default to 'fd' parameter to -1.
6765 Adjust all callers.
6766
1d6ce4d3
YS
67672020-05-19 Yoshinori Sato <ysato@users.sourceforge.jp>
6768
6769 * h8300-tdep.c (h8300_is_argument_spill): Change how we check
6770 whether disp is negative.
6771
9005fbbb
SM
67722020-05-19 Simon Marchi <simon.marchi@efficios.com>
6773
6774 * symfile.h (struct symfile_segment_data)
6775 <~symfile_segment_data>: Remove.
6776 <segment_info>: Change to std::vector.
6777 * symfile.c (default_symfile_segments): Update.
6778 * elfread.c (elf_symfile_segments): Update.
6779
68b888ff
SM
67802020-05-19 Simon Marchi <simon.marchi@efficios.com>
6781
6782 * symfile.h (struct symfile_segment_data) <struct segment>: New.
6783 <segments>: New.
6784 <segment_bases, segment_sizes>: Remove.
6785 * symfile.c (default_symfile_segments): Update.
6786 * elfread.c (elf_symfile_segments): Update.
6787 * remote.c (remote_target::get_offsets): Update.
6788 * solib-target.c (solib_target_relocate_section_addresses):
6789 Update.
6790
62982abd
SM
67912020-05-19 Simon Marchi <simon.marchi@efficios.com>
6792
6793 * symfile.h (struct symfile_segment_data): Initialize fields.
6794 <~symfile_segment_data>: Add.
6795 (symfile_segment_data_up): New.
6796 (struct sym_fns) <sym_segments>: Return a
6797 symfile_segment_data_up.
6798 (default_symfile_segments): Return a symfile_segment_data_up.
6799 (free_symfile_segment_data): Remove.
6800 (get_symfile_segment_data): Return a symfile_segment_data_up.
6801 * symfile.c (default_symfile_segments): Likewise.
6802 (get_symfile_segment_data): Likewise.
6803 (free_symfile_segment_data): Remove.
6804 (symfile_find_segment_sections): Update.
6805 * elfread.c (elf_symfile_segments): Return a
6806 symfile_segment_data_up.
6807 * remote.c (remote_target::get_offsets): Update.
6808 * solib-target.c (solib_target_relocate_section_addresses):
6809 Update.
6810 * symfile-debug.c (debug_sym_segments): Return a
6811 symfile_segment_data_up.
6812
7f204339
RO
68132020-05-18 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
6814
e52a0f1b
RO
6815 PR build/25981
6816 * i386-sol2-nat.c [PR_MODEL_NATIVE != PR_MODEL_LP64] (regmap):
6817 Hardcode register numbers.
6818
7f204339
RO
6819 PR build/25981
6820 * procfs.c [(__i386__ || __x86_64__) && sun] (proc_get_LDT_entry,
6821 procfs_find_LDT_entry): Remove.
6822 * procfs.h [(__i386__ || __x86_64__) && sun] (struct ssd,
6823 procfs_find_LDT_entry): Remove.
6824 * sol-thread.c [(__i386__ || __x86_64__) && sun] (ps_lgetLDT):
6825 Remove.
6826
7f32a4d5
PA
68272020-05-17 Pedro Alves <palves@redhat.com>
6828 Andrew Burgess <andrew.burgess@embecosm.com>
6829 Keno Fischer <keno@juliacomputing.com>
6830
6831 PR gdb/25741
6832 * breakpoint.c (build_target_condition_list): Update comments.
6833 (build_target_command_list): Update comments and skip matching
6834 locations.
6835 (insert_bp_location): Move "set breakpoint auto-hw on" handling to
6836 a separate function. Simplify "set breakpoint auto-hw off"
6837 handling.
6838 (insert_breakpoints): Update comment.
6839 (tracepoint_locations_match): New parameter. For breakpoints,
6840 compare location types too, if the caller wants to.
6841 (handle_automatic_hardware_breakpoints): New functions.
6842 (bp_location_is_less_than): Also sort by location type and
6843 hardware breakpoint length.
6844 (update_global_location_list): Handle "set breakpoint auto-hw on"
6845 here.
6846 (update_breakpoint_locations): Ask breakpoint_locations_match to
6847 ignore location types.
6848
7d93a1e0
SM
68492020-05-16 Simon Marchi <simon.marchi@efficios.com>
6850
6851 * gdbtypes.h (TYPE_NAME): Remove. Change all cal sites to use
6852 type::name instead.
6853
d0e39ea2
SM
68542020-05-16 Simon Marchi <simon.marchi@efficios.com>
6855
6856 * gdbtypes.h (struct type) <name, set_name>: New methods.
6857 (TYPE_CODE): Use type::name. Change all call sites used to set
6858 the name to use type::set_name instead.
6859
2dab0c7b
TT
68602020-05-16 Tom Tromey <tom@tromey.com>
6861
6862 * top.c (quit_force): Update.
6863 * infrun.c (handle_no_resumed): Update.
6864 * top.h (all_uis): New function.
6865 (ALL_UIS): Remove.
6866
59f7bd8d
SM
68672020-05-16 Simon Marchi <simon.marchi@efficios.com>
6868
6869 * mips-linux-tdep.c (mips_linux_in_dynsym_stub): Fix condition.
6870
9bf058f0
PA
68712020-05-16 Pedro Alves <palves@redhat.com>
6872
6873 * ia64-linux-nat.c
6874 (ia64_linux_nat_target) <enable_watchpoints_in_psr(ptid_t)>:
6875 Declare method.
6876 (enable_watchpoints_in_psr): Now a method of ia64_linux_nat_target.
6877
8f86ae1a
SM
68782020-05-15 Simon Marchi <simon.marchi@efficios.com>
6879
6880 * sparc64-tdep.c (adi_stat_t): Remove typedef (leaving struct).
6881 (sparc64_adi_info): Likewise.
6882
d6bc0792
TT
68832020-05-15 Tom Tromey <tom@tromey.com>
6884
6885 * symtab.c (lookup_language_this, lookup_symbol_aux): Use
6886 block_objfile.
6887 (lookup_objfile_from_block): Remove.
6888 (lookup_symbol_in_block, lookup_symbol_in_static_block)
6889 (lookup_global_symbol): Use block_objfile.
6890 * symtab.h (lookup_objfile_from_block): Don't declare.
6891 * printcmd.c (clear_dangling_display_expressions): Use
6892 block_objfile.
6893 * parse.c (operator_check_standard): Use block_objfile.
6894
8c14c3a3
TT
68952020-05-15 Tom Tromey <tom@tromey.com>
6896
6897 * language.c (language_alloc_type_symbol): Set
6898 SYMBOL_SECTION.
6899 * symtab.c (initialize_objfile_symbol): Remove.
6900 (allocate_symbol): Remove.
6901 (allocate_template_symbol): Remove.
6902 * dwarf2/read.c (fixup_go_packaging): Use "new".
6903 (new_symbol): Use "new".
6904 (read_variable): Don't call initialize_objfile_symbol. Use
6905 "new".
6906 (read_func_scope): Use "new".
6907 * xcoffread.c (process_xcoff_symbol): Don't call
6908 initialize_objfile_symbol.
6909 (SYMBOL_DUP): Remove.
6910 * coffread.c (process_coff_symbol, coff_read_enum_type): Use
6911 "new".
6912 * symtab.h (allocate_symbol, initialize_objfile_symbol)
6913 (allocate_template_symbol): Don't declare.
6914 (struct symbol): Add copy constructor. Change defaults.
6915 * jit.c (finalize_symtab): Use "new".
6916 * ctfread.c (ctf_add_enum_member_cb, new_symbol, ctf_add_var_cb):
6917 Use "new".
6918 * stabsread.c (patch_block_stabs, define_symbol, read_enum_type)
6919 (common_block_end): Use "new".
6920 * mdebugread.c (parse_symbol): Use "new".
6921 (new_symbol): Likewise.
6922
5b4a1a8d
PW
69232020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6924
6925 * NEWS: Mention changes to help and apropos.
6926
57b4f16e
PW
69272020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6928
6929 * command.h (enum command_class): Improve comments, document
6930 that class_alias is for user-defined aliases, give the class
6931 name for each class, remove unused class_xdb.
6932 * cli/cli-decode.c (add_com_alias): Document THECLASS intended usage.
6933 * breakpoint.c (_initialize_breakpoint): Replace class_alias
6934 by a precise class.
6935 * infcmd.c (_initialize_infcmd): Likewise.
6936 * reverse.c (_initialize_reverse): Likewise.
6937 * stack.c (_initialize_stack): Likewise.
6938 * symfile.c (_initialize_symfile): Likewise.
6939 * tracepoint.c (_initialize_tracepoint): Likewise.
6940
7c05caf7
PW
69412020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6942
6943 * cli/cli-decode.c (apropos_cmd): Produce output for aliases
6944 when their aliased command is traversed.
6945 (help_cmd): Add fput_command_names_styled call to
6946 output command name and aliases when command has an alias.
6947
3b3aaacb
PW
69482020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6949
6950 * cli/cli-decode.h (help_cmd_list): Remove declaration.
6951 * cli/cli-decode.c (help_cmd_list): Declare as static,
6952 remove prefix argument, use bool for recurse arg, rework to show the aliases of
6953 a command together with the command.
6954 (fput_command_name_styled, fput_command_names_styled): New functions.
6955 (print_help_for_command): Remove prefix arg, use bool for recurse arg, use
6956 fput_command_name_styled.
6957 (help_list, help_all): Update callers to remove prefix arg and use bool recurse.
6958 * cli/cli-cmds.c (_initialize_cli_cmds): Update alias_command doc.
6959
7aa1b46f
PW
69602020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6961
6962 * cli/cli-setshow.h (cmd_show_list): Remove prefix argument.
6963 * cli/cli-decode.c (do_show_prefix_cmd): Likewise.
6964 * command.h (cmd_show_list): Likewise.
6965 * dwarf2/index-cache.c (show_index_cache_command): Likewise.
6966 * cli/cli-setshow.c (cmd_show_list): Use the prefix to produce the output. Skip aliases.
6967
89bcba74
PW
69682020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6969
6970 * unittests/command-def-selftests.c (traverse_command_structure):
6971 Verify all commands of a list have the same prefix command and
6972 that only the top cmdlist commands have a null prefix.
6973
3f4d92eb
PW
69742020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6975
6976 * cli/cli-decode.c (lookup_cmd_for_prefix): Return the aliased command
6977 as prefix, not one of its aliases.
6978 (set_cmd_prefix): Remove.
6979 (do_add_cmd): Centralize the setting of the prefix of a command, when
6980 command is defined after its full chain of prefix commands.
6981 (add_alias_cmd): Remove call to set_cmd_prefix, as do_add_cmd does it.
6982 (add_setshow_cmd_full): Likewise.
6983 (update_prefix_field_of_prefixed_commands): New function.
6984 (add_prefix_cmd): Replace non working call to set_cmd_prefix by
6985 update_prefix_field_of_prefixed_commands.
6986 * gdb/remote-fileio.c (initialize_remote_fileio): Use the real
6987 addresses of remote_set_cmdlist and remote_show_cmdlist given
6988 as argument, not the address of an argument.
6989 * gdb/remote-fileio.h (initialize_remote_fileio): Likewise.
6990 * gdb/remote.c (_initialize_remote): Likewise.
6991
0605465f
PW
69922020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6993
6994 * cli/cli-cmds.c (alias_command): Check for an existing alias
6995 using lookup_cmd_composition, as valid_command_p is too strict
6996 and forbids aliases that are the prefix of an existing alias
6997 or command.
6998 * cli/cli-decode.c (lookup_cmd_composition): Ensure a prefix
6999 command is properly recognised as a valid command.
7000
58e6ac70
PW
70012020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
7002
7003 * unittests/help-doc-selftests.c: Rename to
7004 unittests/command-def-selftests.c
7005 * unittests/command-def-selftests.c (help_doc_tests): Update some
7006 comments.
7007 (command_structure_tests, traverse_command_structure): New namespace
7008 and function.
7009 (command_structure_invariants_tests): New function.
7010 (_initialize_command_def_selftests) Renamed from
7011 _initialize_help_doc_selftests, register command_structure_invariants
7012 selftest.
7013
a7b9ceb8
PW
70142020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
7015
7016 * cli/cli-cmds.c (_initialize_cli_cmds): Define 'info set' as
7017 an alias of 'show'.
7018
b2188a06
JB
70192020-05-15 Joel Brobecker <brobecker@adacore.com>
7020
7021 * ada-lang.h: (ada_is_gnat_encoded_fixed_point_type): Renames
7022 ada_is_fixed_point_type. Update all callers.
7023 (gnat_encoded_fixed_point_delta): Renames ada_delta. Update
7024 all callers.
7025 * ada-lang.c (gnat_encoded_fixed_type_info): Renames fixed_type_info.
7026 Update all callers.
7027 * ada-typeprint.c (print_gnat_encoded_fixed_point_type): Renames
7028 print_fixed_point_type. Update all callers.
7029 * ada-valprint.c (ada_value_print_num): Replace call to
7030 ada_is_fixed_point_type by ada_is_gnat_encoded_fixed_point_type.
7031
a51951c2
KB
70322020-05-14 Kevin Buettner <kevinb@redhat.com>
7033
7034 * nat/linux-btrace.c (btrace_this_cpu): Add check for AMD
7035 processors.
7036 (cpu_supports_bts): Add CV_AMD case.
7037
29d6859f
LM
70382020-05-14 Laurent Morichetti <Laurent.Morichetti@amd.com>
7039 Simon Marchi <simon.marchi@efficios.com>
7040
7041 * infrun.c (stop_all_threads): Collect multiple wait events at
7042 each pass.
7043
78134374
SM
70442020-05-14 Simon Marchi <simon.marchi@efficios.com>
7045
7046 * gdbtypes.h (TYPE_CODE): Remove. Change all call sites to use
7047 type::code instead.
7048
67607e24
SM
70492020-05-14 Simon Marchi <simon.marchi@efficios.com>
7050
7051 * gdbtypes.h (struct type) <code, set_code>: New methods.
7052 (TYPE_CODE): Use type::code. Change all call sites used to set
7053 the code to use type::set_code instead.
7054
a05575d3
TBA
70552020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
7056 Tom de Vries <tdevries@suse.de>
7057 Pedro Alves <palves@redhat.com>
7058
7059 PR threads/25478
7060 * infrun.c (stop_all_threads): Do NOT ignore
7061 TARGET_WAITKIND_NO_RESUMED, TARGET_WAITKIND_THREAD_EXITED,
7062 TARGET_WAITKIND_EXITED, TARGET_WAITKIND_SIGNALLED wait statuses
7063 received.
7064 (handle_no_resumed): Remove code handling a live inferior with no
7065 threads.
7066 * remote.c (has_single_non_exited_thread): New.
7067 (remote_target::update_thread_list): Do not delete a thread if is
7068 the last thread of the process.
7069 * thread.c (thread_select): Call delete_exited_threads instead of
7070 prune_threads.
7071
6ad82919
TBA
70722020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
7073
7074 * infrun.c (stop_all_threads): Enable/disable thread events of all
7075 targets. Move a debug message denoting the end of the function
7076 into the SCOPED_EXIT block.
7077
d890404b
TBA
70782020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
7079
7080 * process-stratum-target.h: Include <set>.
7081 (all_non_exited_process_targets, switch_to_target_no_thread): New
7082 function declarations.
7083 * process-stratum-target.c (all_non_exited_process_targets)
7084 (switch_to_target_no_thread): New function implementations.
7085
293b3ebc
TBA
70862020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
7087
7088 * infrun.c (handle_inferior_event): Extract out a piece of code
7089 into...
7090 (mark_non_executing_threads): ...this new function.
7091
7ca9b62a
TBA
70922020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
7093
7094 * infrun.c (resume_1): Move a 'regcache_read_pc' call down to first
7095 use.
7096
fc75c28b
TBA
70972020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
7098
7099 * regcache.c (regcache_read_pc_protected): New function
7100 implementation that returns 0 if the PC cannot read via
7101 'regcache_read_pc'.
7102 * infrun.c (proceed): Call 'regcache_read_pc_protected'
7103 instead of 'regcache_read_pc'.
7104 (keep_going_pass_signal): Ditto.
7105
a89febbd
TT
71062020-05-13 Tom Tromey <tromey@adacore.com>
7107
7108 * ada-lang.c (align_value): Remove.
7109 (ada_template_to_fixed_record_type_1): Use align_up.
7110
f7e23710
TBA
71112020-05-13 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
7112
7113 * async-event.c: Update the copyright year.
7114 * async-event.h: Update the copyright year.
7115
02ff80c2
SM
71162020-05-12 Simon Marchi <simon.marchi@efficios.com>
7117
7118 * objfiles.h (is_addr_in_objfile,
7119 shared_objfile_contains_address_p): Return bool.
7120 * objfile.c (is_addr_in_objfile,
7121 shared_objfile_contains_address_p): Return bool.
7122
4fd6c7e8
TT
71232020-05-11 Tom Tromey <tromey@adacore.com>
7124
7125 * cli/cli-cmds.c (info_command): Restore.
7126 (_initialize_cli_cmds): Use add_prefix_command for "info".
7127 * gdb-gdb.gdb.in: Restore breakpoint on info_command.
7128
5eb68a39
TT
71292020-05-11 Tom Tromey <tromey@adacore.com>
7130
7131 * ada-lang.c (ada_value_primitive_field): Now public.
7132 * ada-lang.h (ada_value_primitive_field): Declare.
7133 * ada-valprint.c (print_field_values): Use
7134 ada_value_primitive_field for wrapper fields.
7135
7666722f
TV
71362020-05-11 Tom de Vries <tdevries@suse.de>
7137
7138 * dwarf2/index-write.c (debug_names::psymbol_tag): Handle
7139 MODULE_DOMAIN.
7140
3ee6bb11
TV
71412020-05-11 Tom de Vries <tdevries@suse.de>
7142
7143 PR symtab/25941
7144 * dwarf2/read.c (create_cus_from_debug_names_list): Initialize CUs
7145 with length 0, if not gdb-produced.
7146 (cutu_reader::cutu_reader): Set CU length to actual length if 0.
7147
43434996
TV
71482020-05-09 Tom de Vries <tdevries@suse.de>
7149
7150 PR gdb/25955
7151 * break-catch-throw.c (check_status_exception_catchpoint): Fix name
7152 calculation.
7153
2f78cffc
TT
71542020-05-09 Tom Tromey <tom@tromey.com>
7155
7156 * top.c (server_command): Now bool.
7157 * top.h (server_command): Now bool.
7158
4f7bc5ed
TT
71592020-05-08 Tom Tromey <tromey@adacore.com>
7160
7161 * dwarf2/read.c (read_lexical_block_scope): Don't process a DIE
7162 already being processed.
7163
8be4b118
TT
71642020-05-08 Tom Tromey <tom@tromey.com>
7165
7166 * printcmd.c (struct display) <next>: Remove.
7167 <display>: New constructor.
7168 <exp_string>: Now a std::string.
7169 <enabled_p>: Now a bool.
7170 (display_number): Move definition earlier.
7171 (displays): Rename from display_chain. Now a std::vector.
7172 (ALL_DISPLAYS, ALL_DISPLAYS_SAFE): Remove.
7173 (display_command): Update.
7174 (do_one_display, disable_display)
7175 (enable_disable_display_command, do_enable_disable_display):
7176 Update.
7177 (free_display): Remove.
7178 (clear_displays): Rewrite.
7179 (delete_display): Update.
7180 (map_display_numbers): Use function_view. Remove "data"
7181 parameter. Update.
7182 (do_delete_display): Remove.
7183 (undisplay_command): Update.
7184 (do_one_display, do_displays, disable_display)
7185 (info_display_command): Update.
7186 (do_enable_disable_display): Remove.
7187 (enable_disable_display_command)
7188 (clear_dangling_display_expressions): Update.
7189
94c93c35
TT
71902020-05-08 Tom Tromey <tom@tromey.com>
7191
7192 * symtab.c (set_symbol_cache_size)
7193 (maintenance_print_symbol_cache, maintenance_flush_symbol_cache)
7194 (maintenance_print_symbol_cache_statistics): Update.
7195 * symmisc.c (print_symbol_bcache_statistics)
7196 (print_objfile_statistics, maintenance_print_objfiles)
7197 (maintenance_info_symtabs, maintenance_check_symtabs)
7198 (maintenance_expand_symtabs, maintenance_info_line_tables):
7199 Update.
7200 * symfile-debug.c (set_debug_symfile): Update.
7201 * source.c (forget_cached_source_info): Update.
7202 * python/python.c (gdbpy_progspaces): Update.
7203 * psymtab.c (maintenance_info_psymtabs): Update.
7204 * probe.c (parse_probes): Update.
7205 * linespec.c (iterate_over_all_matching_symtabs)
7206 (collect_symtabs_from_filename, search_minsyms_for_name): Update.
7207 * guile/scm-progspace.c (gdbscm_progspaces): Update.
7208 * exec.c (exec_target::close): Update.
7209 * ada-tasks.c (ada_tasks_new_objfile_observer): Update.
7210 * breakpoint.c (print_one_breakpoint_location)
7211 (create_longjmp_master_breakpoint)
7212 (create_std_terminate_master_breakpoint): Update.
7213 * progspace.c (program_spaces): Now a std::vector.
7214 (maybe_new_address_space): Update.
7215 (add_program_space): Remove.
7216 (program_space::program_space): Update.
7217 (remove_program_space): Update.
7218 (number_of_program_spaces): Remove.
7219 (print_program_space, update_address_spaces): Update.
7220 * progspace.h (program_spaces): Change type.
7221 (ALL_PSPACES): Remove.
7222 (number_of_program_spaces): Don't declare.
7223 (struct program_space) <next>: Remove.
7224
a1fd1ac9
TT
72252020-05-08 Tom Tromey <tom@tromey.com>
7226
7227 * mi/mi-cmd-file.c (mi_cmd_file_list_shared_libraries): Update.
7228 * solib-svr4.c (svr4_fetch_objfile_link_map): Update.
7229 (enable_break): Update.
7230 * solib-frv.c (frv_fdpic_find_global_pointer): Update.
7231 (frv_fdpic_find_canonical_descriptor): Update.
7232 (frv_fetch_objfile_link_map): Update.
7233 * progspace.c (program_space::free_all_objfiles): Update.
7234 (program_space::solibs): New method.
7235 * progspace.h (struct program_space) <solibs>: New method.
7236 * solist.h (master_so_list): Don't declare.
7237 (ALL_SO_LIBS): Remove.
7238 * solib.h (so_list_head): Remove.
7239 (update_solib_list): Update comment.
7240 * solib.c (master_so_list): Remove.
7241 (solib_used, update_solib_list, solib_add)
7242 (info_sharedlibrary_command, clear_solib)
7243 (reload_shared_libraries_1, remove_user_added_objfile): Update.
7244
38eae084
TT
72452020-05-08 Tom Tromey <tom@tromey.com>
7246
7247 * extension.c (extension_languages): Now a std::array.
7248 (ALL_EXTENSION_LANGUAGES): Remove.
7249 (get_ext_lang_defn, get_ext_lang_of_file)
7250 (eval_ext_lang_from_control_command): Update.
7251 (finish_ext_lang_initialization)
7252 (auto_load_ext_lang_scripts_for_objfile)
7253 (ext_lang_type_printers::ext_lang_type_printers)
7254 (apply_ext_lang_type_printers)
7255 (ext_lang_type_printers::~ext_lang_type_printers)
7256 (apply_ext_lang_val_pretty_printer, apply_ext_lang_frame_filter)
7257 (preserve_ext_lang_values, get_breakpoint_cond_ext_lang)
7258 (breakpoint_ext_lang_cond_says_stop, check_quit_flag)
7259 (get_matching_xmethod_workers, ext_lang_colorize)
7260 (ext_lang_before_prompt): Update.
7261 (ALL_ENABLED_EXTENSION_LANGUAGES): Remove.
7262
596dc4ad
TT
72632020-05-08 Tom Tromey <tom@tromey.com>
7264
7265 * symtab.h (class demangle_result_storage) <set_malloc_ptr>: New
7266 overload.
7267 <swap_string, m_string>: Remove.
7268 * symtab.c (demangle_for_lookup, completion_list_add_symbol):
7269 Update.
7270 * stabsread.c (define_symbol, read_type): Update.
7271 * linespec.c (find_linespec_symbols): Update.
7272 * gnu-v3-abi.c (gnuv3_get_typeid): Update.
7273 * dwarf2/read.c (dwarf2_canonicalize_name): Update.
7274 * dbxread.c (read_dbx_symtab): Update.
7275 * cp-support.h (cp_canonicalize_string_full)
7276 (cp_canonicalize_string, cp_canonicalize_string_no_typedefs):
7277 Return unique_xmalloc_ptr.
7278 * cp-support.c (inspect_type): Update.
7279 (cp_canonicalize_string_full): Return unique_xmalloc_ptr.
7280 (cp_canonicalize_string_no_typedefs, cp_canonicalize_string):
7281 Likewise.
7282 * c-typeprint.c (print_name_maybe_canonical): Update.
7283 * break-catch-throw.c (check_status_exception_catchpoint):
7284 Update.
7285
bf4cb9be
TV
72862020-05-08 Tom de Vries <tdevries@suse.de>
7287
7288 * infrun.c (follow_fork): Copy current_line and current_symtab to
7289 child thread.
7290
a1b68f28
SM
72912020-05-07 Simon Marchi <simon.marchi@efficios.com>
7292
7293 * async-event.c (struct async_signal_handler, struct
7294 async_event_handler): Reformat, remove typedef.
7295
98d48915
SM
72962020-05-07 Simon Marchi <simon.marchi@efficios.com>
7297
7298 * gdbtypes.h (TYPE_DYN_PROP_LIST): Remove. Update all users
7299 access thistype->main_type->dyn_prop_list directly.
7300
7aa91313
SM
73012020-05-07 Simon Marchi <simon.marchi@efficios.com>
7302
7303 * gdbtypes.h (struct type) <remove_dyn_prop>: New method.
7304 (remove_dyn_prop): Remove. Update all users to use
7305 type::remove_dyn_prop.
7306 * gdbtypes.c (remove_dyn_prop): Rename to...
7307 (type::remove_dyn_prop): ... this.
7308
5c54719c
SM
73092020-05-07 Simon Marchi via Gdb-patches <gdb-patches@sourceware.org>
7310
7311 * gdbtypes.h (struct type) <add_dyn_prop>: New method.
7312 (add_dyn_prop): Remove. Update all users to use
7313 type::add_dyn_prop.
7314 * gdbtypes.c (add_dyn_prop): Rename to...
7315 (type::add_dyn_prop): ... this.
7316
24e99c6c
SM
73172020-05-07 Simon Marchi <simon.marchi@efficios.com>
7318
7319 * gdbtypes.h (struct type) <get_dyn_prop>: New method.
7320 (get_dyn_prop): Remove. Update all users to use
7321 type::dyn_prop.
7322 * gdbtypes.c (get_dyn_prop): Rename to...
7323 (type::dyn_prop): ... this.
7324
0d4bf016
SM
73252020-05-06 Simon Marchi <simon.marchi@efficios.com>
7326
7327 * gdbtypes.h (struct main_type) <flag_static>: Remove.
7328
ac4a4f1c
SM
73292020-05-06 Simon Marchi <simon.marchi@efficios.com>
7330
7331 * amd64-tdep.c (amd64_analyze_prologue): Check for `endbr64`
7332 instruction, skip it if it's there.
7333
a3bbacc1
SM
73342020-05-05 Simon Marchi <simon.marchi@efficios.com>
7335
7336 * gdbtypes.h (struct main_type) <flag_incomplete>: Remove.
7337
c3236f84
SM
73382020-05-04 Simon Marchi <simon.marchi@efficios.com>
7339
7340 * gdbtypes.h (TYPE_INCOMPLETE): Remove.
7341 * gdbtypes.c (recursive_dump_type): Remove use of
7342 TYPE_INCOMPLETE.
7343
3b6acaee
TT
73442020-05-03 Tom Tromey <tom@tromey.com>
7345
7346 * breakpoint.c (catch_command, tcatch_command): Remove.
7347 (_initialize_breakpoint): Use add_basic_prefix_cmd,
7348 add_show_prefix_cmd.
7349 (set_breakpoint_cmd, show_breakpoint_cmd): Remove
7350 * utils.c (set_internal_problem_cmd, show_internal_problem_cmd):
7351 Remove.
7352 (add_internal_problem_command): Use add_basic_prefix_cmd,
7353 add_show_prefix_cmd.
7354 * mips-tdep.c (set_mipsfpu_command): Remove.
7355 (_initialize_mips_tdep): Use add_basic_prefix_cmd.
7356 * dwarf2/index-cache.c (set_index_cache_command): Remove.
7357 (_initialize_index_cache): Use add_basic_prefix_cmd.
7358 * memattr.c (dummy_cmd): Remove.
7359 (_initialize_mem): Use add_basic_prefix_cmd, add_show_prefix_cmd.
7360 * tui/tui-win.c (set_tui_cmd, show_tui_cmd): Remove.
7361 (_initialize_tui_win): Use add_basic_prefix_cmd,
7362 add_show_prefix_cmd.
7363 * cli/cli-logging.c (set_logging_command): Remove.
7364 (_initialize_cli_logging): Use add_basic_prefix_cmd,
7365 add_show_prefix_cmd.
7366 (show_logging_command): Remove.
7367 * target.c (target_command): Remove.
7368 (add_target): Use add_basic_prefix_cmd.
7369
a51119cd
HD
73702020-05-02 Hannes Domani <ssbssa@yahoo.de>
7371
7372 * gdbtypes.h (enum dynamic_prop_node_kind): Fix typo.
7373
652fc23a 73742020-05-01 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6a6ea76a 7375
652fc23a
PW
7376 * gdb-gdb.gdb-in: Remove breakpoint on disappeared function
7377 info_command.
7378
117539e6
KR
73792020-04-30 Kamil Rytarowski <n54@gmx.com>
7380
7381 * nbsd-nat.c (nbsd_enable_proc_events)
7382 (nbsd_nat_target::post_startup_inferior): Add.
7383 (nbsd_nat_target::post_attach): Call `nbsd_enable_proc_events'.
7384 (nbsd_nat_target::update_thread_list): Rewrite.
7385 (nbsd_nat_target::wait): Handle "PTRACE_LWP_EXIT" and
7386 "PTRACE_LWP_CREATE".
7387 * nbsd-nat.h (nbsd_nat_target::post_startup_inferior): Add.
7388
102e38eb 73892020-04-30 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6a6ea76a 7390
102e38eb
PW
7391 * stack.c (_initialize_stack): Remove duplicated creation
7392 of "frame" command and "f" alias.
7393
ee9d1e5f
HD
73942020-04-30 Hannes Domani <ssbssa@yahoo.de>
7395
7396 PR gdb/18706
7397 * gdbtypes.c (check_typedef): Calculate size of array of
7398 stubbed type.
7399
627c7fb8
HD
74002020-04-30 Hannes Domani <ssbssa@yahoo.de>
7401
7402 PR gdb/15559
7403 * i386-tdep.c (i386_push_dummy_call): Call
7404 i386_thiscall_push_dummy_call.
7405 (i386_thiscall_push_dummy_call): New function.
7406 * i386-tdep.h (i386_thiscall_push_dummy_call): Declare.
7407 * i386-windows-tdep.c (i386_windows_push_dummy_call): New function.
7408 (i386_windows_init_abi): Call set_gdbarch_push_dummy_call.
7409
ffc2844e
SM
74102020-04-29 Simon Marchi <simon.marchi@efficios.com>
7411
7412 * gdbarch.sh (do_read): Add shellcheck disable directive for
7413 warning SC2162.
7414
1207375d
SM
74152020-04-29 Simon Marchi <simon.marchi@efficios.com>
7416
7417 * gdbarch.sh: Use ${foo:-} where shellcheck would report a
7418 "referenced but not assigned" warning.
7419
9fdb2916
SM
74202020-04-29 Simon Marchi <simon.marchi@efficios.com>
7421
7422 * gdbarch.sh: Remove code that sets fallbackdefault.
7423
759cea5e
SM
74242020-04-29 Simon Marchi <simon.marchi@efficios.com>
7425
7426 * gdbarch.sh: Use shell operators && and || instead of
7427 -a and -o.
7428
cb02ab24
SM
74292020-04-29 Simon Marchi <simon.marchi@efficios.com>
7430
7431 * gdbarch.sh: Use $(...) instead of `...`.
7432
a6fc5ffc
SM
74332020-04-29 Simon Marchi <simon.marchi@efficios.com>
7434
7435 * gdbarch.sh: Use double quotes around variables.
7436
8d113d13
SM
74372020-04-29 Simon Marchi <simon.marchi@efficios.com>
7438
7439 * gdbarch.sh: Use %s with printf, instead of variables in the
7440 format string.
7441
ed6acedd
TT
74422020-04-29 Tom Tromey <tromey@adacore.com>
7443
7444 PR ada/25875:
7445 * dwarf2/read.c (update_enumeration_type_from_children): Compute
7446 type fields here.
7447 (read_enumeration_type): Call
7448 update_enumeration_type_from_children later. Update comments.
7449 (process_enumeration_scope): Don't create type fields.
7450
b68b1b58
KR
74512020-04-29 Kamil Rytarowski <n54@gmx.com>
7452
7453 * nbsd-tdep.c: Include "xml-syscall.h".
7454 (nbsd_init_abi): Call `set_xml_syscall_file_name'.
7455
f94b2e03
KR
74562020-04-29 Kamil Rytarowski <n54@gmx.com>
7457
7458 * nbsd-nat.c: Include "sys/wait.h".
7459 (nbsd_resume, nbsd_nat_target::resume, nbsd_wait)
7460 (nbsd_nat_target::wait, nbsd_nat_target::insert_exec_catchpoint)
7461 (nbsd_nat_target::remove_exec_catchpoint)
7462 (nbsd_nat_target::set_syscall_catchpoint): Add.
7463 * nbsd-nat.h (nbsd_nat_target::resume, nbsd_nat_target::wait)
7464 (nbsd_nat_target::insert_exec_catchpoint)
7465 (nbsd_nat_target::remove_exec_catchpoint)
7466 (nbsd_nat_target::set_syscall_catchpoint): Add.
7467 * nbsd-tdep.c (nbsd_get_syscall_number): Add.
7468 (nbsd_init_abi): Call `set_gdbarch_get_syscall_number' and pass
7469 `nbsd_get_syscall_number'.
7470
fc49bc72
TT
74712020-04-29 Tom Tromey <tom@tromey.com>
7472
7473 * stack.c (print_block_frame_labels): Remove.
7474
d642b692
HD
74752020-04-29 Hannes Domani <ssbssa@yahoo.de>
7476
7477 PR gdb/17320
7478 * ada-valprint.c (val_print_packed_array_elements): Move array
7479 end bracket to new line.
7480 (ada_val_print_string): Remove extra spaces before first array
7481 element.
7482 * c-valprint.c (c_value_print_array): Likewise.
7483 * m2-valprint.c (m2_print_array_contents): Likewise.
7484 (m2_value_print_inner): Likewise.
7485 * p-valprint.c (pascal_value_print_inner): Likewise.
7486 * valprint.c (generic_val_print_array): Likewise.
7487 (value_print_array_elements): Move first array element and array
7488 end bracket to new line.
7489
ea90f227
TV
74902020-04-29 Tom de Vries <tdevries@suse.de>
7491
7492 PR symtab/25889
7493 * linespec.c (find_method): Fix ix calculation.
7494
4498ef4f
KR
74952020-04-28 Kamil Rytarowski <n54@gmx.com>
7496
7497 * syscalls/update-netbsd.sh: New file.
7498 * syscalls/netbsd.xml: Regenerate.
7499 * data-directory/Makefile.in: Register `netbsd.xml' in
7500 `SYSCALLS_FILES'.
7501
a55e30b5
SM
75022020-04-28 Simon Marchi <simon.marchi@efficios.com>
7503
7504 * syscalls/update-freebsd.sh: Add double quotes.
7505
2b2fbab8
TT
75062020-04-28 Tom Tromey <tom@tromey.com>
7507
7508 * NEWS: Update.
7509 * python/py-cmd.c (gdbpy_initialize_commands): Add COMMAND_TUI.
7510 (cmdpy_init): Allow class_tui.
7511
a65189c9
TV
75122020-04-28 Mark Williams <mark@myosotissp.com>
7513
7514 PR gdb/24480
7515 * dwarf2read.c: Add missing assingments to list_in_scope when
7516 start_symtab was already called.
7517
1b95cdb7
SM
75182020-04-28 Simon Marchi <simon.marchi@efficios.com>
7519
7520 PR gdb/25881
7521 * dwarf2/read.c (offset_map_type): Use
7522 gdb:hash_enum<sect_offset> as hash function.
7523
15cd93d0
TV
75242020-04-28 Tom de Vries <tdevries@suse.de>
7525
7526 * dwarf2/read.c (process_structure_scope): Add symbol for struct decl
7527 with DW_AT_signature.
7528
1eb39914
SM
75292020-04-27 Simon Marchi <simon.marchi@efficios.com>
7530
7531 * configure.ac: Remove check for fs_base/gs_base in
7532 user_regs_struct.
7533 * configure: Re-generate.
7534 * config.in: Re-generate.
7535 * amd64-nat.c (amd64_native_gregset_reg_offset): Adjust.
7536 * amd64-linux-nat.c (amd64_linux_nat_target::fetch_registers,
7537 amd64_linux_nat_target::store_registers, ps_get_thread_area, ): Adjust.
7538
991a3e2e
LM
75392020-04-27 Luis Machado <luis.machado@linaro.org>
7540
7541 * dwarf2/frame-tailcall.c (dwarf2_tailcall_sniffer_first): Handle
7542 problematic inline frame unwinding situation.
7543 * frame.c (frame_id_computed_p): New function.
7544 * frame.h (frame_id_computed_p): New prototype.
7545
361ba0e8
TT
75462020-04-26 Tom Tromey <tom@tromey.com>
7547
7548 * command.h (enum command_class) <class_pseudo>: Remove.
7549
bc3609fd
PW
75502020-04-26 Philippe Waroquiers <philippe.waroquiers@skynet.be>
7551
7552 * cli/cli-decode.c (lookup_cmd_composition): Fix comments
7553 and whitespace.
7554
b9771db7
KR
75552020-04-25 Kamil Rytarowski <n54@gmx.com>
7556
ec16513e
SM
7557 * inf-ptrace.c (inf_ptrace_target::wait): Remove
7558 `PT_GET_PROCESS_STATE' block.
b9771db7 7559
7151c1af
TT
75602020-04-24 Tom Tromey <tom@tromey.com>
7561
7562 * symtab.h (symbol_get_demangled_name): Don't declare.
7563 * symtab.c (symbol_get_demangled_name): Remove.
7564 (general_symbol_info::natural_name)
7565 (general_symbol_info::demangled_name): Update.
7566
906bb4c5
TT
75672020-04-24 Tom Tromey <tom@tromey.com>
7568
7569 PR rust/25025:
7570 * dwarf2/read.c (dwarf2_physname): Do not demangle for Rust.
7571
bcfe6157
TT
75722020-04-24 Tom Tromey <tom@tromey.com>
7573
7574 PR symtab/12707:
7575 * dwarf2/read.c (add_partial_symbol): Use the linkage name if it
7576 exists.
7577 (new_symbol): Likewise.
7578 * compile/compile-object-load.c (get_out_value_type): Use
7579 symbol_matches_search_name.
7580
f049a313
TT
75812020-04-24 Tom Tromey <tom@tromey.com>
7582
7583 * dwarf2/read.c (add_partial_symbol): Do not call
7584 compute_and_set_names.
7585
76e288d1
TT
75862020-04-24 Tom Tromey <tom@tromey.com>
7587
7588 * dwarf2/read.c (add_partial_symbol): Use new add_psymbol_to_list
7589 overload.
7590
2467f4f6
TT
75912020-04-24 Tom Tromey <tom@tromey.com>
7592
7593 * psymtab.c (add_psymbol_to_bcache): Simplify calling convention.
7594 (add_psymbol_to_list): New overload. Make old overload call new
7595 one.
7596 * psympriv.h (add_psymbol_to_list): New overload.
7597
e61108c9
TT
75982020-04-24 Tom Tromey <tom@tromey.com>
7599
7600 * dwarf2/read.c (partial_die_info::read) <case
7601 DW_AT_linkage_name>: Use value_as_string.
7602 (dwarf2_string_attr): Use value_as_string.
7603 * dwarf2/attribute.h (struct attribute) <value_as_string>: Declare
7604 method.
7605 * dwarf2/attribute.c (attribute::value_as_string): New method.
7606
8c87a452
TT
76072020-04-24 Tom Tromey <tom@tromey.com>
7608
7609 * symtab.c (general_symbol_info::natural_name)
7610 (general_symbol_info::demangled_name): Check for language_rust.
7611
787de330
TT
76122020-04-24 Tom Tromey <tom@tromey.com>
7613
7614 * dwarf2/read.c (dw2_linkage_name): Move Rust "{" hack here...
7615 (dwarf2_physname): ... from here.
7616 (partial_die_info::read): Add Rust "{" hack.
7617
ff985671
TT
76182020-04-24 Tom Tromey <tom@tromey.com>
7619
7620 * symtab.h (struct general_symbol_info) <set_demangled_name>: New
7621 method.
7622 (symbol_set_demangled_name): Don't declare.
7623 * symtab.c (general_symbol_info::set_demangled_name): Rename from
7624 symbol_set_demangled_name.
7625 (general_symbol_info::set_language)
7626 (general_symbol_info::compute_and_set_names): Update.
7627 * minsyms.c (minimal_symbol_reader::install): Update.
7628 * dwarf2/read.c (new_symbol): Update.
7629
1acda803
TT
76302020-04-24 Tom Tromey <tromey@adacore.com>
7631
7632 PR python/23662:
7633 * python/py-type.c (convert_field): Handle
7634 FIELD_LOC_KIND_DWARF_BLOCK.
7635 (typy_get_sizeof): Handle TYPE_HAS_DYNAMIC_LENGTH.
7636 (typy_get_dynamic): Nw function.
7637 (type_object_getset): Add "dynamic".
7638 * NEWS: Add entry.
7639
d656f129
TT
76402020-04-24 Tom Tromey <tromey@adacore.com>
7641
7642 * ada-typeprint.c (print_choices, print_variant_part)
7643 (print_record_field_types_dynamic): New functions.
7644 (print_record_field_types): Use print_record_field_types_dynamic.
7645
7d79de9a
TT
76462020-04-24 Tom Tromey <tromey@adacore.com>
7647
7648 * dwarf2/read.c (handle_data_member_location): New overload.
7649 (dwarf2_add_field): Use it.
7650 (decode_locdesc): Add "computed" parameter. Update comment.
7651 * gdbtypes.c (is_dynamic_type_internal): Also look for
7652 FIELD_LOC_KIND_DWARF_BLOCK.
7653 (resolve_dynamic_struct): Handle FIELD_LOC_KIND_DWARF_BLOCK.
7654 * gdbtypes.c (is_dynamic_type_internal): Add special case for C++
7655 virtual base classes.
7656 * gnu-v3-abi.c (gnuv3_baseclass_offset): Handle
7657 FIELD_LOC_KIND_DWARF_BLOCK.
7658
f8e89861
TT
76592020-04-24 Tom Tromey <tromey@adacore.com>
7660
7661 * dwarf2/read.c (read_structure_type): Handle dynamic length.
7662 * gdbtypes.c (is_dynamic_type_internal): Check
7663 TYPE_HAS_DYNAMIC_LENGTH.
7664 (resolve_dynamic_type_internal): Use TYPE_DYNAMIC_LENGTH.
7665 * gdbtypes.h (TYPE_HAS_DYNAMIC_LENGTH, TYPE_DYNAMIC_LENGTH):
7666 New macros.
7667 (enum dynamic_prop_node_kind) <DYN_PROP_BYTE_SIZE>: New
7668 constant.
7669
9c6a1327
TT
76702020-04-24 Tom Tromey <tromey@adacore.com>
7671
7672 * dwarf2/read.c (struct variant_field): Rewrite.
7673 (struct variant_part_builder): New.
7674 (struct nextfield): Remove "variant" field. Add "offset".
7675 (struct field_info): Add "current_variant_part" and
7676 "variant_parts".
7677 (alloc_discriminant_info): Remove.
7678 (alloc_rust_variant): New function.
7679 (quirk_rust_enum): Update.
7680 (dwarf2_add_field): Set "offset" member. Don't handle
7681 DW_TAG_variant_part.
7682 (offset_map_type): New typedef.
7683 (convert_variant_range, create_one_variant)
7684 (create_one_variant_part, create_variant_parts)
7685 (add_variant_property): New functions.
7686 (dwarf2_attach_fields_to_type): Call add_variant_property.
7687 (read_structure_type): Don't handle DW_TAG_variant_part.
7688 (handle_variant_part, handle_variant): New functions.
7689 (handle_struct_member_die): Use them.
7690 (process_structure_scope): Don't handle variant parts.
7691 * gdbtypes.h (TYPE_FLAG_DISCRIMINATED_UNION): Remove.
7692 (struct discriminant_info): Remove.
7693 (enum dynamic_prop_node_kind) <DYN_PROP_DISCRIMINATED>: Remove.
7694 (struct main_type) <flag_discriminated_union>: Remove.
7695 * rust-lang.c (rust_enum_p, rust_empty_enum_p): Rewrite.
7696 (rust_enum_variant): Return int. Remove "contents". Rewrite.
7697 (rust_print_enum, rust_print_struct_def, rust_evaluate_subexp):
7698 Update.
7699 * valops.c (value_union_variant): Remove.
7700 * value.h (value_union_variant): Don't declare.
7701
b249d2c2
TT
77022020-04-24 Tom Tromey <tromey@adacore.com>
7703
7704 * ada-lang.c (ada_discrete_type_high_bound, ada_discrete_type_low)
7705 (ada_value_primitive_packed_val): Update.
7706 * ada-valprint.c (ada_value_print_1): Update.
7707 * dwarf2/loc.c (evaluate_for_locexpr_baton): New struct.
7708 (dwarf2_locexpr_baton_eval): Take a property_addr_info rather than
7709 just an address. Use evaluate_for_locexpr_baton.
7710 (dwarf2_evaluate_property): Update.
7711 * dwarf2/loc.h (struct property_addr_info) <valaddr>: Now an
7712 array_view.
7713 * findvar.c (default_read_var_value): Update.
7714 * gdbtypes.c (compute_variant_fields_inner)
7715 (resolve_dynamic_type_internal): Update.
7716 (resolve_dynamic_type): Change type of valaddr parameter.
7717 * gdbtypes.h (resolve_dynamic_type): Update.
7718 * valarith.c (value_subscripted_rvalue): Update.
7719 * value.c (value_from_contents_and_address): Update.
7720
61122aa9
TT
77212020-04-24 Tom Tromey <tromey@adacore.com>
7722
7723 * dwarf2/loc.c (dwarf2_locexpr_baton_eval): Add
7724 "push_initial_value" parameter.
7725 (dwarf2_evaluate_property): Likewise.
7726 * dwarf2/loc.h (dwarf2_evaluate_property): Update.
7727
ef83a141
TT
77282020-04-24 Tom Tromey <tromey@adacore.com>
7729
7730 * gdbtypes.c (is_dynamic_type_internal): Check for variant parts.
7731 (variant::matches, compute_variant_fields_recurse)
7732 (compute_variant_fields_inner, compute_variant_fields): New
7733 functions.
7734 (resolve_dynamic_struct): Check for DYN_PROP_VARIANT_PARTS.
7735 Use resolved_type after type is made.
7736 (operator==): Add new cases.
7737 * gdbtypes.h (TYPE_HAS_VARIANT_PARTS): New macro.
7738 (struct discriminant_range, struct variant, struct variant_part):
7739 New.
7740 (union dynamic_prop_data) <variant_parts, original_type>: New
7741 members.
7742 (enum dynamic_prop_node_kind) <DYN_PROP_VARIANT_PARTS>: New constant.
7743 (enum dynamic_prop_kind) <PROP_TYPE, PROP_VARIANT_PARTS>: New
7744 constants.
7745 * value.c (unpack_bits_as_long): Now public.
7746 * value.h (unpack_bits_as_long): Declare.
7747
675127ec
TT
77482020-04-24 Tom Tromey <tromey@adacore.com>
7749
7750 * rs6000-tdep.c (struct ppc_variant): Rename from "variant".
7751 (variants, find_variant_by_arch, rs6000_gdbarch_init): Update.
7752
9852ceef
HD
77532020-04-24 Hannes Domani <ssbssa@yahoo.de>
7754
7755 * windows-tdep.c (exception_values): Add WOW64 exception numbers.
7756
7632c6ce
KR
77572020-04-24 Kamil Rytarowski <n54@gmx.com>
7758
7759 * inf-ptrace.h (follow_fork, insert_fork_catchpoint)
7760 (remove_fork_catchpoint, post_startup_inferior)
7761 (post_attach): Move...
7762 * obsd-nat.h (follow_fork, insert_fork_catchpoint)
7763 (remove_fork_catchpoint, post_startup_inferior)
7764 (post_attach): ...here.
7765 * inf-ptrace.c (follow_fork, insert_fork_catchpoint)
7766 (remove_fork_catchpoint, post_startup_inferior)
7767 (post_attach): Move...
7768 * obsd-nat.c (follow_fork, insert_fork_catchpoint)
7769 (remove_fork_catchpoint, post_startup_inferior)
7770 (post_attach): ...here.
7771
7be2bb4f
TT
77722020-04-24 Tom Tromey <tromey@adacore.com>
7773
7774 * nat/windows-nat.h (struct windows_thread_info)
7775 <pc_adjusted>: New member.
7776 * windows-nat.c (windows_fetch_one_register): Check
7777 pc_adjusted.
7778 (windows_nat_target::get_windows_debug_event)
7779 (windows_nat_target::wait): Set pc_adjusted.
7780
f80cb3b4
TV
77812020-04-24 Tom de Vries <tdevries@suse.de>
7782
7783 * contrib/cc-with-tweaks.sh: Remove <exec>.gdb-index file handling.
7784 Run gdb-add-index inside temp dir.
7785
29514b87
TT
77862020-04-23 Tom Tromey <tromey@adacore.com>
7787
7788 * windows-tdep.c (is_linked_with_cygwin_dll): Always update "iter"
7789 in loop.
7790
5939967b
LM
77912020-04-23 Luis Machado <luis.machado@linaro.org>
7792
7793 * dwarf2/frame-tailcall.c (dwarf2_tailcall_sniffer_first): Use
7794 get_frame_register instead of gdbarch_unwind_pc.
7795
70bc38f5
TV
77962020-04-23 Tom de Vries <tdevries@suse.de>
7797
7798 * symtab.c (lookup_global_symbol): Prefer def over decl.
7799
de82891c
TV
78002020-04-23 Tom de Vries <tdevries@suse.de>
7801
7802 PR symtab/25807
7803 * block.c (best_symbol, better_symbol): Promote to external.
7804 * block.h (best_symbol, better_symbol): Declare.
7805 * symtab.c (lookup_symbol_in_objfile_symtabs): Prefer def over
7806 decl.
7807
ecc6c606
TT
78082020-04-23 Tom Tromey <tromey@adacore.com>
7809
7810 PR ada/25837:
7811 * dwarf2/read.c (dw2_expand_symtabs_matching_symbol): Store a
7812 "const char *", not a "const std::string &".
7813 <name_and_matcher::operator==>: Update.
7814 * unittests/lookup_name_info-selftests.c: Change type of
7815 "result".
7816
740480b8
TT
78172020-04-23 Tom Tromey <tom@tromey.com>
7818
7819 * inferior.h (iterate_over_inferiors): Don't declare.
7820 * inferior.c (iterate_over_inferiors): Remove.
7821 * darwin-nat.c (find_inferior_task_it, find_inferior_pid_it):
7822 Remove.
7823 (darwin_find_inferior_by_task, darwin_find_inferior_by_pid): Don't
7824 use iterate_over_inferiors.
7825 (darwin_resume_inferior_it)
7826 (struct resume_inferior_threads_param)
7827 (darwin_resume_inferior_threads_it): Remove.
7828 (darwin_nat_target::resume): Don't use iterate_over_inferiors.
7829
ae3ab1f0
TV
78302020-04-23 Tom de Vries <tdevries@suse.de>
7831
7832 * blockframe.c (find_pc_partial_function): Use
7833 find_pc_sect_compunit_symtab rather than
7834 objfile->sf->qf->find_pc_sect_compunit_symtab.
7835
317d2668
TV
78362020-04-22 Tom de Vries <tdevries@suse.de>
7837
7838 PR symtab/25764
7839 * dwarf2/read.c (scan_partial_symbols): Allow external variable decls
7840 in psymtabs.
7841
eea9e357
TV
78422020-04-22 Tom de Vries <tdevries@suse.de>
7843
7844 PR symtab/25801
7845 * psymtab.c (psym_map_symtabs_matching_filename): Don't skip shared
7846 symtabs.
7847
3d5afab3
TV
78482020-04-22 Tom de Vries <tdevries@suse.de>
7849
7850 PR symtab/25700
7851 * dwarf2/read.c (dwarf2_build_psymtabs_hard): Don't create psymtab for
7852 CU if already created.
7853
d43b7a2d
TBA
78542020-04-21 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
7855
7856 * infrun.c (displaced_step_fixup): Switch to the event_thread
7857 before calling displaced_step_restore, not after.
7858
d89edf9b
MM
78592020-04-21 Markus Metzger <markus.t.metzger@intel.com>
7860
7861 * record-btrace.c (record_btrace_enable_warn): Ignore thread if
7862 its inferior is not recorded by us.
7863 (record_btrace_target_open): Replace call to
7864 all_non_exited_threads () with call to current_inferior
7865 ()->non_exited_threads ().
7866 (record_btrace_target::stop_recording): Likewise.
7867 (record_btrace_target::close): Likewise.
7868 (record_btrace_target::wait): Likewise.
7869 (record_btrace_target::record_stop_replaying): Likewise.
7870
5897fd49
MM
78712020-04-21 Markus Metzger <markus.t.metzger@intel.com>
7872
7873 * btrace.c (btrace_enable): Throw an error on double enables and
7874 when enabling recording fails.
7875 (btrace_disable): Throw an error if the thread is not recorded.
7876
1a476b6d
MM
78772020-04-21 Markus Metzger <markus.t.metzger@intel.com>
7878
7879 * record-btrace.c (record_btrace_target::fetch_registers): Forward
7880 request if we do not have a thread_info.
7881
4778a5f8
TV
78822020-04-21 Tom de Vries <tdevries@suse.de>
7883
7884 PR gdb/25471
7885 * thread.c
7886 (scoped_restore_current_thread::scoped_restore_current_thread): Catch
7887 exception in get_frame_id.
7888
0fa7617d
TT
78892020-04-20 Tom Tromey <tromey@adacore.com>
7890
7891 * python/python.c (struct gdbpy_event): Mark move constructor as
7892 noexcept.
7893 * python/py-tui.c (class gdbpy_tui_window_maker): Mark move
7894 constructor as noexcept.
7895 * completer.h (struct completion_result): Mark move constructor as
7896 noexcept.
7897 * completer.c (completion_result::completion_result): Use
7898 initialization style. Don't call reset_match_list.
7899
ad23bda0
MS
79002020-04-20 Mihails Strasuns <mihails.strasuns@intel.com>
7901
7902 * MAINTAINERS (Write After Approval): Add myself.
7903
45e1f031
TT
79042020-04-18 Tom Tromey <tom@tromey.com>
7905
7906 * windows-tdep.c (init_w32_command_list)
7907 (w32_prefix_command_valid): Restore.
7908 (_initialize_windows_tdep): Call init_w32_command_list.
7909
08feed99
TT
79102020-04-18 Tom Tromey <tom@tromey.com>
7911
7912 * xcoffread.c (enter_line_range, scan_xcoff_symtab): Update.
7913 * value.c (value_fn_field): Update.
7914 * valops.c (find_function_in_inferior)
7915 (value_allocate_space_in_inferior): Update.
7916 * tui/tui-winsource.c (tui_update_source_windows_with_line):
7917 Update.
7918 * tui/tui-source.c (tui_source_window::set_contents): Update.
7919 * symtab.c (lookup_global_or_static_symbol)
7920 (find_function_start_sal_1, skip_prologue_sal)
7921 (print_msymbol_info, find_gnu_ifunc, symbol_arch): Update.
7922 * symmisc.c (dump_msymbols, dump_symtab_1)
7923 (maintenance_print_one_line_table): Update.
7924 * symfile.c (init_entry_point_info, section_is_mapped)
7925 (list_overlays_command, simple_read_overlay_table)
7926 (simple_overlay_update_1): Update.
7927 * stap-probe.c (handle_stap_probe): Update.
7928 * stabsread.c (dbx_init_float_type, define_symbol)
7929 (read_one_struct_field, read_enum_type, read_range_type): Update.
7930 * source.c (info_line_command): Update.
7931 * python/python.c (gdbpy_source_objfile_script)
7932 (gdbpy_execute_objfile_script): Update.
7933 * python/py-type.c (save_objfile_types): Update.
7934 * python/py-objfile.c (py_free_objfile): Update.
7935 * python/py-inferior.c (python_new_objfile): Update.
7936 * psymtab.c (psym_find_pc_sect_compunit_symtab, dump_psymtab)
7937 (dump_psymtab_addrmap_1, maintenance_info_psymtabs)
7938 (maintenance_check_psymtabs): Update.
7939 * printcmd.c (info_address_command): Update.
7940 * objfiles.h (struct objfile) <arch>: New method, from
7941 get_objfile_arch.
7942 (get_objfile_arch): Don't declare.
7943 * objfiles.c (get_objfile_arch): Remove.
7944 (filter_overlapping_sections): Update.
7945 * minsyms.c (msymbol_is_function): Update.
7946 * mi/mi-symbol-cmds.c (mi_cmd_symbol_list_lines)
7947 (output_nondebug_symbol): Update.
7948 * mdebugread.c (parse_symbol, basic_type, parse_partial_symbols)
7949 (mdebug_expand_psymtab): Update.
7950 * machoread.c (macho_add_oso_symfile): Update.
7951 * linux-tdep.c (linux_infcall_mmap, linux_infcall_munmap):
7952 Update.
7953 * linux-fork.c (checkpoint_command): Update.
7954 * linespec.c (convert_linespec_to_sals): Update.
7955 * jit.c (finalize_symtab): Update.
7956 * infrun.c (insert_exception_resume_from_probe): Update.
7957 * ia64-tdep.c (ia64_find_unwind_table): Update.
7958 * hppa-tdep.c (internalize_unwinds): Update.
7959 * gdbtypes.c (get_type_arch, init_float_type, objfile_type):
7960 Update.
7961 * gcore.c (call_target_sbrk): Update.
7962 * elfread.c (record_minimal_symbol, elf_symtab_read)
7963 (elf_rel_plt_read, elf_gnu_ifunc_record_cache)
7964 (elf_gnu_ifunc_resolve_by_got): Update.
7965 * dwarf2/read.c (create_addrmap_from_index)
7966 (create_addrmap_from_aranges, dw2_find_pc_sect_compunit_symtab)
7967 (read_debug_names_from_section)
7968 (process_psymtab_comp_unit_reader, add_partial_symbol)
7969 (add_partial_subprogram, process_full_comp_unit)
7970 (read_file_scope, read_func_scope, read_lexical_block_scope)
7971 (read_call_site_scope, dwarf2_ranges_read)
7972 (dwarf2_record_block_ranges, dwarf2_add_field)
7973 (mark_common_block_symbol_computed, read_tag_pointer_type)
7974 (read_tag_string_type, dwarf2_init_float_type)
7975 (dwarf2_init_complex_target_type, read_base_type)
7976 (partial_die_info::read, partial_die_info::read)
7977 (read_attribute_value, dwarf_decode_lines_1, new_symbol)
7978 (dwarf2_fetch_die_loc_sect_off): Update.
7979 * dwarf2/loc.c (dwarf2_find_location_expression)
7980 (class dwarf_evaluate_loc_desc, rw_pieced_value)
7981 (dwarf2_evaluate_loc_desc_full, dwarf2_locexpr_baton_eval)
7982 (dwarf2_loc_desc_get_symbol_read_needs)
7983 (locexpr_describe_location_piece, locexpr_describe_location_1)
7984 (loclist_describe_location): Update.
7985 * dwarf2/index-write.c (write_debug_names): Update.
7986 * dwarf2/frame.c (dwarf2_build_frame_info): Update.
7987 * dtrace-probe.c (dtrace_process_dof): Update.
7988 * dbxread.c (read_dbx_symtab, dbx_end_psymtab)
7989 (process_one_symbol): Update.
7990 * ctfread.c (ctf_init_float_type, read_base_type): Update.
7991 * coffread.c (coff_symtab_read, enter_linenos, decode_base_type)
7992 (coff_read_enum_type): Update.
7993 * cli/cli-cmds.c (edit_command, list_command): Update.
7994 * buildsym.c (buildsym_compunit::finish_block_internal): Update.
7995 * breakpoint.c (create_overlay_event_breakpoint)
7996 (create_longjmp_master_breakpoint)
7997 (create_std_terminate_master_breakpoint)
7998 (create_exception_master_breakpoint, get_sal_arch): Update.
7999 * block.c (block_gdbarch): Update.
8000 * annotate.c (annotate_source_line): Update.
8001
0743fc83
TT
80022020-04-17 Tom Tromey <tromey@adacore.com>
8003
8004 * auto-load.c (show_auto_load_cmd): Remove.
8005 (auto_load_show_cmdlist_get): Use add_show_prefix_cmd.
8006 * arc-tdep.c (_initialize_arc_tdep): Use add_show_prefix_cmd.
8007 (maintenance_print_arc_command): Remove.
8008 * tui/tui-win.c (tui_command): Remove.
8009 (tui_get_cmd_list): Use add_basic_prefix_cmd.
8010 * tui/tui-layout.c (tui_layout_command): Remove.
8011 (_initialize_tui_layout): Use add_basic_prefix_cmd.
8012 * python/python.c (user_set_python, user_show_python): Remove.
8013 (_initialize_python): Use add_basic_prefix_cmd,
8014 add_show_prefix_cmd.
8015 * guile/guile.c (set_guile_command, show_guile_command): Remove.
8016 (install_gdb_commands): Use add_basic_prefix_cmd,
8017 add_show_prefix_cmd.
8018 (info_guile_command): Remove.
8019 * dwarf2/read.c (set_dwarf_cmd, show_dwarf_cmd): Remove.
8020 (_initialize_dwarf2_read): Use add_basic_prefix_cmd,
8021 add_show_prefix_cmd.
8022 * cli/cli-style.h (class cli_style_option) <add_setshow_commands>:
8023 Remove do_set and do_show parameters.
8024 * cli/cli-style.c (set_style, show_style): Remove.
8025 (_initialize_cli_style): Use add_basic_prefix_cmd,
8026 add_show_prefix_cmd.
8027 (cli_style_option::add_setshow_commands): Remove do_set and
8028 do_show parameters.
8029 (cli_style_option::add_setshow_commands): Use
8030 add_basic_prefix_cmd, add_show_prefix_cmd.
8031 (STYLE_ADD_SETSHOW_COMMANDS): Remove macro.
8032 (set_style_name): Remove.
8033 * cli/cli-dump.c (dump_command, append_command): Remove.
8034 (srec_dump_command, ihex_dump_command, verilog_dump_command)
8035 (tekhex_dump_command, binary_dump_command)
8036 (binary_append_command): Remove.
8037 (_initialize_cli_dump): Use add_basic_prefix_cmd.
8038 * windows-tdep.c (w32_prefix_command_valid): Remove global.
8039 (init_w32_command_list): Remove; move into ...
8040 (_initialize_windows_tdep): ... here. Use add_basic_prefix_cmd.
8041 * valprint.c (set_print, show_print, set_print_raw)
8042 (show_print_raw): Remove.
8043 (_initialize_valprint): Use add_basic_prefix_cmd,
8044 add_show_prefix_cmd.
8045 * typeprint.c (set_print_type, show_print_type): Remove.
8046 (_initialize_typeprint): Use add_basic_prefix_cmd,
8047 add_show_prefix_cmd.
8048 * record.c (set_record_command, show_record_command): Remove.
8049 (_initialize_record): Use add_basic_prefix_cmd,
8050 add_show_prefix_cmd.
8051 * cli/cli-cmds.c (_initialize_cli_cmds): Use add_basic_prefix_cmd,
8052 add_show_prefix_cmd.
8053 (info_command, show_command, set_debug, show_debug): Remove.
8054 * top.h (set_history, show_history): Don't declare.
8055 * top.c (set_history, show_history): Remove.
8056 * target-descriptions.c (set_tdesc_cmd, show_tdesc_cmd)
8057 (unset_tdesc_cmd): Remove.
8058 (_initialize_target_descriptions): Use add_basic_prefix_cmd,
8059 add_show_prefix_cmd.
8060 * symtab.c (info_module_command): Remove.
8061 (_initialize_symtab): Use add_basic_prefix_cmd.
8062 * symfile.c (overlay_command): Remove.
8063 (_initialize_symfile): Use add_basic_prefix_cmd.
8064 * sparc64-tdep.c (info_adi_command): Remove.
8065 (_initialize_sparc64_adi_tdep): Use add_basic_prefix_cmd.
8066 * sh-tdep.c (show_sh_command, set_sh_command): Remove.
8067 (_initialize_sh_tdep): Use add_basic_prefix_cmd,
8068 add_show_prefix_cmd.
8069 * serial.c (serial_set_cmd, serial_show_cmd): Remove.
8070 (_initialize_serial): Use add_basic_prefix_cmd,
8071 add_show_prefix_cmd.
8072 * ser-tcp.c (set_tcp_cmd, show_tcp_cmd): Remove.
8073 (_initialize_ser_tcp): Use add_basic_prefix_cmd,
8074 add_show_prefix_cmd.
8075 * rs6000-tdep.c (set_powerpc_command, show_powerpc_command)
8076 (_initialize_rs6000_tdep): Use add_basic_prefix_cmd,
8077 add_show_prefix_cmd.
8078 * riscv-tdep.c (show_riscv_command, set_riscv_command)
8079 (show_debug_riscv_command, set_debug_riscv_command): Remove.
8080 (_initialize_riscv_tdep): Use add_basic_prefix_cmd,
8081 add_show_prefix_cmd.
8082 * remote.c (remote_command, set_remote_cmd): Remove.
8083 (_initialize_remote): Use add_basic_prefix_cmd.
8084 * record-full.c (set_record_full_command)
8085 (show_record_full_command): Remove.
8086 (_initialize_record_full): Use add_basic_prefix_cmd,
8087 add_show_prefix_cmd.
8088 * record-btrace.c (cmd_set_record_btrace)
8089 (cmd_show_record_btrace, cmd_set_record_btrace_bts)
8090 (cmd_show_record_btrace_bts, cmd_set_record_btrace_pt)
8091 (cmd_show_record_btrace_pt): Remove.
8092 (_initialize_record_btrace): Use add_basic_prefix_cmd,
8093 add_show_prefix_cmd.
8094 * ravenscar-thread.c (set_ravenscar_command)
8095 (show_ravenscar_command): Remove.
8096 (_initialize_ravenscar): Use add_basic_prefix_cmd,
8097 add_show_prefix_cmd.
8098 * mips-tdep.c (show_mips_command, set_mips_command)
8099 (_initialize_mips_tdep): Use add_basic_prefix_cmd,
8100 add_show_prefix_cmd.
8101 * maint.c (maintenance_command, maintenance_info_command)
8102 (maintenance_check_command, maintenance_print_command)
8103 (maintenance_set_cmd, maintenance_show_cmd): Remove.
8104 (_initialize_maint_cmds): Use add_basic_prefix_cmd,
8105 add_show_prefix_cmd.
8106 (show_per_command_cmd): Remove.
8107 * maint-test-settings.c (maintenance_set_test_settings_cmd):
8108 Remove.
8109 (maintenance_show_test_settings_cmd): Remove.
8110 (_initialize_maint_test_settings): Use add_basic_prefix_cmd,
8111 add_show_prefix_cmd.
8112 * maint-test-options.c (maintenance_test_options_command):
8113 Remove.
8114 (_initialize_maint_test_options): Use add_basic_prefix_cmd.
8115 * macrocmd.c (macro_command): Remove
8116 (_initialize_macrocmd): Use add_basic_prefix_cmd.
8117 * language.c (set_check, show_check): Remove.
8118 (_initialize_language): Use add_basic_prefix_cmd,
8119 add_show_prefix_cmd.
8120 * infcmd.c (unset_command): Remove.
8121 (_initialize_infcmd): Use add_basic_prefix_cmd.
8122 * i386-tdep.c (set_mpx_cmd, show_mpx_cmd): Remove.
8123 (_initialize_i386_tdep): Use add_basic_prefix_cmd,
8124 add_show_prefix_cmd.
8125 * go32-nat.c (go32_info_dos_command): Remove.
8126 (_initialize_go32_nat): Use add_basic_prefix_cmd.
8127 * cli/cli-decode.c (do_prefix_cmd, add_basic_prefix_cmd)
8128 (do_show_prefix_cmd, add_show_prefix_cmd): New functions.
8129 * frame.c (set_backtrace_cmd, show_backtrace_cmd): Remove.
8130 (_initialize_frame): Use add_basic_prefix_cmd,
8131 add_show_prefix_cmd.
8132 * dcache.c (set_dcache_command, show_dcache_command): Remove.
8133 (_initialize_dcache): Use add_basic_prefix_cmd,
8134 add_show_prefix_cmd.
8135 * cp-support.c (maint_cplus_command): Remove.
8136 (_initialize_cp_support): Use add_basic_prefix_cmd.
8137 * btrace.c (maint_btrace_cmd, maint_btrace_set_cmd)
8138 (maint_btrace_show_cmd, maint_btrace_pt_set_cmd)
8139 (maint_btrace_pt_show_cmd, _initialize_btrace): Use
8140 add_basic_prefix_cmd, add_show_prefix_cmd.
8141 * breakpoint.c (save_command): Remove.
8142 (_initialize_breakpoint): Use add_basic_prefix_cmd.
8143 * arm-tdep.c (set_arm_command, show_arm_command): Remove.
8144 (_initialize_arm_tdep): Use add_basic_prefix_cmd,
8145 add_show_prefix_cmd.
8146 * ada-lang.c (maint_set_ada_cmd, maint_show_ada_cmd)
8147 (set_ada_command, show_ada_command): Remove.
8148 (_initialize_ada_language): Use add_basic_prefix_cmd,
8149 add_show_prefix_cmd.
8150 * command.h (add_basic_prefix_cmd, add_show_prefix_cmd): Declare.
8151
3557f442
KR
81522020-04-16 Kamil Rytarowski <n54@gmx.com>
8153
8154 * nbsd-nat.c (inf_ptrace_target::auxv_parse): Remove.
8155 * nbsd-nat.h (inf_ptrace_target::auxv_parse): Likewise.
8156
16197208
SM
81572020-04-16 Simon Marchi <simon.marchi@polymtl.ca>
8158
8159 * windows-tdep.c (is_linked_with_cygwin_dll): Add filename to
8160 warning messages.
8161
00ac85d3
SM
81622020-04-16 Simon Marchi <simon.marchi@polymtl.ca>
8163
8164 * windows-tdep.c (is_linked_with_cygwin_dll): Consider case where
8165 import table is not at beginning of .idata section.
8166
381ce63f
PA
81672020-04-16 Pedro Alves <palves@redhat.com>
8168
8169 * inferior.c (delete_inferior): Use delete operator directly
8170 instead of delete_program_space.
8171 * progspace.c (add_program_space): New, factored out from
8172 program_space::program_space.
8173 (remove_program_space): New, factored out from
8174 delete_program_space.
8175 (program_space::program_space): Remove intro comment. Rewrite.
8176 (program_space::~program_space): Remove intro comment. Call
8177 remove_program_space.
8178 (delete_program_space): Delete.
8179 * progspace.h (program_space::program_space): Make explicit. Move
8180 intro comment here, adjusted.
8181 (program_space::~program_space): Move intro comment here,
8182 adjusted.
8183 (delete_program_space): Remove.
8184
a010605f
TT
81852020-04-16 Tom Tromey <tromey@adacore.com>
8186
8187 * windows-nat.c (windows_nat::handle_access_violation): New
8188 function.
8189 * nat/windows-nat.h (handle_access_violation): Declare.
8190 * nat/windows-nat.c (handle_exception): Move Cygwin code to
8191 windows-nat.c. Call handle_access_violation.
8192
efba5c23
TV
81932020-04-16 Tom de Vries <tdevries@suse.de>
8194
8195 PR symtab/25791
8196 * dwarf2/index-write.c (write_gdbindex): Generate CU table entries for
8197 CUs without psymtab.
8198
97ed802d
KB
81992020-04-16 Kevin Buettner <kevinb@redhat.com>
8200
8201 * python/python.c (do_start_initialization): Don't call
8202 PyEval_InitThreads for Python 3.9 and beyond.
8203
c7d64809
KR
82042020-04-15 Kamil Rytarowski <n54@gmx.com>
8205
8206 * obsd-nat.c (obsd_nat_target::update_thread_list): Pass "this" to
8207 thread functions.
8208 (obsd_nat_target::wait): Likewise.
8209
ce127a96
TT
82102020-04-15 Tom Tromey <tromey@adacore.com>
8211
8212 * windows-nat.c (DEBUG_EXEC, DEBUG_EVENTS, DEBUG_MEM)
8213 (DEBUG_EXCEPT): Use debug_printf.
8214
99f1bc6a
AB
82152020-04-15 Andrew Burgess <andrew.burgess@embecosm.com>
8216
8217 * completer.c (class completion_tracker::completion_hash_entry)
8218 <hash_name>: New member function.
8219 (completion_tracker::discard_completions): New callback to hash a
8220 completion_hash_entry, pass this to htab_create_alloc.
8221
a0e9b532
JT
82222016-01-20 Jon Turney <jon.turney@dronecode.org.uk>
8223
8224 * windows-nat.c (windows_make_so): Warn rather than stopping with
8225 an error if realpath() fails.
8226
06ca5dd4
KR
82272020-04-14 Kamil Rytarowski <n54@gmx.com>
8228
8229 * nbsd-nat.c (nbsd_pid_to_kinfo_proc2): New.
8230 (nbsd_nat_target::info_proc): Add do_status.
8231
194d088f
TV
82322020-04-14 Simon Marchi <simon.marchi@polymtl.ca>
8233 Tom de Vries <tdevries@suse.de>
8234
8235 PR symtab/25718
8236 * psympriv.h (struct partial_symtab::read_symtab)
8237 (struct partial_symtab::expand_psymtab)
8238 (struct partial_symtab::read_dependencies): Update comments.
8239 * dwarf2/read.c (struct dwarf2_include_psymtab::read_symtab): Call
8240 read_symtab for includer.
8241 (struct dwarf2_include_psymtab::expand_psymtab): Assert false.
8242 (struct dwarf2_include_psymtab::readin_p): Call readin_p () for includer.
8243 (struct dwarf2_include_psymtab::m_readin): Remove.
8244 (struct dwarf2_include_psymtab::includer): New member function.
8245 (dwarf2_psymtab::expand_psymtab): Assert !readin.
8246
c1a66c06
TV
82472020-04-14 Tom de Vries <tdevries@suse.de>
8248
8249 PR symtab/25720
8250 * symmisc.c (maintenance_expand_symtabs): Call expand_symtabs_matching
8251 with NULL symbol_matcher and lookup_name.
8252 * psymtab.c (psym_expand_symtabs_matching): Handle NULL symbol_matcher
8253 and lookup_name.
8254 * dwarf2/read.c (dw2_expand_symtabs_matching)
8255 (dw2_debug_names_expand_symtabs_matching): Same.
8256 * symfile.h (struct quick_symbol_functions::expand_symtabs_matching):
8257 Make lookup_name a pointer. Update comment.
8258 * symtab.c (global_symbol_searcher::expand_symtabs): Handle
8259 lookup_name being a pointer.
8260 * symfile.c (expand_symtabs_matching): Same.
8261 * symfile-debug.c (debug_qf_expand_symtabs_matching): Same.
8262 * linespec.c (iterate_over_all_matching_symtabs): Same.
8263
400b5eca
TT
82642020-04-13 Tom Tromey <tom@tromey.com>
8265
8266 * run-on-main-thread.c: Update include.
8267 * unittests/main-thread-selftests.c: Update include.
8268 * tui/tui-win.c: Update include.
8269 * tui/tui-io.c: Update include.
8270 * tui/tui-interp.c: Update include.
8271 * tui/tui-hooks.c: Update include.
8272 * top.h: Update include.
8273 * top.c: Update include.
8274 * ser-base.c: Update include.
8275 * remote.c: Update include.
8276 * remote-notif.c: Update include.
8277 * remote-fileio.c: Update include.
8278 * record-full.c: Update include.
8279 * record-btrace.c: Update include.
8280 * python/python.c: Update include.
8281 * posix-hdep.c: Update include.
8282 * mingw-hdep.c: Update include.
8283 * mi/mi-main.c: Update include.
8284 * mi/mi-interp.c: Update include.
8285 * main.c: Update include.
8286 * linux-nat.c: Update include.
8287 * interps.c: Update include.
8288 * infrun.c: Update include.
8289 * inf-loop.c: Update include.
8290 * event-top.c: Update include.
8291 * event-loop.c: Move to ../gdbsupport/.
8292 * event-loop.h: Move to ../gdbsupport/.
8293 * async-event.h: Update include.
8294 * Makefile.in (COMMON_SFILES, HFILES_NO_SRCDIR): Update.
8295
93b54c8e
TT
82962020-04-13 Tom Tromey <tom@tromey.com>
8297
8298 * tui/tui-win.c: Include async-event.h.
8299 * remote.c: Include async-event.h.
8300 * remote-notif.c: Include async-event.h.
8301 * record-full.c: Include async-event.h.
8302 * record-btrace.c: Include async-event.h.
8303 * infrun.c: Include async-event.h.
8304 * event-top.c: Include async-event.h.
8305 * event-loop.h: Move some declarations to async-event.h.
8306 * event-loop.c: Don't include ser-event.h or top.h. Move some
8307 code to async-event.c.
8308 * async-event.h: New file.
8309 * async-event.c: New file.
8310 * Makefile.in (COMMON_SFILES): Add async-event.c.
8311 (HFILES_NO_SRCDIR): Add async-event.h.
8312
c1cd3163
TT
83132020-04-13 Tom Tromey <tom@tromey.com>
8314
8315 * utils.c (flush_streams): New function.
8316 * event-loop.c (gdb_wait_for_event): Call flush_streams.
8317
29f2bf4f
TT
83182020-04-13 Tom Tromey <tom@tromey.com>
8319
8320 * event-loop.c (handle_file_event): Use warning, not
8321 printf_unfiltered.
8322
98029d02
TT
83232020-04-13 Tom Tromey <tom@tromey.com>
8324
8325 * event-loop.c: Include <chrono>.
8326
06cc9596
TT
83272020-04-13 Tom Tromey <tom@tromey.com>
8328
8329 * gdb_select.h: Move to ../gdbsupport/.
8330 * event-loop.c: Update include path.
8331 * top.c: Update include path.
8332 * ser-base.c: Update include path.
8333 * ui-file.c: Update include path.
8334 * ser-tcp.c: Update include path.
8335 * guile/scm-ports.c: Update include path.
8336 * posix-hdep.c: Update include path.
8337 * ser-unix.c: Update include path.
8338 * gdb_usleep.c: Update include path.
8339 * mingw-hdep.c: Update include path.
8340 * inflow.c: Update include path.
8341 * infrun.c: Update include path.
8342 * event-top.c: Update include path.
8343
8ae8e197
TT
83442020-04-13 Tom Tromey <tom@tromey.com>
8345
8346 * configure: Rebuild.
8347 * configure.ac: Remove checks that are now in GDB_AC_COMMON.
8348
58cf28e8
TT
83492020-04-13 Tom Tromey <tom@tromey.com>
8350
8351 * event-loop.h (start_event_loop): Don't declare.
8352 * event-loop.c (start_event_loop): Move...
8353 * main.c (start_event_loop): ...here. Now static.
8354
b7f999ae
SDJ
83552020-04-13 Sergio Durigan Junior <sergiodj@sergiodj.net>
8356
8357 * MAINTAINERS: Update my email address.
8358
1085dfd4
KR
83592020-04-12 Kamil Rytarowski <n54@gmx.com>
8360
8361 * nbsd-nat.c (nbsd_nat_target::info_proc): Add IP_MINIMAL and
8362 IP_ALL.
8363
49d1d1f5
KR
83642020-04-12 Kamil Rytarowski <n54@gmx.com>
8365
8366 * nbsd-nat.c (nbsd_pid_to_cmdline): Add.
aac66a4c 8367 (nbsd_nat_target::info_proc): Add do_cmdline.
49d1d1f5 8368
b4848d2a
KR
83692020-04-12 Kamil Rytarowski <n54@gmx.com>
8370
8371 * nbsd-nat.c (nbsd_pid_to_cwd): Add.
aac66a4c 8372 (nbsd_nat_target::info_proc): Add do_cwd.
b4848d2a 8373
51c133d5
KR
83742020-04-12 Kamil Rytarowski <n54@gmx.com>
8375
8376 * nbsd-nat.c (nbsd_nat_target::info_proc): Add do_exe.
8377
54b8cbd0
KR
83782020-04-11 Kamil Rytarowski <n54@gmx.com>
8379
8380 * nbsd-nat.c; Include "nbsd-tdep.h" and "gdbarch.h".
8381 * nbsd-nat.c (nbsd_nat_target::find_memory_regions)
8382 (nbsd_nat_target::info_proc): New functions.
8383 * nbsd-nat.c (kinfo_get_vmmap): New function.
8384 * nbsd-nat.c (nbsd_nat_target::info_proc) Use
8385 nbsd_info_proc_mappings_header and nbsd_info_proc_mappings_entry.
8386 * nbsd-tdep.c (nbsd_info_proc_mappings_header)
8387 (nbsd_info_proc_mappings_entry, nbsd_vm_map_entry_flags): New
8388 functions.
8389 * nbsd-tdep.c (KINFO_VME_PROT_READ, KINFO_VME_PROT_WRITE)
8390 (KINFO_VME_PROT_EXEC, KINFO_VME_FLAG_COW)
8391 (KINFO_VME_FLAG_NEEDS_COPY, KINFO_VME_FLAG_NOCOREDUMP)
8392 (KINFO_VME_FLAG_PAGEABLE, KINFO_VME_FLAG_GROWS_UP)
8393 (KINFO_VME_FLAG_GROWS_DOWN): New.
8394
cf83625d
AS
83952020-04-10 Artur Shepilko <nomadbyte@gmail.com>
8396
8397 * utils.c (copy_bitwise): Use unsigned 0 constant as operand of
8398 bit shift.
8399
0c4311ab
TT
84002020-04-10 Tom Tromey <tromey@adacore.com>
8401
8402 * symfile.c (symbol_file_add_separate): Preserve OBJF_MAINLINE.
8403
3e65b3e9
TT
84042020-04-10 Tom Tromey <tromey@adacore.com>
8405
8406 * symtab.c (get_symbol_address, get_msymbol_address): Skip
8407 separate debug files.
8408
13302e95
HD
84092020-04-10 Hannes Domani <ssbssa@yahoo.de>
8410
8411 * nat/windows-nat.c (STATUS_WX86_BREAKPOINT, STATUS_WX86_SINGLE_STEP):
8412 Move to...
8413 * nat/windows-nat.h (STATUS_WX86_BREAKPOINT, STATUS_WX86_SINGLE_STEP):
8414 ... here.
8415 * windows-nat.c (windows_nat_target::get_windows_debug_event):
8416 Check for STATUS_WX86_BREAKPOINT.
8417 (windows_nat_target::wait): Same.
8418
bdfc1e8a
TV
84192020-04-10 Tom de Vries <tdevries@suse.de>
8420
8421 PR cli/25808
8422 * python/lib/gdb/__init__.py: Initialize lexer with stripnl=False.
8423
f4460aec
SM
84242020-04-09 Simon Marchi <simon.marchi@polymtl.ca>
8425
8426 * MAINTAINERS (Global Maintainers): Add Tom de Vries.
8427 (Write After Approval): Remove Tom de Vries.
8428
a25198bb
BE
84292020-04-09 Bernd Edlinger <bernd.edlinger@hotmail.de>
8430
8431 revert partially:
8432 2020-04-01 Bernd Edlinger <bernd.edlinger@hotmail.de>
8433
aac66a4c
SM
8434 * buildsym.c (record_line): Fix undefined behavior and preserve
8435 lines at eof.
a25198bb 8436
206c98a6
KR
84372020-04-09 Kamil Rytarowski <n54@gmx.com>
8438
8439 * auxv.h (svr4_auxv_parse): New.
8440 * auxv.c (default_auxv_parse): Split into default_auxv_parse
8441 and generic_auxv_parse.
8442 (svr4_auxv_parse): Add.
8443 * obsd-tdep.c: Include "auxv.h".
8444 (obsd_auxv_parse): Remove.
8445 (obsd_init_abi): Remove comment.
8446 (obsd_init_abi): Change set_gdbarch_auxv_parse passed argument
8447 from `obsd_auxv_parse' to `svr4_auxv_parse'.
8448 * nbsd-tdep.c: Include "auxv.h".
8449 (nbsd_init_abi): Call set_gdbarch_auxv_parse.
8450
71fbdbaf
TT
84512020-04-08 Tom Tromey <tromey@adacore.com>
8452
8453 * nat/windows-nat.h (last_wait_event): Don't declare.
8454 (wait_for_debug_event): Update comment.
8455 * nat/windows-nat.c (last_wait_event): Now static.
8456
2c1d95e8
TT
84572020-04-08 Tom Tromey <tromey@adacore.com>
8458
8459 * windows-nat.c (wait_for_debug_event): Move to
8460 nat/windows-nat.c.
8461 * nat/windows-nat.h (wait_for_debug_event): Declare.
8462 * nat/windows-nat.c (wait_for_debug_event): Move from
8463 windows-nat.c. No longer static.
8464
d2977bc4
TT
84652020-04-08 Tom Tromey <tromey@adacore.com>
8466
8467 * windows-nat.c (get_windows_debug_event): Use
8468 fetch_pending_stop.
8469 * nat/windows-nat.h (fetch_pending_stop): Declare.
8470 * nat/windows-nat.c (fetch_pending_stop): New function.
8471
e758e19c
TT
84722020-04-08 Tom Tromey <tromey@adacore.com>
8473
8474 * windows-nat.c (windows_continue): Use matching_pending_stop and
8475 continue_last_debug_event.
8476 * nat/windows-nat.h (matching_pending_stop)
8477 (continue_last_debug_event): Declare.
8478 * nat/windows-nat.c (DEBUG_EVENTS): New define.
8479 (matching_pending_stop, continue_last_debug_event): New
8480 functions.
8481
8d30e395
TT
84822020-04-08 Tom Tromey <tromey@adacore.com>
8483
8484 * windows-nat.c (MS_VC_EXCEPTION): Move to nat/windows-nat.c.
8485 (handle_exception_result): Move to nat/windows-nat.h.
8486 (DEBUG_EXCEPTION_SIMPLE): Remove.
8487 (windows_nat::handle_ms_vc_exception): New function.
8488 (handle_exception): Move to nat/windows-nat.c.
8489 (get_windows_debug_event): Update.
8490 (STATUS_WX86_BREAKPOINT, STATUS_WX86_SINGLE_STEP): Move to
8491 nat/windows-nat.c.
8492 * nat/windows-nat.h (handle_ms_vc_exception): Declare.
8493 (handle_exception_result): Move from windows-nat.c.
8494 (handle_exception): Declare.
8495 * nat/windows-nat.c (MS_VC_EXCEPTION, handle_exception)
8496 (STATUS_WX86_SINGLE_STEP, STATUS_WX86_BREAKPOINT): Move from
8497 windows-nat.c.
8498
29de418d
TT
84992020-04-08 Tom Tromey <tromey@adacore.com>
8500
8501 * windows-nat.c (exception_count, event_count): Remove.
8502 (handle_exception, get_windows_debug_event)
8503 (do_initial_windows_stuff): Update.
8504
a816ba18
TT
85052020-04-08 Tom Tromey <tromey@adacore.com>
8506
8507 * windows-nat.c (windows_nat::handle_load_dll)
8508 (windows_nat::handle_unload_dll): Rename. No longer static.
8509 * nat/windows-nat.h (handle_load_dll, handle_unload_dll):
8510 Declare.
8511
a00caa12
TT
85122020-04-08 Tom Tromey <tromey@adacore.com>
8513
8514 * complaints.h (stop_whining): Declare at top-level.
8515 (complaint): Don't declare stop_whining.
8516
d41b524f
TT
85172020-04-08 Tom Tromey <tromey@adacore.com>
8518
8519 * windows-nat.c (windows_nat::handle_output_debug_string):
8520 Rename. No longer static.
8521 * nat/windows-nat.h (handle_output_debug_string): Declare.
8522
3c76026d
TT
85232020-04-08 Tom Tromey <tromey@adacore.com>
8524
8525 * windows-nat.c (current_process_handle, current_process_id)
8526 (main_thread_id, last_sig, current_event, last_wait_event)
8527 (current_windows_thread, desired_stop_thread_id, pending_stops)
8528 (struct pending_stop, siginfo_er): Move to nat/windows-nat.c.
8529 (display_selectors, fake_create_process)
8530 (get_windows_debug_event): Update.
8531 * nat/windows-nat.h (current_process_handle, current_process_id)
8532 (main_thread_id, last_sig, current_event, last_wait_event)
8533 (current_windows_thread, desired_stop_thread_id, pending_stops)
8534 (struct pending_stop, siginfo_er): Move from windows-nat.c.
8535 * nat/windows-nat.c (current_process_handle, current_process_id)
8536 (main_thread_id, last_sig, current_event, last_wait_event)
8537 (current_windows_thread, desired_stop_thread_id, pending_stops)
8538 (siginfo_er): New globals. Move from windows-nat.c.
8539
9d8679cc
TT
85402020-04-08 Tom Tromey <tromey@adacore.com>
8541
8542 * windows-nat.c (get_image_name): Move to nat/windows-nat.c.
8543 (handle_load_dll): Update.
8544 * nat/windows-nat.c (get_image_name): Move from windows-nat.c.
8545
28688adf
TT
85462020-04-08 Tom Tromey <tromey@adacore.com>
8547
8548 * windows-nat.c (enum thread_disposition_type): Move to
8549 nat/windows-nat.h.
8550 (windows_nat::thread_rec): Rename from thread_rec. No longer
8551 static.
8552 (windows_add_thread, windows_nat_target::fetch_registers)
8553 (windows_nat_target::store_registers, handle_exception)
8554 (windows_nat_target::resume, get_windows_debug_event)
8555 (windows_nat_target::get_tib_address)
8556 (windows_nat_target::thread_name)
8557 (windows_nat_target::thread_alive): Update.
8558 * nat/windows-nat.h (enum thread_disposition_type): Move from
8559 windows-nat.c.
8560 (thread_rec): Declare.
8561
4834dad0
TT
85622020-04-08 Tom Tromey <tromey@adacore.com>
8563
8564 * windows-nat.c: Add "using namespace".
8565 * nat/windows-nat.h: Wrap contents in windows_nat namespace.
8566 * nat/windows-nat.c: Wrap contents in windows_nat namespace.
8567
65bafd5b
TT
85682020-04-08 Tom Tromey <tromey@adacore.com>
8569
8570 * nat/windows-nat.h (struct windows_thread_info): Declare
8571 destructor.
8572 * nat/windows-nat.c (~windows_thread_info): New.
8573
0a4afda3
TT
85742020-04-08 Tom Tromey <tromey@adacore.com>
8575
8576 PR gdb/22992
8577 * windows-nat.c (current_event): Update comment.
8578 (last_wait_event, desired_stop_thread_id): New globals.
8579 (struct pending_stop): New.
8580 (pending_stops): New global.
8581 (windows_nat_target) <stopped_by_sw_breakpoint>
8582 <supports_stopped_by_sw_breakpoint>: New methods.
8583 (windows_fetch_one_register): Add assertions. Adjust PC.
8584 (windows_continue): Handle pending stops. Suspend other threads
8585 when stepping. Use last_wait_event
8586 (wait_for_debug_event): New function.
8587 (get_windows_debug_event): Use wait_for_debug_event. Handle
8588 pending stops. Queue spurious stops.
8589 (windows_nat_target::wait): Set stopped_at_software_breakpoint.
8590 (windows_nat_target::kill): Use wait_for_debug_event.
8591 * nat/windows-nat.h (struct windows_thread_info)
8592 <stopped_at_software_breakpoint>: New field.
8593 * nat/windows-nat.c (windows_thread_info::resume): Clear
8594 stopped_at_software_breakpoint.
8595
8e61ebec
TT
85962020-04-08 Tom Tromey <tromey@adacore.com>
8597
8598 * windows-nat.c (enum thread_disposition_type): New.
8599 (thread_rec): Replace "get_context" parameter with "disposition";
8600 change type.
8601 (windows_add_thread, windows_nat_target::fetch_registers)
8602 (windows_nat_target::store_registers, handle_exception)
8603 (windows_nat_target::resume, get_windows_debug_event)
8604 (windows_nat_target::get_tib_address)
8605 (windows_nat_target::thread_name)
8606 (windows_nat_target::thread_alive): Update.
8607
98a03287
TT
86082020-04-08 Tom Tromey <tromey@adacore.com>
8609
8610 * windows-nat.c (thread_rec): Use windows_thread_info::suspend.
8611 (windows_continue): Use windows_continue::resume.
8612 * nat/windows-nat.h (struct windows_thread_info) <suspend,
8613 resume>: Declare new methods.
8614 * nat/windows-nat.c: New file.
8615 * configure.nat (NATDEPFILES): Add nat/windows-nat.o when needed.
8616
7c7411bc
TT
86172020-04-08 Tom Tromey <tromey@adacore.com>
8618
8619 * windows-nat.c (windows_add_thread, windows_delete_thread)
8620 (windows_nat_target::fetch_registers)
8621 (windows_nat_target::store_registers, fake_create_process)
8622 (windows_nat_target::resume, windows_nat_target::resume)
8623 (get_windows_debug_event, windows_nat_target::wait)
8624 (windows_nat_target::pid_to_str)
8625 (windows_nat_target::get_tib_address)
8626 (windows_nat_target::get_ada_task_ptid)
8627 (windows_nat_target::thread_name)
8628 (windows_nat_target::thread_alive): Use lwp, not tid.
8629
2950fdf7
TT
86302020-04-08 Tom Tromey <tromey@adacore.com>
8631
8632 * windows-nat.c (handle_exception)
8633 (windows_nat_target::thread_name): Update.
8634 * nat/windows-nat.h (windows_thread_info): Remove destructor.
8635 <name>: Now unique_xmalloc_ptr.
8636
62fe396b
TT
86372020-04-08 Tom Tromey <tromey@adacore.com>
8638
8639 * windows-nat.c (thread_rec)
8640 (windows_nat_target::fetch_registers): Update.
8641 * nat/windows-nat.h (struct windows_thread_info) <suspended>:
8642 Update comment.
8643 <debug_registers_changed, reload_context>: Now bool.
8644
e9534bd2
TT
86452020-04-08 Tom Tromey <tromey@adacore.com>
8646
8647 * windows-nat.c (windows_add_thread): Use new.
8648 (windows_init_thread_list, windows_delete_thread): Use delete.
8649 (get_windows_debug_event): Update.
8650 * nat/windows-nat.h (struct windows_thread_info): Add constructor,
8651 destructor, and initializers.
8652
ae1f8880
TT
86532020-04-08 Tom Tromey <tromey@adacore.com>
8654
8655 * windows-nat.c (struct windows_thread_info): Remove.
8656 * nat/windows-nat.h: New file.
8657
55a1e039
TT
86582020-04-08 Tom Tromey <tromey@adacore.com>
8659
8660 * windows-nat.c (struct windows_thread_info) <tid>: Rename from "id".
8661 (thread_rec, windows_add_thread, windows_delete_thread)
8662 (windows_continue): Update.
8663
93366324
TT
86642020-04-08 Tom Tromey <tromey@adacore.com>
8665
8666 * windows-nat.c (struct windows_thread_info): Remove typedef.
8667 (thread_head): Remove.
8668 (thread_list): New global.
8669 (thread_rec, windows_add_thread, windows_init_thread_list)
8670 (windows_delete_thread, windows_continue): Update.
8671
0f2265e2
SM
86722020-04-08 Simon Marchi <simon.marchi@polymtl.ca>
8673
8674 * windows-tdep.h (windows_init_abi): Add comment.
8675 (cygwin_init_abi): New declaration.
8676 * windows-tdep.c: Split signal enumeration in two, one for
8677 Windows and one for Cygwin.
8678 (windows_gdb_signal_to_target): Only deal with signal of the
8679 Windows OS ABI.
8680 (cygwin_gdb_signal_to_target): New function.
8681 (windows_init_abi): Rename to windows_init_abi_common, don't set
8682 gdb_signal_to_target gdbarch method. Add new new function with
8683 this name.
8684 (cygwin_init_abi): New function.
8685 * amd64-windows-tdep.c (amd64_windows_init_abi_common): Add
8686 comment. Don't call windows_init_abi.
8687 (amd64_windows_init_abi): Add comment, call windows_init_abi.
8688 (amd64_cygwin_init_abi): Add comment, call cygwin_init_abi.
8689 * i386-windows-tdep.c (i386_windows_init_abi): Rename to
8690 i386_windows_init_abi_common, don't call windows_init_abi. Add
8691 a new function of this name.
8692 (i386_cygwin_init_abi): New function.
8693 (_initialize_i386_windows_tdep): Bind i386_cygwin_init_abi to
8694 OS ABI Cygwin.
8695
3810f182
SM
86962020-04-08 Simon Marchi <simon.marchi@polymtl.ca>
8697
8698 * dwarf2/read.c (read_gdb_index_from_buffer): Remove objfile
8699 parameter.c.
8700 (dwarf2_read_gdb_index): Update.
8701
063f8e80
KR
87022020-04-07 Kamil Rytarowski <n54@gmx.com>
8703
8704 * nbsd-tdep.c: Include "objfiles.h".
8705 (nbsd_skip_solib_resolver): New.
8706 (nbsd_init_abi): Call set_gdbarch_skip_solib_resolver().
8707
85a9510c 87082020-04-07 Nitika Achra <Nitika.Achra@amd.com>
8709
8710 * dwarf2/loc.c (loclist_describe_location): Call the function decode_debug_loclists_
8711 addresses if DWARF version is 5 or more because DW_LLE_start* or DW_LLE_offset_pair
8712 with DW_LLE_base_addressx are being emitted in DWARFv5.
8713 Add the newly added kind DW_LOC_OFFSET_PAIR also.
8714 The length of location description is an unsigned ULEB integer in DWARFv5 instead of
8715 unsigned integer.
8716
9fc3eaae 87172020-04-07 Nitika Achra <Nitika.Achra@amd.com>
8718
8719 * dwarf2/loc.c (enum debug_loc_kind): Add a new kind DEBUG_LOC_OFFSET_PAIR.
8720 (dwarf2_find_location_expression): Call the function decode_debug_loclists_
8721 addresses if DWARF version is 5 or more. DW_LLE_start* or DW_LLE_offset_pair
8722 with DW_LLE_base_addressx are being emitted in DWARFv5 instead of DW_LLE_GNU*.
8723 Add applicable base address if the entry is DW_LLE_offset_pair from DWO.
8724 (decode_debug_loclists_addresses): Return DEBUG_LOC_OFFSET_PAIR instead of
8725 DEBUG_LOC_START_END in case of DW_LLE_offset_pair.
8726
8727
41144253 87282020-04-07 Nitika Achra <Nitika.Achra@amd.com>
8729
8730 * dwarf2/read.c (cu_debug_loc_section): Added the declaration for the function.
8731 (read_loclist_index): New function definition.
8732 (lookup_loclist_base): New function definition.
8733 (read_loclist_header): New function definition.
8734 (dwarf2_cu): Add loclist_base and loclist_header field.
8735 (dwarf2_locate_dwo_sections): Handle .debug_loclists.dwo section.
8736 (read_full_die_1): Read the value of DW_AT_loclists_base.
8737 (read_attribute_reprocess): Handle DW_FORM_loclistx.
8738 (read_attribute_value): Handle DW_FORM_loclistx.
8739 (skip_one_die): Handle DW_FORM_loclistx.
8740 (loclist_header): New structure declaration.
8741 * dwarf2/attribute.c (form_is_section_offset): Handle DW_FORM_loclistx.
8742
9f4e76a4
SM
87432020-04-07 Simon Marchi <simon.marchi@polymtl.ca>
8744
8745 * dwarf2/read.h (struct dwarf2_psymtab): Remove two-parameters
8746 constructor. Remove `addr` parameter from other constructor and
8747 add `per_cu` parameter.
8748 * dwarf2/read.c (create_partial_symtab): Update.
8749
25c11aca
TV
87502020-04-07 Tom de Vries <tdevries@suse.de>
8751
8752 PR symtab/25796
8753 * dwarf2/read.c (can_have_DW_AT_const_value_p): New function.
8754 (partial_die_info::fixup): Inherit has_const_value.
8755
5707e24b
TV
87562020-04-07 Tom de Vries <tdevries@suse.de>
8757
8758 * psymtab.c (maintenance_check_psymtabs): Skip static LOC_BLOCK
8759 symbols without address.
8760
05f00e22
KR
87612020-04-06 Kamil Rytarowski <n54@gmx.com>
8762
8763 * nbsd-nat.h (struct thread_info): Add forward declaration.
8764 (nbsd_nat_target::thread_alive): Add.
8765 (nbsd_nat_target::thread_name): Likewise.
8766 (nbsd_nat_target::update_thread_list): Likewise.
8767 (update_thread_list::post_attach): Likewise.
8768 (post_attach::pid_to_str): Likewise.
8769 * nbsd-nat.c: Include "gdbthread.h" and "inferior.h".
8770 (nbsd_thread_lister): Add.
8771 (nbsd_nat_target::thread_alive): Likewise.
8772 (nbsd_nat_target::thread_name): Likewise.
8773 (nbsd_add_threads): Likewise.
8774 (update_thread_list::post_attach): Likewise.
8775 (nbsd_nat_target::update_thread_list): Likewise.
8776 (post_attach::pid_to_str): Likewise.
8777
6ee448cc
TT
87782020-04-06 Tom Tromey <tromey@adacore.com>
8779
8780 * ada-valprint.c (print_variant_part): Extract the variant field.
8781 (print_field_values): Use the field as the outer value when
8782 recursing.
8783
dea34e8c
TT
87842020-04-06 Tom Tromey <tromey@adacore.com>
8785
8786 * sh-nbsd-tdep.c: Include nbsd-tdep.h.
8787 * ppc-nbsd-tdep.c: Include nbsd-tdep.h.
8788 * mips-nbsd-tdep.c (mipsnbsd_init_abi): Add missing ";".
8789 * arm-nbsd-tdep.c: Include nbsd-tdep.h.
8790 * hppa-nbsd-tdep.c: Include nbsd-tdep.h.
8791
93689ce9
TT
87922020-04-06 Tom Tromey <tromey@adacore.com>
8793
8794 * dwarf2/read.c (read_base_type) <DW_ATE_complex_float>: Handle
8795 TYPE_CODE_ERROR.
8796
79743962
KR
87972020-04-06 Kamil Rytarowski <n54@gmx.com>
8798
8799 * nbsd-tdep.c: Include "gdbarch.h".
8800 Define enum with NetBSD signal numbers.
8801 (nbsd_gdb_signal_from_target, nbsd_gdb_signal_to_target): New.
8802 * alpha-nbsd-tdep.c (alphanbsd_init_abi): Call nbsd_init_abi().
8803 * amd64-nbsd-tdep.c (amd64nbsd_init_abi): Likewise.
8804 * arm-nbsd-tdep.c (arm_netbsd_elf_init_abi): Likewise.
8805 * hppa-nbsd-tdep.c (hppanbsd_init_abi): Likewise.
8806 * i386-nbsd-tdep.c (i386nbsd_init_abi): Likewise.
8807 * mips-nbsd-tdep.c (nbsd_init_abi): Likewise.
8808 * ppc-nbsd-tdep.c (ppcnbsd_init_abi): Likewise.
8809 * sh-nbsd-tdep.c (shnbsd_init_abi): Likewise.
8810 * sparc-nbsd-tdep.c (sparc32nbsd_init_abi): Likewise.
8811 * sparc64-nbsd-tdep.c (sparc64nbsd_init_abi): Likewise.
8812 * vax-nbsd-tdep.c (vaxnbsd_elf_init_abi): Likewise.
8813
9e7c9a03
HD
88142020-04-03 Hannes Domani <ssbssa@yahoo.de>
8815
8816 PR gdb/25325
8817 * dwarf2/read.c (read_enumeration_type): Fix typed enum attributes.
8818
d9e49b61
TT
88192020-04-03 Tom Tromey <tromey@adacore.com>
8820
8821 * dwarf2/loc.c (disassemble_dwarf_expression) <DW_OP_const_type>:
8822 Read constant block.
8823
e0fc5c3f
SM
88242020-04-02 Simon Marchi <simon.marchi@polymtl.ca>
8825
8826 * gdb_bfd.h: Include gdbsupport/byte-vector.h.
8827 (gdb_bfd_get_full_section_contents): New declaration.
8828 * gdb_bfd.c (gdb_bfd_get_full_section_contents): New function.
8829 * windows-tdep.c (is_linked_with_cygwin_dll): Use
8830 gdb_bfd_get_full_section_contents.
8831
e2ff18a0
SM
88322020-04-02 Simon Marchi <simon.marchi@polymtl.ca>
8833
8834 * exec.c (build_section_table): Replace internal_error with
8835 gdb_assert.
8836 (section_table_xfer_memory_partial): Likewise.
8837 * mdebugread.c (parse_partial_symbols): Likewise.
8838 * psymtab.c (lookup_partial_symbol): Likewise.
8839 * utils.c (wrap_here): Likewise.
8840
0830d301
TT
88412020-04-02 Tom Tromey <tromey@adacore.com>
8842
8843 * f-lang.c (build_fortran_types): Use arch_type to initialize
8844 builtin_complex_s32 in the TYPE_CODE_ERROR case.
8845
e7da7f8f
TT
88462020-04-02 Tom Tromey <tromey@adacore.com>
8847
8848 * dwarf2/read.c (partial_die_info::read): Do not create a vector
8849 of attributes.
8850
c90d28ac
AB
88512020-04-02 Andrew Burgess <andrew.burgess@embecosm.com>
8852 Bernd Edlinger <bernd.edlinger@hotmail.de>
8853 Tom Tromey <tromey@adacore.com>
8854
8855 * buildsym.c (buildsym_compunit::record_line): Remove
8856 deduplication code.
8857
1aa98955
TV
88582020-04-02 Tom de Vries <tdevries@suse.de>
8859
8860 PR ada/24671
8861 * dwarf2/read.c (dw2_map_matching_symbols): Handle -readnow.
8862
d3214198
TV
88632020-04-02 Tom de Vries <tdevries@suse.de>
8864
8865 * dwarf2/read.c (dwarf2_gdb_index_functions,
8866 dwarf2_debug_names_functions): Init lookup_global_symbol_language with
8867 NULL.
8868 * psymtab.c (psym_lookup_global_symbol_language): New function.
8869 (psym_functions): Init psym_lookup_global_symbol_language with
8870 psym_lookup_global_symbol_language.
8871 * symfile-debug.c (debug_sym_quick_functions): Init
8872 lookup_global_symbol_language with NULL.
8873 * symfile.c (set_initial_language): Remove fixme comment.
8874 * symfile.h (struct quick_symbol_functions): Add
8875 lookup_global_symbol_language.
8876 * symtab.c (find_quick_global_symbol_language): New function.
8877 (find_main_name): Use find_quick_global_symbol_language.
8878
2836752f
SM
88792020-04-01 Simon Marchi <simon.marchi@polymtl.ca>
8880
8881 * windows-tdep.c (is_linked_with_cygwin_dll): Fix style.
8882
64dc2d4b
BE
88832020-04-01 Bernd Edlinger <bernd.edlinger@hotmail.de>
8884
8885 * buildsym.c (record_line): Fix undefined behavior and preserve
8886 lines at eof.
8887
bbe3dc41
BE
88882020-04-01 Bernd Edlinger <bernd.edlinger@hotmail.de>
8889
8890 * buildsym.c (record_line): Fix the resizing condition.
8891
6b4a335b
TT
88922020-04-01 Tom Tromey <tom@tromey.com>
8893
8894 * value.h (value_literal_complex): Add comment.
8895 * valops.c (value_literal_complex): Refer to value.h.
8896
3638a098
TT
88972020-04-01 Tom Tromey <tom@tromey.com>
8898
8899 * c-exp.y (FLOAT_KEYWORD, COMPLEX): New tokens.
8900 (scalar_type): New rule, from typebase.
8901 (typebase): Use scalar_type. Recognize complex types.
8902 (field_name): Handle FLOAT_KEYWORD.
8903 (ident_tokens): Add _Complex and __complex__.
8904
c34e8714
TT
89052020-04-01 Tom Tromey <tom@tromey.com>
8906
8907 PR exp/25299:
8908 * valarith.c (promotion_type, complex_binop): New functions.
8909 (scalar_binop): Handle complex numbers. Use promotion_type.
8910 (value_pos, value_neg, value_complement): Handle complex numbers.
8911
fa649bb7
TT
89122020-04-01 Tom Tromey <tom@tromey.com>
8913
8914 * c-exp.y (COMPLEX_INT, COMPLEX_FLOAT): New tokens.
8915 (exp) <COMPLEX_INT, COMPLEX_FLOAT>: New rules.
8916 (parse_number): Handle complex numbers.
8917
981c08ce
TT
89182020-04-01 Tom Tromey <tom@tromey.com>
8919
8920 * c-valprint.c (c_decorations): Change complex suffix to "i".
8921
4c99290d
TT
89222020-04-01 Tom Tromey <tom@tromey.com>
8923
8924 * valprint.c (generic_value_print_complex): Use accessors.
8925 * value.h (value_real_part, value_imaginary_part): Declare.
8926 * valops.c (value_real_part, value_imaginary_part): New
8927 functions.
8928 * value.c (creal_internal_fn, cimag_internal_fn): Use accessors.
8929
5b930b45
TT
89302020-04-01 Tom Tromey <tom@tromey.com>
8931
8932 * stabsread.c (rs6000_builtin_type, read_sun_floating_type)
8933 (read_range_type): Update.
8934 * mdebugread.c (basic_type): Update.
8935 * go-lang.c (build_go_types): Use init_complex_type.
8936 * gdbtypes.h (struct main_type) <complex_type>: New member.
8937 (init_complex_type): Update.
8938 (arch_complex_type): Don't declare.
8939 * gdbtypes.c (init_complex_type): Remove "objfile" parameter.
8940 Make name if none given. Use alloc_type_copy. Look for cached
8941 complex type.
8942 (arch_complex_type): Remove.
8943 (gdbtypes_post_init): Use init_complex_type.
8944 * f-lang.c (build_fortran_types): Use init_complex_type.
8945 * dwarf2/read.c (read_base_type): Update.
8946 * d-lang.c (build_d_types): Use init_complex_type.
8947 * ctfread.c (read_base_type): Update.
8948
53cccef1
TBA
89492020-04-01 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
8950
8951 * infrun.c (stop_all_threads): Update assertion, plus when
8952 stopping threads, take into account that we might be trying
8953 to stop an all-stop target.
8954 (stop_waiting): Call 'stop_all_threads' if there exists a
8955 non-stop target.
8956
a0714d30
TBA
89572020-04-01 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
8958
8959 * target.h (exists_non_stop_target): New function declaration.
8960 * target.c (exists_non_stop_target): New function.
8961
60e22c1e
HD
89622020-04-01 Hannes Domani <ssbssa@yahoo.de>
8963
8964 PR gdb/24789
8965 * eval.c (is_integral_or_integral_reference): New function.
8966 (evaluate_subexp_standard): Allow integer references in
8967 pointer arithmetic.
8968
e139a727
TBA
89692020-04-01 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
8970
8971 * remote.c (remote_target::remote_parse_stop_reply): Remove the
8972 check for no ptid in the stop reply when the target is non-stop.
8973
e0802d59
TT
89742020-04-01 Tom Tromey <tromey@adacore.com>
8975
8976 * symtab.h (class lookup_name_info) <lookup_name_info>: Change
8977 "name" parameter to rvalue reference. Initialize m_name_holder.
8978 <lookup_name_info>: New overloads.
8979 <name>: Return gdb::string_view.
8980 <c_str>: New method.
8981 <make_ignore_params>: Update.
8982 <search_name_hash>: Update.
8983 <language_lookup_name>: Return const char *.
8984 <m_name>: Change type.
8985 * symtab.c (demangle_for_lookup_info::demangle_for_lookup_info)
8986 (demangle_for_lookup_info::demangle_for_lookup_info): Update.
8987 (lookup_name_info::match_any): Update.
8988 * psymtab.c (match_partial_symbol, lookup_partial_symbol):
8989 Update.
8990 * minsyms.c (linkage_name_str): Update.
8991 * language.c (default_symbol_name_matcher): Update.
8992 * dwarf2/read.c (mapped_index_base::find_name_components_bounds):
8993 Update.
8994 * ada-lang.c (ada_fold_name): Change parameter to string_view.
8995 (ada_lookup_name_info::ada_lookup_name_info): Update.
8996 (literal_symbol_name_matcher): Update.
8997
8c072cb6
TT
89982020-04-01 Tom Tromey <tromey@adacore.com>
8999
9000 * psymtab.c (psymtab_search_name): Remove function.
9001 (psym_lookup_symbol): Create search name and lookup name here.
9002 (lookup_partial_symbol): Remove "name" parameter; add
9003 lookup_name.
9004 (psym_expand_symtabs_for_function): Update.
9005
6f29a534
TT
90062020-03-31 Joel Jones <joelkevinjones@gmail.com>
9007
9008 PR tui/25597:
9009 * python/py-tui.c: Include gdb_curses.h inside of #ifdef TUI.
9010
af62665e
TT
90112020-03-31 Tom Tromey <tromey@adacore.com>
9012
9013 * dwarf2/abbrev.c (abbrev_table::read): Conditionally call
9014 memcpy.
9015
d1a89da5
NC
90162020-03-30 Nelson Chu <nelson.chu@sifive.com>
9017
9018 * features/riscv/32bit-csr.xml: Regenerated.
9019 * features/riscv/64bit-csr.xml: Regenerated.
9020
d8af9068
TT
90212020-03-30 Tom Tromey <tromey@adacore.com>
9022
9023 * ada-valprint.c (print_variant_part): Update.
9024 * ada-lang.h (ada_which_variant_applies): Update.
9025 * ada-lang.c (ada_which_variant_applies): Remove outer_type and
9026 outer_valaddr parameters; replace with "outer" value parameter.
9027 (to_fixed_variant_branch_type): Update.
9028
227c0bf4
PFC
90292020-03-30 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
9030
9031 * ppc-linux-nat.c: Include <algorithm>, <unordered_map>, and
9032 <list>. Remove inclusion of observable.h.
9033 (PPC_DEBUG_CURRENT_VERSION): Move up define.
9034 (struct arch_lwp_info): New struct.
9035 (class ppc_linux_dreg_interface): New class.
9036 (struct ppc_linux_process_info): New struct.
9037 (struct ppc_linux_nat_target) <low_delete_thread, low_new_fork>
9038 <low_new_clone, low_forget_process, low_prepare_to_resume>
9039 <copy_thread_dreg_state, mark_thread_stale>
9040 <mark_debug_registers_changed, register_hw_breakpoint>
9041 <clear_hw_breakpoint, register_wp, clear_wp>
9042 <can_use_watchpoint_cond_accel, calculate_dvc, check_condition>
9043 <num_memory_accesses, get_trigger_type>
9044 <create_watchpoint_request, hwdebug_point_cmp>
9045 <init_arch_lwp_info, get_arch_lwp_info>
9046 <low_stopped_by_watchpoint, low_stopped_data_address>: Declare as
9047 methods.
9048 <struct ptid_hash>: New inner struct.
9049 <m_dreg_interface, m_process_info, m_installed_hw_bps>: Declare
9050 members.
9051 (saved_dabr_value, hwdebug_info, max_slots_number)
9052 (struct hw_break_tuple, struct thread_points, ppc_threads)
9053 (have_ptrace_hwdebug_interface)
9054 (hwdebug_find_thread_points_by_tid)
9055 (hwdebug_insert_point, hwdebug_remove_point): Remove.
9056 (ppc_linux_nat_target::can_use_hw_breakpoint): Use
9057 m_dreg_interface, remove call to PTRACE_SET_DEBUGREG.
9058 (ppc_linux_nat_target::region_ok_for_hw_watchpoint): Add comment,
9059 use m_dreg_interface.
9060 (hwdebug_point_cmp): Change to...
9061 (ppc_linux_nat_target::hwdebug_point_cmp): ...this method. Use
9062 reference arguments instead of pointers.
9063 (ppc_linux_nat_target::ranged_break_num_registers): Use
9064 m_dreg_interface.
9065 (ppc_linux_nat_target::insert_hw_breakpoint): Add comment, use
9066 m_dreg_interface. Call register_hw_breakpoint.
9067 (ppc_linux_nat_target::remove_hw_breakpoint): Add comment, use
9068 m_dreg_interface. Call clear_hw_breakpoint.
9069 (get_trigger_type): Change to...
9070 (ppc_linux_nat_target::get_trigger_type): ...this method. Add
9071 comment.
9072 (ppc_linux_nat_target::insert_mask_watchpoint): Update comment,
9073 use m_dreg_interface. Call register_hw_breakpoint.
9074 (ppc_linux_nat_target::remove_mask_watchpoint): Update comment,
9075 use m_dreg_interface. Call clear_hw_breakpoint.
9076 (can_use_watchpoint_cond_accel): Change to...
9077 (ppc_linux_nat_target::can_use_watchpoint_cond_accel): ...this
9078 method. Update comment, use m_dreg_interface and
9079 m_process_info.
9080 (calculate_dvc): Change to...
9081 (ppc_linux_nat_target::calculate_dvc): ...this method. Use
9082 m_dreg_interface.
9083 (num_memory_accesses): Change to...
9084 (ppc_linux_nat_target::num_memory_accesses): ...this method.
9085 (check_condition): Change to...
9086 (ppc_linux_nat_target::check_condition): ...this method.
9087 (ppc_linux_nat_target::can_accel_watchpoint_condition): Update
9088 comment, use m_dreg_interface.
9089 (create_watchpoint_request): Change to...
9090 (ppc_linux_nat_target::create_watchpoint_request): ...this
9091 method. Use m_dreg_interface.
9092 (ppc_linux_nat_target::insert_watchpoint): Add comment, use
9093 m_dreg_interface. Call register_hw_breakpoint or register_wp.
9094 (ppc_linux_nat_target::remove_watchpoint): Add comment, use
9095 m_dreg_interface. Call clear_hw_breakpoint or clear_wp.
9096 (ppc_linux_nat_target::low_forget_process)
9097 (ppc_linux_nat_target::low_new_fork)
9098 (ppc_linux_nat_target::low_new_clone)
9099 (ppc_linux_nat_target::low_delete_thread)
9100 (ppc_linux_nat_target::low_prepare_to_resume): New methods.
9101 (ppc_linux_nat_target::low_new_thread): Remove previous logic,
9102 only call mark_thread_stale.
9103 (ppc_linux_thread_exit): Remove.
9104 (ppc_linux_nat_target::stopped_data_address): Change to...
9105 (ppc_linux_nat_target::low_stopped_data_address): This. Add
9106 comment, use m_dreg_interface and m_thread_hw_breakpoints.
9107 (ppc_linux_nat_target::stopped_by_watchpoint): Change to...
9108 (ppc_linux_nat_target::stopped_by_watchpoint): This. Add
9109 comment. Call low_stopped_data_address.
9110 (ppc_linux_nat_target::watchpoint_addr_within_range): Use
9111 m_dreg_interface.
9112 (ppc_linux_nat_target::masked_watch_num_registers): Use
9113 m_dreg_interface.
9114 (ppc_linux_nat_target::copy_thread_dreg_state)
9115 (ppc_linux_nat_target::mark_thread_stale)
9116 (ppc_linux_nat_target::mark_debug_registers_changed)
9117 (ppc_linux_nat_target::register_hw_breakpoint)
9118 (ppc_linux_nat_target::clear_hw_breakpoint)
9119 (ppc_linux_nat_target::register_wp)
9120 (ppc_linux_nat_target::clear_wp)
9121 (ppc_linux_nat_target::init_arch_lwp_info)
9122 (ppc_linux_nat_target::get_arch_lwp_info): New methods.
9123 (_initialize_ppc_linux_nat): Remove observer callback.
9124
4db10d8f
PFC
91252020-03-30 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
9126
9127 * ppc-linux-nat.c (ppc_linux_nat_target::store_registers)
9128 (ppc_linux_nat_target::auxv_parse)
9129 (ppc_linux_nat_target::read_description)
9130 (supply_gregset, fill_gregset, supply_fpregset, fill_fpregset):
9131 Move up.
9132
1310c1b0
PFC
91332020-03-30 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
9134
9135 * linux-nat.h (low_new_clone): New method.
9136 * linux-nat.c (linux_handle_extended_wait): Call low_new_clone.
9137
69b037c3
SM
91382020-03-29 Simon Marchi <simon.marchi@polymtl.ca>
9139
9140 * dbxread.c (dbx_psymtab_to_symtab_1): Rename to...
9141 (dbx_expand_psymtab): ... this.
9142 (start_psymtab): Update.
9143 * mdebugread.c (psymtab_to_symtab_1): Rename to...
9144 (mdebug_expand_psymtab): ... this.
9145 (parse_partial_symbols): Update.
9146 (new_psymtab): Update.
9147 * xcoffread.c (xcoff_psymtab_to_symtab_1): Rename to...
9148 (xcoff_expand_psymtab): ... this.
9149 (xcoff_start_psymtab): Update.
9150
48993951
SM
91512020-03-29 Simon Marchi <simon.marchi@polymtl.ca>
9152
9153 * psympriv.h (partial_symtab) <read_dependencies>: Rename to...
9154 <expand_dependencies>: ... this.
9155 * psymtab.c (partial_symtab::read_dependencies): Rename to...
9156 (partial_symtab::expand_dependencies): ... this.
9157 * dwarf2/read.c (dwarf2_include_psymtab) <expand_psymtab>:
9158 Update.
9159 (dwarf2_psymtab::expand_psymtab): Update.
9160 * dbxread.c (dbx_psymtab_to_symtab_1): Update.
9161 * mdebugread.c (psymtab_to_symtab_1): Update.
9162 * xcoffread.c (xcoff_psymtab_to_symtab_1): Update.
9163
3ad83046
SM
91642020-03-29 Simon Marchi <simon.marchi@polymtl.ca>
9165
9166 * psympriv.h (discard_psymtab): Remove.
9167 * dbxread.c (dbx_end_psymtab): Update.
9168 * xcoffread.c (xcoff_end_psymtab): Update.
9169
4d1b9ab6
TT
91702020-03-28 Tom Tromey <tom@tromey.com>
9171
9172 * dwarf2/attribute.h (struct attribute) <form_is_constant>: Update
9173 comment.
9174
f1749218
TT
91752020-03-28 Tom Tromey <tom@tromey.com>
9176
9177 * dwarf2/read.c (read_attribute_reprocess): Fix formatting.
9178
ebea7626
HD
91792020-03-27 Hannes Domani <ssbssa@yahoo.de>
9180
9181 * windows-nat.c (windows_add_all_dlls): Fix system dll paths.
9182
a879b4d5
JB
91832020-03-26 John Baldwin <jhb@FreeBSD.org>
9184
9185 * fbsd-tdep.c (fbsd_print_auxv_entry): Handle AT_FREEBSD_BSDFLAGS.
9186
0826b30a
TT
91872020-03-26 Tom Tromey <tom@tromey.com>
9188
9189 * dwarf2/read.c (handle_data_member_location, dwarf2_add_field)
9190 (mark_common_block_symbol_computed, read_tag_string_type)
9191 (attr_to_dynamic_prop, read_subrange_type): Update.
9192 (dwarf2_get_ref_die_offset, dwarf2_get_attr_constant_value): Move
9193 to be methods on struct attribute.
9194 (skip_one_die, process_imported_unit_die, read_namespace_alias)
9195 (read_call_site_scope, partial_die_info::read)
9196 (partial_die_info::read, lookup_die_type, follow_die_ref):
9197 Update.
9198 * dwarf2/attribute.c (attribute::get_ref_die_offset): New method,
9199 from dwarf2_get_ref_die_offset.
9200 (attribute::constant_value): New method, from
9201 dwarf2_get_attr_constant_value.
9202 * dwarf2/attribute.h (struct attribute) <get_ref_die_offset>:
9203 Declare method.
9204 <constant_value>: New method.
9205
2b2558bf
TT
92062020-03-26 Tom Tromey <tom@tromey.com>
9207
9208 * dwarf2/read.c (dwarf_unit_type_name, dwarf_tag_name)
9209 (dwarf_attr_name, dwarf_form_name, dwarf_bool_name)
9210 (dwarf_type_encoding_name): Move to stringify.c.
9211 * Makefile.in (COMMON_SFILES): Add dwarf2/stringify.c.
9212 * dwarf2/stringify.c: New file.
9213 * dwarf2/stringify.h: New file.
9214
eeb64781
TT
92152020-03-26 Tom Tromey <tom@tromey.com>
9216
9217 * dwarf2/die.h (struct die_info) <addr_base, ranges_base>:
9218 Rewrite.
9219
a39fdb41
TT
92202020-03-26 Tom Tromey <tom@tromey.com>
9221
9222 * dwarf2/die.h (struct die_info) <addr_base, ranges_base>: New
9223 methods.
9224 * dwarf2/read.c (lookup_addr_base): Move to die.h.
9225 (lookup_ranges_base): Likewise.
9226 (read_cutu_die_from_dwo, read_full_die_1): Update.
9227
436c571c
TT
92282020-03-26 Tom Tromey <tom@tromey.com>
9229
9230 * dwarf2/read.c (read_import_statement, read_file_scope)
9231 (read_type_unit_scope, inherit_abstract_dies, read_func_scope)
9232 (read_lexical_block_scope, read_call_site_scope)
9233 (dwarf2_get_subprogram_pc_bounds, get_scope_pc_bounds)
9234 (handle_struct_member_die, process_structure_scope)
9235 (update_enumeration_type_from_children)
9236 (process_enumeration_scope, read_array_type, read_common_block)
9237 (read_namespace, read_module, read_subroutine_type): Update.
9238 (sibling_die): Remove.
9239
052c8bb8
TT
92402020-03-26 Tom Tromey <tom@tromey.com>
9241
9242 * dwarf2/read.c (lookup_addr_base, lookup_ranges_base)
9243 (build_type_psymtabs_reader, read_structure_type)
9244 (read_enumeration_type, read_full_die_1): Update.
9245 (dwarf2_attr_no_follow): Move to die.h.
9246 * dwarf2/die.h (struct die_info) <attr>: New method.
9247
2b24b6e4
TT
92482020-03-26 Tom Tromey <tom@tromey.com>
9249
9250 * dwarf2/read.c (struct dwarf2_cu) <base_known>: Remove.
9251 <base_address>: Now an optional.
9252 (dwarf2_find_base_address, dwarf2_rnglists_process)
9253 (dwarf2_ranges_process, fill_in_loclist_baton)
9254 (dwarf2_symbol_mark_computed): Update.
9255
c2d50fd0
TT
92562020-03-26 Tom Tromey <tom@tromey.com>
9257
9258 * dwarf2/read.c (struct die_info): Move to die.h.
9259 * dwarf2/die.h: New file.
9260
0df7ad3a
TT
92612020-03-26 Tom Tromey <tom@tromey.com>
9262
9263 * dwarf2/line-header.h (dwarf_decode_line_header): Declare.
9264 * dwarf2/read.c
9265 (dwarf2_statement_list_fits_in_line_number_section_complaint):
9266 Move to line-header.c.
9267 (read_checked_initial_length_and_offset, read_formatted_entries):
9268 Likewise.
9269 (dwarf_decode_line_header): Split into two.
9270 * dwarf2/line-header.c
9271 (dwarf2_statement_list_fits_in_line_number_section_complaint):
9272 Move from read.c.
9273 (read_checked_initial_length_and_offset, read_formatted_entries):
9274 Likewise.
9275 (dwarf_decode_line_header): New function, split from read.c.
9276
86c0bb4c
TT
92772020-03-26 Tom Tromey <tom@tromey.com>
9278
9279 * dwarf2/read.h (struct dwarf2_per_objfile) <read_line_string>:
9280 Declare method.
9281 * dwarf2/read.c (read_attribute_value): Update.
9282 (dwarf2_per_objfile::read_line_string): Rename from
9283 read_indirect_line_string.
9284 (read_formatted_entries): Update.
9285
2ef46c2f
TT
92862020-03-26 Tom Tromey <tom@tromey.com>
9287
9288 * dwarf2/macro.c (dwarf_decode_macro_bytes): Use objfile local
9289 variable.
9290
4f9c1eda
TT
92912020-03-26 Tom Tromey <tom@tromey.com>
9292
9293 * dwarf2/macro.h (dwarf_decode_macros): Make section parameter
9294 const.
9295 * dwarf2/macro.c (skip_form_bytes, skip_unknown_opcode)
9296 (dwarf_decode_macro_bytes, dwarf_decode_macros): Make section
9297 parameter const.
9298
5a0e026f
TT
92992020-03-26 Tom Tromey <tom@tromey.com>
9300
9301 * dwarf2/read.c (dwarf_decode_macros): Make "lh" const.
9302 * dwarf2/macro.h (dwarf_decode_macros): Constify "lh" parameter.
9303 * dwarf2/macro.c (macro_start_file): Constify "lh" parameter.
9304 (dwarf_decode_macro_bytes, dwarf_decode_macros): Likewise.
9305
8844c11b
TT
93062020-03-26 Tom Tromey <tom@tromey.com>
9307
9308 * dwarf2/line-header.h (struct line_header) <is_valid_file_index,
9309 file_names_size, file_full_name, file_file_name>: Use const.
9310 <file_name_at, file_names>: Add const overload.
9311 * dwarf2/line-header.c (line_header::file_file_name)
9312 (line_header::file_full_name): Update.
9313
c90ec28a
TT
93142020-03-26 Tom Tromey <tom@tromey.com>
9315
9316 * dwarf2/read.c (dwarf2_macro_malformed_definition_complaint)
9317 (macro_start_file, consume_improper_spaces)
9318 (parse_macro_definition, skip_form_bytes, skip_unknown_opcode)
9319 (dwarf_parse_macro_header, dwarf_decode_macro_bytes)
9320 (dwarf_decode_macros): Move to macro.c.
9321 * dwarf2/macro.c: New file.
9322 * dwarf2/macro.h: New file.
9323 * Makefile.in (COMMON_SFILES): Add dwarf2/macro.c.
9324
4f44ae6c
TT
93252020-03-26 Tom Tromey <tom@tromey.com>
9326
9327 * dwarf2/section.h (struct dwarf2_section_info) <read_string>: New
9328 method.
9329 * dwarf2/section.c: New method. From
9330 read_indirect_string_at_offset_from.
9331 * dwarf2/read.c (mapped_debug_names::namei_to_name): Update.
9332 (read_indirect_string_at_offset_from): Move to section.c.
9333 (read_indirect_string_at_offset): Rewrite.
9334 (read_indirect_line_string_at_offset): Remove.
9335 (read_indirect_string, read_indirect_line_string)
9336 (dwarf_decode_macro_bytes): Update.
9337
a0194fa8
TT
93382020-03-26 Tom Tromey <tom@tromey.com>
9339
9340 * dwarf2/section.h (struct dwarf2_section_info)
9341 <overload_complaint>: Declare.
9342 (dwarf2_section_buffer_overflow_complaint): Don't declare.
9343 * dwarf2/section.c (dwarf2_section_info::overflow_complaint):
9344 Rename from dwarf2_section_buffer_overflow_complaint.
9345 * dwarf2/read.c (skip_one_die, partial_die_info::read)
9346 (skip_form_bytes, dwarf_decode_macro_bytes): Update.
9347
3d27bbdb
TT
93482020-03-26 Tom Tromey <tom@tromey.com>
9349
9350 * dwarf2/section.h (dwarf2_section_buffer_overflow_complaint):
9351 Declare.
9352 * dwarf2/section.c (dwarf2_section_buffer_overflow_complaint):
9353 Move from read.c.
9354 * dwarf2/read.c (dwarf2_section_buffer_overflow_complaint): Move
9355 to section.c.
9356
9eac9650
TT
93572020-03-26 Tom Tromey <tom@tromey.com>
9358
9359 * dwarf2/read.c (dwarf_decode_macros): Split into two overloads.
9360
bf80d710
TT
93612020-03-26 Tom Tromey <tom@tromey.com>
9362
9363 * dwarf2/read.c (macro_start_file): Change "cu" parameter to
9364 "builder".
9365 (dwarf_decode_macro_bytes): Likewise. Add dwarf2_per_objfile
9366 parameter.
9367 (dwarf_decode_macros): Update.
9368
0314b390
TT
93692020-03-26 Tom Tromey <tom@tromey.com>
9370
9371 * dwarf2/read.c (read_attribute_value): Update.
9372 (read_indirect_string_from_dwz): Move to dwz.c; change into
9373 method.
9374 (dwarf_decode_macro_bytes): Update.
9375 * dwarf2/dwz.h (struct dwz_file) <read_string>: Declare method.
9376 * dwarf2/dwz.c: New file.
9377 * Makefile.in (COMMON_SFILES): Add dwz.c.
9378
9fda78b6
TT
93792020-03-26 Tom Tromey <tom@tromey.com>
9380
9381 * dwarf2/read.h (struct dwz_file): Move to dwz.h.
9382 * dwarf2/read.c: Add include.
9383 * dwarf2/index-write.c: Add include.
9384 * dwarf2/index-cache.c: Add include.
9385 * dwarf2/dwz.h: New file.
9386
33aa3c10
TT
93872020-03-25 Tom Tromey <tom@tromey.com>
9388
9389 * compile/compile-object-load.c (get_out_value_type): Mention
9390 correct symbol name in error message.
9391
d503b685
HD
93922020-03-25 Hannes Domani <ssbssa@yahoo.de>
9393
9394 * windows-nat.c (windows_add_all_dlls): Fix system dll paths.
9395
7b1eff95
TV
93962020-03-25 Tom de Vries <tdevries@suse.de>
9397
9398 * symtab.h (is_main_symtab_of_compunit_symtab): New function.
9399 * symmisc.c (dump_symtab_1): Print user and includes fields.
9400 (maintenance_info_symtabs): Same.
9401
dd895392
AB
94022020-03-25 Andrew Burgess <andrew.burgess@embecosm.com>
9403
9404 PR gdb/25534
9405 * riscv-tdep.c (riscv_arg_info::c_offset): Update comment.
9406 (riscv_regcache_cooked_write): New function.
9407 (riscv_push_dummy_call): Use new function.
9408 (riscv_return_value): Likewise.
9409
5ab2fbf1
SM
94102020-03-24 Simon Marchi <simon.marchi@polymtl.ca>
9411
9412 * fbsd-nat.c (fbsd_nat_target::follow_fork): Change bool to int.
9413 * fbsd-nat.h (class fbsd_nat_target) <follow_fork>: Likewise.
9414 * inf-ptrace.c (inf_ptrace_target::follow_fork): Likewise.
9415 * inf-ptrace.h (struct inf_ptrace_target) <follow_fork>: Likewise.
9416 * infrun.c (follow_fork): Likewise.
9417 (follow_fork_inferior): Likewise.
9418 * linux-nat.c (linux_nat_target::follow_fork): Likewise.
9419 * linux-nat.h (class linux_nat_target): Likewise.
9420 * remote.c (class remote_target) <follow_fork>: Likewise.
9421 (remote_target::follow_fork): Likewise.
9422 * target-delegates.c: Re-generate.
9423 * target.c (default_follow_fork): Likewise.
9424 (target_follow_fork): Likewise.
9425 * target.h (struct target_ops) <follow_fork>: Likewise.
9426 (target_follow_fork): Likewise.
9427
a64fafb5
TV
94282020-03-24 Tom de Vries <tdevries@suse.de>
9429
9430 * psymtab.c (maintenance_info_psymtabs): Print user field.
9431
fe26d3a3
TT
94322020-03-20 Tom Tromey <tromey@adacore.com>
9433
9434 * dwarf2/loc.h (dwarf2_evaluate_property): Make "addr_stack"
9435 const.
9436 * dwarf2/loc.c (dwarf2_evaluate_property): Make "addr_stack"
9437 const.
9438
c884cc46
SM
94392020-03-20 Simon Marchi <simon.marchi@efficios.com>
9440
9441 * ptrace.m4: Don't check for ptrace declaration.
9442 * config.in: Re-generate.
9443 * configure: Re-generate.
9444 * nat/gdb_ptrace.h: Don't declare ptrace if HAVE_DECL_PTRACE is
9445 not defined.
9446
1ff700c2
KR
94472020-03-20 Kamil Rytarowski <n54@gmx.com>
9448
9449 * amd64-bsd-nat.c (gdb_ptrace): Change return type from `int' to
9450 `PTRACE_TYPE_RET'.
9451 * i386-bsd-nat.c (gdb_ptrace): Likewise.
9452 * sparc-nat.c (gdb_ptrace): Likewise.
9453 * x86-bsd-nat.c (gdb_ptrace): Likewise.
9454
f7d4f0b1
TT
94552020-03-20 Tom Tromey <tromey@adacore.com>
9456
9457 * c-exp.y (lex_one_token): Fix assert.
9458
f67210ff
TT
94592020-03-20 Tom Tromey <tromey@adacore.com>
9460
9461 * ada-tasks.c (read_atcb): Use smaller length in strncpy call.
9462 * linux-tdep.c (linux_fill_prpsinfo): Use smaller length in
9463 strncpy call.
9464
1773be9e
TT
94652020-03-20 Tom Tromey <tromey@adacore.com>
9466
9467 * symmisc.c (maintenance_print_one_line_table): Use ui_out.
9468
70304be9
TT
94692020-03-20 Tom Tromey <tromey@adacore.com>
9470
9471 * ada-valprint.c (print_variant_part): Remove parameters; switch
9472 to value-based API.
9473 (print_field_values): Likewise.
9474 (ada_val_print_struct_union): Likewise.
9475 (ada_value_print_1): Update.
9476
9faa006d
KR
94772020-03-20 Kamil Rytarowski <n54@gmx.com>
9478
9479 * ppc-nbsd-nat.c (ppc_nbsd_nat_target): Inherit from
9480 nbsd_nat_target instead of inf_ptrace_target.
9481 * ppc-nbsd-nat.c: Include "nbsd-nat.h", as we are now using
9482 nbsd_nat_target.
9483
4a90f062
KR
94842020-03-20 Kamil Rytarowski <n54@gmx.com>
9485
9486 * hppa-nbsd-nat.c (fetch_registers): New variable lwp and pass
9487 it to the ptrace call.
9488 * (store_registers): Likewise.
9489
94902020-03-20 Kamil Rytarowski <n54@gmx.com>
c7da12c7
KR
9491
9492 * ppc-nbsd-nat.c (fetch_registers): New variable lwp and pass
9493 it to the ptrace call.
9494 * (store_registers): Likewise.
9495
2d07da27
LM
94962020-03-19 Luis Machado <luis.machado@linaro.org>
9497
9498 * nat/aarch64-sve-linux-ptrace.c (aarch64_sve_set_vq): If vg is not
9499 valid, fetch vg value from ptrace.
9500
f09db380
KR
95012020-03-19 Kamil Rytarowski <n54@gmx.com>
9502 * inf-ptrace.h: Disable get_ptrace_pid on NetBSD.
9503 * inf-ptrace.c: Likewise.
9504 * (gdb_ptrace): Add.
9505 * (inf_ptrace_target::resume): Update.
9506 * (inf_ptrace_target::xfer_partial): Likewise.
9507 * (inf_ptrace_peek_poke): Change argument `pid' to `ptid'.
9508 * (inf_ptrace_peek_poke): Update.
9509
fcc7376e
KR
95102020-03-19 Kamil Rytarowski <n54@gmx.com>
9511
9512 * x86-bsd-nat.c (gdb_ptrace): New.
9513 * (x86bsd_dr_set): Add new argument `ptid'.
9514 * (x86bsd_dr_get, x86bsd_dr_set, x86bsd_dr_set_control,
9515 x86bsd_dr_set_addr): Update.
9516
cada5fc9
AB
95172020-03-19 Andrew Burgess <andrew.burgess@embecosm.com>
9518
9519 * remote.c (remote_target::process_stop_reply): Handle events for
9520 all threads differently.
9521
19a2740f
AB
95222020-03-19 Andrew Burgess <andrew.burgess@embecosm.com>
9523
9524 * completer.c (completion_tracker::remove_completion): Define new
9525 function.
9526 * completer.h (completion_tracker::remove_completion): Declare new
9527 function.
9528 * symtab.c (completion_list_add_symbol): Remove aliasing msymbols
9529 when adding a C++ function symbol.
9530
724fd9ba
AB
95312020-03-19 Andrew Burgess <andrew.burgess@embecosm.com>
9532
9533 * completer.c (completion_tracker::completion_hash_entry): Define
9534 new class.
9535 (advance_to_filename_complete_word_point): Call
9536 recompute_lowest_common_denominator.
9537 (completion_tracker::completion_tracker): Call discard_completions
9538 to setup the hash table.
9539 (completion_tracker::discard_completions): Allow for being called
9540 from the constructor, pass new equal function, and element deleter
9541 when constructing the hash table. Initialise new class member
9542 variables.
9543 (completion_tracker::maybe_add_completion): Remove use of
9544 m_entries_vec, and store more information into m_entries_hash.
9545 (completion_tracker::recompute_lcd_visitor): New function, most
9546 content taken from...
9547 (completion_tracker::recompute_lowest_common_denominator):
9548 ...here, this now just visits each item in the hash calling the
9549 above visitor.
9550 (completion_tracker::build_completion_result): Remove use of
9551 m_entries_vec, call recompute_lowest_common_denominator.
9552 * completer.h (completion_tracker::have_completions): Remove use
9553 of m_entries_vec.
9554 (completion_tracker::completion_hash_entry): Declare new class.
9555 (completion_tracker::recompute_lowest_common_denominator): Change
9556 function signature.
9557 (completion_tracker::recompute_lcd_visitor): Declare new function.
9558 (completion_tracker::m_entries_vec): Delete.
9559 (completion_tracker::m_entries_hash): Initialize to NULL.
9560 (completion_tracker::m_lowest_common_denominator_valid): New
9561 member variable.
9562 (completion_tracker::m_lowest_common_denominator_max_length): New
9563 member variable.
9564
5a82b8a1
KR
95652020-03-17 Kamil Rytarowski <n54@gmx.com>
9566
9567 * regformats/regdef.h: Put reg in gdb namespace.
9568
fb516a69
KR
95692020-03-17 Kamil Rytarowski <n54@gmx.com>
9570
9571 * i386-bsd-nat.c (gdb_ptrace): New.
9572 * (i386bsd_fetch_inferior_registers,
9573 i386bsd_store_inferior_registers) Switch from pid_t to ptid_t.
9574 * (i386bsd_fetch_inferior_registers,
9575 i386bsd_store_inferior_registers) Use gdb_ptrace.
9576
1c0aa1fb
KR
95772020-03-17 Kamil Rytarowski <n54@gmx.com>
9578
9579 * amd64-bsd-nat.c (gdb_ptrace): New.
9580 * (amd64bsd_fetch_inferior_registers,
9581 amd64bsd_store_inferior_registers) Switch from pid_t to ptid_t.
9582 * (amd64bsd_fetch_inferior_registers,
9583 amd64bsd_store_inferior_registers) Use gdb_ptrace.
9584
5ccd2fb7
KR
95852020-03-17 Kamil Rytarowski <n54@gmx.com>
9586
9587 * user-regs.c (user_reg::read): Rename to...
9588 (user_reg::xread): ...this.
9589 * (append_user_reg): Rename argument `read' to `xread'.
9590 * (user_reg_add_builtin): Likewise.
9591 * (user_reg_add): Likewise.
9592 * (value_of_user_reg): Likewise.
9593
2108a63a
KR
95942020-03-17 Kamil Rytarowski <n54@gmx.com>
9595
9596 * sparc-nat.c (gdb_ptrace): New.
9597 * sparc-nat.c (sparc_fetch_inferior_registers)
9598 (sparc_store_inferior_registers) Remove obsolete comment.
9599 * sparc-nat.c (sparc_fetch_inferior_registers)
9600 (sparc_store_inferior_registers) Switch from pid_t to ptid_t.
9601 * sparc-nat.c (sparc_fetch_inferior_registers)
9602 (sparc_store_inferior_registers) Use gdb_ptrace.
9603
a225c9a8
KR
96042020-03-17 Kamil Rytarowski <n54@gmx.com>
9605
9606 * sh-nbsd-nat.c (fetch_registers): New variable lwp and pass
9607 it to the ptrace call.
9608 * sh-nbsd-nat.c (store_registers): Likewise.
9609
98097623
KR
96102020-03-17 Kamil Rytarowski <n54@gmx.com>
9611
9612 * sh-nbsd-nat.c (sh_nbsd_nat_target): Inherit from
9613 nbsd_nat_target instead of inf_ptrace_target.
9614 * sh-nbsd-nat.c: Include "nbsd-nat.h", as we are now using
9615 nbsd_nat_target.
9616
9e38d619
KR
96172020-03-17 Kamil Rytarowski <n54@gmx.com>
9618
9619 * amd64-bsd-nat.c: Include amd64-bsd-nat.h".
9620
a2ecbe9f
KR
96212020-03-17 Kamil Rytarowski <n54@gmx.com>
9622
9623 * nbsd-nat.c: Include <sys/types.h>, <sys/ptrace.h> and
9624 <sys/sysctl.h>.
9625 * nbsd-nat.c (nbsd_nat_target::pid_to_exec_file): Rewrite.
9626
58990295
TV
96272020-03-17 Tom de Vries <tdevries@suse.de>
9628
9629 PR gdb/23710
9630 * dwarf2/read.h (struct dwarf2_per_cu_data): Add unit_type and lang
9631 fields.
9632 * dwarf2/read.c (process_psymtab_comp_unit): Initialize unit_type and lang
9633 fields.
9634 (process_imported_unit_die): Skip import of c++ CUs.
9635
771dd3a8
TT
96362020-03-16 Tom Tromey <tom@tromey.com>
9637
9638 * p-valprint.c (pascal_object_print_value): Initialize
9639 base_value.
9640
817a7585
AK
96412020-03-16 Anton Kolesov <anton.kolesov@synopsys.com>
9642 Shahab Vahedi <shahab@synopsys.com>
9643
9644 * Makefile.in: Add arch/arc.o
9645 * configure.tgt: Likewise.
9646 * arc-tdep.c (arc_tdesc_init): Use arc_read_description.
9647 (_initialize_arc_tdep): Don't initialize old target descriptions.
aac66a4c 9648 (arc_read_description): New function to cache target descriptions.
817a7585
AK
9649 * arc-tdep.h (arc_read_description): Add proto type.
9650 * arch/arc.c: New file.
9651 * arch/arc.h: Likewise.
9652 * features/Makefile: Replace old target descriptions with new.
9653 * features/arc-arcompact.c: Remove.
9654 * features/arc-arcompact.xml: Likewise.
9655 * features/arc-v2.c: Likewise
9656 * features/arc-v2.xml: Likewise
9657 * features/arc/aux-arcompact.xml: New file.
9658 * features/arc/aux-v2.xml: Likewise.
9659 * features/arc/core-arcompact.xml: Likewise.
9660 * features/arc/core-v2.xml: Likewise.
9661 * features/arc/aux-arcompact.c: Generate.
9662 * features/arc/aux-v2.c: Likewise.
9663 * features/arc/core-arcompact.c: Likewise.
9664 * features/arc/core-v2.c: Likewise.
9665 * target-descriptions (maint_print_c_tdesc_cmd): Support ARC features.
9666
67430cd0
TT
96672020-03-16 Tom Tromey <tromey@adacore.com>
9668
9669 PR gdb/25663:
9670 * dwarf2/read.c (dwarf2_name): Strip leading namespaces after
9671 putting value into bcache.
9672
30efb6c7
SM
96732020-03-16 Simon Marchi <simon.marchi@efficios.com>
9674
9675 PR gdb/21500
9676 * amd64-windows-tdep.c (amd64_windows_init_abi): Rename
9677 to...
9678 (amd64_windows_init_abi_common): ... this. Don't set size of
9679 long type.
9680 (amd64_windows_init_abi): New function.
9681 (amd64_cygwin_init_abi): New function.
9682 (_initialize_amd64_windows_tdep): Use amd64_cygwin_init_abi for
9683 the Cygwin OS ABI.
9684 * i386-windows-tdep.c (_initialize_i386_windows_tdep): Clarify
9685 comment.
9686
8db52437
SM
96872020-03-16 Simon Marchi <simon.marchi@efficios.com>
9688
9689 * windows-tdep.h (is_linked_with_cygwin_dll): New declaration.
9690 * windows-tdep.c (CYGWIN_DLL_NAME): New.
9691 (pe_import_directory_entry): New struct type.
9692 (is_linked_with_cygwin_dll): New function.
9693 * amd64-windows-tdep.c (amd64_windows_osabi_sniffer): Select
9694 GDB_OSABI_CYGWIN if the BFD is linked with the Cygwin DLL.
9695 * i386-windows-tdep.c (i386_windows_osabi_sniffer): Likewise.
9696
5982a56a
SM
96972020-03-16 Simon Marchi <simon.marchi@efficios.com>
9698
9699 * i386-windows-tdep.c: Mass-rename "cygwin" to "windows", except
9700 i386_cygwin_core_osabi_sniffer.
9701
7a1998df
SM
97022020-03-16 Simon Marchi <simon.marchi@efficios.com>
9703
9704 * i386-cygwin-tdep.c: Rename to...
9705 * i386-windows-tdep.c: ... this.
9706 * Makefile.in (ALL_TARGET_OBS): Rename i386-cygwin-tdep.c to
9707 i386-windows-tdep.c.
9708 * configure.tgt: Likewise.
9709
053205cc
SM
97102020-03-16 Simon Marchi <simon.marchi@efficios.com>
9711
9712 * osabi.h (enum gdb_osabi): Add GDB_OSABI_WINDOWS.
9713 * osabi.c (gdb_osabi_names): Add "Windows".
9714 * i386-cygwin-tdep.c (i386_cygwin_osabi_sniffer): Return
9715 GDB_OSABI_WINDOWS when the binary's target is "pei-i386".
9716 (i386_cygwin_core_osabi_sniffer): New function, extracted from
9717 i386_cygwin_osabi_sniffer.
9718 (_initialize_i386_cygwin_tdep): Register OS ABI
9719 GDB_OSABI_WINDOWS for i386.
9720 * amd64-windows-tdep.c (amd64_windows_osabi_sniffer): Return
9721 GDB_OSABI_WINDOWS when the binary's target is "pei-x86-64".
9722 (_initialize_amd64_windows_tdep): Register OS ABI GDB_OSABI_WINDOWS
9723 for x86-64.
9724 * configure.tgt: Use GDB_OSABI_WINDOWS as the default OS ABI
9725 when the target matches '*-*-mingw*'.
9726
fe4b2ee6
SM
97272020-03-16 Simon Marchi <simon.marchi@efficios.com>
9728
9729 * defs.h (enum gdb_osabi): Move to...
9730 * osabi.h (enum gdb_osabi): ... here.
9731 * gdbarch.sh: Include osabi.h in gdbarch.h.
9732 * gdbarch.h: Re-generate.
9733
cb9b645d
SM
97342020-03-16 Simon Marchi <simon.marchi@efficios.com>
9735
9736 * amd64-windows-tdep.c (amd64_windows_osabi_sniffer): New
9737 function.
9738 (_initialize_amd64_windows_tdep): Register osabi sniffer.
9739
3293bbaf
TT
97402020-03-14 Tom Tromey <tom@tromey.com>
9741
9742 * c-typeprint.c (cp_type_print_method_args): Print "__restrict__"
9743 for C++.
9744 (c_type_print_modifier): Likewise. Add "language" parameter.
9745 (c_type_print_varspec_prefix, c_type_print_base_struct_union)
9746 (c_type_print_base_1): Update.
9747 * type-stack.h (enum type_pieces) <tp_atomic, tp_restrict>: New
9748 constants.
9749 * type-stack.c (type_stack::insert): Handle tp_atomic and
9750 tp_restrict.
9751 (type_stack::follow_type_instance_flags): Likewise.
9752 (type_stack::follow_types): Likewise. Merge type-following code.
9753 * c-exp.y (RESTRICT, ATOMIC): New tokens.
9754 (space_identifier, cv_with_space_id)
9755 (const_or_volatile_or_space_identifier_noopt)
9756 (const_or_volatile_or_space_identifier): Remove.
9757 (single_qualifier, qualifier_seq_noopt, qualifier_seq): New
9758 rules.
9759 (ptr_operator, typebase): Update.
9760 (enum token_flag) <FLAG_C>: New constant.
9761 (ident_tokens): Add "restrict", "__restrict__", "__restrict", and
9762 "_Atomic".
9763 (lex_one_token): Handle FLAG_C.
9764
154151a6
KR
97652020-03-14 Kamil Rytarowski <n54@gmx.com>
9766
9767 * m68k-bsd-nat.c (fetch_registers): New variable lwp and pass
9768 it to the ptrace call.
9769 * m68k-bsd-nat.c (store_registers): Likewise.
9770
bc107784
KR
97712020-03-14 Kamil Rytarowski <n54@gmx.com>
9772
9773 * m68k-bsd-nat.c (m68kbsd_supply_gregset): Change type of regs to
9774 gdb_byte *.
9775 * m68k-bsd-nat.c (m68kbsd_supply_fpregset): Likewise.
9776 * m68k-bsd-nat.c (m68kbsd_collect_gregset): Likewise.
9777 * m68k-bsd-nat.c (m68kbsd_supply_pcb): Cast &tmp to gdb_byte *.
9778
01a80117
KR
97792020-03-14 Kamil Rytarowski <n54@gmx.com>
9780
9781 * m68k-bsd-nat.c (m68k_bsd_nat_target): Inherit from
9782 nbsd_nat_target instead of inf_ptrace_target.
9783 * m68k-bsd-nat.c: Include "nbsd-nat.h", as we are now using
9784 nbsd_nat_target.
9785
f90280ca
KR
97862020-03-14 Kamil Rytarowski <n54@gmx.com>
9787
9788 * m68k-bsd-nat.c: Define _KERNTYPES to get the declaration of
9789 register_t.
9790
6def66f1
KR
97912020-03-14 Kamil Rytarowski <n54@gmx.com>
9792
9793 * alpha-bsd-nat.c (fetch_registers): New variable lwp and pass
9794 it to the ptrace call.
9795 * alpha-bsd-nat.c (store_registers): Likewise.
9796
66eaca97
KR
97972020-03-14 Kamil Rytarowski <n54@gmx.com>
9798
9799 * alpha-bsd-nat.c: Remove <sys/procfs.h> and "gregset.h" from
9800 includes.
9801 * alpha-bsd-nat.c (gregset_t, fpregset_t): Remove.
9802 * alpha-bsd-nat.c (supply_gregset, fill_gregset, supply_fpregset,
9803 fill_fpregset): Likewise.
9804
4fed520b
KR
98052020-03-14 Kamil Rytarowski <n54@gmx.com>
9806
9807 * alpha-bsd-nat.c (alpha_netbsd_nat_target): Inherit from
9808 nbsd_nat_target instead of inf_ptrace_target.
9809 * alpha-bsd-nat.c: Include "nbsd-nat.h", as we are now using
9810 nbsd_nat_target.
9811
2190cf06
KR
98122020-03-14 Kamil Rytarowski <n54@gmx.com>
9813
9814 * alpha-bsd-nat.c: Define _KERNTYPES to get the declaration of
9815 register_t.
9816
75c56d3d
KR
98172020-03-14 Kamil Rytarowski <n54@gmx.com>
9818
9819 * arm-nbsd-nat.c (fetch_register): New variable lwp and pass
9820 it to the ptrace call.
9821 * arm-nbsd-nat.c (fetch_fp_register): Likewise.
9822 * arm-nbsd-nat.c (fetch_fp_regs): Likewise.
9823 * arm-nbsd-nat.c (store_register): Likewise.
9824 * arm-nbsd-nat.c (store_regs): Likewise.
9825 * arm-nbsd-nat.c (store_fp_register): Likewise.
9826 * arm-nbsd-nat.c (store_fp_regs): Likewise.
9827
6018d381
KR
98282020-03-14 Kamil Rytarowski <n54@gmx.com>
9829
9830 * arm-nbsd-nat.c (arm_netbsd_nat_target): Inherit from
9831 nbsd_nat_target instead of inf_ptrace_target.
9832 * arm-nbsd-nat.c: Include "nbsd-nat.h", as we are now using
9833 nbsd_nat_target.
9834
013f99f0
KR
98352020-03-14 Kamil Rytarowski <n54@gmx.com>
9836
9837 * x86-bsd-nat.c (x86bsd_dr_get): New variable lwp and pass
9838 it to the ptrace call.
9839 * x86-bsd-nat.c (x86bsd_dr_set): Likewise.
9840
12753073
KR
98412020-03-14 Kamil Rytarowski <n54@gmx.com>
9842
6227b330
KR
9843 * vax-bsd-nat.c (vaxbsd_supply_gregset): New variable lwp and pass
9844 it to the ptrace call.
9845 * vax-bsd-nat.c (vaxbsd_collect_gregset): Likewise.
9846
98472020-03-14 Kamil Rytarowski <n54@gmx.com>
9848
9849 * vax-bsd-nat.c (vaxbsd_supply_gregset): Cast gregs to const
9850 gdb_byte *.
12753073
KR
9851 * vax-bsd-nat.c (vaxbsd_collect_gregset): Cast gregs to void *.
9852
d5be5fa4
KR
98532020-03-14 Kamil Rytarowski <n54@gmx.com>
9854
9855 * vax-bsd-nat.c (vax_bsd_nat_target): Inherit from nbsd_nat_target
9856 instead of inf_ptrace_target.
9857 * vax-bsd-nat.c: Include "nbsd-nat.h", as we are now using
9858 nbsd_nat_target.
9859
8110f842
KR
98602020-03-14 Kamil Rytarowski <n54@gmx.com>
9861
9862 * mips-nbsd-nat.c: Define _KERNTYPES to get the declaration of
9863 register_t.
9864
52feded7
KR
98652020-03-14 Kamil Rytarowski <n54@gmx.com>
9866
9867 * ppc-nbsd-nat.c: Define _KERNTYPES to get the declaration of
9868 register_t.
9869
25567eee
KR
98702020-03-14 Kamil Rytarowski <n54@gmx.com>
9871
9872 * vax-bsd-nat.c: Define _KERNTYPES to get the declaration of
9873 register_t.
9874
426a9c18
TT
98752020-03-13 Tom Tromey <tom@tromey.com>
9876
9877 * value.h (val_print): Don't declare.
9878 * valprint.h (val_print_array_elements)
9879 (val_print_scalar_formatted, generic_val_print): Don't declare.
9880 * valprint.c (generic_val_print_array): Take a struct value.
9881 (generic_val_print_ptr, generic_val_print_memberptr)
9882 (generic_val_print_bool, generic_val_print_int)
9883 (generic_val_print_char, generic_val_print_complex)
9884 (generic_val_print): Remove.
9885 (generic_value_print): Update.
9886 (do_val_print): Remove unused parameters. Don't call
9887 la_val_print.
9888 (val_print): Remove.
9889 (common_val_print): Update. Don't call value_check_printable.
9890 (val_print_scalar_formatted, val_print_array_elements): Remove.
9891 * rust-lang.c (rust_val_print): Remove.
9892 (rust_language_defn): Update.
9893 * p-valprint.c (pascal_val_print): Remove.
9894 (pascal_value_print_inner): Update.
9895 (pascal_object_print_val_fields, pascal_object_print_val):
9896 Remove.
9897 (pascal_object_print_static_field): Update.
9898 * p-lang.h (pascal_val_print): Don't declare.
9899 * p-lang.c (pascal_language_defn): Update.
9900 * opencl-lang.c (opencl_language_defn): Update.
9901 * objc-lang.c (objc_language_defn): Update.
9902 * m2-valprint.c (m2_print_unbounded_array, m2_val_print): Remove.
9903 * m2-lang.h (m2_val_print): Don't declare.
9904 * m2-lang.c (m2_language_defn): Update.
9905 * language.h (struct language_defn) <la_val_print>: Remove.
9906 * language.c (unk_lang_value_print_inner): Rename. Change
9907 argument types.
9908 (unknown_language_defn, auto_language_defn): Update.
9909 * go-valprint.c (go_val_print): Remove.
9910 * go-lang.h (go_val_print): Don't declare.
9911 * go-lang.c (go_language_defn): Update.
9912 * f-valprint.c (f_val_print): Remove.
9913 * f-lang.h (f_value_print): Don't declare.
9914 * f-lang.c (f_language_defn): Update.
9915 * d-valprint.c (d_val_print): Remove.
9916 * d-lang.h (d_value_print): Don't declare.
9917 * d-lang.c (d_language_defn): Update.
9918 * cp-valprint.c (cp_print_value_fields)
9919 (cp_print_value_fields_rtti, cp_print_value): Remove.
9920 (cp_print_static_field): Update.
9921 * c-valprint.c (c_val_print_array, c_val_print_ptr)
9922 (c_val_print_struct, c_val_print_union, c_val_print_int)
9923 (c_val_print_memberptr, c_val_print): Remove.
9924 * c-lang.h (c_val_print_array, cp_print_value_fields)
9925 (cp_print_value_fields_rtti): Don't declare.
9926 * c-lang.c (c_language_defn, cplus_language_defn)
9927 (asm_language_defn, minimal_language_defn): Update.
9928 * ada-valprint.c (ada_val_print_ptr, ada_val_print_num): Remove.
9929 (ada_val_print_enum): Take a struct value.
9930 (ada_val_print_flt, ada_val_print_array, ada_val_print_1)
9931 (ada_val_print): Remove.
9932 (ada_value_print_1): Update.
9933 (printable_val_type): Remove.
9934 * ada-lang.h (ada_val_print): Don't declare.
9935 * ada-lang.c (ada_language_defn): Update.
9936
42331a1e
TT
99372020-03-13 Tom Tromey <tom@tromey.com>
9938
9939 * valprint.c (do_val_print): Update.
9940 * python/python-internal.h (gdbpy_apply_val_pretty_printer): Take
9941 a struct value.
9942 (value_to_value_object_no_release): Declare.
9943 * python/py-value.c (value_to_value_object_no_release): New
9944 function.
9945 * python/py-prettyprint.c (gdbpy_apply_val_pretty_printer): Take a
9946 struct value.
9947 * guile/scm-value.c (vlscm_scm_from_value_no_release): New
9948 function.
9949 * guile/scm-pretty-print.c (gdbscm_apply_val_pretty_printer): Take
9950 a struct value.
9951 * guile/guile-internal.h (vlscm_scm_from_value_no_release):
9952 Declare.
9953 (gdbscm_apply_val_pretty_printer): Take a struct value.
9954 * extension.h (apply_ext_lang_val_pretty_printer): Take a struct
9955 value.
9956 * extension.c (apply_ext_lang_val_pretty_printer): Take a struct
9957 value.
9958 * extension-priv.h (struct extension_language_ops)
9959 <apply_val_pretty_printer>: Take a struct value.
9960 * cp-valprint.c (cp_print_value): Create a struct value.
9961 (cp_print_value): Update.
9962
3a916a97
TT
99632020-03-13 Tom Tromey <tom@tromey.com>
9964
9965 * ada-valprint.c (print_field_values): Call common_val_print.
9966
b59eac37
TT
99672020-03-13 Tom Tromey <tom@tromey.com>
9968
9969 * ada-valprint.c (val_print_packed_array_elements): Remove
9970 bitoffset and val parameters. Call common_val_print.
9971 (ada_val_print_string): Remove offset, address, and original_value
9972 parameters.
9973 (ada_val_print_array): Update.
9974 (ada_value_print_array): New function.
9975 (ada_value_print_1): Call it.
9976
03371129
TT
99772020-03-13 Tom Tromey <tom@tromey.com>
9978
9979 * ada-valprint.c (ada_value_print): Use common_val_print.
9980
2e088f8b
TT
99812020-03-13 Tom Tromey <tom@tromey.com>
9982
9983 * ada-valprint.c (ada_val_print_ref): Use common_val_print.
9984
39ef85a8
TT
99852020-03-13 Tom Tromey <tom@tromey.com>
9986
9987 * ada-valprint.c (ada_value_print_num): New function.
9988 (ada_value_print_1): Use it.
9989
b9fa6e07
TT
99902020-03-13 Tom Tromey <tom@tromey.com>
9991
9992 * ada-valprint.c (ada_value_print_1) <TYPE_CODE_FLT>: Rewrite.
9993
416595d6
TT
99942020-03-13 Tom Tromey <tom@tromey.com>
9995
9996 * ada-valprint.c (ada_value_print_ptr): New function.
9997 (ada_value_print_1): Use it.
9998
5b5e15ec
TT
99992020-03-13 Tom Tromey <tom@tromey.com>
10000
10001 * ada-valprint.c (ada_val_print_gnat_array): Take a struct value;
10002 call common_val_print.
10003 (ada_val_print_1): Update.
10004 (ada_value_print_1): New function.
10005 (ada_value_print_inner): Rewrite.
10006
fbf54e75
TT
100072020-03-13 Tom Tromey <tom@tromey.com>
10008
10009 * cp-valprint.c (cp_print_value_fields): Update.
10010 (cp_print_value): New function.
10011
64b653ca
TT
100122020-03-13 Tom Tromey <tom@tromey.com>
10013
10014 * m2-valprint.c (m2_value_print_inner): Use
10015 cp_print_value_fields.
10016 * cp-valprint.c (cp_print_value_fields): New function.
10017 * c-valprint.c (c_value_print_struct): New function.
10018 (c_value_print_inner): Use c_value_print_struct.
10019 * c-lang.h (cp_print_value_fields): Declare.
10020
6999f067
TT
100212020-03-13 Tom Tromey <tom@tromey.com>
10022
10023 * c-valprint.c (c_value_print_array): New function.
10024 (c_value_print_inner): Use it.
10025
ce80b8bd
TT
100262020-03-13 Tom Tromey <tom@tromey.com>
10027
10028 * c-valprint.c (c_value_print_memberptr): New function.
10029 (c_value_print_inner): Use it.
10030
2faac269
TT
100312020-03-13 Tom Tromey <tom@tromey.com>
10032
10033 * c-valprint.c (c_value_print_int): New function.
10034 (c_value_print_inner): Use it.
10035
da3e2c29
TT
100362020-03-13 Tom Tromey <tom@tromey.com>
10037
10038 * c-valprint.c (c_value_print_ptr): New function.
10039 (c_value_print_inner): Use it.
10040
50836231
TT
100412020-03-13 Tom Tromey <tom@tromey.com>
10042
10043 * c-valprint.c (c_value_print_inner): Rewrite.
10044
4f412b6e
TT
100452020-03-13 Tom Tromey <tom@tromey.com>
10046
10047 * valprint.c (generic_value_print_complex): New function.
10048 (generic_value_print): Use it.
10049
f5354008
TT
100502020-03-13 Tom Tromey <tom@tromey.com>
10051
10052 * valprint.c (generic_val_print_float): Don't call
10053 val_print_scalar_formatted.
10054 (generic_val_print, generic_value_print): Update.
10055
3eec3b05
TT
100562020-03-13 Tom Tromey <tom@tromey.com>
10057
10058 * valprint.c (generic_value_print_char): New function
10059 (generic_value_print): Use it.
10060
fdddfccb
TT
100612020-03-13 Tom Tromey <tom@tromey.com>
10062
10063 * valprint.c (generic_value_print_int): New function.
10064 (generic_value_print): Use it.
10065
6dde7521
TT
100662020-03-13 Tom Tromey <tom@tromey.com>
10067
10068 * valprint.c (generic_value_print_bool): New function.
10069 (generic_value_print): Use it.
10070
4112d2e6
TT
100712020-03-13 Tom Tromey <tom@tromey.com>
10072
10073 * valprint.c (generic_val_print_func): Simplify.
10074 (generic_val_print, generic_value_print): Update.
10075
65786af6
TT
100762020-03-13 Tom Tromey <tom@tromey.com>
10077
10078 * valprint.c (generic_val_print_flags): Remove.
10079 (generic_val_print, generic_value_print): Update.
10080 (val_print_type_code_flags): Add original_value parameter.
10081
40f3ce18
TT
100822020-03-13 Tom Tromey <tom@tromey.com>
10083
10084 * valprint.c (generic_val_print): Update.
10085 (generic_value_print): Update.
10086 * valprint.c (generic_val_print_enum): Don't call
10087 val_print_scalar_formatted.
10088
2a5b130b
TT
100892020-03-13 Tom Tromey <tom@tromey.com>
10090
10091 * valprint.c (generic_value_print): Call generic_value_print_ptr.
10092 * valprint.c (generic_value_print_ptr): New function.
10093
abc66ce9
TT
100942020-03-13 Tom Tromey <tom@tromey.com>
10095
10096 * valprint.c (generic_value_print): Rewrite.
10097
07a32858
TT
100982020-03-13 Tom Tromey <tom@tromey.com>
10099
10100 * p-valprint.c (pascal_object_print_value_fields)
10101 (pascal_object_print_value): New functions.
10102
64d64d3a
TT
101032020-03-13 Tom Tromey <tom@tromey.com>
10104
10105 * p-valprint.c (pascal_value_print_inner): Rewrite.
10106
6a95a1f5
TT
101072020-03-13 Tom Tromey <tom@tromey.com>
10108
10109 * f-valprint.c (f_value_print_innner): Rewrite.
10110
59fcdac6
TT
101112020-03-13 Tom Tromey <tom@tromey.com>
10112
10113 * m2-valprint.c (m2_print_unbounded_array): New overload.
10114 (m2_print_unbounded_array): Update.
10115 (m2_print_array_contents): Take a struct value.
10116 (m2_value_print_inner): Rewrite.
10117
d133c3e1
TT
101182020-03-13 Tom Tromey <tom@tromey.com>
10119
10120 * d-valprint.c (dynamic_array_type): Call d_value_print_inner.
10121 (d_value_print_inner): New function.
10122 * d-lang.h (d_value_print_inner): Declare.
10123 * d-lang.c (d_language_defn): Use d_value_print_inner.
10124
23b0f06b
TT
101252020-03-13 Tom Tromey <tom@tromey.com>
10126
10127 * go-valprint.c (go_value_print_inner): New function.
10128 * go-lang.h (go_value_print_inner): Declare.
10129 * go-lang.c (go_language_defn): Use go_value_print_inner.
10130
5f56f7cb
TT
101312020-03-13 Tom Tromey <tom@tromey.com>
10132
10133 * rust-lang.c (val_print_struct, rust_print_enum): Use the value
10134 API.
10135 (rust_val_print): Rewrite.
10136 (rust_value_print_inner): New function, from rust_val_print.
10137 (rust_language_defn): Use rust_value_print_inner.
10138
26792ee0
TT
101392020-03-13 Tom Tromey <tom@tromey.com>
10140
10141 * ada-valprint.c (ada_value_print_inner): New function.
10142 * ada-lang.h (ada_value_print_inner): Declare.
10143 * ada-lang.c (ada_language_defn): Use ada_value_print_inner.
10144
24051bbe
TT
101452020-03-13 Tom Tromey <tom@tromey.com>
10146
10147 * f-valprint.c (f_value_print_innner): New function.
10148 * f-lang.h (f_value_print_innner): Declare.
10149 * f-lang.c (f_language_defn): Use f_value_print_innner.
10150
c0941be6
TT
101512020-03-13 Tom Tromey <tom@tromey.com>
10152
10153 * p-valprint.c (pascal_value_print_inner): New function.
10154 * p-lang.h (pascal_value_print_inner): Declare.
10155 * p-lang.c (pascal_language_defn): Use pascal_value_print_inner.
10156
62c4663d
TT
101572020-03-13 Tom Tromey <tom@tromey.com>
10158
10159 * m2-valprint.c (m2_value_print_inner): New function.
10160 * m2-lang.h (m2_value_print_inner): Declare.
10161 * m2-lang.c (m2_language_defn): Use m2_value_print_inner.
10162
62182190
TT
101632020-03-13 Tom Tromey <tom@tromey.com>
10164
10165 * opencl-lang.c (opencl_language_defn): Use c_value_print_inner.
10166 * objc-lang.c (objc_language_defn): Use c_value_print_inner.
10167 * c-valprint.c (c_value_print_inner): New function.
10168 * c-lang.h (c_value_print_inner): Declare.
10169 * c-lang.c (c_language_defn, cplus_language_defn)
10170 (asm_language_defn, minimal_language_defn): Use
10171 c_value_print_inner.
10172
1e592a8a
TT
101732020-03-13 Tom Tromey <tom@tromey.com>
10174
10175 * p-valprint.c (pascal_object_print_value_fields): Now static.
10176 * p-lang.h (pascal_object_print_value_fields): Don't declare.
10177
7fe471e9
TT
101782020-03-13 Tom Tromey <tom@tromey.com>
10179
10180 * c-valprint.c (c_val_print_array): Simplify.
10181
d121c6ce
TT
101822020-03-13 Tom Tromey <tom@tromey.com>
10183
10184 * valprint.c (value_print_array_elements): New function.
10185 * valprint.h (value_print_array_elements): Declare.
10186
4dba70ee
TT
101872020-03-13 Tom Tromey <tom@tromey.com>
10188
10189 * printcmd.c (print_formatted): Use value_print_scalar_formatted.
10190 * mips-tdep.c (mips_print_register): Use
10191 value_print_scalar_formatted.
10192
4f9ae810
TT
101932020-03-13 Tom Tromey <tom@tromey.com>
10194
10195 * valprint.h (value_print_scalar_formatted): Declare.
10196 * valprint.c (value_print_scalar_formatted): New function.
10197
156bfec9
TT
101982020-03-13 Tom Tromey <tom@tromey.com>
10199
10200 * valprint.h (generic_value_print): Declare.
10201 * valprint.c (generic_value_print): New function.
10202
2b4e573d
TT
102032020-03-13 Tom Tromey <tom@tromey.com>
10204
10205 * valprint.c (do_val_print): Call la_value_print_inner, if
10206 available.
10207 * rust-lang.c (rust_language_defn): Update.
10208 * p-lang.c (pascal_language_defn): Update.
10209 * opencl-lang.c (opencl_language_defn): Update.
10210 * objc-lang.c (objc_language_defn): Update.
10211 * m2-lang.c (m2_language_defn): Update.
10212 * language.h (struct language_defn) <la_value_print_inner>: New
10213 member.
10214 * language.c (unknown_language_defn, auto_language_defn): Update.
10215 * go-lang.c (go_language_defn): Update.
10216 * f-lang.c (f_language_defn): Update.
10217 * d-lang.c (d_language_defn): Update.
10218 * c-lang.c (c_language_defn, cplus_language_defn)
10219 (asm_language_defn, minimal_language_defn): Update.
10220 * ada-lang.c (ada_language_defn): Update.
10221
a1f6a07c
TT
102222020-03-13 Tom Tromey <tom@tromey.com>
10223
10224 * c-valprint.c (c_value_print): Use common_val_print.
10225
410cf315
TT
102262020-03-13 Tom Tromey <tom@tromey.com>
10227
10228 * cp-valprint.c (cp_print_static_field): Use common_val_print.
10229
72a45c93
TT
102302020-03-13 Tom Tromey <tom@tromey.com>
10231
10232 * f-valprint.c (f77_print_array_1, f_val_print): Use
10233 common_val_print.
10234
040f66bd
TT
102352020-03-13 Tom Tromey <tom@tromey.com>
10236
10237 * riscv-tdep.c (riscv_print_one_register_info): Use
10238 common_val_print.
10239
a6e05a6c
TT
102402020-03-13 Tom Tromey <tom@tromey.com>
10241
10242 * mi/mi-main.c (output_register): Use common_val_print.
10243
3444c526
TT
102442020-03-13 Tom Tromey <tom@tromey.com>
10245
10246 * infcmd.c (default_print_one_register_info): Use
10247 common_val_print.
10248
c2a44efe
TT
102492020-03-13 Tom Tromey <tom@tromey.com>
10250
10251 * valprint.h (common_val_print_checked): Declare.
10252 * valprint.c (common_val_print_checked): New function.
10253 * stack.c (print_frame_arg): Use common_val_print_checked.
10254
b0c26e99
TT
102552020-03-13 Tom Tromey <tom@tromey.com>
10256
10257 * valprint.c (do_val_print): New function, from val_print.
10258 (val_print): Use do_val_print.
10259 (common_val_print): Use do_val_print.
10260
ce3acbe9
TT
102612020-03-13 Tom Tromey <tom@tromey.com>
10262
10263 * valprint.c (value_print): Use scoped_value_mark.
10264
96c7f873
TV
102652020-03-13 Tom de Vries <tdevries@suse.de>
10266
10267 PR symtab/25646
10268 * psymtab.c (partial_symtab::partial_symtab): Don't set
10269 globals_offset and statics_offset. Push element onto
10270 current_global_psymbols and current_static_psymbols stacks.
10271 (concat): New function.
10272 (end_psymtab_common): Set globals_offset and statics_offset. Pop
10273 element from current_global_psymbols and current_static_psymbols
10274 stacks. Concat popped elements to global_psymbols and
10275 static_symbols.
10276 (add_psymbol_to_list): Use current_global_psymbols and
10277 current_static_psymbols stacks.
10278 * psymtab.h (class psymtab_storage): Add current_global_psymbols and
10279 current_static_psymbols fields.
10280
6ba0a321
CB
102812020-03-12 Christian Biesinger <cbiesinger@google.com>
10282
10283 * corelow.c (sniff_core_bfd): Remove.
10284 (class core_target) <m_core_vec>: Remove.
10285 (core_target::core_target): Update.
10286 (core_file_fns): Remove.
10287 (deprecated_add_core_fns): Remove.
10288 (default_core_sniffer): Remove.
10289 (sniff_core_bfd): Remove.
10290 (default_check_format): Remove.
10291 (gdb_check_format): Remove.
10292 (core_target_open): Update.
10293 (core_target::get_core_register_section): Update.
10294 (get_core_registers_cb): Update.
10295 (core_target::fetch_registers): Update.
10296 * gdbcore.h (struct core_fns): Remove.
10297 (deprecated_add_core_fns): Remove.
10298 (default_core_sniffer): Remove.
10299 (default_check_format): Remove.
10300
227031b2
TT
103012020-03-12 Tom Tromey <tom@tromey.com>
10302
10303 * arm-tdep.c (struct arm_mapping_symbol) <value>: Now a
10304 CORE_ADDR.
10305 (struct arm_exidx_entry) <addr>: Now a CORE_ADDR.
10306
53807e9f
TT
103072020-03-12 Tom Tromey <tom@tromey.com>
10308
10309 * remote.c (remote_target::download_tracepoint)
10310 (remote_target::enable_tracepoint)
10311 (remote_target::disable_tracepoint): Use phex, not sprintf_vma.
10312 * breakpoint.c (print_recreate_masked_watchpoint): Use phex, not
10313 sprintf_vma.
10314
64f25102
TT
103152020-03-12 Tom Tromey <tom@tromey.com>
10316
10317 * symfile-mem.c: Update CORE_ADDR size assert.
10318
272cd5a3
SM
103192020-03-12 Simon Marchi <simon.marchi@efficios.com>
10320
10321 * selftest.m4: Move to gdbsupport/.
10322 * acinclude.m4: Update path to selftest.m4.
10323
74cd3f9d
SM
103242020-03-12 Simon Marchi <simon.marchi@efficios.com>
10325
10326 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Rename to...
10327 (SELFTESTS_SRCS): ... this. Add disasm-selftests.c,
10328 gdbarch-selfselftests.c and selftest-arch.c.
10329 (SUBDIR_UNITTESTS_OBS): Rename to...
10330 (SELFTESTS_OBS): ... this.
10331 (COMMON_SFILES): Remove disasm-selftests.c and
10332 gdbarch-selftests.c.
10333 * configure.ac: Don't add selftest-arch.{c,o} to
10334 CONFIG_{SRCS,OBS}.
10335 * disasm-selftests.c, gdbarch-selftests.c: Remove GDB_SELF_TEST
10336 preprocessor conditions.
10337
db6878ac
SM
103382020-03-12 Simon Marchi <simon.marchi@efficios.com>
10339
10340 * configure.ac: Don't source bfd/development.sh.
10341 * selftest.m4: Modify comment.
10342 * configure: Re-generate.
10343
4d696a5c
SM
103442020-03-12 Simon Marchi <simon.marchi@efficios.com>
10345
10346 * selftest.m4 (GDB_AC_SELFTEST): Error out if $development is
10347 not "true" or "false".
10348 * configure: Re-generate.
10349
8dd8e1c7
CB
103502020-03-12 Christian Biesinger <cbiesinger@google.com>
10351
10352 * Makefile.in (HFILES_NO_SRCDIR): Add new arm-nbsd-tdep.h file.
10353 * arm-nbsd-nat.c (arm_supply_gregset): Moved to arm-nbsd-tdep and
10354 renamed to arm_nbsd_supply_gregset.
10355 (fetch_register): Update to call arm_nbsd_supply_gregset.
10356 (fetch_regs): Remove in favor of fetch_register with a -1 regno.
10357 (arm_netbsd_nat_target::fetch_registers): Update.
10358 (fetch_elfcore_registers): Removed.
10359 (_initialize_arm_netbsd_nat): Removed call to deprecated_add_core_fns.
10360 * arm-nbsd-tdep.c (struct arm_nbsd_reg): New struct.
10361 (arm_nbsd_supply_gregset): Moved from arm-nbsd-nat.c and updated to
10362 not require NetBSD system headers.
10363 (arm_nbsd_regset): New struct.
10364 (arm_nbsd_iterate_over_regset_sections): New function.
10365 (arm_netbsd_init_abi_common): Updated to call
10366 set_gdbarch_iterate_over_regset_sections.
10367 * arm-nbsd-tdep.h: New file.
10368
dd69bf7a
KB
103692020-03-11 Kevin Buettner <kevinb@redhat.com>
10370
10371 * symtab.c (find_pc_sect_line): Add check which prevents infinite
10372 recursion.
10373
a0761e34
SM
103742020-03-11 Simon Marchi <simon.marchi@efficios.com>
10375
10376 * configure: Re-generate.
10377
e7a82140
TT
103782020-03-11 Tom Tromey <tromey@adacore.com>
10379
10380 * ada-typeprint.c (print_choices): Fix comment.
10381
dcc050c8
AB
103822020-03-11 Andrew Burgess <andrew.burgess@embecosm.com>
10383
10384 * buildsyms.c (buildsym_compunit::record_line): Avoid accessing
10385 previous item in the list, when the list has no items.
10386
1c33af77
TV
103872020-03-11 Tom de Vries <tdevries@suse.de>
10388
10389 * dwarf2/loc.c (dwarf2_evaluate_property): Handle NULL frame in
10390 PROP_LOCLIST handling code.
10391
8c95582d
AB
103922020-03-10 Andrew Burgess <andrew.burgess@embecosm.com>
10393
10394 * buildsym-legacy.c (record_line): Pass extra parameter to
10395 record_line.
10396 * buildsym.c (buildsym_compunit::record_line): Take an extra
10397 parameter, reduce duplication in the line table, and record the
10398 is_stmt flag in the line table.
10399 * buildsym.h (buildsym_compunit::record_line): Add extra
10400 parameter.
10401 * disasm.c (do_mixed_source_and_assembly_deprecated): Ignore
10402 non-statement lines.
10403 * dwarf2/read.c (dwarf_record_line_1): Add extra parameter, pass
10404 this to the symtab builder.
10405 (dwarf_finish_line): Pass extra parameter to dwarf_record_line_1.
10406 (lnp_state_machine::record_line): Pass a suitable is_stmt flag
10407 through to dwarf_record_line_1.
10408 * infrun.c (process_event_stop_test): When stepping, don't stop at
10409 a non-statement instruction, and only refresh the step info when
10410 we land in the middle of a line's range. Also add an extra
10411 comment.
10412 * jit.c (jit_symtab_line_mapping_add_impl): Initialise is_stmt
10413 field.
10414 * record-btrace.c (btrace_find_line_range): Only record lines
10415 marked as is-statement.
10416 * stack.c (frame_show_address): Show the frame address if we are
10417 in a non-statement sal.
10418 * symmisc.c (dump_symtab_1): Print the is_stmt flag.
10419 (maintenance_print_one_line_table): Print a header for the is_stmt
10420 column, and include is_stmt information in the output.
10421 * symtab.c (find_pc_sect_line): Find lines marked as statements in
10422 preference to non-statements.
10423 (find_pcs_for_symtab_line): Prefer is-statement entries.
10424 (find_line_common): Likewise.
10425 * symtab.h (struct linetable_entry): Add is_stmt field.
10426 (struct symtab_and_line): Likewise.
10427 * xcoffread.c (arrange_linetable): Initialise is_stmt field when
10428 arranging the line table.
10429
e4003a34
TV
104302020-03-07 Tom de Vries <tdevries@suse.de>
10431
10432 * dwarf2/read.c (read_typedef): Treat anonymous typedef as forwarder
10433 DIE.
10434
e8932576
TT
104352020-03-07 Tom Tromey <tom@tromey.com>
10436
10437 * valops.c (value_literal_complex): Remove obsolete comment.
10438 * gdbtypes.h (enum type_code) <TYPE_CODE_FLT>: Remove obsolete
10439 comment.
10440
29734269
SM
104412020-03-06 Simon Marchi <simon.marchi@polymtl.ca>
10442
10443 * infrun.h: Forward-declare thread_info.
10444 (set_step_info): Add thread_info parameter, add doc.
10445 * infrun.c (set_step_info): Add thread_info parameter, move doc
10446 to header.
10447 * infrun.c (process_event_stop_test): Pass thread to
10448 set_step_info call.
10449 * infcmd.c (set_step_frame): Add thread_info pointer, pass it to
10450 set_step_info.
10451 (prepare_one_step): Add thread_info parameter, pass it to
10452 set_step_frame and prepare_one_step (recursive) call.
10453 (step_1): Pass thread to prepare_one_step call.
10454 (step_command_fsm::should_stop): Pass thread to
10455 prepare_one_step.
10456 (until_next_fsm): Pass thread to set_step_frame call.
10457 (finish_command): Pass thread to set_step_info call.
10458
b7d64b29
HD
104592020-03-06 Hannes Domani <ssbssa@yahoo.de>
10460
10461 * windows-tdep.c (windows_solib_create_inferior_hook):
10462 Check if inferior is running.
10463
09f2921c
TV
104642020-03-06 Tom de Vries <tdevries@suse.de>
10465
10466 * NEWS: Fix "the the".
10467 * ctfread.c: Same.
10468
fd760e79
TV
104692020-03-06 Tom de Vries <tdevries@suse.de>
10470
10471 * psymtab.c (psymtab_to_symtab): Don't print "done.".
10472
20ea4a60
AB
104732020-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
10474
10475 * .dir-locals.el: Add a comment referencing the other copies of
10476 this file.
10477
0afbabf0
JB
104782020-03-05 John Baldwin <jhb@FreeBSD.org>
10479
10480 * fbsd-tdep.c (fbsd_make_corefile_notes): Use std::string for
10481 psargs.
10482
842806cb
TBA
104832020-03-05 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
10484
10485 * .gitattributes: New file.
10486
be1e3d3e
TT
104872020-03-04 Tom Tromey <tom@tromey.com>
10488
10489 * symmisc.c (print_symbol_bcache_statistics)
10490 (print_objfile_statistics): Update.
10491 * symfile.c (allocate_symtab): Use intern.
10492 * psymtab.c (partial_symtab::partial_symtab): Use intern.
10493 * objfiles.h (struct objfile_per_bfd_storage) <filename_cache,
10494 macro_cache>: Remove.
10495 <string_cache>: New member.
10496 (struct objfile) <intern>: New methods.
10497 * elfread.c (elf_symtab_read): Use intern.
10498 * dwarf2/read.c (fixup_go_packaging): Intern package name.
10499 (dwarf2_compute_name, dwarf2_physname)
10500 (create_dwo_unit_in_dwp_v1, create_dwo_unit_in_dwp_v2): Intern
10501 names.
10502 (guess_partial_die_structure_name): Update.
10503 (partial_die_info::fixup): Intern name.
10504 (dwarf2_canonicalize_name): Change parameter to objfile. Intern
10505 name.
10506 (dwarf2_name): Intern name. Update.
10507 * buildsym.c (buildsym_compunit::get_macro_table): Use
10508 string_cache.
10509
4e7625fd
TT
105102020-03-04 Tom Tromey <tom@tromey.com>
10511
10512 * jit.c (bfd_open_from_target_memory): Make "target" const.
10513 * corefile.c (gnutarget): Now const.
10514 * gdbcore.h (gnutarget): Now const.
10515
46f9f931
HD
105162020-03-04 Hannes Domani <ssbssa@yahoo.de>
10517
10518 * NEWS: Mention support for WOW64 processes.
10519 * amd64-windows-nat.c (amd64_mappings): Rename and remove static.
10520 (amd64_windows_segment_register_p): Remove static.
10521 (_initialize_amd64_windows_nat): Update.
10522 * configure.nat <windows> (NATDEPFILES): Add i386-windows-nat.o.
10523 * i386-windows-nat.c (context_offset): Update.
10524 (i386_mappings): Rename and remove static.
10525 (i386_windows_segment_register_p): Remove static.
10526 (_initialize_i386_windows_nat): Update.
10527 * windows-nat.c (STATUS_WX86_BREAKPOINT): New macro.
10528 (STATUS_WX86_SINGLE_STEP): New macro.
10529 (EnumProcessModulesEx): New macro.
10530 (Wow64SuspendThread): New macro.
10531 (Wow64GetThreadContext): New macro.
10532 (Wow64SetThreadContext): New macro.
10533 (Wow64GetThreadSelectorEntry): New macro.
10534 (windows_set_context_register_offsets): Add static.
10535 (windows_set_segment_register_p): Likewise.
10536 (windows_add_thread): Adapt for WOW64 processes.
10537 (windows_fetch_one_register): Likewise.
10538 (windows_nat_target::fetch_registers): Likewise.
10539 (windows_store_one_register): Likewise.
10540 (display_selector): Likewise.
10541 (display_selectors): Likewise.
10542 (handle_exception): Likewise.
10543 (windows_continue): Likewise.
10544 (windows_nat_target::resume): Likewise.
10545 (windows_add_all_dlls): Likewise.
10546 (do_initial_windows_stuff): Likewise.
10547 (windows_nat_target::attach): Likewise.
10548 (windows_get_exec_module_filename): Likewise.
10549 (windows_nat_target::create_inferior): Likewise.
10550 (windows_xfer_siginfo): Likewise.
10551 (_initialize_loadable): Initialize Wow64SuspendThread,
10552 Wow64GetThreadContext, Wow64SetThreadContext,
10553 Wow64GetThreadSelectorEntry and EnumProcessModulesEx.
10554 * windows-nat.h (windows_set_context_register_offsets):
10555 Remove declaration.
10556 (windows_set_segment_register_p): Likewise.
10557 (i386_windows_segment_register_p): Add declaration.
10558 (amd64_windows_segment_register_p): Likewise.
10559
440cf44e
LM
105602020-03-04 Luis Machado <luis.machado@linaro.org>
10561
10562 Revert aa66aac47b4dd38f9524ddb5546c08cc09930d37 due to regressions
10563 in "info registers" for AArch64/ARM.
10564
10565 The change caused "info registers" to not print GPR's.
10566
10567 gdb/ChangeLog:
10568
10569 2020-02-01 Shahab Vahedi <shahab@synopsys.com>
10570
10571 * target-descriptions.c (tdesc_register_in_reggroup_p): Return 0
10572 when reg->group is empty and reggroup is not.
10573
1009d92f
TT
105742020-03-03 Tom Tromey <tromey@adacore.com>
10575
10576 * dwarf2/frame.c (struct dwarf2_frame_cache)
10577 <checked_tailcall_bottom, entry_cfa_sp_offset,
10578 entry_cfa_sp_offset_p>: Remove members.
10579 (dwarf2_frame_cache): Call dwarf2_tailcall_sniffer_first.
10580 (dwarf2_frame_prev_register): Don't call
10581 dwarf2_tailcall_sniffer_first.
10582 (dwarf2_append_unwinders): Don't append tailcall unwinder.
10583 * frame-unwind.c (add_unwinder): New fuction.
10584 (frame_unwind_init): Use it. Add tailcall unwinder.
10585
5e5d66b6
AB
105862020-03-03 Andrew Burgess <andrew.burgess@embecosm.com>
10587 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
10588
10589 * f-valprint.c (f_val_print): Handle TYPE_CODE_BOOL, any non-zero
10590 value should be printed as true.
10591
584cf46d
HD
105922020-03-03 Hannes Domani <ssbssa@yahoo.de>
10593
10594 * windows-tdep.c (windows_solib_create_inferior_hook): New function.
10595 (windows_init_abi): Set and use windows_so_ops.
10596
7b973adc
SDJ
105972020-03-03 Sergio Durigan Junior <sergiodj@redhat.com>
10598
10599 * printcmd.c (print_c_string): Check also for TYPE_CODE_PTR
10600 when verifying if dealing with a convenience variable.
10601
bb7b70ab
LM
106022020-03-03 Luis Machado <luis.machado@linaro.org>
10603
10604 * auxv.c (default_print_auxv_entry): Add new AUXV entries.
10605
9822cb57
SM
106062020-03-02 Simon Marchi <simon.marchi@polymtl.ca>
10607
10608 * infrun.c (gdbarch_supports_displaced_stepping): New.
10609 (use_displaced_stepping): Break up conditions in smaller pieces.
10610 Use gdbarch_supports_displaced_stepping.
10611 (displaced_step_prepare_throw): Use
10612 gdbarch_supports_displaced_stepping.
10613
63e163f2
AB
106142020-03-02 Andrew Burgess <andrew.burgess@embecosm.com>
10615
10616 * NEWS: Mention new behaviour of the history filename.
10617 * top.c (write_history_p): Add comment.
10618 (show_write_history_p): Add header comment, give a different
10619 message when history writing is on, but the history filename is
10620 empty.
10621 (history_filename): Add comment.
10622 (history_filename_empty): New function.
10623 (show_history_filename): Add header comment, give a different
10624 message when the filename is empty.
10625 (init_history): Compare history_filename against nullptr, and only
10626 read history if the filename is not empty.
10627 (set_history_filename): Add header comment, and only make
10628 non-empty filenames absolute.
10629 (init_main): Make the filename argument to 'set history filename'
10630 optional.
10631
81b86b97
CB
106322020-03-02 Christian Biesinger <cbiesinger@google.com>
10633
10634 * arm-nbsd-nat.c (arm_supply_fparegset): Rename to...
10635 (arm_supply_vfpregset): ...this, and update to use VFP registers.
10636 (fetch_fp_register): Update.
10637 (fetch_fp_regs): Update.
10638 (store_fp_register): Update.
10639 (store_fp_regs): Update.
10640 (arm_netbsd_nat_target::read_description): New function.
10641 (fetch_elfcore_registers): Update.
10642
24ed6739
AB
106432020-03-02 Andrew Burgess <andrew.burgess@embecosm.com>
10644
10645 * remote.c (remote_target::remote_parse_stop_reply): Don't use the
10646 general_thread if the stop reply is missing a thread-id.
10647 (remote_target::process_stop_reply): Use the first non-exited
10648 thread if the target didn't pass a thread-id.
10649 * infrun.c (do_target_wait): Move call to
10650 switch_to_inferior_no_thread to ....
10651 (do_target_wait_1): ... here.
10652
a84bb2a0
JT
106532020-02-29 Jon Turney <jon.turney@dronecode.org.uk>
10654
10655 * debuginfod-support.c: Include defs.h first.
10656
658dadf0
TV
106572020-02-28 Tom de Vries <tdevries@suse.de>
10658
10659 * symfile.c (set_initial_language): Use default language for lookup.
10660
4ebe4877
SM
106612020-02-28 Simon Marchi <simon.marchi@efficios.com>
10662
10663 * dwarf2/read.c (cutu_reader::init_tu_and_read_dwo_dies): Remove
10664 reader variable, pass `this` to read_cutu_die_from_dwo.
10665
e5da1139
AM
106662020-02-27 Aaron Merey <amerey@redhat.com>
10667
10668 * source.c (open_source_file): Check for nullptr when computing
10669 srcpath.
10670
317f7127
TT
106712020-02-27 Tom Tromey <tromey@adacore.com>
10672
10673 * dwarf2/read.c (struct field_info) <nfields>: Now a method, not a
10674 member.
10675 (dwarf2_add_field): Don't update nfields.
10676 (dwarf2_attach_fields_to_type, process_structure_scope): Update.
10677
3104d9ee
AB
106782020-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
10679
10680 * gdbtypes.c (create_array_type_with_stride): Use std::abs not
10681 abs.
10682
b83470bf
TT
106832020-02-26 Tom Tromey <tom@tromey.com>
10684
10685 * dwarf2/read.c (struct dwarf2_include_psymtab): New.
10686 (dwarf2_create_include_psymtab): Use dwarf2_include_psymtab.
10687 (dwarf2_psymtab::expand_psymtab, dwarf2_psymtab::readin_p)
10688 (dwarf2_psymtab::get_compunit_symtab): Remove null checks for
10689 per_cu_data.
10690
edfe0a0c
TT
106912020-02-26 Tom Tromey <tom@tromey.com>
10692
10693 * dwarf2/index-write.c (psym_index_map): Change type.
10694 (add_address_entry_worker, write_one_signatured_type)
10695 (recursively_count_psymbols, recursively_write_psymbols)
10696 (class debug_names, psyms_seen_size, write_gdbindex)
10697 (write_debug_names): Use partial_symtab, not dwarf2_psymtab.
10698
0d79cdc4
AM
106992020-02-26 Aaron Merey <amerey@redhat.com>
10700
10701 * Makefile.in: Handle optional debuginfod support.
10702 * NEWS: Update.
10703 * README: Add --with-debuginfod summary.
10704 * config.in: Regenerate.
10705 * configure: Regenerate.
10706 * configure.ac: Handle optional debuginfod support.
10707 * debuginfod-support.c: debuginfod helper functions.
10708 * debuginfod-support.h: Ditto.
10709 * doc/gdb.texinfo: Add --with-debuginfod to configure options
10710 summary.
10711 * dwarf2/read.c (dwarf2_get_dwz_file): Query debuginfod servers
10712 when a dwz file cannot be found.
10713 * elfread.c (elf_symfile_read): Query debuginfod servers when a
10714 debuginfo file cannot be found.
10715 * source.c (open_source_file): Query debuginfod servers when a
10716 source file cannot be found.
10717 * top.c (print_gdb_configuration): Include
10718 --{with,without}-debuginfod in the output.
10719
b65ce565
JG
107202020-02-26 Jérémie Galarneau <jeremie.galarneau@efficios.com>
10721
10722 * thread.c (thr_try_catch_cmd): Print thread name.
10723
d4c9a4f8
SM
107242020-02-26 Simon Marchi <simon.marchi@efficios.com>
10725
10726 * dwarf2/loc.h (dwarf2_fetch_die_loc_sect_off,
10727 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
10728 dwarf2_fetch_die_type_sect_off): Move to...
10729 * dwarf2/read.h (dwarf2_fetch_die_loc_sect_off,
10730 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
10731 dwarf2_fetch_die_type_sect_off): ... here.
10732 * dwarf2/read.c (dwarf2_fetch_die_loc_sect_off,
10733 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
10734 dwarf2_fetch_die_type_sect_off): Move doc to header file.
10735
0dce4280
TV
107362020-02-26 Tom de Vries <tdevries@suse.de>
10737
10738 PR gdb/25603
10739 * symfile.c (set_initial_language): Exit-early if
10740 language_mode == language_mode_manual.
10741
450a1bfc
SM
107422020-02-25 Simon Marchi <simon.marchi@polymtl.ca>
10743
10744 * dwarf2/loc.h (dwarf2_read_addr_index): Move...
10745 * dwarf2/read.h (dwarf2_read_addr_index): ... here.
10746 * dwarf2/read.c (dwarf2_read_addr_index): Move doc to header.
10747
9e80cfa1
AB
107482020-02-25 Andrew Burgess <andrew.burgess@embecosm.com>
10749
10750 * gdbtypes.c (create_array_type_with_stride): Handle negative
10751 array strides.
10752 * valarith.c (value_subscripted_rvalue): Likewise.
10753
09624f1f
LM
107542020-02-25 Luis Machado <luis.machado@linaro.org>
10755
10756 * aarch64-tdep.c (aarch64_vnv_type): Fix comment typo.
10757
8cb5117c
SM
107582020-02-25 Simon Marchi <simon.marchi@polymtl.ca>
10759
10760 * loc.h (dwarf2_get_die_type): Move to...
10761 * read.h (dwarf2_get_die_type): ... here.
10762 * read.c (dwarf2_get_die_type): Move doc to header.
10763
c325c44e
JB
107642020-02-25 Joel Brobecker <brobecker@adacore.com>
10765
10766 * copypright.py (EXCLUDE_LIST): Add 'gnulib/config.in' and
10767 'gnulib/Makefile.in' to the list.
10768
4ac93832
TT
107692020-02-24 Tom Tromey <tom@tromey.com>
10770
10771 * dwarf2/read.h (struct type_unit_unshareable) <num_symtabs>:
10772 Remove.
10773 * dwarf2/read.c (dwarf2_cu::setup_type_unit_groups): Use
10774 XOBNEWVEC.
10775
197400e8
TT
107762020-02-24 Tom Tromey <tom@tromey.com>
10777
10778 * dwarf2/read.h (struct dwarf2_per_cu_data) <type_unit_group_p>:
10779 New method.
10780 * dwarf2/read.c (IS_TYPE_UNIT_GROUP): Remove.
10781 (dw2_do_instantiate_symtab, dw2_get_file_names)
10782 (build_type_psymtab_dependencies, load_full_type_unit): Update.
10783
76935768
TT
107842020-02-24 Tom Tromey <tom@tromey.com>
10785
10786 * dwarf2read.c (dwarf2_build_psymtabs_hard): Use
10787 make_scoped_restore.
10788 (dwarf2_psymtab::read_symtab): Don't clear
10789 reading_partial_symbols.
10790
a88ef40d
TV
107912020-02-24 Tom de Vries <tdevries@suse.de>
10792
10793 PR gdb/25592
10794 * stack.c (iterate_over_block_locals): Handle LOC_CONST.
10795
c9af6521
TV
107962020-02-24 Tom de Vries <tdevries@suse.de>
10797
10798 * tui/tui-layout.c (_initialize_tui_layout): Fix help messages for
10799 commands layout next/prev/regs.
10800
5707a07a
TT
108012020-02-22 Tom Tromey <tom@tromey.com>
10802
10803 * dwarf2/loc.h (dwarf2_compile_expr_to_ax): Don't declare.
10804 * dwarf2/loc.c (dwarf2_compile_expr_to_ax): Now static.
10805
3b0fb49e
TT
108062020-02-22 Tom Tromey <tom@tromey.com>
10807
10808 * tui/tui-data.h (TUI_DISASM_WIN): Cast to tui_disasm_window.
10809
283be8bf
TT
108102020-02-22 Tom Tromey <tom@tromey.com>
10811
10812 * tui/tui-win.c (_initialize_tui_win): Add usage text.
10813 * tui/tui-stack.c (_initialize_tui_stack): Add usage text.
10814 * tui/tui-regs.c (_initialize_tui_regs): Add usage text.
10815 * tui/tui.c (_initialize_tui): Add usage text.
10816
ca793b96
TT
108172020-02-22 Tom Tromey <tom@tromey.com>
10818
10819 * tui/tui-win.c (tui_set_focus_command)
10820 (tui_set_win_height_command): Use error_no_arg.
10821 (_initialize_tui_win): Update help text.
10822 (FOCUS_USAGE, WIN_HEIGHT_USAGE): Don't define.
10823
432b5c40
TT
108242020-02-22 Tom Tromey <tom@tromey.com>
10825
10826 * tui/tui-layout.c (extract_display_start_addr): Rewrite.
10827 * tui/tui-disasm.h (struct tui_disasm_window)
10828 <display_start_addr>: Declare.
10829 * tui/tui-source.h (struct tui_source_window)
10830 <display_start_addr>: Declare.
10831 * tui/tui-winsource.h (struct tui_source_window_base)
10832 <show_source_line, display_start_addr>: New methods.
10833 <m_horizontal_offset, m_start_line_or_addr, m_gdbarch, m_content>:
10834 Rename and move to protected section.
10835 * tui/tui-winsource.c (tui_source_window_base::update_source_window)
10836 (tui_source_window_base::do_erase_source_content): Update.
10837 (tui_source_window_base::show_source_line): Now a method.
10838 (tui_source_window_base::show_source_content)
10839 (tui_source_window_base::tui_source_window_base)
10840 (tui_source_window_base::rerender)
10841 (tui_source_window_base::refill)
10842 (tui_source_window_base::do_scroll_horizontal)
10843 (tui_source_window_base::set_is_exec_point_at)
10844 (tui_source_window_base::update_breakpoint_info)
10845 (tui_source_window_base::update_exec_info): Update.
10846 * tui/tui-source.c (tui_source_window::set_contents)
10847 (tui_source_window::showing_source_p)
10848 (tui_source_window::do_scroll_vertical)
10849 (tui_source_window::location_matches_p)
10850 (tui_source_window::line_is_displayed): Update.
10851 (tui_source_window::display_start_addr): New method.
10852 * tui/tui-disasm.c (tui_disasm_window::set_contents)
10853 (tui_disasm_window::do_scroll_vertical)
10854 (tui_disasm_window::location_matches_p): Update.
10855 (tui_disasm_window::display_start_addr): New method.
10856
01b1af32
TT
108572020-02-22 Tom Tromey <tom@tromey.com>
10858
10859 * NEWS: Add entry for gdb.register_window_type.
10860 * tui/tui-layout.h (window_factory): New typedef.
10861 (tui_register_window): Declare.
10862 * tui/tui-layout.c (saved_tui_windows): New global.
10863 (tui_apply_current_layout): Use it.
10864 (tui_register_window): New function.
10865 * python/python.c (do_start_initialization): Call
10866 gdbpy_initialize_tui.
10867 (python_GdbMethods): Add "register_window_type" function.
10868 * python/python-internal.h (gdbpy_register_tui_window)
10869 (gdbpy_initialize_tui): Declare.
10870 * python/py-tui.c: New file.
10871 * Makefile.in (SUBDIR_PYTHON_SRCS): Add py-tui.c.
10872
fc96d20b
TT
108732020-02-22 Tom Tromey <tom@tromey.com>
10874
10875 * tui/tui-io.c (do_tui_putc): Don't omit annotations.
10876
935c78c0
TT
108772020-02-22 Tom Tromey <tom@tromey.com>
10878
10879 * tui/tui-win.c (tui_set_win_focus_to): Move to tui-data.c.
10880 * tui/tui-data.h (tui_set_win_with_focus): Don't declare.
10881 * tui/tui-data.c (tui_set_win_with_focus): Remove.
10882 (tui_set_win_focus_to): Move from tui-win.c.
10883
0240c8f1
TT
108842020-02-22 Tom Tromey <tom@tromey.com>
10885
10886 * tui/tui-layout.c (make_standard_window, get_locator_window): New
10887 functions.
10888 (known_window_types): New global.
10889 (tui_get_window_by_name): Reimplement.
10890 (initialize_known_windows): New function.
10891 (validate_window_name): Rewrite.
10892 (_initialize_tui_layout): Call initialize_known_windows.
10893
fdb01f0c
TT
108942020-02-22 Tom Tromey <tom@tromey.com>
10895
10896 * tui/tui.h (enum tui_win_type) <LOCATOR_WIN, DATA_ITEM_WIN>:
10897 Remove constants.
10898 * tui/tui-winsource.h (struct tui_source_window_base)
10899 <tui_source_window_base>: Remove parameter.
10900 * tui/tui-winsource.c
10901 (tui_source_window_base::tui_source_window_base): Remove
10902 parameter.
10903 (tui_source_window_base::refill): Update.
10904 * tui/tui-stack.h (struct tui_locator_window)
10905 <tui_locator_window>: Update.
10906 * tui/tui-source.h (struct tui_source_window) <tui_source_window>:
10907 Default the constructor.
10908 * tui/tui-regs.h (struct tui_data_item_window)
10909 <tui_data_item_window>: Default the constructor.
10910 (struct tui_data_window) <tui_data_window>: Likewise.
10911 * tui/tui-disasm.h (struct tui_disasm_window) <tui_disasm_window>:
10912 Default the constructor.
10913 * tui/tui-data.h (struct tui_gen_win_info) <tui_gen_win_info>:
10914 Default the constructor.
10915 <type>: Remove.
10916 (struct tui_win_info) <tui_win_info>: Default the constructor.
10917 * tui/tui-data.c (tui_win_info::tui_win_info): Remove.
10918 * tui/tui-command.h (struct tui_cmd_window) <tui_cmd_window>:
10919 Default the constructor.
10920
865a5aec
TT
109212020-02-22 Tom Tromey <tom@tromey.com>
10922
10923 * tui/tui-wingeneral.h (tui_make_all_invisible): Don't declare.
10924 * tui/tui-wingeneral.c (tui_make_all_invisible): Remove.
10925 * tui/tui-win.c (tui_resize_all): Don't call
10926 tui_delete_invisible_windows.
10927 * tui/tui-layout.c (tui_apply_current_layout): Delete windows when
10928 done.
10929 (tui_set_layout): Update.
10930 (tui_add_win_to_layout): Don't call tui_delete_invisible_windows.
10931 * tui/tui-data.h (tui_delete_invisible_windows): Don't declare.
10932 * tui/tui-data.c (tui_delete_invisible_windows): Remove.
10933
e098d18c
TT
109342020-02-22 Tom Tromey <tom@tromey.com>
10935
10936 * tui/tui-win.c (tui_partial_win_by_name): Handle ambiguity
10937 correctly.
10938
eb9c8874
TT
109392020-02-22 Tom Tromey <tom@tromey.com>
10940
10941 * tui/tui-data.c (tui_next_win, tui_prev_win): Reimplement.
10942
7eed1a8e
TT
109432020-02-22 Tom Tromey <tom@tromey.com>
10944
10945 * tui/tui-winsource.h (struct tui_source_window_iterator)
10946 <inner_iterator>: New etytypedef.
10947 <tui_source_window_iterator>: Take "end" parameter.
10948 <tui_source_window_iterator>: Take iterator.
10949 <operator*, advance>: Update.
10950 <m_iter>: Change type.
10951 <m_end>: New field.
10952 (struct tui_source_windows) <begin, end>: Update.
10953 * tui/tui-layout.c (tui_windows): New global.
10954 (tui_apply_current_layout): Clear tui_windows.
10955 (tui_layout_window::apply): Update tui_windows.
10956 * tui/tui-data.h (tui_windows): Declare.
10957 (all_tui_windows): Now inline function.
10958 (class tui_window_iterator, struct all_tui_windows): Remove.
10959
7c043ba6
TT
109602020-02-22 Tom Tromey <tom@tromey.com>
10961
10962 PR tui/17850:
10963 * tui/tui-win.c (tui_gen_win_info::max_width): New method.
10964 * tui/tui-layout.h (class tui_layout_base) <get_sizes>: Add
10965 "height" argument.
10966 (class tui_layout_window) <get_sizes>: Likewise.
10967 (class tui_layout_split) <tui_layout_split>: Add "vertical"
10968 argument.
10969 <get_sizes>: Add "height" argument.
10970 <m_vertical>: New field.
10971 * tui/tui-layout.c (tui_layout_split::clone): Update.
10972 (tui_layout_split::get_sizes): Add "height" argument.
10973 (tui_layout_split::adjust_size, tui_layout_split::apply): Update.
10974 (tui_new_layout_command): Parse "-horizontal".
10975 (_initialize_tui_layout): Update help string.
10976 (tui_layout_split::specification): Add "-horizontal" when needed.
10977 * tui/tui-layout.c (tui_layout_window::get_sizes): Add "height"
10978 argument.
10979 * tui/tui-data.h (struct tui_gen_win_info) <max_width, min_width>:
10980 New methods.
10981
6bc56648
TT
109822020-02-22 Tom Tromey <tom@tromey.com>
10983
10984 * tui/tui-layout.h (enum tui_adjust_result): New.
10985 (class tui_layout_base) <adjust_size>: Return tui_adjust_result.
10986 (class tui_layout_window) <adjust_size>: Return
10987 tui_adjust_result. Rewrite.
10988 (class tui_layout_split) <adjust_size>: Return tui_adjust_result.
10989 * tui/tui-layout.c (tui_layout_split::adjust_size): Update.
10990
c22fef7e
TT
109912020-02-22 Tom Tromey <tom@tromey.com>
10992
10993 * tui/tui-layout.h (class tui_layout_split) <add_split>: Change
10994 parameter and return types.
10995 (class tui_layout_base) <specification>: Add "depth".
10996 (class tui_layout_window) <specification>: Add "depth".
10997 (class tui_layout_split) <specification>: Add "depth".
10998 * tui/tui-layout.c (tui_layout_split::add_split): Change parameter
10999 and return types.
11000 (tui_new_layout_command): Parse sub-layouts.
11001 (_initialize_tui_layout): Update help string.
11002 (tui_layout_window::specification): Add "depth".
11003 (add_layout_command): Update.
11004
ee325b61
TT
110052020-02-22 Tom Tromey <tom@tromey.com>
11006
11007 * NEWS: Add "tui new-layout" item.
11008 * tui/tui-layout.c (add_layout_command): Return cmd_list_element.
11009 Add new-layout command to help text.
11010 (validate_window_name): New function.
11011 (tui_new_layout_command): New function.
11012 (_initialize_tui_layout): Register "new-layout".
11013 (tui_layout_window::specification): New method.
11014 (tui_layout_window::specification): New method.
11015 * tui/tui-layout.h (class tui_layout_base) <specification>: New
11016 method.
11017 (class tui_layout_window) <specification>: New method.
11018 (class tui_layout_split) <specification>: New method.
11019
416eb92d
TT
110202020-02-22 Tom Tromey <tom@tromey.com>
11021
11022 * tui/tui.c (tui_enable): Call tui_set_initial_layout.
11023 * tui/tui-win.c (window_name_completer): Update comment.
11024 * tui/tui-layout.h (class tui_layout_base) <replace_window>:
11025 Declare method.
11026 (class tui_layout_window) <replace_window>: Likewise.
11027 (class tui_layout_split) <replace_window>: Likewise.
11028 (tui_set_layout): Don't declare.
11029 (tui_set_initial_layout): Declare function.
11030 * tui/tui-layout.c (layouts, applied_skeleton, src_regs_layout)
11031 (asm_regs_layout): New globals.
11032 (tui_current_layout, show_layout): Remove.
11033 (tui_set_layout, tui_add_win_to_layout): Rewrite.
11034 (find_layout, tui_apply_layout): New function.
11035 (layout_completer): Remove.
11036 (tui_next_layout): Reimplement.
11037 (tui_next_layout_command): New function.
11038 (tui_set_initial_layout, tui_prev_layout_command): New functions.
11039 (tui_regs_layout): Reimplement.
11040 (tui_regs_layout_command): New function.
11041 (extract_display_start_addr): Rewrite.
11042 (next_layout, prev_layout): Remove.
11043 (tui_layout_window::replace_window): New method.
11044 (tui_layout_split::replace_window): New method.
11045 (destroy_layout): New function.
11046 (layout_list): New global.
11047 (add_layout_command): New function.
11048 (initialize_layouts): Update.
11049 (tui_layout_command): New function.
11050 (_initialize_tui_layout): Install "layout" commands.
11051 * tui/tui-data.h (enum tui_layout_type): Remove.
11052 (tui_current_layout): Don't declare.
11053
0dbc2fc7
TT
110542020-02-22 Tom Tromey <tom@tromey.com>
11055
11056 * tui/tui-regs.c (tui_reg_layout): Remove.
11057 (tui_reg_command): Use tui_regs_layout.
11058 * tui/tui-layout.h (tui_reg_command): Declare.
11059 * tui/tui-layout.c (tui_reg_command): New function.
11060
5afe342e
TT
110612020-02-22 Tom Tromey <tom@tromey.com>
11062
11063 * tui/tui.c (tui_rl_delete_other_windows): Call
11064 tui_remove_some_windows.
11065 * tui/tui-layout.h (class tui_layout_base) <remove_windows>:
11066 Declare method.
11067 (class tui_layout_window) <remove_windows>: New method.
11068 (class tui_layout_split) <remove_windows>: Declare.
11069 (tui_remove_some_windows): Declare.
11070 * tui/tui-layout.c (tui_remove_some_windows): New function.
11071 (tui_layout_split::remove_windows): New method.
11072
427326a8
TT
110732020-02-22 Tom Tromey <tom@tromey.com>
11074
11075 * tui/tui.c (tui_rl_change_windows): Call tui_next_layout.
11076 * tui/tui-layout.h (tui_next_layout): Declare.
11077 * tui/tui-layout.c (tui_next_layout): New function.
11078
3fe12b6d
TT
110792020-02-22 Tom Tromey <tom@tromey.com>
11080
11081 * tui/tui-regs.c (tui_data_window::display_registers_from): Use
11082 correct coordinates.
11083
59b8b5d2
TT
110842020-02-22 Tom Tromey <tom@tromey.com>
11085
11086 * tui/tui-layout.h (tui_add_win_to_layout): Add comment.
11087 * tui/tui-layout.c (tui_add_win_to_layout): Add assert. Remove
11088 DATA_WIN case.
11089
2a3d458b
TT
110902020-02-22 Tom Tromey <tom@tromey.com>
11091
11092 * tui/tui-disasm.c (tui_get_low_disassembly_address): Use
11093 TUI_DISASM_WIN, not tui_win_list.
11094
3f0cbb04
TT
110952020-02-22 Tom Tromey <tom@tromey.com>
11096
11097 * valprint.c (generic_val_print_enum_1)
11098 (val_print_type_code_flags): Style member names.
11099 * rust-lang.c (val_print_struct, rust_print_enum)
11100 (rust_print_struct_def, rust_internal_print_type): Style member
11101 names.
11102 * p-valprint.c (pascal_object_print_value_fields): Style member
11103 names. Only call fprintf_symbol_filtered for static members.
11104 * m2-typeprint.c (m2_record_fields, m2_enum): Style member names.
11105 * f-valprint.c (f_val_print): Style member names.
11106 * f-typeprint.c (f_type_print_base): Style member names.
11107 * cp-valprint.c (cp_print_value_fields): Style member names. Only
11108 call fprintf_symbol_filtered for static members.
11109 (cp_print_class_member): Style member names.
11110 * c-typeprint.c (c_print_type_1, c_type_print_base_1): Style
11111 member names.
11112 * ada-valprint.c (ada_print_scalar): Style enum names.
11113 (ada_val_print_enum): Likewise.
11114 * ada-typeprint.c (print_enum_type): Style enum names.
11115
d4d947ae
TT
111162020-02-21 Tom Tromey <tom@tromey.com>
11117
11118 * psympriv.h (struct partial_symtab): Update comment.
11119
e94e944b
TT
111202020-02-21 Tom Tromey <tromey@adacore.com>
11121
11122 * mips-tdep.h (mips_pc_is_mips16, mips_pc_is_micromips): Parameter
11123 type is CORE_ADDR.
11124
1eb73179
TV
111252020-02-21 Tom de Vries <tdevries@suse.de>
11126
11127 PR gdb/25534
11128 * psymtab.c (partial_symtab::read_dependencies): Don't read dependency
11129 if dependencies[i]->user != NULL.
11130
4f180d53
AT
111312020-02-21 Ali Tamur <tamur@google.com>
11132
11133 * dwarf2/read.c (dwarf2_name): Add null check.
11134
22b6cd70
TT
111352020-02-20 Tom Tromey <tom@tromey.com>
11136
11137 * dwarf2/read.c (dwarf2_find_containing_comp_unit): Use ">", not
11138 ">=", in binary search.
11139 (dwarf2_find_containing_comp_unit): New overload.
11140 (run_test): New self-test.
11141 (_initialize_dwarf2_read): Register new test.
11142
bd0cf5a6
NC
111432020-02-20 Nelson Chu <nelson.chu@sifive.com>
11144
11145 * riscv-tdep.c: Updated since the DECLARE_CSR is changed.
11146 * riscv-tdep.h: Likewise.
11147 * features/riscv/rebuild-csr-xml.sh: Generate the 64bit-csr.xml without
11148 rv32-only CSR.
11149 * features/riscv/64bit-csr.xml: Regenerated.
11150
3f702acd
SDJ
111512020-02-20 Sergio Durigan Junior <sergiodj@redhat.com>
11152 Tom Tromey <tom@tromey.com>
11153
11154 * utils.c (fputs_maybe_filtered): Call 'stream->puts' instead
11155 of 'fputc_unfiltered'.
11156 (putchar_unfiltered): Call 'fputc_unfiltered'.
11157 (fputc_unfiltered): Call 'fputs_unfiltered'.
11158
d13c7322
AB
111592020-02-20 Andrew Burgess <andrew.burgess@embecosm.com>
11160
11161 * config.in: Regenerate.
11162 * configure: Regenerate.
11163 * configure.ac: Add --with-python-libdir option.
11164 * main.c: Use WITH_PYTHON_LIBDIR.
11165
869d8950
TT
111662020-02-19 Tom Tromey <tom@tromey.com>
11167
11168 * symtab.c (general_symbol_info::compute_and_set_names): Use
11169 obstack_strndup. Simplify call to symbol_set_demangled_name.
11170
298e9637
SM
111712020-02-19 Simon Marchi <simon.marchi@efficios.com>
11172
11173 * dwarf2/read.c (allocate_signatured_type_table,
11174 allocate_dwo_unit_table, allocate_type_unit_groups_table,
11175 allocate_dwo_file_hash_table, allocate_dwp_loaded_cutus_table):
11176 Remove objfile parameter, update all callers.
11177
08410482
DE
111782020-02-19 Doug Evans <dje@google.com>
11179
11180 PR rust/25535
11181 * rust-lang.c (rust_print_enum): Apply embedded_offset to
11182 rust_enum_variant calculation.
11183
dfdeeca1
TT
111842020-02-19 Tom Tromey <tromey@adacore.com>
11185
11186 * mips-tdep.h (mips_pc_is_mips): Parameter type is CORE_ADDR.
11187
2ef5453b
TT
111882020-02-19 Tom Tromey <tromey@adacore.com>
11189
11190 * ada-lang.c (cache_symbol): Use obstack_strdup.
11191
9f1528a1
AB
111922020-02-19 Andrew Burgess <andrew.burgess@embecosm.com>
11193
11194 * configure: Regenerate.
11195
d3c22fa8
TT
111962020-02-19 Tom Tromey <tromey@adacore.com>
11197
11198 * python/python.c (do_start_initialization): Use XNEWVEC. Remove
11199 NULL check.
11200
bf84f706
MR
112012020-02-19 Maciej W. Rozycki <macro@wdc.com>
11202
11203 * NEWS: Mention RISC-V GNU/Linux GDBserver support.
11204
d1c9b20f
AB
112052020-02-19 Andrew Burgess <andrew.burgess@embecosm.com>
11206
11207 * arch/riscv.c (struct riscv_gdbarch_features_hasher): Only define
11208 if GDBSERVER is not defined.
11209 (riscv_tdesc_cache): Likewise, also store const target_desc.
11210 (STATIC_IN_GDB): Define.
11211 (riscv_create_target_description): Update declaration with
11212 STATIC_IN_GDB.
11213 (riscv_lookup_target_description): New function, only define if
11214 GDBSERVER is not defined.
11215 * arch/riscv.h (riscv_create_target_description): Declare only
11216 when GDBSERVER is defined.
11217 (riscv_lookup_target_description): New declaration when GDBSERVER
11218 is not defined.
11219 * nat/riscv-linux-tdesc.c (riscv_linux_read_description): Rename to...
11220 (riscv_linux_read_features): ...this, and return
11221 riscv_gdbarch_features instead of target_desc.
11222 * nat/riscv-linux-tdesc.h: Include 'arch/riscv.h'.
11223 (riscv_linux_read_description): Rename to...
11224 (riscv_linux_read_features): ...this.
11225 * riscv-linux-nat.c (riscv_linux_nat_target::read_description):
11226 Update to use riscv_gdbarch_features and
11227 riscv_lookup_target_description.
11228 * riscv-tdep.c (riscv_find_default_target_description): Use
11229 riscv_lookup_target_description instead of
11230 riscv_create_target_description.
11231
373d7ac0
SM
112322020-02-18 Simon Marchi <simon.marchi@efficios.com>
11233
11234 * valprint.c (generic_val_print_enum_1): When printing a flag
11235 enum with value 0 and there is no enumerator with value 0, print
11236 just "0" instead of "(unknown: 0x0)".
11237
b29a2df0
SM
112382020-02-18 Simon Marchi <simon.marchi@efficios.com>
11239
11240 * valprint.c (generic_val_print_enum_1): Print unknown part of
11241 flag enum in hex.
11242
6740f0cc
SM
112432020-02-18 Simon Marchi <simon.marchi@efficios.com>
11244
11245 * dwarf2/read.c (update_enumeration_type_from_children): Allow
11246 flag enums to contain duplicate enumerators.
11247 * valprint.c (generic_val_print_enum_1): Update comment.
11248
edd45eb0
SM
112492020-02-18 Simon Marchi <simon.marchi@efficios.com>
11250
11251 * dwarf2/read.c: Include "count-one-bits.h".
11252 (update_enumeration_type_from_children): If an enumerator has
11253 multiple bits set, don't treat the enumeration as a "flag enum".
11254 * valprint.c (generic_val_print_enum_1): Assert that enumerators
11255 of flag enums have 0 or 1 bit set.
11256
6d0cf446
BE
112572020-02-18 Bernd Edlinger <bernd.edlinger@hotmail.de>
11258
11259 * aarch64-tdep.c (aarch64_displaced_step_copy_insn): Use an explicit
11260 conversion.
11261 * amd64-tdep.c (amd64_displaced_step_copy_insn): Likewise.
11262 * arm-linux-tdep.c (arm_linux_displaced_step_copy_insn): Likewise.
11263 * i386-tdep.c (i386_displaced_step_copy_insn): Likewise.
11264 * rs6000-tdep.c (ppc_displaced_step_copy_insn): Likewise.
11265 * s390-tdep.c (s390_displaced_step_copy_insn): Likewise.
11266
7001c1b7
SM
112672020-02-18 Simon Marchi <simon.marchi@efficios.com>
11268
11269 * MAINTAINERS: Change palmer@sifive.com to palmer@dabbelt.com.
11270
fdb61c6c
SM
112712020-02-14 Simon Marchi <simon.marchi@efficios.com>
11272
11273 * aarch64-tdep.c (aarch64_displaced_step_copy_insn): Use
11274 displaced_step_closure_up.
11275 * aarch64-tdep.h (aarch64_displaced_step_copy_insn): Likewise.
11276 (struct displaced_step_closure_up):
11277 * amd64-tdep.c (amd64_displaced_step_copy_insn): Likewise.
11278 * amd64-tdep.h (amd64_displaced_step_copy_insn): Likewise.
11279 * arm-linux-tdep.c (arm_linux_displaced_step_copy_insn):
11280 Likewise.
11281 * gdbarch.sh (displaced_step_copy_insn): Likewise.
11282 * gdbarch.c, gdbarch.h: Re-generate.
11283 * i386-linux-tdep.c (i386_linux_displaced_step_copy_insn): Use
11284 displaced_step_closure_up.
11285 * i386-tdep.c (i386_displaced_step_copy_insn): Likewise.
11286 * i386-tdep.h (i386_displaced_step_copy_insn): Likewise.
11287 * infrun.h (displaced_step_closure_up): New type alias.
11288 (struct displaced_step_inferior_state) <step_closure>: Change
11289 type to displaced_step_closure_up.
11290 * rs6000-tdep.c (ppc_displaced_step_copy_insn): Use
11291 displaced_step_closure_up.
11292 * s390-tdep.c (s390_displaced_step_copy_insn): Likewise.
11293
a4a38eb4
TT
112942020-02-14 Tom Tromey <tom@tromey.com>
11295
11296 * minidebug.c (gnu_debug_key): New global.
11297 (find_separate_debug_file_in_section): Use it.
11298
e8217e61
SM
112992020-02-14 Simon Marchi <simon.marchi@efficios.com>
11300
11301 * gdbarch.sh (displaced_step_copy_insn): Change return type to an
11302 std::unique_ptr.
11303 * gdbarch.c: Re-generate.
11304 * gdbarch.h: Re-generate.
11305 * infrun.c (displaced_step_prepare_throw): Adjust to std::unique_ptr
11306 change.
11307 * aarch64-tdep.c (aarch64_displaced_step_copy_insn): Change return
11308 type to std::unique_ptr.
11309 * aarch64-tdep.h (aarch64_displaced_step_copy_insn): Likewise.
11310 * amd64-tdep.c (amd64_displaced_step_copy_insn): Likewise.
11311 * amd64-tdep.h (amd64_displaced_step_copy_insn): Likewise.
11312 * arm-linux-tdep.c (arm_linux_displaced_step_copy_insn): Likewise.
11313 * i386-linux-tdep.c (i386_linux_displaced_step_copy_insn): Likewise.
11314 * i386-tdep.c (i386_displaced_step_copy_insn): Likewise.
11315 * i386-tdep.h (i386_displaced_step_copy_insn): Likewise.
11316 * rs6000-tdep.c (ppc_displaced_step_copy_insn): Likewise.
11317 * s390-tdep.c (s390_displaced_step_copy_insn): Likewise.
11318
d8d83535
SM
113192020-02-14 Simon Marchi <simon.marchi@efficios.com>
11320
11321 * infrun.c (get_displaced_step_closure_by_addr): Adjust to
11322 std::unique_ptr.
11323 (displaced_step_clear): Rename to...
11324 (displaced_step_reset): ... this. Just call displaced->reset ().
11325 (displaced_step_clear_cleanup): Rename to...
11326 (displaced_step_reset_cleanup): ... this.
11327 (displaced_step_prepare_throw): Adjust to std::unique_ptr.
11328 (displaced_step_fixup): Likewise.
11329 (resume_1): Likewise.
11330 (handle_inferior_event): Restore child's memory before calling
11331 displaced_step_fixup on the parent.
11332 * infrun.h (displaced_step_inferior_state) <reset>: Adjust
11333 to std::unique_ptr.
11334 <step_closure>: Change type to std::unique_ptr.
11335
5f661e03
SM
113362020-02-14 Simon Marchi <simon.marchi@efficios.com>
11337
11338 * arm-tdep.c: Include count-one-bits.h.
11339 (cleanup_block_store_pc): Use count_one_bits.
11340 (cleanup_block_load_pc): Use count_one_bits.
11341 (arm_copy_block_xfer): Use count_one_bits.
11342 (thumb2_copy_block_xfer): Use count_one_bits.
11343 (thumb_copy_pop_pc_16bit): Use count_one_bits.
11344 * arch/arm-get-next-pcs.c: Include count-one-bits.h.
11345 (thumb_get_next_pcs_raw): Use count_one_bits.
11346 (arm_get_next_pcs_raw): Use count_one_bits_l.
11347 * arch/arm.c (bitcount): Remove.
11348 * arch/arm.h (bitcount): Remove.
11349
8084e579
TT
113502020-02-14 Tom Tromey <tromey@adacore.com>
11351
11352 * dwarf2/frame-tailcall.c (dwarf2_tailcall_sniffer_first):
11353 Update.
11354 * dwarf2/loc.h (call_site_find_chain): Return unique_xmalloc_ptr.
11355 * dwarf2/loc.c (call_site_find_chain_1): Return
11356 unique_xmalloc_ptr.
11357 (call_site_find_chain): Likewise.
11358
258bf0ee
RB
113592020-02-14 Richard Biener <rguenther@suse.de>
11360
11361 * dwarf2/read.c (lnp_state_machine::handle_special_opcode): Apply CSE
11362 on expression with division operators.
11363
f98a8458
AKS
113642020-02-13 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
11365
11366 * MAINTAINERS (Write After Approval): Adding myself.
11367
d1437c0e
TT
113682020-02-12 Tom Tromey <tom@tromey.com>
11369
11370 * event-loop.c (event_data, gdb_event, event_handler_func):
11371 Remove.
11372
3d4560f7
TT
113732020-02-12 Tom Tromey <tom@tromey.com>
11374
11375 * dwarf2/frame.c (dwarf2_frame_bfd_data): New global.
11376 (dwarf2_frame_objfile_data): Add comment.
11377 (find_comp_unit, set_comp_unit): New functions.
11378 (dwarf2_frame_find_fde): Use find_comp_unit.
11379 (dwarf2_build_frame_info): Use set_comp_unit.
11380
21982304
TT
113812020-02-12 Tom Tromey <tom@tromey.com>
11382
11383 * dwarf2/frame.c (struct comp_unit) <objfile>: Remove.
11384 (comp_unit): Don't initialize objfile.
11385 (execute_cfa_program): Add text_offset parameter.
11386 (execute_cfa_program_test, dwarf2_fetch_cfa_info)
11387 (dwarf2_frame_cache): Update.
11388 (dwarf2_build_frame_info): Don't set "objfile" member.
11389
4debb237
TT
113902020-02-12 Tom Tromey <tom@tromey.com>
11391
11392 * dwarf2/frame.c (decode_frame_entry_1): Add gdbarch parameter.
11393 (decode_frame_entry): Likewise.
11394 (dwarf2_build_frame_info): Update.
11395
0d404d44
TT
113962020-02-12 Tom Tromey <tom@tromey.com>
11397
11398 * dwarf2/frame.c (struct comp_unit) <obstack>: New member.
11399 (decode_frame_entry_1): Use the comp_unit obstack.
11400
a7a3ae5c
TT
114012020-02-12 Tom Tromey <tom@tromey.com>
11402
11403 * dwarf2/frame.c (struct comp_unit): Add initializers and
11404 constructor.
11405 (dwarf2_frame_objfile_data): Store a comp_unit.
11406 (dwarf2_frame_find_fde): Update.
11407 (dwarf2_build_frame_info): Use "new".
11408
a9d65418
TT
114092020-02-12 Tom Tromey <tom@tromey.com>
11410
11411 * dwarf2/frame.c (struct dwarf2_fde_table): Remove.
11412 (dwarf2_fde_table): Typedef for std::vector.
11413 (dwarf2_frame_objfile_data): Remove the deleter. Now static.
11414 (dwarf2_frame_find_fde, add_fde, decode_frame_entry_1)
11415 (decode_frame_entry): Update.
11416 (dwarf2_build_frame_info): Use "new".
11417
7559c217
CB
114182020-02-12 Christian Biesinger <cbiesinger@google.com>
11419
11420 * arm-tdep.c (arm_gdbarch_init): Update.
11421 * arm-tdep.h (struct gdbarch_tdep) <have_fpa_registers,
11422 have_wmmx_registers, have_vfp_pseudos, have_neon_pseudos,
11423 have_neon, is_m>: Change to bool.
11424
aeefc73c
CB
114252020-02-12 Christian Biesinger <cbiesinger@google.com>
11426
11427 * arm-tdep.c (arm_dump_tdep): Print more fields of tdep.
11428
d27b8e5f
TT
114292020-02-12 Tom Tromey <tom@tromey.com>
11430
11431 * dwarf2/loc.c (struct dwarf_expr_baton): Remove.
11432
cd5900f3
HD
114332020-02-12 Hannes Domani <ssbssa@yahoo.de>
11434
11435 * windows-tdep.c (struct windows_gdbarch_data): Add tib_ptr_type.
11436 (windows_get_tlb_type): Use windows_gdbarch_data->tib_ptr_type.
11437
f056b22b
TT
114382020-02-11 Tom Tromey <tom@tromey.com>
11439
11440 * psymtab.h: Update comment.
11441
f92ff6b5
TT
114422020-02-11 Tom Tromey <tom@tromey.com>
11443
11444 * gdb_obstack.h (struct auto_obstack): Use
11445 DISABLE_COPY_AND_ASSIGN.
11446
3fd6912b
TT
114472020-02-11 Tom Tromey <tom@tromey.com>
11448
11449 * dwarf2/frame.h (struct objfile): Don't forward declare.
11450
69ed9b74
CB
114512020-02-11 Christian Biesinger <cbiesinger@google.com>
11452
11453 * cris-tdep.c (cris_supply_gregset): Change signature to match
11454 what struct regset expects.
11455 (cris_regset): New struct.
11456 (fetch_core_registers): Remove.
11457 (cris_iterate_over_regset_sections): New function.
11458 (_initialize_cris_tdep): Don't call deprecated_add_core_fns.
11459 (cris_gdbarch_init): Call set_gdbarch_iterate_over_regset_sections.
11460
bda874f6
CB
114612020-02-11 Christian Biesinger <cbiesinger@google.com>
11462
11463 * arch/arm.h (enum gdb_regnum): Add comment for the FP0..7
11464 registers.
11465
754e1564
CB
114662020-02-11 Christian Biesinger <cbiesinger@google.com>
11467
11468 * arm-tdep.c (arm_dump_tdep): Add \n in fprintf.
11469
8ddd8e0e
SM
114702020-02-11 Simon Marchi <simon.marchi@efficios.com>
11471
11472 * configure: Re-generate.
11473
898e7f60
SM
114742020-02-11 Simon Marchi <simon.marchi@efficios.com>
11475
11476 * configure: Re-generate.
11477
58df732b
SM
114782020-02-11 Simon Marchi <simon.marchi@efficios.com>
11479
11480 * acinclude: Update warning.m4 path.
11481 * warning.m4: Move to gdbsupport.
11482
da5bd37e
TT
114832020-02-11 Tom Tromey <tromey@adacore.com>
11484
11485 * remote.c (remote_console_output): Update.
11486 * printcmd.c (printf_command): Update.
11487 * event-loop.c (gdb_wait_for_event): Update.
11488 * linux-nat.c (sigchld_handler): Update.
11489 * remote-sim.c (gdb_os_write_stdout): Update.
11490 (gdb_os_flush_stdout): Update.
11491 (gdb_os_flush_stderr): Update.
11492 (gdb_os_write_stderr): Update.
11493 * exceptions.c (print_exception): Update.
11494 * remote-fileio.c (remote_fileio_func_read): Update.
11495 (remote_fileio_func_write): Update.
11496 * tui/tui.c (tui_enable): Update.
11497 * tui/tui-interp.c (tui_interp::init): Update.
11498 * utils.c (init_page_info): Update.
11499 (putchar_unfiltered, fputc_unfiltered): Update.
11500 (gdb_flush): Update.
11501 (emit_style_escape): Update.
11502 (flush_wrap_buffer, fputs_maybe_filtered): Update.
11503 * ui-file.c (ui_file_isatty, ui_file_read, ui_file_write)
11504 (ui_file_write_async_safe, ui_file_flush, ui_file_puts): Remove.
11505 (stderr_file::write): Update.
11506 (stderr_file::puts): Update.
11507 * ui-file.h (ui_file_isatty, ui_file_write)
11508 (ui_file_write_async_safe, ui_file_read, ui_file_flush)
11509 (ui_file_puts): Don't declare.
11510
85f0dd3c
TV
115112020-02-10 Tom de Vries <tdevries@suse.de>
11512
11513 * dwarf2/read.c (process_psymtab_comp_unit_reader): Cast concat NULL
11514 sentinel to char *.
11515
2e927613
TV
115162020-02-09 Tom de Vries <tdevries@suse.de>
11517
11518 * dwarf2read.c (process_psymtab_comp_unit_reader): Append CU offset to
11519 filename if it matches "<artificial>".
11520
6bafc845
HD
115212020-02-09 Hannes Domani <ssbssa@yahoo.de>
11522
11523 * windows-tdep.c (struct enum_value_name): New struct.
11524 (create_enum): New function.
11525 (windows_get_siginfo_type): Create and use enum types.
11526
7928d571
HD
115272020-02-09 Hannes Domani <ssbssa@yahoo.de>
11528
11529 * NEWS: Mention $_siginfo support for Windows.
11530 * windows-nat.c (handle_exception): Set siginfo_er.
11531 (windows_nat_target::mourn_inferior): Reset siginfo_er.
11532 (windows_xfer_siginfo): New function.
11533 (windows_nat_target::xfer_partial): Call windows_xfer_siginfo.
11534 * windows-tdep.c (struct windows_gdbarch_data): New struct.
11535 (init_windows_gdbarch_data): New function.
11536 (get_windows_gdbarch_data): New function.
11537 (windows_get_siginfo_type): New function.
11538 (windows_init_abi): Register windows_get_siginfo_type.
11539 (_initialize_windows_tdep): Register init_windows_gdbarch_data.
11540
6751ebae
TT
115412020-02-08 Tom Tromey <tom@tromey.com>
11542
11543 * dwarf2/read.c (class cutu_reader) <cutu_reader,
11544 init_tu_and_read_dwo_dies>: Remove "keep" parameter.
11545 <keep>: Declare method.
11546 <m_keep>: Remove member.
11547 <~cutu_reader>: Remove.
11548 (cutu_reader::init_tu_and_read_dwo_dies): Update.
11549 (cutu_reader::cutu_reader): Update.
11550 (cutu_reader::keep): Rename from ~cutu_reader.
11551 (process_psymtab_comp_unit, build_type_psymtabs_1)
11552 (process_skeletonless_type_unit, load_partial_comp_unit)
11553 (load_full_comp_unit, dwarf2_read_addr_index)
11554 (read_signatured_type): Update.
11555
135f5437
TT
115562020-02-08 Tom Tromey <tom@tromey.com>
11557
11558 * dwarf2/read.c (process_psymtab_comp_unit_reader): Remove
11559 "want_partial_unit" parameter.
11560 (process_psymtab_comp_unit): Change want_partial_unit to bool.
11561 Inline check for DW_TAG_partial_unit.
11562 (dwarf2_build_psymtabs_hard, scan_partial_symbols): Update.
11563
9f66ff1c
TT
115642020-02-08 Tom Tromey <tom@tromey.com>
11565
11566 * dwarf2/read.c (read_n_bytes, read_direct_string): Move to
11567 read.c.
11568 * dwarf2/leb.h (read_n_bytes, read_direct_string): Move from
11569 read.c.
11570
c8a7a66f
TT
115712020-02-08 Tom Tromey <tom@tromey.com>
11572
11573 * dwarf2/read.c (read_address): Move to comp-unit.c.
11574 (dwarf2_rnglists_process, dwarf2_ranges_process)
11575 (read_attribute_value, dwarf_decode_lines_1)
11576 (var_decode_location, decode_locdesc): Update.
11577 * dwarf2/comp-unit.c (comp_unit_head::read_address): Move from
11578 read.c. Remove "cu" parameter.
11579 * dwarf2/comp-unit.h (struct comp_unit_head) <read_address>: New
11580 method.
11581
8266302d
TT
115822020-02-08 Tom Tromey <tom@tromey.com>
11583
11584 * dwarf2/read.c (read_attribute_value, read_indirect_string)
11585 (read_indirect_line_string): Update.
11586 * dwarf2/comp-unit.c (read_offset): Remove.
11587 (read_comp_unit_head): Update.
11588 * dwarf2/comp-unit.h (struct comp_unit_head) <read_offset>: New
11589 method.
11590 (read_offset): Don't declare.
11591
4057dfde
TT
115922020-02-08 Tom Tromey <tom@tromey.com>
11593
11594 * Makefile.in (COMMON_SFILES): Add dwarf2/comp-unit.c.
11595 * dwarf2/read.c (struct comp_unit_head): Move to
11596 dwarf2/comp-unit.h.
11597 (enum class rcuh_kind): Move to comp-unit.h.
11598 (get_cu_length, offset_in_cu_p): Now methods on comp_unit_head.
11599 (read_comp_unit_head, error_check_comp_unit_head)
11600 (read_and_check_comp_unit_head): Move to comp-unit.c.
11601 (read_offset, dwarf_unit_type_name): Likewise.
11602 (create_debug_type_hash_table, read_cutu_die_from_dwo)
11603 (cutu_reader::cutu_reader, read_call_site_scope)
11604 (find_partial_die, follow_die_offset): Update.
11605 * dwarf2/comp-unit.h: New file, from dwarf2read.c.
11606
24aa364d
TT
116072020-02-08 Tom Tromey <tom@tromey.com>
11608
11609 * dwarf2/read.c (read_offset_1): Move to leb.c.
11610 (read_abbrev_offset, read_offset, dwarf_decode_line_header)
11611 (dwarf_decode_macro_bytes): Update.
11612 * dwarf2/leb.c (read_offset): Rename; move from read.c.
11613 * dwarf2/leb.h (read_offset): Declare.
11614
2c7d5afc
TT
116152020-02-08 Tom Tromey <tom@tromey.com>
11616
11617 * dwarf2/read.c (dwarf2_section_size): Remove.
11618 (error_check_comp_unit_head, dwarf2_symbol_mark_computed):
11619 Update.
11620 * dwarf2/section.h (struct dwarf2_section_info) <get_size>: New method.
11621
4075cb26
TT
116222020-02-08 Tom Tromey <tom@tromey.com>
11623
11624 * dwarf2/read.c (read_initial_length): Move to leb.c.
11625 * dwarf2/leb.h (read_initial_length): Declare.
11626 * dwarf2/leb.c (read_initial_length): Move from read.c. Add
11627 handle_nonstd parameter.
11628 * dwarf2/frame.c (read_initial_length): Remove.
11629 (decode_frame_entry_1): Update.
11630
09ba997f
TT
116312020-02-08 Tom Tromey <tom@tromey.com>
11632
11633 * dwarf2/loc.c (dwarf2_find_location_expression)
11634 (dwarf_evaluate_loc_desc::get_tls_address)
11635 (dwarf_evaluate_loc_desc::push_dwarf_reg_entry_value)
11636 (rw_pieced_value, dwarf2_evaluate_loc_desc_full)
11637 (dwarf2_locexpr_baton_eval, dwarf2_evaluate_property)
11638 (dwarf2_compile_property_to_c)
11639 (dwarf2_loc_desc_get_symbol_read_needs)
11640 (dwarf2_compile_expr_to_ax, locexpr_describe_location)
11641 (locexpr_tracepoint_var_ref, locexpr_generate_c_location)
11642 (loclist_describe_location, loclist_tracepoint_var_ref)
11643 (loclist_generate_c_location): Update.
11644 * compile/compile-loc2c.c (do_compile_dwarf_expr_to_c): Update.
11645 * dwarf2/loc.h (dwarf2_per_cu_objfile, dwarf2_per_cu_addr_size)
11646 (dwarf2_per_cu_ref_addr_size, dwarf2_per_cu_offset_size)
11647 (dwarf2_per_cu_text_offset, dwarf2_version): Don't declare.
11648 * dwarf2/read.c (dwarf2_per_cu_data::objfile)
11649 (dwarf2_per_cu_data::addr_size)
11650 (dwarf2_per_cu_data::ref_addr_size)
11651 (dwarf2_per_cu_data::text_offset)
11652 (dwarf2_per_cu_data::addr_type): Now methods.
11653 (per_cu_header_read_in): Make per_cu "const".
11654 (dwarf2_version): Remove.
11655 (dwarf2_per_cu_data::int_type): Now a method.
11656 (dwarf2_per_cu_data::_addr_sized_int_type): Likewise.
11657 (set_die_type, read_array_type, read_subrange_index_type)
11658 (read_tag_string_type, read_subrange_type): Update.
11659 * dwarf2/read.h (struct dwarf2_per_cu_data) <addr_size,
11660 offset_size, ref_addr_size, text_offset, addr_type, version,
11661 objfile, int_type, addr_sized_int_type>: Declare methods.
11662
96c738c0
TT
116632020-02-08 Tom Tromey <tom@tromey.com>
11664
11665 * dwarf2/read.h (struct dwarf2_per_cu_data) <imported_symtabs>:
11666 Move earlier.
11667
8fdd972c
TT
116682020-02-08 Tom Tromey <tom@tromey.com>
11669
11670 * dwarf2/read.h (dwarf_line_debug): Declare.
11671 * Makefile.in (COMMON_SFILES): Add dwarf2/line-header.c.
11672 * dwarf2/read.c: Move line_header code to new files.
11673 (dwarf_line_debug): No longer static.
11674 * dwarf2/line-header.c: New file.
11675 * dwarf2/line-header.h: New file.
11676
03075812
TT
116772020-02-08 Tom Tromey <tom@tromey.com>
11678
11679 * dwarf2/read.c (struct line_header) <file_full_name,
11680 file_file_name>: Return unique_xmalloc_ptr.
11681 (line_header::file_file_name): Update.
11682 (line_header::file_full_name): Update.
11683 (dw2_get_file_names_reader): Update.
11684 (macro_start_file): Update.
11685
bb822404
TT
116862020-02-08 Tom Tromey <tom@tromey.com>
11687
11688 * dwarf2/read.c (struct line_header) <file_full_name,
11689 file_file_name>: Declare methods.
11690 (dw2_get_file_names_reader): Update.
11691 (file_file_name): Now a method.
11692 (file_full_name): Likewise.
11693 (macro_start_file): Update.
11694
009b64fc
TT
116952020-02-08 Tom Tromey <tom@tromey.com>
11696
11697 * dwarf2/read.c (dwarf_always_disassemble)
11698 (show_dwarf_always_disassemble): Move to loc.c.
11699 (_initialize_dwarf2_read): Move "always-disassemble" registration
11700 to loc.c.
11701 * dwarf2/read.h (dwarf_always_disassemble): Don't declare.
11702 * dwarf2/loc.c (dwarf_always_disassemble): Move from read.c. Now
11703 static.
11704 (show_dwarf_always_disassemble): Move from read.c.
11705 (_initialize_dwarf2loc): Move always-disassemble from read.c.
11706
5895093f
TT
117072020-02-08 Tom Tromey <tom@tromey.com>
11708
11709 * dwarf2/read.c (~dwarf2_per_objfile): Update.
11710 (create_quick_file_names_table): Return htab_up.
11711 (dw2_get_file_names_reader, dw2_forget_cached_source_info):
11712 Update.
11713 * dwarf2/read.h (struct dwarf2_per_objfile)
11714 <quick_file_names_table>: Now htab_up.
11715
b3b32279
TT
117162020-02-08 Tom Tromey <tom@tromey.com>
11717
11718 * dwarf2/abbrev.c (abbrev_table::read): Simplify.
11719
1d33d811
TT
117202020-02-08 Tom Tromey <tom@tromey.com>
11721
11722 * dwarf2/abbrev.c (abbrev_table): Move constructor from header.
11723 Rewrite.
11724 (abbrev_table::add_abbrev, abbrev_table::lookup_abbrev): Rewrite.
11725 * dwarf2/abbrev.h (struct abbrev_info) <next>: Remove.
11726 (abbrev_table::abbrev_table): No longer inline.
11727 (ABBREV_HASH_SIZE): Remove.
11728 (abbrev_table::m_abbrevs): Now an htab_up.
11729
86de1d91
TT
117302020-02-08 Tom Tromey <tom@tromey.com>
11731
11732 * dwarf2/read.c (read_cutu_die_from_dwo): Update.
11733 (cutu_reader): Update.
11734 (build_type_psymtabs_1): Update.
11735 * dwarf2/abbrev.c (abbrev_table::read): Rename.
11736 (abbrev_table::alloc_abbrev): Update.
11737 * dwarf2/abbrev.h (abbrev_table_up): Move earlier.
11738 (abbrev_table::read): New static method, renamed from
11739 abbrev_table_read_table.
11740 (abbrev_table::alloc_abbrev)
11741 (abbrev_table::add_abbrev): Now private.
11742 (abbrev_table::abbrev_table): Now private.
11743 (abbrev_table::m_abbrev_obstack): Now private. Rename.
11744
0335378b
TT
117452020-02-08 Tom Tromey <tom@tromey.com>
11746
11747 * dwarf2/read.c (set_die_type, get_die_type_at_offset): Update.
11748 * dwarf2/read.h (struct dwarf2_per_objfile) <die_type_hash>: Now
11749 htab_up.
11750
48b490f2
TT
117512020-02-08 Tom Tromey <tom@tromey.com>
11752
11753 * dwarf2/read.c (struct dwp_file) <loaded_cus, loaded_tus>: Now
11754 htab_up.
11755 (lookup_dwo_unit_in_dwp): Update.
11756 (allocate_dwp_loaded_cutus_table): Return htab_up. Don't allocate
11757 on obstack.
11758
bc68fb19
TT
117592020-02-08 Tom Tromey <tom@tromey.com>
11760
11761 * dwarf2/read.c (allocate_dwo_file_hash_table): Don't allocate on
11762 obstack.
11763
d15acc42
TT
117642020-02-08 Tom Tromey <tom@tromey.com>
11765
11766 * dwarf2/read.c (~dwarf2_per_objfile): Don't delete
11767 line_header_hash.
11768 (handle_DW_AT_stmt_list): Update. Don't allocate on obstack.
11769 * dwarf2/read.h (struct dwarf2_per_objfile) <line_header_hash>:
11770 Change type to htab_up.
11771
eaa5fa8b
TT
117722020-02-08 Tom Tromey <tom@tromey.com>
11773
11774 * dwarf2/read.c (allocate_type_unit_groups_table): Return
11775 htab_up. Don't allocate on obstack.
11776 (get_type_unit_group, dwarf2_build_psymtabs_hard): Update.
11777 * dwarf2/read.h (struct dwarf2_per_objfile) <type_unit_groups>:
11778 Change type to htab_up.
11779
b0b6a987
TT
117802020-02-08 Tom Tromey <tom@tromey.com>
11781
11782 * dwarf2/read.h (struct dwarf2_per_objfile) <signatured_types>:
11783 Change type to htab_up.
11784 * dwarf2/read.c (create_signatured_type_table_from_index)
11785 (create_signatured_type_table_from_debug_names)
11786 (create_all_type_units, add_type_unit)
11787 (lookup_dwo_signatured_type, lookup_signatured_type)
11788 (process_skeletonless_type_unit): Update.
11789 (create_debug_type_hash_table, create_debug_types_hash_table):
11790 Change type of types_htab.
11791 (allocate_signatured_type_table, allocate_dwo_unit_table): Return
11792 htab_up. Don't allocate on obstack.
11793 (create_cus_hash_table): Change type of cus_htab parameter.
11794 (struct dwo_file) <cus, tus>: Now htab_up.
11795 (lookup_dwo_signatured_type, lookup_dwo_cutu)
11796 (process_dwo_file_for_skeletonless_type_units, lookup_dwo_cutu)
11797 (queue_and_load_all_dwo_tus): Update.
11798 * dwarf2/index-write.c (write_gdbindex): Update.
11799 (write_debug_names): Update.
11800
39856def
TT
118012020-02-08 Tom Tromey <tom@tromey.com>
11802
11803 * dwarf2/read.h (struct dwarf2_queue_item): Move from
11804 dwarf2/read.c. Remove "next" member. Add constructor ntad
11805 destructor.
11806 (struct dwarf2_per_objfile) <queue>: New member.
11807 * dwarf2/read.c (struct dwarf2_queue_item): Move to
11808 dwarf2/read.h.
11809 (dwarf2_queue, dwarf2_queue_tail): Remove.
11810 (class dwarf2_queue_guard): Add parameter to constructor. Use
11811 DISABLE_COPY_AND_ASSIGN.
11812 <m_per_objfile>: New member.
11813 <~dwarf2_queue_guard>: Rewrite.
11814 (dw2_do_instantiate_symtab, queue_comp_unit, process_queue):
11815 Update.
11816 (~dwarf2_queue_item): New.
11817
3e225074
TT
118182020-02-08 Tom Tromey <tom@tromey.com>
11819
11820 * dwarf2/read.c (struct die_info) <has_children>: New member.
11821 (dw2_get_file_names_reader): Remove has_children.
11822 (dw2_get_file_names): Update.
11823 (read_cutu_die_from_dwo): Remove has_children.
11824 (cutu_reader::init_tu_and_read_dwo_dies)
11825 (cutu_reader::cutu_reader): Update.
11826 (process_psymtab_comp_unit_reader, build_type_psymtabs_reader):
11827 Remove has_children.
11828 (build_type_psymtabs_1, process_skeletonless_type_unit)
11829 (load_partial_comp_unit, load_full_comp_unit): Update.
11830 (create_dwo_cu_reader): Remove has_children.
11831 (create_cus_hash_table, read_die_and_children): Update.
11832 (read_full_die_1,read_full_die): Remove has_children.
11833 (read_signatured_type): Update.
11834 (class cutu_reader) <has_children>: Remove.
11835
82ca8957
TT
118362020-02-08 Tom Tromey <tom@tromey.com>
11837
11838 * dwarf2/expr.c: Rename from dwarf2expr.c.
11839 * dwarf2/expr.h: Rename from dwarf2expr.h.
11840 * dwarf2/frame-tailcall.c: Rename from dwarf2-frame-tailcall.c.
11841 * dwarf2/frame-tailcall.h: Rename from dwarf2-frame-tailcall.h.
11842 * dwarf2/frame.c: Rename from dwarf2-frame.c.
11843 * dwarf2/frame.h: Rename from dwarf2-frame.h.
11844 * dwarf2/index-cache.c: Rename from dwarf-index-cache.c.
11845 * dwarf2/index-cache.h: Rename from dwarf-index-cache.h.
11846 * dwarf2/index-common.c: Rename from dwarf-index-common.c.
11847 * dwarf2/index-common.h: Rename from dwarf-index-common.h.
11848 * dwarf2/index-write.c: Rename from dwarf-index-write.c.
11849 * dwarf2/index-write.h: Rename from dwarf-index-write.h.
11850 * dwarf2/loc.c: Rename from dwarf2loc.c.
11851 * dwarf2/loc.h: Rename from dwarf2loc.h.
11852 * dwarf2/read.c: Rename from dwarf2read.c.
11853 * dwarf2/read.h: Rename from dwarf2read.h.
11854 * dwarf2/abbrev.c, aarch64-tdep.c, alpha-tdep.c,
11855 amd64-darwin-tdep.c, arc-tdep.c, arm-tdep.c, bfin-tdep.c,
11856 compile/compile-c-symbols.c, compile/compile-cplus-symbols.c,
11857 compile/compile-loc2c.c, cris-tdep.c, csky-tdep.c, findvar.c,
11858 gdbtypes.c, guile/scm-type.c, h8300-tdep.c, hppa-bsd-tdep.c,
11859 hppa-linux-tdep.c, i386-darwin-tdep.c, i386-linux-tdep.c,
11860 i386-tdep.c, iq2000-tdep.c, m32c-tdep.c, m68hc11-tdep.c,
11861 m68k-tdep.c, microblaze-tdep.c, mips-tdep.c, mn10300-tdep.c,
11862 msp430-tdep.c, nds32-tdep.c, nios2-tdep.c, or1k-tdep.c,
11863 riscv-tdep.c, rl78-tdep.c, rs6000-tdep.c, rx-tdep.c, s12z-tdep.c,
11864 s390-tdep.c, score-tdep.c, sh-tdep.c, sparc-linux-tdep.c,
11865 sparc-tdep.c, sparc64-linux-tdep.c, sparc64-tdep.c, tic6x-tdep.c,
11866 tilegx-tdep.c, v850-tdep.c, xstormy16-tdep.c, xtensa-tdep.c:
11867 Update.
11868 * Makefile.in (COMMON_SFILES): Update.
11869 (HFILES_NO_SRCDIR): Update.
11870
9e35d499
TT
118712020-02-08 Tom Tromey <tom@tromey.com>
11872
11873 * dwarf2read.c (struct die_reader_specs) <comp_dir>: Remove.
11874 (init_cu_die_reader, read_cutu_die_from_dwo): Update.
11875
1eba2311
TT
118762020-02-08 Tom Tromey <tom@tromey.com>
11877
11878 * dwarf2read.h (struct die_info): Don't declare.
11879
e41c2da2
TT
118802020-02-08 Tom Tromey <tom@tromey.com>
11881
11882 * dwarf2read.h (die_info_ptr): Remove typedef.
11883
4fc6c0d5
TT
118842020-02-08 Tom Tromey <tom@tromey.com>
11885
11886 * dwarf2read.c (read_call_site_scope)
11887 (handle_data_member_location, dwarf2_add_member_fn)
11888 (mark_common_block_symbol_computed, read_common_block)
11889 (attr_to_dynamic_prop, partial_die_info::read)
11890 (var_decode_location, dwarf2_fetch_die_loc_sect_off)
11891 (dwarf2_symbol_mark_computed, set_die_type): Update.
11892 * dwarf2/attribute.h (struct attribute) <form_is_block>: Declare
11893 method.
11894 (attr_form_is_block): Don't declare.
11895 * dwarf2/attribute.c (attribute::form_is_block): Now a method.
11896
cd6c91b4
TT
118972020-02-08 Tom Tromey <tom@tromey.com>
11898
11899 * dwarf2read.c (dwarf2_find_base_address, )
11900 (read_call_site_scope, rust_containing_type)
11901 (dwarf2_get_pc_bounds, dwarf2_record_block_ranges)
11902 (handle_data_member_location, dwarf2_add_member_fn)
11903 (get_alignment, read_structure_type, process_structure_scope)
11904 (mark_common_block_symbol_computed, read_common_block)
11905 (read_tag_string_type, attr_to_dynamic_prop, read_subrange_type)
11906 (partial_die_info::read, read_attribute_value, new_symbol)
11907 (lookup_die_type, dwarf2_get_ref_die_offset)
11908 (dwarf2_get_attr_constant_value, follow_die_ref_or_sig)
11909 (dwarf2_fetch_die_loc_sect_off, get_DW_AT_signature_type)
11910 (dwarf2_symbol_mark_computed): Update.
11911 * dwarf2/attribute.h (struct attribute) <value_as_address,
11912 form_is_section_offset, form_is_constant, form_is_ref>: Declare
11913 methods.
11914 (value_as_address, attr_form_is_section_offset)
11915 (attr_form_is_constant, attr_form_is_ref): Don't declare.
11916 * dwarf2/attribute.c (attribute::value_as_address)
11917 (attribute::form_is_section_offset, attribute::form_is_constant)
11918 (attribute::form_is_ref): Now methods.
11919
162dce55
TT
119202020-02-08 Tom Tromey <tom@tromey.com>
11921
11922 * dwarf2read.c (struct attribute, DW_STRING)
11923 (DW_STRING_IS_CANONICAL, DW_UNSND, DW_BLOCK, DW_SND, DW_ADDR)
11924 (DW_SIGNATURE, struct dwarf_block, attr_value_as_address)
11925 (attr_form_is_block, attr_form_is_section_offset)
11926 (attr_form_is_constant, attr_form_is_ref): Move.
11927 * dwarf2/attribute.h: New file.
11928 * dwarf2/attribute.c: New file, from dwarf2read.c.
11929 * Makefile.in (COMMON_SFILES): Add dwarf2/attribute.c.
11930
3054dd54
TT
119312020-02-08 Tom Tromey <tom@tromey.com>
11932
11933 * dwarf2read.c (abbrev_table_up, struct abbrev_info)
11934 (struct attr_abbrev, ABBREV_HASH_SIZE, struct abbrev_table):
11935 Move.
11936 (read_cutu_die_from_dwo, build_type_psymtabs_1): Update.
11937 (abbrev_table::alloc_abbrev, abbrev_table::add_abbrev)
11938 (abbrev_table::lookup_abbrev, abbrev_table_read_table): Move to
11939 abbrev.c.
11940 * dwarf2/abbrev.h: New file.
11941 * dwarf2/abbrev.c: New file, from dwarf2read.c.
11942 * Makefile.in (COMMON_SFILES): Add dwarf2/abbrev.c.
11943
96b79293
TT
119442020-02-08 Tom Tromey <tom@tromey.com>
11945
11946 * dwarf2read.c (dwarf2_section_buffer_overflow_complaint)
11947 (dwarf2_section_size, dwarf2_get_section_info)
11948 (create_signatured_type_table_from_debug_names)
11949 (create_addrmap_from_aranges, read_debug_names_from_section)
11950 (get_gdb_index_contents_from_section, read_comp_unit_head)
11951 (error_check_comp_unit_head, read_abbrev_offset)
11952 (create_debug_type_hash_table, init_cu_die_reader)
11953 (read_cutu_die_from_dwo, dwarf2_build_psymtabs_hard)
11954 (read_comp_units_from_section, create_cus_hash_table)
11955 (create_dwp_hash_table, create_dwo_unit_in_dwp_v1)
11956 (create_dwp_v2_section, dwarf2_rnglists_process)
11957 (dwarf2_ranges_process, read_die_and_siblings, read_full_die)
11958 (abbrev_table_read_table, read_indirect_string_at_offset_from)
11959 (read_indirect_string_from_dwz, read_addr_index_1)
11960 (read_str_index, dwarf_decode_line_header, skip_form_bytes)
11961 (dwarf_decode_macro_bytes, dwarf_decode_macros)
11962 (fill_in_loclist_baton): Update.
11963 * dwarf2/section.h (struct dwarf2_section_info) <get_name,
11964 get_containing_section, get_bfd_owner, get_bfd_section,
11965 get_file_name, get_id, get_flags, empty, read>: Declare methods.
11966 (dwarf2_read_section, get_section_name, get_section_file_name)
11967 (get_containing_section, get_section_bfd_owner)
11968 (get_section_bfd_section, get_section_name, get_section_file_name)
11969 (get_section_id, get_section_flags, dwarf2_section_empty_p): Don't
11970 declare.
11971 * dwarf2/section.c (dwarf2_section_info::get_containing_section)
11972 (dwarf2_section_info::get_bfd_owner)
11973 (dwarf2_section_info::get_bfd_section)
11974 (dwarf2_section_info::get_name)
11975 (dwarf2_section_info::get_file_name, dwarf2_section_info::get_id)
11976 (dwarf2_section_info::get_flags, dwarf2_section_info::empty)
11977 (dwarf2_section_info::read): Now methods.
11978 * dwarf-index-write.c (class debug_names): Update.
11979
2c86cff9
TT
119802020-02-08 Tom Tromey <tom@tromey.com>
11981
11982 * dwarf2read.h (struct dwarf2_section_info, dwarf2_read_section):
11983 Move to dwarf2/section.h.
11984 * dwarf2read.c (get_containing_section, get_section_bfd_owner)
11985 (get_section_bfd_section, get_section_name)
11986 (get_section_file_name, get_section_id, get_section_flags)
11987 (dwarf2_section_empty_p, dwarf2_read_section): Moe to
11988 dwarf2/section.c.
11989 * dwarf2/section.h: New file.
11990 * dwarf2/section.c: New file, from dwarf2read.c.
11991 * Makefile.in (COMMON_SFILES): Add dwarf2/section.c.
11992
f4382c45
TT
119932020-02-08 Tom Tromey <tom@tromey.com>
11994
11995 * dwarf2read.h (read_unsigned_leb128): Don't declare.
11996 * dwarf2read.c (read_1_byte, read_1_signed_byte, read_2_bytes)
11997 (read_2_signed_bytes, read_3_bytes, read_4_bytes)
11998 (read_4_signed_bytes, read_8_bytes): Move to dwarf2/leb.h.
11999 (read_unsigned_leb128, read_signed_leb128): Move to dwarf2/leb.c.
12000 * dwarf2/leb.h: New file, from dwarf2read.c.
12001 * dwarf2/leb.c: New file, from dwarf2read.c.
12002 * dwarf2-frame.c (read_1_byte, read_4_bytes, read_8_bytes):
12003 Remove.
12004 * Makefile.in (CONFIG_SRC_SUBDIR): Add dwarf2.
12005 (COMMON_SFILES): Add dwarf2/leb.c.
12006
01840b7a
JB
120072020-02-08 Joel Brobecker <brobecker@adacore.com>
12008
12009 GDB 9.1 released.
12010
dfcb27e4
IB
120112020-02-05 Iain Buclaw <ibuclaw@gdcproject.org>
12012
12013 PR gdb/25190:
aac66a4c
SM
12014 * gdb/remote-sim.c (gdb_os_write_stderr): Update.
12015 * gdb/remote.c (remote_console_output): Update.
12016 * gdb/ui-file.c (fputs_unfiltered): Rename to...
12017 (ui_file_puts): ...this.
12018 * gdb/ui-file.h (ui_file_puts): Add declaration.
12019 * gdb/utils.c (emit_style_escape): Update.
12020 (flush_wrap_buffer): Update.
12021 (fputs_maybe_filtered): Update.
12022 (fputs_unfiltered): Add function.
dfcb27e4 12023
faa17681
IB
120242020-02-05 Iain Buclaw <ibuclaw@gdcproject.org>
12025
aac66a4c
SM
12026 * gdb/event-loop.c (gdb_wait_for_event): Update.
12027 * gdb/printcmd.c (printf_command): Update.
12028 * gdb/remote-fileio.c (remote_fileio_func_write): Update.
12029 * gdb/remote-sim.c (gdb_os_flush_stdout): Update.
12030 (gdb_os_flush_stderr): Update.
12031 * gdb/remote.c (remote_console_output): Update.
12032 * gdb/ui-file.c (gdb_flush): Rename to...
12033 (ui_file_flush): ...this.
12034 (stderr_file::write): Update.
12035 (stderr_file::puts): Update.
12036 * gdb/ui-file.h (gdb_flush): Rename to...
12037 (ui_file_flush): ...this.
12038 * gdb/utils.c (gdb_flush): Add function.
12039 * gdb/utils.h (gdb_flush): Add declaration.
faa17681 12040
5abbbe1d
TT
120412020-02-07 Tom Tromey <tromey@adacore.com>
12042
12043 PR breakpoints/24915:
12044 * source.c (find_and_open_source): Do not check basenames_may_differ.
12045
919adfe8
TT
120462020-02-07 Tom Tromey <tom@tromey.com>
12047
12048 * README: Update gdbserver documentation.
12049 * gdbserver: Move to top level.
12050 * configure.tgt (build_gdbserver): Remove.
12051 * configure.ac: Remove --enable-gdbserver.
12052 * configure: Rebuild.
12053 * Makefile.in (distclean): Don't mention gdbserver.
12054
1d5d29e7
SV
120552020-02-06 Shahab Vahedi <shahab@synopsys.com>
12056
12057 * source-cache.c (source_cache::ensure): Surround
12058 get_plain_source_lines with a try/catch.
12059 (source_cache::get_line_charpos): Get rid of try/catch
12060 and only check for the return value of "ensure".
12061 * tui/tui-source.c (tui_source_window::set_contents):
12062 Simplify "nlines" calculation.
12063
6eb1129c
SV
120642020-02-06 Shahab Vahedi <shahab@synopsys.com>
12065
12066 * MAINTAINERS (Write After Approval): Add myself.
12067
c6a42d11
CB
120682020-02-05 Christian Biesinger <cbiesinger@google.com>
12069
12070 * sparc-nat.h (struct sparc_target) <xfer_partial>: Fix base class
12071 function call.
12072
c8ecdda6
CB
120732020-02-05 Christian Biesinger <cbiesinger@google.com>
12074
12075 * ppc-nbsd-tdep.h: Fix macro name in #endif comment.
12076
f6480e70
MR
120772020-02-05 Maciej W. Rozycki <macro@wdc.com>
12078
12079 * nat/riscv-linux-tdesc.h: New file.
12080 * nat/riscv-linux-tdesc.c: New file, taking code from...
12081 * riscv-linux-nat.c (riscv_linux_nat_target::read_description):
12082 ... here.
12083 * configure.nat <linux> <riscv*>: Add nat/riscv-linux-tdesc.o to
12084 NATDEPFILES.
12085
dcc9fbc6
AB
120862020-02-04 Andrew Burgess <andrew.burgess@embecosm.com>
12087
12088 * remote-sim.c (sim_inferior_data::sim_inferior_data): Assert that
12089 we don't set the fake simulator ptid to the null_ptid.
12090
719546c4
SM
120912020-02-03 Simon Marchi <simon.marchi@efficios.com>
12092
12093 * fork-child.c (gdb_startup_inferior): Use bool instead of int.
12094 * gdbthread.h (class thread_info) <resumed>: Likewise.
12095 * infrun.c (resume_1): Likewise.
12096 (proceed): Likewise.
12097 (infrun_thread_stop_requested): Likewise.
12098 (stop_all_threads): Likewise.
12099 (handle_inferior_event): Likewise.
12100 (restart_threads): Likewise.
12101 (finish_step_over): Likewise.
12102 (keep_going_stepped_thread): Likewise.
12103 * linux-nat.c (attach_proc_task_lwp_callback): Likewise.
12104 (linux_handle_extended_wait): Likewise.
12105 * record-btrace.c (get_thread_current_frame_id): Likewise.
12106 * record-full.c (record_full_wait_1): Likewise.
12107 * remote.c (remote_target::process_initial_stop_replies): Likewise.
12108 * target.c (target_resume): Likewise.
12109 * thread.c (set_running_thread): Likewise.
12110
e409c542
AKS
121112020-02-03 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
12112
12113 * f-valprint.c (f77_print_array_1): Changed datatype of index
12114 variable to LONGEST from int to enable it to contain bound
12115 values correctly.
12116
ee98c0da
MR
121172020-02-03 Maciej W. Rozycki <macro@wdc.com>
12118
12119 * riscv-linux-nat.c [!NFPREG] (NFPREG): New macro.
12120 (supply_fpregset_regnum, fill_fpregset): Handle regset buffer
12121 offsets according to FLEN determined.
12122 (riscv_linux_nat_target::read_description): Determine FLEN
12123 dynamically.
12124 (riscv_linux_nat_target::fetch_registers): Size regset buffer
12125 according to FLEN determined.
12126 (riscv_linux_nat_target::store_registers): Likewise.
12127
aa66aac4
SV
121282020-02-01 Shahab Vahedi <shahab@synopsys.com>
12129
12130 * target-descriptions.c (tdesc_register_in_reggroup_p): Return 0
12131 when reg->group is empty and reggroup is not.
12132
fd9faca8
TT
121332020-01-31 Tom Tromey <tromey@adacore.com>
12134
12135 * ravenscar-thread.c (ravenscar_thread_target::mourn_inferior):
12136 Call beneath target's mourn_inferior after unpushing.
12137
42330a68
AB
121382020-01-31 Andrew Burgess <andrew.burgess@embecosm.com>
12139
12140 PR tui/9765
12141 * tui/tui-disasm.c (tui_find_disassembly_address): If we don't
12142 have enough lines to fill the screen, still return the lowest
12143 address we found.
12144
7a27a45b
AB
121452020-01-31 Andrew Burgess <andrew.burgess@embecosm.com>
12146
12147 * tui/tui-win.c (_initialize_tui_win): Update help text for '+',
12148 '-', '<', and '>' commands.
12149
c47f70e2
PA
121502020-01-29 Pedro Alves <palves@redhat.com>
12151 Sergio Durigan Junior <sergiodj@redhat.com>
12152
12153 * infcmd.c (construct_inferior_arguments): Assert that
12154 'argc' is greater than 0.
12155
5133a315
LM
121562020-01-29 Luis Machado <luis.machado@linaro.org>
12157
12158 * aarch64-tdep.c (BRK_INSN_MASK): Define to 0xffe0001f.
12159 (BRK_INSN_MASK): Define to 0xd4200000.
12160 (aarch64_program_breakpoint_here_p): New function.
12161 (aarch64_gdbarch_init): Set gdbarch_program_breakpoint_here_p hook.
12162 * arch-utils.c (default_program_breakpoint_here_p): Moved from
12163 breakpoint.c.
12164 * arch-utils.h (default_program_breakpoint_here_p): Moved from
12165 breakpoint.h
12166 * breakpoint.c (bp_loc_is_permanent): Changed return type to bool and
12167 call gdbarch_program_breakpoint_here_p.
12168 (program_breakpoint_here): Moved to arch-utils.c, renamed to
12169 default_program_breakpoint_here_p, changed return type to bool and
12170 simplified.
12171 * breakpoint.h (program_breakpoint_here): Moved prototype to
12172 arch-utils.h, renamed to default_program_breakpoint_here_p and changed
12173 return type to bool.
12174 * gdbarch.c: Regenerate.
12175 * gdbarch.h: Regenerate.
12176 * gdbarch.sh (program_breakpoint_here_p): New method.
12177 * infrun.c (handle_signal_stop): Call
12178 gdbarch_program_breakpoint_here_p.
12179
168f8c6b
TT
121802020-01-26 Tom Tromey <tom@tromey.com>
12181
12182 * ctfread.c (struct ctf_fp_info): Reindent.
12183 (_initialize_ctfread): Remove.
12184
128a391f
TT
121852020-01-26 Tom Tromey <tom@tromey.com>
12186
12187 * psymtab.c (partial_map_expand_apply)
12188 (psym_find_pc_sect_compunit_symtab, psym_lookup_symbol)
12189 (psymtab_to_symtab, psym_find_last_source_symtab, dump_psymtab)
12190 (psym_print_stats, psym_expand_symtabs_for_function)
12191 (psym_map_symbol_filenames, psym_map_matching_symbols)
12192 (psym_expand_symtabs_matching)
12193 (partial_symtab::read_dependencies, maintenance_info_psymtabs)
12194 (maintenance_check_psymtabs): Use new methods.
12195 * psympriv.h (struct partial_symtab) <readin_p,
12196 get_compunit_symtab>: New methods.
12197 <readin, compunit_symtab>: Remove members.
12198 (struct standard_psymtab): New.
12199 (struct legacy_psymtab): Derive from standard_psymtab.
12200 * dwarf2read.h (struct dwarf2_psymtab): Derive from
12201 standard_psymtab.
12202 * ctfread.c (struct ctf_psymtab): Derive from standard_psymtab.
12203
0494dbec
TT
122042020-01-26 Tom Tromey <tom@tromey.com>
12205
12206 * xcoffread.c (xcoff_psymtab_to_symtab_1): Call
12207 read_dependencies. Add assert.
12208 * psymtab.c (partial_symtab::read_dependencies): New method.
12209 * psympriv.h (struct partial_symtab) <read_dependencies>: New
12210 method.
12211 * mdebugread.c (psymtab_to_symtab_1): Call read_dependencies.
12212 * dwarf2read.c (dwarf2_psymtab::expand_psymtab): Call
12213 read_dependencies.
12214 * dbxread.c (dbx_psymtab_to_symtab_1): Call read_dependencies.
12215 Add assert.
12216
8566b89b
TT
122172020-01-26 Tom Tromey <tom@tromey.com>
12218
12219 * xcoffread.c (xcoff_psymtab_to_symtab_1): Change argument order.
12220 Call expand_psymtab.
12221 (xcoff_read_symtab): Call expand_psymtab.
12222 (xcoff_start_psymtab, xcoff_end_psymtab): Set
12223 legacy_expand_psymtab.
12224 * psympriv.h (struct partial_symtab) <expand_psymtab>: New
12225 method.
12226 (struct legacy_psymtab) <expand_psymtab>: Implement.
12227 <legacy_expand_psymtab>: New member.
12228 * mdebugread.c (mdebug_read_symtab): Call expand_psymtab.
12229 (parse_partial_symbols): Set legacy_expand_psymtab.
12230 (psymtab_to_symtab_1): Change argument order. Call
12231 expand_psymtab.
12232 (new_psymtab): Set legacy_expand_psymtab.
12233 * dwarf2read.h (struct dwarf2_psymtab) <expand_psymtab>: Declare.
12234 * dwarf2read.c (dwarf2_psymtab::read_symtab): Call
12235 expand_psymtab.
12236 (dwarf2_psymtab::expand_psymtab): Rename from
12237 psymtab_to_symtab_1. Call expand_psymtab.
12238 * dbxread.c (start_psymtab): Set legacy_expand_psymtab.
12239 (dbx_end_psymtab): Likewise.
12240 (dbx_psymtab_to_symtab_1): Change argument order. Call
12241 expand_psymtab.
12242 (dbx_read_symtab): Call expand_psymtab.
12243 * ctfread.c (struct ctf_psymtab) <expand_psymtab>: Declare.
12244 (ctf_psymtab::expand_psymtab): Rename from psymtab_to_symtab.
12245 (ctf_psymtab::read_symtab): Call expand_psymtab.
12246
077cbab2
TT
122472020-01-26 Tom Tromey <tom@tromey.com>
12248
12249 * xcoffread.c (xcoff_read_symtab): Remove prints. Add assert.
12250 * psymtab.c (psymtab_to_symtab): Print verbose "Reading"
12251 messages.
12252 * mdebugread.c (mdebug_read_symtab): Remove prints.
12253 * dwarf2read.c (dwarf2_psymtab::read_symtab): Remove prints. Add
12254 assert.
12255 * dbxread.c (dbx_read_symtab): Remove prints. Add assert.
12256
891813be
TT
122572020-01-26 Tom Tromey <tom@tromey.com>
12258
12259 * xcoffread.c (this_symtab_psymtab, read_xcoff_symtab)
12260 (xcoff_psymtab_to_symtab_1, xcoff_read_symtab)
12261 (xcoff_start_psymtab, xcoff_end_psymtab, scan_xcoff_symtab): Use
12262 legacy_symtab.
12263 * stabsread.h (dbx_end_psymtab): Use legacy_symtab.
12264 * psymtab.c (psymtab_to_symtab): Call method.
12265 (dump_psymtab): Update.
12266 * psympriv.h (struct partial_symtab): Add virtual destructor.
12267 <read_symtab>: New method.
12268 (struct legacy_symtab): New.
12269 * mdebugread.c (mdebug_read_symtab): Use legacy_psymtab.
12270 (struct pst_map) <pst>: Now a legacy_psymtab.
12271 (parse_procedure, parse_partial_symbols, psymtab_to_symtab_1)
12272 (new_psymtab): Use legacy_psymtab.
12273 * dwarf2read.h (struct dwarf2_psymtab): New.
12274 (struct dwarf2_per_cu_data) <psymtab>: Use it.
12275 * dwarf2read.c (dwarf2_create_include_psymtab)
12276 (dwarf2_build_include_psymtabs, create_type_unit_group)
12277 (create_partial_symtab, process_psymtab_comp_unit_reader)
12278 (build_type_psymtabs_reader, build_type_psymtab_dependencies)
12279 (set_partial_user): Use dwarf2_psymtab.
12280 (dwarf2_psymtab::read_symtab): Rename from dwarf2_read_symtab.
12281 (psymtab_to_symtab_1, process_full_comp_unit)
12282 (process_full_type_unit, dwarf2_ranges_read)
12283 (dwarf2_get_pc_bounds, psymtab_include_file_name)
12284 (dwarf_decode_lines): Use dwarf2_psymtab.
12285 * dwarf-index-write.c (psym_index_map): Use dwarf2_psymtab.
12286 (add_address_entry_worker, write_one_signatured_type)
12287 (recursively_count_psymbols, recursively_write_psymbols)
12288 (write_one_signatured_type, psyms_seen_size, write_gdbindex)
12289 (write_debug_names): Likewise.
12290 * dbxread.c (struct header_file_location): Take a legacy_psymtab.
12291 <pst>: Now a legacy_psymtab.
12292 (find_corresponding_bincl_psymtab): Return a legacy_psymtab.
12293 (read_dbx_symtab, start_psymtab, dbx_end_psymtab)
12294 (dbx_psymtab_to_symtab_1, read_ofile_symtab): Use legacy_psymtab.
12295 * ctfread.c (struct ctf_psymtab): New.
12296 (ctf_start_symtab, ctf_end_symtab, psymtab_to_symtab): Take a
12297 ctf_psymtab.
12298 (ctf_psymtab::read_symtab): Rename from ctf_read_symtab.
12299 (create_partial_symtab): Return a ctf_psymtab.
12300 (scan_partial_symbols): Update.
12301
c3693a1d
TT
123022020-01-26 Tom Tromey <tom@tromey.com>
12303
12304 * xcoffread.c (xcoff_start_psymtab): Use new.
12305 * psymtab.c (partial_symtab::partial_symtab): New constructor,
12306 renamed from start_psymtab_common.
12307 * psympriv.h (struct partial_symtab): Add new constructor.
12308 (start_psymtab_common): Don't declare.
12309 * mdebugread.c (parse_partial_symbols): Use new.
12310 * dwarf2read.c (create_partial_symtab): Use new.
12311 * dbxread.c (start_psymtab): Use new.
12312 * ctfread.c (create_partial_symtab): Use new.
12313
32caafd0
TT
123142020-01-26 Tom Tromey <tom@tromey.com>
12315
12316 * xcoffread.c (xcoff_end_psymtab): Use new.
12317 * psymtab.c (start_psymtab_common): Use new.
12318 (partial_symtab::partial_symtab): Rename from allocate_psymtab.
12319 Update.
12320 * psympriv.h (struct partial_symtab): Add parameters to
12321 constructor. Don't inline.
12322 (allocate_psymtab): Don't declare.
12323 * mdebugread.c (new_psymtab): Use new.
12324 * dwarf2read.c (dwarf2_create_include_psymtab): Use new.
12325 * dbxread.c (dbx_end_psymtab): Use new.
12326
abaa2f23
TT
123272020-01-26 Tom Tromey <tom@tromey.com>
12328
12329 * psymtab.h (class psymtab_storage) <install_psymtab>: Rename from
12330 allocate_psymtab. Update documentation.
12331 * psymtab.c (psymtab_storage::install_psymtab): Rename from
12332 allocate_psymtab. Do not use new.
12333 (allocate_psymtab): Use new. Update.
12334
6d94535f
TT
123352020-01-26 Tom Tromey <tom@tromey.com>
12336
12337 * xcoffread.c (xcoff_psymtab_to_symtab_1): Update.
12338 * psymtab.c (psym_print_stats): Update.
12339 * psympriv.h (struct partial_symtab) <readin,
12340 psymtabs_addrmap_supported, anonymous>: Now bool.
12341 * mdebugread.c (psymtab_to_symtab_1): Update.
12342 * dwarf2read.c (create_type_unit_group, create_partial_symtab)
12343 (build_type_psymtabs_reader, psymtab_to_symtab_1)
12344 (process_full_comp_unit, process_full_type_unit): Update.
12345 * dbxread.c (dbx_psymtab_to_symtab_1): Update.
12346 * ctfread.c (psymtab_to_symtab): Update.
12347
6f17252b
TT
123482020-01-26 Tom Tromey <tom@tromey.com>
12349
12350 * mdebugread.c (parse_partial_symbols): Use discard_psymtab.
12351 * psymtab.h (class psymtab_storage) <free_psymtabs>: Remove.
12352 * psymtab.c (psymtab_storage): Delete psymtabs.
12353 (psymtab_storage::allocate_psymtab): Use new.
12354 (psymtab_storage::discard_psymtab): Use delete.
12355 * psympriv.h (struct partial_symtab): Add constructor and
12356 initializers.
12357
f6f1cebc
TT
123582020-01-26 Tom Tromey <tom@tromey.com>
12359
12360 * machoread.c: Do not include psympriv.h.
12361
e47e48f6
PW
123622020-01-25 Philippe Waroquiers <philippe.waroquiers@skynet.be>
12363
12364 * NEWS: Mention the new option and the set/show commands.
12365
a2fedca9
PW
123662020-01-25 Philippe Waroquiers <philippe.waroquiers@skynet.be>
12367
12368 * exec.c (exec_file_mismatch_names, exec_file_mismatch_mode)
12369 (show_exec_file_mismatch_command, set_exec_file_mismatch_command)
12370 (validate_exec_file): New variables, enums, functions.
12371 (exec_file_locate_attach, print_section_info): Style the filenames.
12372 (_initialize_exec): Install show_exec_file_mismatch_command and
12373 set_exec_file_mismatch_command.
12374 * gdbcore.h (validate_exec_file): Declare.
12375 * infcmd.c (attach_command): Call validate_exec_file.
12376 * remote.c ( remote_target::remote_add_inferior): Likewise.
12377
7ffa82e1
AB
123782020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
12379
12380 * frame.c (find_frame_sal): Move call to get_next_frame into more
12381 inner scope.
12382 * inline-frame.c (inilne_state) <inline_state>: Update argument
12383 types.
12384 (inilne_state) <skipped_symbol>: Rename to...
12385 (inilne_state) <skipped_symbols>: ...this, and change to a vector.
12386 (skip_inline_frames): Build vector of skipped symbols and use this
12387 to reate the inline_state.
12388 (inline_skipped_symbol): Add a comment and some assertions, fetch
12389 skipped symbol from the list.
12390
3d92a3e3
AB
123912020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
12392
12393 * buildsym.c (lte_is_less_than): Delete.
12394 (buildsym_compunit::end_symtab_with_blockvector): Create local
12395 lambda function to sort line table entries, and use
12396 std::stable_sort instead of std::sort.
12397 * symtab.c (find_pc_sect_line): Skip backward over end of sequence
12398 markers when looking for a previous line.
12399
94a72be7
AB
124002020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
12401
12402 * dwarf2read.c (lnp_state_machine::record_line): Include
12403 end_sequence parameter in debug print out. Record the line if we
12404 are at an end_sequence marker even if it's not the start of a
12405 statement.
12406 * symmisc.c (maintenance_print_one_line_table): Print end of
12407 sequence markers with 'END' not '0'.
12408
53af73bf
PA
124092020-01-24 Pedro Alves <palves@redhat.com>
12410
12411 PR gdb/25410
12412 * thread.c (scoped_restore_current_thread::restore): Use
12413 switch_to_inferior_no_thread.
12414 * exec.c: Include "progspace-and-thread.h".
12415 (add_target_sections, remove_target_sections):
12416 scoped_restore_current_pspace_and_thread instead of
12417 scoped_restore_current_thread.
12418 * infrun.c (handle_vfork_child_exec_or_exit): Assign the pspace
12419 and aspace to the inferior before calling clone_program_space.
12420 Remove stale comment.
12421
3050c6f4
CB
124222020-01-24 Christian Biesinger <cbiesinger@google.com>
12423
12424 * arm-nbsd-nat.c (arm_nbsd_nat_target::fetch_registers): Rename to...
12425 (arm_netbsd_nat_target::fetch_registers): ...this.
12426 (arm_nbsd_nat_target::store_registers): Rename to...
12427 (arm_netbsd_nat_target::store_registers): ...this.
12428
73685c7e
CB
124292020-01-24 Christian Biesinger <cbiesinger@google.com>
12430
12431 * arm-nbsd-nat.c: Define _KERNTYPES to get the declaration of
12432 register_t.
12433
89203d40
CB
124342020-01-24 Christian Biesinger <cbiesinger@google.com>
12435
12436 * aarch64-fbsd-tdep.c (aarch64_fbsd_iterate_over_regset_sections):
12437 Update comment.
12438 * aarch64-linux-tdep.c (aarch64_linux_iterate_over_regset_sections):
12439 Likewise.
12440 * arm-fbsd-tdep.c (arm_fbsd_iterate_over_regset_sections): Likewise.
12441 * gdbcore.h (deprecated_add_core_fns): Update comment to point to
12442 the correct replacement (iterate_over_regset_sections).
12443 * riscv-fbsd-tdep.c (riscv_fbsd_iterate_over_regset_sections):
12444 Update comment.
12445
1ba1ac88
AB
124462020-01-24 Graham Markall <graham.markall@embecosm.com>
12447
12448 PR gdb/23718
12449 * gdb/python/python.c (execute_gdb_command): Call
12450 async_enable_stdin in catch block.
12451
f3364a6d
AB
124522020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
12453
12454 * event-loop.c (start_event_loop): Wrap async_enable_stdin with
12455 SWITCH_THRU_ALL_UIS.
12456
733d0a67
AB
124572020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
12458
12459 PR tui/9765
12460 * minsyms.c (lookup_minimal_symbol_by_pc_section): Update header
12461 comment, add extra parameter, and update to store previous symbol
12462 when appropriate.
12463 * minsyms.h (lookup_minimal_symbol_by_pc_section): Update comment,
12464 add extra parameter.
12465 * tui/tui-disasm.c (tui_disassemble): Update header comment,
12466 remove unneeded parameter, add try/catch around gdb_print_insn,
12467 rewrite to add items to asm_lines vector.
12468 (tui_find_backward_disassembly_start_address): New function.
12469 (tui_find_disassembly_address): Updated throughout.
12470 (tui_disasm_window::set_contents): Update for changes to
12471 tui_disassemble.
12472 (tui_disasm_window::do_scroll_vertical): No need to adjust the
12473 number of lines to scroll.
12474
b3b3bada
SM
124752020-01-23 Simon Marchi <simon.marchi@polymtl.ca>
12476
12477 * objfiles.h (ALL_OBJFILE_OSECTIONS): Move up.
12478 (SECT_OFF_DATA): Likewise.
12479 (SECT_OFF_RODATA): Likewise.
12480 (SECT_OFF_TEXT): Likewise.
12481 (SECT_OFF_BSS): Likewise.
12482 (struct objfile) <text_section_offset, data_section_offset>: New
12483 methods.
12484 * amd64-windows-tdep.c (amd64_windows_find_unwind_info): Use
12485 objfile::text_section_offset.
12486 * coff-pe-read.c (add_pe_forwarded_sym): Likewise.
12487 * coffread.c (coff_symtab_read): Likewise.
12488 (enter_linenos): Likewise.
12489 (process_coff_symbol): Likewise.
12490 * ctfread.c (get_objfile_text_range): Likewise.
12491 * dtrace-probe.c (dtrace_probe::get_relocated_address):
12492 Use objfile::data_section_offset.
12493 * dwarf2-frame.c (execute_cfa_program): Use
12494 objfile::text_section_offset.
12495 (dwarf2_frame_find_fde): Likewise.
12496 * dwarf2read.c (create_addrmap_from_index): Likewise.
12497 (create_addrmap_from_aranges): Likewise.
12498 (dw2_find_pc_sect_compunit_symtab): Likewise.
12499 (process_psymtab_comp_unit_reader): Likewise.
12500 (add_partial_symbol): Likewise.
12501 (add_partial_subprogram): Likewise.
12502 (process_full_comp_unit): Likewise.
12503 (read_file_scope): Likewise.
12504 (read_func_scope): Likewise.
12505 (read_lexical_block_scope): Likewise.
12506 (read_call_site_scope): Likewise.
12507 (dwarf2_rnglists_process): Likewise.
12508 (dwarf2_ranges_process): Likewise.
12509 (dwarf2_ranges_read): Likewise.
12510 (dwarf_decode_lines_1): Likewise.
12511 (new_symbol): Likewise.
12512 (dwarf2_fetch_die_loc_sect_off): Likewise.
12513 (dwarf2_per_cu_text_offset): Likewise.
12514 * hppa-bsd-tdep.c (hppabsd_find_global_pointer): Likewise.
12515 * hppa-tdep.c (read_unwind_info): Likewise.
12516 * ia64-tdep.c (ia64_find_unwind_table): Likewise.
12517 * psympriv.h (struct partial_symtab): Likewise.
12518 * psymtab.c (find_pc_sect_psymtab): Likewise.
12519 * solib-svr4.c (enable_break): Likewise.
12520 * stap-probe.c (relocate_address): Use
12521 objfile::data_section_offset.
12522 * xcoffread.c (enter_line_range): Use
12523 objfile::text_section_offset.
12524 (read_xcoff_symtab): Likewise.
12525
ab53f382
SM
125262020-01-23 Simon Marchi <simon.marchi@efficios.com>
12527
12528 * darwin-nat.c (darwin_nat_target::wait_1): Move `inf`
12529 declaration to narrower scopes.
12530
e7eee665
SM
125312020-01-23 Simon Marchi <simon.marchi@efficios.com>
12532
12533 * darwin-nat.h (struct darwin_exception_msg, enum
12534 darwin_msg_state, struct darwin_thread_info, darwin_thread_t):
12535 Move up.
12536 (class darwin_nat_target) <wait_1, check_new_threads,
12537 decode_exception_message, decode_message, stop_inferior,
12538 init_thread_list, ptrace_him, cancel_breakpoint>: Declare.
12539 * darwin-nat.c (darwin_check_new_threads): Rename to...
12540 (darwin_nat_target::check_new_threads): ... this.
12541 (darwin_suspend_inferior_it): Remove.
12542 (darwin_decode_exception_message): Rename to...
12543 (darwin_nat_target::decode_exception_message): ... this.
12544 (darwin_nat_target::resume): Pass target to find_inferior_ptid.
12545 (darwin_decode_message): Rename to...
12546 (darwin_nat_target::decode_message): ... this.
12547 (cancel_breakpoint): Rename to...
12548 (darwin_nat_target::cancel_breakpoint): ... this.
12549 (darwin_wait): Rename to...
12550 (darwin_nat_target::wait_1): ... this. Use range-based for loop
12551 instead of iterate_over_inferiors.
12552 (darwin_nat_target::wait): Call wait_1 instead of darwin_wait.
12553 (darwin_stop_inferior): Rename to...
12554 (darwin_nat_target::stop_inferior): ... this.
12555 (darwin_nat_target::kill): Call wait_1 instead of darwin_wait.
12556 (darwin_init_thread_list): Rename to...
12557 (darwin_nat_target::init_thread_list): ... this.
12558 (darwin_ptrace_him): Rename to...
12559 (darwin_nat_target::ptrace_him): ... this.
12560 (darwin_nat_target::create_inferior): Pass lambda function to
12561 fork_inferior.
12562 (darwin_nat_target::detach): Call stop_inferior instead of
12563 darwin_stop_inferior.
12564 * fork-inferior.h (fork_inferior): Change init_trace_fun
12565 parameter to gdb::function_view.
12566 * fork-inferior.c (fork_inferior): Likewise.
12567
c162ed3e
HD
125682020-01-23 Hannes Domani <ssbssa@yahoo.de>
12569
12570 * i386-cygwin-tdep.c (core_process_module_section): Update.
12571 * windows-nat.c (struct lm_info_windows): Add text_offset.
12572 (windows_xfer_shared_libraries): Update.
12573 * windows-tdep.c (windows_xfer_shared_library):
12574 Add text_offset_cached argument.
12575 * windows-tdep.h (windows_xfer_shared_library): Update.
12576
a1237872
SM
125772020-01-21 Simon Marchi <simon.marchi@efficios.com>
12578
12579 * gdbarch.sh: Add declaration for _initialize_gdbarch.
12580
b3ee6dd9
SM
125812020-01-21 Simon Marchi <simon.marchi@efficios.com>
12582
12583 * remote-sim.c (check_for_duplicate_sim_descriptor): Remove.
12584 (get_sim_inferior_data): Remove use of iterate_over_inferiors,
12585 replace with range-based for.
12586 (gdbsim_interrupt_inferior): Remove.
12587 (gdbsim_target::interrupt): Replace iterate_over_inferiors use
12588 with a range-based for. Inline code from
12589 gdbsim_interrupt_inferior.
12590
f9fac3c8
SM
125912020-01-21 Simon Marchi <simon.marchi@efficios.com>
12592
12593 * infrun.c (proceed): Fix indentation.
12594
f6474de9
TT
125952020-01-21 Tom Tromey <tromey@adacore.com>
12596
12597 * source-cache.c (source_cache::ensure): Call ext_lang_colorize.
12598 * python/python.c (python_extension_ops): Update.
12599 (gdbpy_colorize): New function.
12600 * python/lib/gdb/__init__.py (colorize): New function.
12601 * extension.h (ext_lang_colorize): Declare.
12602 * extension.c (ext_lang_colorize): New function.
12603 * extension-priv.h (struct extension_language_ops) <colorize>: New
12604 member.
12605 * cli/cli-style.c (_initialize_cli_style): Update help text.
12606
f0c702d4
LM
126072020-01-21 Luis Machado <luis.machado@linaro.org>
12608
12609 * aarch64-tdep.c (struct aarch64_displaced_step_closure)
12610 <cond>: Change type to bool.
12611 (aarch64_displaced_step_b_cond): Update cond to use bool type.
12612 (aarch64_displaced_step_cb): Likewise.
12613 (aarch64_displaced_step_tb): Likewise.
12614
1ab139e5
LM
126152020-01-21 Luis Machado <luis.machado@linaro.org>
12616
12617 * aarch64-tdep.c (aarch64_displaced_step_fixup): Add more debugging
12618 output.
12619
0c271889
LM
126202020-01-21 Luis Machado <luis.machado@linaro.org>
12621
12622 * aarch64-tdep.c (struct aarch64_displaced_step_closure )
12623 <pc_adjust>: Adjust the documentation.
12624 (aarch64_displaced_step_fixup): Check if PC really moved before
12625 adjusting it.
12626
4d89c1c7
TT
126272020-01-19 Tom Tromey <tom@tromey.com>
12628
12629 * disasm.c (~gdb_disassembler): New destructor.
12630 (gdb_buffered_insn_length): Call disassemble_free_target.
12631 * disasm.h (class gdb_disassembler): Declare destructor. Use
12632 DISABLE_COPY_AND_ASSIGN.
12633
c0ab21c2
TT
126342020-01-19 Tom Tromey <tom@tromey.com>
12635
12636 * dwarf2read.c (abbrev_table_up): Move typedef earlier.
12637 (die_reader_func_ftype): Remove.
12638 (cutu_reader): New class.
12639 (dw2_get_file_names_reader): Remove "data" parameter.
12640 (dw2_get_file_names): Use cutu_reader.
12641 (create_debug_type_hash_table): Update.
12642 (read_cutu_die_from_dwo): Update comment.
12643 (lookup_dwo_unit): Add dwo_name parameter.
12644 (cutu_reader::init_tu_and_read_dwo_dies): Now a method. Remove
12645 die_reader_func_ftype and data parameters.
12646 (cutu_reader::cutu_reader): Rename from init_cutu_and_read_dies.
12647 Remove die_reader_func_ftype and data parameters.
12648 (~cutu_reader): New; from init_cutu_and_read_dies.
12649 (cutu_reader::cutu_reader): Rename from
12650 init_cutu_and_read_dies_no_follow. Remove die_reader_func_ftype
12651 and data parameters.
12652 (init_cutu_and_read_dies_simple): Remove.
12653 (struct process_psymtab_comp_unit_data): Remove.
12654 (process_psymtab_comp_unit_reader): Remove data parameter; add
12655 want_partial_unit and pretend_language parameters.
12656 (process_psymtab_comp_unit): Use cutu_reader.
12657 (build_type_psymtabs_reader): Remove data parameter.
12658 (build_type_psymtabs_1): Use cutu_reader.
12659 (process_skeletonless_type_unit): Likewise.
12660 (load_partial_comp_unit_reader): Remove.
12661 (load_partial_comp_unit): Use cutu_reader.
12662 (load_full_comp_unit_reader): Remove.
12663 (load_full_comp_unit): Use cutu_reader.
12664 (struct create_dwo_cu_data): Remove.
12665 (create_dwo_cu_reader): Remove datap parameter; add dwo_file and
12666 dwo_unit parameters.
12667 (create_cus_hash_table): Use cutu_reader.
12668 (struct dwarf2_read_addr_index_data): Remove.
12669 (dwarf2_read_addr_index_reader): Remove.
12670 (dwarf2_read_addr_index): Use cutu_reader.
12671 (read_signatured_type_reader): Remove.
12672 (read_signatured_type): Use cutu_reader.
12673
45bbae5c
TT
126742020-01-19 Tom Tromey <tom@tromey.com>
12675
12676 * tui/tui.c (tui_show_assembly): Use tui_suppress_output.
12677 * tui/tui-wingeneral.h (class tui_suppress_output): New.
12678 (tui_wrefresh): Declare.
12679 * tui/tui-wingeneral.c (suppress_output): New global.
12680 (tui_suppress_output, ~tui_suppress_output): New constructor and
12681 destructor.
12682 (tui_wrefresh): New function.
12683 (tui_gen_win_info::refresh_window): Use tui_wrefresh.
12684 (tui_gen_win_info::make_window): Call wnoutrefresh when needed.
12685 * tui/tui-regs.h (struct tui_data_window) <no_refresh>: Declare
12686 method.
12687 * tui/tui-regs.c (tui_data_window::erase_data_content): Call
12688 tui_wrefresh.
12689 (tui_data_window::no_refresh): New method.
12690 (tui_data_item_window::refresh_window): Call tui_wrefresh.
12691 (tui_reg_command): Use tui_suppress_output
12692 * tui/tui-layout.c (tui_set_layout): Use tui_suppress_output.
12693 * tui/tui-data.h (struct tui_gen_win_info) <no_refresh>: New
12694 method.
12695 * tui/tui-command.c (tui_refresh_cmd_win): Call tui_wrefresh.
12696
4f13c1c0
TT
126972020-01-19 Tom Tromey <tom@tromey.com>
12698
12699 * tui/tui-winsource.c (tui_update_source_windows_with_line):
12700 Handle case where symtab is null.
12701
fa47e446
SM
127022020-01-19 Simon Marchi <simon.marchi@polymtl.ca>
12703
12704 * linux-fork.c (one_fork_p): Simplify.
12705
26f42329
SM
127062020-01-17 Simon Marchi <simon.marchi@efficios.com>
12707
12708 * top.c (struct qt_args): Remove.
12709 (kill_or_detach): Change return type to void, replace `void *`
12710 parameter with a proper one.
12711 (print_inferior_quit_action): Likewise.
12712 (quit_confirm): Use range-based for loop to iterate over inferiors.
12713 (quit_force): Likewise.
12714
a9ac81b1
SM
127152020-01-17 Simon Marchi <simon.marchi@efficios.com>
12716
12717 * mi/mi-main.c (run_one_inferior): Change return type to void, replace
12718 `void *` parameter with proper parameters.
12719 (mi_cmd_exec_run): Use range-based loop to iterate over inferiors.
12720 (print_one_inferior): Change return type to void, replace `void *`
12721 parameter with proper parameters.
12722 (mi_cmd_list_thread_groups): Use range-based loop to iterate over
12723 inferiors.
12724 (get_other_inferior): Remove.
12725 (mi_cmd_remove_inferior): Use range-based loop to iterate over
12726 inferiors.
12727
788eca49
SM
127282020-01-17 Simon Marchi <simon.marchi@efficios.com>
12729
12730 * mi/mi-interp.c (report_initial_inferior): Remove.
12731 (mi_interp::init): Use range-based for to iterate over inferiors.
12732
d9bc85b6
SM
127332020-01-17 Simon Marchi <simon.marchi@efficios.com>
12734
12735 * python/py-inferior.c (build_inferior_list): Remove.
12736 (gdbpy_ref): Use range-based for loop to iterate over inferiors.
12737
40c94099
CB
127382020-01-16 Christian Biesinger <cbiesinger@google.com>
12739
12740 * btrace.c (btrace_compute_ftrace_1): Fix spelling error (Unkown).
12741 (btrace_stitch_trace): Likewise.
12742 * charset.c (intermediate_encoding): Likewise (vaild).
12743 * nat/linux-btrace.c (linux_read_pt): Likewise (Unkown).
12744 * python/py-record-btrace.c (struct PyMethodDef): Likewise (occurences).
12745 * record-btrace.c (record_btrace_print_conf): Likewise (unkown).
12746
e0cdfe3c
HD
127472020-01-16 Hannes Domani <ssbssa@yahoo.de>
12748
12749 * windows-tdep.c (windows_get_tlb_type):
12750 Add rtl_user_process_parameters type.
12751
790f1718 127522020-01-16 Pedro Alves <palves@redhat.com>
aac66a4c 12753 Norbert Lange <nolange79@gmail.com>
790f1718
PA
12754
12755 PR build/24805
12756 * gdbsupport/gdb_proc_service.h (PS_EXPORT): New.
12757 (ps_get_thread_area, ps_getpid, ps_lcontinue, ps_lgetfpregs)
12758 (ps_lgetregs, ps_lsetfpregs, ps_lsetregs, ps_lstop, ps_pcontinue)
12759 (ps_pdread, ps_pdwrite, ps_pglobal_lookup, ps_pstop, ps_ptread)
12760 (ps_ptwrite, ps_lgetxregs, ps_lgetxregsize, ps_lsetxregs)
12761 (ps_plog): Redeclare exported functions with default visibility.
12762
3112ed97
NA
127632020-01-16 Nitika Achra <Nitika.Achra@amd.com>
12764
12765 * dwarf2loc.c (decode_debug_loclists_addresses): Handle
12766 DW_LLE_base_addressx, DW_LLE_startx_length, DW_LLE_start_length.
12767
8dc3273e
SM
127682020-01-15 Simon Marchi <simon.marchi@efficios.com>
12769
12770 * infcmd.c (post_create_inferior): Use get_thread_regcache
12771 instead of get_current_regcache.
12772
ff47f4f0
TT
127732020-01-14 Tom Tromey <tom@tromey.com>
12774
12775 PR symtab/12535:
12776 * python/python.c (gdbpy_decode_line): Treat empty string the same
12777 as no argument.
12778
975f45b7
TT
127792020-01-14 Tom Tromey <tom@tromey.com>
12780
12781 * Makefile.in (CLIBS): Remove second use of $(LIBIBERTY).
12782
25e57356
TT
127832020-01-14 Tom Tromey <tom@tromey.com>
12784
12785 * nat/linux-btrace.c: Don't include <config.h>.
12786 * nat/linux-ptrace.c: Don't include <config.h>.
12787 * nat/x86-linux-dregs.c: Don't include <config.h>.
12788
05ea2a05
TT
127892020-01-14 Tom Tromey <tom@tromey.com>
12790
12791 * configure: Rebuild.
12792 * configure.ac: Move many checks to ../gdbsupport/common.m4.
12793
01027315
TT
127942020-01-14 Tom Tromey <tom@tromey.com>
12795
12796 * nat/x86-linux-dregs.c: Include configh.h.
12797 * nat/linux-ptrace.c: Include configh.h.
12798 * nat/linux-btrace.c: Include configh.h.
12799 * defs.h: Include config.h, bfd.h.
12800 * configure.ac: Don't source common.host.
12801 (CONFIG_OBS, CONFIG_SRCS): Remove gdbsupport files.
12802 * configure: Rebuild.
12803 * acinclude.m4: Update path.
12804 * Makefile.in (SUPPORT, LIBSUPPORT, INCSUPPORT): New variables.
12805 (CONFIG_SRC_SUBDIR): Remove gdbsupport.
12806 (INTERNAL_CFLAGS_BASE): Add INCSUPPORT.
12807 (CLIBS): Add LIBSUPPORT.
12808 (CDEPS): Likewise.
12809 (COMMON_SFILES): Remove gdbsupport files.
12810 (HFILES_NO_SRCDIR): Likewise.
12811 (stamp-version): Update path to create-version.sh.
12812 (ALLDEPFILES): Remove gdbsupport files.
12813
b2ceabe8
TT
128142020-01-14 Tom Tromey <tom@tromey.com>
12815
12816 * gdbsupport/common.m4 (GDB_AC_COMMON): Define WIN32APILIBS and
12817 USE_WIN32API when needed.
12818 * configure.ac (USE_WIN32API): Don't define.
12819 (WIN32LIBS): Use WIN32APILIBS.
12820 * configure: Rebuild.
12821
25c51f71
TT
128222020-01-14 Tom Tromey <tom@tromey.com>
12823
12824 * configure: Rebuild.
12825 * gdbsupport/common.m4 (GDB_AC_COMMON): Fix indentation.
12826
717c684d
BE
128272020-01-14 Bernd Edlinger <bernd.edlinger@hotmail.de>
12828
12829 * skip.c (skip_function_command): Make skip w/o arguments use the
12830 name of the inlined function if pc is inside any inlined function.
12831
7da6a5b9
LM
128322020-01-14 Luis Machado <luis.machado@linaro.org>
12833
12834 * inf-ptrace.c (inf_ptrace_target::resume): Update comments.
12835 * infrun.c (resume_1): Likewise.
12836 (handle_inferior_event): Remove stale comment.
12837 * linux-nat.c (linux_nat_target::resume): Update comments.
12838 (save_stop_reason): Likewise.
12839 (linux_nat_filter_event): Likewise.
12840 * linux-nat.h (struct lwp_info) <stop_pc>, <stop_reason>: Likewise.
12841
44e4c775
AB
128422020-01-13 Andrew Burgess <andrew.burgess@embecosm.com>
12843
12844 * elfread.c (record_minimal_symbol): Set section index to 0 for
12845 non-allocatable sections.
12846
18a8505e
AT
12847
128482020-01-13 Ali Tamur <tamur@google.com>
12849
12850 * dwarf2read.c (dwarf2_debug_sections): Add debug_str_offsets sections.
12851 (dwarf2_cu): Add str_offsets_base field. Change the type of addr_base
12852 to gdb::optional. Update comments.
12853 (dwo_file): Update comments.
12854 (read_attribute): Update API to take an additional out parameter,
12855 need_reprocess. This is used to mark attributes that need other
12856 attributes (e.g. str_offsets_base) for correct computation which may not
12857 have been read yet.
12858 (read_attribute_reprocess): New function declaration.
12859 (read_addr_index): Likewise.
12860 (read_dwo_str_index): Likewise.
12861 (read_stub_str_index): Likewise.
12862 (dwarf2_per_objfile::locate_sections): Handle debug_str_offsets section.
12863 (lookup_addr_base): New function definition.
12864 (lookup_ranges_base): Likewise.
12865 (read_cutu_die_from_dwo): Use the new functions: lookup_addr_base,
12866 lookup_ranges_base.
12867 (init_cutu_and_read_dies): Update comments.
12868 (init_cutu_and_read_dies_no_follow): Change API to take parent compile
12869 unit. This is used to inherit parent's str_offsets_base and addr_base.
12870 Update comments.
12871 (init_cutu_and_read_dies_simple): Reflect API changes.
12872 (skip_one_die): Reflect API changes. Handle DW_FORM_rnglistx.
12873 (create_cus_hash_table): Change API to take parent compile unit.
12874 Reflect API changes.
12875 (open_and_init_dwo_file): Reflect API changes.
12876 (dwarf2_get_pc_bounds): Update comments.
12877 (dwarf2_record_block_ranges): Likewise.
12878 (read_full_die_1): Change implementation to reprocess attributes that
12879 need str_offsets_base and addr_base.
12880 (partial_die_info::read): Likewise.
12881 (read_attribute_reprocess): New function definition.
12882 (read_attribute_value): Change API to take an additional out parameter,
12883 need_reprocess. Handle DW_FORM_rnglistx. No longer trigger an error
12884 when a non-dwo compile unit has index based attributes.
12885 (read_attribute): Reflect API changes.
12886 (read_addr_index_1): Reflect API changes. Update comments.
12887 (dwarf2_read_addr_index_data): Reflect API changes.
12888 (dwarf2_read_addr_index): Likewise.
12889 (read_str_index): Change API and implementation. This becomes a helper
12890 to be used by the new string index related methods. Update error
12891 message and comments.
12892 (read_dwo_str_index): New function definition.
12893 (read_stub_str_index): Likewise.
12894 * dwarf2read.h (dwarf2_per_objfile): Add str_offsets field.
12895 * symfile.h (dwarf2_debug_sections): Likewise.
12896 * xcoffread.c (dwarf2_debug_sections): Likewise.
12897
0cac9354
SM
128982020-01-13 Simon Marchi <simon.marchi@efficios.com>
12899
12900 * gdbcore.h (struct core_fns) <core_read_registers>: Change
12901 core_reg_sect type to gdb_byte *.
12902 * arm-nbsd-nat.c (fetch_elfcore_registers): Likewise.
12903 * cris-tdep.c (fetch_core_registers): Likewise.
12904 * corelow.c (core_target::get_core_register_section): Change
12905 type of `contents` to gdb::byte_vector.
12906
9a6d629c
AB
129072020-01-13 Andrew Burgess <andrew.burgess@embecosm.com>
12908
12909 * tui/tui-wingeneral.c (box_win): Position the title in the center
12910 of the border.
12911
d8b2f9e3
SM
129122020-01-13 Simon Marchi <simon.marchi@polymtl.ca>
12913
12914 * corelow.c (core_target::get_core_register_section): Use
12915 std::vector instead of alloca.
12916
bb564c58
SM
129172020-01-13 Simon Marchi <simon.marchi@efficios.com>
12918
12919 * warning.m4: Add -Wmissing-declarations to build_warnings.
12920 * configure: Re-generate.
12921
6b366111
SM
129222020-01-13 Simon Marchi <simon.marchi@efficios.com>
12923
12924 * python/python.c (init__gdb_module): Add declaration.
12925
6c265988
SM
129262020-01-13 Simon Marchi <simon.marchi@efficios.com>
12927
12928 * aarch64-fbsd-nat.c (_initialize_aarch64_fbsd_nat): Add declaration.
12929 * aarch64-fbsd-tdep.c (_initialize_aarch64_fbsd_tdep): Add declaration.
12930 * aarch64-linux-nat.c (_initialize_aarch64_linux_nat): Add declaration.
12931 * aarch64-linux-tdep.c (_initialize_aarch64_linux_tdep): Add declaration.
12932 * aarch64-newlib-tdep.c (_initialize_aarch64_newlib_tdep): Add declaration.
12933 * aarch64-tdep.c (_initialize_aarch64_tdep): Add declaration.
12934 * ada-exp.y (_initialize_ada_exp): Add declaration.
12935 * ada-lang.c (_initialize_ada_language): Add declaration.
12936 * ada-tasks.c (_initialize_tasks): Add declaration.
12937 * agent.c (_initialize_agent): Add declaration.
12938 * aix-thread.c (_initialize_aix_thread): Add declaration.
12939 * alpha-bsd-nat.c (_initialize_alphabsd_nat): Add declaration.
12940 * alpha-linux-nat.c (_initialize_alpha_linux_nat): Add declaration.
12941 * alpha-linux-tdep.c (_initialize_alpha_linux_tdep): Add declaration.
12942 * alpha-nbsd-tdep.c (_initialize_alphanbsd_tdep): Add declaration.
12943 * alpha-obsd-tdep.c (_initialize_alphaobsd_tdep): Add declaration.
12944 * alpha-tdep.c (_initialize_alpha_tdep): Add declaration.
12945 * amd64-darwin-tdep.c (_initialize_amd64_darwin_tdep): Add declaration.
12946 * amd64-dicos-tdep.c (_initialize_amd64_dicos_tdep): Add declaration.
12947 * amd64-fbsd-nat.c (_initialize_amd64fbsd_nat): Add declaration.
12948 * amd64-fbsd-tdep.c (_initialize_amd64fbsd_tdep): Add declaration.
12949 * amd64-linux-nat.c (_initialize_amd64_linux_nat): Add declaration.
12950 * amd64-linux-tdep.c (_initialize_amd64_linux_tdep): Add declaration.
12951 * amd64-nbsd-nat.c (_initialize_amd64nbsd_nat): Add declaration.
12952 * amd64-nbsd-tdep.c (_initialize_amd64nbsd_tdep): Add declaration.
12953 * amd64-obsd-nat.c (_initialize_amd64obsd_nat): Add declaration.
12954 * amd64-obsd-tdep.c (_initialize_amd64obsd_tdep): Add declaration.
12955 * amd64-sol2-tdep.c (_initialize_amd64_sol2_tdep): Add declaration.
12956 * amd64-tdep.c (_initialize_amd64_tdep): Add declaration.
12957 * amd64-windows-nat.c (_initialize_amd64_windows_nat): Add declaration.
12958 * amd64-windows-tdep.c (_initialize_amd64_windows_tdep): Add declaration.
12959 * annotate.c (_initialize_annotate): Add declaration.
12960 * arc-newlib-tdep.c (_initialize_arc_newlib_tdep): Add declaration.
12961 * arc-tdep.c (_initialize_arc_tdep): Add declaration.
12962 * arch-utils.c (_initialize_gdbarch_utils): Add declaration.
12963 * arm-fbsd-nat.c (_initialize_arm_fbsd_nat): Add declaration.
12964 * arm-fbsd-tdep.c (_initialize_arm_fbsd_tdep): Add declaration.
12965 * arm-linux-nat.c (_initialize_arm_linux_nat): Add declaration.
12966 * arm-linux-tdep.c (_initialize_arm_linux_tdep): Add declaration.
12967 * arm-nbsd-nat.c (_initialize_arm_netbsd_nat): Add declaration.
12968 * arm-nbsd-tdep.c (_initialize_arm_netbsd_tdep): Add declaration.
12969 * arm-obsd-tdep.c (_initialize_armobsd_tdep): Add declaration.
12970 * arm-pikeos-tdep.c (_initialize_arm_pikeos_tdep): Add declaration.
12971 * arm-symbian-tdep.c (_initialize_arm_symbian_tdep): Add declaration.
12972 * arm-tdep.c (_initialize_arm_tdep): Add declaration.
12973 * arm-wince-tdep.c (_initialize_arm_wince_tdep): Add declaration.
12974 * auto-load.c (_initialize_auto_load): Add declaration.
12975 * auxv.c (_initialize_auxv): Add declaration.
12976 * avr-tdep.c (_initialize_avr_tdep): Add declaration.
12977 * ax-gdb.c (_initialize_ax_gdb): Add declaration.
12978 * bfin-linux-tdep.c (_initialize_bfin_linux_tdep): Add declaration.
12979 * bfin-tdep.c (_initialize_bfin_tdep): Add declaration.
12980 * break-catch-sig.c (_initialize_break_catch_sig): Add declaration.
12981 * break-catch-syscall.c (_initialize_break_catch_syscall): Add declaration.
12982 * break-catch-throw.c (_initialize_break_catch_throw): Add declaration.
12983 * breakpoint.c (_initialize_breakpoint): Add declaration.
12984 * bsd-uthread.c (_initialize_bsd_uthread): Add declaration.
12985 * btrace.c (_initialize_btrace): Add declaration.
12986 * charset.c (_initialize_charset): Add declaration.
12987 * cli/cli-cmds.c (_initialize_cli_cmds): Add declaration.
12988 * cli/cli-dump.c (_initialize_cli_dump): Add declaration.
12989 * cli/cli-interp.c (_initialize_cli_interp): Add declaration.
12990 * cli/cli-logging.c (_initialize_cli_logging): Add declaration.
12991 * cli/cli-script.c (_initialize_cli_script): Add declaration.
12992 * cli/cli-style.c (_initialize_cli_style): Add declaration.
12993 * coff-pe-read.c (_initialize_coff_pe_read): Add declaration.
12994 * coffread.c (_initialize_coffread): Add declaration.
12995 * compile/compile-cplus-types.c (_initialize_compile_cplus_types): Add declaration.
12996 * compile/compile.c (_initialize_compile): Add declaration.
12997 * complaints.c (_initialize_complaints): Add declaration.
12998 * completer.c (_initialize_completer): Add declaration.
12999 * copying.c (_initialize_copying): Add declaration.
13000 * corefile.c (_initialize_core): Add declaration.
13001 * corelow.c (_initialize_corelow): Add declaration.
13002 * cp-abi.c (_initialize_cp_abi): Add declaration.
13003 * cp-namespace.c (_initialize_cp_namespace): Add declaration.
13004 * cp-support.c (_initialize_cp_support): Add declaration.
13005 * cp-valprint.c (_initialize_cp_valprint): Add declaration.
13006 * cris-linux-tdep.c (_initialize_cris_linux_tdep): Add declaration.
13007 * cris-tdep.c (_initialize_cris_tdep): Add declaration.
13008 * csky-linux-tdep.c (_initialize_csky_linux_tdep): Add declaration.
13009 * csky-tdep.c (_initialize_csky_tdep): Add declaration.
13010 * ctfread.c (_initialize_ctfread): Add declaration.
13011 * d-lang.c (_initialize_d_language): Add declaration.
13012 * darwin-nat-info.c (_initialize_darwin_info_commands): Add declaration.
13013 * darwin-nat.c (_initialize_darwin_nat): Add declaration.
13014 * dbxread.c (_initialize_dbxread): Add declaration.
13015 * dcache.c (_initialize_dcache): Add declaration.
13016 * disasm-selftests.c (_initialize_disasm_selftests): Add declaration.
13017 * disasm.c (_initialize_disasm): Add declaration.
13018 * dtrace-probe.c (_initialize_dtrace_probe): Add declaration.
13019 * dummy-frame.c (_initialize_dummy_frame): Add declaration.
13020 * dwarf-index-cache.c (_initialize_index_cache): Add declaration.
13021 * dwarf-index-write.c (_initialize_dwarf_index_write): Add declaration.
13022 * dwarf2-frame-tailcall.c (_initialize_tailcall_frame): Add declaration.
13023 * dwarf2-frame.c (_initialize_dwarf2_frame): Add declaration.
13024 * dwarf2expr.c (_initialize_dwarf2expr): Add declaration.
13025 * dwarf2loc.c (_initialize_dwarf2loc): Add declaration.
13026 * dwarf2read.c (_initialize_dwarf2_read): Add declaration.
13027 * elfread.c (_initialize_elfread): Add declaration.
13028 * exec.c (_initialize_exec): Add declaration.
13029 * extension.c (_initialize_extension): Add declaration.
13030 * f-lang.c (_initialize_f_language): Add declaration.
13031 * f-valprint.c (_initialize_f_valprint): Add declaration.
13032 * fbsd-nat.c (_initialize_fbsd_nat): Add declaration.
13033 * fbsd-tdep.c (_initialize_fbsd_tdep): Add declaration.
13034 * filesystem.c (_initialize_filesystem): Add declaration.
13035 * findcmd.c (_initialize_mem_search): Add declaration.
13036 * findvar.c (_initialize_findvar): Add declaration.
13037 * fork-child.c (_initialize_fork_child): Add declaration.
13038 * frame-base.c (_initialize_frame_base): Add declaration.
13039 * frame-unwind.c (_initialize_frame_unwind): Add declaration.
13040 * frame.c (_initialize_frame): Add declaration.
13041 * frv-linux-tdep.c (_initialize_frv_linux_tdep): Add declaration.
13042 * frv-tdep.c (_initialize_frv_tdep): Add declaration.
13043 * ft32-tdep.c (_initialize_ft32_tdep): Add declaration.
13044 * gcore.c (_initialize_gcore): Add declaration.
13045 * gdb-demangle.c (_initialize_gdb_demangle): Add declaration.
13046 * gdb_bfd.c (_initialize_gdb_bfd): Add declaration.
13047 * gdbarch-selftests.c (_initialize_gdbarch_selftests): Add declaration.
13048 * gdbarch.c (_initialize_gdbarch): Add declaration.
13049 * gdbtypes.c (_initialize_gdbtypes): Add declaration.
13050 * gnu-nat.c (_initialize_gnu_nat): Add declaration.
13051 * gnu-v2-abi.c (_initialize_gnu_v2_abi): Add declaration.
13052 * gnu-v3-abi.c (_initialize_gnu_v3_abi): Add declaration.
13053 * go-lang.c (_initialize_go_language): Add declaration.
13054 * go32-nat.c (_initialize_go32_nat): Add declaration.
13055 * guile/guile.c (_initialize_guile): Add declaration.
13056 * h8300-tdep.c (_initialize_h8300_tdep): Add declaration.
13057 * hppa-linux-nat.c (_initialize_hppa_linux_nat): Add declaration.
13058 * hppa-linux-tdep.c (_initialize_hppa_linux_tdep): Add declaration.
13059 * hppa-nbsd-nat.c (_initialize_hppanbsd_nat): Add declaration.
13060 * hppa-nbsd-tdep.c (_initialize_hppanbsd_tdep): Add declaration.
13061 * hppa-obsd-nat.c (_initialize_hppaobsd_nat): Add declaration.
13062 * hppa-obsd-tdep.c (_initialize_hppabsd_tdep): Add declaration.
13063 * hppa-tdep.c (_initialize_hppa_tdep): Add declaration.
13064 * i386-bsd-nat.c (_initialize_i386bsd_nat): Add declaration.
13065 * i386-cygwin-tdep.c (_initialize_i386_cygwin_tdep): Add declaration.
13066 * i386-darwin-nat.c (_initialize_i386_darwin_nat): Add declaration.
13067 * i386-darwin-tdep.c (_initialize_i386_darwin_tdep): Add declaration.
13068 * i386-dicos-tdep.c (_initialize_i386_dicos_tdep): Add declaration.
13069 * i386-fbsd-nat.c (_initialize_i386fbsd_nat): Add declaration.
13070 * i386-fbsd-tdep.c (_initialize_i386fbsd_tdep): Add declaration.
13071 * i386-gnu-nat.c (_initialize_i386gnu_nat): Add declaration.
13072 * i386-gnu-tdep.c (_initialize_i386gnu_tdep): Add declaration.
13073 * i386-go32-tdep.c (_initialize_i386_go32_tdep): Add declaration.
13074 * i386-linux-nat.c (_initialize_i386_linux_nat): Add declaration.
13075 * i386-linux-tdep.c (_initialize_i386_linux_tdep): Add declaration.
13076 * i386-nbsd-nat.c (_initialize_i386nbsd_nat): Add declaration.
13077 * i386-nbsd-tdep.c (_initialize_i386nbsd_tdep): Add declaration.
13078 * i386-nto-tdep.c (_initialize_i386nto_tdep): Add declaration.
13079 * i386-obsd-nat.c (_initialize_i386obsd_nat): Add declaration.
13080 * i386-obsd-tdep.c (_initialize_i386obsd_tdep): Add declaration.
13081 * i386-sol2-nat.c (_initialize_amd64_sol2_nat): Add declaration.
13082 * i386-sol2-tdep.c (_initialize_i386_sol2_tdep): Add declaration.
13083 * i386-tdep.c (_initialize_i386_tdep): Add declaration.
13084 * i386-windows-nat.c (_initialize_i386_windows_nat): Add declaration.
13085 * ia64-libunwind-tdep.c (_initialize_libunwind_frame): Add declaration.
13086 * ia64-linux-nat.c (_initialize_ia64_linux_nat): Add declaration.
13087 * ia64-linux-tdep.c (_initialize_ia64_linux_tdep): Add declaration.
13088 * ia64-tdep.c (_initialize_ia64_tdep): Add declaration.
13089 * ia64-vms-tdep.c (_initialize_ia64_vms_tdep): Add declaration.
13090 * infcall.c (_initialize_infcall): Add declaration.
13091 * infcmd.c (_initialize_infcmd): Add declaration.
13092 * inflow.c (_initialize_inflow): Add declaration.
13093 * infrun.c (_initialize_infrun): Add declaration.
13094 * interps.c (_initialize_interpreter): Add declaration.
13095 * iq2000-tdep.c (_initialize_iq2000_tdep): Add declaration.
13096 * jit.c (_initialize_jit): Add declaration.
13097 * language.c (_initialize_language): Add declaration.
13098 * linux-fork.c (_initialize_linux_fork): Add declaration.
13099 * linux-nat.c (_initialize_linux_nat): Add declaration.
13100 * linux-tdep.c (_initialize_linux_tdep): Add declaration.
13101 * linux-thread-db.c (_initialize_thread_db): Add declaration.
13102 * lm32-tdep.c (_initialize_lm32_tdep): Add declaration.
13103 * m2-lang.c (_initialize_m2_language): Add declaration.
13104 * m32c-tdep.c (_initialize_m32c_tdep): Add declaration.
13105 * m32r-linux-nat.c (_initialize_m32r_linux_nat): Add declaration.
13106 * m32r-linux-tdep.c (_initialize_m32r_linux_tdep): Add declaration.
13107 * m32r-tdep.c (_initialize_m32r_tdep): Add declaration.
13108 * m68hc11-tdep.c (_initialize_m68hc11_tdep): Add declaration.
13109 * m68k-bsd-nat.c (_initialize_m68kbsd_nat): Add declaration.
13110 * m68k-bsd-tdep.c (_initialize_m68kbsd_tdep): Add declaration.
13111 * m68k-linux-nat.c (_initialize_m68k_linux_nat): Add declaration.
13112 * m68k-linux-tdep.c (_initialize_m68k_linux_tdep): Add declaration.
13113 * m68k-tdep.c (_initialize_m68k_tdep): Add declaration.
13114 * machoread.c (_initialize_machoread): Add declaration.
13115 * macrocmd.c (_initialize_macrocmd): Add declaration.
13116 * macroscope.c (_initialize_macroscope): Add declaration.
13117 * maint-test-options.c (_initialize_maint_test_options): Add declaration.
13118 * maint-test-settings.c (_initialize_maint_test_settings): Add declaration.
13119 * maint.c (_initialize_maint_cmds): Add declaration.
13120 * mdebugread.c (_initialize_mdebugread): Add declaration.
13121 * memattr.c (_initialize_mem): Add declaration.
13122 * mep-tdep.c (_initialize_mep_tdep): Add declaration.
13123 * mi/mi-cmd-env.c (_initialize_mi_cmd_env): Add declaration.
13124 * mi/mi-cmds.c (_initialize_mi_cmds): Add declaration.
13125 * mi/mi-interp.c (_initialize_mi_interp): Add declaration.
13126 * mi/mi-main.c (_initialize_mi_main): Add declaration.
13127 * microblaze-linux-tdep.c (_initialize_microblaze_linux_tdep): Add declaration.
13128 * microblaze-tdep.c (_initialize_microblaze_tdep): Add declaration.
13129 * mips-fbsd-nat.c (_initialize_mips_fbsd_nat): Add declaration.
13130 * mips-fbsd-tdep.c (_initialize_mips_fbsd_tdep): Add declaration.
13131 * mips-linux-nat.c (_initialize_mips_linux_nat): Add declaration.
13132 * mips-linux-tdep.c (_initialize_mips_linux_tdep): Add declaration.
13133 * mips-nbsd-nat.c (_initialize_mipsnbsd_nat): Add declaration.
13134 * mips-nbsd-tdep.c (_initialize_mipsnbsd_tdep): Add declaration.
13135 * mips-sde-tdep.c (_initialize_mips_sde_tdep): Add declaration.
13136 * mips-tdep.c (_initialize_mips_tdep): Add declaration.
13137 * mips64-obsd-nat.c (_initialize_mips64obsd_nat): Add declaration.
13138 * mips64-obsd-tdep.c (_initialize_mips64obsd_tdep): Add declaration.
13139 * mipsread.c (_initialize_mipsread): Add declaration.
13140 * mn10300-linux-tdep.c (_initialize_mn10300_linux_tdep): Add declaration.
13141 * mn10300-tdep.c (_initialize_mn10300_tdep): Add declaration.
13142 * moxie-tdep.c (_initialize_moxie_tdep): Add declaration.
13143 * msp430-tdep.c (_initialize_msp430_tdep): Add declaration.
13144 * nds32-tdep.c (_initialize_nds32_tdep): Add declaration.
13145 * nios2-linux-tdep.c (_initialize_nios2_linux_tdep): Add declaration.
13146 * nios2-tdep.c (_initialize_nios2_tdep): Add declaration.
13147 * nto-procfs.c (_initialize_procfs): Add declaration.
13148 * objc-lang.c (_initialize_objc_language): Add declaration.
13149 * observable.c (_initialize_observer): Add declaration.
13150 * opencl-lang.c (_initialize_opencl_language): Add declaration.
13151 * or1k-linux-tdep.c (_initialize_or1k_linux_tdep): Add declaration.
13152 * or1k-tdep.c (_initialize_or1k_tdep): Add declaration.
13153 * osabi.c (_initialize_gdb_osabi): Add declaration.
13154 * osdata.c (_initialize_osdata): Add declaration.
13155 * p-valprint.c (_initialize_pascal_valprint): Add declaration.
13156 * parse.c (_initialize_parse): Add declaration.
13157 * ppc-fbsd-nat.c (_initialize_ppcfbsd_nat): Add declaration.
13158 * ppc-fbsd-tdep.c (_initialize_ppcfbsd_tdep): Add declaration.
13159 * ppc-linux-nat.c (_initialize_ppc_linux_nat): Add declaration.
13160 * ppc-linux-tdep.c (_initialize_ppc_linux_tdep): Add declaration.
13161 * ppc-nbsd-nat.c (_initialize_ppcnbsd_nat): Add declaration.
13162 * ppc-nbsd-tdep.c (_initialize_ppcnbsd_tdep): Add declaration.
13163 * ppc-obsd-nat.c (_initialize_ppcobsd_nat): Add declaration.
13164 * ppc-obsd-tdep.c (_initialize_ppcobsd_tdep): Add declaration.
13165 * printcmd.c (_initialize_printcmd): Add declaration.
13166 * probe.c (_initialize_probe): Add declaration.
13167 * proc-api.c (_initialize_proc_api): Add declaration.
13168 * proc-events.c (_initialize_proc_events): Add declaration.
13169 * proc-service.c (_initialize_proc_service): Add declaration.
13170 * procfs.c (_initialize_procfs): Add declaration.
13171 * producer.c (_initialize_producer): Add declaration.
13172 * psymtab.c (_initialize_psymtab): Add declaration.
13173 * python/python.c (_initialize_python): Add declaration.
13174 * ravenscar-thread.c (_initialize_ravenscar): Add declaration.
13175 * record-btrace.c (_initialize_record_btrace): Add declaration.
13176 * record-full.c (_initialize_record_full): Add declaration.
13177 * record.c (_initialize_record): Add declaration.
13178 * regcache-dump.c (_initialize_regcache_dump): Add declaration.
13179 * regcache.c (_initialize_regcache): Add declaration.
13180 * reggroups.c (_initialize_reggroup): Add declaration.
13181 * remote-notif.c (_initialize_notif): Add declaration.
13182 * remote-sim.c (_initialize_remote_sim): Add declaration.
13183 * remote.c (_initialize_remote): Add declaration.
13184 * reverse.c (_initialize_reverse): Add declaration.
13185 * riscv-fbsd-nat.c (_initialize_riscv_fbsd_nat): Add declaration.
13186 * riscv-fbsd-tdep.c (_initialize_riscv_fbsd_tdep): Add declaration.
13187 * riscv-linux-nat.c (_initialize_riscv_linux_nat): Add declaration.
13188 * riscv-linux-tdep.c (_initialize_riscv_linux_tdep): Add declaration.
13189 * riscv-tdep.c (_initialize_riscv_tdep): Add declaration.
13190 * rl78-tdep.c (_initialize_rl78_tdep): Add declaration.
13191 * rs6000-aix-tdep.c (_initialize_rs6000_aix_tdep): Add declaration.
13192 * rs6000-lynx178-tdep.c (_initialize_rs6000_lynx178_tdep):
13193 Add declaration.
13194 * rs6000-nat.c (_initialize_rs6000_nat): Add declaration.
13195 * rs6000-tdep.c (_initialize_rs6000_tdep): Add declaration.
13196 * run-on-main-thread.c (_initialize_run_on_main_thread): Add declaration.
13197 * rust-exp.y (_initialize_rust_exp): Add declaration.
13198 * rx-tdep.c (_initialize_rx_tdep): Add declaration.
13199 * s12z-tdep.c (_initialize_s12z_tdep): Add declaration.
13200 * s390-linux-nat.c (_initialize_s390_nat): Add declaration.
13201 * s390-linux-tdep.c (_initialize_s390_linux_tdep): Add declaration.
13202 * s390-tdep.c (_initialize_s390_tdep): Add declaration.
13203 * score-tdep.c (_initialize_score_tdep): Add declaration.
13204 * ser-go32.c (_initialize_ser_dos): Add declaration.
13205 * ser-mingw.c (_initialize_ser_windows): Add declaration.
13206 * ser-pipe.c (_initialize_ser_pipe): Add declaration.
13207 * ser-tcp.c (_initialize_ser_tcp): Add declaration.
13208 * ser-uds.c (_initialize_ser_socket): Add declaration.
13209 * ser-unix.c (_initialize_ser_hardwire): Add declaration.
13210 * serial.c (_initialize_serial): Add declaration.
13211 * sh-linux-tdep.c (_initialize_sh_linux_tdep): Add declaration.
13212 * sh-nbsd-nat.c (_initialize_shnbsd_nat): Add declaration.
13213 * sh-nbsd-tdep.c (_initialize_shnbsd_tdep): Add declaration.
13214 * sh-tdep.c (_initialize_sh_tdep): Add declaration.
13215 * skip.c (_initialize_step_skip): Add declaration.
13216 * sol-thread.c (_initialize_sol_thread): Add declaration.
13217 * solib-aix.c (_initialize_solib_aix): Add declaration.
13218 * solib-darwin.c (_initialize_darwin_solib): Add declaration.
13219 * solib-dsbt.c (_initialize_dsbt_solib): Add declaration.
13220 * solib-frv.c (_initialize_frv_solib): Add declaration.
13221 * solib-svr4.c (_initialize_svr4_solib): Add declaration.
13222 * solib-target.c (_initialize_solib_target): Add declaration.
13223 * solib.c (_initialize_solib): Add declaration.
13224 * source-cache.c (_initialize_source_cache): Add declaration.
13225 * source.c (_initialize_source): Add declaration.
13226 * sparc-linux-nat.c (_initialize_sparc_linux_nat): Add declaration.
13227 * sparc-linux-tdep.c (_initialize_sparc_linux_tdep): Add declaration.
13228 * sparc-nat.c (_initialize_sparc_nat): Add declaration.
13229 * sparc-nbsd-nat.c (_initialize_sparcnbsd_nat): Add declaration.
13230 * sparc-nbsd-tdep.c (_initialize_sparcnbsd_tdep): Add declaration.
13231 * sparc-obsd-tdep.c (_initialize_sparc32obsd_tdep): Add declaration.
13232 * sparc-sol2-tdep.c (_initialize_sparc_sol2_tdep): Add declaration.
13233 * sparc-tdep.c (_initialize_sparc_tdep): Add declaration.
13234 * sparc64-fbsd-nat.c (_initialize_sparc64fbsd_nat): Add declaration.
13235 * sparc64-fbsd-tdep.c (_initialize_sparc64fbsd_tdep): Add declaration.
13236 * sparc64-linux-nat.c (_initialize_sparc64_linux_nat): Add declaration.
13237 * sparc64-linux-tdep.c (_initialize_sparc64_linux_tdep): Add declaration.
13238 * sparc64-nat.c (_initialize_sparc64_nat): Add declaration.
13239 * sparc64-nbsd-nat.c (_initialize_sparc64nbsd_nat): Add declaration.
13240 * sparc64-nbsd-tdep.c (_initialize_sparc64nbsd_tdep): Add declaration.
13241 * sparc64-obsd-nat.c (_initialize_sparc64obsd_nat): Add declaration.
13242 * sparc64-obsd-tdep.c (_initialize_sparc64obsd_tdep): Add declaration.
13243 * sparc64-sol2-tdep.c (_initialize_sparc64_sol2_tdep): Add declaration.
13244 * sparc64-tdep.c (_initialize_sparc64_adi_tdep): Add declaration.
13245 * stabsread.c (_initialize_stabsread): Add declaration.
13246 * stack.c (_initialize_stack): Add declaration.
13247 * stap-probe.c (_initialize_stap_probe): Add declaration.
13248 * std-regs.c (_initialize_frame_reg): Add declaration.
13249 * symfile-debug.c (_initialize_symfile_debug): Add declaration.
13250 * symfile-mem.c (_initialize_symfile_mem): Add declaration.
13251 * symfile.c (_initialize_symfile): Add declaration.
13252 * symmisc.c (_initialize_symmisc): Add declaration.
13253 * symtab.c (_initialize_symtab): Add declaration.
13254 * target.c (_initialize_target): Add declaration.
13255 * target-connection.c (_initialize_target_connection): Add
13256 declaration.
13257 * target-dcache.c (_initialize_target_dcache): Add declaration.
13258 * target-descriptions.c (_initialize_target_descriptions): Add declaration.
13259 * thread.c (_initialize_thread): Add declaration.
13260 * tic6x-linux-tdep.c (_initialize_tic6x_linux_tdep): Add declaration.
13261 * tic6x-tdep.c (_initialize_tic6x_tdep): Add declaration.
13262 * tilegx-linux-nat.c (_initialize_tile_linux_nat): Add declaration.
13263 * tilegx-linux-tdep.c (_initialize_tilegx_linux_tdep): Add declaration.
13264 * tilegx-tdep.c (_initialize_tilegx_tdep): Add declaration.
13265 * tracectf.c (_initialize_ctf): Add declaration.
13266 * tracefile-tfile.c (_initialize_tracefile_tfile): Add declaration.
13267 * tracefile.c (_initialize_tracefile): Add declaration.
13268 * tracepoint.c (_initialize_tracepoint): Add declaration.
13269 * tui/tui-hooks.c (_initialize_tui_hooks): Add declaration.
13270 * tui/tui-interp.c (_initialize_tui_interp): Add declaration.
13271 * tui/tui-layout.c (_initialize_tui_layout): Add declaration.
13272 * tui/tui-regs.c (_initialize_tui_regs): Add declaration.
13273 * tui/tui-stack.c (_initialize_tui_stack): Add declaration.
13274 * tui/tui-win.c (_initialize_tui_win): Add declaration.
13275 * tui/tui.c (_initialize_tui): Add declaration.
13276 * typeprint.c (_initialize_typeprint): Add declaration.
13277 * ui-style.c (_initialize_ui_style): Add declaration.
13278 * unittests/array-view-selftests.c (_initialize_array_view_selftests): Add declaration.
13279 * unittests/child-path-selftests.c (_initialize_child_path_selftests): Add declaration.
13280 * unittests/cli-utils-selftests.c (_initialize_cli_utils_selftests): Add declaration.
13281 * unittests/common-utils-selftests.c (_initialize_common_utils_selftests): Add declaration.
13282 * unittests/copy_bitwise-selftests.c (_initialize_copy_bitwise_utils_selftests): Add declaration.
13283 * unittests/environ-selftests.c (_initialize_environ_selftests): Add declaration.
13284 * unittests/filtered_iterator-selftests.c
13285 (_initialize_filtered_iterator_selftests): Add declaration.
13286 * unittests/format_pieces-selftests.c (_initialize_format_pieces_selftests): Add declaration.
13287 * unittests/function-view-selftests.c (_initialize_function_view_selftests): Add declaration.
13288 * unittests/help-doc-selftests.c (_initialize_help_doc_selftests): Add declaration.
13289 * unittests/lookup_name_info-selftests.c (_initialize_lookup_name_info_selftests): Add declaration.
13290 * unittests/main-thread-selftests.c
13291 (_initialize_main_thread_selftests): Add declaration.
13292 * unittests/memory-map-selftests.c (_initialize_memory_map_selftests): Add declaration.
13293 * unittests/memrange-selftests.c (_initialize_memrange_selftests): Add declaration.
13294 * unittests/mkdir-recursive-selftests.c (_initialize_mkdir_recursive_selftests): Add declaration.
13295 * unittests/observable-selftests.c (_initialize_observer_selftest): Add declaration.
13296 * unittests/offset-type-selftests.c (_initialize_offset_type_selftests): Add declaration.
13297 * unittests/optional-selftests.c (_initialize_optional_selftests): Add declaration.
13298 * unittests/parse-connection-spec-selftests.c (_initialize_parse_connection_spec_selftests): Add declaration.
13299 * unittests/rsp-low-selftests.c (_initialize_rsp_low_selftests): Add declaration.
13300 * unittests/scoped_fd-selftests.c (_initialize_scoped_fd_selftests): Add declaration.
13301 * unittests/scoped_mmap-selftests.c (_initialize_scoped_mmap_selftests): Add declaration.
13302 * unittests/scoped_restore-selftests.c (_initialize_scoped_restore_selftests): Add declaration.
13303 * unittests/string_view-selftests.c (_initialize_string_view_selftests): Add declaration.
13304 * unittests/style-selftests.c (_initialize_style_selftest): Add declaration.
13305 * unittests/tracepoint-selftests.c (_initialize_tracepoint_selftests): Add declaration.
13306 * unittests/tui-selftests.c (_initialize_tui_selftest): Add
13307 declaration.
13308 * unittests/unpack-selftests.c (_initialize_unpack_selftests): Add declaration.
13309 * unittests/utils-selftests.c (_initialize_utils_selftests): Add declaration.
13310 * unittests/vec-utils-selftests.c (_initialize_vec_utils_selftests): Add declaration.
13311 * unittests/xml-utils-selftests.c (_initialize_xml_utils): Add declaration.
13312 * user-regs.c (_initialize_user_regs): Add declaration.
13313 * utils.c (_initialize_utils): Add declaration.
13314 * v850-tdep.c (_initialize_v850_tdep): Add declaration.
13315 * valops.c (_initialize_valops): Add declaration.
13316 * valprint.c (_initialize_valprint): Add declaration.
13317 * value.c (_initialize_values): Add declaration.
13318 * varobj.c (_initialize_varobj): Add declaration.
13319 * vax-bsd-nat.c (_initialize_vaxbsd_nat): Add declaration.
13320 * vax-nbsd-tdep.c (_initialize_vaxnbsd_tdep): Add declaration.
13321 * vax-tdep.c (_initialize_vax_tdep): Add declaration.
13322 * windows-nat.c (_initialize_windows_nat): Add declaration.
13323 (_initialize_check_for_gdb_ini): Add declaration.
13324 (_initialize_loadable): Add declaration.
13325 * windows-tdep.c (_initialize_windows_tdep): Add declaration.
13326 * x86-bsd-nat.c (_initialize_x86_bsd_nat): Add declaration.
13327 * x86-linux-nat.c (_initialize_x86_linux_nat): Add declaration.
13328 * xcoffread.c (_initialize_xcoffread): Add declaration.
13329 * xml-support.c (_initialize_xml_support): Add declaration.
13330 * xstormy16-tdep.c (_initialize_xstormy16_tdep): Add declaration.
13331 * xtensa-linux-nat.c (_initialize_xtensa_linux_nat): Add declaration.
13332 * xtensa-linux-tdep.c (_initialize_xtensa_linux_tdep): Add declaration.
13333 * xtensa-tdep.c (_initialize_xtensa_tdep): Add declaration.
13334
e2de1eec
SM
133352020-01-13 Simon Marchi <simon.marchi@polymtl.ca>
13336
13337 * regformats/regdat.sh: Generate declaration for init function.
13338
e0037b4c
SM
133392020-01-13 Simon Marchi <simon.marchi@polymtl.ca>
13340
13341 * remote-sim.c (next_pid, INITIAL_PID, sim_inferior_data): Move
13342 up.
13343 (gdbsim_target) <get_inferior_data_by_ptid, resume_one_inferior,
13344 close_one_inferior>: New methods.
13345 (get_sim_inferior_data_by_ptid): Move to gdbsim_target,
13346 pass down target to find_inferior_pid.
13347 (gdbsim_target::fetch_registers, gdbsim_target::store_registers):
13348 Pass down target to find_inferior_ptid.
13349 (gdbsim_target::create_inferior): Pass down target to
13350 add_thread_silent.
13351 (gdbsim_close_inferior): Move to gdbsim_close_inferior, pass
13352 target down to find_inferior_ptid and switch_to_thread.
13353 (gdbsim_target::close): Update to call close_one_inferior.
13354 (struct resume_data): Remove.
13355 (gdbsim_resume_inferior): Move to gdbsim_target. Take arguments
13356 directly, rather than through a void pointer.
13357 (gdbsim_target::resume): Update to call resume_one_inferior.
13358
58920b5b
SM
133592020-01-12 Simon Marchi <simon.marchi@polymtl.ca>
13360
13361 * gdbsupport/gdb_wait.c: Include gdb_wait.h.
13362
4ec89149
PA
133632020-01-12 Pedro Alves <palves@redhat.com>
13364
13365 * bsd-kvm.c (bsd_kvm_target::close): Call exit_inferior_silent
13366 directly for the current inferior instead of
13367 discard_all_inferiors.
13368 (discard_all_inferiors): Delete.
13369
7c392d1d
TT
133702020-01-11 Tom Tromey <tom@tromey.com>
13371
13372 * tui/tui-wingeneral.c (box_win): Check cli_styling.
13373 * tui/tui-winsource.c (tui_source_window_base::refill): Use
13374 deprecated_safe_get_selected_frame.
13375
d9ebdab7
TBA
133762020-01-10 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
13377
13378 * inferior.c (print_inferior): Switch inferior before printing it.
13379
f3c469b9
PA
133802020-01-10 Aleksandar Paunovic <aleksandar.paunovic@intel.com>
13381 Pedro Alves <palves@redhat.com>
13382
13383 * progspace-and-thread.c (switch_to_program_space_and_thread):
13384 Assert there's an inferior for PSPACE. Use
13385 switch_to_inferior_no_thread to switch the inferior too.
13386 * progspace.c (program_space::~program_space): Call
13387 clear_symtab_users here, with SYMFILE_DEFER_BP_RESET.
13388 (program_space::free_all_objfiles): Don't call clear_symtab_users
13389 here.
13390 * symfile.c (symbol_file_clear): Call clear_symtab_users here.
13391
65c574f6
PA
133922020-01-10 Pedro Alves <palves@redhat.com>
13393
13394 * NEWS: Mention multi-target debugging, "info connections", and
13395 "add-inferior -no-connection".
13396
2f4fcf00
PA
133972020-01-10 Pedro Alves <palves@redhat.com>
13398
13399 * infrun.c: Include "target-connection.h".
13400 (check_multi_target_resumption): New.
13401 (proceed): Call it.
13402 * target-connection.c (make_target_connection_string): Make
13403 extern.
13404 * target-connection.h (make_target_connection_string): Declare.
13405
121b3efd
PA
134062020-01-10 Pedro Alves <palves@redhat.com>
13407
13408 * Makefile.in (COMMON_SFILES): Add target-connection.c.
13409 * inferior.c (uiout_field_connection): New function.
13410 (print_inferior): Add new "connection-id" column.
13411 (add_inferior_command): Show connection number/string of added
13412 inferior.
13413 * process-stratum-target.h
13414 (process_stratum_target::connection_string): New virtual method.
13415 (process_stratum_target::connection_number): New field.
13416 * remote.c (remote_target::connection_string): New override.
13417 * target-connection.c: New file.
13418 * target-connection.h: New file.
13419 * target.c (decref_target): Remove process_stratum targets from
13420 the connection list.
13421 (target_stack::push): Add process_stratum targets to the
13422 connection list.
13423
4f837581
PA
134242020-01-10 Pedro Alves <palves@redhat.com>
13425
13426 Revert:
13427 2016-04-12 Pedro Alves <palves@redhat.com>
13428 * serial.c (serial_open, serial_fdopen_ops, do_serial_close):
13429 Remove references to name.
13430 * serial.h (struct serial) <name>: Delete.
13431
f4ec508e
PA
134322020-01-10 Pedro Alves <palves@redhat.com>
13433
13434 * gdbarch-selftests.c (register_to_value_test): Remove "target
13435 already pushed" check.
13436
5b6d1e4f
PA
134372020-01-10 Pedro Alves <palves@redhat.com>
13438 John Baldwin <jhb@FreeBSD.org>
13439
13440 * aarch64-linux-nat.c
13441 (aarch64_linux_nat_target::thread_architecture): Adjust.
13442 * ada-tasks.c (print_ada_task_info): Adjust find_thread_ptid call.
13443 (task_command_1): Likewise.
13444 * aix-thread.c (sync_threadlists, aix_thread_target::resume)
13445 (aix_thread_target::wait, aix_thread_target::fetch_registers)
13446 (aix_thread_target::store_registers)
13447 (aix_thread_target::thread_alive): Adjust.
13448 * amd64-fbsd-tdep.c: Include "inferior.h".
13449 (amd64fbsd_get_thread_local_address): Pass down target.
13450 * amd64-linux-nat.c (ps_get_thread_area): Use ps_prochandle
13451 thread's gdbarch instead of target_gdbarch.
13452 * break-catch-sig.c (signal_catchpoint_print_it): Adjust call to
13453 get_last_target_status.
13454 * break-catch-syscall.c (print_it_catch_syscall): Likewise.
13455 * breakpoint.c (breakpoints_should_be_inserted_now): Consider all
13456 inferiors.
13457 (update_inserted_breakpoint_locations): Skip if inferiors with no
13458 execution.
13459 (update_global_location_list): When handling moribund locations,
13460 find representative inferior for location's pspace, and use thread
13461 count of its process_stratum target.
13462 * bsd-kvm.c (bsd_kvm_target_open): Pass target down.
13463 * bsd-uthread.c (bsd_uthread_target::wait): Use
13464 as_process_stratum_target and adjust thread_change_ptid and
13465 add_thread calls.
13466 (bsd_uthread_target::update_thread_list): Use
13467 as_process_stratum_target and adjust find_thread_ptid,
13468 thread_change_ptid and add_thread calls.
13469 * btrace.c (maint_btrace_packet_history_cmd): Adjust
13470 find_thread_ptid call.
13471 * corelow.c (add_to_thread_list): Adjust add_thread call.
13472 (core_target_open): Adjust add_thread_silent and thread_count
13473 calls.
13474 (core_target::pid_to_str): Adjust find_inferior_ptid call.
13475 * ctf.c (ctf_target_open): Adjust add_thread_silent call.
13476 * event-top.c (async_disconnect): Pop targets from all inferiors.
13477 * exec.c (add_target_sections): Push exec target on all inferiors
13478 sharing the program space.
13479 (remove_target_sections): Remove the exec target from all
13480 inferiors sharing the program space.
13481 (exec_on_vfork): New.
13482 * exec.h (exec_on_vfork): Declare.
13483 * fbsd-nat.c (fbsd_add_threads): Add fbsd_nat_target parameter.
13484 Pass it down.
13485 (fbsd_nat_target::update_thread_list): Adjust.
13486 (fbsd_nat_target::resume): Adjust.
13487 (fbsd_handle_debug_trap): Add fbsd_nat_target parameter. Pass it
13488 down.
13489 (fbsd_nat_target::wait, fbsd_nat_target::post_attach): Adjust.
13490 * fbsd-tdep.c (fbsd_corefile_thread): Adjust
13491 get_thread_arch_regcache call.
13492 * fork-child.c (gdb_startup_inferior): Pass target down to
13493 startup_inferior and set_executing.
13494 * gdbthread.h (struct process_stratum_target): Forward declare.
13495 (add_thread, add_thread_silent, add_thread_with_info)
13496 (in_thread_list): Add process_stratum_target parameter.
13497 (find_thread_ptid(inferior*, ptid_t)): New overload.
13498 (find_thread_ptid, thread_change_ptid): Add process_stratum_target
13499 parameter.
13500 (all_threads()): Delete overload.
13501 (all_threads, all_non_exited_threads): Add process_stratum_target
13502 parameter.
13503 (all_threads_safe): Use brace initialization.
13504 (thread_count): Add process_stratum_target parameter.
13505 (set_resumed, set_running, set_stop_requested, set_executing)
13506 (threads_are_executing, finish_thread_state): Add
13507 process_stratum_target parameter.
13508 (switch_to_thread): Use is_current_thread.
13509 * i386-fbsd-tdep.c: Include "inferior.h".
13510 (i386fbsd_get_thread_local_address): Pass down target.
13511 * i386-linux-nat.c (i386_linux_nat_target::low_resume): Adjust.
13512 * inf-child.c (inf_child_target::maybe_unpush_target): Remove
13513 have_inferiors check.
13514 * inf-ptrace.c (inf_ptrace_target::create_inferior)
13515 (inf_ptrace_target::attach): Adjust.
13516 * infcall.c (run_inferior_call): Adjust.
13517 * infcmd.c (run_command_1): Pass target to
13518 scoped_finish_thread_state.
13519 (proceed_thread_callback): Skip inferiors with no execution.
13520 (continue_command): Rename 'all_threads' local to avoid hiding
13521 'all_threads' function. Adjust get_last_target_status call.
13522 (prepare_one_step): Adjust set_running call.
13523 (signal_command): Use user_visible_resume_target. Compare thread
13524 pointers instead of inferior_ptid.
13525 (info_program_command): Adjust to pass down target.
13526 (attach_command): Mark target's 'thread_executing' flag.
13527 (stop_current_target_threads_ns): New, factored out from ...
13528 (interrupt_target_1): ... this. Switch inferior before making
13529 target calls.
13530 * inferior-iter.h
13531 (struct all_inferiors_iterator, struct all_inferiors_range)
13532 (struct all_inferiors_safe_range)
13533 (struct all_non_exited_inferiors_range): Filter on
13534 process_stratum_target too. Remove explicit.
13535 * inferior.c (inferior::inferior): Push dummy target on target
13536 stack.
13537 (find_inferior_pid, find_inferior_ptid, number_of_live_inferiors):
13538 Add process_stratum_target parameter, and pass it down.
13539 (have_live_inferiors): Adjust.
13540 (switch_to_inferior_and_push_target): New.
13541 (add_inferior_command, clone_inferior_command): Handle
13542 "-no-connection" parameter. Use
13543 switch_to_inferior_and_push_target.
13544 (_initialize_inferior): Mention "-no-connection" option in
13545 the help of "add-inferior" and "clone-inferior" commands.
13546 * inferior.h: Include "process-stratum-target.h".
13547 (interrupt_target_1): Use bool.
13548 (struct inferior) <push_target, unpush_target, target_is_pushed,
13549 find_target_beneath, top_target, process_target, target_at,
13550 m_stack>: New.
13551 (discard_all_inferiors): Delete.
13552 (find_inferior_pid, find_inferior_ptid, number_of_live_inferiors)
13553 (all_inferiors, all_non_exited_inferiors): Add
13554 process_stratum_target parameter.
13555 * infrun.c: Include "gdb_select.h" and <unordered_map>.
13556 (target_last_proc_target): New global.
13557 (follow_fork_inferior): Push target on new inferior. Pass target
13558 to add_thread_silent. Call exec_on_vfork. Handle target's
13559 reference count.
13560 (follow_fork): Adjust get_last_target_status call. Also consider
13561 target.
13562 (follow_exec): Push target on new inferior.
13563 (struct execution_control_state) <target>: New field.
13564 (user_visible_resume_target): New.
13565 (do_target_resume): Call target_async.
13566 (resume_1): Set target's threads_executing flag. Consider resume
13567 target.
13568 (commit_resume_all_targets): New.
13569 (proceed): Also consider resume target. Skip threads of inferiors
13570 with no execution. Commit resumtion in all targets.
13571 (start_remote): Pass current inferior to wait_for_inferior.
13572 (infrun_thread_stop_requested): Consider target as well. Pass
13573 thread_info pointer to clear_inline_frame_state instead of ptid.
13574 (infrun_thread_thread_exit): Consider target as well.
13575 (random_pending_event_thread): New inferior parameter. Use it.
13576 (do_target_wait): Rename to ...
13577 (do_target_wait_1): ... this. Add inferior parameter, and pass it
13578 down.
13579 (threads_are_resumed_pending_p, do_target_wait): New.
13580 (prepare_for_detach): Adjust calls.
13581 (wait_for_inferior): New inferior parameter. Handle it. Use
13582 do_target_wait_1 instead of do_target_wait.
13583 (fetch_inferior_event): Adjust. Switch to representative
13584 inferior. Pass target down.
13585 (set_last_target_status): Add process_stratum_target parameter.
13586 Save target in global.
13587 (get_last_target_status): Add process_stratum_target parameter and
13588 handle it.
13589 (nullify_last_target_wait_ptid): Clear 'target_last_proc_target'.
13590 (context_switch): Check inferior_ptid == null_ptid before calling
13591 inferior_thread().
13592 (get_inferior_stop_soon): Pass down target.
13593 (wait_one): Rename to ...
13594 (poll_one_curr_target): ... this.
13595 (struct wait_one_event): New.
13596 (wait_one): New.
13597 (stop_all_threads): Adjust.
13598 (handle_no_resumed, handle_inferior_event): Adjust to consider the
13599 event's target.
13600 (switch_back_to_stepped_thread): Also consider target.
13601 (print_stop_event): Update.
13602 (normal_stop): Update. Also consider the resume target.
13603 * infrun.h (wait_for_inferior): Remove declaration.
13604 (user_visible_resume_target): New declaration.
13605 (get_last_target_status, set_last_target_status): New
13606 process_stratum_target parameter.
13607 * inline-frame.c (clear_inline_frame_state(ptid_t)): Add
13608 process_stratum_target parameter, and use it.
13609 (clear_inline_frame_state (thread_info*)): New.
13610 * inline-frame.c (clear_inline_frame_state(ptid_t)): Add
13611 process_stratum_target parameter.
13612 (clear_inline_frame_state (thread_info*)): Declare.
13613 * linux-fork.c (delete_checkpoint_command): Pass target down to
13614 find_thread_ptid.
13615 (checkpoint_command): Adjust.
13616 * linux-nat.c (linux_nat_target::follow_fork): Switch to thread
13617 instead of just tweaking inferior_ptid.
13618 (linux_nat_switch_fork): Pass target down to thread_change_ptid.
13619 (exit_lwp): Pass target down to find_thread_ptid.
13620 (attach_proc_task_lwp_callback): Pass target down to
13621 add_thread/set_running/set_executing.
13622 (linux_nat_target::attach): Pass target down to
13623 thread_change_ptid.
13624 (get_detach_signal): Pass target down to find_thread_ptid.
13625 Consider last target status's target.
13626 (linux_resume_one_lwp_throw, resume_lwp)
13627 (linux_handle_syscall_trap, linux_handle_extended_wait, wait_lwp)
13628 (stop_wait_callback, save_stop_reason, linux_nat_filter_event)
13629 (linux_nat_wait_1, resume_stopped_resumed_lwps): Pass target down.
13630 (linux_nat_target::async_wait_fd): New.
13631 (linux_nat_stop_lwp, linux_nat_target::thread_address_space): Pass
13632 target down.
13633 * linux-nat.h (linux_nat_target::async_wait_fd): Declare.
13634 * linux-tdep.c (get_thread_arch_regcache): Pass target down.
13635 * linux-thread-db.c (struct thread_db_info::process_target): New
13636 field.
13637 (add_thread_db_info): Save target.
13638 (get_thread_db_info): New process_stratum_target parameter. Also
13639 match target.
13640 (delete_thread_db_info): New process_stratum_target parameter.
13641 Also match target.
13642 (thread_from_lwp): Adjust to pass down target.
13643 (thread_db_notice_clone): Pass down target.
13644 (check_thread_db_callback): Pass down target.
13645 (try_thread_db_load_1): Always push the thread_db target.
13646 (try_thread_db_load, record_thread): Pass target down.
13647 (thread_db_target::detach): Pass target down. Always unpush the
13648 thread_db target.
13649 (thread_db_target::wait, thread_db_target::mourn_inferior): Pass
13650 target down. Always unpush the thread_db target.
13651 (find_new_threads_callback, thread_db_find_new_threads_2)
13652 (thread_db_target::update_thread_list): Pass target down.
13653 (thread_db_target::pid_to_str): Pass current inferior down.
13654 (thread_db_target::get_thread_local_address): Pass target down.
13655 (thread_db_target::resume, maintenance_check_libthread_db): Pass
13656 target down.
13657 * nto-procfs.c (nto_procfs_target::update_thread_list): Adjust.
13658 * procfs.c (procfs_target::procfs_init_inferior): Declare.
13659 (proc_set_current_signal, do_attach, procfs_target::wait): Adjust.
13660 (procfs_init_inferior): Rename to ...
13661 (procfs_target::procfs_init_inferior): ... this and adjust.
13662 (procfs_target::create_inferior, procfs_notice_thread)
13663 (procfs_do_thread_registers): Adjust.
13664 * ppc-fbsd-tdep.c: Include "inferior.h".
13665 (ppcfbsd_get_thread_local_address): Pass down target.
13666 * proc-service.c (ps_xfer_memory): Switch current inferior and
13667 program space as well.
13668 (get_ps_regcache): Pass target down.
13669 * process-stratum-target.c
13670 (process_stratum_target::thread_address_space)
13671 (process_stratum_target::thread_architecture): Pass target down.
13672 * process-stratum-target.h
13673 (process_stratum_target::threads_executing): New field.
13674 (as_process_stratum_target): New.
13675 * ravenscar-thread.c
13676 (ravenscar_thread_target::update_inferior_ptid): Pass target down.
13677 (ravenscar_thread_target::wait, ravenscar_add_thread): Pass target
13678 down.
13679 * record-btrace.c (record_btrace_target::info_record): Adjust.
13680 (record_btrace_target::record_method)
13681 (record_btrace_target::record_is_replaying)
13682 (record_btrace_target::fetch_registers)
13683 (get_thread_current_frame_id, record_btrace_target::resume)
13684 (record_btrace_target::wait, record_btrace_target::stop): Pass
13685 target down.
13686 * record-full.c (record_full_wait_1): Switch to event thread.
13687 Pass target down.
13688 * regcache.c (regcache::regcache)
13689 (get_thread_arch_aspace_regcache, get_thread_arch_regcache): Add
13690 process_stratum_target parameter and handle it.
13691 (current_thread_target): New global.
13692 (get_thread_regcache): Add process_stratum_target parameter and
13693 handle it. Switch inferior before calling target method.
13694 (get_thread_regcache): Pass target down.
13695 (get_thread_regcache_for_ptid): Pass target down.
13696 (registers_changed_ptid): Add process_stratum_target parameter and
13697 handle it.
13698 (registers_changed_thread, registers_changed): Pass target down.
13699 (test_get_thread_arch_aspace_regcache): New.
13700 (current_regcache_test): Define a couple local test_target_ops
13701 instances and use them for testing.
13702 (readwrite_regcache): Pass process_stratum_target parameter.
13703 (cooked_read_test, cooked_write_test): Pass mock_target down.
13704 * regcache.h (get_thread_regcache, get_thread_arch_regcache)
13705 (get_thread_arch_aspace_regcache): Add process_stratum_target
13706 parameter.
13707 (regcache::target): New method.
13708 (regcache::regcache, regcache::get_thread_arch_aspace_regcache)
13709 (regcache::registers_changed_ptid): Add process_stratum_target
13710 parameter.
13711 (regcache::m_target): New field.
13712 (registers_changed_ptid): Add process_stratum_target parameter.
13713 * remote.c (remote_state::supports_vCont_probed): New field.
13714 (remote_target::async_wait_fd): New method.
13715 (remote_unpush_and_throw): Add remote_target parameter.
13716 (get_current_remote_target): Adjust.
13717 (remote_target::remote_add_inferior): Push target.
13718 (remote_target::remote_add_thread)
13719 (remote_target::remote_notice_new_inferior)
13720 (get_remote_thread_info): Pass target down.
13721 (remote_target::update_thread_list): Skip threads of inferiors
13722 bound to other targets. (remote_target::close): Don't discard
13723 inferiors. (remote_target::add_current_inferior_and_thread)
13724 (remote_target::process_initial_stop_replies)
13725 (remote_target::start_remote)
13726 (remote_target::remote_serial_quit_handler): Pass down target.
13727 (remote_target::remote_unpush_target): New remote_target
13728 parameter. Unpush the target from all inferiors.
13729 (remote_target::remote_unpush_and_throw): New remote_target
13730 parameter. Pass it down.
13731 (remote_target::open_1): Check whether the current inferior has
13732 execution instead of checking whether any inferior is live. Pass
13733 target down.
13734 (remote_target::remote_detach_1): Pass down target. Use
13735 remote_unpush_target.
13736 (extended_remote_target::attach): Pass down target.
13737 (remote_target::remote_vcont_probe): Set supports_vCont_probed.
13738 (remote_target::append_resumption): Pass down target.
13739 (remote_target::append_pending_thread_resumptions)
13740 (remote_target::remote_resume_with_hc, remote_target::resume)
13741 (remote_target::commit_resume): Pass down target.
13742 (remote_target::remote_stop_ns): Check supports_vCont_probed.
13743 (remote_target::interrupt_query)
13744 (remote_target::remove_new_fork_children)
13745 (remote_target::check_pending_events_prevent_wildcard_vcont)
13746 (remote_target::remote_parse_stop_reply)
13747 (remote_target::process_stop_reply): Pass down target.
13748 (first_remote_resumed_thread): New remote_target parameter. Pass
13749 it down.
13750 (remote_target::wait_as): Pass down target.
13751 (unpush_and_perror): New remote_target parameter. Pass it down.
13752 (remote_target::readchar, remote_target::remote_serial_write)
13753 (remote_target::getpkt_or_notif_sane_1)
13754 (remote_target::kill_new_fork_children, remote_target::kill): Pass
13755 down target.
13756 (remote_target::mourn_inferior): Pass down target. Use
13757 remote_unpush_target.
13758 (remote_target::core_of_thread)
13759 (remote_target::remote_btrace_maybe_reopen): Pass down target.
13760 (remote_target::pid_to_exec_file)
13761 (remote_target::thread_handle_to_thread_info): Pass down target.
13762 (remote_target::async_wait_fd): New.
13763 * riscv-fbsd-tdep.c: Include "inferior.h".
13764 (riscv_fbsd_get_thread_local_address): Pass down target.
13765 * sol2-tdep.c (sol2_core_pid_to_str): Pass down target.
13766 * sol-thread.c (sol_thread_target::wait, ps_lgetregs, ps_lsetregs)
13767 (ps_lgetfpregs, ps_lsetfpregs, sol_update_thread_list_callback):
13768 Adjust.
13769 * solib-spu.c (spu_skip_standalone_loader): Pass down target.
13770 * solib-svr4.c (enable_break): Pass down target.
13771 * spu-multiarch.c (parse_spufs_run): Pass down target.
13772 * spu-tdep.c (spu2ppu_sniffer): Pass down target.
13773 * target-delegates.c: Regenerate.
13774 * target.c (g_target_stack): Delete.
13775 (current_top_target): Return the current inferior's top target.
13776 (target_has_execution_1): Refer to the passed-in inferior's top
13777 target.
13778 (target_supports_terminal_ours): Check whether the initial
13779 inferior was already created.
13780 (decref_target): New.
13781 (target_stack::push): Incref/decref the target.
13782 (push_target, push_target, unpush_target): Adjust.
13783 (target_stack::unpush): Defref target.
13784 (target_is_pushed): Return bool. Adjust to refer to the current
13785 inferior's target stack.
13786 (dispose_inferior): Delete, and inline parts ...
13787 (target_preopen): ... here. Only dispose of the current inferior.
13788 (target_detach): Hold strong target reference while detaching.
13789 Pass target down.
13790 (target_thread_name): Add assertion.
13791 (target_resume): Pass down target.
13792 (target_ops::beneath, find_target_at): Adjust to refer to the
13793 current inferior's target stack.
13794 (get_dummy_target): New.
13795 (target_pass_ctrlc): Pass the Ctrl-C to the first inferior that
13796 has a thread running.
13797 (initialize_targets): Rename to ...
13798 (_initialize_target): ... this.
13799 * target.h: Include "gdbsupport/refcounted-object.h".
13800 (struct target_ops): Inherit refcounted_object.
13801 (target_ops::shortname, target_ops::longname): Make const.
13802 (target_ops::async_wait_fd): New method.
13803 (decref_target): Declare.
13804 (struct target_ops_ref_policy): New.
13805 (target_ops_ref): New typedef.
13806 (get_dummy_target): Declare function.
13807 (target_is_pushed): Return bool.
13808 * thread-iter.c (all_matching_threads_iterator::m_inf_matches)
13809 (all_matching_threads_iterator::all_matching_threads_iterator):
13810 Handle filter target.
13811 * thread-iter.h (struct all_matching_threads_iterator, struct
13812 all_matching_threads_range, class all_non_exited_threads_range):
13813 Filter by target too. Remove explicit.
13814 * thread.c (threads_executing): Delete.
13815 (inferior_thread): Pass down current inferior.
13816 (clear_thread_inferior_resources): Pass down thread pointer
13817 instead of ptid_t.
13818 (add_thread_silent, add_thread_with_info, add_thread): Add
13819 process_stratum_target parameter. Use it for thread and inferior
13820 searches.
13821 (is_current_thread): New.
13822 (thread_info::deletable): Use it.
13823 (find_thread_ptid, thread_count, in_thread_list)
13824 (thread_change_ptid, set_resumed, set_running): New
13825 process_stratum_target parameter. Pass it down.
13826 (set_executing): New process_stratum_target parameter. Pass it
13827 down. Adjust reference to 'threads_executing'.
13828 (threads_are_executing): New process_stratum_target parameter.
13829 Adjust reference to 'threads_executing'.
13830 (set_stop_requested, finish_thread_state): New
13831 process_stratum_target parameter. Pass it down.
13832 (switch_to_thread): Also match inferior.
13833 (switch_to_thread): New process_stratum_target parameter. Pass it
13834 down.
13835 (update_threads_executing): Reimplement.
13836 * top.c (quit_force): Pop targets from all inferior.
13837 (gdb_init): Don't call initialize_targets.
13838 * windows-nat.c (windows_nat_target) <get_windows_debug_event>:
13839 Declare.
13840 (windows_add_thread, windows_delete_thread): Adjust.
13841 (get_windows_debug_event): Rename to ...
13842 (windows_nat_target::get_windows_debug_event): ... this. Adjust.
13843 * tracefile-tfile.c (tfile_target_open): Pass down target.
13844 * gdbsupport/common-gdbthread.h (struct process_stratum_target):
13845 Forward declare.
13846 (switch_to_thread): Add process_stratum_target parameter.
13847 * mi/mi-interp.c (mi_on_resume_1): Add process_stratum_target
13848 parameter. Use it.
13849 (mi_on_resume): Pass target down.
13850 * nat/fork-inferior.c (startup_inferior): Add
13851 process_stratum_target parameter. Pass it down.
13852 * nat/fork-inferior.h (startup_inferior): Add
13853 process_stratum_target parameter.
13854 * python/py-threadevent.c (py_get_event_thread): Pass target down.
13855
75c6c844
PA
138562020-01-10 Pedro Alves <palves@redhat.com>
13857
13858 * remote.c (remote_target::start_remote): Don't set inferior_ptid
13859 directly. Instead find the first thread in the thread list and
13860 use switch_to_thread.
13861
78f2c40a
PA
138622020-01-10 Pedro Alves <palves@redhat.com>
13863
13864 * remote.c (remote_target::remote_add_inferior): Don't bind a
13865 process to the current inferior if the current inferior is already
13866 bound to a process.
13867
e7af6c70
TBA
138682020-01-10 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
13869 Pedro Alves <palves@redhat.com>
13870
13871 * remote.c (remote_target::remote_parse_stop_reply) <W/X packets>:
13872 If no process is specified, return null_ptid instead of
13873 inferior_ptid.
13874 (remote_target::wait_as): Handle TARGET_WAITKIND_EXITED /
13875 TARGET_WAITKIND_SIGNALLED with no pid.
13876
31ba933e
PA
138772020-01-10 Pedro Alves <palves@redhat.com>
13878
13879 * remote.c (first_remote_resumed_thread): New.
13880 (remote_target::wait_as): Use it as default event_ptid instead of
13881 inferior_ptid.
13882
735fc2ca
PA
138832020-01-10 Pedro Alves <palves@redhat.com>
13884
13885 * infrun.c (handle_no_resumed): Use all_non_exited_inferiors.
13886
c17e02e1
PA
138872020-01-10 Pedro Alves <palves@redhat.com>
13888
13889 * tracefile-tfile.c (tfile_target::close): Assert that trace_fd is
13890 not -1.
13891
ab1ddbcf
PA
138922020-01-10 Pedro Alves <palves@redhat.com>
13893
13894 * break-catch-sig.c (signal_catchpoint_print_it): Don't pass a
13895 ptid to get_last_target_status.
13896 * break-catch-syscall.c (print_it_catch_syscall): Don't pass a
13897 ptid to get_last_target_status.
13898 * infcmd.c (continue_command): Don't pass a target_waitstatus to
13899 get_last_target_status.
13900 (info_program_command): Don't pass a target_waitstatus to
13901 get_last_target_status.
13902 * infrun.c (init_wait_for_inferior): Use
13903 nullify_last_target_wait_ptid.
13904 (get_last_target_status): Handle nullptr arguments.
13905 (nullify_last_target_wait_ptid): Clear target_last_waitstatus.
13906 (print_stop_event): Don't pass a ptid to get_last_target_status.
13907 (normal_stop): Don't pass a ptid to get_last_target_status.
13908 * infrun.h (get_last_target_status, set_last_target_status): Move
13909 comments here and update.
13910 (nullify_last_target_wait_ptid): Declare.
13911 * linux-fork.c (fork_load_infrun_state): Remove local extern
13912 declaration of nullify_last_target_wait_ptid.
13913 * linux-nat.c (get_detach_signal): Don't pass a target_waitstatus
13914 to get_last_target_status.
13915
f3f8ece4
PA
139162020-01-10 Pedro Alves <palves@redhat.com>
13917
13918 * gdbthread.h (scoped_restore_current_thread)
13919 <dont_restore, restore, m_dont_restore>: Declare.
13920 * thread.c (thread_alive): Add assertion. Return bool.
13921 (switch_to_thread_if_alive): New.
13922 (prune_threads): Switch inferior/thread.
13923 (print_thread_info_1): Switch thread before calling target methods.
13924 (scoped_restore_current_thread::restore): New, factored out from
13925 ...
13926 (scoped_restore_current_thread::~scoped_restore_current_thread):
13927 ... this.
13928 (scoped_restore_current_thread::scoped_restore_current_thread):
13929 Add assertion.
13930 (thread_apply_all_command, thread_select): Use
13931 switch_to_thread_if_alive.
13932 * infrun.c (proceed, restart_threads, handle_signal_stop)
13933 (switch_back_to_stepped_thread): Switch current thread before
13934 calling target methods.
13935
db2d40f7
PA
139362020-01-10 Pedro Alves <palves@redhat.com>
13937
13938 * inferior.c (switch_to_inferior_no_thread): New function,
13939 factored out from ...
13940 (inferior_command): ... here.
13941 * inferior.h (switch_to_inferior_no_thread): Declare.
13942 * mi/mi-main.c (run_one_inferior): Use
13943 switch_to_inferior_no_thread.
13944
bd420a2d
PA
139452020-01-10 Pedro Alves <palves@redhat.com>
13946
13947 * infcmd.c (kill_command): Remove dead code.
13948
ddf5db90
PA
139492020-01-10 Pedro Alves <palves@redhat.com>
13950
13951 * remote.c (remote_target::mourn_inferior): No longer check
13952 whether the target is running.
13953
5018ce90
PA
139542020-01-10 Pedro Alves <palves@redhat.com>
13955
13956 * corelow.c (core_target::has_execution): Change parameter type to
13957 inferior pointer.
13958 * inferior.c (number_of_live_inferiors): Use
13959 inferior::has_execution instead of target_has_execution_1.
13960 * inferior.h (inferior::has_execution): New.
13961 * linux-thread-db.c (thread_db_target::update_thread_list): Use
13962 inferior::has_execution instead of target_has_execution_1.
13963 * process-stratum-target.c
13964 (process_stratum_target::has_execution): Change parameter type to
13965 inferior pointer. Check the inferior's PID instead of
13966 inferior_ptid.
13967 * process-stratum-target.h
13968 (process_stratum_target::has_execution): Change parameter type to
13969 inferior pointer.
13970 * record-full.c (record_full_core_target::has_execution): Change
13971 parameter type to inferior pointer.
13972 * target.c (target_has_execution_1): Change parameter type to
13973 inferior pointer.
13974 (target_has_execution_current): Adjust.
13975 * target.h (target_ops::has_execution): Change parameter type to
13976 inferior pointer.
13977 (target_has_execution_1): Change parameter type to inferior
13978 pointer. Change return type to bool.
13979 * tracefile.h (tracefile_target::has_execution): Change parameter
13980 type to inferior pointer.
13981
74375d18
PA
139822020-01-10 Pedro Alves <palves@redhat.com>
13983
13984 * exceptions.c (print_flush): Remove current_top_target() check.
13985
acdf84a6
PA
139862020-01-10 Pedro Alves <palves@redhat.com>
13987
13988 * remote.c (show_remote_exec_file): Show the current inferior's
13989 exec-file instead of the command variable's value.
13990
ec506636
PA
139912020-01-10 Pedro Alves <palves@redhat.com>
13992
13993 * record-full.c (record_full_resume_ptid): New global.
13994 (record_full_target::resume): Set it.
13995 (record_full_wait_1): Use record_full_resume_ptid instead of
13996 inferior_ptid.
13997
873657b9
PA
139982020-01-10 Pedro Alves <palves@redhat.com>
13999
14000 * gdbthread.h (scoped_restore_current_thread)
14001 <dont_restore, restore, m_dont_restore>: Declare.
14002 * thread.c (thread_alive): Add assertion. Return bool.
14003 (switch_to_thread_if_alive): New.
14004 (prune_threads): Switch inferior/thread.
14005 (print_thread_info_1): Switch thread before calling target methods.
14006 (scoped_restore_current_thread::restore): New, factored out from
14007 ...
14008 (scoped_restore_current_thread::~scoped_restore_current_thread):
14009 ... this.
14010 (scoped_restore_current_thread::scoped_restore_current_thread):
14011 Add assertion.
14012 (thread_apply_all_command, thread_select): Use
14013 switch_to_thread_if_alive.
14014
7f0ae84c
GB
140152020-01-10 George Barrett <bob@bob131.so>
14016
14017 * stap-probe.c (stap_modify_semaphore): Don't check for null
14018 semaphores.
14019 (stap_probe::set_semaphore, stap_probe::clear_semaphore): Check
14020 for null semaphores.
14021
f5a7c406
AB
140222020-01-09 Andrew Burgess <andrew.burgess@embecosm.com>
14023
14024 * tui/tui-source.c (tui_source_window::do_scroll_vertical): Update
14025 all source windows, and maintain horizontal scroll status while
14026 doing so.
14027
9ae6bf64
TT
140282020-01-09 Tom Tromey <tom@tromey.com>
14029
14030 PR tui/18932:
14031 * tui/tui-source.c (tui_source_window::do_scroll_vertical): Call
14032 update_source_window, not print_source_lines.
14033
b2efe70c
AB
140342020-01-09 Andrew Burgess <andrew.burgess@embecosm.com>
14035
14036 * tui/tui.c (tui_enable): Register tui hooks after calling
14037 tui_display_main.
14038
5f23a082
CB
140392020-01-09 Christian Biesinger <cbiesinger@google.com>
14040
14041 * gdbsupport/common-defs.h: Don't define _FORTIFY_SOURCE on MinGW.
14042
3061113b
SM
140432020-01-08 Simon Marchi <simon.marchi@efficios.com>
14044
14045 * thread.c (print_thread_info_1): Fix indentation.
14046
57d75002
CB
140472020-01-09 Christian Biesinger <cbiesinger@google.com>
14048
14049 * symtab.c (general_symbol_info::compute_and_set_names): Move the
14050 unique_xmalloc_ptr outside the if to always free the demangled name.
14051
6a053cb1
TT
140522020-01-08 Tom Tromey <tromey@adacore.com>
14053
14054 * xcoffread.c (enter_line_range, read_xcoff_symtab)
14055 (process_xcoff_symbol, xcoff_symfile_offsets): Update.
14056 * symtab.h (MSYMBOL_VALUE_ADDRESS): Update.
14057 (struct section_offsets, ANOFFSET, SIZEOF_N_SECTION_OFFSETS):
14058 Remove.
14059 (section_offsets): New typedef.
14060 * symtab.c (fixup_section, get_msymbol_address): Update.
14061 * symmisc.c (dump_msymbols): Update.
14062 * symfile.h (relative_addr_info_to_section_offsets)
14063 (symfile_map_offsets_to_segments): Update.
14064 * symfile.c (build_section_addr_info_from_objfile)
14065 (init_objfile_sect_indices): Update.
14066 (struct place_section_arg): Change type of "offsets".
14067 (place_section): Update.
14068 (relative_addr_info_to_section_offsets): Change type of
14069 "section_offsets". Remove "num_sections" parameter.
14070 (default_symfile_offsets, syms_from_objfile_1)
14071 (set_objfile_default_section_offset): Update.
14072 (reread_symbols): No need to preserve section offsets by hand.
14073 (symfile_map_offsets_to_segments): Change type of "offsets".
14074 * stap-probe.c (relocate_address): Update.
14075 * stabsread.h (process_one_symbol): Update.
14076 * solib-target.c (struct lm_info_target) <offsets>: Change type.
14077 (solib_target_relocate_section_addresses): Update.
14078 * solib-svr4.c (enable_break, svr4_relocate_main_executable):
14079 Update.
14080 * solib-frv.c (frv_relocate_main_executable): Update.
14081 * solib-dsbt.c (dsbt_relocate_main_executable): Update.
14082 * solib-aix.c (solib_aix_get_section_offsets): Change return
14083 type.
14084 (solib_aix_solib_create_inferior_hook): Update.
14085 * remote.c (remote_target::get_offsets): Update.
14086 * psymtab.c (find_pc_sect_psymtab): Update.
14087 * psympriv.h (struct partial_symbol) <address, text_low,
14088 text_high>: Update.
14089 * objfiles.h (obj_section_offset): Update.
14090 (struct objfile) <section_offsets>: Change type.
14091 <num_sections>: Remove.
14092 (objfile_relocate): Update.
14093 * objfiles.c (entry_point_address_query): Update
14094 (relocate_one_symbol): Change type of "section_offsets".
14095 (objfile_relocate1, objfile_relocate1): Change type of
14096 "new_offsets".
14097 (objfile_rebase1): Update.
14098 * mipsread.c (mipscoff_symfile_read): Update.
14099 (read_alphacoff_dynamic_symtab): Remove "section_offsets"
14100 parameter.
14101 * mdebugread.c (parse_symbol): Change type of "section_offsets".
14102 (parse_external, psymtab_to_symtab_1): Update.
14103 * machoread.c (macho_symfile_offsets): Update.
14104 * ia64-tdep.c (ia64_find_unwind_table): Update.
14105 * hppa-tdep.c (read_unwind_info): Update.
14106 * hppa-bsd-tdep.c (hppabsd_find_global_pointer): Update.
14107 * dwarf2read.c (create_addrmap_from_index)
14108 (create_addrmap_from_aranges, dw2_find_pc_sect_compunit_symtab)
14109 (process_psymtab_comp_unit_reader, add_partial_symbol)
14110 (add_partial_subprogram, process_full_comp_unit)
14111 (read_file_scope, read_func_scope, read_lexical_block_scope)
14112 (read_call_site_scope, dwarf2_rnglists_process)
14113 (dwarf2_ranges_process, dwarf2_ranges_read)
14114 (dwarf_decode_lines_1, var_decode_location, new_symbol)
14115 (dwarf2_fetch_die_loc_sect_off, dwarf2_per_cu_text_offset):
14116 Update.
14117 * dwarf2-frame.c (execute_cfa_program, dwarf2_frame_find_fde):
14118 Update.
14119 * dtrace-probe.c (dtrace_probe::get_relocated_address): Update.
14120 * dbxread.c (read_dbx_symtab, read_ofile_symtab): Update.
14121 (process_one_symbol): Change type of "section_offsets".
14122 * ctfread.c (get_objfile_text_range): Update.
14123 * coffread.c (coff_symtab_read, enter_linenos)
14124 (process_coff_symbol): Update.
14125 * coff-pe-read.c (add_pe_forwarded_sym): Update.
14126 * amd64-windows-tdep.c (amd64_windows_find_unwind_info): Update.
14127
456e800a
TT
141282020-01-08 Tom Tromey <tromey@adacore.com>
14129
14130 * dwarf2read.c (parse_macro_definition): Use std::string.
14131 (parse_macro_definition): Likewise.
14132
6dfa2fc2
TT
141332020-01-08 Tom Tromey <tromey@adacore.com>
14134
14135 * dwarf2read.c (abbrev_table_read_table): Use std::vector.
14136 (ATTR_ALLOC_CHUNK): Remove.
14137
421d1616
TT
141382020-01-08 Tom Tromey <tromey@adacore.com>
14139
14140 * dwarf2read.c (fixup_go_packaging): Use unique_xmalloc_ptr.
14141
43816ebc
TT
141422020-01-08 Tom Tromey <tromey@adacore.com>
14143
14144 * dwarf2read.c (add_partial_symbol): Use unique_xmalloc_ptr.
14145 (dwarf2_compute_name, open_dwo_file): Likewise.
14146 (process_enumeration_scope): Use std::vector.
14147 (guess_partial_die_structure_name): Use unique_xmalloc_ptr.
14148 (partial_die_info::fixup, dwarf2_start_subfile)
14149 (guess_full_die_structure_name, dwarf2_name): Likewise.
14150 (determine_prefix): Update.
14151 (guess_full_die_structure_name): Make return type const.
14152 (partial_die_full_name): Return unique_xmalloc_ptr.
14153 (DW_FIELD_ALLOC_CHUNK): Remove.
14154
4212d509
TT
141552020-01-07 Tom Tromey <tromey@adacore.com>
14156
14157 PR build/24937:
14158 * stap-probe.c (class stap_static_probe_ops): Add constructor.
14159
06a6207a
JT
141602020-01-02 Jon Turney <jon.turney@dronecode.org.uk>
14161
14162 * cli/cli-style.c: Set cli_styling to 'true' in the Cygwin build.
14163
153d79c4
AB
141642020-01-06 Andrew Burgess <andrew.burgess@embecosm.com>
14165
14166 * stack.c (print_frame_info): Move disassemble_next_line code
14167 inside source_print block.
14168
66182876
EZ
141692020-01-06 Eli Zaretskii <eliz@gnu.org>
14170
14171 * gdbsupport/gdb_wait.c: Include <signal.h> instead of
14172 gdb/signals.h, as we are now using native signal symbols.
14173
cbfa8581
SV
141742020-01-06 Shahab Vahedi <shahab@synopsys.com>
14175
14176 * tui/tui-disasm.c (tui_disasm_window::addr_is_displayed): Avoid
14177 overflow by an early check of content vs threshold.
aac66a4c 14178 * tui/tui-source.c (tui_source_window::line_is_displayed):
cbfa8581
SV
14179 Likewise.
14180
3f602821
EZ
141812020-01-06 Eli Zaretskii <eliz@gnu.org>
14182
14183 * NEWS: Mention the recent fix of $_exitsignal on MS-Windows.
14184
a08c904d
JT
141852020-01-02 Jon Turney <jon.turney@dronecode.org.uk>
14186
14187 * coff-pe-read.c (read_pe_exported_syms): Don't try to read the
14188 export table if no section contains it's RVA.
14189
89a65580
EZ
141902020-01-06 Eli Zaretskii <eliz@gnu.org>
14191
14192 * windows-tdep.c: Fix a typo in WINDOWS_SIGABRT.
14193
8b7fcda2
HD
141942020-01-06 Hannes Domani <ssbssa@yahoo.de>
14195
14196 * source.c (print_source_lines_base): Set last_line_listed.
14197
a61b4f69
SV
141982020-01-06 Shahab Vahedi <shahab@synopsys.com>
14199
14200 * tui/tui-disasm.c: Remove trailing spaces.
14201
559e7e50
EZ
142022020-01-06 Eli Zaretskii <eliz@gnu.org>
14203 Pedro Alves <palves@redhat.com>
14204
14205 * Makefile.in (COMMON_SFILES): Add gdbsupport/gdb_wait.c.
14206 * windows-tdep.c: New enumeration of WINDOWS_SIG* signals.
14207 (windows_gdb_signal_to_target): New function, uses the above
14208 enumeration to convert GDB internal signal codes to equivalent
14209 Windows codes.
14210 (windows_init_abi): Call set_gdbarch_gdb_signal_to_target.
14211 * windows-nat.c: Include "gdb_wait.h".
14212 (get_windows_debug_event): Extract the fatal exception from the
14213 exit status and convert to the equivalent Posix signal number.
14214 * cli/cli-cmds.c (exit_status_set_internal_vars): Account for the
14215 possibility that WTERMSIG returns GDB_SIGNAL_UNKNOWN.
14216 * gdbsupport/gdb_wait.c: New file, implements
14217 windows_status_to_termsig.
14218 * gdbsupport/gdb_wait.h (WIFEXITED, WIFSIGNALED, WEXITSTATUS)
14219 (WTERMSIG) [__MINGW32__]: Separate definitions for MinGW.
14220
f2302a34
AB
142212020-01-05 Andrew Burgess <andrew.burgess@embecosm.com>
14222
14223 * tui/tui-layout.c (tui_add_win_to_layout): Use tui_set_layout not
14224 show_layout.
14225
6a5206eb
LM
142262020-01-05 Luis Machado <luis.machado@linaro.org>
14227
14228 * aarch64-linux-nat.c
14229 (aarch64_linux_nat_target::thread_architecture): Use bfd_arch_aarch64
14230 and bfd_mach_aarch64.
14231
6ec1d75e
PW
142322020-01-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
14233
14234 * ui-file.c (stdio_file::can_emit_style_escape)
14235 (tee_file::can_emit_style_escape): Ensure style is used also on
14236 gdb_stderr when gdb_stderr is a tty supporting styling, similarly
14237 to gdb_stdout.
14238 * main.c (set_gdb_data_directory): Use file style to output the
14239 warning that the given pathname is not a directory.
14240 * top.c (show_history_filename, gdb_safe_append_history)
14241 (show_gdb_datadir): Use file style.
14242
44f81a76
HD
142432020-01-03 Hannes Domani <ssbssa@yahoo.de>
14244
14245 * solib-target.c (struct lm_info_target):
14246 Change offsets to be a unique_xmalloc_ptr.
14247 (solib_target_relocate_section_addresses): Update.
14248
25057eb0
HD
142492020-01-03 Hannes Domani <ssbssa@yahoo.de>
14250
14251 * windows-nat.c (windows_clear_solib): Free so_list linked list.
14252
6e2118f5
BE
142532020-01-03 Bernd Edlinger <bernd.edlinger@hotmail.de>
14254
14255 * MAINTAINERS (Write After Approval): Add myself.
14256
8133c7dc
LM
142572020-01-02 Luis Machado <luis.machado@linaro.org>
14258
14259 * proc-service.c (get_ps_regcache): Remove reference to obsolete
14260 Cell BE architecture.
14261 * target.h (struct target_ops) <thread_architecture>: Likewise.
14262
48189bec
HD
142632020-01-01 Hannes Domani <ssbssa@yahoo.de>
14264
14265 * Makefile.in: Use INSTALL_PROGRAM_ENV.
14266
ead1063b
HD
142672020-01-01 Hannes Domani <ssbssa@yahoo.de>
14268
14269 * MAINTAINERS (Write After Approval): Add myself.
14270
e5d78223
JB
142712020-01-01 Joel Brobecker <brobecker@adacore.com>
14272
14273 * gdbarch.sh: Update copyright year range of generated files.
14274
b811d2c2
JB
142752020-01-01 Joel Brobecker <brobecker@adacore.com>
14276
14277 Update copyright year range in all GDB files.
14278
5f4def5c
JB
142792020-01-01 Joel Brobecker <brobecker@adacore.com>
14280
14281 * copyright.py: Convert to Python 3.
14282
51fd4002
JB
142832020-01-01 Joel Brobecker <brobecker@adacore.com>
14284
14285 * copyright.py: Adapt after move of gnulib directory from gdb
14286 directory to toplevel directory.
14287
5fb651f2
JB
142882020-01-01 Joel Brobecker <brobecker@adacore.com>
14289
14290 * copyright.py (main): Exit if run from the wrong directory.
14291
5dd8bf88
JB
142922020-01-01 Joel Brobecker <brobecker@adacore.com>
14293
14294 * top.c (print_gdb_version): Change copyright year to 2020.
14295
9f71dacb 142962020-01-01 Joel Brobecker <brobecker@adacore.com>
3d34df0a 14297
9f71dacb 14298 * config/djgpp/fnchange.lst: Add entry for gdb/ChangeLog-2019.
3d34df0a 14299
9f71dacb 14300For older changes see ChangeLog-2019.
c906108c
SS
14301\f
14302Local Variables:
14303mode: change-log
14304left-margin: 8
14305fill-column: 74
14306version-control: never
57da7796 14307coding: utf-8
c906108c 14308End:
This page took 3.252072 seconds and 4 git commands to generate.