Handle bit offset and bit size in base types
[deliverable/binutils-gdb.git] / gdb / ChangeLog
CommitLineData
20a5fcbd
TT
12020-09-23 Tom Tromey <tom@tromey.com>
2
3 PR symtab/25470:
4 * value.c (unpack_long, pack_long, pack_unsigned_long): Handle bit
5 offset and bit size.
6 * printcmd.c (print_scalar_formatted): Handle zero-length
7 integer.
8 (print_scalar_formatted): Use bit_size_differs_p.
9 * gdbtypes.h (enum type_specific_kind) <TYPE_SPECIFIC_INT>: New
10 constant.
11 (union type_specific): <int_stuff>: New member.
12 (struct type) <bit_size_differs_p, bit_size, bit_offset>: New
13 methods.
14 * gdbtypes.c (init_integer_type, init_boolean_type): Initialize
15 TYPE_SPECIFIC_FIELD.
16 (recursive_dump_type, copy_type_recursive): Update.
17 * dwarf2/read.c (read_base_type): Handle DW_AT_bit_size and
18 DW_AT_data_bit_offset.
19
bac51ab7
TT
202020-09-23 Tom Tromey <tom@tromey.com>
21
22 * utils.h (class gdb_argv): Add move operators.
23 <append>: New methods.
24 * compile/compile.c (build_argc_argv): Remove.
25 (compile_args_argc): Remove.
26 (compile_args_argv): Change type.
27 (set_compile_args): Simplify.
28 (append_args): Remove.
29 (filter_args): Remove argcp parameter.
30 (get_args): Return gdb_argv. Simplify.
31 (compile_to_object): Update.
32
92677124
TT
332020-09-23 Tom Tromey <tom@tromey.com>
34
35 * compile/compile-object-run.c (do_module_cleanup)
36 <~do_module_cleanup> :Remove.
37 (do_module_cleanup): Update.
38 * compile/compile-object-load.h (struct munmap_list): Add move
39 assignment operator.
40 <source_file>: Now a std::string.
41 <munmap_list>: Rename. No longer a pointer.
42 * compile/compile-object-load.c (struct setup_sections_data): Add
43 constructor.
44 <setup_one_section>: Declare.
45 <munmap_list>: Move earlier.
46 <m_bfd>: New member.
47 <m_last_size, m_last_section_first, m_last_prot,
48 m_last_max_alignment>: Rename, add initializers where needed.
49 (setup_sections_data::setup_one_section): Rename from
50 setup_sections. Update.
51 (compile_object_load): Update. Don't use bfd_map_over_sections.
52
e616f60a
TT
532020-09-23 Tom Tromey <tom@tromey.com>
54
55 * compile/compile-object-run.c (struct do_module_cleanup): Add
56 parameters to constructor. Update destructor.
57 <source_file, scope, scope_data, out_value_type, out_value_addr,
58 munmap_list_head, objfile_name_string>: Remove.
59 <module>: New member.
60 (do_module_cleanup): Update.
61 (compile_object_run): Update.
62
e947a848
TT
632020-09-23 Tom Tromey <tom@tromey.com>
64
65 * compile/compile.c (eval_compile_command): Update.
66 * compile/compile-object-run.h (compile_object_run): Take a
67 compile_module_up.
68 * compile/compile-object-run.c (compile_object_run): Take a
69 compile_module_up.
70 * compile/compile-object-load.h (struct compile_module): Add
71 constructor, destructor.
72 (compile_module_up): New typedef.
73 (compile_object_load): Return compile_object_up.
74 * compile/compile-object-load.c (compile_object_load): Return
75 compile_module_up.
76
0dbf6ee6
TT
772020-09-23 Tom Tromey <tom@tromey.com>
78
79 * compile/compile-object-run.c (struct do_module_cleanup): Add
80 constructor, destructor.
81 <objfile_name_string>: Don't use struct hack.
82 (do_module_cleanup): Use delete.
83 (compile_object_run): Use new.
84
ebe824f5
TT
852020-09-23 Tom Tromey <tom@tromey.com>
86
87 * compile/compile-cplus-types.c
88 (compile_cplus_convert_struct_or_union): Use std::vector.
89 (compile_cplus_convert_func): Likewise.
90 * compile/compile-c-types.c (convert_func): Use std::vector.
91
5dd918d9
TT
922020-09-21 Tom Tromey <tromey@adacore.com>
93
94 * sparc-tdep.c (sparc32_skip_prologue): Use
95 skip_prologue_using_sal.
96
5486c517
TT
972020-09-19 Tom Tromey <tom@tromey.com>
98
99 * symfile.c (add_section_size_callback): Remove.
100 (load_one_section): Rename from load_section_callback. Change
101 parameters.
102 (generic_load): Use foreach.
103
8a6bb1d1
TT
1042020-09-19 Tom Tromey <tom@tromey.com>
105
106 * exec.c (add_to_section_table): Remove.
107 (build_section_table): Use foreach.
108
08f93a1a
TT
1092020-09-19 Tom Tromey <tom@tromey.com>
110
111 * elfread.c (elf_locate_sections): Change parameters.
112 (elf_symfile_read): Use foreach.
113
03cd72b8
TT
1142020-09-19 Tom Tromey <tom@tromey.com>
115
116 * cli/cli-dump.c (struct callback_data): Remove.
117 (restore_one_section): Rename from restore_section_callback.
118 Change parameters.
119 (restore_binary_file): Change parameters.
120 (restore_command): Use foreach.
121
f4f2b85f
TT
1222020-09-19 Tom Tromey <tom@tromey.com>
123
124 * gcore.c (make_output_phdrs): Remove 'ignored' parameter.
125 (gcore_copy_callback): Likewise.
126 (gcore_memory_sections): Use foreach.
127
b35c1d1c
TT
1282020-09-19 Tom Tromey <tom@tromey.com>
129
130 * osabi.h (generic_elf_osabi_sniff_abi_tag_sections): Update.
131 * osabi.c (generic_elf_osabi_sniff_abi_tag_sections): Change
132 parameters.
133 (generic_elf_osabi_sniffer): Use foreach.
134 * mips-sde-tdep.c (mips_sde_elf_osabi_sniffer): Use foreach.
135 * arm-tdep.c (arm_elf_osabi_sniffer): Use foreach.
136
5bb6e9dd
TT
1372020-09-19 Tom Tromey <tom@tromey.com>
138
139 * dwarf2/read.c (locate_dwz_sections): Change parameters.
140 (dwarf2_get_dwz_file): Use foreach.
141 (dwarf2_locate_dwo_sections): Change parameters.
142 (open_and_init_dwo_file): Use foreach.
143 (dwarf2_locate_common_dwp_sections): Change parameters.
144 (open_and_init_dwp_file): Use foreach.
145
ad7277da
TT
1462020-09-19 Tom Tromey <tom@tromey.com>
147
148 * symfile.h: (find_lowest_section): Don't declare.
149 * symfile.c (find_lowest_section): Now static. Change
150 parameters.
151 (struct place_section_arg): Remove.
152 (place_section): Change parameters.
153 (addr_info_make_relative): Use foreach.
154 (symfile_dummy_outputs): Remove.
155 (default_symfile_relocate): Use foreach.
156
cb814f2e
TT
1572020-09-19 Tom Tromey <tom@tromey.com>
158
159 * objfiles.c (add_to_objfile_sections): Rename from
160 add_to_objfile_sections_full.
161 (add_to_objfile_sections): Remove.
162 (build_objfile_section_table): Use foreach.
163
3cabfd26
TT
1642020-09-19 Tom Tromey <tom@tromey.com>
165
166 * stap-probe.c (get_stap_base_address_1): Remove.
167 (get_stap_base_address): Use foreach.
168
1ce51eb5
TT
1692020-09-19 Tom Tromey <tom@tromey.com>
170
171 * gdb_bfd.c (free_one_bfd_section): Remove 'abfd' and 'ignore'
172 parameters.
173 (gdb_bfd_close_or_warn): Use foreach.
174
a190fabb
TT
1752020-09-19 Tom Tromey <tom@tromey.com>
176
177 * corelow.c (add_to_thread_list): Change parameters.
178 (core_target_open): Use foreach.
179
cafb0d81
TT
1802020-09-19 Tom Tromey <tom@tromey.com>
181
182 * gdb_bfd.h (gdb_bfd_sections): New overload. Fix formatting of
183 existing function.
184
c8d5abea
AB
1852020-09-19 Andrew Burgess <andrew.burgess@embecosm.com>
186
187 * f-valprint.c (f77_print_array_1): Adjust printing of whitespace
188 for arrays.
189
6d816919
AB
1902020-09-19 Andrew Burgess <andrew.burgess@embecosm.com>
191
192 * eval.c: Remove 'f-lang.h' include.
193 (value_f90_subarray): Moved to f-lang.c.
194 (eval_call): Renamed to...
195 (evaluate_subexp_do_call): ...this, is no longer static, header
196 comment moved into header file.
197 (evaluate_funcall): Update call to eval_call.
198 (skip_undetermined_arglist): Moved to f-lang.c.
199 (fortran_value_subarray): Likewise.
200 (evaluate_subexp_standard): OP_F77_UNDETERMINED_ARGLIST handling
201 moved to evaluate_subexp_f.
202 (calc_f77_array_dims): Moved to f-lang.c
203 * expprint.c (print_subexp_funcall): New function.
204 (print_subexp_standard): OP_F77_UNDETERMINED_ARGLIST handling
205 moved to print_subexp_f, OP_FUNCALL uses new function.
206 (dump_subexp_body_funcall): New function.
207 (dump_subexp_body_standard): OP_F77_UNDETERMINED_ARGLIST handling
208 moved to dump_subexp_f, OP_FUNCALL uses new function.
209 * expression.h (evaluate_subexp_do_call): Declare.
210 * f-lang.c (value_f90_subarray): Moved from eval.c.
211 (skip_undetermined_arglist): Likewise.
212 (calc_f77_array_dims): Likewise.
213 (fortran_value_subarray): Likewise.
214 (evaluate_subexp_f): Add OP_F77_UNDETERMINED_ARGLIST support.
215 (operator_length_f): Likewise.
216 (print_subexp_f): Likewise.
217 (dump_subexp_body_f): Likewise.
218 * fortran-operator.def (OP_F77_UNDETERMINED_ARGLIST): Move
219 declaration of this operation to here.
220 * parse.c (operator_length_standard): OP_F77_UNDETERMINED_ARGLIST
221 support moved to operator_length_f.
222 * parser-defs.h (dump_subexp_body_funcall): Declare.
223 (print_subexp_funcall): Declare.
224 * std-operator.def (OP_F77_UNDETERMINED_ARGLIST): Moved to
225 fortran-operator.def.
226
8c37706a
AB
2272020-09-19 Andrew Burgess <andrew.burgess@embecosm.com>
228
229 * eval.c (fortran_value_subarray): New function, content is taken
230 from...
231 (evaluate_subexp_standard): ...here, in two places. Now arrays
232 and strings both call the new function.
233 (calc_f77_array_dims): Add header comment, handle strings.
234
14f9473c
VC
2352020-09-18 Victor Collod <vcollod@nvidia.com>
236
237 PR gdb/26635
238 * i386-tdep.c (i386_skip_endbr): Add a helper function to skip endbr.
239 (i386_analyze_prologue): Call i386_skip_endbr.
240
b60cea74
TT
2412020-09-18 Tom Tromey <tromey@adacore.com>
242
243 * windows-nat.c (struct windows_nat_target) <wait>: Update.
244 (windows_nat_target::wait): Update.
245 * target/wait.h (enum target_wait_flag): New. Use
246 DEF_ENUM_FLAGS_TYPE.
247 * target/target.h (target_wait): Change type of options.
248 * target.h (target_options_to_string, default_target_wait):
249 Update.
250 (struct target_ops) <wait>: Change type of options.
251 * target.c (target_wait, default_target_wait, do_option): Change
252 type of "options".
253 (target_options_to_string): Likewise.
254 * target-delegates.c: Rebuild.
255 * target-debug.h (target_debug_print_target_wait_flags): Rename
256 from target_debug_print_options.
257 * sol-thread.c (class sol_thread_target) <wait>: Update.
258 (sol_thread_target::wait): Update.
259 * rs6000-nat.c (class rs6000_nat_target) <wait>: Update.
260 (rs6000_nat_target::wait): Update.
261 * remote.c (class remote_target) <wait, wait_ns, wait_as>:
262 Update.
263 (remote_target::wait_ns, remote_target::wait_as): Change type of
264 "options".
265 (remote_target::wait): Update.
266 * remote-sim.c (struct gdbsim_target) <wait>: Update.
267 (gdbsim_target::wait): Update.
268 * record-full.c (class record_full_base_target) <wait>: Update.
269 (record_full_wait_1): Change type of "options".
270 (record_full_base_target::wait): Update.
271 * record-btrace.c (class record_btrace_target) <wait>: Update.
272 (record_btrace_target::wait): Update.
273 * ravenscar-thread.c (struct ravenscar_thread_target) <wait>:
274 Update.
275 (ravenscar_thread_target::wait): Update.
276 * procfs.c (class procfs_target) <wait>: Update.
277 (procfs_target::wait): Update.
278 * obsd-nat.h (class obsd_nat_target) <wait>: Update.
279 * obsd-nat.c (obsd_nat_target::wait): Update.
280 * nto-procfs.c (struct nto_procfs_target) <wait>: Update.
281 (nto_procfs_target::wait): Update.
282 * nbsd-nat.h (struct nbsd_nat_target) <wait>: Update.
283 * nbsd-nat.c (nbsd_wait): Change type of "options".
284 (nbsd_nat_target::wait): Update.
285 * linux-thread-db.c (class thread_db_target) <wait>: Update.
286 (thread_db_target::wait): Update.
287 * linux-nat.h (class linux_nat_target) <wait>: Update.
288 * linux-nat.c (linux_nat_target::wait): Update.
289 (linux_nat_wait_1): Update.
290 * infrun.c (do_target_wait_1, do_target_wait): Change type of
291 "options".
292 * inf-ptrace.h (struct inf_ptrace_target) <wait>: Update.
293 * inf-ptrace.c (inf_ptrace_target::wait): Update.
294 * go32-nat.c (struct go32_nat_target) <wait>: Update.
295 (go32_nat_target::wait): Update.
296 * gnu-nat.h (struct gnu_nat_target) <wait>: Update.
297 * gnu-nat.c (gnu_nat_target::wait): Update.
298 * fbsd-nat.h (class fbsd_nat_target) <wait>: Update.
299 * fbsd-nat.c (fbsd_nat_target::wait): Update.
300 * darwin-nat.h (class darwin_nat_target) <wait>: Update.
301 * darwin-nat.c (darwin_nat_target::wait): Update.
302 * bsd-uthread.c (struct bsd_uthread_target) <wait>: Update.
303 (bsd_uthread_target::wait): Update.
304 * aix-thread.c (class aix_thread_target) <wait>: Update.
305 (aix_thread_target::wait): Update.
306
0295dde6
AB
3072020-09-18 Andrew Burgess <andrew.burgess@embecosm.com>
308
309 * compile/compile-object-run.c (create_copied_type_recursive): New
310 function.
311 (compile_object_run): Use new function.
312
d3483b43
JT
3132020-08-21 Jon Turney <jon.turney@dronecode.org.uk>
314
315 * NEWS: Mention x86_64 Cygwin core file support.
316
e7d612ad
JT
3172020-07-01 Jon Turney <jon.turney@dronecode.org.uk>
318
319 * windows-tdep.c (NOTE_INFO_MODULE, NOTE_INFO_MODULE64): Define.
320 (core_process_module_section): Handle NOTE_INFO_MODULE64.
321
aff9d387
JT
3222020-07-01 Jon Turney <jon.turney@dronecode.org.uk>
323
62a5151b
JT
324 * windows-tdep.h: Add prototypes.
325 * i386-windows-tdep.c(windows_core_xfer_shared_libraries): Move.
326 (i386_windows_core_pid_to_str): Move and rename ...
327 * windows-tdep.c (windows_core_xfer_shared_libraries): ... to here
328 (windows_core_pid_to_str): ... and here.
329 * amd64-windows-tdep.c (amd64_windows_init_abi_common): Register here.
330
3312020-07-01 Jon Turney <jon.turney@dronecode.org.uk>
aff9d387
JT
332 * amd64-windows-tdep.c(amd64_windows_gregset_reg_offset): Add.
333 (amd64_windows_init_abi_common): ... and register.
334
7d155da3
JT
3352020-07-01 Jon Turney <jon.turney@dronecode.org.uk>
336
337 * amd64-windows-tdep.c (amd64_cygwin_core_osabi_sniffer): New.
338 (_initialize_amd64_windows_tdep): Register amd64_cygwin_core_osabi_sniffer.
339
e8ef12b9
PA
3402020-09-18 Pedro Alves <pedro@palves.net>
341
342 PR gdb/26631
343 * thread.c (thread_find_command): Switch inferior before calling
344 target methods.
345
c1e1314d
TT
3462020-09-17 Tom Tromey <tromey@adacore.com>
347
348 * tic6x-tdep.c (tic6x_gdbarch_init): Update.
349 * target-descriptions.h (struct tdesc_arch_data_deleter): New.
350 (tdesc_arch_data_up): New typedef.
351 (tdesc_use_registers, tdesc_data_alloc): Update.
352 (tdesc_data_cleanup): Don't declare.
353 * target-descriptions.c (tdesc_data_alloc): Return a
354 tdesc_arch_data_up.
355 (tdesc_arch_data_deleter::operator()): Rename from
356 tdesc_data_cleanup. Change argument type.
357 (tdesc_use_registers): Change early_data to an rvalue reference.
358 (tdesc_use_registers): Don't use delete.
359 * sparc-tdep.c (sparc32_gdbarch_init): Update.
360 * s390-tdep.c (s390_gdbarch_init): Update.
361 * rx-tdep.c (rx_gdbarch_init): Update.
362 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
363 * riscv-tdep.c (riscv_gdbarch_init): Update.
364 * or1k-tdep.c (or1k_gdbarch_init): Update.
365 * nios2-tdep.c (nios2_gdbarch_init): Update.
366 * nds32-tdep.c (nds32_gdbarch_init): Update.
367 * mips-tdep.c (mips_gdbarch_init): Update.
368 * microblaze-tdep.c (microblaze_gdbarch_init): Update.
369 * m68k-tdep.c (m68k_gdbarch_init): Update.
370 * i386-tdep.c (i386_gdbarch_init): Update.
371 * arm-tdep.c (arm_gdbarch_init): Update.
372 * arc-tdep.c (arc_tdesc_init): Update.
373 (arc_gdbarch_init): Update.
374 * aarch64-tdep.c (aarch64_gdbarch_init): Update.
375
0363df3d
HD
3762020-09-17 Hannes Domani <ssbssa@yahoo.de>
377
378 * windows-nat.c (ctrl_c_handler): Use 32bit DbgUiRemoteBreakin
379 for WOW64 processes.
380
280a9412
TT
3812020-09-17 Tom Tromey <tom@tromey.com>
382
383 * dwarf2/read.c (compute_compunit_symtab_includes): Use htab_up.
384
6108fd18
TT
3852020-09-17 Tom Tromey <tom@tromey.com>
386
387 * value.c (preserve_values): Update.
388 * python/py-type.c (save_objfile_types): Update.
389 * guile/scm-type.c (save_objfile_types): Update.
390 * gdbtypes.h (create_copied_types_hash): Return htab_up.
391 * gdbtypes.c (create_copied_types_hash): Return htab_up.
392 * compile/compile-object-run.c (compile_object_run): Update.
393
fa9b1164
TT
3942020-09-17 Tom Tromey <tom@tromey.com>
395
396 * typeprint.h (class typedef_hash_table) <~typedef_hash_table>:
397 Remove.
398 <m_table>: Now htab_up.
399 * typeprint.c (typedef_hash_table::recursively_update)
400 (typedef_hash_table::add_template_parameters)
401 (typedef_hash_table::typedef_hash_table): Update.
402 (typedef_hash_table::~typedef_hash_table): Remove.
403 (typedef_hash_table::typedef_hash_table)
404 (typedef_hash_table::find_global_typedef)
405 (typedef_hash_table::find_typedef): Update.
406
eb53f105
TT
4072020-09-17 Tom Tromey <tom@tromey.com>
408
409 * target-descriptions.c (tdesc_use_registers): Use htab_up.
410
7a8a5d47
TT
4112020-09-17 Tom Tromey <tom@tromey.com>
412
413 * linespec.c (class decode_compound_collector)
414 <~decode_compound_collector>: Remove.
415 <m_unique_syms>: Now htab_up.
416 (decode_compound_collector::operator ()): Update.
417 (class symtab_collector) <~symtab_collector>: Remove.
418 <m_symtab_table>: Now htab_up.
419 (symtab_collector::operator ()): Update.
420
99032cfc
TT
4212020-09-17 Tom Tromey <tom@tromey.com>
422
423 * filename-seen-cache.c (filename_seen_cache::filename_seen_cache)
424 (filename_seen_cache::clear): Update.
425 (~filename_seen_cache): Remove.
426 (filename_seen_cache::seen): Update.
427 * filename-seen-cache.h (class filename_seen_cache) <m_tab>: Now
428 htab_up.
429 <~filename_seen_cache>: Remove.
430 <traverse>: Update.
431
32580f6d
TT
4322020-09-17 Tom Tromey <tom@tromey.com>
433
434 * completer.c (completion_tracker::discard_completions)
435 (completion_tracker::~completion_tracker)
436 (completion_tracker::maybe_add_completion)
437 (completion_tracker::remove_completion)
438 (completion_tracker::recompute_lowest_common_denominator)
439 (completion_tracker::build_completion_result): Update.
440 * completer.h (class completion_tracker) <have_completions>:
441 Update.
442 <m_entries_hash>: Now htab_up.
443
c1fb9836
TT
4442020-09-17 Tom Tromey <tom@tromey.com>
445
446 * breakpoint.c (ambiguous_names_p): Use htab_up.
447
88f07206
TT
4482020-09-17 Tom Tromey <tom@tromey.com>
449
450 * auto-load.c (struct auto_load_pspace_info)
451 <~auto_load_pspace_info, auto_load_pspace_info>: Remove.
452 <loaded_script_files, loaded_script_texts>: Change type to
453 htab_up.
454 (~auto_load_pspace_info) Remove.
455 (init_loaded_scripts_info, maybe_add_script_file)
456 (maybe_add_script_text, auto_load_info_scripts): Update.
457
9519b2ee
TT
4582020-09-17 Tom Tromey <tromey@adacore.com>
459
460 * c-exp.y (name_obstack): Now static.
461
d2cd4113
CC
4622020-09-17 Chungyi Chi <demonic@csie.io>
463
464 * riscv-tdep.c (riscv-insn::decode): Fix recorded insn type.
465
b650a282
SM
4662020-09-16 Simon Marchi <simon.marchi@efficios.com>
467
468 * breakpoint.h (init_catchpoint): Change int parameter to bool.
469 (add_solib_catchpoint): Likewise.
470 * breakpoint.c (struct solib_catchpoint) <is_load>: Change type
471 to bool.
472 (add_solib_catchpoint): Change int parameter/variable to bool.
473 (catch_load_or_unload): Likewise.
474 (init_catchpoint): Likewise.
475 (create_fork_vfork_event_catchpoint): Likewise.
476 (catch_fork_command_1): Likewise.
477 (catch_exec_command_1): Likewise.
478
4d0bcfcf
SM
4792020-09-16 Simon Marchi <simon.marchi@efficios.com>
480
481 * gdb-gdb.py.in (class StructTypePrettyPrinter) <to_string>:
482 Change instance_flags to m_instance_flags.
483
fe830662
TT
4842020-09-16 Tom Tromey <tromey@adacore.com>
485
486 PR gdb/26598:
487 * infrun.c (fill_in_stop_func): Use find_pc_partial_function_sym.
488
fe5ddfc3
JB
4892020-09-16 John Baldwin <jhb@FreeBSD.org>
490
491 * fbsd-nat.c (fbsd_nat_target::wait): Always check for
492 PL_FLAG_EXEC.
493 (fbsd_nat_target::insert_exec_catchpoint)
494 (fbsd_nat_target::remove_exec_catchpoint): Always define.
495 * fbsd-nat.h (fbsd_nat_target::insert_exec_catchpoint)
496 (fbsd_nat_target::remove_exec_catchpoint): Always declare.
497
e911c666
JB
4982020-09-16 John Baldwin <jhb@FreeBSD.org>
499
500 * configure.ac: Remove check for kinfo_getvmmap().
501 * configure, config.in: Regenerate.
502 * fbsd-nat.c (fbsd_read_mapping): Remove
503 (fbsd_nat_target::find_memory_regions): Remove the procfs version.
504 (fbsd_nat_target::info_proc): Assume kinfo_getfile() and
505 kinfo_get_vmmap() are always present.
506
1f17d372
JB
5072020-09-16 John Baldwin <jhb@FreeBSD.org>
508
509 * fbsd-nat.c: Always include support for
510 TARGET_OBJECT_SIGNAL_INFO.
511
bcb1da7f
JB
5122020-09-16 John Baldwin <jhb@FreeBSD.org>
513
514 * fbsd-nat.c (fbsd_nat_target::pid_to_exec_file): Always use
515 sysctl and remove procfs fallback.
516
5515f729
JB
5172020-09-16 John Baldwin <jhb@FreeBSD.org>
518
519 * fbsd-nat.c: Assume PT_LWPINFO is always defined.
520 * fbsd-nat.h: Likewise.
521
da1df1db
TBA
5222020-09-16 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
523
524 * breakpoint.c (commands_command_1): Make a copy of the 'arg'
525 argument.
526
0e25e767
AB
5272020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
528
529 * ada-lang.c (ada_language_data): Delete.
530 (ada_language): Remove references to ada_language_data.
531 * c-lang.c (c_language_data): Delete.
532 (c_language): Remove references to c_language_data.
533 (cplus_language_data): Delete.
534 (cplus_language): Remove references to cplus_language_data.
535 (asm_language_data): Delete.
536 (asm_language): Remove references to asm_language_data.
537 (minimal_language_data): Delete.
538 (minimal_language): Remove references to minimal_language_data.
539 * d-lang.c (d_language_data): Delete.
540 (d_language): Remove references to d_language_data.
541 * f-lang.c (f_language_data): Delete.
542 (f_language): Remove references to f_language_data.
543 * go-lang.c (go_language_data): Delete.
544 (go_language): Remove references to go_language_data.
545 * language.c (unknown_language_data): Delete.
546 (unknown_language): Remove references to unknown_language_data.
547 (auto_language_data): Delete.
548 (auto_language): Remove references to auto_language_data.
549 * language.h (language_data): Delete struct.
550 (language_defn): No longer inherit from language_data.
551 * m2-lang.c (m2_language_data): Delete.
552 (m2_language): Remove references to m2_language_data.
553 * objc-lang.c (objc_language_data): Delete.
554 (objc_language): Remove references to objc_language_data.
555 * opencl-lang.c (opencl_language_data): Delete.
556 (opencl_language): Remove references to opencl_language_data.
557 * p-lang.c (pascal_language_data): Delete.
558 (pascal_language): Remove references to pascal_language_data.
559 * rust-lang.c (rust_language_data): Delete.
560 (rust_language): Remove references to rust_language_data.
561
b7c6e27d
AB
5622020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
563
564 * ada-lang.c (ada_language_data): Remove la_op_print_tab
565 initializer.
566 (ada_language::opcode_print_table): New member function.
567 * c-lang.c (c_language_data): Remove la_op_print_tab initializer.
568 (c_language::opcode_print_table): New member function.
569 (cplus_language_data): Remove la_op_print_tab initializer.
570 (cplus_language::opcode_print_table): New member function.
571 (asm_language_data): Remove la_op_print_tab initializer.
572 (asm_language::opcode_print_table): New member function.
573 (minimal_language_data): Remove la_op_print_tab initializer.
574 (minimal_language::opcode_print_table): New member function.
575 * d-lang.c (d_language_data): Remove la_op_print_tab initializer.
576 (d_language::opcode_print_table): New member function.
577 * expprint.c (print_subexp_standard): Update call to
578 opcode_print_table.
579 (op_string): Likewise.
580 * f-lang.c (f_language_data): Remove la_op_print_tab initializer.
581 (f_language::opcode_print_table): New member function.
582 * go-lang.c (go_language_data): Remove la_op_print_tab
583 initializer.
584 (go_language::opcode_print_table): New member function.
585 * language.c (unknown_language_data): Remove la_op_print_tab
586 initializer.
587 (unknown_language::opcode_print_table): New member function.
588 (auto_language_data): Remove la_op_print_tab initializer.
589 (auto_language::opcode_print_table): New member function.
590 * language.h (language_data): Remove la_op_print_tab field.
591 (language_defn::opcode_print_table): Declare new member function.
592 * m2-lang.c (m2_language_data): Remove la_op_print_tab
593 initializer.
594 (m2_language::opcode_print_table): New member function.
595 * objc-lang.c (objc_language_data): Remove la_op_print_tab
596 initializer.
597 (objc_language::opcode_print_table): New member function.
598 * opencl-lang.c (opencl_language_data): Remove la_op_print_tab
599 initializer.
600 (opencl_language::opcode_print_table): New member function.
601 * p-lang.c (pascal_language_data): Remove la_op_print_tab
602 initializer.
603 (pascal_language::opcode_print_table): New member function.
604 * rust-lang.c (rust_language_data): Remove la_op_print_tab
605 initializer.
606 (rust_language::opcode_print_table): New member function.
607
5aba6ebe
AB
6082020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
609
610 * ada-lang.c (ada_language_data): Remove la_exp_desc initializer.
611 (ada_language::expression_ops): New member function.
612 * c-lang.c (c_language_data): Remove la_exp_desc initializer.
613 (c_language::expression_ops): New member function.
614 (cplus_language_data): Remove la_exp_desc initializer.
615 (cplus_language::expression_ops): New member function.
616 (asm_language_data): Remove la_exp_desc initializer.
617 (asm_language::expression_ops): New member function.
618 (minimal_language_data): Remove la_exp_desc initializer.
619 (minimal_language::expression_ops): New member function.
620 * d-lang.c (d_language_data): Remove la_exp_desc initializer.
621 (d_language::expression_ops): New member function.
622 * eval.c (evaluate_subexp): Update call to expression_ops.
623 * expprint.c (print_subexp): Likewise.
624 (op_name): Likewise.
625 (dump_subexp_body): Likewise.
626 * f-lang.c (f_language_data): Remove la_exp_desc initializer.
627 (f_language::expression_ops): New member function.
628 * go-lang.c (go_language_data): Remove la_exp_desc initializer.
629 (go_language::expression_ops): New member function.
630 * language.c (language_defn::expression_ops): New function.
631 (unknown_language_data): Remove la_exp_desc initializer.
632 (auto_language_data): Likewise.
633 * language.h (language_data): Remove la_exp_desc field.
634 (language_defn::expression_ops): Declare new member function.
635 * m2-lang.c (m2_language_data): Remove la_exp_desc initializer.
636 (m2_language::expression_ops): New member function.
637 * objc-lang.c (objc_language_data): Remove la_exp_desc
638 initializer.
639 * opencl-lang.c (opencl_language_data): Remove la_exp_desc
640 initializer.
641 (opencl_language::expression_ops): New member function.
642 * p-lang.c (pascal_language_data): Remove la_exp_desc initializer.
643 * parse.c (operator_length): Update call to expression_ops.
644 (exp_iterate): Likewise.
645 * rust-lang.c (rust_language_data): Remove la_exp_desc
646 initializer.
647 (ruse_language::expression_ops): New member function.
648
b63a3f3f
AB
6492020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
650
651 * ada-lang.c (ada_language_data): Remove la_varobj_ops
652 initializer.
653 (ada_language::varobj_ops): New member function.
654 * c-lang.c (c_language_data): Remove la_varobj_ops
655 initializer.
656 (cplus_language_data): Likewise.
657 (cplus_language::varobj_ops): New member function.
658 (asm_language_data): Remove la_varobj_ops initializer.
659 (minimal_language_data): Likewise.
660 * d-lang.c (d_language_data): Likewise.
661 * f-lang.c (f_language_data): Likewise.
662 * go-lang.c (go_language_data): Likewise.
663 * language.c (language_defn::varobj_ops): New function.
664 (unknown_language_data): Remove la_varobj_ops
665 initializer.
666 (auto_language_data): Likewise.
667 * language.h (language_data): Remove la_varobj_ops field.
668 (language_defn::varobj_ops): Declare new member function.
669 * m2-lang.c (m2_language_data): Remove la_varobj_ops initializer.
670 * objc-lang.c (objc_language_data): Likewise.
671 * opencl-lang.c (opencl_language_data): Likewise.
672 * p-lang.c (pascal_language_data): Likewise.
673 * rust-lang.c (rust_language_data): Likewise.
674 * varobj.c (varobj_create): Update call to varobj_ops.
675 * varobj.h (default_varobj_ops): Delete define.
676
1ac14a04
AB
6772020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
678
679 * ada-lang.c (ada_language_data): Remove la_macro_expansion
680 initializer.
681 * c-lang.c (c_language_data): Likewise.
682 (c_language::macro_expansion): New member function.
683 (cplus_language_data): Likewise.
684 (cplus_language::macro_expansion): New member function.
685 (asm_language_data): Likewise.
686 (asm_language::macro_expansion): New member function.
687 (minimal_language_data): Likewise.
688 (minimal_language::macro_expansion): New member function.
689 * d-lang.c (d_language_data): Remove la_macro_expansion
690 initializer.
691 * f-lang.c (f_language_data): Likewise.
692 * go-lang.c (go_language_data): Likewise.
693 * language.c (unknown_language_data): Likewise.
694 (auto_language_data): Likewise.
695 * language.h (language_data): Remove la_macro_expansion field.
696 (language_defn::macro_expansion): New member function.
697 * m2-lang.c (m2_language_data): Remove la_macro_expansion
698 initializer.
699 * objc-lang.c (objc_language_data): Likewise.
700 (objc_language::macro_expansion): New member function.
701 * opencl-lang.c (opencl_language_data): Likewise.
702 (opencl_language::macro_expansion): New member function.
703 * p-lang.c (pascal_language_data): Remove la_macro_expansion
704 initializer.
705 * rust-lang.c (rust_language_data): Likewise.
706 * symtab.c (default_collect_symbol_completion_matches_break_on):
707 Update call to macro_expansion.
708
3a3440fb
AB
7092020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
710
711 * ada-lang.c (ada_language_data): Remove la_array_ordering
712 initializer.
713 * c-lang.c (c_language_data): Likewise.
714 (cplus_language_data): Likewise.
715 (asm_language_data): Likewise.
716 (minimal_language_data): Likewise.
717 * d-lang.c (d_language_data): Likewise.
718 * dwarf2/read.c (read_array_order): Update for call to
719 array_ordering.
720 * f-lang.c (f_language_data): Remove la_array_ordering
721 initializer.
722 (f_language::array_ordering): New member function.
723 * go-lang.c (go_language_data): Remove la_array_ordering
724 initializer.
725 * language.c (unknown_language_data): Likewise.
726 (auto_language_data): Likewise.
727 * language.h (language_data): Delete la_array_ordering field.
728 (language_defn::array_ordering): New member function.
729 * m2-lang.c (m2_language_data): Remove la_array_ordering
730 initializer.
731 * objc-lang.c (objc_language_data): Likewise.
732 * opencl-lang.c (opencl_language_data): Likewise.
733 * p-lang.c (pascal_language_data): Likewise.
734 * rust-lang.c (rust_language_data): Likewise.
735
0d201fa4
AB
7362020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
737
738 * ada-lang.c (ada_language_data): Remove la_case_sensitivity
739 initializer.
740 * c-lang.c (c_language_data): Likewise.
741 (cplus_language_data): Likewise.
742 (asm_language_data): Likewise.
743 (minimal_language_data): Likewise.
744 * d-lang.c (d_language_data): Likewise.
745 * f-lang.c (f_language_data): Likewise.
746 (f_language::case_sensitivity): New member function.
747 * go-lang.c (go_language_data): Remove la_case_sensitivity
748 initializer.
749 * language.c (enum case_mode): Moved here from language.h.
750 (case_mode): Make static.
751 (show_case_command): Update for case_sensitivity being a method.
752 (set_case_command): Likewise.
753 (set_range_case): Likewise.
754 (unknown_language_data): Remove la_case_sensitivity initializer.
755 (auto_language_data): Likewise.
756 * language.h (case_mode): Delete, move enum declaration to
757 language.c.
758 (language_data): Delete la_case_sensitivity field.
759 (language_defn::case_sensitivity): New member function.
760 * m2-lang.c (m2_language_data): Remove la_case_sensitivity
761 initializer.
762 * objc-lang.c (objc_language_data): Likewise.
763 * opencl-lang.c (opencl_language_data): Likewise.
764 * p-lang.c (pascal_language_data): Likewise.
765 * rust-lang.c (rust_language_data): Likewise.
766
efdf6a73
AB
7672020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
768
769 * ada-lang.c (ada_language_data): Remove la_range_check
770 initializer.
771 * c-lang.c (c_language_data): Likewise.
772 (cplus_language_data): Likewise.
773 (asm_language_data): Likewise.
774 (minimal_language_data): Likewise.
775 * d-lang.c (d_language_data): Likewise.
776 * f-lang.c (f_language_data): Likewise.
777 (f_language::range_checking_on_by_default): New member function.
778 * go-lang.c (go_language_data): Remove la_range_check initializer.
779 * language.c (enum range_mode): Moved here from language.h.
780 (range_mode): Made static.
781 (show_range_command): Update to use
782 range_checking_on_by_default.
783 (set_range_command): Likewise.
784 (set_range_case): Likewise.
785 (unknown_language_data): Remove la_range_check initializer.
786 (auto_language_data): Likewise.
787 * language.h (range_mode): Delete. Enum definition moved to
788 language.c.
789 (language_data): Remove la_range_check field.
790 (language_defn::range_checking_on_by_default): New member
791 function.
792 * m2-lang.c (m2_language_data): Remove la_range_check initializer.
793 (m2_language::range_checking_on_by_default): New member function.
794 * objc-lang.c (objc_language_data): Remove la_range_check
795 initializer.
796 * opencl-lang.c (opencl_language_data): Likewise.
797 * p-lang.c (pascal_language_data): Likewise.
798 (pascal_language::range_checking_on_by_default): New member
799 function.
800 * rust-lang.c (rust_language_data): Remove la_range_check
801 initializer.
802 (rust_language::range_checking_on_by_default): New member
803 function.
804
bf92aec5
AB
8052020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
806
807 * dwarf2/read.c (dwarf2_physname): Remove special case for
808 language_go.
809 * go-lang.c (go_language::store_sym_names_in_linkage_form_p): New
810 member function.
811
d3355e4d
AB
8122020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
813
814 * ada-lang.c (ada_language_data): Remove
815 la_store_sym_names_in_linkage_form_p initializer.
816 (ada_language::store_sym_names_in_linkage_form_p): New member
817 function.
818 * c-lang.c (c_language_data): Remove
819 la_store_sym_names_in_linkage_form_p initializer.
820 (c_language::store_sym_names_in_linkage_form_p): New member
821 function.
822 (cplus_language_data): Remove la_store_sym_names_in_linkage_form_p
823 initializer.
824 (asm_language_data): Likewise.
825 (asm_language::store_sym_names_in_linkage_form_p): New member
826 function.
827 (minimal_language_data): Remove
828 la_store_sym_names_in_linkage_form_p initializer.
829 (minimal_language::store_sym_names_in_linkage_form_p): New member
830 function.
831 * d-lang.c (d_language_data): Remove
832 la_store_sym_names_in_linkage_form_p initializer.
833 * dwarf2/read.c (dwarf2_physname): Update call to
834 store_sym_names_in_linkage_form_p.
835 * f-lang.c (f_language_data): Remove
836 la_store_sym_names_in_linkage_form_p initializer.
837 * go-lang.c (go_language_data): Remove
838 la_store_sym_names_in_linkage_form_p initializer.
839 * language.c (unknown_language_data): Remove
840 la_store_sym_names_in_linkage_form_p initializer.
841 (unknown_language::store_sym_names_in_linkage_form_p): New member
842 function.
843 (auto_language_data): Remove la_store_sym_names_in_linkage_form_p
844 initializer.
845 (auto_language::store_sym_names_in_linkage_form_p): New member
846 function.
847 * language.h (language_data): Remove
848 la_store_sym_names_in_linkage_form_p member variable.
849 (language_defn::store_sym_names_in_linkage_form_p): New member
850 function.
851 * m2-lang.c (m2_language_data): Remove
852 la_store_sym_names_in_linkage_form_p initializer.
853 * objc-lang.c (objc_language_data): Likewise.
854 * opencl-lang.c (opencl_language_data): Likewise.
855 * p-lang.c (pascal_language_data): Likewise.
856 * rust-lang.c (rust_language_data): Likewise.
857
22c12a6c
AB
8582020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
859
860 * ada-lang.c (ada_language_data): Remove string_lower_bound
861 initializer.
862 * c-lang.c (c_language_data): Likewise.
863 (cplus_language_data): Likewise.
864 (asm_language_data): Likewise.
865 (minimal_language_data): Likewise.
866 * d-lang.c (d_language_data): Likewise.
867 * f-lang.c (f_language_data): Likewise.
868 * go-lang.c (go_language_data): Likewise.
869 * language.c (unknown_language_data): Likewise.
870 (auto_language_data): Likewise.
871 * language.h (language_data): Remove string_lower_bound field.
872 (language_defn::string_lower_bound): New member function.
873 * m2-lang.c (m2_language_data): Remove string_lower_bound
874 initializer.
875 (m2_language::string_lower_bound): New member function.
876 * objc-lang.c (objc_language_data): Remove string_lower_bound
877 initializer.
878 * opencl-lang.c (opencl_language_data): Likewise.
879 * p-lang.c (pascal_language_data): Likewise.
880 * rust-lang.c (rust_language_data): Likewise.
881 * valops.c (value_cstring): Update call to string_lower_bound.
882 (value_string): Likewise.
883 * value.c (allocate_repeated_value): Likewise.
884
1c236ddd
AB
8852020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
886
887 * valops.c (value_repeat): Fix incorrect argument name in comment.
888
67bd3fd5
AB
8892020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
890
891 * ada-lang.c (ada_language_data): Remove c_style_arrays
892 initializer.
893 (ada_language::c_style_arrays_p): New member fuction.
894 * c-lang.c (c_language_data): Remove c_style_arrays
895 initializer.
896 (cplus_language_data): Likewise.
897 (asm_language_data): Likewise.
898 (minimal_language_data): Likewise.
899 * d-lang.c (d_language_data): Likewise.
900 * eval.c (ptrmath_type_p): Update call to c_style_arrays_p.
901 * f-lang.c (f_language_data): Remove c_style_arrays initializer.
902 (f_language::c_style_arrays_p): New member function.
903 * go-lang.c (go_language_data): Remove c_style_arrays initializer.
904 * infcall.c (value_arg_coerce): Update call to c_style_arrays_p.
905 * language.c (unknown_language_data): Remove c_style_arrays
906 initializer.
907 (auto_language_data): Likewise.
908 * language.h (language_data): Remove c_style_arrays field.
909 (language_defn::c_style_arrays_p): New member function.
910 * m2-lang.c (m2_language_data): Remove c_style_arrays initializer.
911 (m2_language::c_style_arrays_p): New member function.
912 * objc-lang.c (objc_language_data): Remove c_style_arrays
913 initializer.
914 * opencl-lang.c (opencl_language_data): Likewise.
915 * p-lang.c (pascal_language_data): Likewise.
916 * rust-lang.c (rust_language_data): Likewise.
917 * valarith.c (value_subscript): Update call to c_style_arrays_p,
918 and update local variable to a bool.
919 * valops.c (value_cast): Update call to c_style_arrays_p.
920 (value_array): Likewise.
921 * value.c (coerce_array): Likewise.
922
85967615
AB
9232020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
924
925 * ada-lang.c (ada_language_data): Remove la_language initializer.
926 * c-lang.c (c_language_data): Likewise.
927 (cplus_language_data): Likewise.
928 (asm_language_data): Likewise.
929 (minimal_language_data): Likewise.
930 * d-lang.c (d_language_data): Likewise.
931 * f-lang.c (f_language_data): Likewise.
932 * go-lang.c (go_language_data): Likewise.
933 * language.c (unknown_language_data): Likewise.
934 (auto_language_data): Likewise.
935 * language.h (language_data): Remove la_language field.
936 (language_defn::language_defn): Initialise la_language field.
937 (language_defn::la_language): New member variable.
938 * m2-lang.c (m2_language_data): Remove la_language field.
939 * objc-lang.c (objc_language_data): Likewise.
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
e171d6f1
AB
9442020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
945
946 * ada-lang.c (ada_extensions): Delete, moved into
947 ada_language::filename_extensions.
948 (ada_language_data): Remove la_filename_extensions initializer.
949 (ada_language::filename_extensions): New member function.
950 * c-lang.c (c_extensions): Delete, moved into
951 c_language::filename_extensions.
952 (c_language_data): Remove la_filename_extensions initializer.
953 (c_language::filename_extensions): New member function.
954 (cplus_extensions): Delete, moved into
955 cplus_language::filename_extensions.
956 (cplus_language_data): Remove la_filename_extensions initializer.
957 (cplus_language::filename_extensions): New member function.
958 (asm_extensions): Delete, moved into
959 asm_language::filename_extensions.
960 (asm_language_data): Remove la_filename_extensions initializer.
961 (asm_language::filename_extensions): New member function.
962 (minimal_language_data): Remove la_filename_extensions
963 initializer.
964 * d-lang.c (d_extensions): Delete, moved into
965 d_language::filename_extensions.
966 (d_language_data): Remove la_filename_extensions initializer.
967 (d_language::filename_extensions): New member function.
968 * f-lang.c (f_extensions): Delete, moved into
969 f_language::filename_extensions.
970 (f_language_data): Remove la_filename_extensions initializer.
971 (f_language::filename_extensions): New member function.
972 * go-lang.c (go_language_data): Remove la_filename_extensions
973 initializer.
974 * language.c (add_set_language_command): Update now that
975 filename_extensions returns a vector.
976 (unknown_language_data): Remove la_filename_extensions
977 initializer.
978 (auto_language_data): Likewise.
979 * language.h (language_data): Remove la_filename_extensions field.
980 (language_defn::filename_extensions): New member function.
981 * m2-lang.c (m2_language_data): Remove la_filename_extensions
982 initializer.
983 * objc-lang.c (objc_extensions): Delete, moved into
984 objc_language::filename_extensions.
985 (objc_language_data): Remove la_filename_extensions initializer.
986 (objc_language::filename_extensions): New member function.
987 * opencl-lang.c (opencl_language_data): Remove
988 la_filename_extensions initializer.
989 * p-lang.c (pascal_extensions): Delete, moved into
990 pascal_language::filename_extensions.
991 (pascal_language_data): Remove la_filename_extensions initializer.
992 (pascal_language::filename_extensions): New member function.
993 * rust-lang.c (rust_extensions): Delete, moved into
994 rust_language::filename_extensions.
995 (rust_language_data): Remove la_filename_extensions initializer.
996 (rust_language::filename_extensions): New member function.
997 * symfile.c (add_filename_language): Add new assert.
998
6f7664a9
AB
9992020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
1000
1001 * ada-lang.c (ada_language_data): Remove la_name and
1002 la_natural_name initializers.
1003 (ada_language::name): New member function.
1004 (ada_language::natural_name): New member function.
1005 * c-lang.c (c_language_data): Remove la_name and
1006 la_natural_name initializers.
1007 (c_language::name): New member function.
1008 (c_language::natural_name): New member function.
1009 (cplus_language_data): Remove la_name and
1010 la_natural_name initializers.
1011 (cplus_language::name): New member function.
1012 (cplus_language::natural_name): New member function.
1013 (asm_language_data): Remove la_name and
1014 la_natural_name initializers.
1015 (asm_language::name): New member function.
1016 (asm_language::natural_name): New member function.
1017 (minimal_language_data): Remove la_name and
1018 la_natural_name initializers.
1019 (minimal_language::name): New member function.
1020 (minimal_language::natural_name): New member function.
1021 * compile/compile.c (compile_to_object): Update call to
1022 lanugage_defn::name.
1023 * d-lang.c (d_language_data): Remove la_name and
1024 la_natural_name initializers.
1025 (d_language::name): New member function.
1026 (d_language::natural_name): New member function.
1027 * expprint.c (print_subexp_standard): Update call to
1028 language_defn::name.
1029 (dump_raw_expression): Likewise
1030 (dump_prefix_expression): Likewise.
1031 * f-lang.c (f_language_data): Remove la_name and
1032 la_natural_name initializers.
1033 (f_language::name): New member function.
1034 (f_language::natural_name): New member function.
1035 * go-lang.c (go_language_data): Remove la_name and
1036 la_natural_name initializers.
1037 (go_language::name): New member function.
1038 (go_language::natural_name): New member function.
1039 * language.c (show_language_command): Update call to
1040 language_defn::name.
1041 (set_language_command): Likewise.
1042 (language_enum): Likewise.
1043 (language_str): Likewise.
1044 (add_set_language_command): Likewise, use
1045 language_defn::natural_name in the doc string.
1046 (unknown_language_data): Remove la_name and
1047 la_natural_name initializers.
1048 (unknown_language::name): New member function.
1049 (unknown_language::natural_name): New member function.
1050 (auto_language_data): Remove la_name and
1051 la_natural_name initializers.
1052 (auto_language::name): New member function.
1053 (auto_language::natural_name): New member function.
1054 (language_lookup_primitive_type_as_symbol): Update call to
1055 language_defn::name.
1056 * language.h (language_data): Remove la_name and la_natural_name
1057 member variables.
1058 (language_defn::name): New member function.
1059 (language_defn::natural_name): New member function.
1060 * m2-lang.c (m2_language_data): Remove la_name and
1061 la_natural_name initializers.
1062 (m2_language::name): New member function.
1063 (m2_language::natural_name): New member function.
1064 * mi/mi-cmd-var.c (mi_cmd_var_info_expression): Update call to
1065 language_defn::natural_name.
1066 * objc-lang.c (objc_language_data): Remove la_name and
1067 la_natural_name initializers.
1068 (objc_language::name): New member function.
1069 (objc_language::natural_name): New member function.
1070 * opencl-lang.c (opencl_language_data): Remove la_name and
1071 la_natural_name initializers.
1072 (opencl_language::name): New member function.
1073 (opencl_language::natural_name): New member function.
1074 * p-lang.c (pascal_language_data): Remove la_name and
1075 la_natural_name initializers.
1076 (pascal_language::name): New member function.
1077 (pascal_language::natural_name): New member function.
1078 * rust-lang.c (rust_language_data): Remove la_name and
1079 la_natural_name initializers.
1080 (rust_language::name): New member function.
1081 (rust_language::natural_name): New member function.
1082 * symtab.c (lookup_language_this): Update call to
1083 language_defn::name.
1084
5bae7c4e
AB
10852020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
1086
1087 * ada-lang.c (ada_language_data): Remove la_name_of_this
1088 initializer.
1089 * ax-gdb.c (gen_expr): Update call to name_of_this.
1090 * c-exp.y (classify_name): Likewise.
1091 * c-lang.c (c_language_data): Remove la_name_of_this initializer.
1092 (cplus_language_data): Likewise.
1093 (cplus_language::name_of_this): New member function.
1094 (asm_language_data): Remove la_name_of_this initializer.
1095 (minimal_language_data): Likewise.
1096 * d-lang.c (d_language_data): Likewise.
1097 (d_language::name_of_this): New member function.
1098 * expprint.c (print_subexp_standard): Update call to name_of_this.
1099 * f-lang.c (f_language_data): Remove la_name_of_this initializer.
1100 * go-lang.c (go_language_data): Likewise.
1101 * language.c (unknown_language_data): Likewise.
1102 (unknown_language::name_of_this): New member function.
1103 (auto_language_data): Remove la_name_of_this initializer.
1104 (auto_language::name_of_this): New member function.
1105 * language.h (language_data): Delete la_name_of_this member
1106 variable.
1107 (language_defn::name_of_this): New member function.
1108 * m2-lang.c (m2_language_data): Remove la_name_of_this
1109 initializer.
1110 * objc-lang.c (objc_language_data): Likewise.
1111 (objc_language::name_of_this): New member function.
1112 * opencl-lang.c (opencl_language_data): Remove la_name_of_this
1113 initializer.
1114 * p-lang.c (pascal_language_data): Likewise.
1115 (pascal_language::name_of_this): New member function.
1116 * rust-lang.c (rust_language_data): Remove la_name_of_this
1117 initializer.
1118 * symtab.c (lookup_language_this): Update call to name_of_this.
1119 (lookup_symbol_aux): Likewise.
1120 * valops.c (value_of_this): Likewise.
1121
22e3f3ed
AB
11222020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
1123
1124 * ada-lang.c (ada_language_data): Remove
1125 la_struct_too_deep_ellipsis initializer.
1126 (ada_language::struct_too_deep_ellipsis): New member function.
1127 * c-lang.c (c_language_data): Remove la_struct_too_deep_ellipsis
1128 initializer.
1129 (cplus_language_data): Likewise.
1130 (asm_language_data): Likewise.
1131 (minimal_language_data): Likewise.
1132 * cp-valprint.c (cp_print_value): Update call to
1133 struct_too_deep_ellipsis.
1134 * d-lang.c (d_language_data): Remove la_struct_too_deep_ellipsis
1135 initializer.
1136 * f-lang.c (f_language_data): Likewise.
1137 (f_language::struct_too_deep_ellipsis): New member function.
1138 * go-lang.c (go_language_data): Remove la_struct_too_deep_ellipsis
1139 initializer.
1140 * language.c (unknown_language_data): Likewise.
1141 (auto_language_data): Likewise.
1142 * language.h (language_data): Delete la_struct_too_deep_ellipsis
1143 member variable.
1144 (language_defn::struct_too_deep_ellipsis): New member function.
1145 * m2-lang.c (m2_language_data): Remove la_struct_too_deep_ellipsis
1146 initializer.Q
1147 * objc-lang.c (objc_language_data): Likewise.
1148 * opencl-lang.c (opencl_language_data): Likewise.
1149 * p-lang.c (pascal_language_data): Likewise.
1150 * rust-lang.c (rust_language_data): Likewise.
1151 * valprint.c (val_print_check_max_depth): Update call to
1152 struct_too_deep_ellipsis.
1153
ed29e1c7
FW
11542020-09-16 Felix Willgerodt <felix.willgerodt@intel.com>
1155
1156 * MAINTAINERS (Write After Approval): Add myself.
1157
12d8f940
TT
11582020-09-15 Tom Tromey <tom@tromey.com>
1159
1160 * f-valprint.c (f_value_print_inner) <case TYPE_CODE_INT>:
1161 Remove.
1162
6b5a7bc7
TT
11632020-09-15 Tom Tromey <tom@tromey.com>
1164
1165 * rust-lang.c (rust_value_print_inner): Remove TYPE_CODE_MEMBERPTR
1166 and TYPE_CODE_METHODPTR cases.
1167 * c-valprint.c (c_value_print_memberptr): Move to valprint.c.
1168 (c_value_print_inner): Update.
1169 * valprint.c (generic_value_print_memberptr): New function, from
1170 c_value_print_memberptr.
1171 (generic_value_print): Use it. Call cplus_print_method_ptr.
1172
47f0e2ff
TT
11732020-09-15 Tom Tromey <tromey@adacore.com>
1174
1175 * python/python-internal.h (PyInt_FromLong): Remove define.
1176 * python/py-value.c (convert_value_from_python): Use
1177 gdb_py_object_from_longest.
1178 * python/py-type.c (typy_get_code): Use
1179 gdb_py_object_from_longest.
1180 * python/py-symtab.c (salpy_get_line): Use
1181 gdb_py_object_from_longest.
1182 * python/py-symbol.c (sympy_get_addr_class, sympy_line): Use
1183 gdb_py_object_from_longest.
1184 * python/py-record.c (recpy_gap_reason_code): Use
1185 gdb_py_object_from_longest.
1186 * python/py-record-btrace.c (recpy_bt_insn_size)
1187 (recpy_bt_func_level, btpy_list_count): Use
1188 gdb_py_object_from_longest.
1189 * python/py-infthread.c (gdbpy_create_ptid_object): Use
1190 gdb_py_object_from_longest. Fix error handling.
1191 * python/py-framefilter.c (bootstrap_python_frame_filters): Use
1192 gdb_py_object_from_longest.
1193 * python/py-frame.c (frapy_type, frapy_unwind_stop_reason): Use
1194 gdb_py_object_from_longest.
1195 * python/py-breakpoint.c (bppy_get_type, bppy_get_number)
1196 (bppy_get_thread, bppy_get_task, bppy_get_hit_count)
1197 (bppy_get_ignore_count): Use gdb_py_object_from_longest.
1198
512116ce
TT
11992020-09-15 Tom Tromey <tromey@adacore.com>
1200
1201 * python/python.c (gdbpy_parameter_value): Use
1202 gdb_py_object_from_ulongest.
1203
4ab1029c
TT
12042020-09-15 Tom Tromey <tromey@adacore.com>
1205
1206 * python/py-infevents.c (create_register_changed_event_object):
1207 Use gdb_py_object_from_longest.
1208 * python/py-exitedevent.c (create_exited_event_object): Use
1209 gdb_py_object_from_longest.
1210
062534d4
TT
12112020-09-15 Tom Tromey <tromey@adacore.com>
1212
1213 * python/python.c (gdbpy_parameter_value): Use
1214 gdb_py_object_from_longest.
1215 * python/py-type.c (convert_field, typy_range): Use
1216 gdb_py_object_from_longest.
1217 * python/py-tui.c (gdbpy_tui_width, gdbpy_tui_height): Use
1218 gdb_py_object_from_longest.
1219 * python/py-lazy-string.c (stpy_get_length): Use
1220 gdb_py_object_from_longest.
1221 * python/py-infthread.c (thpy_get_num, thpy_get_global_num): Use
1222 gdb_py_object_from_longest.
1223 * python/py-infevents.c (create_memory_changed_event_object): Use
1224 gdb_py_object_from_longest.
1225 * python/py-inferior.c (infpy_get_num): Use
1226 gdb_py_object_from_longest.
1227 (infpy_get_pid): Likewise.
1228
d1cab987
TT
12292020-09-15 Tom Tromey <tromey@adacore.com>
1230
1231 * python/python-internal.h (gdb_py_long_from_ulongest): Remove
1232 defines.
1233 * python/py-value.c (valpy_long): Use
1234 gdb_py_object_from_ulongest.
1235 * python/py-symtab.c (salpy_get_pc): Use
1236 gdb_py_object_from_ulongest.
1237 (salpy_get_last): Likewise.
1238 * python/py-record-btrace.c (recpy_bt_insn_pc): Use
1239 gdb_py_object_from_ulongest.
1240 * python/py-lazy-string.c (stpy_get_address): Use
1241 gdb_py_object_from_ulongest.
1242 * python/py-frame.c (frapy_pc): Use gdb_py_object_from_ulongest.
1243 * python/py-arch.c (archpy_disassemble): Use
1244 gdb_py_object_from_ulongest and gdb_py_object_from_longest. Fix
1245 error handling.
1246
4bde49dc
TT
12472020-09-15 Tom Tromey <tromey@adacore.com>
1248
1249 * python/python-internal.h (gdb_py_long_from_longest): Remove
1250 defines.
1251 * python/py-value.c (valpy_long): Use gdb_py_object_from_longest.
1252 * python/py-type.c (convert_field, typy_get_sizeof): Use
1253 gdb_py_object_from_longest.
1254 * python/py-record-btrace.c (btpy_list_index): Use
1255 gdb_py_object_from_longest.
1256
37431074
TT
12572020-09-15 Tom Tromey <tromey@adacore.com>
1258
1259 * python/python-internal.h (PyInt_FromSsize_t): Remove define.
1260 * python/py-record.c (recpy_element_number): Use
1261 gdb_py_object_from_longest.
1262 (recpy_gap_number): Likewise.
1263
cbe25684
TT
12642020-09-15 Tom Tromey <tromey@adacore.com>
1265
1266 * top.c (ui::ui): Update.
1267 (highest_ui_num): Remove.
1268 * top.h (struct ui) <num>: Remove.
1269
db92ac45
TT
12702020-09-15 Tom Tromey <tromey@adacore.com>
1271
1272 * unittests/memory-map-selftests.c (valid_mem_map): Now array.
1273 * ui-style.c (ansi_regex_text): Now array.
1274 * rust-exp.y (number_regex_text): Now array.
1275 * linespec.c (linespec_quote_characters): Now array.
1276 * jit.c (jit_break_name, jit_descriptor_name, reader_init_fn_sym):
1277 Now arrays.
1278
d2b31b67
SM
12792020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
1280
1281 * debuginfod-support.c (debuginfod_client_deleter): New.
1282 (debuginfod_client_up): New.
1283 (debuginfod_init): Return debuginfod_client_up.
1284 (debuginfod_source_query): Adjust.
1285 (debuginfod_debuginfo_query): Adjust.
1286
3246bd8e
SM
12872020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
1288
1289 * debuginfod-support.c (debuginfod_source_query): Use
1290 make_unique_xstrdup.
1291
10242f36
SM
12922020-09-14 Simon Marchi <simon.marchi@efficios.com>
1293
1294 * gdbtypes.h (TYPE_INSTANCE_FLAGS): Remove, replace all uses
1295 with `type::instance_flags`.
1296
e1044e6a
MM
12972020-09-14 Michael Mullin <masmullin@gmail.com>
1298
1299 * xml-tdesc.c [!defined(HAVE_LIBEXPAT)] (tdesc_parse_xml):
1300 Remove baton parameter.
1301
04902b09
PA
13022020-09-14 Pedro Alves <pedro@palves.net>
1303
1304 * Makefile.in (SELFTESTS_SRCS): Add
1305 unittests/enum-flags-selftests.c.
1306 * btrace.c (ftrace_update_caller, ftrace_fixup_calle): Use
1307 btrace_function_flags instead of enum btrace_function_flag.
1308 * compile/compile-c-types.c (convert_qualified): Use
1309 enum_flags::raw.
1310 * compile/compile-cplus-symbols.c (convert_one_symbol)
1311 (convert_symbol_bmsym):
1312 * compile/compile-cplus-types.c (compile_cplus_convert_method)
1313 (compile_cplus_convert_struct_or_union_methods)
1314 (compile_cplus_instance::convert_qualified_base):
1315 * go-exp.y (parse_string_or_char): Add cast to int.
1316 * unittests/enum-flags-selftests.c: New file.
1317 * record-btrace.c (btrace_thread_flag_to_str): Change parameter's
1318 type to btrace_thread_flags from btrace_thread_flag.
1319 (record_btrace_cancel_resume, record_btrace_step_thread): Change
1320 local's type to btrace_thread_flags from btrace_thread_flag. Add
1321 cast in DEBUG call.
1322
69896a2c
PA
13232020-09-14 Pedro Alves <pedro@palves.net>
1324
1325 * c-typeprint.c (c_type_print_modifier): Adjust to rename.
1326 * gdbtypes.c (address_space_name_to_int): Rename to ...
1327 (address_space_name_to_type_instance_flags): ... this.
1328 (address_space_int_to_name): Rename to ...
1329 (address_space_type_instance_flags_to_name): ... this.
1330 * gdbtypes.h (address_space_name_to_int): Rename to ...
1331 (address_space_name_to_type_instance_flags): ... this.
1332 (address_space_int_to_name): Rename to ...
1333 (address_space_type_instance_flags_to_name): ... this.
1334 * type-stack.c (type_stack::insert): Adjust to rename.
1335 * type-stack.h (type_stack::insert): Likewise.
1336
314ad88d
PA
13372020-09-14 Pedro Alves <pedro@palves.net>
1338 Andrew Burgess <andrew.burgess@embecosm.com>
1339
1340 * avr-tdep.c (avr_address_class_type_flags): Return
1341 type_instance_flags.
1342 (avr_address_class_type_flags_to_name): Take a
1343 type_instance_flags.
1344 (avr_address_class_name_to_type_flags): Return bool and take a
1345 type_instance_flags.
1346 * d-lang.c (build_d_types): Use type::set_instance_flags.
1347 * ft32-tdep.c (ft32_address_class_type_flags): Return
1348 type_instance_flags.
1349 (ft32_address_class_type_flags_to_name): Take a
1350 type_instance_flags.
1351 (ft32_address_class_name_to_type_flags): Return bool and take a
1352 type_instance_flags.
1353 (ft32_gdbarch_init): Use type::set_instance_flags.
1354 * eval.c (fake_method::fake_method): Use type::set_instance_flags.
1355 * gdbarch.h, gdbarch.c: Regenerate.
1356 * gdbarch.sh (address_class_type_flags): Use type_instance_flags.
1357 (address_class_name_to_type_flags): Use type_instance_flags and
1358 bool.
1359 * gdbtypes.c (address_space_name_to_int)
1360 (address_space_int_to_name, make_qualified_type): Use
1361 type_instance_flags.
1362 (make_qualified_type): Use type_instance_flags and
1363 type::set_instance_flags.
1364 (make_type_with_address_space, make_cv_type, make_vector_type)
1365 (check_typedef): Use type_instance_flags.
1366 (recursive_dump_type): Cast type_instance_flags to unsigned for
1367 printing.
1368 (copy_type_recursive): Use type::set_instance_flags.
1369 (gdbtypes_post_init): Use type::set_instance_flags.
1370 * gdbtypes.h (struct type) <instance_flags>: Rename to ...
1371 <m_instance_flags>: ... this.
1372 <instance_flags, set_instance_flags>: New methods.
1373 (TYPE_INSTANCE_FLAGS): Use the instance_flags method.
1374 (SET_TYPE_INSTANCE_FLAGS): New.
1375 (address_space_name_to_int, address_space_int_to_name)
1376 (make_type_with_address_space): Pass flags using
1377 type_instance_flags instead of int.
1378 * stabsread.c (cleanup_undefined_types_noname): Use
1379 type::set_instance_flags.
1380 * s390-tdep.c (s390_address_class_type_flags): Return
1381 type_instance_flags.
1382 (s390_address_class_type_flags_to_name): Take a
1383 type_instance_flags.
1384 (s390_address_class_name_to_type_flags): Return bool and take a
1385 type_instance_flags.
1386 * type-stack.c (type_stack::follow_types): Use
1387 type_instance_flags.
1388 * dwarf2/read.c (read_tag_pointer_type): Use type_instance_flags.
1389
27087b7f
TT
13902020-09-14 Tom Tromey <tromey@adacore.com>
1391
1392 * x86-tdep.h (x86_in_indirect_branch_thunk): Update.
1393 * x86-tdep.c (x86_is_thunk_register_name)
1394 (x86_in_indirect_branch_thunk): Update.
1395 * sparc64-tdep.c (sparc64_fpu_register_names)
1396 (sparc64_cp0_register_names, sparc64_register_names)
1397 (sparc64_pseudo_register_names): Now const.
1398 * sparc-tdep.h (struct gdbarch_tdep) <fpu_register_names,
1399 cp0_registers_num>: Now const.
1400 * sparc-tdep.c (sparc_core_register_names)
1401 (sparc32_fpu_register_names, sparc32_cp0_register_names)
1402 (sparc32_pseudo_register_names): Now const.
1403 (validate_tdesc_registers): Update.
1404 * rust-lang.c (rust_extensions): Now const.
1405 * p-lang.c (p_extensions): Now const.
1406 * objc-lang.c (objc_extensions): Now const.
1407 * nto-tdep.c (nto_thread_state_str): Now const.
1408 * moxie-tdep.c (moxie_register_names): Now const.
1409 * mips-tdep.h (struct gdbarch_tdep) <mips_processor_reg_names>:
1410 Now const.
1411 * mips-tdep.c (mips_generic_reg_names, mips_tx39_reg_names)
1412 (mips_linux_reg_names): Now const.
1413 (mips_gdbarch_init): Update.
1414 * microblaze-tdep.c (microblaze_register_names): Now const.
1415 * m68k-tdep.c (m68k_register_names): Now const.
1416 * m32r-tdep.c (m32r_register_names): Now const.
1417 * ia64-tdep.c (ia64_register_names): Now const.
1418 * i386-tdep.h (struct gdbarch_tdep) <register_names,
1419 ymmh_register_names, ymm16h_regnum, mpx_register_names,
1420 k_register_names, zmmh_register_names, xmm_avx512_register_names,
1421 ymm_avx512_register_names, pkeys_register_names>: Now const.
1422 * i386-tdep.c (i386_register_names, i386_zmm_names)
1423 (i386_zmmh_names, i386_k_names, i386_ymm_names, i386_ymmh_names)
1424 (i386_mpx_names, i386_pkeys_names, i386_bnd_names)
1425 (i386_mmx_names, i386_byte_names, i386_word_names): Now const.
1426 * f-lang.c (f_extensions): Now const.
1427 * d-lang.c (d_extensions): Now const.
1428 * csky-tdep.c (csky_register_names): Now const.
1429 * charset.c (default_charset_names, charset_enum): Now const.
1430 (_initialize_charset): Update.
1431 * c-lang.c (c_extensions, cplus_extensions, asm_extensions): Now
1432 const.
1433 * bsd-uthread.c (bsd_uthread_solib_names): Now const.
1434 (bsd_uthread_solib_loaded): Update.
1435 (bsd_uthread_state): Now const.
1436 * amd64-tdep.c (amd64_register_names, amd64_ymm_names)
1437 (amd64_ymm_avx512_names, amd64_ymmh_names)
1438 (amd64_ymmh_avx512_names, amd64_mpx_names, amd64_k_names)
1439 (amd64_zmmh_names, amd64_zmm_names, amd64_xmm_avx512_names)
1440 (amd64_pkeys_names, amd64_byte_names, amd64_word_names)
1441 (amd64_dword_names): Now const.
1442 * agent.c (can_use_agent_enum): Now const.
1443 * ada-tasks.c (task_states, long_task_states): Now const.
1444 * ada-lang.c (known_runtime_file_name_patterns)
1445 (known_auxiliary_function_name_patterns, attribute_names)
1446 (standard_exc, ada_extensions): Now const.
1447
89806626
SM
14482020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
1449
1450 * bcache.h (struct bcache) <bcache>: Remove constructor.
1451 <m_hash_function, m_compare_function>: Remove.
1452 <~bcache>: Make virtual.
1453 <compare>: Remove static method, introduce virtual method.
1454 <default_hash>: Remove.
1455 <hash>: New virtual method.
1456 * bcache.c (bcache::expand_hash_table): Update.
1457 (bcache::insert): Update.
1458 (bcache::hash): New.
1459 (bcache::compare): Update comment and parameter names.
1460 * gdbtypes.c (types_deeply_equal): Update.
1461 * psymtab.h (struct psymbol_bcache): New struct.
1462 (class psymtab_storage) <psymtab_storage>: Make default.
1463 <psymbol_cache>: Change type to psymbol_bcache.
1464 * psymtab.c (psymtab_storage::psymtab_storage): Remove.
1465 (psymbol_hash): Change to...
1466 (psymbol_bcache::hash): ... this.
1467 (psymbol_compare): Change to...
1468 (psymbol_bcache::compare): ... this.
1469
677c92fe
SM
14702020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
1471
1472 * linux-nat.c (linux_nat_wait_1): Don't use inferior_ptid when
1473 checking for initial lwp.
1474
3eba3a01
TT
14752020-09-14 Tom Tromey <tromey@adacore.com>
1476
1477 * m68k-tdep.c (m68k_extract_return_value): Use
1478 pointer_result_regnum.
1479 (m68k_store_return_value): Likewise.
1480 (m68k_reg_struct_return_p): Handle vectors and arrays.
1481 (m68k_return_value): Handle arrays.
1482 (m68k_svr4_return_value): Fix single-element aggregate handling.
1483 Handle long double. Adjust for embedded ABI.
1484 (m68k_svr4_init_abi): Set pointer_result_regnum.
1485 (m68k_embedded_init_abi): New function.
1486 (m68k_gdbarch_init): Handle Tag_GNU_M68K_ABI_FP.
1487 (m68k_osabi_sniffer): New function.
1488 (_initialize_m68k_tdep): Register osabi sniffer.
1489 * m68k-tdep.h (struct gdbarch_tdep) <pointer_result_regnum>: New
1490 member.
1491
33f4dd48
SM
14922020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
1493
1494 * xml-support.c (xml_fetch_content_from_file): Replace xfree
1495 with gdb::unique_xmalloc_ptr<char>.
1496
8400a90d
SM
14972020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
1498
1499 * xml-support.h (xml_fetch_another): Change type to be a
1500 function_view.
1501 (xml_process_xincludes): Remove baton parameter.
1502 (xml_fetch_content_from_file): Change baton parameter to
1503 dirname.
1504 * xml-support.c (struct xinclude_parsing_data)
1505 <xinclude_parsing_data>: Remove baton parameter.
1506 <fetcher_baton>: Remove.
1507 (xinclude_start_include): Adjust.
1508 (xml_process_xincludes): Adjust.
1509 (xml_fetch_content_from_file): Replace baton parameter with
1510 dirname.
1511 * xml-syscall.c (syscall_parse_xml): Remove baton parameter.
1512 (xml_init_syscalls_info): Use a lambda.
1513 * xml-tdesc.c (tdesc_parse_xml): Remove baton parameter.
1514 (file_read_description_xml): Use a lambda.
1515 (fetch_available_features_from_target): Change baton parameter
1516 to target_ops.
1517 (target_read_description_xml): Use a lambda.
1518 (target_fetch_description_xml): Use a lambda.
1519 (string_read_description_xml): Update.
1520
04f5bab2
SM
15212020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
1522
1523 * gdbtypes.h (TYPE_ENDIANITY_NOT_DEFAULT): Remove, replace all
1524 uses with type::endianity_is_not_default.
1525
db558e34
SM
15262020-09-14 Simon Marchi <simon.marchi@efficios.com>
1527
1528 * gdbtypes.h (struct type) <endianity_is_not_default,
1529 set_endianity_is_not_default>: New methods.
1530 (TYPE_ENDIANITY_NOT_DEFAULT): Use
1531 type::endianity_is_not_default, change all write call sites to
1532 use type::set_endianity_is_not_default.
1533
22c4c60c
SM
15342020-09-14 Simon Marchi <simon.marchi@efficios.com>
1535
1536 * gdbtypes.h (TYPE_FIXED_INSTANCE): Remove, replace all
1537 uses with type::is_fixed_instance.
1538
9cdd0d12
SM
15392020-09-14 Simon Marchi <simon.marchi@efficios.com>
1540
1541 * gdbtypes.h (struct type) <is_fixed_instance,
1542 set_is_fixed_instance>: New methods.
1543 (TYPE_FIXED_INSTANCE): Use type::is_fixed_instance, change all
1544 write call sites to use type::set_is_fixed_instance.
1545
0becda7a
SM
15462020-09-14 Simon Marchi <simon.marchi@efficios.com>
1547
1548 * gdbtypes.h (TYPE_GNU_IFUNC): Remove, replace all
1549 uses with type::is_gnu_ifunc.
1550
03cc7249
SM
15512020-09-14 Simon Marchi <simon.marchi@efficios.com>
1552
1553 * gdbtypes.h (struct type) <is_gnu_ifunc, set_is_gnu_ifunc>: New methods.
1554 (TYPE_GNU_IFUNC): Use type::is_gnu_ifunc, change all write call sites to
1555 use type::set_is_gnu_ifunc.
1556
3f46044c
SM
15572020-09-14 Simon Marchi <simon.marchi@efficios.com>
1558
1559 * gdbtypes.h (TYPE_STUB_SUPPORTED): Remove, replace all
1560 uses with type::stub_is_supported.
1561
9baccff6
SM
15622020-09-14 Simon Marchi <simon.marchi@efficios.com>
1563
1564 * gdbtypes.h (struct type) <stub_is_supported, set_stub_is_supported>: New methods.
1565 (TYPE_STUB_SUPPORTED): Use type::stub_is_supported, change all write call sites to
1566 use type::set_stub_is_supported.
1567
bd63c870
SM
15682020-09-14 Simon Marchi <simon.marchi@efficios.com>
1569
1570 * gdbtypes.h (TYPE_VECTOR): Remove, replace all
1571 uses with type::is_vector.
1572
2062087b
SM
15732020-09-14 Simon Marchi <simon.marchi@efficios.com>
1574
1575 * gdbtypes.h (struct type) <is_vector, set_is_vector>: New methods.
1576 (TYPE_VECTOR): Use type::is_vector, change all write call sites to
1577 use type::set_is_vector.
1578
a409645d
SM
15792020-09-14 Simon Marchi <simon.marchi@efficios.com>
1580
1581 * gdbtypes.h (TYPE_VARARGS): Remove, replace all
1582 uses with type::has_varargs.
1583
1d6286ed
SM
15842020-09-14 Simon Marchi <simon.marchi@efficios.com>
1585
1586 * gdbtypes.h (struct type) <has_varargs, set_has_varargs>: New methods.
1587 (TYPE_VARARGS): Use type::has_varargs, change all write call sites to
1588 use type::set_has_varargs.
1589
7f9f399b
SM
15902020-09-14 Simon Marchi <simon.marchi@efficios.com>
1591
1592 * gdbtypes.h (TYPE_PROTOTYPED): Remove, replace all
1593 uses with type::is_prototyped.
1594
27e69b7a
SM
15952020-09-14 Simon Marchi <simon.marchi@efficios.com>
1596
1597 * gdbtypes.h (struct type) <is_prototyped, set_is_prototyped>:
1598 New methods.
1599 (TYPE_PROTOTYPED): Use type::is_prototyped, change all write
1600 call sites to use type::set_is_prototyped.
1601
d2183968
SM
16022020-09-14 Simon Marchi <simon.marchi@efficios.com>
1603
1604 * gdbtypes.h (TYPE_TARGET_STUB): Remove, replace all
1605 uses with type::target_is_stub.
1606
8f53807e
SM
16072020-09-14 Simon Marchi <simon.marchi@efficios.com>
1608
1609 * gdbtypes.h (struct type) <target_is_stub, set_target_is_stub>:
1610 New methods.
1611 (TYPE_TARGET_STUB): Use type::is_stub, change all write call
1612 sites to use type::set_target_is_stub.
1613
e46d3488
SM
16142020-09-14 Simon Marchi <simon.marchi@efficios.com>
1615
1616 * gdbtypes.h (TYPE_STUB): Remove, replace all
1617 uses with type::is_stub.
1618
b4b73759
SM
16192020-09-14 Simon Marchi <simon.marchi@efficios.com>
1620
1621 * gdbtypes.h (struct type) <is_stub, set_is_stub>: New methods.
1622 (TYPE_STUB): Use type::is_stub, change all write call sites to
1623 use type::set_is_stub.
1624
20ce4123
SM
16252020-09-14 Simon Marchi <simon.marchi@efficios.com>
1626
1627 * gdbtypes.h (TYPE_NOSIGN): Remove, replace all uses with
1628 type::has_no_signedness.
1629
15152a54
SM
16302020-09-14 Simon Marchi <simon.marchi@efficios.com>
1631
1632 * gdbtypes.h (struct type) <has_no_signedness,
1633 set_has_no_signedness>: New methods.
1634 (TYPE_NOSIGN): Use type::has_no_signedness, change all write
1635 call sites to use type::set_has_no_signedness.
1636
c6d940a9
SM
16372020-09-14 Simon Marchi <simon.marchi@efficios.com>
1638
1639 * gdbtypes.h (TYPE_UNSIGNED): Remove, replace all uses with
1640 type::is_unsigned.
1641
653223d3
SM
16422020-09-14 Simon Marchi <simon.marchi@efficios.com>
1643
1644 * gdbtypes.h (struct type) <is_unsigned, set_is_unsigned>: New
1645 methods.
1646 (TYPE_UNSIGNED): Use type::is_unsigned. Change all write call
1647 sites to use type::set_is_unsigned.
1648
55ea94da
FH
16492020-09-14 Fredrik Hederstierna <fredrik.hederstierna@verisure.com>
1650 Adam Renquinha <arenquinha@cimeq.qc.ca>
1651
1652 * arm-tdep.c (arm_m_exception_cache): Try use correct stack
1653 pointer and stack frame offset when unwinding.
1654
6791b117
PA
16552020-09-13 Pedro Alves <pedro@palves.net>
1656
1657 * NEWS: Document "-break-insert --qualified".
1658 * mi/mi-cmd-break.c (mi_cmd_break_insert_1): Handle "--qualified".
1659
77f2120b
PA
16602020-09-13 Pedro Alves <pedro@palves.net>
1661
1662 * linespec.c (classify_mtype, compare_msyms): Delete.
1663 (search_minsyms_for_name): Remove classification logic. Instead
1664 filter out trampoline symbols if we also found an external
1665 function of the same name.
1666
ed6a896c
JB
16672020-09-13 Joel Brobecker <brobecker@adacore.com>
1668
1669 * NEWS: Create a new section for the next release branch.
1670 Rename the section of the current branch, now that it has
1671 been cut.
1672
32aea73e
JB
16732020-09-13 Joel Brobecker <brobecker@adacore.com>
1674
1675 GDB 10 branch created (8087c3fa8b5d695e3e29e69d70d0b35ec902ac59):
1676 * version.in: Bump version to 11.0.50.DATE-git.
1677
8087c3fa
JB
16782020-09-12 Joel Brobecker <brobecker@adacore.com>
1679
1680 * infrun.c (namespace selftests): Only define #if GDB_SELF_TEST.
1681
2a67f09d
FW
16822020-09-11 Moritz Riesterer <moritz.riesterer@intel.com>
1683 Felix Willgerodt <Felix.Willgerodt@intel.com>
1684
1685 * gdbarch.sh: Added bfloat16 type.
1686 * gdbarch.c: Regenerated.
1687 * gdbarch.h: Regenerated.
1688 * gdbtypes.c (floatformats_bfloat16): New struct.
1689 (gdbtypes_post_init): Add builtin_bfloat16.
1690 * gdbtypes.h (struct builtin_type) <builtin_bfloat16>: New member.
1691 (floatformats_bfloat16): New struct.
1692 * i386-tdep.c (i386_zmm_type): Add field "v32_bfloat16"
1693 (i386_ymm_type): Add field "v16_bfloat16"
1694 (i386_gdbarch_init): Add set_gdbarch_bfloat16_format.
1695 * target-descriptions.c (make_gdb_type): Add case TDESC_TYPE_BFLOAT16.
1696 * gdbsupport/tdesc.cc (tdesc_predefined_types): New member bfloat16.
1697 * gdbsupport/tdesc.h (tdesc_type_kind): New member TDESC_TYPE_BFLOAT16.
1698 * features/i386/64bit-avx512.xml: Add bfloat16 type.
1699 * features/i386/64bit-avx512.c: Regenerated.
1700 * features/i386/64bit-sse.xml: Add bfloat16 type.
1701 * features/i386/64bit-sse.c: Regenerated.
1702
1347d111
FW
17032020-09-11 Felix Willgerodt <felix.willgerodt@intel.com>
1704
1705 * i386-tdep.c (i386_zmm_type): Fix field names.
1706 (i386_ymm_type): Fix field names.
1707
7a4e8e7d
TBA
17082020-09-11 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1709
1710 * breakpoint.c: Fix typo in the help message of the
1711 "set breakpoint condition-evaluation" command.
1712
cf4ac4be
KR
17132020-09-10 Kamil Rytarowski <n54@gmx.com>
1714
1715 * nbsd-nat.c: Include "nat/netbsd-nat.h".
1716 * (nbsd_nat_target::pid_to_exec_file)
1717 (nbsd_nat_target::thread_alive, nbsd_nat_target::thread_name)
1718 (nbsd_nat_target::post_startup_inferior)
1719 (nbsd_nat_target::post_attach, nbsd_nat_target::xfer_partial)
1720 (nbsd_add_threads): Switch local code to common gdb/nat functions.
1721 * (nbsd_pid_to_cmdline): Call sysctl from the global namespace.
1722 * (nbsd_thread_lister): Remove.
1723
f404573e
KR
17242020-09-10 Kamil Rytarowski <n54@gmx.com>
1725
1726 * fork-inferior.c (startup_inferior): Avoid double free.
1727
1ccb2c17
KR
17282020-09-10 Kamil Rytarowski <n54@gmx.com>
1729
1730 * netbsd-nat.h (netbsd_nat::qxfer_siginfo): Add.
1731 * netbsd-nat.c (netbsd_nat::qxfer_siginfo): Likewise.
1732
feedfcc7
KR
17332020-09-10 Kamil Rytarowski <n54@gmx.com>
1734
1735 * netbsd-nat.h (netbsd_nat::enable_proc_events): Add.
1736 * netbsd-nat.c: Include <sys/ptrace.h>.
1737 * (netbsd_nat::enable_proc_events): Add.
1738
c489f8c6
KR
17392020-09-10 Kamil Rytarowski <n54@gmx.com>
1740
1741 * netbsd-nat.h: Include "gdbsupport/function-view.h".
1742 * (netbsd_nat::thread_alive, netbsd_nat::thread_name)
1743 (netbsd_nat::for_each_thread): Add.
1744 * netbsd-nat.c: Include "gdbsupport/common-defs.h" and
1745 "gdbsupport/common-debug.h".
1746 * (netbsd_nat::netbsd_thread_lister)
1747 (netbsd_nat::thread_alive, netbsd_nat::thread_name)
1748 (netbsd_nat::for_each_thread): Add.
1749
330662f6
KR
17502020-09-10 Kamil Rytarowski <n54@gmx.com>
1751
1752 * netbsd-nat.h: Include <unistd.h>.
1753 * (netbsd_nat::pid_to_exec_file): Add.
1754 * netbsd-nat.c: Include <sys/types.h> and <sys/sysctl.h>.
1755 * (netbsd_nat::pid_to_exec_file) Add.
1756
70b67307
KR
17572020-09-10 Kamil Rytarowski <n54@gmx.com>
1758
1759 * configure.nat (NATDEPFILES): Add nat/netbsd-nat.o when needed.
1760
99cf6da6
KR
17612020-09-10 Kamil Rytarowski <n54@gmx.com>
1762
1763 * netbsd-nat.h: New file.
1764 * netbsd-nat.c: Likewise.
1765
1b788fb6
TT
17662020-09-09 Tom Tromey <tromey@adacore.com>
1767
1768 * ada-lang.c (remove_extra_symbols): Do not increment when
1769 removing an element
1770
03b0a45f
TT
17712020-09-08 Tom Tromey <tromey@adacore.com>
1772
1773 * gdb_bfd.c (gdb_bfd_open): Call bfd_fopen when fstat fails.
1774
3cae4447
TT
17752020-09-08 Tom Tromey <tromey@adacore.com>
1776
1777 PR win32/25302:
1778 * gdb_bfd.c (gdb_bfd_data): Add "st" parameter.
1779 (gdb_bfd_init_data): New function.
1780 (gdb_bfd_open, gdb_bfd_ref): Use gdb_bfd_init_data.
1781
7f08fd51
TBA
17822020-09-07 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1783
1784 * infrun.c (fetch_inferior_event): Use
1785 `switch_to_target_no_thread` to switch the target.
1786
3e6ff933
TT
17872020-09-06 Tom Tromey <tom@tromey.com>
1788
1789 * symfile.h (dwarf2_free_objfile): Don't declare.
1790
e56798df
AKS
17912020-09-03 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
1792
1793 * gdb/i386-tdep.c (i386_floatformat_for_type): Added conditions
1794 to match 16 byte real/complex type generated by Flang compiler.
1795
8f5c6526
TV
17962020-09-03 Tom de Vries <tdevries@suse.de>
1797
1798 PR breakpoint/26546
1799 * dwarf2/read.c (new_symbol): Tag label symbol without DW_AT_low_pc as
1800 LOC_OPTIMIZED_OUT instead of LOC_LABEL.
1801
c5065df0
SM
18022020-09-02 Simon Marchi <simon.marchi@polymtl.ca>
1803
1804 * maint.c (index_digits): New function.
1805 (struct maint_print_section_data): Remove.
1806 (print_bfd_section_info): Remove print_data parameter, add arg
1807 and index_digits.
1808 (print_objfile_section_info): Likewise.
1809 (print_bfd_section_info_maybe_relocated): Likewise (plus
1810 objfile).
1811 (maintenance_info_sections): Adjust calls.
1812
02c6f3f1
TT
18132020-09-02 Tom Tromey <tromey@adacore.com>
1814
1815 * ada-varobj.c (ada_varobj_get_ptr_number_of_children): Return 0
1816 for null pointers.
1817 (ada_varobj_adjust_for_child_access): Special-case null pointers.
1818
ef5e5b0b
SM
18192020-09-01 Simon Marchi <simon.marchi@polymtl.ca>
1820
1821 * bcache.h (struct bcache) <insert>: Change type of `added` to
1822 pointer to bool.
1823 * bcache.c (bcache::insert): Likewise.
1824 * gdbtypes.c (check_types_worklist): Adjust.
1825 * psymtab.c (add_psymbol_to_bcache): Adjust.
1826
973695d6
KB
18272020-08-31 Kevin Buettner <kevinb@redhat.com>
1828
1829 * corelow.c (unordered_set): Include.
1830 (class core_target): Add field 'm_core_unavailable_mappings'.
1831 (core_target::build_file_mappings): Print only one warning
1832 per inaccessible file. Add unavailable/broken mappings
1833 to m_core_unavailable_mappings.
1834 (core_target::xfer_partial): Call...
1835 (core_target::xfer_memory_via_mappings): New method.
1836
264fc0e2
SM
18372020-08-31 Simon Marchi <simon.marchi@polymtl.ca>
1838
1839 * dwarf2/read.c (struct field_info) <non_public_fields>: Change
1840 type to bool.
1841
2de01bdb
SM
18422020-08-31 Simon Marchi <simon.marchi@polymtl.ca>
1843
1844 * dwarf2/read.c (struct field_info): Fix indentation.
1845
f3bd50f1
SM
18462020-08-31 Simon Marchi <simon.marchi@efficios.com>
1847
1848 * frame-unwind.h (frame_prev_register_ftype): Fix adjective
1849 ordering in comment.
1850 * frame.c (frame_id_eq): Fix indentation.
1851
22b9b4b0
SL
18522020-08-31 Scott Linder <scott@scottlinder.com>
1853 Simon Marchi <simon.marchi@efficios.com>
1854
1855 * inline-frame.c (inline_frame_this_id): Remove assert that prevents
1856 inline frame ids in outer frame.
1857
84154d16
SM
18582020-08-31 Simon Marchi <simon.marchi@efficios.com>
1859
1860 * frame.h (enum frame_id_stack_status) <FID_STACK_OUTER>: New.
1861 * frame.c (fprint_frame_id): Handle FID_STACK_OUTER.
1862 (outer_frame_id): Use FID_STACK_OUTER instead of
1863 FID_STACK_INVALID.
1864 (frame_id_p): Don't check for outer_frame_id.
1865
8efaf6b3
SM
18662020-08-31 Simon Marchi <simon.marchi@efficios.com>
1867
1868 * frame-unwind.c (frame_unwind_got_optimized): Don't set
1869 regnum/frame in value. Call allocate_value_lazy.
1870 * frame.c (frame_unwind_register_value): Use
1871 val_print_not_saved.
1872
fe1fe7ea
SM
18732020-08-31 Simon Marchi <simon.marchi@efficios.com>
1874
1875 * gdbtypes.h (NULL_TYPE): Remove, change all uses to nullptr.
1876
f7c7700d
PA
18772020-08-29 Pedro Alves <pedro@palves.net>
1878
1879 * progspace.c (print_program_space): Use all_inferiors. Switch to
1880 the inferior before calling target_pid_to_str.
1881
e0814aae
TT
18822020-08-28 Tom Tromey <tom@tromey.com>
1883
1884 * xcoffread.c (xcoff_end_psymtab): Update comment.
1885 * dbxread.c (dbx_end_psymtab): Update comment.
1886
626d2320
TV
18872020-08-28 Tom de Vries <tdevries@suse.de>
1888
1889 PR breakpoint/26544
1890 * breakpoint.c (parse_breakpoint_sals): Remove const from struct
1891 event_location.
1892 (create_breakpoint): Same.
1893 (base_breakpoint_decode_location): Same.
1894 (bkpt_create_sals_from_location): Same.
1895 (bkpt_decode_location): Same.
1896 (bkpt_probe_create_sals_from_location): Same.
1897 (bkpt_probe_decode_location): Same.
1898 (tracepoint_create_sals_from_location): Same.
1899 (tracepoint_decode_location): Same.
1900 (tracepoint_probe_decode_location): Same.
1901 (strace_marker_create_sals_from_location): Same.
1902 (strace_marker_decode_location): Same.
1903 (create_sals_from_location_default): Same.
1904 (decode_location_default): Same.
1905 * breakpoint.h (struct breakpoint_ops): Same.
1906 (create_breakpoint): Same.
1907 * linespec.h (decode_line_full): Same.
1908 * linespec.c (decode_line_full): Same. Throw error if
1909 result.size () == 0.
1910
df631783
PA
19112020-08-27 Pedro Alves <pedro@palves.net>
1912
1913 PR gdb/26524
1914 * breakpoint.c (until_break_fsm) <location_breakpoint,
1915 caller_breakpoint>: Delete fields.
1916 <breakpoints>: New field.
1917 <until_break_fsm>: Adjust to save a breakpoint vector instead of
1918 two individual breakpoints.
1919 (until_break_fsm::should_stop): Loop over breakpoints in the
1920 breakpoint vector.
1921 (until_break_fsm::clean_up): Adjust to clear the breakpoints
1922 vector.
1923 (until_break_command): Handle location expanding into multiple
1924 sals.
1925
b2b38aa4
PA
19262020-08-27 Pedro Alves <pedro@palves.net>
1927
1928 PR gdb/26523
1929 * inline-frame.c (stopped_by_user_bp_inline_frame): Also consider
1930 bp_until breakpoints user-specified locations. Update intro
1931 comment.
1932
b886559f
SM
19332020-08-27 Simon Marchi <simon.marchi@polymtl.ca>
1934
1935 * gdb_bfd.h (gdb_bfd_section_iterator, gdb_bfd_section_range,
1936 gdb_bfd_sections): New.
1937 * maint.c (print_bfd_section_info): Change param type to
1938 maint_print_section_data.
1939 (print_objfile_section_info): Likewise.
1940 (print_bfd_section_info_maybe_relocated): Likewise.
1941 (maintenance_info_sections): Use gdb_bfd_sections.
1942
4c6e63bf
SV
19432020-08-25 Shahab Vahedi <shahab@synopsys.com>
1944
1945 * MAINTAINERS: Add ARC target and maintainer.
1946
8d7f0635
AK
19472020-08-25 Anton Kolesov <anton.kolesov@synopsys.com>
1948
1949 * configure.tgt: ARC support for GNU/Linux.
1950 * Makefile.in (ALL_TARGET_OBJS): Likewise.
1951 * arc-linux-tdep.c: New file.
1952 * arc-tdep.h (ARC_STATUS32_L_MASK, ARC_STATUS32_DE_MASK): Declare.
1953 * arc-tdep.c (arc_write_pc): Use it.
1954
fdd8731b
SV
19552020-08-25 Shahab Vahedi <shahab@synopsys.com>
1956
1957 * arc-tdep.c (arc_check_for_hardware_loop): New.
1958 * arc-tdep.h (gdbarch_tdep): New field has_hw_loops.
1959
22459524
SV
19602020-08-25 Shahab Vahedi <shahab@synopsys.com>
1961
1962 * arc-tdep.h: Include "gdbarch.h".
1963
995d3a19
SV
19642020-08-25 Shahab Vahedi <shahab@synopsys.com>
1965
1966 * arch/arc.h
1967 (arc_gdbarch_features): New class to stir the selection of target XML.
1968 (arc_create_target_description): Use FEATURES to choose XML target.
1969 (arc_lookup_target_description): Use arc_create_target_description
1970 to create _new_ target descriptions or return the already created
1971 ones if the FEATURES is the same.
1972 * arch/arc.c: Implementation of prototypes described above.
1973 * gdb/arc-tdep.h (arc_regnum enum): Add more registers.
1974 (arc_gdbarch_features_init): Initialize the FEATURES struct.
1975 * arc-tdep.c (*_feature_name): Make feature names consistent.
1976 (arc_register_feature): A new struct to hold information about
1977 registers of a particular target/feature.
1978 (arc_check_tdesc_feature): Check if XML provides registers in
1979 compliance with ARC_REGISTER_FEATURE structs.
1980 (arc_update_acc_reg_names): Add aliases for r58 and r59.
1981 (determine_*_reg_feature_set): Which feature name to look for.
1982 (arc_gdbarch_features_init): Given MACH and ABFD, initialize FEATURES.
1983 (mach_type_to_arc_isa): Convert from a set of binutils machine types
1984 to expected ISA enums to be used in arc_gdbarch_features structs.
1985 * features/Makefile (FEATURE_XMLFILES): Add new files.
1986 * gdb/features/arc/v1-aux.c: New file.
1987 * gdb/features/arc/v1-aux.xml: Likewise.
1988 * gdb/features/arc/v1-core.c: Likewise.
1989 * gdb/features/arc/v1-core.xml: Likewise.
1990 * gdb/features/arc/v2-aux.c: Likewise.
1991 * gdb/features/arc/v2-aux.xml: Likewise.
1992 * gdb/features/arc/v2-core.c: Likewise.
1993 * gdb/features/arc/v2-core.xml: Likewise.
1994 * NEWS (Changes since GDB 9): Announce obsolence of old feature names.
1995
3945d2d7
GM
19962020-08-25 Gaius Mulley <gaiusmod2@gmail.com>
1997 Andrew Burgess <andrew.burgess@embecosm.com>
1998
1999 PR m2/26372
fc5d6901 2000 * m2-exp.y (exp): Improve comment for non_empty_arglist case, add
3945d2d7
GM
2001 an assert. Remove single element array indexing pattern as the
2002 MULTI_SUBSCRIPT support will handle this case too.
2003
2677f2d3
SM
20042020-08-24 Simon Marchi <simon.marchi@polymtl.ca>
2005
2006 * value.h (valprint_check_validity): Move declaration from
2007 here...
2008 * valprint.h (valprint_check_validity): ... to here.
2009
c426fddb
SM
20102020-08-24 Simon Marchi <simon.marchi@efficios.com>
2011
2012 * debug.h: New file.
2013 * debug.c (debug_prefixed_vprintf): New function.
2014 * infrun.c (infrun_debug_printf_1): Use debug_prefixed_vprintf.
2015 * linux-nat.c (linux_nat_debug_printf_1): Likewise.
2016
1eb8556f
SM
20172020-08-24 Simon Marchi <simon.marchi@efficios.com>
2018
2019 * infrun.h (infrun_debug_printf_1): New function declaration.
2020 (infrun_debug_printf): New macro.
2021 * infrun.c (infrun_debug_printf_1): Use infrun_debug_printf
2022 throughout.
2023 (infrun_debug_printf): New function.
2024 * breakpoint.c (should_be_inserted): Use infrun_debug_printf.
2025 (handle_jit_event): Likewise.
2026
b8fff44e
MW
20272020-08-21 Mark Wielaard <mark@klomp.org>
2028
2029 * ada-lex.l: Extend register warnings diagnostics comment for g++.
2030
d19c3068
SM
20312020-08-22 Simon Marchi <simon.marchi@efficios.com>
2032
2033 * frame.c (enum class frame_id_status): New.
2034 (struct frame_info) <this_id::p>: Change type to frame_id_status.
2035 (fprintf_frame): Update.
2036 (compute_frame_id): Set frame id status to "computing" on entry.
2037 Set it back to "not_computed" on failure and to "computed" on
2038 success.
2039 (get_frame_id): Assert the frame id is not being computed.
2040 (create_sentinel_frame): Use frame_id_status::COMPUTED.
2041 (create_new_frame): Likewise.
2042 (frame_cleanup_after_sniffer): Update assert.
2043
b70e516e
SM
20442020-08-20 Simon Marchi <simon.marchi@polymtl.ca>
2045
2046 * regcache.c (pid_ptid_regcache_map): New type.
2047 (target_ptid_regcache_map): Remove.
2048 (target_pid_ptid_regcache_map): New type.
2049 (regcaches): Change type to target_pid_ptid_regcache_map.
2050 (get_thread_arch_aspace_regcache): Update.
2051 (regcache_thread_ptid_changed): Update, handle pid-like ptid
2052 case.
2053 (regcaches_size): Update.
2054 (regcache_count): Update.
2055 (registers_changed_ptid_target_pid_test): New.
2056 (_initialize_regcache): Register new test.
2057
cdd9148a
SM
20582020-08-20 Simon Marchi <simon.marchi@polymtl.ca>
2059
2060 * regcache.c (regcache_count): New.
2061 (struct regcache_test_data): New.
2062 (regcache_test_data_up): New.
2063 (populate_regcaches_for_test): New.
2064 (regcaches_test): Remove.
2065 (get_thread_arch_aspace_regcache_test): New.
2066 (registers_changed_ptid_all_test): New.
2067 (registers_changed_ptid_target_test): New.
2068 (registers_changed_ptid_target_ptid_test): New.
2069 (regcache_thread_ptid_changed): Remove regcache_count lambda.
2070 (_initialize_regcache): Register new tests.
2071
dd125343
SM
20722020-08-20 Simon Marchi <simon.marchi@polymtl.ca>
2073
2074 * regcache.c (test_get_thread_arch_aspace_regcache): Rename to...
2075 (get_thread_arch_aspace_regcache_and_check): ... this. Remove
2076 gdbarch and aspace parameter. Use current inferior's aspace.
2077 Validate regcache's arch value.
2078 (regcaches_test): Update.
2079
3ee93972
SM
20802020-08-20 Simon Marchi <simon.marchi@polymtl.ca>
2081
2082 * regcache.c (regcaches_test): Call registers_changed.
2083
33bf4c5c
TBA
20842020-08-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2085
2086 * infrun.c (process_event_stop_test): Fix typo "breapoint".
2087
c2fd7fae
AKS
20882020-08-19 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
2089
2090 * amd64-tdep.c (amd64_skip_prologue): Using symbol table
2091 to find the end of prologue for flang compiled binaries.
2092 * arm-tdep.c (arm_skip_prologue): Likewise.
2093 * i386-tdep.c (i386_skip_prologue): Likewise.
2094 * producer.c (producer_is_llvm): New function.
2095 (producer_parsing_tests): Added new tests for clang/flang.
2096 * producer.h (producer_is_llvm): New declaration.
2097
9327494e
SM
20982020-08-18 Simon Marchi <simon.marchi@efficios.com>
2099
2100 * linux-nat.c (linux_nat_debug_printf): New function.
2101 (linux_nat_debug_printf_1): New macro. Use throughout the file.
2102
d138725a
AM
21032020-08-18 Aaron Merey <amerey@redhat.com>
2104
2105 * Makefile.in (DEBUGINFOD_CFLAGS, DEBUGINFOD_LIBS): New variables.
2106 (INTERNAL_CFLAGS_BASE): Add DEBUGINFOD_CFLAGS.
2107 (CLIBS): Add DEBUGINFOD_LIBS.
2108
f9b11e6b
ST
21092020-08-17 Sergei Trofimovich <siarheit@google.com>
2110
2111 * ia64-linux-nat.c: Include "gdbarch.h" to declare used
2112 'gdbarch_num_regs'.
2113
3ae7ab99
TT
21142020-08-17 Tom Tromey <tromey@adacore.com>
2115
2116 * ada-varobj.c (ada_varobj_decode_var): Handle case where
2117 ada_get_decoded_value returns NULL.
2118
b017825f
TT
21192020-08-17 Tom Tromey <tromey@adacore.com>
2120
2121 * python/py-inferior.c (infpy_search_memory): Use
2122 gdb_py_object_from_ulongest.
2123 * python/py-infevents.c (create_inferior_call_event_object)
2124 (create_memory_changed_event_object): Use
2125 gdb_py_object_from_ulongest.
2126 * python/py-linetable.c (ltpy_entry_get_pc): Use
2127 gdb_py_object_from_ulongest.
2128
7635cf79
SM
21292020-08-17 Simon Marchi <simon.marchi@polymtl.ca>
2130
2131 * loc.c (class symbol_needs_eval_context): Fix indentation.
2132
f54be24b
SM
21332020-08-17 Simon Marchi <simon.marchi@polymtl.ca>
2134
2135 * dwarf2/loc.c (dwarf2_loc_desc_get_symbol_read_needs): Use
2136 bool.
2137
53d5a2a5
TV
21382020-08-17 Tom de Vries <tdevries@suse.de>
2139
2140 PR gdb/26393
2141 * gdbtypes.c (dump_dynamic_prop): New function.
2142 (recursive_dump_type): Use dump_dynamic_prop for TYPE_CODE_RANGE.
2143
547ce8f0
TV
21442020-08-15 Tom de Vries <tdevries@suse.de>
2145
2146 PR backtrace/26390
2147 * stack.c (print_frame_args): Temporarily set the selected
2148 frame to FRAME while printing the frame's arguments.
2149
6ea815e7
PFC
21502020-08-14 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
2151
2152 PR breakpoints/26385
2153 * ppc-linux-nat.c (ppc_linux_nat_target::low_prepare_to_resume):
2154 Always clear watchpoint with PTRACE_SET_DEBUGREG.
2155
6e562fa3
PFC
21562020-08-14 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
2157
2158 * ppc-linux-nat.c (ppc_linux_dreg_interface::detect)
2159 (ppc_linux_nat_target::low_prepare_to_resume): Use ptrace () < 0
2160 and >= to check return value instead of == -1 and != -1.
2161
d369b608
SM
21622020-08-14 Simon Marchi <simon.marchi@polymtl.ca>
2163
2164 * utils.h (class gdb_argv) <as_array_view>: New method.
2165 * utils.c (gdb_argv_as_array_view_test): New.
2166 (_initialize_utils): Register selftest.
2167 * maint.c (maintenance_selftest): Use the new method.
2168
b31488a3
KR
21692020-08-13 Kamil Rytarowski <n54@gmx.com>
2170
2171 * target.h (supports_dumpcore, dumpcore): New
2172 function declarations.
2173 * target.c (supports_dumpcore, dumpcore): New
2174 functions.
2175 * target-delegates.c: Rebuild.
2176 * gcore.c (gcore_command): Use target_supports_dumpcore ()
2177 and target_dumpcore ().
2178
002a3166
AM
21792020-08-13 Aaron Merey <amerey@redhat.com>
2180
2181 * debuginfod-support.c: Replace global variables with user_data.
2182
ece5bc8a
SM
21832020-08-13 Simon Marchi <simon.marchi@polymtl.ca>
2184
2185 * maint.c (maintenance_selftest): Split args and pass array_view
2186 to run_tests.
2187
6d8a0a5e
LM
21882020-08-12 Luis Machado <luis.machado@linaro.org>
2189
2190 * value.c (check_type_length_before_alloc): Use ULONGEST to store a
2191 type's length.
2192 Use %s and pulongest to print the length.
2193
7cf663a9
PA
21942020-08-12 Pedro Alves <palves@redhat.com>
2195
2196 * NEWS: Move "Multi-target debugging support" item to the
2197 "Changes since GDB 9" section.
2198
27c7b875
PA
21992020-08-12 Pedro Alves <palves@redhat.com>
2200
2201 PR gdb/26336
2202 * progspace.c (program_space::remove_objfile): Invalidate the
2203 frame cache.
2204
1796a2a1
TV
22052020-08-11 Tom de Vries <tdevries@suse.de>
2206
2207 * MAINTAINERS: Mark ms1 as deleted.
2208
f8e3fe0d
LM
22092020-08-10 Luis Machado <luis.machado@linaro.org>
2210
2211 PR gdb/26310
2212
2213 * aarch64-tdep.c (aarch64_analyze_prologue): Track use of SP/FP and
2214 act accordingly.
2215 (aarch64_analyze_prologue_test): Add more unit tests to exercise
2216 movz/str/stur/stp skipping behavior.
2217
cc308722
LM
22182020-08-10 Luis Machado <luis.machado@linaro.org>
2219
2220 * nat/aarch64-sve-linux-sigcontext.h (SVE_PT_REGS_OFFSET): Use
2221 struct user_sve_header instead of struct sve_context.
2222
041d9819
SM
22232020-08-09 Simon Marchi <simon.marchi@polymtl.ca>
2224
2225 * read.h (dwarf2_fetch_die_loc_sect_off,
2226 dwarf2_fetch_die_loc_cu_off): Replace function pointer +
2227 `void *` parameter with function_view.
2228 * read.c (dwarf2_fetch_die_loc_sect_off,
2229 dwarf2_fetch_die_loc_cu_off): Likewise.
2230 * loc.c (get_frame_pc_for_per_cu_dwarf_call): Remove.
2231 (per_cu_dwarf_call): Adjust.
2232 (get_frame_address_in_block_wrapper): Remove.
2233 (indirect_synthetic_pointer): Adjust.
2234 (get_ax_pc): Remove.
2235 (dwarf2_compile_expr_to_ax): Adjust.
2236
38f8aa06
TV
22372020-08-08 Tom de Vries <tdevries@suse.de>
2238
2239 PR build/26344
2240 * arch/riscv.c (riscv_lookup_target_description): Use an explicit
2241 constructor.
2242 * regcache.c (get_thread_arch_aspace_regcache): Same.
2243
a52b3ae2
TT
22442020-08-07 Tom Tromey <tromey@adacore.com>
2245
2246 * ravenscar-thread.c
2247 (ravenscar_thread_target::set_base_thread_from_ravenscar_task):
2248 New method.
2249 (ravenscar_thread_target::wait): Check
2250 runtime_initialized.
2251 (ravenscar_thread_target::prepare_to_store)
2252 (ravenscar_thread_target::stopped_by_sw_breakpoint)
2253 (ravenscar_thread_target::stopped_by_hw_breakpoint)
2254 (ravenscar_thread_target::stopped_by_watchpoint)
2255 (ravenscar_thread_target::stopped_data_address)
2256 (ravenscar_thread_target::core_of_thread): Use
2257 scoped_restore_current_thread and
2258 set_base_thread_from_ravenscar_task.
2259
0e29517d
TT
22602020-08-07 Tom Tromey <tromey@adacore.com>
2261
2262 * ravenscar-thread.c (update_thread_list): Set inferior_ptid.
2263
592f9bd7
TT
22642020-08-07 Tom Tromey <tromey@adacore.com>
2265
2266 * ravenscar-thread.c (ravenscar_thread_target::wait): Call
2267 update_inferior_ptid before update_thread_list.
2268 (temporarily_change_regcache_ptid): New class.
2269 (ravenscar_thread_target::fetch_registers)
2270 (ravenscar_thread_target::store_registers)
2271 (ravenscar_thread_target::prepare_to_store): Use base thread when
2272 forwarding operation.
2273
39e2018a
TT
22742020-08-07 Tom Tromey <tromey@adacore.com>
2275
2276 * ravenscar-thread.c (ravenscar_thread_target::resume): Handle
2277 "is_pid" case.
2278
2080266b
TT
22792020-08-07 Tom Tromey <tromey@adacore.com>
2280
2281 * ravenscar-thread.c (xfer_partial, enable_btrace, add_thread):
2282 New methods.
2283 (ravenscar_thread_target::get_thread_base_cpu): Check m_cpu_map
2284 first.
2285 (ravenscar_thread_target::add_thread): Rename from
2286 ravenscar_add_thread.
2287 (ravenscar_thread_target::update_thread_list): Use a lambda.
2288 (ravenscar_thread_target::xfer_partial): New method.
2289
78c02f21
TT
22902020-08-07 Tom Tromey <tromey@adacore.com>
2291
2292 * ada-lang.h (ada_task_list_iterator_ftype): Now a
2293 gdb::function_view.
2294 (iterate_over_live_ada_tasks): Change type of argument.
2295 * ada-tasks.c (iterate_over_live_ada_tasks): Change type
2296 of argument.
2297
d5d833af
TT
22982020-08-07 Tom Tromey <tromey@adacore.com>
2299
2300 * ravenscar-thread.c (ravenscar_thread_target) <extra_thread_info>:
2301 Remove.
2302 (ravenscar_thread_target::extra_thread_info): Remove.
2303 (ravenscar_thread_target::pid_to_str): Mention Ravenscar in result;
2304 defer to target beneath for non-Ravenscar threads.
2305
a8ac85bb
TT
23062020-08-07 Tom Tromey <tromey@adacore.com>
2307
2308 * ravenscar-thread.c (ravenscar_thread_target) <get_base_cpu,
2309 get_base_thread_from_ravenscar_task>: Now methods.
2310 <m_cpu_map>: New member.
2311 (ravenscar_thread_target::get_thread_base_cpu): Rename from
2312 ravenscar_get_thread_base_cpu. Check m_cpu_map.
2313 (ravenscar_thread_target::task_is_currently_active): Update.
2314 (ravenscar_thread_target::get_base_thread_from_ravenscar_task):
2315 Now a method.
2316 (ravenscar_thread_target::add_active_thread): Put initial thread
2317 into the m_cpu_map.
2318
550ab58d
TT
23192020-08-07 Tom Tromey <tromey@adacore.com>
2320
2321 * ravenscar-thread.c (ravenscar_thread_target::wait): Return
2322 event_ptid.
2323
e9546579
TT
23242020-08-07 Tom Tromey <tromey@adacore.com>
2325
2326 * ravenscar-thread.c (ravenscar_thread_target::wait): Check
2327 runtime_initialized.
2328
3d4470e5
TT
23292020-08-07 Tom Tromey <tromey@adacore.com>
2330
2331 * ravenscar-thread.c (ravenscar_thread_target): Don't call
2332 add_active_thread.
2333 (ravenscar_thread_target::add_active_thread): Now public.
2334 (ravenscar_inferior_created): Call add_active_thread after pushing
2335 the target.
2336
888bdb2b
SM
23372020-08-07 Simon Marchi <simon.marchi@polymtl.ca>
2338
2339 * regcache.c (ptid_regcache_map): New type.
2340 (target_ptid_regcache_map): New type.
2341 (regcaches): Change type to target_ptid_regcache_map.
2342 (get_thread_arch_aspace_regcache): Update to regcaches' new
2343 type.
2344 (regcache_thread_ptid_changed): Likewise.
2345 (registers_changed_ptid): Likewise.
2346 (regcaches_size): Likewise.
2347 (regcaches_test): Update.
2348 (regcache_thread_ptid_changed): Update.
2349 * regcache.h (regcache_up): New type.
2350 * gdbsupport/ptid.h (hash_ptid): New struct.
2351
b161a60d
SM
23522020-08-07 Simon Marchi <simon.marchi@efficios.com>
2353
2354 * observable.h (thread_ptid_changed): Add parameter
2355 `process_stratum_target *`.
2356 * infrun.c (infrun_thread_ptid_changed): Add parameter
2357 `process_stratum_target *` and use it.
2358 (selftests): New namespace.
2359 (infrun_thread_ptid_changed): New function.
2360 (_initialize_infrun): Register selftest.
2361 * regcache.c (regcache_thread_ptid_changed): Add parameter
2362 `process_stratum_target *` and use it.
2363 (regcache_thread_ptid_changed): New function.
2364 (_initialize_regcache): Register selftest.
2365 * thread.c (thread_change_ptid): Pass target to
2366 thread_ptid_changed observable.
2367
d2854d8d
CT
23682020-08-06 Caroline Tice <cmtice@google.com>
2369
fe4c3d43
SM
2370 * dwarf2/read.c (struct dwo_file): Update comment on 'sections' field.
2371 (struct dwp_sections): Update field comments. Add loclists and
2372 rnglists fields.
2373 (struct virtual_v2_dwo_sections): Rename struct to
2374 'virtual_v2_or_v5_dwo_sections'; update comments at top of struct; add
2375 size & offset fields for loclists and rnglists.
2376 (struct dwp_hash_table): Add a 'v5' struct field to the union section.
2377 (create_debug_type_hash_table): Add 'DW_UT_split_type' to the check for
2378 skipping dummy type units.
2379 (create_dwp_hash_table): Update the large comment above the function to
2380 discuss Version 5 DWP files as well, with references. Update all the
2381 version checks in the function to check for version 5 as well. Add new
2382 section at the end to create dwp hash table for version 5.
2383 (create_dwp_v2_section): Rename function to
2384 'create_dwp_v2_or_v5_section'. Update function comment appropriately.
2385 Add V5 to error message text.
2386 (create_dwo_unit_in_dwp_v2): Change calls to create_dwp_v2_section
2387 into calls to create_dwp_v2_or_v5_section.
2388 (create_dwo_unit_in_dwp_v5): New function.
2389 (lookup_dwo_unit_in_dwp): Update conditional statement to explicitly
2390 check for version2; add else clause to handle version 5.
2391 (open_and_init_dwo_file): Add code to check dwarf version & only call
2392 create_debug_types_hash_table (with sections.types) if version is not 5;
2393 else call create_debug_type_hash_table, with sections.info.
2394 (dwarf2_locate_v2_dwp_sections): Update function comment to mention
2395 version 5.
2396 (dwarf2_locate_v5_dwp_sections): New function.
2397 (open_and_init_dwp_file): Add else-if clause for version 5 to call
2398 bfd_map_over_sections with dwarf2_locate_v5_dwp_sections.
d2854d8d 2399
159ed7d9
SM
24002020-08-06 Simon Marchi <simon.marchi@efficios.com>
2401
2402 * regcache.h (class regcache): Remove friend
2403 registers_changed_ptid.
2404 <regcache_thread_ptid_changed>: Remove.
2405 <regcaches>: Remove.
2406 * regcache.c (regcache::regcaches): Rename to...
2407 (regcaches): ... this. Make static.
2408 (get_thread_arch_aspace_regcache): Update.
2409 (regcache::regcache_thread_ptid_changed): Rename to...
2410 (regcache_thread_ptid_changed): ... this. Update.
2411 (class regcache_access): Remove.
2412 (regcaches_test): Update.
2413 (_initialize_regcache): Update.
2414 * sparc64-tdep.c, dwarf2/index-write.c, record-btrace.c: Include
2415 <forward_list>.
2416
174981ae
SM
24172020-08-06 Simon Marchi <simon.marchi@efficios.com>
2418
2419 * regcache.h (class regcache) <current_regcache>: Rename to...
2420 <regcaches>: ... this. Move doc here.
2421 * regcache.c (regcache::current_regcache) Rename to...
2422 (regcache::regcaches): ... this. Move doc to header.
2423 (get_thread_arch_aspace_regcache): Update.
2424 (regcache::regcache_thread_ptid_changed): Update.
2425 (registers_changed_ptid): Update.
2426 (class regcache_access) <current_regcache_size>: Rename to...
2427 <regcaches_size>: ... this.
2428 (current_regcache_test): Rename to...
2429 (regcaches_test): ... this.
2430 (_initialize_regcache): Update.
2431
ed908db6
VC
24322020-08-06 Victor Collod <vcollod@nvidia.com>
2433
2434 * amd64-tdep.c (amd64_analyze_prologue): Fix incorrect comment.
2435
b5582ab7
KB
24362020-08-05 Kevin Buettner <kevinb@redhat.com>
2437
2438 * corelow.c (core_target::build_file_mappings): Don't output
2439 null pathname in warning.
2440
ea946b86
SM
24412020-08-05 Simon Marchi <simon.marchi@polymtl.ca>
2442
2443 * gdb.dwarf2/clztest.exp, gdb.dwarf2/dw2-common-block.exp,
2444 gdb.dwarf2/dw2-dup-frame.exp, gdb.dwarf2/dw2-reg-undefined.exp,
2445 gdb.dwarf2/dw2-single-line-discriminators.exp,
2446 dw2-undefined-ret-addr.exp: Pass nopie to compilation options.
2447
57d02173
TT
24482020-08-05 Tom Tromey <tromey@adacore.com>
2449
2450 PR rust/26197:
2451 * dwarf2/read.c (alloc_rust_variant): Handle univariant case.
2452 (quirk_rust_enum): Call alloc_rust_variant for univariant case.
2453 Fix off-by-one and type size errors in ordinary case.
2454
5555c86d
TV
24552020-08-05 Tom de Vries <tdevries@suse.de>
2456
2457 * gdbtypes.c (type_not_allocated, type_not_associated): Use
2458 "prop->const_val () == 0" instead of "prop->const_val () != 0".
2459
97916bfe
SM
24602020-08-04 Simon Marchi <simon.marchi@efficios.com>
2461
2462 * frame.h (frame_id_p): Return bool.
2463 (frame_id_artificial_p): Return bool.
2464 (frame_id_eq): Return bool.
2465 (has_stack_frames): Return bool.
2466 (get_selected_frame): Fix typo in comment.
2467 (get_frame_pc_if_available): Return bool.
2468 (get_frame_address_in_block_if_available): Return bool.
2469 (get_frame_func_if_available): Return bool.
2470 (read_frame_register_unsigned): Return bool.
2471 (get_frame_register_bytes): Return bool.
2472 (safe_frame_unwind_memory): Return bool.
2473 (deprecated_frame_register_read): Return bool.
2474 (frame_unwinder_is): Return bool.
2475 * frame.c (struct frame_info) <prev_arch::p>: Change type to
2476 bool.
2477 <this_id::p>: Likewise.
2478 <prev_p>: Likewise.
2479 (frame_stash_add): Return bool.
2480 (get_frame_id): Use bool.
2481 (frame_id_build_special) Use bool.
2482 (frame_id_build_unavailable_stack): Use bool.
2483 (frame_id_build): Use bool.
2484 (frame_id_p): Return bool, use true/false instead of 1/0.
2485 (frame_id_artificial_p): Likewise.
2486 (frame_id_eq): Likewise.
2487 (frame_id_inner): Likewise.
2488 (get_frame_func_if_available): Likewise.
2489 (read_frame_register_unsigned): Likewise.
2490 (deprecated_frame_register_read): Likewise.
2491 (get_frame_register_bytes): Likewise.
2492 (has_stack_frames): Likewise.
2493 (inside_main_func): Likewise.
2494 (inside_entry_func): Likewise.
2495 (get_frame_pc_if_available): Likewise.
2496 (get_frame_address_in_block_if_available): Likewise.
2497 (frame_unwinder_is): Likewise.
2498 (safe_frame_unwind_memory): Likewise.
2499 (frame_unwind_arch): Likewise.
2500
fedfee88
SM
25012020-08-04 Simon Marchi <simon.marchi@efficios.com>
2502
2503 * frame.c (frame_info) <prev_func> <p>: Rename to status, change
2504 type to cached_copy_status.
2505 (fprintf_frame): Adjust.
2506 (get_frame_func_if_available): Adjust.
2507 (frame_cleanup_after_sniffer): Adjust.
2508
6cfa9b59
MW
25092020-08-04 Mark Wielaard <mark@klomp.org>
2510
2511 * MAINTAINERS (Write After Approval): Update email address.
2512
66d6346b
SM
25132020-08-04 Simon Marchi <simon.marchi@polymtl.ca>
2514
2515 * gdbtypes.h (TYPE_DYN_PROP_ADDR): Remove, replace uses with
2516 dynamic_prop::const_val.
2517
8a6d5e35
SM
25182020-08-04 Simon Marchi <simon.marchi@polymtl.ca>
2519
2520 * gdbtypes.h (TYPE_DYN_PROP_KIND): Remove, replace uses with
2521 dynamic_prop::kind.
2522
51d6067d
SM
25232020-08-04 Simon Marchi <simon.marchi@polymtl.ca>
2524
2525 * gdbtypes.h (TYPE_DYN_PROP_BATON): Remove.
2526
b26e2ae7
JM
25272020-08-04 Jose E. Marchesi <jose.marchesi@oracle.com>
2528
2529 * configure.tgt: Set gdb_sim for bpf-*-* targets.
2530
39791af2
JM
25312020-08-04 Weimin Pan <weimin.pan@oracle.com>
2532 Jose E. Marchesi <jose.marchesi@oracle.com>
2533
2534 * configure.tgt: Add entry for bpf-*-*.
2535 * Makefile.in (ALL_TARGET_OBS): Add bpf-tdep.o
2536 (ALLDEPFILES): Add bpf-tdep.c.
2537 * bpf-tdep.c: New file.
2538 * MAINTAINERS: Add bpf target and maintainer.
2539 * NEWS: Mention the support for the new target.
2540
521894aa
TV
25412020-08-04 Tom de Vries <tdevries@suse.de>
2542
2543 PR symtab/23270
2544 * dwarf2/read.c (find_partial_die): Change internal error into Dwarf
2545 Error.
2546
5d6356e9
JB
25472020-08-03 John Baldwin <jhb@FreeBSD.org>
2548
2549 * syscalls/freebsd.xml: Regenerate.
2550
0cf82b81
JB
25512020-08-03 John Baldwin <jhb@FreeBSD.org>
2552
2553 * syscalls/update-freebsd.sh: Fix usage and year range.
2554
8f34b746
TV
25552020-08-03 Tom de Vries <tdevries@suse.de>
2556
2557 PR symtab/26333
2558 * dwarf2/read.c (dwarf_decode_lines_1): Ignore
2559 DW_LNE_lo_user/DW_LNE_hi_user range.
2560
5e500d33
SM
25612020-07-30 Simon Marchi <simon.marchi@polymtl.ca>
2562
2563 PR ada/26318
2564 * ada-lang.c (ada_modulus): Return 0 if property is not of const
2565 kind.
2566
78319c15
TBA
25672020-07-30 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2568
2569 * breakpoint.c (set_breakpoint_condition): Do minor refactoring.
2570
4c55e970
TBA
25712020-07-30 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2572
2573 * breakpoint.c (set_breakpoint_condition): Update the condition
2574 expressions after checking that the input condition string parses
2575 successfully and does not contain junk at the end.
2576
1e620590
TBA
25772020-07-30 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2578
2579 * breakpoint.c (set_breakpoint_condition): Update the
2580 condition string after parsing the new condition successfully.
2581
c8693053
RO
25822020-07-30 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
2583
2584 * proc-api.c (_STRUCTURED_PROC): Don't define.
2585 * proc-events.c: Likewise.
2586 * proc-flags.c: Likewise.
2587 * proc-why.c: Likewise.
2588 * procfs.c: Likewise.
2589
2590 * Makefile.in (INTERNAL_CPPFLAGS): Add LARGEFILE_CPPFLAGS.
2591 * configure, config.in: Regenerate.
2592
5a99adb8
TV
25932020-07-30 Tom de Vries <tdevries@suse.de>
2594
2595 PR build/26320
2596 * ui-style.h (struct ui_file_style::color): Wrap m_value and
2597 m_red/m_green/m_blue in a union.
2598
8ba83e91
TV
25992020-07-29 Tom de Vries <tdevries@suse.de>
2600
2601 PR tdep/26280
2602 * s390-tdep.c (s390_displaced_step_fixup): Fix Wmaybe-uninitialized.
2603
f75a0693
AB
26042020-07-28 Tom Tromey <tromey@adacore.com>
2605
2606 PR symtab/26270:
2607 * symtab.h (find_pc_partial_function_sym): Declare.
2608 * cli/cli-cmds.c (disassemble_command): Use
2609 find_pc_partial_function_sym. Check asm_demangle.
2610 * blockframe.c (cache_pc_function_sym): New global.
2611 (cache_pc_function_name): Remove.
2612 (clear_pc_function_cache): Update.
2613 (find_pc_partial_function_sym): New function, from
2614 find_pc_partial_function.
2615 (find_pc_partial_function): Rewrite using
2616 find_pc_partial_function_sym.
2617
16f3242c
TT
26182020-07-28 Tom Tromey <tromey@adacore.com>
2619
2620 * cli/cli-cmds.c (_initialize_cli_cmds): Rearrange "disassemble"
2621 help. Add usage.
2622
4888741a
TT
26232020-07-28 Tom Tromey <tromey@adacore.com>
2624
2625 * dwarf2/expr.c (dwarf_expr_context::execute_stack_op)
2626 <DW_OP_GNU_variable_value>: Cast to address type.
2627
4d46f402
KR
26282020-07-28 Kamil Rytarowski <n54@gmx.com>
2629
2630 * nbsd-nat.h (nbsd_nat_target::xfer_partial): New declaration.
2631 * nbsd-nat.c (nbsd_nat_target::xfer_partial): New function.
2632 * nbsd-tdep.c (nbsd_gdbarch_data_handle, struct nbsd_gdbarch_data)
2633 (init_nbsd_gdbarch_data, get_nbsd_gdbarch_data)
2634 (nbsd_get_siginfo_type): New.
2635 (nbsd_init_abi): Install gdbarch "get_siginfo_type" method.
2636 (_initialize_nbsd_tdep): New.
2637
d70f978b
L
26382020-07-28 H.J. Lu <hongjiu.lu@intel.com>
2639
2640 PR binutils/26301
2641 * configure: Regenerated.
2642
377170fa
L
26432020-07-28 H.J. Lu <hongjiu.lu@intel.com>
2644
2645 PR binutils/26301
2646 * configure: Regenerated.
2647
43d5901d
AB
26482020-07-28 Andrew Burgess <andrew.burgess@embecosm.com>
2649
2650 * python/py-frame.c: Remove 'user-regs.h' include.
2651 (frapy_read_register): Rewrite to make use of
2652 gdbpy_parse_register_id.
2653 * python/py-registers.c (gdbpy_parse_register_id): New function,
2654 moved here from python/py-unwind.c. Updated the return type, and
2655 also accepts register descriptor objects.
2656 * python/py-unwind.c: Remove 'user-regs.h' include.
2657 (pyuw_parse_register_id): Moved to python/py-registers.c.
2658 (unwind_infopy_add_saved_register): Update to use
2659 gdbpy_parse_register_id.
2660 (pending_framepy_read_register): Likewise.
2661 * python/python-internal.h (gdbpy_parse_register_id): Declare.
2662
14fa8fb3
AB
26632020-07-28 Andrew Burgess <andrew.burgess@embecosm.com>
2664
2665 * python/py-registers.c: Add 'user-regs.h' include.
2666 (register_descriptor_iter_find): New function.
2667 (register_descriptor_iterator_object_methods): New static global
2668 methods array.
2669 (register_descriptor_iterator_object_type): Add pointer to methods
2670 array.
2671
ddce1758
JB
26722020-07-27 John Baldwin <jhb@FreeBSD.org>
2673
2674 * fbsd-nat.h: Include <osreldate.h>. Define USE_SIGTRAP_SIGINFO
2675 for all architectures on FreeBSD 11.3 and later.
2676
a4089f52
TT
26772020-07-27 Tom Tromey <tromey@adacore.com>
2678
2679 * gcore.h (load_corefile): Don't declare.
2680
95420d30
TV
26812020-07-27 Tom de Vries <tdevries@suse.de>
2682
2683 * configure.ac: Fix sys/sockets.h -> sys/socket.h typo.
2684 * config.in: Regenerate.
2685 * configure: Regenerate.
2686
05a6b8c2
EZ
26872020-07-26 Eli Zaretskii <eliz@gnu.org>
2688
2689 * configure.ac (AC_CHECK_HEADERS): Check for sys/socket.h and
2690 ws2tcpip.h. When checking whether socklen_t type is defined, use
2691 ws2tcpip.h if it is available and sys/socket.h isn't.
2692 * configure: Regenerate.
2693 * config.in: Regenerate.
2694
e79eb02f
AB
26952020-07-25 Andrew Burgess <andrew.burgess@embecosm.com>
2696
2697 PR fortran/23051
2698 PR fortran/26139
2699 * valops.c (value_ind): Pass address to
2700 readjust_indirect_value_type.
2701 * value.c (readjust_indirect_value_type): Make parameter
2702 non-const, and add extra address parameter. Resolve original type
2703 before using it.
2704 * value.h (readjust_indirect_value_type): Update function
2705 signature and comment.
2706
876518dd
TV
27072020-07-25 Tom de Vries <tdevries@suse.de>
2708
2709 PR symtab/26243
2710 * dwarf2/read.c (lnp_state_machine::record_line): Ignore zero line
2711 entries.
2712
f6720b1c
AM
27132020-07-24 Aaron Merey <amerey@redhat.com>
2714
2715 * Makefile.in: Replace LIBDEBUGINFOD with DEBUGINFOD_LIBS.
2716 * configure: Rebuild.
2717
513487e1
KB
27182020-07-23 Kevin Buettner <kevinb@redhat.com>
2719
2720 PR corefiles/26294
2721 * corelow.c (_initialize_corelow): Add period to help text
2722 for "maintenance print core-file-backed-mappings".
2723
e7bc9db8
PA
27242020-07-23 Pedro Alves <pedro@palves.net>
2725
2726 * frame-unwind.c (frame_unwind_try_unwinder): On exception, don't
2727 touch THIS_CACHE/THIS_FRAME if the frame cache was cleared
2728 meanwhile.
2729 * frame.c (frame_cache_generation, get_frame_cache_generation):
2730 New.
2731 (reinit_frame_cache): Increment FRAME_CACHE_GENERATION.
2732 (get_prev_frame_if_no_cycle): On exception, don't touch
2733 PREV_FRAME/THIS_FRAME if the frame cache was cleared meanwhile.
2734 * frame.h (get_frame_cache_generation): Declare.
2735
90fcc466
TV
27362020-07-23 Tom de Vries <tdevries@suse.de>
2737
2738 PR tui/26282
2739 * tui/tui-winsource.h (struct tui_source_windows::tui_source_windows):
2740 New default constructor.
2741
78344df7
AB
27422020-07-23 Andrew Burgess <andrew.burgess@embecosm.com>
2743
2744 * disasm.c (do_mixed_source_and_assembly_deprecated): Don't
2745 exclude non-statement entries.
2746
b089853a
KB
27472020-07-22 Kevin Buettner <kevinb@redhat.com>
2748
2749 * NEWS (New commands): Mention new command
2750 "maintenance print core-file-backed-mappings".
2751
09c2f5d4
KB
27522020-07-22 Kevin Buettner <kevinb@redhat.com>
2753
2754 * corelow.c (gdbcmd.h): Include.
2755 (core_target::info_proc_mappings): New method.
2756 (get_current_core_target): New function.
2757 (maintenance_print_core_file_backed_mappings): New function.
2758 (_initialize_corelow): Add core-file-backed-mappings to
2759 "maint print" commands.
2760
9c5ec5c2 27612020-07-22 Kevin Buettner <kevinb@redhat.com>
fe4c3d43 2762
9c5ec5c2
KB
2763 * linux-tdep.c (dump_note_entry_p): New function.
2764 (linux_dump_mapping_p_ftype): New typedef.
2765 (linux_find_memory_regions_full): Add new parameter,
2766 should_dump_mapping_p.
2767 (linux_find_memory_regions): Adjust call to
2768 linux_find_memory_regions_full.
2769 (linux_make_mappings_core_file_notes): Use dump_note_entry_p in
2770 call to linux_find_memory_regions_full.
2771
db082f59
KB
27722020-07-22 Kevin Buettner <kevinb@redhat.com>
2773
2774 * corelow.c (solist.h, unordered_map): Include.
2775 (class core_target): Add field m_core_file_mappings and
2776 method build_file_mappings.
2777 (core_target::core_target): Call build_file_mappings.
2778 (core_target::~core_target): Free memory associated with
2779 m_core_file_mappings.
2780 (core_target::build_file_mappings): New method.
2781 (core_target::xfer_partial): Use m_core_file_mappings
2782 for memory transfers.
2783 * linux-tdep.c (linux_read_core_file_mappings): New
2784 function.
2785 (linux_core_info_proc_mappings): Rewrite to use
2786 linux_read_core_file_mappings.
2787 (linux_init_abi): Register linux_read_core_file_mappings.
2788
7e183d27
KB
27892020-07-22 Kevin Buettner <kevinb@redhat.com>
2790
2791 * arch-utils.c (default_read_core_file_mappings): New function.
2792 * arch-utils.c (default_read_core_file_mappings): Declare.
2793 * gdbarch.sh (read_core_file_mappings): New gdbarch method.
2794 * gdbarch.h, gdbarch.c: Regenerate.
2795
2735d421
KB
27962020-07-22 Kevin Buettner <kevinb@redhat.com>
2797
2798 PR corefiles/25631
2799 * corelow.c (core_target:xfer_partial): Revise
2800 TARGET_OBJECT_MEMORY case to consider non-SEC_HAS_CONTENTS
2801 case after first checking the stratum beneath the core
2802 target.
2803 (has_all_memory): Return true.
2804 * target.c (raw_memory_xfer_partial): Revise comment
2805 regarding use of has_all_memory.
2806
e56cb451
KB
28072020-07-22 Kevin Buettner <kevinb@redhat.com>
2808
2809 * exec.h (section_table_xfer_memory): Revise declaration,
2810 replacing section name parameter with an optional callback
2811 predicate.
2812 * exec.c (section_table_xfer_memory): Likewise.
2813 * bfd-target.c, exec.c, target.c, corelow.c: Adjust all callers
2814 of section_table_xfer_memory.
2815
32fa152e
TT
28162020-07-22 Tom Tromey <tromey@adacore.com>
2817
2818 * mi/mi-cmd-stack.c (list_args_or_locals): Use
2819 lookup_symbol_search_name.
2820
a67a1c41
AB
28212020-07-22 Andrew Burgess <andrew.burgess@embecosm.com>
2822
2823 * python/py-registers.c (gdbpy_register_object_data_init): Remove
2824 redundant local variable.
2825 (gdbpy_get_register_descriptor): Extract descriptor vector as a
2826 reference, not pointer, update code accordingly.
2827
a7b4ff4f
SM
28282020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
2829 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2830
2831 * objfiles.h (struct objfile) <skip_jit_symbol_lookup>: New field.
2832 * jit.c (jit_breakpoint_re_set_internal): Use the
2833 `skip_jit_symbol_lookup` field.
2834
2340e834
SM
28352020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
2836 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2837
2838 * jit.c (jit_read_descriptor): Define the descriptor address once,
2839 use twice.
2840 (jit_breakpoint_deleted): Move the declaration of the loop variable
2841 `iter` into the loop header.
2842 (jit_breakpoint_re_set_internal): Move the declaration of the local
2843 variable `objf_data` to the first point of definition.
2844 (jit_event_handler): Move the declaration of local variables
2845 `code_entry`, `entry_addr`, and `objf` to their first point of use.
2846 Rename `objf` to `jited`.
2847
c1072906
SM
28482020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
2849
2850 * jit.h (struct jiter_objfile_data) <jiter_objfile_data, objfile>:
2851 Remove.
2852 * jit.c (get_jiter_objfile_data): Update.
2853
c8474dc3
TBA
28542020-07-22 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2855 Simon Marchi <simon.marchi@polymtl.ca>
2856
2857 * jit.c (struct jit_program_space_data): Remove.
2858 (jit_program_space_key): Remove.
2859 (jiter_objfile_data::~jiter_objfile_data): Remove program space
2860 stuff.
2861 (get_jit_program_space_data): Remove.
2862 (jit_breakpoint_deleted): Iterate on all of the program space's
2863 objfiles.
2864 (jit_inferior_init): Likewise.
2865 (jit_breakpoint_re_set_internal): Likewise. Also change return
2866 type to void.
2867 (jit_breakpoint_re_set): Pass current_program_space to
2868 jit_breakpoint_re_set_internal.
2869
77208eb7
SM
28702020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
2871
2872 * jit.h (struct jiter_objfile_data) <cached_code_address,
2873 jit_breakpoint>: Move to here from ...
2874 * jit.c (jit_program_space_data): ... here.
2875 (jiter_objfile_data::~jiter_objfile_data): Update.
2876 (jit_breakpoint_deleted): Update.
2877 (jit_breakpoint_re_set_internal): Update.
2878
8c1c720f
SM
28792020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
2880
2881 * jit.c (jiter_objfile_data::~jiter_objfile_data): Remove some
2882 checks.
2883 (jit_read_descriptor): Remove NULL check.
2884 (jit_event_handler): Add an assertion.
2885
0e74a041
SM
28862020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
2887
2888 * jit.h (struct jit_objfile_data): Split into...
2889 (struct jiter_objfile_data): ... this ...
2890 (struct jited_objfile_data): ... and this.
2891 * objfiles.h (struct objfile) <jit_data>: Remove.
2892 <jiter_data, jited_data>: New fields.
2893 * jit.c (jit_objfile_data::~jit_objfile_data): Rename to ...
2894 (jiter_objfile_data::~jiter_objfile_data): ... this.
2895 (get_jit_objfile_data): Rename to ...
2896 (get_jiter_objfile_data): ... this.
2897 (add_objfile_entry): Update.
2898 (jit_read_descriptor): Use get_jiter_objfile_data.
2899 (jit_find_objf_with_entry_addr): Use objfile's jited_data field.
2900 (jit_breakpoint_re_set_internal): Use get_jiter_objfile_data.
2901 (jit_inferior_exit_hook): Use objfile's jited_data field.
2902
238b5c9f
SM
29032020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
2904
2905 * jit.h: Forward-declare `struct minimal_symbol`.
2906 (struct jit_objfile_data): Migrate to here from jit.c; also add a
2907 constructor, destructor, and an objfile* field.
2908 * jit.c (jit_objfile_data): Remove.
2909 (struct jit_objfile_data): Migrate from here to jit.h.
2910 (jit_objfile_data::~jit_objfile_data): New destructor
2911 implementation with code moved from free_objfile_data.
2912 (free_objfile_data): Delete.
2913 (get_jit_objfile_data): Update to use the jit_data field of objfile.
2914 (jit_find_objf_with_entry_addr): Ditto.
2915 (jit_inferior_exit_hook): Ditto.
2916 (_initialize_jit): Remove the call to
2917 register_objfile_data_with_cleanup.
2918 * objfiles.h (struct objfile) <jit_data>: New field.
2919
fe053b9e
TBA
29202020-07-22 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2921
2922 * jit.h: Forward-declare `struct objfile`.
2923 (jit_event_handler): Add a second parameter, the JITer objfile.
2924 * jit.c (jit_read_descriptor): Change the signature to take the
2925 JITer objfile as an argument instead of the jit_program_space_data.
2926 (jit_inferior_init): Update the call to jit_read_descriptor.
2927 (jit_event_handler): Use the new JITer objfile argument when calling
2928 jit_read_descriptor.
2929 * breakpoint.c (handle_jit_event): Update the call to
2930 jit_event_handler to pass the JITer objfile.
2931
4cec0c66
JB
29322020-07-21 John Baldwin <jhb@FreeBSD.org>
2933
2934 * gdbarch.c: Regenerate.
2935 * gdbarch.h: Regenerate.
2936 * gdbarch.sh (handle_segmentation_fault): Remove method.
2937 * infrun.c (handle_segmentation_fault): Remove.
2938 (print_signal_received_reason): Remove call to
2939 handle_segmentation_fault.
2940
0e42f66a
JB
29412020-07-21 John Baldwin <jhb@FreeBSD.org>
2942
2943 * sparc64-linux-tdep.c (sparc64_linux_handle_segmentation_fault):
2944 Rename to sparc64_linux_report_signal_info and add siggnal
2945 argument.
2946 (sparc64_linux_init_abi): Use sparc64_linux_report_signal_info
2947 instead of sparc64_linux_handle_segmentation_fault.
2948
77bdfeb2
JB
29492020-07-21 John Baldwin <jhb@FreeBSD.org>
2950
2951 * amd64-linux-tdep.c (amd64_linux_init_abi_common): Use
2952 i386_linux_report_signal_info instead of
2953 i386_linux_handle_segmentation_fault.
2954 * i386-linux-tdep.c (i386_linux_handle_segmentation_fault): Rename
2955 to i386_linux_report_signal_info and add siggnal argument.
2956 (i386_linux_init_abi): Use i386_linux_report_signal_info instead
2957 of i386_linux_handle_segmentation_fault.
2958 * i386-linux-tdep.h (i386_linux_handle_segmentation_fault): Rename
2959 to i386_linux_report_signal_info and add siggnal argument.
2960
ad97bfc5
JB
29612020-07-21 John Baldwin <jhb@FreeBSD.org>
2962
2963 * corelow.c (core_target_open): Invoke gdbarch report_signal_info
2964 hook if present.
2965
272bb05c
JB
29662020-07-21 John Baldwin <jhb@FreeBSD.org>
2967
2968 * gdbarch.c: Regenerate.
2969 * gdbarch.h: Regenerate.
2970 * gdbarch.sh (report_signal_info): New method.
2971 * infrun.c (print_signal_received_reason): Invoke gdbarch
2972 report_signal_info hook if present.
2973
baf8791e
AB
29742020-07-21 Andrew Burgess <andrew.burgess@embecosm.com>
2975
2976 * python/py-registers.c : Add 'unordered_map' include.
2977 (gdbpy_new_reggroup): Renamed to...
2978 (gdbpy_get_reggroup): ...this. Update to only create register
2979 group descriptors when needed.
2980 (gdbpy_reggroup_iter_next): Update.
2981
f7306dac
AB
29822020-07-21 Andrew Burgess <andrew.burgess@embecosm.com>
2983
2984 * python/py-registers.c (gdbpy_register_object_data): New static
2985 global.
2986 (gdbpy_register_object_data_init): New function.
2987 (gdbpy_new_register_descriptor): Renamed to...
2988 (gdbpy_get_register_descriptor): ...this, and update to reuse
2989 existing register descriptors where possible.
2990 (gdbpy_register_descriptor_iter_next): Update.
2991 (gdbpy_initialize_registers): Register new gdbarch data.
2992
05c309a8
SM
29932020-07-21 Simon Marchi <simon.marchi@efficios.com>
2994
2995 * linux-nat.c (stopped_pids): Make static.
2996
d1fd641e
SM
29972020-07-21 Simon Marchi <simon.marchi@polymtl.ca>
2998
2999 PR ada/26235
3000 * gdbtypes.c (ada_discrete_type_low_bound,
3001 ada_discrete_type_high_bound): Handle undefined bounds.
3002
1de14d77
KR
30032020-07-21 Kamil Rytarowski <n54@gmx.com>
3004
3005 * nbsd-nat.h (nbsd_nat_target::supports_multi_process): New
3006 declaration.
3007 * nbsd-nat.c (nbsd_nat_target::supports_multi_process): New
3008 function.
3009
ed810cc7
JB
30102020-07-20 John Baldwin <jhb@FreeBSD.org>
3011
3012 * fbsd-tdep.c (fbsd_skip_solib_resolver): New function.
3013 (fbsd_init_abi): Install gdbarch "skip_solib_resolver" method.
3014 * fbsd-tdep.h (fbsd_skip_solib_resolver): New prototype.
3015 * mips-fbsd-tdep.c (mips_fbsd_skip_solib_resolver): New function.
3016 (mips_fbsd_init_abi): Install gdbarch "skip_solib_resolver"
3017 method.
3018
ae5369e7
LC
30192020-07-20 Ludovic Courtès <ludo@gnu.org>
3020
3021 * guile/scm-math.c (vlscm_integer_fits_p): Use 'uintmax_t'
3022 and 'intmax_t' instead of 'scm_t_uintmax' and 'scm_t_intmax',
3023 which are deprecated in Guile 3.0.
3024 * configure.ac (try_guile_versions): Add "guile-3.0".
3025 * configure (try_guile_versions): Regenerate.
3026 * NEWS: Update entry.
3027
68cf161c
LC
30282020-07-20 Ludovic Courtès <ludo@gnu.org>
3029 Doug Evans <dje@google.com>
3030
3031 PR gdb/21104
3032 * guile/scm-ports.c (USING_GUILE_BEFORE_2_2): New macro.
3033 (ioscm_memory_port)[read_buf_size, write_buf_size]: Wrap in #if
3034 USING_GUILE_BEFORE_2_2.
3035 (stdio_port_desc, memory_port_desc) [!USING_GUILE_BEFORE_2_2]:
3036 Change type to 'scm_t_port_type *'.
3037 (natural_buffer_size) [!USING_GUILE_BEFORE_2_2]: New variable.
3038 (ioscm_open_port) [USING_GUILE_BEFORE_2_2]: Add 'stream'
3039 parameter and honor it. Update callers.
3040 (ioscm_open_port) [!USING_GUILE_BEFORE_2_2]: New function.
3041 (ioscm_read_from_port, ioscm_write) [!USING_GUILE_BEFORE_2_2]: New
3042 functions.
3043 (ioscm_fill_input, ioscm_input_waiting, ioscm_flush): Wrap in #if
3044 USING_GUILE_BEFORE_2_2.
3045 (ioscm_init_gdb_stdio_port) [!USING_GUILE_BEFORE_2_2]: Use
3046 'ioscm_read_from_port'. Call 'scm_set_port_read_wait_fd'.
3047 (ioscm_init_stdio_buffers) [!USING_GUILE_BEFORE_2_2]: New function.
3048 (gdbscm_stdio_port_p) [!USING_GUILE_BEFORE_2_2]: Use 'SCM_PORTP'
3049 and 'SCM_PORT_TYPE'.
3050 (gdbscm_memory_port_end_input, gdbscm_memory_port_seek)
3051 (ioscm_reinit_memory_port): Wrap in #if USING_GUILE_BEFORE_2_2.
3052 (gdbscm_memory_port_read, gdbscm_memory_port_write)
3053 (gdbscm_memory_port_seek, gdbscm_memory_port_close)
3054 [!USING_GUILE_BEFORE_2_2]: New functions.
3055 (gdbscm_memory_port_print): Remove use of 'SCM_PTOB_NAME'.
3056 (ioscm_init_memory_port_type) [!USING_GUILE_BEFORE_2_2]: Use
3057 'gdbscm_memory_port_read'.
3058 Wrap 'scm_set_port_end_input', 'scm_set_port_flush', and
3059 'scm_set_port_free' calls in #if USING_GUILE_BEFORE_2_2.
3060 (gdbscm_get_natural_buffer_sizes) [!USING_GUILE_BEFORE_2_2]: New
3061 function.
3062 (ioscm_init_memory_port): Remove.
3063 (ioscm_init_memory_port_stream): New function
3064 (ioscm_init_memory_port_buffers) [USING_GUILE_BEFORE_2_2]: New
3065 function.
3066 (gdbscm_memory_port_read_buffer_size) [!USING_GUILE_BEFORE_2_2]:
3067 Return scm_from_uint (0).
3068 (gdbscm_set_memory_port_read_buffer_size_x)
3069 [!USING_GUILE_BEFORE_2_2]: Call 'scm_setvbuf'.
3070 (gdbscm_memory_port_write_buffer_size) [!USING_GUILE_BEFORE_2_2]:
3071 Return scm_from_uint (0).
3072 (gdbscm_set_memory_port_write_buffer_size_x)
3073 [!USING_GUILE_BEFORE_2_2]: Call 'scm_setvbuf'.
3074 * configure.ac (try_guile_versions): Add "guile-2.2".
3075 * configure: Regenerate.
3076 * NEWS: Add entry.
3077
aee91db3
TT
30782020-07-18 Tom Tromey <tom@tromey.com>
3079
3080 * linux-nat.c (linux_multi_process): Remove.
3081 (linux_nat_target::supports_multi_process): Return true.
3082
0e267416
AB
30832020-07-17 Andrew Burgess <andrew.burgess@embecosm.com>
3084
3085 * arch/riscv.c (riscv_tdesc_cache): Change map type.
3086 (riscv_lookup_target_description): Return pointer out of
3087 unique_ptr.
3088 * target-descriptions.c (allocate_target_description): Add
3089 comment.
3090 (target_desc_deleter::operator()): Likewise.
3091 * target-descriptions.h (struct target_desc_deleter): Moved to
3092 gdbsupport/tdesc.h.
3093 (target_desc_up): Likewise.
3094
f80c8ec4
TT
30952020-07-17 Tom Tromey <tromey@adacore.com>
3096
3097 * linux-nat.c (linux_nat_target::supports_non_stop)
3098 (linux_nat_target::always_non_stop_p): Use "true".
3099 (linux_nat_target::supports_disable_randomization): Use "true" and
3100 "false".
3101
d0ce17d8
CT
31022020-07-16 Caroline Tice <cmtice@google.com>
3103
3104 * dwarf2/read.c (RNGLIST_HEADER_SIZE32) New constant definition.
3105 (RNGLIST_HEADER_SIZE64): New constant definition.
3106 (struct dwop_section_names): Add rnglists_dwo.
3107 (dwop_section_names): Add .debug_rnglists.dwo, .zdebug_rnglists.dwo.
3108 (struct loclist_header): Rename to 'loclists_rnglists_header'.
3109 (struct dwo_sections): Add rnglists field.
3110 (read_attribut_reprocess): Add tag parameter.
3111 (dwarf2_ranges_read): Add tag parameter & remove forward function decl.
3112 (cu_debug_rnglists_section): New function (decl & definition).
3113 (dwarf2_locate_dwo_sections): Add code to read rnglists_dwo section.
3114 (dwarf2_rnglists_process): Add a dwarf_tag parameter, for the kind of
3115 die whose range is being checked; get rnglist section from
3116 cu_debug_rnglists_section, to get from either objfile or dwo file as
3117 appropriate. Add cases for DW_RLE_base_addressx,
3118 DW_RLE_startx_length, DW_RLE_startx_endx. Also, update to only add
3119 the base address to DW_RLE_offset_pairs (not to all ranges), moving
3120 test inside if-condition and updating complaint message.
3121 (dwarf2_ranges_process): Add dwarf tag parameter and pass it to
3122 dwarf2_rnglists_process.
3123 (dwarf2_ranges_read): Add dwarf tag parameter and pass it to
3124 dwarf2_ranges_process.
3125 (dwarf2_get_pc_bounds): Check for DW_FORM_rnglistx when setting
3126 need_ranges_base and update comment appropriately. Also pass die tag
3127 to dwarf2_ranges_read.
3128 (dwarf2_record_block_ranges): Check for DW_FORM_rnglistx when setting
3129 need_ranges_base and update comment appropriately. Also pass die tag
3130 to dwarf2_ranges_process.
3131 (read_full_die_1): Add code to read DW_AT_rnglists_base and assign to
3132 cu->ranges_base. Also pass die tag to read_attribute_reprocess.
3133 (partial_die_info::read): Check for DW_FORM_rnglistx when setting
3134 need_ranges_base and update comment appropriately. Also pass die tag
3135 to read_attribute_reprocess and dwarf2_ranges_read.
3136 (read_loclist_header): Rename function to read_loclists_rnglists_header,
3137 and update function comment appropriately.
3138 (read_loclist_index): Call read_loclists_rnglists_header instead of
3139 read_loclist_header.
3140 (read_rnglist_index): New function.
3141 (read_attribute_reprocess): Add tag parameter. Add code for
3142 DW_FORM_rnglistx, passing tag to read_rnglist_index.
3143 (read_attribute_value): Mark DW_FORM_rnglistx with need_reprocess.
3144
3dcc261c
AB
31452020-07-15 Andrew Burgess <andrew.burgess@embecosm.com>
3146
3147 * f-typeprint.c (f_type_print_base): Allow for dynamic types not
3148 being resolved.
3149
ccb9eba6
AB
31502020-07-14 Andrew Burgess <andrew.burgess@embecosm.com>
3151
3152 * arch-utils.c (show_architecture): Update formatting of messages.
3153
cf88be68
SM
31542020-07-12 Simon Marchi <simon.marchi@efficios.com>
3155
3156 * gdbtypes.h (struct type) <bounds>: Handle array and string
3157 types.
3158 * ada-lang.c (assign_aggregate): Use type::bounds on
3159 array/string type.
3160 * c-typeprint.c (c_type_print_varspec_suffix): Likewise.
3161 * c-varobj.c (c_number_of_children): Likewise.
3162 (c_describe_child): Likewise.
3163 * eval.c (evaluate_subexp_for_sizeof): Likewise.
3164 * f-typeprint.c (f_type_print_varspec_suffix): Likewise.
3165 (f_type_print_base): Likewise.
3166 * f-valprint.c (f77_array_offset_tbl): Likewise.
3167 (f77_get_upperbound): Likewise.
3168 (f77_print_array_1): Likewise.
3169 * guile/scm-type.c (gdbscm_type_range): Likewise.
3170 * m2-typeprint.c (m2_array): Likewise.
3171 (m2_is_long_set_of_type): Likewise.
3172 * m2-valprint.c (get_long_set_bounds): Likewise.
3173 * p-typeprint.c (pascal_type_print_varspec_prefix): Likewise.
3174 * python/py-type.c (typy_range): Likewise.
3175 * rust-lang.c (rust_internal_print_type): Likewise.
3176 * type-stack.c (type_stack::follow_types): Likewise.
3177 * valarith.c (value_subscripted_rvalue): Likewise.
3178 * valops.c (value_cast): Likewise.
3179
509971ae
SM
31802020-07-12 Simon Marchi <simon.marchi@efficios.com>
3181
3182 * gdbtypes.c (TYPE_ARRAY_BIT_STRIDE): Remove. Update all
3183 callers to use the equivalent accessor methods.
3184
107406b7
SM
31852020-07-12 Simon Marchi <simon.marchi@efficios.com>
3186
3187 * gdbtypes.h (struct range_bounds) <bit_stride>: New method.
3188 (struct type) <bit_stride>: New method.
3189 (TYPE_BIT_STRIDE): Remove.
3190 * gdbtypes.c (update_static_array_size): Use type::bit_stride.
3191
bb789949
SM
31922020-07-12 Simon Marchi <simon.marchi@efficios.com>
3193
3194 * gdbtypes.h (TYPE_ARRAY_LOWER_BOUND_VALUE,
3195 TYPE_ARRAY_UPPER_BOUND_VALUE): Remove. Update all
3196 callers to use the equivalent accessor methods instead.
3197
39498edb
SM
31982020-07-12 Simon Marchi <simon.marchi@efficios.com>
3199
3200 * gdbtypes.h (TYPE_ARRAY_UPPER_BOUND_IS_UNDEFINED,
3201 TYPE_ARRAY_LOWER_BOUND_IS_UNDEFINED): Remove. Update all
3202 callers to use the equivalent accessor methods instead.
3203
3b606f38
SM
32042020-07-12 Simon Marchi <simon.marchi@efficios.com>
3205
3206 * gdbtypes.h (TYPE_LOW_BOUND_KIND,
3207 TYPE_HIGH_BOUND_KIND): Remove. Update all callers
3208 to use dynamic_prop::kind.
3209
064d9cb9
SM
32102020-07-12 Simon Marchi <simon.marchi@efficios.com>
3211
3212 * gdbtypes.h (TYPE_LOW_BOUND_UNDEFINED,
3213 TYPE_HIGH_BOUND_UNDEFINED): Remove. Update all callers
3214 to get the bound property's kind and check against
3215 PROP_UNDEFINED.
3216
5537ddd0
SM
32172020-07-12 Simon Marchi <simon.marchi@efficios.com>
3218
3219 * gdbtypes.h (TYPE_LOW_BOUND, TYPE_HIGH_BOUND): Remove. Update
3220 all callers to use type::range_bounds followed by
3221 dynamic_prop::{low,high}.
3222
8c2e4e06
SM
32232020-07-12 Simon Marchi <simon.marchi@polymtl.ca>
3224
3225 * gdbtypes.h (struct dynamic_prop) <kind, set_undefined,
3226 const_val, set_const_val, baton, set_locexpr, set_loclist,
3227 set_addr_offset, variant_parts, set_variant_parts,
3228 original_type, set_original_type>: New methods.
3229 <kind>: Rename to...
3230 <m_kind>: ... this. Update all users to use the new methods
3231 instead.
3232 <data>: Rename to...
3233 <m_data>: ... this. Update all users to use the new methods
3234 instead.
3235
7c6f2712
SM
32362020-07-12 Simon Marchi <simon.marchi@efficios.com>
3237
3238 * gdbtypes.c (get_discrete_bounds): Return failure if
3239 the range type's bounds are not both defined and constant
3240 values.
3241 (get_array_bounds): Update comment. Remove undefined bound check.
3242
599088e3
SM
32432020-07-12 Simon Marchi <simon.marchi@polymtl.ca>
3244
3245 * gdbtypes.h (TYPE_RANGE_DATA): Remove. Update callers to use
3246 the type::bounds method directly.
3247
c4dfcb36
SM
32482020-07-12 Simon Marchi <simon.marchi@efficios.com>
3249
3250 * gdbtypes.h (struct type) <bounds, set_bounds>: New methods.
3251 (TYPE_RANGE_DATA): Use type::bounds. Change all uses that
3252 are used to set the range type's bounds to use set_bounds.
3253
0a278aa7
PW
32542020-07-11 Philippe Waroquiers <philippe.waroquiers@skynet.be>
3255
3256 * exec.c (_initialize_exec): Update exec-file-mismatch help.
3257
cce20f10
PA
32582020-07-10 Pedro Alves <pedro@palves.net>
3259
3260 * gdbthread.h (inferior_ref): Define.
3261 (scoped_restore_current_thread) <m_thread>: Now a thread_info_ref.
3262 (scoped_restore_current_thread) <m_inf>: Now an inferior_ref.
3263 * thread.c
3264 (scoped_restore_current_thread::restore):
3265 Adjust to gdb::ref_ptr.
3266 (scoped_restore_current_thread::~scoped_restore_current_thread):
3267 Remove manual decref handling.
3268 (scoped_restore_current_thread::scoped_restore_current_thread):
3269 Adjust to use
3270 inferior_ref::new_reference/thread_info_ref::new_reference.
3271 Incref the thread before calling get_frame_id instead of after.
3272 Let TARGET_CLOSE_ERROR propagate.
3273
6d7aa592
PA
32742020-07-10 Pedro Alves <pedro@palves.net>
3275
3276 * frame-tailcall.c (dwarf2_tailcall_sniffer_first): Only swallow
3277 NO_ENTRY_VALUE_ERROR / MEMORY_ERROR / OPTIMIZED_OUT_ERROR /
3278 NOT_AVAILABLE_ERROR.
3279 * value.c (value_optimized_out): Only swallow MEMORY_ERROR /
3280 OPTIMIZED_OUT_ERROR / NOT_AVAILABLE_ERROR.
3281
b3e3a4c1
SM
32822020-07-10 Simon Marchi <simon.marchi@polymtl.ca>
3283 Pedro Alves <pedro@palves.net>
3284
3285 PR gdb/26199
3286 * infrun.c (threads_are_resumed_pending_p): Delete.
3287 (do_target_wait): Remove threads_are_executing and
3288 threads_are_resumed_pending_p checks from the inferior_matches
3289 lambda. Update comments.
3290
d6cc5d98
PA
32912020-07-10 Pedro Alves <pedro@palves.net>
3292
3293 PR gdb/26199
3294 * infrun.c (handle_no_resumed): Transfer terminal to inferior with
3295 executing threads.
3296
7d3badc6
PA
32972020-07-10 Pedro Alves <pedro@palves.net>
3298
3299 PR gdb/26199
3300 * infrun.c (handle_no_resumed): Handle multiple targets.
3301
42bd97a6
PA
33022020-07-10 Pedro Alves <pedro@palves.net>
3303
3304 PR gdb/26199
3305 * infrun.c (prepare_to_wait): Check target_can_async_p instead of
3306 target_is_async_p.
3307
43667cc6
PA
33082020-07-10 Pedro Alves <pedro@palves.net>
3309
3310 PR gdb/26199
3311 * target.c (target_pass_ctrlc): Look at the inferior's non-exited
3312 threads, not all threads.
3313
96118d11
PA
33142020-07-10 Pedro Alves <pedro@palves.net>
3315
3316 PR gdb/26199
3317 * remote.c (remote_target::open_1): Pass remote target pointer as
3318 data to create_async_event_handler.
3319 (remote_async_inferior_event_handler): Mark async event handler
3320 before returning if the remote target still has either pending
3321 events or unacknowledged notifications.
3322
54904d81
JB
33232020-07-10 John Baldwin <jhb@FreeBSD.org>
3324
3325 * fbsd-nat.h (fbsd_nat_target::supports_multi_process): New
3326 declaration.
3327 * fbsd-nat.c (fbsd_nat_target::supports_multi_process): New
3328 function.
3329
f37e5866
JB
33302020-07-09 John Baldwin <jhb@FreeBSD.org>
3331
3332 * inf-ptrace.c (inf_ptrace_target::wait): Don't compare against
3333 inferior_ptid.
3334
fc238d4a
JB
33352020-07-09 John Baldwin <jhb@FreeBSD.org>
3336
3337 * fbsd-tdep.c (fbsd_print_auxv_entry): Handle AT_FREEBSD_ARGC,
3338 AT_FREEBSD_ARGV, AT_FREEBSD_ENVC, AT_FREEBSD_ENVV,
3339 AT_FREEBSD_PS_STRINGS.
3340
6e2469ff
HD
33412020-07-08 Hannes Domani <ssbssa@yahoo.de>
3342
3343 * auto-load.c (auto_load_objfile_script_1): Convert drive part
3344 of debugfile path on Windows.
3345
d1076c41
JB
33462020-07-08 John Baldwin <jhb@FreeBSD.org>
3347
3348 * fbsd-nat.c (fbsd_nat_target::find_memory_regions): Rename 'obfd'
3349 argument to 'data'.
3350
15f3b077
TT
33512020-07-08 Tom Tromey <tromey@adacore.com>
3352
3353 * ada-lang.c (ada_exception_message_1): Use read_memory.
3354
9fc501fd
AB
33552020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
3356
3357 PR python/22748
3358 * dwarf2/frame-tailcall.c (dwarf2_tailcall_sniffer_first): Remove
3359 special handling for inline frames.
3360 * findvar.c (value_of_register_lazy): Skip inline frames when
3361 creating lazy register values.
3362 * frame.c (frame_id_computed_p): Delete definition.
3363 * frame.h (frame_id_computed_p): Delete declaration.
3364
64cb3757
AB
33652020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
3366
3367 * NEWS: Mention additions to Python API.
3368 * python/py-arch.c (archpy_register_groups): New function.
3369 (arch_object_methods): Add 'register_groups' method.
3370 * python/py-registers.c (reggroup_iterator_object): New struct.
3371 (reggroup_object): New struct.
3372 (gdbpy_new_reggroup): New function.
3373 (gdbpy_reggroup_to_string): New function.
3374 (gdbpy_reggroup_name): New function.
3375 (gdbpy_reggroup_iter): New function.
3376 (gdbpy_reggroup_iter_next): New function.
3377 (gdbpy_new_reggroup_iterator): New function
3378 (gdbpy_initialize_registers): Register new types.
3379 (reggroup_iterator_object_type): Define new Python type.
3380 (gdbpy_reggroup_getset): New static global.
3381 (reggroup_object_type): Define new Python type.
3382 * python/python-internal.h
3383
0f767f94
AB
33842020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
3385
3386 * Makefile.in (SUBDIR_PYTHON_SRCS): Add py-registers.c
3387 * python/py-arch.c (archpy_registers): New function.
3388 (arch_object_methods): Add 'registers' method.
3389 * python/py-registers.c: New file.
3390 * python/python-internal.h
3391 (gdbpy_new_register_descriptor_iterator): Declare.
3392 (gdbpy_initialize_registers): Declare.
3393 * python/python.c (do_start_initialization): Call
3394 gdbpy_initialize_registers.
3395 * NEWS: Mention additions to the Python API.
3396
87dbc774
AB
33972020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
3398
3399 * NEWS: Mention new Python API method.
3400 * python/py-unwind.c (pending_framepy_architecture): New function.
3401 (pending_frame_object_methods): Add architecture method.
3402
3bc98c0c
AB
34032020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
3404
3405 * gdbarch.c: Regenerate.
3406 * gdbarch.h: Regenerate.
3407 * gdbarch.sh (deprecated_set_gdbarch_data): Delete.
3408 (gdbarch_data): Use internal_error for the case where
3409 deprecated_set_gdbarch_data was originally needed.
3410 * ia64-libunwind-tdep.c (libunwind_descr_init): Update parameters,
3411 and use passed in obstack.
3412 (libunwind_frame_set_descr): Should no longer get back NULL from
3413 gdbarch_data.
3414 (_initialize_libunwind_frame): Register as a pre-init gdbarch data
3415 type.
3416 * user-regs.c (user_regs_init): Update parameters, and use passed
3417 in obstack.
3418 (user_reg_add): Should no longer get back NULL from gdbarch_data.
3419 (_initialize_user_regs): Register as a pre-init gdbarch data type.
3420
d8cc8af6
TV
34212020-07-06 Tom de Vries <tdevries@suse.de>
3422
3423 * buildsym.c (buildsym_compunit::end_symtab_with_blockvector): Handle
3424 End-Of-Sequence in lte_is_less_than.
3425 * symtab.c (find_pc_sect_line): Revert change from commit 3d92a3e313
3426 "gdb: Don't reorder line table entries too much when sorting".
3427
947f7597
TV
34282020-07-06 Tom de Vries <tdevries@suse.de>
3429
3430 PR tui/26205
3431 * tui/tui-win.c (tui_partial_win_by_name): Don't test for NULL name.
3432
1e7c1b22
TV
34332020-07-05 Tom de Vries <tdevries@suse.de>
3434
3435 PR build/26187
3436 * inferior.h (struct infcall_suspend_state_deleter): If available, use
3437 std::uncaught_exceptions instead of deprecated
3438 std::uncaught_exception.
3439
a36158ec
SM
34402020-07-02 Simon Marchi <simon.marchi@polymtl.ca>
3441
3442 * macroexp.h (macro_stringify): Return
3443 gdb::unique_xmalloc_ptr<char>.
3444 * macroexp.c (macro_stringify): Likewise.
3445 * macrotab.c (fixup_definition): Update.
3446
14d960c8
SM
34472020-07-02 Simon Marchi <simon.marchi@polymtl.ca>
3448
3449 * c-exp.y (scan_macro_expansion): Don't free `expansion`.
3450 (lex_one_token): Update.
3451 * macroexp.c (struct macro_buffer) <release>: Return
3452 gdb::unique_xmalloc_ptr<char>.
3453 (macro_stringify): Update.
3454 (macro_expand): Update.
3455 (macro_expand_next): Return gdb::unique_xmalloc_ptr<char>.
3456 * macroexp.h (macro_expand_next): Likewise.
3457
211d5b1c
SM
34582020-07-02 Simon Marchi <simon.marchi@efficios.com>
3459
3460 * macroexp.h (macro_lookup_ftype): Remove.
3461 (macro_expand, macro_expand_once, macro_expand_next): Remove
3462 lookup function parameters, add scope parameter.
3463 * macroexp.c (scan, substitute_args, expand, maybe_expand,
3464 macro_expand, macro_expand_once, macro_expand_next): Likewise.
3465 * macroscope.h (standard_macro_lookup): Change parameter type
3466 to macro_scope.
3467 * macroscope.c (standard_macro_lookup): Likewise.
3468 * c-exp.y (lex_one_token): Update.
3469 * macrocmd.c (macro_expand_command): Likewise.
3470 (macro_expand_once_command): Likewise.
3471
b1a35af2
SM
34722020-07-02 Simon Marchi <simon.marchi@polymtl.ca>
3473
3474 * inf-loop.c (inferior_event_handler): Remove client_data param.
3475 * inf-loop.h (inferior_event_handler): Likewise.
3476 * infcmd.c (step_1): Adjust.
3477 * infrun.c (proceed): Adjust.
3478 (fetch_inferior_event): Remove client_data param.
3479 (infrun_async_inferior_event_handler): Adjust.
3480 * infrun.h (fetch_inferior_event): Remove `void *` param.
3481 * linux-nat.c (handle_target_event): Adjust.
3482 * record-btrace.c (record_btrace_handle_async_inferior_event):
3483 Adjust.
3484 * record-full.c (record_full_async_inferior_event_handler):
3485 Adjust.
3486 * remote.c (remote_async_inferior_event_handler): Adjust.
3487
1cdf9e33
TT
34882020-07-01 Tom Tromey <tom@tromey.com>
3489
3490 * tui/tui-data.h (struct tui_win_info) <name>: Now pure virtual.
3491 * tui/tui-stack.h (struct tui_locator_window) <name>: New method.
3492
32c1e210
TT
34932020-07-01 Tom Tromey <tom@tromey.com>
3494
3495 * tui/tui-wingeneral.c (tui_win_info::refresh_window): Move from
3496 tui_gen_win_info.
3497 (tui_win_info::make_window): Merge with
3498 tui_gen_win_info::make_window.
3499 (tui_win_info::make_visible): Move from tui_gen_win_info.
3500 * tui/tui-win.c (tui_win_info::max_width): Move from
3501 tui_gen_win_info.
3502 * tui/tui-layout.h (class tui_layout_window) <m_window>: Change
3503 type.
3504 <window_factory>: Likewise.
3505 * tui/tui-layout.c (tui_win_info::resize): Move from
3506 tui_gen_win_info.
3507 (make_standard_window): Change return type.
3508 (get_locator_window, tui_get_window_by_name): Likewise.
3509 (tui_layout_window::apply): Remove a cast.
3510 * tui/tui-data.h (MIN_WIN_HEIGHT): Move earlier.
3511 (struct tui_win_info): Merge with tui_gen_win_info.
3512 (struct tui_gen_win_info): Remove.
3513
a30cb6da
TT
35142020-07-01 Tom Tromey <tom@tromey.com>
3515
3516 * tui/tui-stack.h (struct tui_locator_window): Derive from
3517 tui_win_info.
3518 <do_scroll_horizontal, do_scroll_vertical>: New methods.
3519 <can_box>: New method.
3520
1eb2161f
TT
35212020-07-01 Tom Tromey <tom@tromey.com>
3522
3523 * tui/tui-stack.h (struct tui_locator_window): Remove body.
3524
7134f2eb
TT
35252020-07-01 Tom Tromey <tom@tromey.com>
3526
3527 * tui/tui-regs.c (tui_data_window::display_registers_from)
3528 (tui_data_window::display_registers_from)
3529 (tui_data_window::first_data_item_displayed)
3530 (tui_data_window::delete_data_content_windows): Update.
3531 (tui_data_window::refresh_window, tui_data_window::no_refresh):
3532 Remove.
3533 (tui_data_window::check_register_values): Update.
3534 (tui_data_item_window::rerender): Add parameters. Update.
3535 (tui_data_item_window::refresh_window): Remove.
3536 * tui/tui-data.h (struct tui_gen_win_info) <no_refresh>: No longer
3537 virtual.
3538 * tui/tui-regs.h (struct tui_data_item_window): Don't derive from
3539 tui_gen_win_info.
3540 <refresh_window, max_height, min_height>: Remove.
3541 <rerender>: Add parameters.
3542 <x, y, visible>: New members.
3543 (struct tui_data_window) <refresh_window, no_refresh>: Remove.
3544 <m_item_width>: New member.
3545
22b7b041
TT
35462020-07-01 Tom Tromey <tom@tromey.com>
3547
3548 * tui/tui-regs.c (tui_data_window::show_register_group)
3549 (tui_data_window::check_register_values): Update.
3550 * tui/tui-regs.h (struct tui_data_item_window) <regno>: Rename
3551 from item_no.
3552
c9753adb
TT
35532020-07-01 Tom Tromey <tom@tromey.com>
3554
3555 * tui/tui-regs.c (tui_data_window::show_register_group): Remove
3556 useless "if".
3557
9ab26b4a
TT
35582020-07-01 Tom Tromey <tom@tromey.com>
3559
3560 * tui/tui-regs.c (tui_data_window::show_register_group): Update.
3561 * tui/tui-regs.h (struct tui_data_item_window) <name>: Remove.
3562
e555083f
TT
35632020-07-01 Tom Tromey <tom@tromey.com>
3564
3565 * tui/tui-stack.c (SINGLE_KEY): Move from tui-data.h
3566 * tui/tui-winsource.h (enum tui_line_or_address_kind)
3567 (struct tui_line_or_address): Move from tui-data.h.
3568 * tui/tui-win.c (DEFAULT_TAB_LEN): Move from tui-data.h.
3569 * tui/tui-data.h (DEFAULT_TAB_LEN): Move to tui-win.c.
3570 (tui_cmd_window, tui_source_window_base, tui_source_window)
3571 (tui_disasm_window): Don't declare.
3572 (enum tui_line_or_address_kind, struct tui_line_or_address): Move
3573 to tui-winsource.h.
3574 (SINGLE_KEY): Move to tui-stack.c.
3575
7a02bab7
TT
35762020-07-01 Tom Tromey <tom@tromey.com>
3577
3578 * tui/tui-regs.h (struct tui_data_item_window) <content>: Now a
3579 std::string.
3580 * tui/tui-regs.c (class tab_expansion_file): New.
3581 (tab_expansion_file::write): New method.
3582 (tui_register_format): Change return type. Use
3583 tab_expansion_file.
3584 (tui_get_register, tui_data_window::display_registers_from)
3585 (tui_data_item_window::rerender): Update.
3586 * tui/tui-io.h (tui_expand_tabs): Don't declare.
3587 * tui/tui-io.c (tui_expand_tabs): Remove.
3588
ea68593b
TT
35892020-07-01 Tom Tromey <tom@tromey.com>
3590
3591 * tui/tui-regs.c (tui_reggroup_completer): Use complete_on_enum.
3592
a8caed5d
FS
35932020-07-01 Fangrui Song <maskray@google.com>
3594
3595 * dwarf2/read.c (lnp_state_machine::check_line_address): Test -1.
3596
9cdf9820
AKS
35972020-07-01 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
3598
3599 * dwarf2/read.c (set_die_type): Removed conditions to restrict
3600 forms for DW_AT_associated and DW_AT_allocated attributes,
3601 which is already checked in function attr_to_dynamic_prop.
3602
a1520ad8
TT
36032020-06-30 Tom Tromey <tromey@adacore.com>
3604
3605 * dwarf2/read.c (quirk_rust_enum): Correctly call
3606 alloc_rust_variant for default-less enum.
3607
5ac58899
TT
36082020-06-30 Tom Tromey <tromey@adacore.com>
3609
3610 PR build/26183:
3611 * ada-lang.c (ada_lookup_name_info::ada_lookup_name_info): Use
3612 gdb::to_string.
3613
19b187a9
SM
36142020-06-29 Simon Marchi <simon.marchi@efficios.com>
3615
3616 * gdbarch.sh (displaced_step_copy_insn): Update doc.
3617 * gdbarch.h: Re-generate.
3618
cd4c4c07
TT
36192020-06-28 Tom Tromey <tom@tromey.com>
3620
3621 * command.h (cmd_types): Remove.
3622 (cmd_type): Don't declare.
3623 * cli/cli-decode.h (enum cmd_types): Uncomment. No longer a
3624 typedef.
3625 * cli/cli-cmds.c (setting_cmd): Use cmd->type directly.
3626 * cli/cli-decode.c (cmd_type): Remove.
3627
05779d57
PA
36282020-06-27 Pedro Alves <palves@redhat.com>
3629
3630 * fork-child.c (prefork_hook): Adjust.
3631 * infcmd.c (set_inferior_io_terminal, get_inferior_io_terminal):
3632 Delete.
3633 (set_inferior_tty_command, show_inferior_tty_command): Adjust.
3634 * inferior.c (inferior::set_tty, inferior::tty): New methods.
3635 * inferior.h (set_inferior_io_terminal, get_inferior_io_terminal):
3636 Remove declarations.
3637 (struct inferior) <set_tty, tty>: New methods.
3638 (struct inferior) <terminal>: Rename to ...
3639 (struct inferior) <m_terminal>: ... this and make private.
3640 * main.c (captured_main_1): Adjust.
3641 * mi/mi-cmd-env.c (mi_cmd_inferior_tty_set): Adjust.
3642 (mi_cmd_inferior_tty_show): Adjust.
3643 * nto-procfs.c (nto_procfs_target::create_inferior): Adjust.
3644 * windows-nat.c (windows_nat_target::create_inferior): Adjust.
3645
1776e3e5
NA
36462020-06-26 Nick Alcock <nick.alcock@oracle.com>
3647
3648 * configure.ac: Add --enable-libctf: handle --disable-static
3649 properly.
3650 * acinclude.m4: sinclude ../config/enable.m4.
3651 * Makefile.in (aclocal_m4_deps): Adjust accordingly.
3652 (LIBCTF): Substitute in.
3653 (CTF_DEPS): New, likewise.
3654 (CLIBS): libctf needs symbols from libbfd: move earlier.
3655 (CDEPS): Use CTF_DEPS, not LIBCTF, now LIBCTF can include rpath
3656 flags.
3657 * ctfread.c: Surround in ENABLE_LIBCTF.
3658 (elfctf_build_psymtabs) [!ENABLE_LIBCTF]: New stub.
3659 * configure: Regenerate.
3660 * config.in: Likewise.
3661
58373b80
SM
36622020-06-25 Simon Marchi <simon.marchi@efficios.com>
3663
3664 * infcmd.c (set_inferior_io_terminal): Use make_unique_xstrdup.
3665
277474ee
SM
36662020-06-25 Simon Marchi <simon.marchi@efficios.com>
3667
3668 * inferior.h (struct inferior) <terminal>: Change type to
3669 gdb::unique_xmalloc_ptr<char>.
3670 * inferior.c (inferior::~inferior): Don't free inf->terminal.
3671 * infcmd.c (set_inferior_io_terminal): Don't free terminal
3672 field, adjust to unique pointer.
3673 (get_inferior_io_terminal): Adjust to unique pointer.
3674
6d74da72
AB
36752020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
3676
3677 * riscv-tdep.c (riscv_print_registers_info): Loop over all
3678 registers, not just the known core set of registers.
3679
2e52d038
AB
36802020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
3681
3682 * riscv-tdep.c (riscv_register_name): Return NULL for duplicate
3683 fflags, frm, and fcsr registers.
3684 (riscv_register_reggroup_p): Remove unknown CSRs from save and
3685 restore groups.
3686 (riscv_tdesc_unknown_reg): New function.
3687 (riscv_gdbarch_init): Pass riscv_tdesc_unknown_reg to
3688 tdesc_use_registers.
3689 * riscv-tdep.h (struct gdbarch_tdep): Add
3690 unknown_csrs_first_regnum, unknown_csrs_count,
3691 duplicate_fflags_regnum, duplicate_frm_regnum, and
3692 duplicate_fcsr_regnum fields.
3693
be64fd07
AB
36942020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
3695
3696 * target-descriptions.c (tdesc_use_registers): Add new parameter a
3697 callback, use the callback (when not null) to help number unknown
3698 registers.
3699 * target-descriptions.h (tdesc_unknown_register_ftype): New typedef.
3700 (tdesc_use_registers): Add extra parameter to declaration.
3701
3b9fce96
AB
37022020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
3703
3704 * riscv-tdep.c (value_of_riscv_user_reg): Moved to here from later
3705 in the file.
3706 (class riscv_pending_register_alias): Likewise.
3707 (riscv_register_feature::register_info): Change 'required_p' field
3708 to 'required', and change its type. Add 'check' member function.
3709 (riscv_register_feature::register_info::check): Define new member
3710 function.
3711 (riscv_xreg_feature): Change initialisation of 'required' field.
3712 (riscv_freg_feature): Likewise.
3713 (riscv_virtual_feature): Likewise.
3714 (riscv_csr_feature): Likewise.
3715 (riscv_check_tdesc_feature): Take extra parameter, the csr
3716 tdesc_feature, rewrite the function to use the new
3717 riscv_register_feature::register_info::check function.
3718 (riscv_gdbarch_init): Pass the csr tdesc_feature where needed.
3719
865bad26
AB
37202020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
3721
3722 * features/Makefile: Remove all references to the deleted files
3723 below.
3724 * features/riscv/32bit-csr.c: Deleted.
3725 * features/riscv/32bit-csr.xml: Deleted.
3726 * features/riscv/64bit-csr.c: Deleted.
3727 * features/riscv/64bit-csr.xml: Deleted.
3728 * features/riscv/rebuild-csr-xml.sh: Deleted.
3729
ed69cbc8
AB
37302020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
3731
3732 * riscv-tdep.c (struct riscv_register_feature::register_info): Fix
3733 whitespace error for declaration of names member variable.
3734 (struct riscv_register_feature): Add new prefer_first_name member
3735 variable, and fix whitespace error in declaration of registers.
3736 (riscv_xreg_feature): Initialize prefer_first_name field.
3737 (riscv_freg_feature): Likewise.
3738 (riscv_virtual_feature): Likewise.
3739 (riscv_csr_feature): Likewise.
3740 (riscv_register_name): Expand on comments. Remove register name
3741 modifications for CSR and virtual registers.
3742
4445e8f5
AB
37432020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
3744
3745 * riscv-tdep.c (struct riscv_register_feature): Fix whitespace
3746 errors.
3747
767a879e
AB
37482020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
3749
3750 * riscv-tdep.c (riscv_create_csr_aliases): Handle csr aliases from
3751 riscv-opc.h.
3752 (class riscv_pending_register_alias): New class.
3753 (riscv_check_tdesc_feature): Take vector of pending aliases and
3754 populate it as appropriate.
3755 (riscv_setup_register_aliases): Delete.
3756 (riscv_gdbarch_init): Create vector of pending aliases and pass it
3757 to riscv_check_tdesc_feature in all cases. Use the vector to
3758 create the register aliases.
3759
bb6e55f3
RO
37602020-06-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
3761
3762 * sol2-tdep.c (sol2_static_transform_name): Remove.
3763 (sol2_init_abi): Don't register it.
3764 * gdbarch.sh (static_transform_name): Remove.
3765 * gdbarch.c, gdbarch.h: Regenerate.
3766
3767 * dbxread.c (read_dbx_symtab) <'S'>: Remove call to
3768 gdbarch_static_transform_name.
3769 * mdebugread.c (parse_partial_symbols) <'S'>: Likewise.
3770 * stabsread.c (define_symbol) <'X'>: Remove.
3771 (define_symbol) <'S'>: Remove gdbarch_static_transform_name
3772 handling.
3773 <'V'>: Likewise.
3774 * xcoffread.c (scan_xcoff_symtab): Remove gdbarch.
3775 <'S'>: Remove call to gdbarch_static_transform_name.
3776
c6d36836
RO
37772020-06-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
3778
3779 * procfs.c (procfs_pre_trace): New function.
3780 (procfs_target::create_inferior): Pass it to fork_inferior.
3781
a7e6196b
RO
37822020-06-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
3783
3784 * configure.tgt <sparc-*-linux*> (gdb_target_obs): Remove
3785 sparc-sol2-tdep.o, sol2-tdep.o, sparc64-sol2-tdep.o.
3786 <sparc64-*-linux*> (gdb_target_obs): Remove sparc64-sol2-tdep.o,
3787 sol2-tdep.o, sparc-sol2-tdep.o.
3788 * sparc-sol2-tdep.c (sparc32_sol2_init_abi): Make static.
3789 * sparc-tdep.h (sparc32_sol2_init_abi): Remove.
3790 * sparc64-sol2-tdep.c (sparc64_sol2_init_abi): Make static.
3791 * sparc64-tdep.h (sparc64_sol2_init_abi): Remove.
3792
d412e696
RO
37932020-06-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
3794
3795 * amd64-sol2-tdep.c (amd64_sol2_sigtramp_p): Remove.
3796 (amd64_sol2_init_abi): Use sol2_sigtramp_p.
3797 Call sol2_init_abi.
3798 Remove calls to set_gdbarch_skip_solib_resolver,
3799 set_gdbarch_core_pid_to_str.
3800 * i386-sol2-tdep.c (i386_sol2_sigtramp_p): Remove.
3801 (i386_sol2_static_transform_name): Remove.
3802 (i386_sol2_init_abi): Call sol2_init_abi.
3803 Remove calls to set_gdbarch_sofun_address_maybe_missing,
3804 set_gdbarch_static_transform_name,
3805 set_gdbarch_skip_solib_resolver, set_gdbarch_core_pid_to_str.
3806 Use sol2_sigtramp_p.
3807 * sol2-tdep.c (sol2_pc_in_sigtramp): New function.
3808 (sol2_sigtramp_p): New function.
3809 (sol2_static_transform_name): New function.
3810 (sol2_skip_solib_resolver, sol2_core_pid_to_str): Make static.
3811 (sol2_init_abi): New function.
3812 * sol2-tdep.h (sol2_sigtramp_p, sol2_init_abi): Declare.
3813 (sol2_skip_solib_resolver, sol2_core_pid_to_str): Remove.
3814 * sparc-sol2-tdep.c (sparc_sol2_pc_in_sigtramp): Remove.
3815 (sparc32_sol2_sigtramp_frame_sniffer): Just call sol2_sigtramp_p.
3816 (sparc_sol2_static_transform_name): Remove.
3817 (sparc32_sol2_init_abi): Call sol2_init_abi.
3818 Remove calls to set_gdbarch_sofun_address_maybe_missing,
3819 set_gdbarch_static_transform_name,
3820 set_gdbarch_skip_solib_resolver,
3821 set_gdbarch_core_pid_to_str.
3822 * sparc-tdep.h (sparc_sol2_pc_in_sigtramp)
3823 (sparc_sol2_static_transform_name): Remove
3824 * sparc64-sol2-tdep.c (sparc64_sol2_sigtramp_frame_sniffer): Just
3825 call sol2_sigtramp_p.
3826 (sparc64_sol2_init_abi): Call sol2_init_abi.
3827 Remove calls to set_gdbarch_sofun_address_maybe_missing,
3828 set_gdbarch_static_transform_name,
3829 set_gdbarch_skip_solib_resolver, set_gdbarch_core_pid_to_str.
3830
a8654e7d
PW
38312020-06-24 Philippe Waroquiers <philippe.waroquiers@skynet.be>
3832
3833 * symfile-add-flags.h: New flag SYMFILE_ALWAYS_CONFIRM.
3834 * exec.c (validate_exec_file): If from_tty, set both
3835 SYMFILE_VERBOSE (== from_tty) and SYMFILE_ALWAYS_CONFIRM.
3836 * symfile.c (symbol_file_add_with_addrs): if always_confirm
3837 and from_tty, unconditionally ask a confirmation.
3838
caa7fd04
AB
38392020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
3840
3841 * target-descriptions.c (tdesc_architecture_name): Protect against
3842 NULL pointer dereference.
3843 (maint_print_xml_tdesc_cmd): New function.
3844 (_initialize_target_descriptions): Register new 'maint print
3845 xml-tdesc' command and give it the filename completer.
3846 * NEWS: Mention new 'maint print xml-tdesc' command.
3847
fbf42f4e
AB
38482020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
3849
3850 * target-descriptions.c (class tdesc_compatible_info): New class.
3851 (struct target_desc): Change type of compatible vector.
3852 (tdesc_compatible_p): Update for change in type of
3853 target_desc::compatible.
3854 (tdesc_compatible_info_list): New function.
3855 (tdesc_compatible_info_arch_name): New function.
3856 (tdesc_add_compatible): Update for change in type of
3857 target_desc::compatible.
3858 (print_c_tdesc::visit_pre): Likewise.
3859
20821f4e
AB
38602020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
3861
3862 * target-descriptions.c (print_c_tdesc::print_c_tdesc): Change
3863 whitespace to underscore.
3864 (maint_print_c_tdesc_cmd): Use fake filename for target
3865 descriptions that came from the target.
3866 (_initialize_target_descriptions): Add filename command completion
3867 for 'maint print c-tdesc'.
3868
1fb5ee62
SM
38692020-06-23 Simon Marchi <simon.marchi@efficios.com>
3870
3871 * dwarf2/loc.c (decode_debug_loclists_addresses): Add empty
3872 lines.
3873
fc3ecb3e
SM
38742020-06-23 Simon Marchi <simon.marchi@efficios.com>
3875
3876 * dwarf2/loc.c (decode_debug_loc_dwo_addresses): Add empty
3877 lines.
3878 (dwarf2_find_location_expression): Likewise.
3879 (call_site_parameter_matches): Likewise.
3880 (dwarf2_compile_expr_to_ax): Likewise.
3881 (disassemble_dwarf_expression): Likewise.
3882 (loclist_describe_location): Likewise.
3883
236ef034
PA
38842020-06-23 Pedro Alves <palves@redhat.com>
3885
3886 * gdbarch-selftests.c: Don't include inferior.h, gdbthread.h or
3887 progspace-and-thread.h. Include scoped-mock-context.h instead.
3888 (register_to_value_test): Use scoped_mock_context.
3889 * regcache.c: Include "scoped-mock-context.h".
3890 (cooked_read_test): Don't error out if a target is already pushed.
3891 Use scoped_mock_context. Adjust.
3892 * scoped-mock-context.h: New file.
3893
39e7ecca
AB
38942020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
3895
3896 * ada-lang.c (ada_language_data): Delete la_is_string_type_p
3897 initializer.
3898 (ada_language::is_string_type_p): New member function.
3899 * c-lang.c (c_language_data): Delete la_is_string_type_p
3900 initializer.
3901 (cplus_language_data): Likewise.
3902 (asm_language_data): Likewise.
3903 (minimal_language_data): Likewise.
3904 * d-lang.c (d_language_data): Likewise.
3905 * f-lang.c (f_is_string_type_p): Delete function, implementation
3906 moved to f_language::is_string_type_p.
3907 (f_language_data): Delete la_is_string_type_p initializer.
3908 (f_language::is_string_type_p): New member function,
3909 implementation from f_is_string_type_p.
3910 * go-lang.c (go_is_string_type_p): Delete function, implementation
3911 moved to go_language::is_string_type_p.
3912 (go_language_data): Delete la_is_string_type_p initializer.
3913 (go_language::is_string_type_p): New member function,
3914 implementation from go_is_string_type_p.
3915 * language.c (language_defn::is_string_type_p): Define new member
3916 function.
3917 (default_is_string_type_p): Make static, add comment copied from
3918 header file.
3919 (unknown_language_data): Delete la_is_string_type_p initializer.
3920 (unknown_language::is_string_type_p): New member function.
3921 (auto_language_data): Delete la_is_string_type_p initializer.
3922 (auto_language::is_string_type_p): New member function.
3923 * language.h (language_data): Delete la_is_string_type_p field.
3924 (language_defn::is_string_type_p): Declare new function.
3925 (default_is_string_type_p): Delete desclaration, move comment to
3926 definition.
3927 * m2-lang.c (m2_is_string_type_p): Delete function, implementation
3928 moved to m2_language::is_string_type_p.
3929 (m2_language_data): Delete la_is_string_type_p initializer.
3930 (m2_language::is_string_type_p): New member function,
3931 implementation from m2_is_string_type_p.
3932 * objc-lang.c (objc_language_data): Delete la_is_string_type_p
3933 initializer.
3934 * opencl-lang.c (opencl_language_data): Likewise.
3935 * p-lang.c (pascal_is_string_type_p): Delete function,
3936 implementation moved to pascal_language::is_string_type_p.
3937 (pascal_language_data): Delete la_is_string_type_p initializer.
3938 (pascal_language::is_string_type_p): New member function,
3939 implementation from pascal_is_string_type_p.
3940 * rust-lang.c (rust_is_string_type_p): Delete function,
3941 implementation moved to rust_language::is_string_type_p.
3942 (rust_language_data): Delete la_is_string_type_p initializer.
3943 (rust_language::is_string_type_p): New member function,
3944 implementation from rust_is_string_type_p.
3945 * valprint.c (val_print_scalar_or_string_type_p): Update call to
3946 is_string_type_p.
3947
4ffc13fb
AB
39482020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
3949
3950 * ada-lang.c (ada_language_data): Delete la_print_typedef
3951 initializer.
3952 (ada_language::print_typedef): New member function.
3953 * c-lang.c (c_language_data): Delete la_print_typedef initializer.
3954 (cplus_language_data): Likewise.
3955 (asm_language_data): Likewise.
3956 (minimal_language_data): Likewise.
3957 * d-lang.c (d_language_data): Likewise.
3958 * f-lang.c (f_language_data): Likewise.
3959 (f_language::print_typedef): New member function.
3960 * go-lang.c (go_language_data): Delete la_print_typedef
3961 initializer.
3962 * language.c (language_defn::print_typedef): Define member
3963 function.
3964 (unknown_language_data): Delete la_print_typedef initializer.
3965 (unknown_language::print_typedef): New member function.
3966 (auto_language_data): Delete la_print_typedef initializer.
3967 (auto_language::print_typedef): New member function.
3968 * language.h (language_data): Delete la_print_typedef field.
3969 (language_defn::print_typedef): Declare new member function.
3970 (LA_PRINT_TYPEDEF): Update call to print_typedef.
3971 (default_print_typedef): Delete declaration.
3972 * m2-lang.c (m2_language_data): Delete la_print_typedef
3973 initializer.
3974 (m2_language::print_typedef): New member function.
3975 * objc-lang.c (objc_language_data): Delete la_print_typedef
3976 initializer.
3977 * opencl-lang.c (opencl_language_data): Likewise.
3978 * p-lang.c (pascal_language_data): Likewise.
3979 (pascal_language::print_typedef): New member function.
3980 * rust-lang.c (rust_print_typedef): Delete function,
3981 implementation moved to rust_language::print_typedef.
3982 (rust_language): Delete la_print_typedef initializer.
3983 (rust_language::print_typedef): New member function,
3984 implementation from rust_print_typedef.
3985 * typeprint.c (default_print_typedef): Delete.
3986
d711ee67
AB
39872020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
3988
3989 * ada-lang.c (ada_language_data): Delete la_printstr initializer.
3990 (ada_language::printstr): New member function.
3991 * c-lang.c (c_language_data): Delete la_printstr initializer.
3992 (cplus_language_data): Likewise.
3993 (asm_language_data): Likewise.
3994 (minimal_language_data): Likewise.
3995 * d-lang.c (d_language_data): Likewise.
3996 * f-lang.c (f_printstr): Rename to f_language::printstr.
3997 (f_language_data): Delete la_printstr initializer.
3998 (f_language::printstr): New member function, implementation from
3999 f_printstr.
4000 * go-lang.c (go_language_data): Delete la_printstr initializer.
4001 * language.c (language_defn::printstr): Define new member
4002 function.
4003 (unk_lang_printstr): Delete.
4004 (unknown_language_data): Delete la_printstr initializer.
4005 (unknown_language::printstr): New member function.
4006 (auto_language_data): Delete la_printstr initializer.
4007 (auto_language::printstr): New member function.
4008 * language.h (language_data): Delete la_printstr field.
4009 (language_defn::printstr): Declare new member function.
4010 (LA_PRINT_STRING): Update call to printstr.
4011 * m2-lang.c (m2_printstr): Rename to m2_language::printstr.
4012 (m2_language_data): Delete la_printstr initializer.
4013 (m2_language::printstr): New member function, implementation from
4014 m2_printstr.
4015 * objc-lang.c (objc_language_data): Delete la_printstr
4016 initializer.
4017 * opencl-lang.c (opencl_language_data): Likewise.
4018 * p-lang.c (pascal_printstr): Rename to pascal_language::printstr.
4019 (pascal_language_data): Delete la_printstr initializer.
4020 (pascal_language::printstr): New member function, implementation
4021 from pascal_printstr.
4022 * p-lang.h (pascal_printstr): Delete declaration.
4023 * rust-lang.c (rust_printstr): Update header comment.
4024 (rust_language_data): Delete la_printstr initializer.
4025 (rust_language::printstr): New member function.
4026
52b50f2c
AB
40272020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
4028
4029 * ada-lang.c (ada_language_data): Delete la_printchar initializer.
4030 (ada_language::printchar): New member function.
4031 * c-lang.c (c_language_data): Delete la_printchar initializer.
4032 (cplus_language_data): Likewise.
4033 (asm_language_data): Likewise.
4034 (minimal_language_data): Likewise.
4035 * d-lang.c (d_language_data): Likewise.
4036 * f-lang.c (f_printchar): Rename to f_language::printchar.
4037 (f_language_data): Delete la_printchar initializer.
4038 (f_language::printchar): New member function, implementation from
4039 f_printchar.
4040 * go-lang.c (go_language_data): Delete la_printchar initializer.
4041 * language.c (unk_lang_printchar): Delete.
4042 (language_defn::printchar): Define new member function.
4043 (unknown_language_data): Delete la_printchar initializer.
4044 (unknown_language::printchar): New member function.
4045 (auto_language_data): Delete la_printchar initializer.
4046 (auto_language::printchar): New member function.
4047 * language.h (language_data): Delete la_printchar field.
4048 (language_defn::printchar): Declare new member function.
4049 (LA_PRINT_CHAR): Update call to printchar.
4050 * m2-lang.c (m2_language_data): Delete la_printchar initializer.
4051 (m2_language::printchar): New member function.
4052 * objc-lang.c (objc_language_data): Delete la_printchar
4053 initializer.
4054 * opencl-lang.c (opencl_language_data): Likewise.
4055 * p-lang.c (pascal_language_data): Delete la_printchar
4056 initializer.
4057 (pascal_language::printchar): New member function.
4058 * rust-lang.c (rust_printchar): Rename to
4059 rust_language::printchar.
4060 (rust_language_data): Delete la_printchar initializer.
4061 (rust_language::printchar): New member function, implementation
4062 from rust_printchar.
4063
ec8cec5b
AB
40642020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
4065
4066 * ada-lang.c (emit_char): Renamed to ada_language::emitchar.
4067 (ada_language_data): Delete la_emitchar initializer.
4068 (ada_language::emitchar): New member function, implementation from
4069 emit_char.
4070 * c-lang.c (c_language_data): Delete la_emitchar initializer.
4071 (cplus_language_data): Likewise.
4072 (asm_language_data): Likewise.
4073 (minimal_language_data): Likewise.
4074 * d-lang.c (d_language_data): Likewise.
4075 * f-lang.c (f_emit_char): Rename to f_language::emitchar.
4076 (f_language_data): Delete la_emitchar initializer.
4077 (f_language::emitchar): New member function, implementation from
4078 f_emit_char.
4079 * go-lang.c (go_language_data): Delete la_emitchar initializer.
4080 * language.c (unk_lang_emit_char): Delete.
4081 (language_defn::emitchar): New member function definition.
4082 (unknown_language_data): Delete la_emitchar initializer.
4083 (unknown_language::emitchar): New member function.
4084 (auto_language_data): Delete la_emitchar initializer.
4085 (auto_language::emitchar): New member function.
4086 * language.h (language_data): Delete la_emitchar field.
4087 (language_defn::emitchar): New member field declaration.
4088 (LA_EMIT_CHAR): Update call to emitchar.
4089 * m2-lang.c (m2_emit_char): Rename to m2_language::emitchar.
4090 (m2_language_data): Delete la_emitchar initializer.
4091 (m2_language::emitchar): New member function, implementation from
4092 m2_emit_char.
4093 * objc-lang.c (objc_language_data): Delete la_emitchar
4094 initializer.
4095 * opencl-lang.c (opencl_language_data): Likewise.
4096 * p-lang.c (pascal_emit_char): Rename to pascal_language::emitchar.
4097 (pascal_language_data): Delete la_emitchar initializer.
4098 (pascal_language::emitchar): New member function, implementation
4099 from pascal_emit_char.
4100 * rust-lang.c (rust_emitchar): Rename to rust_language::emitchar.
4101 (rust_language_data): Delete la_emitchar initializer.
4102 (rust_language::emitchar): New member function, implementation
4103 from rust_emitchar.
4104
1bf9c363
AB
41052020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
4106
4107 * ada-lang.c (resolve): Rename to ada_language::post_parser.
4108 (ada_language_data): Delete la_post_parser initializer.
4109 (ada_language::post_parser): New member function.
4110 * c-lang.c (c_language_data): Delete la_post_parser initializer.
4111 (cplus_language_data): Likewise.
4112 (asm_language_data): Likewise.
4113 (minimal_language_data): Likewise.
4114 * d-lang.c (d_language_data): Likewise.
4115 * f-lang.c (f_language_data): Likewise.
4116 * go-lang.c (go_language_data): Likewise.
4117 * language.c (unknown_language_data): Likewise.
4118 (auto_language_data): Likewise.
4119 * language.h (language_data): Delete la_post_parser field.
4120 (language_defn::post_parser): New member function.
4121 * m2-lang.c (m2_language_data): Delete la_post_parser initializer.
4122 * objc-lang.c (objc_language_data): Likewise.
4123 * opencl-lang.c (opencl_language_data): Likewise.
4124 * p-lang.c (pascal_language_data): Likewise.
4125 * parse.c (parse_exp_in_context): Update call to post_parser.
4126 (null_post_parser): Delete definition.
4127 * parser-defs.h (null_post_parser): Delete declaration.
4128 * rust-lang.c (rust_language_data): Delete la_post_parser
4129 initializer.
4130
87afa652
AB
41312020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
4132
4133 * ada-lang.c (parse): Rename to ada_language::parser.
4134 (ada_language_data): Delete la_parser initializer.
4135 (ada_language::parser): New member function, implementation from
4136 parse.
4137 * c-lang.c (c_language_data): Delete la_parser initializer.
4138 (cplus_language_data): Likewise.
4139 (asm_language_data): Likewise.
4140 (minimal_language_data): Likewise.
4141 * d-lang.c (d_language_data): Likewise.
4142 (d_language::parser): New member function.
4143 * f-lang.c (f_language_data): Delete la_parser initializer.
4144 (f_language::parser): New member function.
4145 * go-lang.c (go_language_data): Delete la_parser initializer.
4146 (go_language::parser): New member function.
4147 * language.c (unk_lang_parser): Delete.
4148 (language_defn::parser): Define new member function.
4149 (unknown_language_data): Delete la_parser initializer.
4150 (unknown_language::parser): New member function.
4151 (auto_language_data): Delete la_parser initializer.
4152 (auto_language::parser): New member function.
4153 * language.h (language_data): Delete la_parser field.
4154 (language_defn::parser): Declare new member function.
4155 * m2-lang.c (m2_language_data): Delete la_parser initializer.
4156 (m2_language::parser): New member function.
4157 * objc-lang.c (objc_language_data): Delete la_parser initializer.
4158 * opencl-lang.c (opencl_language_data): Likewise.
4159 * p-lang.c (pascal_language_data): Likewise.
4160 (pascal_language::parser): New member function.
4161 * parse.c (parse_exp_in_context): Update call to parser.
4162 * rust-lang.c (rust_language_data): Delete la_parser initializer.
4163 (rust_language::parser): New member function.
4164
37825800
AB
41652020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
4166
4167 * top.c (print_gdb_configuration): Print --with-python-libdir
4168 configuration value.
4169
5b860c93
PW
41702020-06-22 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4171
4172 * NEWS: Mention change to the alias command.
4173
cf00cd6f
PW
41742020-06-22 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4175
4176 * cli/cli-cmds.c (lookup_cmd_for_default_args)
4177 (alias_command_completer)
4178 (make_alias_options_def_group): New functions.
4179 (alias_opts, alias_option_defs): New struct and array.
4180 (alias_usage_error): Update usage.
4181 (alias_command): Handles optional DEFAULT-ARGS... arguments.
4182 Use option framework.
4183 (_initialize_cli_cmds): Update alias command help.
4184 Update aliases command help.
4185 (show_user):
4186 Add NULL for new default_args lookup_cmd argument.
4187 (valid_command_p): Rename to validate_aliased_command.
4188 Add NULL for new default_args lookup_cmd argument. Verify that the
4189 aliased_command has no default args.
4190 * cli/cli-decode.c (help_cmd): Show aliases definitions.
4191 (lookup_cmd_1, lookup_cmd): New argument default_args.
4192 (add_alias_cmd):
4193 Add NULL for new default_args lookup_cmd argument.
4194 (print_help_for_command): Show default args under the layout
4195 alias some_alias = some_aliased_cmd some_alias_default_arg.
4196 * cli/cli-decode.h (struct cmd_list_element): New member default_args.
4197 xfree default_args in destructor.
4198 * cli/cli-script.c (process_next_line, do_define_command):
4199 Add NULL for new default_args lookup_cmd argument.
4200 * command.h: Declare new default_args argument in lookup_cmd
4201 and lookup_cmd_1.
4202 * completer.c (complete_line_internal_1):
4203 Add NULL for new default_args lookup_cmd or lookup_cmd_1 argument.
4204 * guile/scm-cmd.c (gdbscm_parse_command_name): Likewise.
4205 * guile/scm-param.c (add_setshow_generic, pascm_parameter_defined_p):
4206 Likewise.
4207 * infcmd.c (_initialize_infcmd): Likewise.
4208 * python/py-auto-load.c (gdbpy_initialize_auto_load): Likewise.
4209 * python/py-cmd.c (gdbpy_parse_command_name): Likewise.
4210 * python/py-param.c (add_setshow_generic): Likewise.
4211 * remote.c (_initialize_remote): Likewise.
4212 * top.c (execute_command): Prepend default_args if command has some.
4213 (set_verbose):
4214 Add NULL for new default_args lookup_cmd or lookup_cmd_1 argument.
4215 * tracepoint.c (validate_actionline, encode_actions_1):
4216 Add NULL for new default_args lookup_cmd or lookup_cmd_1 argument.
4217
bd920864
TBA
42182020-06-22 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4219
4220 * jit.c (jit_read_descriptor): Use bool as the return type.
4221 (jit_breakpoint_re_set_internal): Use bool as the return type.
4222 Invert the return value logic; return true if the jit breakpoint
4223 has been successfully initialized.
4224 (jit_inferior_init): Update the call to
4225 jit_breakpoint_re_set_internal.
4226
f8098322
PA
42272020-06-22 Pedro Alves <palves@redhat.com>
4228
4229 PR gdb/25939
4230 * procfs.c (procfs_target::wait): Don't reference inferior_ptid.
4231 Use the current inferior instead. Don't return
4232 TARGET_WAITKIND_SPURIOUS/inferior_ptid -- instead continue and
4233 wait again.
4234 * sol-thread.c (sol_thread_target::wait): Don't reference
4235 inferior_ptid.
4236 (ps_lgetregs, ps_lsetregs, ps_lgetfpregs, ps_lsetfpregs)
4237 (sol_update_thread_list_callback): Use the current inferior's pid
4238 instead of inferior_ptid.
4239
196535a6
RO
42402020-06-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
4241
4242 * procfs.c: Cleanup many comments.
4243
4244 (READ_WATCHFLAG, WRITE_WATCHFLAG, EXEC_WATCHFLAG)
4245 (AFTER_WATCHFLAG): Replace by value.
4246
4247 (MAIN_PROC_NAME_FORMAT): Inline ...
4248 (create_procinfo): ... here.
4249
4250 (procfs_debug_inferior): Remove SYS_exec handling.
4251 (syscall_is_exec): Likewise.
4252 (procfs_set_exec_trap): Likewise.
4253
4254 (syscall_is_lwp_exit): Inline in callers.
4255 (syscall_is_exit): Likewise.
4256 (syscall_is_exec): Likewise.
4257 (syscall_is_lwp_create): Likewise.
4258
4259 (invalidate_cache): Remove #if 0 code.
4260
4261 (make_signal_thread_runnable): Remove.
4262 (procfs_target::resume): Remove #if 0 code.
4263
cf6f3e86
RO
42642020-06-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
4265
4266 PR gdb/25939
4267 * procfs.c (procfs_target::procfs_init_inferior): Move push_target
4268 call ...
4269 (procfs_target::create_inferior): ... here.
4270
48e9cc84
PW
42712020-06-21 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4272
4273 * exec.c (validate_exec_file): Ensure the build-id is up to
4274 date by calling reopen_exec_file (that checks file timestamp
4275 to decide to re-read the file).
4276
3922b302
PA
42772020-06-18 Pedro Alves <palves@redhat.com>
4278
4279 PR gdb/25412
4280 * gdbthread.h (delete_thread, delete_thread_silent)
4281 (find_thread_ptid): Update comments.
4282 * thread.c (current_thread_): New global.
4283 (is_current_thread): Move higher, and reimplement.
4284 (inferior_thread): Reimplement.
4285 (set_thread_exited): Use bool. Add assertions.
4286 (add_thread_silent): Simplify thread-reuse handling by always
4287 calling delete_thread.
4288 (delete_thread): Remove intro comment.
4289 (find_thread_ptid): Skip exited threads.
4290 (switch_to_thread_no_regs): Write to current_thread_.
4291 (switch_to_no_thread): Check CURRENT_THREAD_ instead of
4292 INFERIOR_PTID. Clear current_thread_.
4293
6dbdab44
PA
42942020-06-18 Pedro Alves <palves@redhat.com>
4295
4296 * aix-thread.c (pd_update): Use switch_to_thread.
4297
2da4b788
PA
42982020-06-18 Pedro Alves <palves@redhat.com>
4299
4300 * ravenscar-thread.c (ravenscar_thread_target): Update.
4301 (ravenscar_thread_target::update_inferior_ptid): Rename to ...
4302 (ravenscar_thread_target::add_active_thread): ... this. Don't
4303 set m_base_ptid here. Update to avoid referencing inferior_ptid.
4304 (ravenscar_thread_target::wait): Don't write to inferior_ptid.
4305
50838d1b
PA
43062020-06-18 Pedro Alves <palves@redhat.com>
4307
4308 * nat/windows-nat.c (current_windows_thread): Remove.
4309 * nat/windows-nat.h (current_windows_thread): Remove.
4310 * windows-nat.c (windows_nat_target::stopped_by_sw_breakpoint):
4311 Adjust.
4312 (display_selectors): Adjust to fetch the current
4313 windows_thread_info based on inferior_ptid.
4314 (fake_create_process): No longer write to current_windows_thread.
4315 (windows_nat_target::get_windows_debug_event):
4316 Don't set inferior_ptid or current_windows_thread.
4317 (windows_nat_target::wait): Adjust to not rely on
4318 current_windows_thread.
4319 (do_initial_windows_stuff): Now a method of windows_nat_target.
4320 Switch to the last_ptid thread.
4321 (windows_nat_target::attach): Adjust.
4322 (windows_nat_target::detach): Use switch_to_no_thread instead of
4323 writing to inferior_ptid directly.
4324 (windows_nat_target::create_inferior): Adjust.
4325
31ce04e9
PA
43262020-06-18 Pedro Alves <palves@redhat.com>
4327
4328 * windows-nat.c (do_initial_windows_stuff): No longer set inferior_ptid.
4329
1ee1a363
PA
43302020-06-18 Pedro Alves <palves@redhat.com>
4331
4332 * go32-nat.c (go32_nat_target::create_inferior): Switch to thread
4333 after creating it, instead of writing to inferior_ptid. Don't
4334 write to inferior_ptid.
4335
6d350754
PA
43362020-06-18 Pedro Alves <palves@redhat.com>
4337
4338 * fork-child.c (postfork_hook): Don't write to inferior_ptid.
4339
5d971d48
PA
43402020-06-18 Pedro Alves <palves@redhat.com>
4341
4342 * bsd-kvm.c (bsd_kvm_target_open): Switch to thread after adding
4343 it, instead of writing to inferior_ptid.
4344
86e57d1b
PA
43452020-06-18 Pedro Alves <palves@redhat.com>
4346
4347 * btrace.c (btrace_fetch): Use switch_to_thread instead of writing
4348 to inferior_ptid.
4349
f2e1c129
PA
43502020-06-18 Pedro Alves <palves@redhat.com>
4351
4352 * bsd-kvm.c (bsd_kvm_target::close): Use switch_to_no_thread
4353 instead of writing to inferior_ptid directly.
4354
60db1b85
PA
43552020-06-18 Pedro Alves <palves@redhat.com>
4356
4357 * corelow.c (core_target::close): Use switch_to_no_thread instead
4358 of writing to inferior_ptid directly.
4359 (add_to_thread_list, core_target_open): Use switch_to_thread
4360 instead of writing to inferior_ptid directly.
4361
fe7d6a8d
PA
43622020-06-18 Pedro Alves <palves@redhat.com>
4363
4364 * darwin-nat.c (darwin_nat_target::decode_message): Don't write to
4365 inferior_ptid.
4366 (darwin_nat_target::stop_inferior, darwin_nat_target::kill): Avoid
4367 inferior_ptid.
4368 (darwin_attach_pid): Use switch_to_no_thread instead of writing to
4369 inferior_ptid directly.
4370 (darwin_nat_target::init_thread_list): Switch to thread, instead
4371 of writing to inferior_ptid.
4372 (darwin_nat_target::attach): Don't write to inferior_ptid.
4373 (darwin_nat_target::get_ada_task_ptid): Avoid inferior_ptid.
4374
975f8708
PA
43752020-06-18 Pedro Alves <palves@redhat.com>
4376
4377 * gnu-nat.c (gnu_nat_target::create_inferior): Switch to the added
4378 thread.
4379 (gnu_nat_target::attach): Don't write to inferior_ptid directly.
4380 Instead use switch_to_thread.
4381 (gnu_nat_target::detach): Use switch_to_no_thread
4382 instead of writing to inferior_ptid directly. Used passed-in
4383 inferior instead of looking up the inferior by pid.
4384
1a204730
PA
43852020-06-18 Pedro Alves <palves@redhat.com>
4386
4387 * go32-nat.c (go32_nat_target::create_inferior): Don't write to
4388 inferior_ptid.
4389
ebe84f23
PA
43902020-06-18 Pedro Alves <palves@redhat.com>
4391
4392 * nto-procfs.c (nto_procfs_target::update_thread_list): Avoid
4393 inferior_ptid.
4394 (nto_procfs_target::attach): Avoid inferior_ptid. Switch to
4395 thread.
4396 (nto_procfs_target::detach): Avoid referencing
4397 inferior_ptid. Use switch_to_no_thread instead of writing to
4398 inferior_ptid directly.
4399 (nto_procfs_target::mourn_inferior): Use switch_to_no_thread
4400 instead of writing to inferior_ptid directly.
4401 (nto_procfs_target::create_inferior): Avoid inferior_ptid. Switch
4402 to thread.
4403
191f02e5
PA
44042020-06-18 Pedro Alves <palves@redhat.com>
4405
4406 * remote-sim.c (gdbsim_target::create_inferior): Switch to thread
4407 after creating it, instead of writing to inferior_ptid.
4408 (gdbsim_target_open): Use switch_to_no_thread instead of writing
4409 to inferior_ptid directly.
4410 (gdbsim_target::wait): Don't write to inferior_ptid.
4411
0ac55310
PA
44122020-06-18 Pedro Alves <palves@redhat.com>
4413
4414 * remote.c (remote_target::remote_notice_new_inferior): Use
4415 switch_to_thread instead of writing to inferior_ptid directly.
4416 (remote_target::add_current_inferior_and_thread): Use
4417 switch_to_no_thread instead of writing to inferior_ptid directly.
4418 (extended_remote_target::attach): Use switch_to_inferior_no_thread
4419 and switch_to_thread instead of using set_current_inferior or
4420 writing to inferior_ptid directly.
4421
5233f39b
PA
44222020-06-18 Pedro Alves <palves@redhat.com>
4423
4424 * tracectf.c (ctf_target_open): Switch to added thread instead of
4425 writing to inferior_ptid directly.
4426 (ctf_target::close): Use switch_to_no_thread instead of writing to
4427 inferior_ptid directly.
4428
087e161b
PA
44292020-06-18 Pedro Alves <palves@redhat.com>
4430
4431 * tracefile-tfile.c (tfile_target_open): Don't write to
4432 inferior_ptid directly, instead switch to added thread.
4433 (tfile_target::close): Use switch_to_no_thread instead of writing
4434 to inferior_ptid directly.
4435
7fb43e53
PA
44362020-06-18 Pedro Alves <palves@redhat.com>
4437
4438 * procfs.c (procfs_target::attach): Don't write to inferior_ptid.
4439 (procfs_target::detach): Use switch_to_no_thread
4440 instead of writing to inferior_ptid directly.
4441 (do_attach): Change return type to void. Switch to the added
4442 thread.
4443 (procfs_target::create_inferior): Switch to the added thread.
4444 (procfs_do_thread_registers): Don't write to inferior_ptid.
4445
18493a00
PA
44462020-06-18 Pedro Alves <palves@redhat.com>
4447
4448 * infrun.c (generic_mourn_inferior): Use switch_to_thread instead
4449 of writing to inferior_ptid.
4450 (scoped_restore_exited_inferior): Delete.
4451 (handle_vfork_child_exec_or_exit): Simplify using
4452 scoped_restore_current_pspace_and_thread. Use switch_to_thread
4453 instead of writing to inferior_ptid.
4454 (THREAD_STOPPED_BY): Delete.
4455 (thread_stopped_by_watchpoint, thread_stopped_by_sw_breakpoint)
4456 (thread_stopped_by_hw_breakpoint): Delete.
4457 (save_waitstatus): Use
4458 scoped_restore_current_thread+switch_to_thread, and call
4459 target_stopped_by_watchpoint instead of
4460 thread_stopped_by_watchpoint, target_stopped_by_sw_breakpoint
4461 instead of thread_stopped_by_sw_breakpoint, and
4462 target_stopped_by_hw_breakpoint instead of
4463 thread_stopped_by_hw_breakpoint.
4464 (handle_inferior_event)
4465 <TARGET_WAITKIND_EXITED/TARGET_WAITKIND_SIGNALLED>: Don't write to
4466 inferior_ptid directly, nor
4467 set_current_inferior/set_current_program_space. Use
4468 switch_to_thread / switch_to_inferior_no_thread instead.
4469
a0776b13
PA
44702020-06-18 Pedro Alves <palves@redhat.com>
4471
4472 * target.c (generic_mourn_inferior): Use switch_to_no_thread
4473 instead of writing to inferior_ptid.
4474
6155c136
PA
44752020-06-18 Pedro Alves <palves@redhat.com>
4476
4477 * inf-ptrace.c (inf_ptrace_target::create_inferior): Switch to the
4478 added thread.
4479 (inf_ptrace_target::attach): Don't write to inferior_ptid. Switch
4480 to the added thread.
4481 (inf_ptrace_target::detach_success): Use switch_to_no_thread
4482 instead of writing to inferior_ptid.
4483
c5316fc6
PA
44842020-06-18 Pedro Alves <palves@redhat.com>
4485
4486 * gdbarch-selftests.c: Include "progspace-and-thread.h".
4487 (register_to_value_test): Mock a program_space too. Heap-allocate
4488 the address space. Don't write to inferior_ptid. Use
4489 switch_to_thread instead.
4490
8df01799
PA
44912020-06-18 Pedro Alves <palves@redhat.com>
4492
4493 * linux-tdep.c (find_signalled_thread(thread_info *,void *)):
4494 Delete.
4495 (find_signalled_thread()): New, factored out from
4496 linux_make_corefile_notes and adjusted to handle exited threads.
4497 (linux_make_corefile_notes): Adjust to use the new
4498 find_signalled_thread.
4499
41792d68
PA
45002020-06-18 Pedro Alves <palves@redhat.com>
4501
4502 * linux-tdep.c (btrace_fetch): Save/restore current thread instead
4503 of saving/restoring inferior_ptid.
4504
612f258a
TT
45052020-06-17 Tom Tromey <tom@tromey.com>
4506
4507 * tui/tui-win.h (tui_scroll_forward, tui_scroll_backward)
4508 (tui_scroll_left, tui_scroll_right, struct tui_win_info): Don't
4509 declare.
4510 * tui/tui-data.h (MIN_CMD_WIN_HEIGHT): Remove.
4511
efb763a5
SM
45122020-06-15 Simon Marchi <simon.marchi@efficios.com>
4513
4514 * dwarf2/read.c (dwarf2_initialize_objfile): Check for presence
4515 of partial symtabs.
4516
2951f6c0
SM
45172020-06-17 Simon Marchi <simon.marchi@efficios.com>
4518
4519 * regformats/reg-arm.dat: Remove.
4520 * regformats/reg-bfin.dat: Remove.
4521 * regformats/reg-cris.dat: Remove.
4522 * regformats/reg-crisv32.dat: Remove.
4523 * regformats/reg-m32r.dat: Remove.
4524 * regformats/reg-tilegx.dat: Remove.
4525 * regformats/reg-tilegx32.dat: Remove.
4526
7d458ea5
SM
45272020-06-17 Simon Marchi <simon.marchi@efficios.com>
4528
4529 * features/Makefile (WHICH): Remove arm files.
4530 * regformats/arm/arm-with-iwmmxt.dat: Remove.
4531 * regformats/arm/arm-with-neon.dat: Remove.
4532 * regformats/arm/arm-with-vfpv2.dat: Remove.
4533 * regformats/arm/arm-with-vfpv3.dat: Remove.
4534
3af96c0d
SM
45352020-06-17 Simon Marchi <simon.marchi@efficios.com>
4536
4537 * features/Makefile (XMLTOC): Remove rx.xml.
4538
b25e22fd
PA
45392020-06-17 Pedro Alves <palves@redhat.com>
4540
4541 * gdbthread.h (thread_control_state) <trap_expected> Update
4542 comments.
4543
a78a19b1
AB
45442020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
4545
4546 * ada-lang.c (ada_lookup_symbol_nonlocal): Rename to
4547 ada_language::lookup_symbol_nonlocal.
4548 (ada_language_data): Delete la_lookup_symbol_nonlocal initializer.
4549 (ada_language::lookup_symbol_nonlocal): New member function,
4550 implementation from ada_lookup_symbol_nonlocal.
4551 * c-lang.c (c_language_data): Delete la_lookup_symbol_nonlocal
4552 initializer.
4553 (cplus_language_data): Delete la_lookup_symbol_nonlocal
4554 initializer.
4555 (cplus_language::lookup_symbol_nonlocal): New member function.
4556 (asm_language_data): Delete la_lookup_symbol_nonlocal initializer.
4557 (minimal_language_data) Likewise.
4558 * cp-namespace.c (cp_lookup_nested_symbol): Update comment.
4559 * d-lang.c (d_language_data): Delete la_lookup_symbol_nonlocal
4560 initializer.
4561 (d_language::lookup_symbol_nonlocal): New member function.
4562 * f-lang.c (f_language_data): Delete la_lookup_symbol_nonlocal
4563 initializer.
4564 (f_language::lookup_symbol_nonlocal): New member function.
4565 * go-lang.c (go_language_data): Delete la_lookup_symbol_nonlocal
4566 initializer.
4567 * language.c (unknown_language_data): Likewise.
4568 (auto_language_data): Likewise.
4569 * language.h (language_data): Delete la_lookup_symbol_nonlocal
4570 field.
4571 (language_defn::lookup_symbol_nonlocal): New member function.
4572 * m2-lang.c (m2_language_data): Delete la_lookup_symbol_nonlocal
4573 initializer.
4574 * objc-lang.c (objc_language_data): Likewise.
4575 * opencl-lang.c (opencl_language_data): Likewise.
4576 * p-lang.c (pascal_language_data): Likewise.
4577 * rust-lang.c (rust_lookup_symbol_nonlocal): Rename to
4578 rust_language::lookup_symbol_nonlocal.
4579 (rust_language_data): Delete la_lookup_symbol_nonlocal
4580 initializer.
4581 (rust_language::lookup_symbol_nonlocal): New member function,
4582 implementation from rust_lookup_symbol_nonlocal.
4583 * symtab.c (lookup_symbol_aux): Update call to
4584 lookup_symbol_nonlocal.
4585 (basic_lookup_symbol_nonlocal): Rename to...
4586 (language_defn::lookup_symbol_nonlocal): ...this, and update
4587 header comment. Remove language_defn parameter, and replace with
4588 uses of `this'.
4589 * symtab.h (basic_lookup_symbol_nonlocal): Delete declaration.
4590
ebe2334e
AB
45912020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
4592
4593 * ada-lang.c (ada_language_data): Delete la_value_print_inner
4594 initializer.
4595 (ada_language::value_print_inner): New member function.
4596 * c-lang.c (c_language_data): Delete la_value_print_inner
4597 initializer.
4598 (cplus_language_data): Likewise.
4599 (asm_language_data): Likewise.
4600 (minimal_language_data): Likewise.
4601 * d-lang.c (d_language_data): Likewise.
4602 (d_language::value_print_inner): New member function.
4603 * f-lang.c (f_language_data): Delete la_value_print_inner
4604 initializer.
4605 (f_language::value_print_inner): New member function.
4606 * f-lang.h (f_value_print_innner): Rename to...
4607 (f_value_print_inner): ...this (note spelling of 'inner').
4608 * f-valprint.c (f_value_print_innner): Rename to...
4609 (f_value_print_inner): ...this (note spelling of 'inner').
4610 * go-lang.c (go_language_data): Delete la_value_print_inner
4611 initializer.
4612 (go_language::value_print_inner): New member function.
4613 * language.c (language_defn::value_print_inner): Define new member
4614 function.
4615 (unk_lang_value_print_inner): Delete.
4616 (unknown_language_data): Delete la_value_print_inner initializer.
4617 (unknown_language::value_print_inner): New member function.
4618 (auto_language_data): Delete la_value_print_inner initializer.
4619 (auto_language::value_print_inner): New member function.
4620 * language.h (language_data): Delete la_value_print_inner field.
4621 (language_defn::value_print_inner): Delcare new member function.
4622 * m2-lang.c (m2_language_data): Delete la_value_print_inner
4623 initializer.
4624 (m2_language::value_print_inner): New member function.
4625 * objc-lang.c (objc_language_data): Delete la_value_print_inner
4626 initializer.
4627 * opencl-lang.c (opencl_language_data): Likewise.
4628 * p-lang.c (pascal_language_data): Likewise.
4629 (pascal_language::value_print_inner): New member function.
4630 * rust-lang.c (rust_language_data): Delete la_value_print_inner
4631 initializer.
4632 (rust_language::value_print_inner): New member function.
4633 * valprint.c (do_val_print): Update call to value_print_inner.
4634
a1d1fa3e
AB
46352020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
4636
4637 * ada-lang.c (ada_language_data): Delete la_value_print
4638 initializer.
4639 (ada_language::value_print): New member function.
4640 * c-lang.c (c_language_data): Delete la_value_print initializer.
4641 (cplus_language_data): Likewise.
4642 (asm_language_data): Likewise.
4643 (minimal_language_data): Likewise.
4644 * d-lang.c (d_language_data): Likewise.
4645 * f-lang.c (f_language_data): Likewise.
4646 * go-lang.c (go_language_data): Likewise.
4647 * language.c (unk_lang_value_print): Delete.
4648 (language_defn::value_print): Define new member function.
4649 (unknown_language_data): Delete la_value_print initializer.
4650 (unknown_language::value_print): New member function.
4651 (auto_language_data): Delete la_value_print initializer.
4652 (auto_language::value_print): New member function.
4653 * language.h (language_data): Delete la_value_print field.
4654 (language_defn::value_print): Declare new member function.
4655 (LA_VALUE_PRINT): Update call to value_print.
4656 * m2-lang.c (m2_language_data): Delete la_value_print initializer.
4657 * objc-lang.c (objc_language_data): Likewise.
4658 * opencl-lang.c (opencl_language_data): Likewise.
4659 * p-lang.c (pascal_language_data): Likewise.
4660 (pascal_language::value_print): New member function.
4661 * rust-lang.c (rust_language_data): Delete la_value_print
4662 initializer.
4663
f16a9f57
AB
46642020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
4665
4666 * ada-lang.c (ada_watch_location_expression): Rename to
4667 ada_language::watch_location_expression.
4668 (ada_language_data): Delete la_watch_location_expression
4669 initializer.
4670 (ada_language::watch_location_expression): New member function,
4671 implementation from ada_watch_location_expression.
4672 * breakpoint.c (watch_command_1): Update call to
4673 watch_location_expression.
4674 * c-lang.c (c_watch_location_expression): Rename to
4675 language_defn::watch_location_expression.
4676 (c_language_data): Delete la_watch_location_expression
4677 initializer.
4678 (cplus_language_data): Likewise.
4679 (asm_language_data): Likewise.
4680 (minimal_language_data): Likewise.
4681 * c-lang.h (c_watch_location_expression): Delete declaration.
4682 * d-lang.c (d_language_data): Delete la_watch_location_expression
4683 initializer.
4684 * f-lang.c (f_language_data): Likewise.
4685 * go-lang.c (go_language_data): Likewise.
4686 * language.c (language_defn::watch_location_expression): Member
4687 function implementation from c_watch_location_expression.
4688 (unknown_language_data): Delete la_watch_location_expression
4689 initializer.
4690 (auto_language_data): Likewise.
4691 * language.h (language_data): Delete la_watch_location_expression
4692 field.
4693 (language_defn::watch_location_expression): Declare new member
4694 function.
4695 * m2-lang.c (m2_language_data): Delete
4696 la_watch_location_expression initializer.
4697 * objc-lang.c (objc_language_data): Likewise.
4698 * opencl-lang.c (opencl_language_data): Likewise.
4699 * p-lang.c (pascal_language_data): Likewise.
4700 * rust-lang.c (rust_watch_location_expression): Rename to
4701 rust_language::watch_location_expression.
4702 (rust_language_data): Delete la_watch_location_expression
4703 initializer.
4704 (rust_language::watch_location_expression): New member function,
4705 implementation from rust_watch_location_expression.
4706
7e56227d
AB
47072020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
4708
4709 * ada-lang.c (ada_collect_symbol_completion_matches): Rename to
4710 ada_language::collect_symbol_completion_matches.
4711 (ada_language_data): Delete la_collect_symbol_completion_matches
4712 initializer.
4713 (ada_language::collect_symbol_completion_matches): New member
4714 function, implementation from
4715 ada_collect_symbol_completion_matches.
4716 * c-lang.c (c_language_data): Delete
4717 la_collect_symbol_completion_matches initializer.
4718 (cplus_language_data): Likewise.
4719 (asm_language_data): Likewise.
4720 (minimal_language_data): Likewise.
4721 * d-lang.c (d_language_data): Likewise.
4722 * f-lang.c (f_collect_symbol_completion_matches): Rename to
4723 f_language::collect_symbol_completion_matches.
4724 (f_language_data): Delete la_collect_symbol_completion_matches
4725 initializer.
4726 (f_language::collect_symbol_completion_matches) New member
4727 function, implementation from f_collect_symbol_completion_matches.
4728 * go-lang.c (go_language_data): Delete
4729 la_collect_symbol_completion_matches initializer.
4730 * language.c (unknown_language_data): Likewise.
4731 (auto_language_data): Likewise.
4732 * language.h (language_data): Delete
4733 la_collect_symbol_completion_matches field.
4734 (language_defn::collect_symbol_completion_matches): New member
4735 function.
4736 * m2-lang.c (m2_language_data): Delete
4737 la_collect_symbol_completion_matches initializer.
4738 * objc-lang.c (objc_language_data): Likewise.
4739 * opencl-lang.c (opencl_language_data): Likewise.
4740 * p-lang.c (pascal_language_data): Likewise.
4741 * rust-lang.c (rust_language_data): Likewise.
4742 * symtab.c (default_collect_symbol_completion_matches): Delete.
4743 (collect_symbol_completion_matches): Update call to
4744 collect_symbol_completion_matches.
4745 (collect_symbol_completion_matches_type): Likewise.
4746 * symtab.h (default_collect_symbol_completion_matches): Delete
4747 declaration.
4748
53fc67f8
AB
47492020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
4750
4751 * ada-lang.c (ada_get_gdb_completer_word_break_characters): Delete.
4752 (ada_language_data): Delete la_word_break_characters initializer.
4753 (ada_language::word_break_characters): New member function.
4754 * c-lang.c (c_language_data): Delete la_word_break_characters
4755 initializer.
4756 (cplus_language_data): Likewise.
4757 (asm_language_data): Likewise.
4758 (minimal_language_data): Likewise.
4759 * completer.c: Update global comment.
4760 (advance_to_expression_complete_word_point): Update call to
4761 word_break_characters.
4762 (complete_files_symbols): Likewise.
4763 (complete_line_internal_1): Likewise.
4764 (default_completer_handle_brkchars): Likewise.
4765 (skip_quoted_chars): Likewise.
4766 * d-lang.c (d_language_data): Delete la_word_break_characters
4767 initializer.
4768 * f-lang.c (f_word_break_characters): Delete.
4769 (f_language_data): Delete la_word_break_characters initializer.
4770 (f_language::word_break_characters): New member function.
4771 * go-lang.c (go_language_data): Delete la_word_break_characters
4772 initializer.
4773 * language.c (unknown_language_data): Likewise.
4774 (auto_language_data): Likewise.
4775 * language.h (default_word_break_characters): Move declaration to
4776 earlier in the file.
4777 (language_data): Delete la_word_break_characters field.
4778 (language_defn::word_break_characters): New member function.
4779 * m2-lang.c (m2_language_data): Delete la_word_break_characters
4780 initializer.
4781 * objc-lang.c (objc_language_data): Likewise.
4782 * opencl-lang.c (opencl_language_data): Likewise.
4783 * p-lang.c (pascal_language_data): Likewise.
4784 * rust-lang.c (rust_language_data): Likewise.
4785
c9debfb9
AB
47862020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
4787
4788 * ada-lang.c (ada_get_symbol_name_matcher): Update header comment.
4789 (ada_language_data): Delete la_get_symbol_name_matcher
4790 initializer.
4791 (language_defn::get_symbol_name_matcher_inner): New member
4792 function.
4793 * c-lang.c (c_language_data): Delete la_get_symbol_name_matcher
4794 initializer.
4795 (cplus_language_data): Likewise.
4796 (cplus_language::get_symbol_name_matcher_inner): New member
4797 function.
4798 (asm_language_data): Delete la_get_symbol_name_matcher initializer.
4799 (minimal_language_data): Likewise.
4800 * cp-support.h (cp_get_symbol_name_matcher): Update header comment.
4801 * d-lang.c (d_language_data): Delete la_get_symbol_name_matcher
4802 initializer.
4803 * dictionary.c (iter_match_first_hashed): Update call to
4804 get_symbol_name_matcher.
4805 (iter_match_next_hashed): Likewise.
4806 (iter_match_next_linear): Likewise.
4807 * dwarf2/read.c (dw2_expand_symtabs_matching_symbol): Likewise.
4808 * f-lang.c (f_language_data): Delete la_get_symbol_name_matcher
4809 initializer.
4810 (f_language::get_symbol_name_matcher_inner): New member function.
4811 * go-lang.c (go_language_data): Delete la_get_symbol_name_matcher
4812 initializer.
4813 * language.c (default_symbol_name_matcher): Update header comment,
4814 make static.
4815 (language_defn::get_symbol_name_matcher): New definition.
4816 (language_defn::get_symbol_name_matcher_inner): Likewise.
4817 (get_symbol_name_matcher): Delete.
4818 (unknown_language_data): Delete la_get_symbol_name_matcher
4819 initializer.
4820 (auto_language_data): Likewise.
4821 * language.h (language_data): Delete la_get_symbol_name_matcher
4822 field.
4823 (language_defn::get_symbol_name_matcher): New member function.
4824 (language_defn::get_symbol_name_matcher_inner): Likewise.
4825 (default_symbol_name_matcher): Delete declaration.
4826 * linespec.c (find_methods): Update call to
4827 get_symbol_name_matcher.
4828 * m2-lang.c (m2_language_data): Delete la_get_symbol_name_matcher
4829 initializer.
4830 * minsyms.c (lookup_minimal_symbol): Update call to
4831 get_symbol_name_matcher.
4832 (iterate_over_minimal_symbols): Likewise.
4833 * objc-lang.c (objc_language_data): Delete
4834 la_get_symbol_name_matcher initializer.
4835 * opencl-lang.c (opencl_language_data): Likewise.
4836 * p-lang.c (pascal_language_data): Likewise.
4837 * psymtab.c (psymbol_name_matches): Update call to
4838 get_symbol_name_matcher.
4839 * rust-lang.c (rust_language_data): Delete
4840 la_get_symbol_name_matcher initializer.
4841 * symtab.c (symbol_matches_search_name): Update call to
4842 get_symbol_name_matcher.
4843 (compare_symbol_name): Likewise.
4844
9a49ad8c
AB
48452020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
4846
4847 * ada-lang.c (ada_language_data): Delete la_compute_program
4848 initializer.
4849 * c-lang.c (c_language_data): Likewise.
4850 (c_language::compute_program): New member function.
4851 (cplus_language_data): Delete la_compute_program initializer.
4852 (cplus_language::compute_program): New member function.
4853 (asm_language_data): Delete la_compute_program initializer.
4854 (minimal_language_data): Likewise.
4855 * c-lang.h (c_compute_program): Update comment.
4856 (cplus_compute_program): Likewise.
4857 * compile/compile-c-support.c (c_compute_program): Likewise.
4858 (cplus_compute_program): Likewise.
4859 * compile/compile.c (compile_to_object): Update call to
4860 la_compute_program.
4861 * d-lang.c (d_language_data): Delete la_compute_program
4862 initializer.
4863 * f-lang.c (f_language_data): Likewise.
4864 * go-lang.c (go_language_data): Likewise.
4865 * language.c (unknown_language_data): Likewise.
4866 (auto_language_data): Likewise.
4867 * language.h (language_data): Delete la_compute_program field.
4868 (language_defn::compute_program): New member function.
4869 * m2-lang.c (m2_language_data): Delete la_compute_program
4870 initializer.
4871 * objc-lang.c (objc_language_data): Likewise.
4872 * opencl-lang.c (opencl_language_data): Likewise.
4873 * p-lang.c (pascal_language_data): Likewise.
4874 * rust-lang.c (rust_language_data): Likewise.
4875
eff93b4d
AB
48762020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
4877
4878 * ada-lang.c (ada_language_data) Delete
4879 la_class_name_from_physname initializer.
4880 * c-lang.c (c_language_data): Likewise.
4881 (cplus_language_data): Likewise.
4882 (cplus_language::class_name_from_physname): New member function.
4883 (asm_language_data): Delete la_class_name_from_physname
4884 initializer.
4885 (minimal_language_data): Likewise.
4886 * d-lang.c (d_language_data): Likewise.
4887 * dwarf2/read.c (guess_partial_die_structure_name): Update to call
4888 method on language_defn class.
4889 (guess_full_die_structure_name): Likewise.
4890 * f-lang.c (f_language_data): Delete la_class_name_from_physname
4891 initializer.
4892 * go-lang.c (go_language_data): Likewise.
4893 * language.c (language_class_name_from_physname): Delete.
4894 (unk_lang_class_name): Delete.
4895 (unknown_language_data): Delete la_class_name_from_physname
4896 initializer.
4897 (auto_language_data): Likewise.
4898 * language.h (language_data): Delete la_class_name_from_physname
4899 field.
4900 (language_defn::class_name_from_physname): New function.
4901 (language_class_name_from_physname): Delete declaration.
4902 * m2-lang.c (m2_language_data): Delete la_class_name_from_physname
4903 initializer.
4904 * objc-lang.c (objc_language_data): Likewise.
4905 * opencl-lang.c (opencl_language_data): Likewise.
4906 * p-lang.c (pascal_language_data): Likewise.
4907 * rust-lang.c (rust_language_data): Likewise.
4908
de543742
TT
49092020-06-16 Tom Tromey <tom@tromey.com>
4910
4911 * tui/tui-data.h (STATUS_NAME): New macro.
4912 * tui/tui-layout.c (tui_remove_some_windows)
4913 (initialize_known_windows, tui_register_window)
4914 (tui_layout_split::remove_windows, initialize_layouts)
4915 (tui_new_layout_command): Don't use hard-coded window names.
4916
a350efd4
TT
49172020-06-16 Tom Tromey <tom@tromey.com>
4918
4919 PR tui/25348:
4920 * tui/tui.c (tui_ensure_readline_initialized): Rename from
4921 tui_initialize_readline. Only run once. Call rl_initialize.
4922 * tui/tui.h (tui_ensure_readline_initialized): Rename from
4923 tui_initialize_readline.
4924 * tui/tui-io.c (tui_setup_io): Call
4925 tui_ensure_readline_initialized.
4926 * tui/tui-interp.c (tui_interp::init): Update.
4927
39ec0490
TT
49282020-06-16 Tom Tromey <tom@tromey.com>
4929
4930 * tui/tui-layout.c (tui_layout_split::remove_windows): Fix logic.
4931 Also preserve the status window.
4932
d2d1ea20
TT
49332020-06-16 Tom Tromey <tom@tromey.com>
4934
4935 * python/py-tui.c (tui_py_window::~tui_py_window): Handle case
4936 where m_window==nullptr.
4937
66920317
TT
49382020-06-15 Tom Tromey <tromey@adacore.com>
4939
4940 * windows-nat.c (windows_nat::handle_output_debug_string):
4941 Update.
4942 (windows_nat::handle_ms_vc_exception): Update.
4943 * target.h (target_read_string): Change API.
4944 * target.c (target_read_string): Change API.
4945 * solib-svr4.c (open_symbol_file_object, svr4_read_so_list):
4946 Update.
4947 * solib-frv.c (frv_current_sos): Update.
4948 * solib-dsbt.c (dsbt_current_sos): Update.
4949 * solib-darwin.c (darwin_current_sos): Update.
4950 * linux-thread-db.c (inferior_has_bug): Update.
4951 * expprint.c (print_subexp_standard): Update.
4952 * ada-lang.c (ada_main_name, ada_tag_name_from_tsd)
4953 (ada_exception_message_1): Update.
4954
a5d871dd
TT
49552020-06-15 Tom Tromey <tromey@adacore.com>
4956
4957 * linux-tdep.c (dump_mapping_p): Use target_read_memory.
4958
670e35fa
TT
49592020-06-15 Tom Tromey <tromey@adacore.com>
4960
4961 * valprint.c (read_string): Update comment.
4962 * target.c (MIN): Remove.
4963 (target_read_string): Rewrite.
4964
f5272a3b
TT
49652020-06-15 Tom Tromey <tromey@adacore.com>
4966
4967 * corefile.c (read_memory_string): Remove.
4968 * ada-valprint.c (ada_value_print_ptr): Update.
4969 * ada-lang.h (ada_tag_name): Change return type.
4970 * ada-lang.c (type_from_tag): Update.
4971 (ada_tag_name_from_tsd): Change return type. Use
4972 target_read_string.
4973 (ada_tag_name): Likewise.
4974 * gdbcore.h (read_memory_string): Don't declare.
4975
2c074f49
HD
49762020-06-14 Hannes Domani <ssbssa@yahoo.de>
4977
4978 * symtab.c (rbreak_command): Ignore Windows drive colon.
4979
6a17d503
SM
49802020-06-12 Simon Marchi <simon.marchi@efficios.com>
4981
4982 * NEWS: Mention removed GDBserver host support.
4983
453c733f
NC
49842020-06-12 Nelson Chu <nelson.chu@sifive.com>
4985
4986 * features/riscv/rebuild-csr-xml.sh: Updated.
4987
2b4e6a3f
TT
49882020-06-11 Tom Tromey <tom@tromey.com>
4989
4990 PR gdb/18318:
4991 * c-exp.y (lex_one_token): Handle 'p' like 'e'.
4992
4412332f
JG
49932020-06-09 Jonny Grant <jg@jguk.org>
49942020-06-09 Simon Marchi <simon.marchi@polymtl.ca>
4995
4996 * main.c (captured_main_1): Don't print new line after help.
4997 (print_gdb_help): add mailing list and IRC channel information
4998 to --help. Add new lines between items in the footer. Remove
4999 quotes around bug url.
5000
2f33032a
KS
50012020-06-11 Keith Seitz <keiths@redhat.com>
5002
5003 PR gdb/21356
5004 * gdbtypes.c (resolve_dynamic_union, resolve_dynamic_struct):
5005 Resolve typedefs for type length calculations.
5006
7ab96794
TV
50072020-06-10 Tom de Vries <tdevries@suse.de>
5008
5009 PR ada/24713
5010 * dwarf2/index-write.c (struct mapped_symtab): Add m_string_obstack.
5011 (write_psymbols): Enable .gdb_index for ada.
5012 * dwarf2/read.c: Remove comment stating .gdb_index is unsupported for
5013 ada.
5014
e5f3ece2
TV
50152020-06-10 Tom de Vries <tdevries@suse.de>
5016
5017 * dwarf2/read.c (dw2_symtab_iter_init_common): Factor out of ...
5018 (dw2_symtab_iter_init): ... here. Add variant with "offset_type
5019 namei" instead of "const char *name" argument.
5020 (dw2_map_matching_symbols): Use "offset_type namei" variant of
5021 dw2_symtab_iter_init.
5022
940da03e
SM
50232020-06-08 Simon Marchi <simon.marchi@efficios.com>
5024
5025 * gdbtypes.h (TYPE_FIELD_TYPE): Remove. Change all call sites
5026 to use type::field and field::type instead.
5027
b6cdac4b
SM
50282020-06-08 Simon Marchi <simon.marchi@efficios.com>
5029
5030 * gdbtypes.h (FIELD_TYPE): Remove. Change all call sites
5031 to use field::type instead.
5032
5d14b6e5
SM
50332020-06-08 Simon Marchi <simon.marchi@efficios.com>
5034
5035 * gdbtypes.h (struct field) <type, set_type>: New methods.
5036 Rename `type` field to...
5037 <m_type>: ... this. Change references throughout to use type or
5038 set_type methods.
5039 (FIELD_TYPE): Use field::type. Change call sites that modify
5040 the field's type to use field::set_type instead.
5041
3d967001
SM
50422020-06-08 Simon Marchi <simon.marchi@efficios.com>
5043
5044 * gdbtypes.h (TYPE_INDEX_TYPE): Remove. Change all call sites
5045 to use type::index_type instead.
5046
262abc0d
SM
50472020-06-08 Simon Marchi <simon.marchi@efficios.com>
5048
5049 * gdbtypes.h (struct type) <index_type, set_index_type>: New
5050 methods.
5051 (TYPE_INDEX_TYPE): Use type::index_type.
5052 * gdbtypes.c (create_array_type_with_stride): Likewise.
5053
82836c92
TT
50542020-06-07 Tom Tromey <tom@tromey.com>
5055
5056 * valprint.c (generic_val_print_float): Remove "embedded_offset"
5057 parameter.
5058 (generic_value_print): Update.
5059
940dace9
AB
50602020-06-05 Andrew Burgess <andrew.burgess@embecosm.com>
5061
5062 Revert commit 982a38f60b0.
5063 * python/py-tui.c (gdbpy_tui_set_title): Restore use of get.
5064
982a38f6
AB
50652020-06-05 Andrew Burgess <andrew.burgess@embecosm.com>
5066
5067 * python/py-tui.c (gdbpy_tui_set_title): Use release, not get, to
5068 avoid use after free.
5069
82f06518
TV
50702020-06-05 Tom de Vries <tdevries@suse.de>
5071
5072 * NEWS: Fix typos.
5073
f8c41851
SM
50742020-06-04 Simon Marchi <simon.marchi@efficios.com>
5075
5076 * dwarf2/read.c (dwarf2_read_gdb_index): Save partial_symtabs in
5077 the per_bfd object.
5078 (dwarf2_read_debug_names): Likewise.
5079 (dwarf2_initialize_objfile): Use partial_symtabs from per_bfd
5080 object when re-using a per_bfd object with an index.
5081
f9b5d5ea
TV
50822020-06-03 Tom de Vries <tdevries@suse.de>
5083
5084 PR symtab/26046
5085 * dwarf2/read.c (scan_partial_symbols): Recurse into DW_TAG_subprogram
5086 children for C++.
5087 (load_partial_dies): Don't skip DW_TAG_inlined_subroutine child of
5088 DW_TAG_subprogram.
5089
f6eee2d0
AB
50902020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
5091
5092 * ada-lang.c (ada_language_data): Delete skip_trampoline
5093 initializer.
5094 * c-lang.c (c_language_data): Likewise.
5095 (cplus_language_data): Likewise.
5096 (cplus_language::skip_trampoline): New member function.
5097 (asm_language_data): Delete skip_trampoline initializer.
5098 (minimal_language_data): Likewise.
5099 * d-lang.c (d_language_data): Likewise.
5100 * f-lang.c (f_language_data): Likewise.
5101 * go-lang.c (go_language_data): Likewise.
5102 * language.c (unk_lang_trampoline): Delete function.
5103 (skip_language_trampoline): Update.
5104 (unknown_language_data): Delete skip_trampoline initializer.
5105 (auto_language_data): Likewise.
5106 * language.h (language_data): Delete skip_trampoline field.
5107 (language_defn::skip_trampoline): New function.
5108 * m2-lang.c (m2_language_data): Delete skip_trampoline
5109 initializer.
5110 * objc-lang.c (objc_skip_trampoline): Delete function, move
5111 implementation to objc_language::skip_trampoline.
5112 (objc_language_data): Delete skip_trampoline initializer.
5113 (objc_language::skip_trampoline): New member function with
5114 implementation from objc_skip_trampoline.
5115 * opencl-lang.c (opencl_language_data): Delete skip_trampoline
5116 initializer.
5117 * p-lang.c (pascal_language_data): Likewise.
5118 * rust-lang.c (rust_language_data): Likewise.
5119
0a50df5d
AB
51202020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
5121
5122 * ada-lang.c (ada_language_data): Delete la_demangle initializer.
5123 (ada_language::demangle): New member function.
5124 * c-lang.c (c_language_data): Delete la_demangle initializer.
5125 (cplus_language_data): Delete la_demangle initializer.
5126 (cplus_language::demangle): New member function.
5127 (asm_language_data): Delete la_demangle initializer.
5128 (minimal_language_data): Delete la_demangle initializer.
5129 * d-lang.c (d_language_data): Delete la_demangle initializer.
5130 (d_language::demangle): New member function.
5131 * f-lang.c (f_language_data): Delete la_demangle initializer.
5132 (f_language::demangle): New member function.
5133 * go-lang.c (go_language_data): Delete la_demangle initializer.
5134 (go_language::demangle): New member function.
5135 * language.c (language_demangle): Update.
5136 (unk_lang_demangle): Delete.
5137 (unknown_language_data): Delete la_demangle initializer.
5138 (unknown_language::demangle): New member function.
5139 (auto_language_data): Delete la_demangle initializer.
5140 (auto_language::demangle): New member function.
5141 * language.h (language_data): Delete la_demangle field.
5142 (language_defn::demangle): New function.
5143 * m2-lang.c (m2_language_data): Delete la_demangle initializer.
5144 * objc-lang.c (objc_language_data): Delete la_demangle
5145 initializer.
5146 (objc_language::demangle): New member function.
5147 * opencl-lang.c (opencl_language_data): Delete la_demangle
5148 initializer.
5149 * p-lang.c (pascal_language_data): Likewise.
5150 * rust-lang.c (rust_language_data): Likewise.
5151 (rust_language::demangle): New member function.
5152
fbfb0a46
AB
51532020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
5154
5155 * ada-lang.c (ada_language_data): Delete la_print_type
5156 initializer.
5157 (ada_language::print_type): New member function.
5158 * c-lang.c (c_language_data): Delete la_print_type initializer.
5159 (c_language::print_type): New member function.
5160 (cplus_language_data): Delete la_print_type initializer.
5161 (cplus_language::print_type): New member function.
5162 (asm_language_data): Delete la_print_type initializer.
5163 (asm_language::print_type): New member function.
5164 (minimal_language_data): Delete la_print_type initializer.
5165 (minimal_language::print_type): New member function.
5166 * d-lang.c (d_language_data): Delete la_print_type initializer.
5167 (d_language::print_type): New member function.
5168 * f-lang.c (f_language_data): Delete la_print_type initializer.
5169 (f_language::print_type): New member function.
5170 * go-lang.c (go_language_data): Delete la_print_type initializer.
5171 (go_language::print_type): New member function.
5172 * language.c (unk_lang_print_type): Delete.
5173 (unknown_language_data): Delete la_print_type initializer.
5174 (unknown_language::print_type): New member function.
5175 (auto_language_data): Delete la_print_type initializer.
5176 (auto_language::print_type): New member function.
5177 * language.h (language_data): Delete la_print_type field.
5178 (language_defn::print_type): New function.
5179 (LA_PRINT_TYPE): Update.
5180 * m2-lang.c (m2_language_data): Delete la_print_type initializer.
5181 (m2_language::print_type): New member function.
5182 * objc-lang.c (objc_language_data): Delete la_print_type
5183 initializer.
5184 (objc_language::print_type): New member function.
5185 * opencl-lang.c (opencl_print_type): Delete, implementation moved
5186 to opencl_language::print_type.
5187 (opencl_language_data): Delete la_print_type initializer.
5188 (opencl_language::print_type): New member function, implementation
5189 from opencl_print_type.
5190 * p-lang.c (pascal_language_data): Delete la_print_type
5191 initializer.
5192 (pascal_language::print_type): New member function.
5193 * rust-lang.c (rust_print_type): Delete, implementation moved to
5194 rust_language::print_type.
5195 (rust_language_data): Delete la_print_type initializer.
5196 (rust_language::print_type): New member function, implementation
5197 from rust_print_type.
5198
6f827019
AB
51992020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
5200
5201 * ada-lang.c (ada_sniff_from_mangled_name): Delete function,
5202 implementation moves to...
5203 (ada_language::sniff_from_mangled_name): ...here. Update return
5204 type.
5205 (ada_language_data): Delete la_sniff_from_mangled_name
5206 initializer.
5207 * c-lang.c (c_language_data): Likewise.
5208 (cplus_language_data): Likewise.
5209 (cplus_language::sniff_from_mangled_name): New member function,
5210 implementation taken from gdb_sniff_from_mangled_name.
5211 (asm_language_data): Delete la_sniff_from_mangled_name
5212 initializer.
5213 (minimal_language_data): Likewise.
5214 * cp-support.c (gdb_sniff_from_mangled_name): Delete,
5215 implementation moves to cplus_language::sniff_from_mangled_name.
5216 * cp-support.h (gdb_sniff_from_mangled_name): Delete declaration.
5217 * d-lang.c (d_sniff_from_mangled_name): Delete, implementation
5218 moves to...
5219 (d_language::sniff_from_mangled_name): ...here.
5220 (d_language_data): Delete la_sniff_from_mangled_name initializer.
5221 * f-lang.c (f_language_data): Likewise.
5222 * go-lang.c (go_sniff_from_mangled_name): Delete, implementation
5223 moves to...
5224 (go_language::sniff_from_mangled_name): ...here.
5225 (go_language_data): Delete la_sniff_from_mangled_name initializer.
5226 * language.c (language_sniff_from_mangled_name): Delete.
5227 (unknown_language_data): Delete la_sniff_from_mangled_name
5228 initializer.
5229 (auto_language_data): Likewise.
5230 * language.h (language_data): Delete la_sniff_from_mangled_name
5231 field.
5232 (language_defn::sniff_from_mangled_name): New function.
5233 (language_sniff_from_mangled_name): Delete declaration.
5234 * m2-lang.c (m2_language_data): Delete la_sniff_from_mangled_name
5235 field.
5236 * objc-lang.c (objc_sniff_from_mangled_name): Delete,
5237 implementation moves to...
5238 (objc_language::sniff_from_mangled_name): ...here.
5239 (objc_language_data): Delete la_sniff_from_mangled_name initializer.
5240 * opencl-lang.c (opencl_language_data): Likewise.
5241 * p-lang.c (pascal_language_data): Likewise.
5242 * rust-lang.c (rust_sniff_from_mangled_name): Delete,
5243 implementation moves to...
5244 (rust_language::sniff_from_mangled_name): ...here.
5245 (rust_language_data): Delete la_sniff_from_mangled_name
5246 initializer.
5247 * symtab.c (symbol_find_demangled_name): Call
5248 sniff_from_mangled_name member function.
5249
fb8006fd
AB
52502020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
5251
5252 * ada-lang.c (ada_language_data): Delete la_search_name_hash
5253 initializer.
5254 * c-lang.c (c_language_data): Likewise.
5255 (cplus_language_data): Likewise.
5256 (cplus_language::search_name_hash): New member function.
5257 (asm_language_data): Delete la_search_name_hash initializer.
5258 (minimal_language_data): Likewise.
5259 * d-lang.c (d_language_data): Likewise.
5260 * dictionary.c (default_search_name_hash): Rename to...
5261 (language_defn::search_name_hash): ...this.
5262 * f-lang.c (f_language_data): Likewise.
5263 (f_language::search_name_hash): New member function.
5264 * go-lang.c (go_language_data): Delete la_search_name_hash
5265 initializer.
5266 * language.c (unknown_language_data): Likewise.
5267 (auto_language_data): Likewise.
5268 * language.h (struct language_data): Delete la_search_name_hash
5269 field.
5270 (language_defn::search_name_hash): Declare new member function.
5271 (default_search_name_hash): Delete declaration.
5272 * m2-lang.c (m2_language_data): Delete la_search_name_hash
5273 initializer.
5274 * objc-lang.c (objc_language_data): Likewise.
5275 * opencl-lang.c (opencl_language_data): Likewise.
5276 * p-lang.c (pascal_language_data): Likewise.
5277 * rust-lang.c (rust_language_data): Likewise.
5278 * symtab.c (search_name_hash): Update call.
5279
8e25bafe
AB
52802020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
5281
5282 * ada-lang.c (ada_language_data): Delete la_get_compile_instance
5283 initializer.
5284 * c-lang.c (class compile_instance): Declare.
5285 (c_language_data): Delete la_get_compile_instance initializer.
5286 (c_language::get_compile_instance): New member function.
5287 (cplus_language_data): Delete la_get_compile_instance initializer.
5288 (cplus_language::get_compile_instance): New member function.
5289 (asm_language_data): Delete la_get_compile_instance initializer.
5290 (minimal_language_data): Likewise.
5291 * c-lang.h (c_get_compile_context): Update comment.
5292 (cplus_get_compile_context): Update comment.
5293 * compile/compile.c (compile_to_object): Update calls, don't rely
5294 on function pointer being NULL.
5295 * d-lang.c (d_language_data): Delete la_get_compile_instance
5296 initializer.
5297 * f-lang.c (f_language_data): Likewise.
5298 * go-lang.c (go_language_data): Likewise.
5299 * language.c (unknown_language_data): Likewise.
5300 (auto_language_data): Likewise.
5301 * language.h (language_data): Delete la_get_compile_instance field.
5302 (language_defn::get_compile_instance): New member function.
5303 * m2-lang.c (m2_language_data): Delete la_get_compile_instance
5304 initializer.
5305 * objc-lang.c (objc_language_data): Likewise.
5306 * opencl-lang.c (opencl_language_data): Likewise.
5307 * p-lang.c (pascal_language_data): Likewise.
5308 * rust-lang.c (rust_language_data): Likewise.
5309
4009ee92
AB
53102020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
5311
5312 * ada-lang.c (ada_add_all_symbols): Update comment.
5313 (ada_iterate_over_symbols): Delete, move implementation to...
5314 (ada_language::iterate_over_symbols): ...here, a new member
5315 function, rewrite to use range based for loop.
5316 (ada_language_data): Delete la_iterate_over_symbols initializer.
5317 * c-lang.c (c_language_data): Likewise.
5318 (cplus_language_data): Likewise.
5319 (asm_language_data): Likewise.
5320 (minimal_language_data): Likewise.
5321 * d-lang.c (d_language_data): Likewise.
5322 * f-lang.c (f_language_data): Likewise.
5323 * go-lang.c (go_language_data): Likewise.
5324 * language.c (unknown_language_data): Likewise.
5325 (auto_language_data): Likewise.
5326 * language.h (language_data): Delete la_iterate_over_symbols field.
5327 (language_defn::iterate_over_symbols): New member function.
5328 (LA_ITERATE_OVER_SYMBOLS): Update.
5329 * linespec.c (iterate_over_all_matching_symtabs): Update.
5330 * m2-lang.c (m2_language_data): Delete la_iterate_over_symbols
5331 initializer.
5332 * objc-lang.c (objc_language_data): Likewise.
5333 * opencl-lang.c (opencl_language_data): Likewise.
5334 * p-lang.c (pascal_language_data): Likewise.
5335 * rust-lang.c (rust_language_data): Likewise.
5336
54f4ca46
AB
53372020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
5338
5339 * ada-lang.c (ada_language_data): Delete
5340 la_lookup_transparent_type initializer.
5341 * c-lang.c (c_language_data): Likewise.
5342 (cplus_language_data): Likewise.
5343 (cplus_language::lookup_transparent_type): New member function.
5344 (asm_language_data): Delete la_lookup_transparent_type
5345 initializer.
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 (struct language_data): Delete
5353 la_lookup_transparent_type field.
5354 (language_defn::lookup_transparent_type): New member function.
5355 * m2-lang.c (m2_language_data): Delete la_lookup_transparent_type
5356 initializer.
5357 * objc-lang.c (objc_language_data): Likewise.
5358 * opencl-lang.c (opencl_language_data): Likewise.
5359 * p-lang.c (pascal_language_data): Likewise.
5360 * rust-lang.c (rust_language_data): Likewise.
5361 * symtab.c (symbol_matches_domain): Update call.
5362
1fb314aa
AB
53632020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
5364
5365 * ada-lang.c (ada_language_arch_info): Delete function, move
5366 implementation to...
5367 (ada_language::language_arch_info): ...here, a new member
5368 function.
5369 (ada_language_data): Delete la_language_arch_info.
5370 * c-lang.c (c_language_data): Likewise.
5371 (c_language::language_arch_info): New member function.
5372 (cplus_language_arch_info): Delete function, move
5373 implementation to...
5374 (cplus_language::language_arch_info): ...here, a new member
5375 function.
5376 (cplus_language_data): Delete la_language_arch_info.
5377 (asm_language_data): Likewise.
5378 (asm_language::language_arch_info): New member function.
5379 (minimal_language_data): Delete la_language_arch_info.
5380 (minimal_language::language_arch_info): New member function.
5381 * d-lang.c (d_language_arch_info): Delete function, move
5382 implementation to...
5383 (d_language::language_arch_info): ...here, a new member
5384 function.
5385 (d_language_data): Delete la_language_arch_info.
5386 * f-lang.c (f_language_arch_info): Delete function, move
5387 implementation to...
5388 (f_language::language_arch_info): ...here, a new member
5389 function.
5390 (f_language_data): Delete la_language_arch_info.
5391 * go-lang.c (go_language_arch_info): Delete function, move
5392 implementation to...
5393 (go_language::language_arch_info): ...here, a new member
5394 function.
5395 (go_language_data): Delete la_language_arch_info.
5396 * language.c (unknown_language_data): Likewise.
5397 (unknown_language::language_arch_info): New member function.
5398 (auto_language_data): Delete la_language_arch_info.
5399 (auto_language::language_arch_info): New member function.
5400 (language_gdbarch_post_init): Update call to
5401 la_language_arch_info.
5402 * language.h (language_data): Delete la_language_arch_info
5403 function pointer.
5404 (language_defn::language_arch_info): New function.
5405 * m2-lang.c (m2_language_arch_info): Delete function, move
5406 implementation to...
5407 (m2_language::language_arch_info): ...here, a new member
5408 function.
5409 (m2_language_data): Delete la_language_arch_info.
5410 * objc-lang.c (objc_language_arch_info): Delete function, move
5411 implementation to...
5412 (objc_language::language_arch_info): ...here, a new member
5413 function.
5414 (objc_language_data): Delete la_language_arch_info.
5415 * opencl-lang.c (opencl_language_arch_info): Delete function, move
5416 implementation to...
5417 (opencl_language::language_arch_info): ...here, a new member
5418 function.
5419 (opencl_language_data): Delete la_language_arch_info.
5420 * p-lang.c (pascal_language_arch_info): Delete function, move
5421 implementation to...
5422 (pascal_language::language_arch_info): ...here, a new member
5423 function.
5424 (pascal_language_data): Delete la_language_arch_info.
5425 * rust-lang.c (rust_language_arch_info): Delete function, move
5426 implementation to...
5427 (rust_language::language_arch_info): ...here, a new member
5428 function.
5429 (rust_language_data): Delete la_language_arch_info.
5430
48448202
AB
54312020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
5432
5433 * ada-lang.c (ada_language_data): Delete la_pass_by_reference
5434 initializer.
5435 * c-lang.c (c_language_data): Likewise.
5436 (cplus_language_data): Likewise.
5437 (cplus_language::pass_by_reference_info): New method.
5438 (asm_language_data): Delete la_pass_by_reference initializer.
5439 (minimal_language_data): Likewise.
5440 * cp-abi.c (cp_pass_by_reference): Remove use of
5441 default_pass_by_reference.
5442 * d-lang.c (d_language_data): Likewise.
5443 * f-lang.c (f_language_data): Likewise.
5444 * gnu-v3-abi.c (gnuv3_pass_by_reference): Remove use of
5445 default_pass_by_reference.
5446 * go-lang.c (go_language_data): Likewise.
5447 * language.c (language_pass_by_reference): Update.
5448 (default_pass_by_reference): Delete.
5449 (unknown_language_data): Delete la_pass_by_reference
5450 initializer.
5451 (auto_language_data): Likewise.
5452 * language.h (struct language_data): Delete la_pass_by_reference
5453 field.
5454 (language_defn::pass_by_reference_info): New member function.
5455 (default_pass_by_reference): Delete declaration.
5456 * m2-lang.c (m2_language_data): Delete la_pass_by_reference
5457 initializer.
5458 * objc-lang.c (objc_language_data): Likewise.
5459 * opencl-lang.c (opencl_language_data): Likewise.
5460 * p-lang.c (pascal_language_data): Likewise.
5461 * rust-lang.c (rust_language_data): Likewise.
5462
15e5fd35
AB
54632020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
5464
5465 * ada-lang.c (ada_read_var_value): Delete function, move
5466 implementation to...
5467 (ada_language::read_var_value): ...here.
5468 (ada_language_data): Delete la_read_var_value initializer.
5469 * c-lang.c (c_language_data): Likewise.
5470 (cplus_language_data): Likewise.
5471 (minimal_language_data): Likewise.
5472 * d-lang.c (d_language_data): Likewise.
5473 * f-lang.c (f_language_data): Likewise.
5474 * findvar.c (default_read_var_value): Rename to...
5475 (language_defn::read_var_value): ...this.
5476 * findvar.c (read_var_value): Update header comment, and change to
5477 call member function instead of function pointer.
5478 * go-lang.c (go_language_data): Likewise.
5479 * language.c (unknown_language_data): Delete la_read_var_value
5480 initializer.
5481 (auto_language_data): Likewise.
5482 * language.h (struct language_data): Delete la_read_var_value
5483 field.
5484 (language_defn::read_var_value): New member function.
5485 (default_read_var_value): Delete declaration.
5486 * m2-lang.c (m2_language_data): Delete la_read_var_value
5487 initializer.
5488 * objc-lang.c (objc_language_data): Likewise.
5489 * opencl-lang.c (opencl_language_data): Likewise.
5490 * p-lang.c (pascal_language_data): Likewise.
5491 * rust-lang.c (rust_language_data): Likewise.
5492 * value.h (default_read_var_value): Delete declaration.
5493
5bd40f2a
AB
54942020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
5495
5496 * ada-lang.c (ada_print_array_index): Delete function, move
5497 implementation to...
5498 (ada_language::print_array_index): ...here.
5499 (ada_language_data): Delete la_print_array_index initializer.
5500 * c-lang.c (c_language_data): Likewise.
5501 (cplus_language_data): Likewise.
5502 (minimal_language_data): Likewise.
5503 * d-lang.c (d_language_data): Likewise.
5504 * f-lang.c (f_language_data): Likewise.
5505 * go-lang.c (go_language_data): Likewise.
5506 * language.c (default_print_array_index): Delete function, move
5507 implementation to...
5508 (language_defn::print_array_index): ...here.
5509 (unknown_language_data): Delete la_print_array_index initializer.
5510 (auto_language_data): Likewise.
5511 * language.h (struct language_data): Delete la_print_array_index
5512 field.
5513 (language_defn::print_array_index): New member function.
5514 (LA_PRINT_ARRAY_INDEX): Update.
5515 (default_print_array_index): Delete declaration.
5516 * m2-lang.c (m2_language_data): Delete la_print_array_index
5517 initializer.
5518 * objc-lang.c (objc_language_data): Likewise.
5519 * opencl-lang.c (opencl_language_data): Likewise.
5520 * p-lang.c (pascal_language_data): Likewise.
5521 * rust-lang.c (rust_language_data): Likewise.
5522
0874fd07
AB
55232020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
5524
5525 * gdb/ada-lang.c (ada_language_defn): Convert to...
5526 (ada_language_data): ...this.
5527 (class ada_language): New class.
5528 (ada_language_defn): New static global.
5529 * gdb/c-lang.c (c_language_defn): Convert to...
5530 (c_language_data): ...this.
5531 (class c_language): New class.
5532 (c_language_defn): New static global.
5533 (cplus_language_defn): Convert to...
5534 (cplus_language_data): ...this.
5535 (class cplus_language): New class.
5536 (cplus_language_defn): New static global.
5537 (asm_language_defn): Convert to...
5538 (asm_language_data): ...this.
5539 (class asm_language): New class.
5540 (asm_language_defn): New static global.
5541 (minimal_language_defn): Convert to...
5542 (minimal_language_data): ...this.
5543 (class minimal_language): New class.
5544 (minimal_language_defn): New static global.
5545 * gdb/d-lang.c (d_language_defn): Convert to...
5546 (d_language_data): ...this.
5547 (class d_language): New class.
5548 (d_language_defn): New static global.
5549 * gdb/f-lang.c (f_language_defn): Convert to...
5550 (f_language_data): ...this.
5551 (class f_language): New class.
5552 (f_language_defn): New static global.
5553 * gdb/go-lang.c (go_language_defn): Convert to...
5554 (go_language_data): ...this.
5555 (class go_language): New class.
5556 (go_language_defn): New static global.
5557 * gdb/language.c (unknown_language_defn): Remove declaration.
5558 (current_language): Initialize to nullptr, real initialization is
5559 moved to _initialize_language.
5560 (languages): Delete global.
5561 (language_defn::languages): Define.
5562 (set_language_command): Use language_defn::languages.
5563 (set_language): Likewise.
5564 (range_error): Likewise.
5565 (language_enum): Likewise.
5566 (language_def): Likewise.
5567 (add_set_language_command): Use language_def::languages for the
5568 language list, and language_def to lookup language pointers.
5569 (skip_language_trampoline): Use language_defn::languages.
5570 (unknown_language_defn): Convert to...
5571 (unknown_language_data): ...this.
5572 (class unknown_language): New class.
5573 (unknown_language_defn): New static global.
5574 (auto_language_defn): Convert to...
5575 (auto_language_data): ...this.
5576 (class auto_language): New class.
5577 (auto_language_defn): New static global.
5578 (language_gdbarch_post_init): Use language_defn::languages.
5579 (_initialize_language): Initialize current_language.
5580 * gdb/language.h (struct language_defn): Rename to...
5581 (struct language_data): ...this.
5582 (struct language_defn): New.
5583 (auto_language_defn): Delete.
5584 (unknown_language_defn): Delete.
5585 (minimal_language_defn): Delete.
5586 (ada_language_defn): Delete.
5587 (asm_language_defn): Delete.
5588 (c_language_defn): Delete.
5589 (cplus_language_defn): Delete.
5590 (d_language_defn): Delete.
5591 (f_language_defn): Delete.
5592 (go_language_defn): Delete.
5593 (m2_language_defn): Delete.
5594 (objc_language_defn): Delete.
5595 (opencl_language_defn): Delete.
5596 (pascal_language_defn): Delete.
5597 (rust_language_defn): Delete.
5598 * gdb/m2-lang.c (m2_language_defn): Convert to...
5599 (m2_language_data): ...this.
5600 (class m2_language): New class.
5601 (m2_language_defn): New static global.
5602 * gdb/objc-lang.c (objc_language_defn): Convert to...
5603 (objc_language_data): ...this.
5604 (class objc_language): New class.
5605 (objc_language_defn): New static global.
5606 * gdb/opencl-lang.c (opencl_language_defn): Convert to...
5607 (opencl_language_data): ...this.
5608 (class opencl_language): New class.
5609 (opencl_language_defn): New static global.
5610 * gdb/p-lang.c (pascal_language_defn): Convert to...
5611 (pascal_language_data): ...this.
5612 (class pascal_language): New class.
5613 (pascal_language_defn): New static global.
5614 * gdb/rust-exp.y (rust_lex_tests): Use language_def to find
5615 language pointer, update comment format.
5616 * gdb/rust-lang.c (rust_language_defn): Convert to...
5617 (rust_language_data): ...this.
5618 (class rust_language): New class.
5619 (rust_language_defn): New static global.
5620
1313c56e
AB
56212020-06-01 Andrew Burgess <andrew.burgess@embecosm.com>
5622
5623 * dwarf2/read.c (class lnp_state_machine) <m_last_address>: New
5624 member variable.
5625 <m_stmt_at_address>: New member variable.
5626 (lnp_state_machine::record_line): Don't record some lines, update
5627 tracking of is_stmt at the same address.
5628 (lnp_state_machine::lnp_state_machine): Initialise new member
5629 variables.
5630
b7ed9f3d
ST
56312020-06-01 Samuel Thibault <samuel.thibault@ens-lyon.org>
5632
5633 * config/i386/i386gnu.mn [%_S.o %_U.o] (COMPILE.post): Add
5634 "-include gnu-nat-mig.h".
5635 * gnu-nat-mig.h: New file.
5636 * gnu-nat.c: Include "gnu-nat-mig.h".
5637 (exc_server, msg_reply_server, notify_server,
5638 process_reply_server): Remove declarations.
5639
14a8ad62
ST
56402020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
5641
5642 * gnu-nat.h (inf_validate_procs, inf_suspend, inf_set_traced,
5643 steal_exc_port, proc_get_state, inf_clear_wait, inf_cleanup,
5644 inf_startup, inf_update_suspends, inf_set_pid, inf_steal_exc_ports,
5645 inf_validate_procinfo, inf_validate_task_sc, inf_restore_exc_ports,
5646 inf_set_threads_resume_sc, inf_set_threads_resume_sc_for_signal_thread,
5647 inf_resume, inf_set_step_thread, inf_detach, inf_attach, inf_signal,
5648 inf_continue, make_proc, proc_abort, _proc_free, proc_update_sc,
5649 proc_get_exception_port, proc_set_exception_port, _proc_get_exc_port,
5650 proc_steal_exc_port, proc_restore_exc_port, proc_trace): Move functions
5651 to gnu_nat_target class.
5652 * gnu-nat.c: Likewise.
5653 (inf_update_procs, S_proc_wait_reply, set_task_pause_cmd,
5654 set_task_exc_port_cmd, set_signals_cmd, set_thread_pause_cmd,
5655 set_thread_exc_port_cmd): Call inf_validate_procs through gnu_target
5656 object.
5657 (gnu_nat_target::create_inferior, gnu_nat_target::detach): Pass `this'
5658 instead of `gnu_target'.
5659
0af5e106
ST
56602020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
5661
5662 * i386-gnu-tdep.c: Include "gdbcore.h"
5663 (gnu_sigtramp_code, i386_gnu_sc_reg_offset): New arrays.
5664 (GNU_SIGTRAMP_LEN, GNU_SIGTRAMP_TAIL,
5665 I386_GNU_SIGCONTEXT_THREAD_STATE_OFFSET): New macros
5666 (i386_gnu_sigtramp_start, i386_gnu_sigtramp_p,
5667 i386_gnu_sigcontext_addr): New functions
5668 (i386gnu_init_abi): Register i386_gnu_sigtramp_p,
5669 i386_gnu_sigcontext_addr, and i386_gnu_sc_reg_offset in the gdbarch
5670 tdep.
5671
078f2fc9
ST
56722020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
5673
5674 * gnu-nat.c (gnu_nat_target::create_inferior): Move push_target call
5675 before fork_inferior call. Avoid calling it if target_is_pushed returns
5676 true.
5677
53dff92c
ST
56782020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
5679
5680 * gnu-nat.h (gnu_target): New variable declaration.
5681 * i386-gnu-nat.c (_initialize_i386gnu_nat): Initialize
5682 gnu_target.
5683 * gnu-nat.c (gnu_target): New variable.
5684 (inf_validate_procs): Pass gnu_target to thread_change_ptid,
5685 add_thread_silent, and add_thread calls.
5686 (gnu_nat_target::create_inferior): Pass gnu_target to
5687 add_thread_silent, thread_change_ptid call.
5688 (gnu_nat_target::detach): Pass gnu_target to detach_inferior
5689 call.
5690
5a8b8627
ST
56912020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
5692
5693 * gnu-nat.c (gnu_xfer_auxv): Remove unused `res' variable.
5694 (gnu_nat_target::find_memory_regions): Remove unused
5695 `old_address' variable.
5696
366f550a
ST
56972020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
5698
5699 * gnu-nat.c: Include "gdbarch.h".
5700
f14871bf
ST
57012020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
5702
5703 * reply_mig_hack.awk (Error return): Cast function through
5704 void *, to bypass compiler function call check.
5705
c6887cfb
ST
57062020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
5707
5708 * config/i386/i386gnu.mn (%_reply_S.c): Add dependency on
5709 $(srcdir)/reply_mig_hack.awk.
5710
6930bffe
ST
57112020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
5712
5713 * gnu-nat.h (gnu_debug_flag): Set type to bool.
5714
112c22ed
JG
57152020-05-30 Jonny Grant <jg@jguk.org>
5716
5717 * configure.ac (ACX_BUGURL): change bug URL to https.
5718
f68f85b5
PA
57192020-05-30 Pedro Alves <palves@redhat.com>
5720
5721 * cp-support.c (replace_typedefs_template): New.
5722 (replace_typedefs_qualified_name): Handle
5723 DEMANGLE_COMPONENT_TEMPLATE.
5724
976ca316
SM
57252020-05-29 Simon Marchi <simon.marchi@efficios.com>
5726
5727 * dwarf2/comp-unit.c, dwarf2/comp-unit.h, dwarf2/index-cache.c,
5728 dwarf2/index-cache.h, dwarf2/index-write.c,
5729 dwarf2/index-write.h, dwarf2/line-header.c,
5730 dwarf2/line-header.h, dwarf2/macro.c, dwarf2/macro.h,
5731 dwarf2/read.c, dwarf2/read.h: Rename struct dwarf2_per_objfile
5732 variables and fields from `dwarf2_per_objfile` to just
5733 `per_objfile` throughout.
5734
989ade05
SM
57352020-05-28 Simon Marchi <simon.marchi@polymtl.ca>
5736
5737 * dwarf2/loc.c (class dwarf_evaluate_loc_desc)
5738 <push_dwarf_reg_entry_value>: Add comment.
5739
c47bae85
KB
57402020-05-28 Kevin Buettner <kevinb@redhat.com>
5741 Keith Seitz <keiths@redhat.com>
5742
5743 * python/python.c (do_start_initialization): Call PyEval_SaveThread
5744 instead of PyEval_ReleaseLock.
5745 (class gdbpy_gil): Move to earlier in file.
5746 (finalize_python): Set gdb_python_initialized.
5747 (gdbpy_check_quit_flag): Acquire GIL via gdbpy_gil. Return early
5748 when not initialized.
5749
44486dcf
SM
57502020-05-28 Simon Marchi <simon.marchi@efficios.com>
5751
5752 * dwarf2/loc.c (class dwarf_evaluate_loc_desc)
5753 <push_dwarf_reg_entry_value>: Remove assert. Override
5754 per_objfile with caller_per_objfile.
5755
f030440d
TV
57562020-05-28 Tom de Vries <tdevries@suse.de>
5757
5758 * dwarf2/read.c (dw2_symtab_iter_next, dw2_expand_marked_cus): Limit
5759 PR gold/15646 workaround to symbol kind "type".
5760
f0fbb768
TT
57612020-05-27 Tom Tromey <tromey@adacore.com>
5762
5763 * dwarf2/read.c (load_partial_dies): Use add_partial_symbol.
5764
af0b2a3e
TT
57652020-05-27 Tom Tromey <tromey@adacore.com>
5766
5767 * dwarf2/abbrev.h (struct abbrev_table) <lookup_abbrev>: Inline.
5768 Use htab_find_with_hash.
5769 <add_abbrev>: Remove "abbrev_number" parameter.
5770 * dwarf2/abbrev.c (abbrev_table::add_abbrev): Remove
5771 "abbrev_number" parameter. Use htab_find_slot_with_hash.
5772 (hash_abbrev): Add comment.
5773 (abbrev_table::lookup_abbrev): Move to header file.
5774 (abbrev_table::read): Update.
5775
7d00ffec
TT
57762020-05-27 Tom Tromey <tromey@adacore.com>
5777
5778 * dwarf2/read.c (struct partial_die_info) <name>: Declare new
5779 method.
5780 <canonical_name>: New member.
5781 <raw_name>: Rename from "name".
5782 (partial_die_info): Initialize canonical_name.
5783 (scan_partial_symbols): Check raw_name.
5784 (partial_die_parent_scope, partial_die_full_name)
5785 (add_partial_symbol, add_partial_subprogram)
5786 (add_partial_enumeration, load_partial_dies): Use "name" method.
5787 (partial_die_info::name): New method.
5788 (partial_die_info::read, guess_partial_die_structure_name)
5789 (partial_die_info::fixup): Update.
5790
697bba18
TT
57912020-05-27 Tom Tromey <tromey@adacore.com>
5792
5793 * dwarf2/attribute.h (struct attribute) <form_is_ref>: Inline.
5794 <get_ref_die_offset>: Inline.
5795 <get_ref_die_offset_complaint>: New method.
5796 * dwarf2/attribute.c (attribute::form_is_ref): Move to header.
5797 (attribute::get_ref_die_offset_complaint): Rename from
5798 get_ref_die_offset. Just issue complaint.
5799
c17ace43
HD
58002020-05-27 Hannes Domani <ssbssa@yahoo.de>
5801
5802 * cli/cli-cmds.c (shell_escape): Move exit_status_set_internal_vars.
5803
96445f0b
HD
58042020-05-27 Hannes Domani <ssbssa@yahoo.de>
5805
5806 * exec.c (exec_file_attach): Use errno value of first openp failure.
5807
ac637ec3
HD
58082020-05-27 Hannes Domani <ssbssa@yahoo.de>
5809
5810 * nat/windows-nat.c (windows_thread_info::~windows_thread_info):
5811 Don't close thread handle.
5812
17ee85fc
TT
58132020-05-27 Tom Tromey <tom@tromey.com>
5814 Simon Marchi <simon.marchi@efficios.com>
5815
5816 * objfiles.h (struct objfile) <partial_symtabs>: Now a
5817 shared_ptr.
5818 * dwarf2/read.h (struct dwarf2_per_objfile) <partial_symtabs>: New
5819 member.
5820 * dwarf2/read.c (dwarf2_per_bfd_bfd_data_key,
5821 dwarf2_per_bfd_objfile_data_key>: New globals.
5822 (dwarf2_has_info): Use shared dwarf2_per_bfd if possible.
5823 (dwarf2_get_section_info): Use get_dwarf2_per_objfile.
5824 (dwarf2_initialize_objfile): Consider cases where per_bfd can be
5825 shared.
5826 (dwarf2_build_psymtabs): Set objfile::partial_symtabs and
5827 short-circuit when sharing.
5828 (dwarf2_build_psymtabs): Set dwarf2_per_objfile::partial_symtabs.
5829 (dwarf2_psymtab::expand_psymtab): Use free_cached_comp_units.
5830
39b16f87
SM
58312020-05-27 Simon Marchi <simon.marchi@efficios.com>
5832
5833 * dwarf2/read.h (struct dwarf2_per_bfd) <line_header_hash>: Move
5834 to...
5835 (struct dwarf2_per_objfile) <line_header_hash>: ... here.
5836 * dwarf2/read.c (handle_DW_AT_stmt_list): Update.
5837
fcf23d5b
SM
58382020-05-27 Simon Marchi <simon.marchi@efficios.com>
5839
5840 * dwarf2/read.c (struct mapped_index_base) <symbol_name_at,
5841 build_name_components, find_name_components_bounds>:
5842 Add per_objfile parameter.
5843 (struct mapped_index) <symbol_name_at>: Likewise.
5844 (struct mapped_debug_names): Remove constructor.
5845 <dwarf2_per_objfile>: Remove field.
5846 <namei_to_name, symbol_name_at>: Add per_objfile parameter.
5847 (mapped_index_base::find_name_components_bounds,
5848 mapped_index_base::build_name_components,
5849 dw2_expand_symtabs_matching_symbol): Likewise.
5850 (class mock_mapped_index) <symbol_name_at>: Likewise.
5851 (check_match): Likewise.
5852 (check_find_bounds_finds): Likewise.
5853 (test_mapped_index_find_name_component_bounds): Update.
5854 (CHECK_MATCH): Update.
5855 (dw2_expand_symtabs_matching): Update.
5856 (class dw2_debug_names_iterator) <dw2_debug_names_iterator>: Add
5857 per_objfile parameter.
5858 <find_vec_in_debug_names>: Likewise.
5859 <m_per_objfile>: New field.
5860 (mapped_debug_names::namei_to_name): Add dwarf2_per_objfile
5861 parameter.
5862 (dw2_debug_names_iterator::find_vec_in_debug_names): Likewise.
5863 (dw2_debug_names_iterator::next): Update.
5864 (dw2_debug_names_lookup_symbol): Update.
5865 (dw2_debug_names_expand_symtabs_for_function): Update.
5866 (dw2_debug_names_map_matching_symbols): Update.
5867 (dw2_debug_names_expand_symtabs_matching): Update.
5868 (dwarf2_read_debug_names): Update.
5869
7188ed02
SM
58702020-05-27 Simon Marchi <simon.marchi@efficios.com>
5871
5872 * dwarf2/read.h (struct dwarf2_cu): Forward-declare.
5873 (struct dwarf2_per_bfd) <free_cached_comp_units>: Remove,
5874 move to dwarf2_per_objfile.
5875 <read_in_chain>: Remove.
5876 (struct dwarf2_per_objfile) <get_cu, set_cu, remove_cu,
5877 remove_all_cus, age_comp_units>: New methods.
5878 <m_dwarf2_cus>: New member.
5879 (struct dwarf2_per_cu_data) <cu>: Remove.
5880 * dwarf2/read.c (struct dwarf2_cu) <read_in_chain>: Remove.
5881 (age_cached_comp_units, free_one_cached_comp_unit): Remove,
5882 moved to methods of dwarf2_per_objfile.
5883 (dwarf2_clear_marks): Remove.
5884 (dwarf2_queue_item::~dwarf2_queue_item): Update.
5885 (dwarf2_per_bfd::~dwarf2_per_bfd): Don't free dwarf2_cus.
5886 (dwarf2_per_bfd::free_cached_comp_units): Remove.
5887 (dwarf2_per_objfile::remove_all_cus): New.
5888 (class free_cached_comp_units) <~free_cached_comp_units>:
5889 Update.
5890 (load_cu): Update.
5891 (dw2_do_instantiate_symtab): Adjust.
5892 (fill_in_sig_entry_from_dwo_entry): Adjust.
5893 (cutu_reader::init_tu_and_read_dwo_dies): Update.
5894 (cutu_reader::cutu_reader): Likewise.
5895 (cutu_reader::keep): Use dwarf2_per_objfile::set_cu.
5896 (cutu_reader::cutu_reader): Use dwarf2_per_objfile::get_cu.
5897 (process_psymtab_comp_unit): Use dwarf2_per_objfile::remove_cu
5898 and dwarf2_per_objfile::age_comp_units.
5899 (load_partial_comp_unit): Update.
5900 (maybe_queue_comp_unit): Use dwarf2_per_objfile::get_cu.
5901 (process_queue): Likewise.
5902 (find_partial_die): Use dwarf2_per_objfile::get_cu instead of cu
5903 backlink.
5904 (dwarf2_read_addr_index): Likewise.
5905 (follow_die_offset): Likewise.
5906 (dwarf2_fetch_die_loc_sect_off): Likewise.
5907 (dwarf2_fetch_constant_bytes): Likewise.
5908 (dwarf2_fetch_die_type_sect_off): Likewise.
5909 (follow_die_sig_1): Likewise.
5910 (load_full_type_unit): Likewise.
5911 (read_signatured_type): Likewise.
5912 (dwarf2_cu::dwarf2_cu): Don't set cu field.
5913 (dwarf2_cu::~dwarf2_cu): Remove.
5914 (dwarf2_per_objfile::get_cu): New.
5915 (dwarf2_per_objfile::set_cu): New.
5916 (age_cached_comp_units): Rename to...
5917 (dwarf2_per_objfile::age_comp_units): ... this. Adjust
5918 to std::unordered_map.
5919 (free_one_cached_comp_unit): Rename to...
5920 (dwarf2_per_objfile::remove_cu): ... this. Adjust
5921 to std::unordered_map.
5922 (dwarf2_per_objfile::~dwarf2_per_objfile): New.
5923 (dwarf2_mark_helper): Use dwarf2_per_objfile::get_cu, expect
5924 a dwarf2_per_objfile in data.
5925 (dwarf2_mark): Pass dwarf2_per_objfile in data to htab_traverse.
5926 (dwarf2_clear_marks): Remove.
5927
2e671100
SM
59282020-05-27 Simon Marchi <simon.marchi@efficios.com>
5929
5930 * dwarf2/read.c (class cutu_reader) <cutu_reader>: Replace
5931 `int use_existing_cu` parameter with `dwarf2_cu *existing_cu`.
5932 (init_tu_and_read_dwo_dies): Likewise.
5933 (cutu_reader::init_tu_and_read_dwo_dies): Likewise.
5934 (cutu_reader::cutu_reader): Likewise.
5935 (load_partial_comp_unit): Likewise.
5936 (process_psymtab_comp_unit): Update.
5937 (build_type_psymtabs_1): Update.
5938 (process_skeletonless_type_unit): Update.
5939 (load_full_comp_unit): Update.
5940 (find_partial_die): Update.
5941 (dwarf2_read_addr_index): Update.
5942 (read_signatured_type): Update.
5943
2e6a9f79
SM
59442020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
5945
5946 * dwarf2/read.h (struct dwarf2_per_cu_data) <m_header,
5947 m_header_read_in>: New fields.
5948 <get_header>: New method.
5949 * dwarf2/read.c (per_cu_header_read_in): Remove.
5950 (dwarf2_per_cu_data::get_header): New.
5951 (dwarf2_per_cu_data::addr_size): Update.
5952 (dwarf2_per_cu_data::offset_size): Update.
5953 (dwarf2_per_cu_data::ref_addr_size): Update.
5954
1b555f17
SM
59552020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
5956
5957 * dwarf2/read.c (load_cu): Return dwarf2_cu.
5958 (dw2_do_instantiate_symtab): Update.
5959 (queue_and_load_all_dwo_tus): Change parameter from
5960 dwarf2_per_cu_data to dwarf2_cu.
5961 (dwarf2_fetch_die_loc_sect_off): Update.
5962 (dwarf2_fetch_constant_bytes): Update.
5963 (dwarf2_fetch_die_type_sect_off): Update.
5964
8fc0b21d
SM
59652020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
5966
5967 * dwarf2/read.c (process_full_comp_unit,
5968 process_full_type_unit): Remove per_cu, per_objfile paramters.
5969 Add dwarf2_cu parameter.
5970 (process_queue): Update.
5971
168c9250
SM
59722020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
5973
5974 * dwarf2/read.c (create_cu_from_index_list): Replace
5975 dwarf2_per_objfile parameter with dwarf2_per_bfd.
5976 (create_cus_from_index_list): Likewise.
5977 (create_cus_from_index): Likewise.
5978 (create_signatured_type_table_from_index): Likewise.
5979 (create_cus_from_debug_names_list): Likewise.
5980 (create_cus_from_debug_names): Likewise.
5981 (dwarf2_read_gdb_index): Update.
5982 (dwarf2_read_debug_names): Update.
5983
e286671b
TT
59842020-05-27 Tom Tromey <tom@tromey.com>
5985 Simon Marchi <simon.marchi@efficios.com>
5986
5987 * dwarf2/read.h (struct dwarf2_per_objfile)
5988 <get_type_for_signatured_type, set_type_for_signatured_type>:
5989 New methods.
5990 <m_type_map>: New member.
5991 (struct signatured_type) <type>: Remove.
5992 * dwarf2/read.c
5993 (dwarf2_per_objfile::get_type_for_signatured_type,
5994 dwarf2_per_objfile::set_type_for_signatured_type): New.
5995 (get_signatured_type): Use new methods.
5996
8adb8487
TT
59972020-05-27 Tom Tromey <tom@tromey.com>
5998 Simon Marchi <simon.marchi@efficios.com>
5999
6000 * dwarf2/read.h (struct type_unit_group_unshareable): New.
6001 (struct dwarf2_per_objfile) <type_units>: New member.
6002 <get_type_unit_group_unshareable>: New method.
6003 * dwarf2/read.c (struct type_unit_group) <compunit_symtab,
6004 num_symtabs, symtabs>: Remove; move to
6005 type_unit_group_unshareable.
6006 (dwarf2_per_objfile::get_type_unit_group_unshareable): New.
6007 (process_full_type_unit, dwarf2_cu::setup_type_unit_groups)
6008 (dwarf2_cu::setup_type_unit_groups): Use type_unit_group_unshareable.
6009
127bbf4b
SM
60102020-05-27 Simon Marchi <simon.marchi@efficios.com>
6011
6012 * dwarf2/read.h (struct dwarf2_per_cu_data):
6013 <dwarf2_per_objfile>: Remove.
6014 * dwarf2/read.c (create_cu_from_index_list): Don't assign
6015 dwarf2_per_objfile.
6016 (create_signatured_type_table_from_index): Likewise.
6017 (create_signatured_type_table_from_debug_names): Likewise.
6018 (create_debug_type_hash_table): Likewise.
6019 (fill_in_sig_entry_from_dwo_entry): Likewise.
6020 (create_type_unit_group): Likewise.
6021 (read_comp_units_from_section): Likewise.
6022 (create_cus_hash_table): Likewise.
6023
f6e649dd
SM
60242020-05-27 Simon Marchi <simon.marchi@efficios.com>
6025
6026 * dwarf2/read.c (process_psymtab_comp_unit): Remove reference to
6027 dwarf2_per_cu_data::dwarf2_per_objfile.
6028 (compute_compunit_symtab_includes): Likewise.
6029 (dwarf2_cu::start_symtab): Likewise.
6030
aa66c379
SM
60312020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
6032
6033 * dwarf2/read.h (dwarf2_get_die_type): Add dwarf2_per_objfile
6034 parameter.
6035 * dwarf2/read.c (get_die_type_at_offset): Likewise.
6036 (read_namespace_alias): Update.
6037 (lookup_die_type): Update.
6038 (dwarf2_get_die_type): Add dwarf2_per_objfile parameter.
6039 * dwarf2/loc.c (class dwarf_evaluate_loc_desc) <get_base_type>:
6040 Update.
6041 (disassemble_dwarf_expression): Update.
6042
120ce1b5
SM
60432020-05-27 Simon Marchi <simon.marchi@efficios.com>
6044
6045 * dwarf2/read.h (struct dwarf2_queue_item): Add
6046 dwarf2_per_objfile parameter, assign new parameter.
6047 <per_objfile>: New field.
6048 * dwarf2/read.c (free_one_cached_comp_unit): Add
6049 dwarf2_per_objfile parameter.
6050 (queue_comp_unit): Likewise.
6051 (dw2_do_instantiate_symtab): Update.
6052 (process_psymtab_comp_unit): Update.
6053 (maybe_queue_comp_unit): Add dwarf2_per_objfile parameter.
6054 (process_imported_unit_die): Update.
6055 (queue_and_load_dwo_tu): Update.
6056 (follow_die_offset): Update.
6057 (follow_die_sig_1): Update.
6058
9f47c707
SM
60592020-05-27 Simon Marchi <simon.marchi@efficios.com>
6060
6061 * dwarf2/read.h (struct dwarf2_per_cu_data) <objfile>: Remove.
6062 * dwarf2/read.c (dwarf2_compute_name): Pass per_objfile down.
6063 (read_call_site_scope): Assign per_objfile.
6064 (dwarf2_per_cu_data::objfile): Remove.
6065 * gdbtypes.h (struct call_site) <per_objfile>: New member.
6066 * dwarf2/loc.h (dwarf2_evaluate_loc_desc): Add
6067 dwarf2_per_objfile parameter.
6068 * dwarf2/loc.c (dwarf2_evaluate_loc_desc_full): Add
6069 dwarf2_per_objfile parameter.
6070 (dwarf_expr_reg_to_entry_parameter): Add output
6071 dwarf2_per_objfile parameter.
6072 (locexpr_get_frame_base): Update.
6073 (class dwarf_evaluate_loc_desc) <get_tls_address>: Update.
6074 <push_dwarf_reg_entry_value>: Update.
6075 <call_site_to_target_addr>: Update.
6076 (dwarf_entry_parameter_to_value): Add dwarf2_per_objfile
6077 parameter.
6078 (value_of_dwarf_reg_entry): Update.
6079 (rw_pieced_value): Update.
6080 (indirect_synthetic_pointer): Update.
6081 (dwarf2_evaluate_property): Update.
6082 (dwarf2_loc_desc_get_symbol_read_needs): Add dwarf2_per_objfile
6083 parameter.
6084 (locexpr_read_variable): Update.
6085 (locexpr_get_symbol_read_needs): Update.
6086 (loclist_read_variable): Update.
6087
14095eb3
SM
60882020-05-27 Simon Marchi <simon.marchi@efficios.com>
6089
6090 * dwarf2/read.h (dwarf2_fetch_die_loc_sect_off,
6091 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
6092 dwarf2_fetch_die_type_sect_off): Add dwarf2_per_objfile
6093 parameter.
6094 * dwarf2/read.c (dwarf2_fetch_die_loc_sect_off,
6095 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
6096 dwarf2_fetch_die_type_sect_off): Add dwarf2_per_objfile
6097 parameter.
6098 * dwarf2/loc.c (indirect_synthetic_pointer, per_cu_dwarf_call,
6099 sect_variable_value): Add dwarf2_per_objfile parameter.
6100 (class dwarf_evaluate_loc_desc) <dwarf_call,
6101 dwarf_variable_value>: Update.
6102 (fetch_const_value_from_synthetic_pointer): Add
6103 dwarf2_per_objfile parameter.
6104 (fetch_const_value_from_synthetic_pointer): Update.
6105 (coerced_pieced_ref): Update.
6106 (class symbol_needs_eval_context) <dwarf_call,
6107 dwarf_variable_value>: Update.
6108 (dwarf2_compile_expr_to_ax): Update.
6109
3c3cd3d4
SM
61102020-05-27 Simon Marchi <simon.marchi@efficios.com>
6111
6112 * dwarf2/loc.c (allocate_piece_closure): Add dwarf2_per_objfile
6113 parameter.
6114 (dwarf2_evaluate_loc_desc_full): Update.
6115
82ca3f51
SM
61162020-05-27 Simon Marchi <simon.marchi@efficios.com>
6117
6118 * dwarf2/read.h (dwarf2_read_addr_index): Add dwarf2_per_objfile
6119 parameter.
6120 * dwarf2/read.c (dwarf2_read_addr_index): Likewise.
6121 * dwarf2/loc.c (decode_debug_loclists_addresses): Add
6122 dwarf2_per_objfile parameter.
6123 (decode_debug_loc_dwo_addresses): Likewise.
6124 (dwarf2_find_location_expression): Update.
6125 (class dwarf_evaluate_loc_desc) <get_addr_index>: Update.
6126 (locexpr_describe_location_piece): Add dwarf2_per_objfile
6127 parameter.
6128 (disassemble_dwarf_expression): Add dwarf2_per_objfile
6129 parameter.
6130 (locexpr_describe_location_1): Likewise.
6131 (locexpr_describe_location): Update.
6132
4b167ea1
SM
61332020-05-27 Simon Marchi <simon.marchi@efficios.com>
6134
6135 * dwarf2/read.h (struct dwarf2_per_cu_data) <text_offset>:
6136 Remove.
6137 * dwarf2/read.c (dwarf2_per_cu_data::text_offset): Remove.
6138 * dwarf2/loc.c (dwarf2_find_location_expression): Update.
6139 (dwarf2_compile_property_to_c): Update.
6140 (dwarf2_compile_expr_to_ax): Add dwarf2_per_objfile parameter,
6141 use text offset from objfile.
6142 (locexpr_tracepoint_var_ref): Update.
6143 (locexpr_generate_c_location): Update.
6144 (loclist_describe_location): Update.
6145 (loclist_tracepoint_var_ref): Update.
6146 * dwarf2/compile.h (compile_dwarf_bounds_to_c): Add
6147 dwarf2_per_objfile parameter.
6148 * dwarf2/loc2c.c (do_compile_dwarf_expr_to_c): Likewise,
6149 use text offset from objfile.
6150 (compile_dwarf_expr_to_c): Add dwarf2_per_objfile parameter.
6151
89b07335
SM
61522020-05-27 Simon Marchi <simon.marchi@efficios.com>
6153
6154 * dwarf2/expr.h (struct dwarf_expr_context)
6155 <dwarf_expr_context>: Add dwarf2_per_objfile parameter.
6156 <offset>: Remove.
6157 <per_objfile>: New member.
6158 * dwarf2/expr.c (dwarf_expr_context::dwarf_expr_context): Add
6159 dwarf2_per_objfile parameter. Don't set offset, set
6160 per_objfile.
6161 (dwarf_expr_context::execute_stack_op): Use offset from objfile.
6162 * dwarf2/frame.c (dwarf2_frame_find_fde): Return (by parameter)
6163 a dwarf2_per_objfile object instead of an offset.
6164 (class dwarf_expr_executor) <dwarf_expr_executor>: Add
6165 constructor.
6166 (execute_stack_op): Add dwarf2_per_objfile parameter, pass it
6167 to dwarf2_expr_executor constructor. Don't set offset.
6168 (dwarf2_fetch_cfa_info): Update.
6169 (struct dwarf2_frame_cache) <text_offset>: Remove.
6170 <per_objfile>: New field.
6171 (dwarf2_frame_cache): Update.
6172 (dwarf2_frame_prev_register): Update.
6173 * dwarf2/loc.c (class dwarf_evaluate_loc_desc)
6174 <dwarf_evaluate_loc_desc>: Add constructor.
6175 (dwarf2_evaluate_loc_desc_full): Update.
6176 (dwarf2_locexpr_baton_eval): Update.
6177 (class symbol_needs_eval_context) <symbol_needs_eval_context>:
6178 Add constructor.
6179 (dwarf2_loc_desc_get_symbol_read_needs): Update.
6180
293e7e51
SM
61812020-05-27 Simon Marchi <simon.marchi@efficios.com>
6182
6183 * dwarf2/read.h (struct dwarf2_per_cu_data) <addr_type,
6184 addr_sized_int_type>: Move to dwarf2_cu.
6185 <int_type>: Move to dwarf2_per_objfile.
6186 (struct dwarf2_per_objfile) <int_type>: Move here.
6187 * dwarf2/read.c (struct dwarf2_cu) <addr_type,
6188 addr_sized_int_type>: Move here.
6189 (read_func_scope): Update.
6190 (read_array_type): Update.
6191 (read_tag_string_type): Update.
6192 (attr_to_dynamic_prop): Update.
6193 (dwarf2_per_cu_data::int_type): Rename to...
6194 (dwarf2_per_objfile::int_type): ... this.
6195 (dwarf2_per_cu_data::addr_sized_int_type): Rename to...
6196 (dwarf2_cu::addr_sized_int_type): ... this.
6197 (read_subrange_type): Update.
6198 (dwarf2_per_cu_data::addr_type): Rename to...
6199 (dwarf2_cu::addr_type): ... this.
6200 (set_die_type): Update.
6201
64874a40
SM
62022020-05-27 Simon Marchi <simon.marchi@efficios.com>
6203
6204 * dwarf2/read.c (queue_and_load_all_dwo_tus): Access per_objfile
6205 data through per_cu->cu.
6206
4ab09049
SM
62072020-05-27 Simon Marchi <simon.marchi@efficios.com>
6208
6209 * dwarf2/read.c (lookup_dwo_comp_unit): Change
6210 dwarf2_per_cu_data parameter fo dwarf2_cu.
6211 (lookup_dwo_type_unit): Likewise.
6212 (read_cutu_die_from_dwo): Likewise.
6213 (lookup_dwo_unit): Likewise.
6214 (open_and_init_dwo_file): Likewise.
6215 (lookup_dwo_cutu): Likewise.
6216 (lookup_dwo_comp_unit): Likewise.
6217 (lookup_dwo_type_unit): Likewise.
6218 (cutu_reader::init_tu_and_read_dwo_dies): Update.
6219 (cutu_reader::cutu_reader): Update.
6220
47b14e86
SM
62212020-05-27 Simon Marchi <simon.marchi@efficios.com>
6222
6223 * dwarf2/read.c (process_full_comp_unit): Add dwarf2_per_objfile
6224 parameter.
6225 (process_full_type_unit): Likewise.
6226 (process_queue): Update.
6227
43182c09
SM
62282020-05-27 Simon Marchi <simon.marchi@efficios.com>
6229
6230 * dwarf2/read.c (recursively_compute_inclusions): Add
6231 dwarf2_per_objfile parameter.
6232 (compute_compunit_symtab_includes): Likewise.
6233 (process_cu_includes): Update.
6234
7aa104c4
SM
62352020-05-27 Simon Marchi <simon.marchi@efficios.com>
6236
6237 * dwarf2/read.c (create_partial_symtab): Add dwarf2_per_objfile
6238 parameter.
6239 (create_type_unit_group): Update.
6240 (process_psymtab_comp_unit_reader): Update.
6241 (build_type_psymtabs_reader): Update.
6242
e3beb21d
SM
62432020-05-27 Simon Marchi <simon.marchi@efficios.com>
6244
6245 * dwarf2/read.c (cutu_reader::keep): Access dwarf2_per_objfile
6246 object through m_this_cu->cu.
6247
d460f660
SM
62482020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
6249
6250 * dwarf2/read.c (queue_and_load_dwo_tu): Expect a dwarf2_cu as
6251 the info parameter.
6252 (queue_and_load_all_dwo_tus): Pass per_cu->cu.
6253
ab432490
SM
62542020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
6255
6256 * dwarf2/read.c (class cutu_reader) <cutu_reader>: Add
6257 per_objfile parameter.
6258 (load_full_type_unit): Add per_objfile parameter.
6259 (read_signatured_type): Likewise.
6260 (load_full_comp_unit): Likewise.
6261 (load_cu): Likewise.
6262 (dw2_do_instantiate_symtab): Likewise.
6263 (dw2_get_file_names): Likewise.
6264 (dw2_map_symtabs_matching_filename): Update.
6265 (dw_expand_symtabs_matching_file_matcher): Update.
6266 (dw2_map_symbol_filenames): Update.
6267 (process_psymtab_comp_unit): Add per_objfile parameter.
6268 (build_type_psymtabs_1): Update.
6269 (process_skeletonless_type_unit): Update.
6270 (dwarf2_build_psymtabs_hard): Update.
6271 (load_partial_comp_unit): Add per_objfile parameter.
6272 (scan_partial_symbols): Update.
6273 (load_full_comp_unit): Add per_objfile parameter.
6274 (process_imported_unit_die): Update.
6275 (create_cus_hash_table): Update.
6276 (find_partial_die): Update.
6277 (dwarf2_read_addr_index): Update.
6278 (follow_die_offset): Update.
6279 (dwarf2_fetch_die_loc_sect_off): Update.
6280 (dwarf2_fetch_constant_bytes): Update.
6281 (dwarf2_fetch_die_type_sect_off): Update.
6282 (follow_die_sig_1): Update.
6283 (load_full_type_unit): Add per_objfile parameter.
6284 (read_signatured_type): Likewise.
6285
313bad1b
SM
62862020-05-27 Simon Marchi <simon.marchi@efficios.com>
6287
6288 * dwarf2/read.c (lookup_dwo_unit): Use bfd_get_filename instead
6289 of objfile_name.
6290
c3699833
SM
62912020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
6292
6293 * dwarf2/read.h (struct dwarf2_per_bfd) <obfd>: New member.
6294 (dwarf2_get_dwz_file): Replace parameter with dwarf2_per_bfd.
6295 * dwarf2/read.c (dwarf2_per_bfd::dwarf2_per_bfd): Assign obfd
6296 field.
6297 (dwarf2_get_dwz_file): Replace parameter with dwarf2_per_bfd.
6298 (create_cus_from_index): Update.
6299 (dwarf2_read_gdb_index): Update.
6300 (create_cus_from_debug_names): Update.
6301 (dwarf2_read_debug_names): Update.
6302 (get_abbrev_section_for_cu): Update.
6303 (create_all_comp_units): Update.
6304 (read_attribute_value): Update.
6305 (get_debug_line_section): Update.
6306 * dwarf2/index-cache.c (index_cache::store): Update.
6307 * dwarf2/index-write.c (save_gdb_index_command): Update.
6308 * dwarf2/macro.c (dwarf_decode_macro_bytes): Update.
6309
1859c670
SM
63102020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
6311
6312 * dwarf2/read.h (struct dwarf2_per_cu_data) <per_bfd>: New
6313 member.
6314 * dwarf2/read.c (dwarf2_per_bfd::allocate_per_cu): Initialize
6315 dwarf2_per_cu_data::per_bfd.
6316 (dwarf2_per_bfd::allocate_signatured_type): Likewise.
6317 (create_type_unit_group): Likewise.
6318 (queue_comp_unit): Remove reference to
6319 per_cu->dwarf2_per_objfile.
6320 (maybe_queue_comp_unit): Likewise.
6321 (fill_in_sig_entry_from_dwo_entry): Assign new field.
6322 (create_cus_hash_table): Assign new field.
6323
5e22e966
SM
63242020-05-27 Simon Marchi <simon.marchi@efficios.com>
6325
6326 * dwarf2/read.c: Replace
6327 dwarf2_cu->per_cu->dwarf2_per_objfile references with
6328 dwarf2_cu->per_objfile throughout.
6329
97a1449a
SM
63302020-05-27 Simon Marchi <simon.marchi@efficios.com>
6331
6332 * dwarf2/read.c (dw2_do_instantiate_symtab): Add per_objfile
6333 parameter, don't use per_cu->dwarf2_per_objfile.
6334 (dw2_instantiate_symtab): Likewise.
6335 (dw2_find_last_source_symtab): Update.
6336 (dw2_map_expand_apply): Update.
6337 (dw2_lookup_symbol): Update.
6338 (dw2_expand_symtabs_for_function): Update.
6339 (dw2_expand_all_symtabs): Update.
6340 (dw2_expand_symtabs_with_fullname): Update.
6341 (dw2_expand_symtabs_matching_one): Add per_objfile parameter,
6342 don't use per_cu->dwarf2_per_objfile.
6343 (dw2_expand_marked_cus): Update.
6344 (dw2_find_pc_sect_compunit_symtab): Update.
6345 (dw2_debug_names_lookup_symbol): Update.
6346 (dw2_debug_names_expand_symtabs_for_function): Update.
6347 (dw2_debug_names_map_matching_symbols): Update.
6348 (dwarf2_psymtab::expand_psymtab): Update.
6349
9e021579
SM
63502020-05-27 Simon Marchi <simon.marchi@efficios.com>
6351
6352 * dwarf2/read.c (struct dwarf2_cu) <dwarf2_cu>: Add parameter.
6353 <per_objfile>: New member.
6354 (class cutu_reader) <init_tu_and_read_dwo_dies>: Add parameter.
6355 (cutu_reader::init_tu_and_read_dwo_dies): Add parameter, update
6356 call to dwarf2_cu.
6357 (cutu_reader::cutu_reader): Update.
6358 (dwarf2_cu::dwarf2_cu): Add parameter, initialize per_objfile.
6359
ae090bdb
SM
63602020-05-27 Simon Marchi <simon.marchi@efficios.com>
6361
6362 * dwarf2/read.h (struct dwarf2_per_bfd) <die_type_hash>: Move to
6363 struct dwarf2_per_objfile.
6364 (struct dwarf2_per_objfile) <die_type_hash>: Move from struct
6365 dwarf2_per_bfd.
6366 * dwarf2/read.c (set_die_type): Update.
6367 (get_die_type_at_offset): Update.
6368
af758d11
SM
63692020-05-27 Tom Tromey <tom@tromey.com>
6370 Simon Marchi <simon.marchi@efficios.com>
6371
6372 * dwarf2/read.h (struct dwarf2_per_bfd) <num_psymtabs>: New
6373 method.
6374 (struct dwarf2_per_objfile) <resize_symtabs, symtab_set_p,
6375 get_symtab, set_symtab>: New methods.
6376 <m_symtabs>: New field.
6377 (struct dwarf2_psymtab): Derive from partial_symtab.
6378 <readin_p, get_compunit_symtab>: Declare methods.
6379 * dwarf2/read.c (dwarf2_per_objfile::symtab_set_p,
6380 dwarf2_per_objfile::get_symtab, dwarf2_per_objfile::set_symtab):
6381 New methods.
6382 (struct dwarf2_per_cu_quick_data) <compunit_symtab>: Remove.
6383 (dw2_do_instantiate_symtab, dw2_instantiate_symtab)
6384 (dw2_map_expand_apply, dw2_map_symtabs_matching_filename)
6385 (dw2_symtab_iter_next, dw2_print_stats)
6386 (dw2_expand_symtabs_with_fullname)
6387 (dw2_expand_symtabs_matching_one)
6388 (dw_expand_symtabs_matching_file_matcher)
6389 (dw2_find_pc_sect_compunit_symtab, dw2_map_symbol_filenames)
6390 (dw2_debug_names_iterator::next)
6391 (dw2_debug_names_map_matching_symbols)
6392 (fill_in_sig_entry_from_dwo_entry, dwarf2_psymtab::read_symtab)
6393 (process_queue, dwarf2_psymtab::expand_psymtab): Update.
6394 (dwarf2_psymtab::readin_p, dwarf2_psymtab::get_compunit_symtab):
6395 New methods.
6396 (get_compunit_symtab, process_full_comp_unit)
6397 (process_full_type_unit): Update.
6398 (dwarf2_build_psymtabs, dwarf2_initialize_objfile, add_type_unit): Call
6399
5989a64e
SM
64002020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
6401
6402 * dwarf2/read.h (dwarf2_per_objfile): Rename to dwarf2_per_bfd,
6403 then introduce a new dwarf2_per_objfile type.
6404 <read_line_string>: Move to the new dwarf2_per_objfile type.
6405 <objfile>: Likewise.
6406 (dwarf2_per_bfd): Rename dwarf2_per_objfile to this.
6407 * dwarf2/read.c: Replace references to dwarf2_per_objfile with
6408 dwarf2_per_objfile->per_bfd.
6409 (dwarf2_per_objfile::dwarf2_per_objfile): Rename to...
6410 (dwarf2_per_bfd::dwarf2_per_bfd): ... this.
6411 (dwarf2_per_objfile::free_cached_comp_units): Rename to...
6412 (dwarf2_per_bfd::free_cached_comp_units): ... this.
6413 (dwarf2_has_info): Allocate dwarf2_per_bfd.
6414 (dwarf2_per_objfile::locate_sections): Rename to...
6415 (dwarf2_per_bfd::locate_sections): ... this.
6416 (dwarf2_per_objfile::get_cutu): Rename to...
6417 (dwarf2_per_bfd::get_cutu): ... this.
6418 (dwarf2_per_objfile::get_cu): Rename to...
6419 (dwarf2_per_bfd::get_cu): ... this.
6420 (dwarf2_per_objfile::get_tu): Rename to...
6421 (dwarf2_per_bfd::get_tu): ... this.
6422 (dwarf2_per_objfile::allocate_per_cu): Rename to...
6423 (dwarf2_per_bfd::allocate_per_cu): ... this.
6424 (dwarf2_per_objfile::allocate_signatured_type): Rename to...
6425 (dwarf2_per_bfd::allocate_signatured_type): ... this.
6426 (get_gdb_index_contents_ftype): Change parameter from
6427 dwarf2_per_objfile to dwarf2_per_bfd.
6428 * dwarf2/macro.c, dwarf2/index-write.c: Replace references to
6429 dwarf2_per_objfile with dwarf2_per_objfile->per_bfd.
6430
a50264ba
TT
64312020-05-27 Tom Tromey <tom@tromey.com>
6432 Simon Marchi <simon.marchi@efficios.com>
6433
6434 * dwarf2/loc.c (struct piece_closure) <per_objfile>: New member.
6435 (allocate_piece_closure): Set "per_objfile" member.
6436 (dwarf2_find_location_expression, dwarf2_locexpr_baton_eval)
6437 (locexpr_describe_location, loclist_describe_location): Use new
6438 member.
6439 * dwarf2/read.c (read_call_site_scope)
6440 (mark_common_block_symbol_computed, attr_to_dynamic_prop)
6441 (dwarf2_const_value_attr, dwarf2_fetch_die_loc_sect_off)
6442 (fill_in_loclist_baton, dwarf2_symbol_mark_computed,
6443 handle_data_member_location): Set per_objfile member.
6444 * dwarf2/loc.h (struct dwarf2_locexpr_baton) <per_objfile>: New
6445 member.
6446 (struct dwarf2_loclist_baton) <per_objfile>: New member.
6447
d3473f0c
TT
64482020-05-27 Tom Tromey <tom@tromey.com>
6449
6450 * dwarf2/read.h (struct dwarf2_per_objfile) <allocate_per_cu,
6451 allocate_signatured_type>: Declare new methods.
6452 <m_num_psymtabs>: New member.
6453 (struct dwarf2_per_cu_data) <index>: New member.
6454 * dwarf2/read.c (dwarf2_per_objfile::allocate_per_cu)
6455 (dwarf2_per_objfile::allocate_signatured_type): New methods.
6456 (create_cu_from_index_list): Use allocate_per_cu.
6457 (create_signatured_type_table_from_index)
6458 (create_signatured_type_table_from_debug_names)
6459 (create_debug_type_hash_table, add_type_unit)
6460 (read_comp_units_from_section): Use allocate_signatured_type.
6461
5717c425
TT
64622020-05-27 Tom Tromey <tom@tromey.com>
6463
6464 * psymtab.c (partial_map_expand_apply)
6465 (psym_find_pc_sect_compunit_symtab, psym_lookup_symbol)
6466 (psym_lookup_global_symbol_language)
6467 (psymtab_to_symtab, psym_find_last_source_symtab, dump_psymtab)
6468 (psym_print_stats, psym_expand_symtabs_for_function)
6469 (psym_map_symbol_filenames, psym_map_matching_symbols)
6470 (psym_expand_symtabs_matching)
6471 (partial_symtab::read_dependencies, maintenance_info_psymtabs)
6472 (maintenance_check_psymtabs): Update.
6473 * psympriv.h (struct partial_symtab) <readin_p,
6474 get_compunit_symtab>: Add objfile parameter.
6475 (struct standard_psymtab) <readin_p, get_compunit_symtab>:
6476 Likewise.
6477 * dwarf2/read.c (struct dwarf2_include_psymtab) <readin_p,
6478 get_compunit_symtab>: Likewise.
6479 (dwarf2_psymtab::expand_psymtab): Pass objfile argument.
6480
45940949
TT
64812020-05-27 Tom Tromey <tom@tromey.com>
6482
6483 * dwarf2/read.h (struct dwarf2_per_objfile) <obstack>: New
6484 member.
6485 * dwarf2/read.c (delete_file_name_entry): Fix comment.
6486 (create_cu_from_index_list)
6487 (create_signatured_type_table_from_index)
6488 (create_signatured_type_table_from_debug_names)
6489 (dw2_get_file_names_reader, dwarf2_initialize_objfile)
6490 (dwarf2_create_include_psymtab)
6491 (create_debug_type_hash_table, add_type_unit)
6492 (create_type_unit_group, read_comp_units_from_section)
6493 (dwarf2_compute_name, create_cus_hash_table)
6494 (create_dwp_hash_table, create_dwo_unit_in_dwp_v1)
6495 (create_dwo_unit_in_dwp_v2, open_and_init_dwp_file): Use new
6496 obstack.
6497 (dw2_get_real_path): Likewise. Change argument to
6498 dwarf2_per_objfile.
6499
f8c6d152
LM
65002020-05-27 Luis Machado <luis.machado@linaro.org>
6501
6502 PR tdep/26000
6503 * arm-tdep.c (thumb_analyze_prologue): Fix instruction matching
6504 for ldrd (immediate).
6505
e98d2e6d
PW
65062020-05-26 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6507
6508 * command.h: Add comment giving the name of class_tui.
6509 * cli/cli-cmds.c (_initialize_cli_cmds): If TUI defined,
6510 create the fake command for the help for class_tui.
6511
53a47a3e
TT
65122020-05-26 Tom Tromey <tromey@adacore.com>
6513
6514 * ada-lang.c (ada_print_array_index): Change type. Call val_atr.
6515 (ada_value_ptr_subscript): Don't call pos_atr on the lower bound.
6516 (val_atr): New function.
6517 (value_val_atr): Use it.
6518 * ada-valprint.c (print_optional_low_bound): Change low bound
6519 handling for enums.
6520 (val_print_packed_array_elements): Don't call discrete_position.
6521 * gdbtypes.c (get_discrete_bounds) <TYPE_CODE_RANGE>: Call
6522 discrete_position for enum types.
6523 * language.c (default_print_array_index): Change type.
6524 * language.h (struct language_defn) <la_print_array_index>: Add
6525 index_type parameter, change type of index_value.
6526 (LA_PRINT_ARRAY_INDEX): Add index_type parameter.
6527 (default_print_array_index): Update.
6528 * valprint.c (maybe_print_array_index): Don't call
6529 value_from_longest. Update.
6530 (value_print_array_elements): Don't call discrete_position.
6531
0bc2354b
TT
65322020-05-26 Tom Tromey <tromey@adacore.com>
6533
6534 * ada-lang.c (value_val_atr): Handle TYPE_CODE_RANGE.
6535 * gdbtypes.c (discrete_position): Handle TYPE_CODE_RANGE.
6536
1218a4bf
CDA
65372020-05-25 Cristiano De Alti <cristiano_dealti@hotmail.com>
6538
6539 PR gdb/13519
6540 * avr-tdep.c (avr_integer_to_address): Return data or code
6541 address accordingly to the second 'type' argument of the
6542 function.
6543
92651b1d
MW
65442020-05-25 Michael Weghorn <m.weghorn@posteo.de>
6545
6546 * infcmd.c, inferior.h: (construct_inferior_arguments):
6547 Moved function from here to gdbsupport/common-inferior.{h,cc}
6548
0a4f5f8c
TT
65492020-05-23 Tom Tromey <tom@tromey.com>
6550
6551 Revert commit eca1f90c:
6552 * NEWS: Remove entry for completion styling.
6553 * completer.c (_rl_completion_prefix_display_length): Move
6554 declaration later.
6555 (gdb_fnprint): Revert.
6556 (gdb_display_match_list_1): Likewise.
6557 * cli/cli-style.c (completion_prefix_style)
6558 (completion_difference_style, completion_suffix_style): Remove.
6559 (_initialize_cli_style): Revert.
6560 * cli/cli-style.h (completion_prefix_style)
6561 (completion_difference_style, completion_suffix_style): Don't
6562 declare.
6563
e08bd6c5
PA
65642020-05-24 Pedro Alves <palves@redhat.com>
6565
6566 * symtab.c (completion_list_add_name): Return boolean indication
6567 of whether the symbol matched.
6568 (completion_list_add_symbol): Don't try to remove C++ aliases if
6569 the symbol didn't match in the first place.
6570 * symtab.h (completion_list_add_name): Return bool.
6571
ceacbf6e
SM
65722020-05-23 Simon Marchi <simon.marchi@polymtl.ca>
6573
6574 * gdbtypes.h (TYPE_FIELD): Remove. Replace all uses with
6575 type::field.
6576
26f16254
JB
65772020-05-23 Joel Brobecker <brobecker@adacore.com>
6578
6579 GDB 9.2 released.
6580
eca1f90c
TT
65812020-05-23 Tom Tromey <tom@tromey.com>
6582
6583 * NEWS: Add entry for completion styling.
6584 * completer.c (_rl_completion_prefix_display_length): Move
6585 declaration earlier.
6586 (gdb_fnprint): Use completion_style.
6587 (gdb_display_match_list_1): Likewise.
6588 * cli/cli-style.c (completion_prefix_style)
6589 (completion_difference_style, completion_suffix_style): New
6590 globals.
6591 (_initialize_cli_style): Register new globals.
6592 * cli/cli-style.h (completion_prefix_style)
6593 (completion_difference_style, completion_suffix_style): Declare.
6594
51e2cfa2
PA
65952020-05-23 Pedro Alves <palves@redhat.com>
6596
6597 * utils.c: Include "gdbsupport/gdb-safe-ctype.h".
6598 (parse_escape): Use ISDIGIT instead of isdigit.
6599 (puts_debug): Use gdb_isprint instead of isprint.
6600 (fprintf_symbol_filtered): Use ISALNUM instead of isalnum.
6601 (cp_skip_operator_token, skip_ws, strncmp_iw_with_mode): Use
6602 ISSPACE instead of isspace.
6603 (strncmp_iw_with_mode): Use TOLOWER instead of tolower and ISSPACE
6604 instead of isspace.
6605 (strcmp_iw_ordered): Use ISSPACE instead of isspace.
6606 (string_to_core_addr): Use TOLOWER instead of tolower, ISXDIGIT
6607 instead of isxdigit and ISDIGIT instead of isdigit.
6608
80fc5e77
SM
66092020-05-22 Simon Marchi <simon.marchi@efficios.com>
6610
6611 * gdbtypes.h (struct type) <field>: New method.
6612 (TYPE_FIELDS): Remove, replace all uses with either type::fields
6613 or type::field.
6614
3cabb6b0
SM
66152020-05-22 Simon Marchi <simon.marchi@efficios.com>
6616
6617 * gdbtypes.h (struct type) <fields, set_fields>: New methods.
6618 (TYPE_FIELDS): Use type::fields. Change all call sites that
6619 modify the propery to use type::set_fields instead.
6620
1f704f76
SM
66212020-05-22 Simon Marchi <simon.marchi@efficios.com>
6622
6623 * gdbtypes.h (TYPE_NFIELDS): Remove. Change all cal sites to use
6624 type::num_fields instead.
6625
5e33d5f4
SM
66262020-05-22 Simon Marchi <simon.marchi@efficios.com>
6627
6628 * gdbtypes.h (struct type) <num_fields, set_num_fields>: New
6629 methods.
6630 (TYPE_NFIELDS): Use type::num_fields. Change all call sites
6631 that modify the number of fields to use type::set_num_fields
6632 instead.
6633
9392ebb3
TT
66342020-05-22 Tom Tromey <tromey@adacore.com>
6635
6636 * compile/compile-object-load.h (munmap_list_free): Don't
6637 declare.
6638
7c13f4e8
AB
66392020-05-22 Andrew Burgess <andrew.burgess@embecosm.com>
6640
6641 * annotate.c (annotate_source_line): Update return type, add call
6642 to update current symtab and line.
6643 * annotate.h (annotate_source_line): Update return type, and
6644 extend header comment.
6645 * source.c (info_line_command): Check annotation_level before
6646 calling annotate_source_line.
6647 * stack.c (print_frame_info): If calling annotate_source_line
6648 returns true, then don't print any other source line information.
6649
aa370940
SM
66502020-05-21 Simon Marchi <simon.marchi@efficios.com>
6651
6652 * lm32-tdep.c (lm32_register_reggroup_p): Fix condition.
6653
84d53fa9
SM
66542020-05-21 Simon Marchi <simon.marchi@efficios.com>
6655
6656 * coffread.c (patch_type): Remove NULL check before xfree.
6657 * corefile.c (set_gnutarget): Likewise.
6658 * cp-abi.c (set_cp_abi_as_auto_default): Likewise.
6659 * exec.c (build_section_table): Likewise.
6660 * remote.c (remote_target::pass_signals): Likewise.
6661 * utils.c (n_spaces): Likewise.
6662 * cli/cli-script.c (document_command): Likewise.
6663 * i386-windows-tdep.c (core_process_module_section): Likewise.
6664 * linux-fork.c (struct fork_info) <~fork_info>: Likewise.
6665
9d428aae
SM
66662020-05-20 Simon Marchi <simon.marchi@efficios.com>
6667
6668 * symfile.c (reread_symbols): Clear objfile's section_offsets
6669 vector and section indices, re-compute them by calling
6670 sym_offsets.
6671
250106a7
TT
66722020-05-20 Tom Tromey <tromey@adacore.com>
6673
6674 * ada-lang.c (bound_name, MAX_ADA_DIMENS): Remove.
ec16513e 6675 (desc_one_bound, desc_index_type): Compute field name.
250106a7 6676
9a0bacfb
TV
66772020-05-20 Tom de Vries <tdevries@suse.de>
6678
6679 PR symtab/25833
6680 * dwarf2/read.c (dw2_map_matching_symbols): Handle .gdb_index.
6681
7b958a48
AM
66822020-05-20 Alan Modra <amodra@gmail.com>
6683
6684 PR 25993
6685 * solib-darwin.c (darwin_bfd_open): Don't strdup pathname for
6686 bfd_set_filename.
6687 * solib-aix.c (solib_aix_bfd_open): Use std::string for name
6688 passed to bfd_set_filename.
6689 * symfile-mem.c (add_vsyscall_page): Likewise for string
6690 passed to symbol_file_add_from_memory.
6691 (symbol_file_add_from_memory): Make name param a const char* and
6692 don't strdup.
6693
c7e97679
AM
66942020-05-20 Alan Modra <amodra@gmail.com>
6695
6696 * coff-pe-read.c (read_pe_exported_syms): Use bfd_get_filename
6697 rather than accessing bfd->filename directly.
6698 * dtrace-probe.c (dtrace_static_probe_ops::get_probes): Likewise,
6699 and use bfd_section_name.
6700 * dwarf2/frame.c (decode_frame_entry): Likewise.
6701 * exec.c (exec_set_section_address): Likewise.
6702 * solib-aix.c (solib_aix_bfd_open): Likewise.
6703 * stap-probe.c (get_stap_base_address): Likewise.
6704 * symfile.c (reread_symbols): Likewise.
6705
563c591b
TT
67062020-05-19 Tom Tromey <tromey@adacore.com>
6707
6708 * sparc64-tdep.c (adi_tag_fd): Update call to target_fileio_open.
6709
f408d82c
SM
67102020-05-19 Simon Marchi <simon.marchi@efficios.com>
6711
6712 * dwarf2/read.c (quirk_rust_enum): Allocate enough fields.
6713
98c59b52
PA
67142020-05-19 Pedro Alves <palves@redhat.com>
6715
6716 * NEWS (set exec-file-mismatch): Adjust entry.
6717 * exec.c: Include "build-id.h".
6718 (validate_exec_file): Try to match build IDs instead of filenames.
6719 * gdb_bfd.c (struct gdb_bfd_open_closure): New.
6720 (gdb_bfd_iovec_fileio_open): Adjust to use gdb_bfd_open_closure
6721 and pass down 'warn_if_slow'.
6722 (gdb_bfd_open): Add 'warn_if_slow' parameter. Use
6723 gdb_bfd_open_closure to pass it down.
6724 * gdb_bfd.h (gdb_bfd_open): Add 'warn_if_slow' parameter.
6725
4111f652
PA
67262020-05-19 Pedro Alves <palves@redhat.com>
6727
6728 * gdb_bfd.c (gdb_bfd_iovec_fileio_open): Adjust.
6729 * target.c (target_fileio_open_1): Rename to target_fileio_open
6730 and make extern. Use bool.
6731 (target_fileio_open, target_fileio_open_warn_if_slow): Delete.
6732 (target_fileio_read_alloc_1): Adjust.
6733 * target.h (target_fileio_open): Add 'warn_if_slow' parameter.
6734 (target_fileio_open_warn_if_slow): Delete declaration.
6735
ad80db5b
PA
67362020-05-19 Pedro Alves <palves@redhat.com>
6737
6738 * gdb_bfd.h: (gdb_bfd_open): Default to 'fd' parameter to -1.
6739 Adjust all callers.
6740
1d6ce4d3
YS
67412020-05-19 Yoshinori Sato <ysato@users.sourceforge.jp>
6742
6743 * h8300-tdep.c (h8300_is_argument_spill): Change how we check
6744 whether disp is negative.
6745
9005fbbb
SM
67462020-05-19 Simon Marchi <simon.marchi@efficios.com>
6747
6748 * symfile.h (struct symfile_segment_data)
6749 <~symfile_segment_data>: Remove.
6750 <segment_info>: Change to std::vector.
6751 * symfile.c (default_symfile_segments): Update.
6752 * elfread.c (elf_symfile_segments): Update.
6753
68b888ff
SM
67542020-05-19 Simon Marchi <simon.marchi@efficios.com>
6755
6756 * symfile.h (struct symfile_segment_data) <struct segment>: New.
6757 <segments>: New.
6758 <segment_bases, segment_sizes>: Remove.
6759 * symfile.c (default_symfile_segments): Update.
6760 * elfread.c (elf_symfile_segments): Update.
6761 * remote.c (remote_target::get_offsets): Update.
6762 * solib-target.c (solib_target_relocate_section_addresses):
6763 Update.
6764
62982abd
SM
67652020-05-19 Simon Marchi <simon.marchi@efficios.com>
6766
6767 * symfile.h (struct symfile_segment_data): Initialize fields.
6768 <~symfile_segment_data>: Add.
6769 (symfile_segment_data_up): New.
6770 (struct sym_fns) <sym_segments>: Return a
6771 symfile_segment_data_up.
6772 (default_symfile_segments): Return a symfile_segment_data_up.
6773 (free_symfile_segment_data): Remove.
6774 (get_symfile_segment_data): Return a symfile_segment_data_up.
6775 * symfile.c (default_symfile_segments): Likewise.
6776 (get_symfile_segment_data): Likewise.
6777 (free_symfile_segment_data): Remove.
6778 (symfile_find_segment_sections): Update.
6779 * elfread.c (elf_symfile_segments): Return a
6780 symfile_segment_data_up.
6781 * remote.c (remote_target::get_offsets): Update.
6782 * solib-target.c (solib_target_relocate_section_addresses):
6783 Update.
6784 * symfile-debug.c (debug_sym_segments): Return a
6785 symfile_segment_data_up.
6786
7f204339
RO
67872020-05-18 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
6788
e52a0f1b
RO
6789 PR build/25981
6790 * i386-sol2-nat.c [PR_MODEL_NATIVE != PR_MODEL_LP64] (regmap):
6791 Hardcode register numbers.
6792
7f204339
RO
6793 PR build/25981
6794 * procfs.c [(__i386__ || __x86_64__) && sun] (proc_get_LDT_entry,
6795 procfs_find_LDT_entry): Remove.
6796 * procfs.h [(__i386__ || __x86_64__) && sun] (struct ssd,
6797 procfs_find_LDT_entry): Remove.
6798 * sol-thread.c [(__i386__ || __x86_64__) && sun] (ps_lgetLDT):
6799 Remove.
6800
7f32a4d5
PA
68012020-05-17 Pedro Alves <palves@redhat.com>
6802 Andrew Burgess <andrew.burgess@embecosm.com>
6803 Keno Fischer <keno@juliacomputing.com>
6804
6805 PR gdb/25741
6806 * breakpoint.c (build_target_condition_list): Update comments.
6807 (build_target_command_list): Update comments and skip matching
6808 locations.
6809 (insert_bp_location): Move "set breakpoint auto-hw on" handling to
6810 a separate function. Simplify "set breakpoint auto-hw off"
6811 handling.
6812 (insert_breakpoints): Update comment.
6813 (tracepoint_locations_match): New parameter. For breakpoints,
6814 compare location types too, if the caller wants to.
6815 (handle_automatic_hardware_breakpoints): New functions.
6816 (bp_location_is_less_than): Also sort by location type and
6817 hardware breakpoint length.
6818 (update_global_location_list): Handle "set breakpoint auto-hw on"
6819 here.
6820 (update_breakpoint_locations): Ask breakpoint_locations_match to
6821 ignore location types.
6822
7d93a1e0
SM
68232020-05-16 Simon Marchi <simon.marchi@efficios.com>
6824
6825 * gdbtypes.h (TYPE_NAME): Remove. Change all cal sites to use
6826 type::name instead.
6827
d0e39ea2
SM
68282020-05-16 Simon Marchi <simon.marchi@efficios.com>
6829
6830 * gdbtypes.h (struct type) <name, set_name>: New methods.
6831 (TYPE_CODE): Use type::name. Change all call sites used to set
6832 the name to use type::set_name instead.
6833
2dab0c7b
TT
68342020-05-16 Tom Tromey <tom@tromey.com>
6835
6836 * top.c (quit_force): Update.
6837 * infrun.c (handle_no_resumed): Update.
6838 * top.h (all_uis): New function.
6839 (ALL_UIS): Remove.
6840
59f7bd8d
SM
68412020-05-16 Simon Marchi <simon.marchi@efficios.com>
6842
6843 * mips-linux-tdep.c (mips_linux_in_dynsym_stub): Fix condition.
6844
9bf058f0
PA
68452020-05-16 Pedro Alves <palves@redhat.com>
6846
6847 * ia64-linux-nat.c
6848 (ia64_linux_nat_target) <enable_watchpoints_in_psr(ptid_t)>:
6849 Declare method.
6850 (enable_watchpoints_in_psr): Now a method of ia64_linux_nat_target.
6851
8f86ae1a
SM
68522020-05-15 Simon Marchi <simon.marchi@efficios.com>
6853
6854 * sparc64-tdep.c (adi_stat_t): Remove typedef (leaving struct).
6855 (sparc64_adi_info): Likewise.
6856
d6bc0792
TT
68572020-05-15 Tom Tromey <tom@tromey.com>
6858
6859 * symtab.c (lookup_language_this, lookup_symbol_aux): Use
6860 block_objfile.
6861 (lookup_objfile_from_block): Remove.
6862 (lookup_symbol_in_block, lookup_symbol_in_static_block)
6863 (lookup_global_symbol): Use block_objfile.
6864 * symtab.h (lookup_objfile_from_block): Don't declare.
6865 * printcmd.c (clear_dangling_display_expressions): Use
6866 block_objfile.
6867 * parse.c (operator_check_standard): Use block_objfile.
6868
8c14c3a3
TT
68692020-05-15 Tom Tromey <tom@tromey.com>
6870
6871 * language.c (language_alloc_type_symbol): Set
6872 SYMBOL_SECTION.
6873 * symtab.c (initialize_objfile_symbol): Remove.
6874 (allocate_symbol): Remove.
6875 (allocate_template_symbol): Remove.
6876 * dwarf2/read.c (fixup_go_packaging): Use "new".
6877 (new_symbol): Use "new".
6878 (read_variable): Don't call initialize_objfile_symbol. Use
6879 "new".
6880 (read_func_scope): Use "new".
6881 * xcoffread.c (process_xcoff_symbol): Don't call
6882 initialize_objfile_symbol.
6883 (SYMBOL_DUP): Remove.
6884 * coffread.c (process_coff_symbol, coff_read_enum_type): Use
6885 "new".
6886 * symtab.h (allocate_symbol, initialize_objfile_symbol)
6887 (allocate_template_symbol): Don't declare.
6888 (struct symbol): Add copy constructor. Change defaults.
6889 * jit.c (finalize_symtab): Use "new".
6890 * ctfread.c (ctf_add_enum_member_cb, new_symbol, ctf_add_var_cb):
6891 Use "new".
6892 * stabsread.c (patch_block_stabs, define_symbol, read_enum_type)
6893 (common_block_end): Use "new".
6894 * mdebugread.c (parse_symbol): Use "new".
6895 (new_symbol): Likewise.
6896
5b4a1a8d
PW
68972020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6898
6899 * NEWS: Mention changes to help and apropos.
6900
57b4f16e
PW
69012020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6902
6903 * command.h (enum command_class): Improve comments, document
6904 that class_alias is for user-defined aliases, give the class
6905 name for each class, remove unused class_xdb.
6906 * cli/cli-decode.c (add_com_alias): Document THECLASS intended usage.
6907 * breakpoint.c (_initialize_breakpoint): Replace class_alias
6908 by a precise class.
6909 * infcmd.c (_initialize_infcmd): Likewise.
6910 * reverse.c (_initialize_reverse): Likewise.
6911 * stack.c (_initialize_stack): Likewise.
6912 * symfile.c (_initialize_symfile): Likewise.
6913 * tracepoint.c (_initialize_tracepoint): Likewise.
6914
7c05caf7
PW
69152020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6916
6917 * cli/cli-decode.c (apropos_cmd): Produce output for aliases
6918 when their aliased command is traversed.
6919 (help_cmd): Add fput_command_names_styled call to
6920 output command name and aliases when command has an alias.
6921
3b3aaacb
PW
69222020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6923
6924 * cli/cli-decode.h (help_cmd_list): Remove declaration.
6925 * cli/cli-decode.c (help_cmd_list): Declare as static,
6926 remove prefix argument, use bool for recurse arg, rework to show the aliases of
6927 a command together with the command.
6928 (fput_command_name_styled, fput_command_names_styled): New functions.
6929 (print_help_for_command): Remove prefix arg, use bool for recurse arg, use
6930 fput_command_name_styled.
6931 (help_list, help_all): Update callers to remove prefix arg and use bool recurse.
6932 * cli/cli-cmds.c (_initialize_cli_cmds): Update alias_command doc.
6933
7aa1b46f
PW
69342020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6935
6936 * cli/cli-setshow.h (cmd_show_list): Remove prefix argument.
6937 * cli/cli-decode.c (do_show_prefix_cmd): Likewise.
6938 * command.h (cmd_show_list): Likewise.
6939 * dwarf2/index-cache.c (show_index_cache_command): Likewise.
6940 * cli/cli-setshow.c (cmd_show_list): Use the prefix to produce the output. Skip aliases.
6941
89bcba74
PW
69422020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6943
6944 * unittests/command-def-selftests.c (traverse_command_structure):
6945 Verify all commands of a list have the same prefix command and
6946 that only the top cmdlist commands have a null prefix.
6947
3f4d92eb
PW
69482020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6949
6950 * cli/cli-decode.c (lookup_cmd_for_prefix): Return the aliased command
6951 as prefix, not one of its aliases.
6952 (set_cmd_prefix): Remove.
6953 (do_add_cmd): Centralize the setting of the prefix of a command, when
6954 command is defined after its full chain of prefix commands.
6955 (add_alias_cmd): Remove call to set_cmd_prefix, as do_add_cmd does it.
6956 (add_setshow_cmd_full): Likewise.
6957 (update_prefix_field_of_prefixed_commands): New function.
6958 (add_prefix_cmd): Replace non working call to set_cmd_prefix by
6959 update_prefix_field_of_prefixed_commands.
6960 * gdb/remote-fileio.c (initialize_remote_fileio): Use the real
6961 addresses of remote_set_cmdlist and remote_show_cmdlist given
6962 as argument, not the address of an argument.
6963 * gdb/remote-fileio.h (initialize_remote_fileio): Likewise.
6964 * gdb/remote.c (_initialize_remote): Likewise.
6965
0605465f
PW
69662020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6967
6968 * cli/cli-cmds.c (alias_command): Check for an existing alias
6969 using lookup_cmd_composition, as valid_command_p is too strict
6970 and forbids aliases that are the prefix of an existing alias
6971 or command.
6972 * cli/cli-decode.c (lookup_cmd_composition): Ensure a prefix
6973 command is properly recognised as a valid command.
6974
58e6ac70
PW
69752020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6976
6977 * unittests/help-doc-selftests.c: Rename to
6978 unittests/command-def-selftests.c
6979 * unittests/command-def-selftests.c (help_doc_tests): Update some
6980 comments.
6981 (command_structure_tests, traverse_command_structure): New namespace
6982 and function.
6983 (command_structure_invariants_tests): New function.
6984 (_initialize_command_def_selftests) Renamed from
6985 _initialize_help_doc_selftests, register command_structure_invariants
6986 selftest.
6987
a7b9ceb8
PW
69882020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6989
6990 * cli/cli-cmds.c (_initialize_cli_cmds): Define 'info set' as
6991 an alias of 'show'.
6992
b2188a06
JB
69932020-05-15 Joel Brobecker <brobecker@adacore.com>
6994
6995 * ada-lang.h: (ada_is_gnat_encoded_fixed_point_type): Renames
6996 ada_is_fixed_point_type. Update all callers.
6997 (gnat_encoded_fixed_point_delta): Renames ada_delta. Update
6998 all callers.
6999 * ada-lang.c (gnat_encoded_fixed_type_info): Renames fixed_type_info.
7000 Update all callers.
7001 * ada-typeprint.c (print_gnat_encoded_fixed_point_type): Renames
7002 print_fixed_point_type. Update all callers.
7003 * ada-valprint.c (ada_value_print_num): Replace call to
7004 ada_is_fixed_point_type by ada_is_gnat_encoded_fixed_point_type.
7005
a51951c2
KB
70062020-05-14 Kevin Buettner <kevinb@redhat.com>
7007
7008 * nat/linux-btrace.c (btrace_this_cpu): Add check for AMD
7009 processors.
7010 (cpu_supports_bts): Add CV_AMD case.
7011
29d6859f
LM
70122020-05-14 Laurent Morichetti <Laurent.Morichetti@amd.com>
7013 Simon Marchi <simon.marchi@efficios.com>
7014
7015 * infrun.c (stop_all_threads): Collect multiple wait events at
7016 each pass.
7017
78134374
SM
70182020-05-14 Simon Marchi <simon.marchi@efficios.com>
7019
7020 * gdbtypes.h (TYPE_CODE): Remove. Change all call sites to use
7021 type::code instead.
7022
67607e24
SM
70232020-05-14 Simon Marchi <simon.marchi@efficios.com>
7024
7025 * gdbtypes.h (struct type) <code, set_code>: New methods.
7026 (TYPE_CODE): Use type::code. Change all call sites used to set
7027 the code to use type::set_code instead.
7028
a05575d3
TBA
70292020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
7030 Tom de Vries <tdevries@suse.de>
7031 Pedro Alves <palves@redhat.com>
7032
7033 PR threads/25478
7034 * infrun.c (stop_all_threads): Do NOT ignore
7035 TARGET_WAITKIND_NO_RESUMED, TARGET_WAITKIND_THREAD_EXITED,
7036 TARGET_WAITKIND_EXITED, TARGET_WAITKIND_SIGNALLED wait statuses
7037 received.
7038 (handle_no_resumed): Remove code handling a live inferior with no
7039 threads.
7040 * remote.c (has_single_non_exited_thread): New.
7041 (remote_target::update_thread_list): Do not delete a thread if is
7042 the last thread of the process.
7043 * thread.c (thread_select): Call delete_exited_threads instead of
7044 prune_threads.
7045
6ad82919
TBA
70462020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
7047
7048 * infrun.c (stop_all_threads): Enable/disable thread events of all
7049 targets. Move a debug message denoting the end of the function
7050 into the SCOPED_EXIT block.
7051
d890404b
TBA
70522020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
7053
7054 * process-stratum-target.h: Include <set>.
7055 (all_non_exited_process_targets, switch_to_target_no_thread): New
7056 function declarations.
7057 * process-stratum-target.c (all_non_exited_process_targets)
7058 (switch_to_target_no_thread): New function implementations.
7059
293b3ebc
TBA
70602020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
7061
7062 * infrun.c (handle_inferior_event): Extract out a piece of code
7063 into...
7064 (mark_non_executing_threads): ...this new function.
7065
7ca9b62a
TBA
70662020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
7067
7068 * infrun.c (resume_1): Move a 'regcache_read_pc' call down to first
7069 use.
7070
fc75c28b
TBA
70712020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
7072
7073 * regcache.c (regcache_read_pc_protected): New function
7074 implementation that returns 0 if the PC cannot read via
7075 'regcache_read_pc'.
7076 * infrun.c (proceed): Call 'regcache_read_pc_protected'
7077 instead of 'regcache_read_pc'.
7078 (keep_going_pass_signal): Ditto.
7079
a89febbd
TT
70802020-05-13 Tom Tromey <tromey@adacore.com>
7081
7082 * ada-lang.c (align_value): Remove.
7083 (ada_template_to_fixed_record_type_1): Use align_up.
7084
f7e23710
TBA
70852020-05-13 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
7086
7087 * async-event.c: Update the copyright year.
7088 * async-event.h: Update the copyright year.
7089
02ff80c2
SM
70902020-05-12 Simon Marchi <simon.marchi@efficios.com>
7091
7092 * objfiles.h (is_addr_in_objfile,
7093 shared_objfile_contains_address_p): Return bool.
7094 * objfile.c (is_addr_in_objfile,
7095 shared_objfile_contains_address_p): Return bool.
7096
4fd6c7e8
TT
70972020-05-11 Tom Tromey <tromey@adacore.com>
7098
7099 * cli/cli-cmds.c (info_command): Restore.
7100 (_initialize_cli_cmds): Use add_prefix_command for "info".
7101 * gdb-gdb.gdb.in: Restore breakpoint on info_command.
7102
5eb68a39
TT
71032020-05-11 Tom Tromey <tromey@adacore.com>
7104
7105 * ada-lang.c (ada_value_primitive_field): Now public.
7106 * ada-lang.h (ada_value_primitive_field): Declare.
7107 * ada-valprint.c (print_field_values): Use
7108 ada_value_primitive_field for wrapper fields.
7109
7666722f
TV
71102020-05-11 Tom de Vries <tdevries@suse.de>
7111
7112 * dwarf2/index-write.c (debug_names::psymbol_tag): Handle
7113 MODULE_DOMAIN.
7114
3ee6bb11
TV
71152020-05-11 Tom de Vries <tdevries@suse.de>
7116
7117 PR symtab/25941
7118 * dwarf2/read.c (create_cus_from_debug_names_list): Initialize CUs
7119 with length 0, if not gdb-produced.
7120 (cutu_reader::cutu_reader): Set CU length to actual length if 0.
7121
43434996
TV
71222020-05-09 Tom de Vries <tdevries@suse.de>
7123
7124 PR gdb/25955
7125 * break-catch-throw.c (check_status_exception_catchpoint): Fix name
7126 calculation.
7127
2f78cffc
TT
71282020-05-09 Tom Tromey <tom@tromey.com>
7129
7130 * top.c (server_command): Now bool.
7131 * top.h (server_command): Now bool.
7132
4f7bc5ed
TT
71332020-05-08 Tom Tromey <tromey@adacore.com>
7134
7135 * dwarf2/read.c (read_lexical_block_scope): Don't process a DIE
7136 already being processed.
7137
8be4b118
TT
71382020-05-08 Tom Tromey <tom@tromey.com>
7139
7140 * printcmd.c (struct display) <next>: Remove.
7141 <display>: New constructor.
7142 <exp_string>: Now a std::string.
7143 <enabled_p>: Now a bool.
7144 (display_number): Move definition earlier.
7145 (displays): Rename from display_chain. Now a std::vector.
7146 (ALL_DISPLAYS, ALL_DISPLAYS_SAFE): Remove.
7147 (display_command): Update.
7148 (do_one_display, disable_display)
7149 (enable_disable_display_command, do_enable_disable_display):
7150 Update.
7151 (free_display): Remove.
7152 (clear_displays): Rewrite.
7153 (delete_display): Update.
7154 (map_display_numbers): Use function_view. Remove "data"
7155 parameter. Update.
7156 (do_delete_display): Remove.
7157 (undisplay_command): Update.
7158 (do_one_display, do_displays, disable_display)
7159 (info_display_command): Update.
7160 (do_enable_disable_display): Remove.
7161 (enable_disable_display_command)
7162 (clear_dangling_display_expressions): Update.
7163
94c93c35
TT
71642020-05-08 Tom Tromey <tom@tromey.com>
7165
7166 * symtab.c (set_symbol_cache_size)
7167 (maintenance_print_symbol_cache, maintenance_flush_symbol_cache)
7168 (maintenance_print_symbol_cache_statistics): Update.
7169 * symmisc.c (print_symbol_bcache_statistics)
7170 (print_objfile_statistics, maintenance_print_objfiles)
7171 (maintenance_info_symtabs, maintenance_check_symtabs)
7172 (maintenance_expand_symtabs, maintenance_info_line_tables):
7173 Update.
7174 * symfile-debug.c (set_debug_symfile): Update.
7175 * source.c (forget_cached_source_info): Update.
7176 * python/python.c (gdbpy_progspaces): Update.
7177 * psymtab.c (maintenance_info_psymtabs): Update.
7178 * probe.c (parse_probes): Update.
7179 * linespec.c (iterate_over_all_matching_symtabs)
7180 (collect_symtabs_from_filename, search_minsyms_for_name): Update.
7181 * guile/scm-progspace.c (gdbscm_progspaces): Update.
7182 * exec.c (exec_target::close): Update.
7183 * ada-tasks.c (ada_tasks_new_objfile_observer): Update.
7184 * breakpoint.c (print_one_breakpoint_location)
7185 (create_longjmp_master_breakpoint)
7186 (create_std_terminate_master_breakpoint): Update.
7187 * progspace.c (program_spaces): Now a std::vector.
7188 (maybe_new_address_space): Update.
7189 (add_program_space): Remove.
7190 (program_space::program_space): Update.
7191 (remove_program_space): Update.
7192 (number_of_program_spaces): Remove.
7193 (print_program_space, update_address_spaces): Update.
7194 * progspace.h (program_spaces): Change type.
7195 (ALL_PSPACES): Remove.
7196 (number_of_program_spaces): Don't declare.
7197 (struct program_space) <next>: Remove.
7198
a1fd1ac9
TT
71992020-05-08 Tom Tromey <tom@tromey.com>
7200
7201 * mi/mi-cmd-file.c (mi_cmd_file_list_shared_libraries): Update.
7202 * solib-svr4.c (svr4_fetch_objfile_link_map): Update.
7203 (enable_break): Update.
7204 * solib-frv.c (frv_fdpic_find_global_pointer): Update.
7205 (frv_fdpic_find_canonical_descriptor): Update.
7206 (frv_fetch_objfile_link_map): Update.
7207 * progspace.c (program_space::free_all_objfiles): Update.
7208 (program_space::solibs): New method.
7209 * progspace.h (struct program_space) <solibs>: New method.
7210 * solist.h (master_so_list): Don't declare.
7211 (ALL_SO_LIBS): Remove.
7212 * solib.h (so_list_head): Remove.
7213 (update_solib_list): Update comment.
7214 * solib.c (master_so_list): Remove.
7215 (solib_used, update_solib_list, solib_add)
7216 (info_sharedlibrary_command, clear_solib)
7217 (reload_shared_libraries_1, remove_user_added_objfile): Update.
7218
38eae084
TT
72192020-05-08 Tom Tromey <tom@tromey.com>
7220
7221 * extension.c (extension_languages): Now a std::array.
7222 (ALL_EXTENSION_LANGUAGES): Remove.
7223 (get_ext_lang_defn, get_ext_lang_of_file)
7224 (eval_ext_lang_from_control_command): Update.
7225 (finish_ext_lang_initialization)
7226 (auto_load_ext_lang_scripts_for_objfile)
7227 (ext_lang_type_printers::ext_lang_type_printers)
7228 (apply_ext_lang_type_printers)
7229 (ext_lang_type_printers::~ext_lang_type_printers)
7230 (apply_ext_lang_val_pretty_printer, apply_ext_lang_frame_filter)
7231 (preserve_ext_lang_values, get_breakpoint_cond_ext_lang)
7232 (breakpoint_ext_lang_cond_says_stop, check_quit_flag)
7233 (get_matching_xmethod_workers, ext_lang_colorize)
7234 (ext_lang_before_prompt): Update.
7235 (ALL_ENABLED_EXTENSION_LANGUAGES): Remove.
7236
596dc4ad
TT
72372020-05-08 Tom Tromey <tom@tromey.com>
7238
7239 * symtab.h (class demangle_result_storage) <set_malloc_ptr>: New
7240 overload.
7241 <swap_string, m_string>: Remove.
7242 * symtab.c (demangle_for_lookup, completion_list_add_symbol):
7243 Update.
7244 * stabsread.c (define_symbol, read_type): Update.
7245 * linespec.c (find_linespec_symbols): Update.
7246 * gnu-v3-abi.c (gnuv3_get_typeid): Update.
7247 * dwarf2/read.c (dwarf2_canonicalize_name): Update.
7248 * dbxread.c (read_dbx_symtab): Update.
7249 * cp-support.h (cp_canonicalize_string_full)
7250 (cp_canonicalize_string, cp_canonicalize_string_no_typedefs):
7251 Return unique_xmalloc_ptr.
7252 * cp-support.c (inspect_type): Update.
7253 (cp_canonicalize_string_full): Return unique_xmalloc_ptr.
7254 (cp_canonicalize_string_no_typedefs, cp_canonicalize_string):
7255 Likewise.
7256 * c-typeprint.c (print_name_maybe_canonical): Update.
7257 * break-catch-throw.c (check_status_exception_catchpoint):
7258 Update.
7259
bf4cb9be
TV
72602020-05-08 Tom de Vries <tdevries@suse.de>
7261
7262 * infrun.c (follow_fork): Copy current_line and current_symtab to
7263 child thread.
7264
a1b68f28
SM
72652020-05-07 Simon Marchi <simon.marchi@efficios.com>
7266
7267 * async-event.c (struct async_signal_handler, struct
7268 async_event_handler): Reformat, remove typedef.
7269
98d48915
SM
72702020-05-07 Simon Marchi <simon.marchi@efficios.com>
7271
7272 * gdbtypes.h (TYPE_DYN_PROP_LIST): Remove. Update all users
7273 access thistype->main_type->dyn_prop_list directly.
7274
7aa91313
SM
72752020-05-07 Simon Marchi <simon.marchi@efficios.com>
7276
7277 * gdbtypes.h (struct type) <remove_dyn_prop>: New method.
7278 (remove_dyn_prop): Remove. Update all users to use
7279 type::remove_dyn_prop.
7280 * gdbtypes.c (remove_dyn_prop): Rename to...
7281 (type::remove_dyn_prop): ... this.
7282
5c54719c
SM
72832020-05-07 Simon Marchi via Gdb-patches <gdb-patches@sourceware.org>
7284
7285 * gdbtypes.h (struct type) <add_dyn_prop>: New method.
7286 (add_dyn_prop): Remove. Update all users to use
7287 type::add_dyn_prop.
7288 * gdbtypes.c (add_dyn_prop): Rename to...
7289 (type::add_dyn_prop): ... this.
7290
24e99c6c
SM
72912020-05-07 Simon Marchi <simon.marchi@efficios.com>
7292
7293 * gdbtypes.h (struct type) <get_dyn_prop>: New method.
7294 (get_dyn_prop): Remove. Update all users to use
7295 type::dyn_prop.
7296 * gdbtypes.c (get_dyn_prop): Rename to...
7297 (type::dyn_prop): ... this.
7298
0d4bf016
SM
72992020-05-06 Simon Marchi <simon.marchi@efficios.com>
7300
7301 * gdbtypes.h (struct main_type) <flag_static>: Remove.
7302
ac4a4f1c
SM
73032020-05-06 Simon Marchi <simon.marchi@efficios.com>
7304
7305 * amd64-tdep.c (amd64_analyze_prologue): Check for `endbr64`
7306 instruction, skip it if it's there.
7307
a3bbacc1
SM
73082020-05-05 Simon Marchi <simon.marchi@efficios.com>
7309
7310 * gdbtypes.h (struct main_type) <flag_incomplete>: Remove.
7311
c3236f84
SM
73122020-05-04 Simon Marchi <simon.marchi@efficios.com>
7313
7314 * gdbtypes.h (TYPE_INCOMPLETE): Remove.
7315 * gdbtypes.c (recursive_dump_type): Remove use of
7316 TYPE_INCOMPLETE.
7317
3b6acaee
TT
73182020-05-03 Tom Tromey <tom@tromey.com>
7319
7320 * breakpoint.c (catch_command, tcatch_command): Remove.
7321 (_initialize_breakpoint): Use add_basic_prefix_cmd,
7322 add_show_prefix_cmd.
7323 (set_breakpoint_cmd, show_breakpoint_cmd): Remove
7324 * utils.c (set_internal_problem_cmd, show_internal_problem_cmd):
7325 Remove.
7326 (add_internal_problem_command): Use add_basic_prefix_cmd,
7327 add_show_prefix_cmd.
7328 * mips-tdep.c (set_mipsfpu_command): Remove.
7329 (_initialize_mips_tdep): Use add_basic_prefix_cmd.
7330 * dwarf2/index-cache.c (set_index_cache_command): Remove.
7331 (_initialize_index_cache): Use add_basic_prefix_cmd.
7332 * memattr.c (dummy_cmd): Remove.
7333 (_initialize_mem): Use add_basic_prefix_cmd, add_show_prefix_cmd.
7334 * tui/tui-win.c (set_tui_cmd, show_tui_cmd): Remove.
7335 (_initialize_tui_win): Use add_basic_prefix_cmd,
7336 add_show_prefix_cmd.
7337 * cli/cli-logging.c (set_logging_command): Remove.
7338 (_initialize_cli_logging): Use add_basic_prefix_cmd,
7339 add_show_prefix_cmd.
7340 (show_logging_command): Remove.
7341 * target.c (target_command): Remove.
7342 (add_target): Use add_basic_prefix_cmd.
7343
a51119cd
HD
73442020-05-02 Hannes Domani <ssbssa@yahoo.de>
7345
7346 * gdbtypes.h (enum dynamic_prop_node_kind): Fix typo.
7347
652fc23a 73482020-05-01 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6a6ea76a 7349
652fc23a
PW
7350 * gdb-gdb.gdb-in: Remove breakpoint on disappeared function
7351 info_command.
7352
117539e6
KR
73532020-04-30 Kamil Rytarowski <n54@gmx.com>
7354
7355 * nbsd-nat.c (nbsd_enable_proc_events)
7356 (nbsd_nat_target::post_startup_inferior): Add.
7357 (nbsd_nat_target::post_attach): Call `nbsd_enable_proc_events'.
7358 (nbsd_nat_target::update_thread_list): Rewrite.
7359 (nbsd_nat_target::wait): Handle "PTRACE_LWP_EXIT" and
7360 "PTRACE_LWP_CREATE".
7361 * nbsd-nat.h (nbsd_nat_target::post_startup_inferior): Add.
7362
102e38eb 73632020-04-30 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6a6ea76a 7364
102e38eb
PW
7365 * stack.c (_initialize_stack): Remove duplicated creation
7366 of "frame" command and "f" alias.
7367
ee9d1e5f
HD
73682020-04-30 Hannes Domani <ssbssa@yahoo.de>
7369
7370 PR gdb/18706
7371 * gdbtypes.c (check_typedef): Calculate size of array of
7372 stubbed type.
7373
627c7fb8
HD
73742020-04-30 Hannes Domani <ssbssa@yahoo.de>
7375
7376 PR gdb/15559
7377 * i386-tdep.c (i386_push_dummy_call): Call
7378 i386_thiscall_push_dummy_call.
7379 (i386_thiscall_push_dummy_call): New function.
7380 * i386-tdep.h (i386_thiscall_push_dummy_call): Declare.
7381 * i386-windows-tdep.c (i386_windows_push_dummy_call): New function.
7382 (i386_windows_init_abi): Call set_gdbarch_push_dummy_call.
7383
ffc2844e
SM
73842020-04-29 Simon Marchi <simon.marchi@efficios.com>
7385
7386 * gdbarch.sh (do_read): Add shellcheck disable directive for
7387 warning SC2162.
7388
1207375d
SM
73892020-04-29 Simon Marchi <simon.marchi@efficios.com>
7390
7391 * gdbarch.sh: Use ${foo:-} where shellcheck would report a
7392 "referenced but not assigned" warning.
7393
9fdb2916
SM
73942020-04-29 Simon Marchi <simon.marchi@efficios.com>
7395
7396 * gdbarch.sh: Remove code that sets fallbackdefault.
7397
759cea5e
SM
73982020-04-29 Simon Marchi <simon.marchi@efficios.com>
7399
7400 * gdbarch.sh: Use shell operators && and || instead of
7401 -a and -o.
7402
cb02ab24
SM
74032020-04-29 Simon Marchi <simon.marchi@efficios.com>
7404
7405 * gdbarch.sh: Use $(...) instead of `...`.
7406
a6fc5ffc
SM
74072020-04-29 Simon Marchi <simon.marchi@efficios.com>
7408
7409 * gdbarch.sh: Use double quotes around variables.
7410
8d113d13
SM
74112020-04-29 Simon Marchi <simon.marchi@efficios.com>
7412
7413 * gdbarch.sh: Use %s with printf, instead of variables in the
7414 format string.
7415
ed6acedd
TT
74162020-04-29 Tom Tromey <tromey@adacore.com>
7417
7418 PR ada/25875:
7419 * dwarf2/read.c (update_enumeration_type_from_children): Compute
7420 type fields here.
7421 (read_enumeration_type): Call
7422 update_enumeration_type_from_children later. Update comments.
7423 (process_enumeration_scope): Don't create type fields.
7424
b68b1b58
KR
74252020-04-29 Kamil Rytarowski <n54@gmx.com>
7426
7427 * nbsd-tdep.c: Include "xml-syscall.h".
7428 (nbsd_init_abi): Call `set_xml_syscall_file_name'.
7429
f94b2e03
KR
74302020-04-29 Kamil Rytarowski <n54@gmx.com>
7431
7432 * nbsd-nat.c: Include "sys/wait.h".
7433 (nbsd_resume, nbsd_nat_target::resume, nbsd_wait)
7434 (nbsd_nat_target::wait, nbsd_nat_target::insert_exec_catchpoint)
7435 (nbsd_nat_target::remove_exec_catchpoint)
7436 (nbsd_nat_target::set_syscall_catchpoint): Add.
7437 * nbsd-nat.h (nbsd_nat_target::resume, nbsd_nat_target::wait)
7438 (nbsd_nat_target::insert_exec_catchpoint)
7439 (nbsd_nat_target::remove_exec_catchpoint)
7440 (nbsd_nat_target::set_syscall_catchpoint): Add.
7441 * nbsd-tdep.c (nbsd_get_syscall_number): Add.
7442 (nbsd_init_abi): Call `set_gdbarch_get_syscall_number' and pass
7443 `nbsd_get_syscall_number'.
7444
fc49bc72
TT
74452020-04-29 Tom Tromey <tom@tromey.com>
7446
7447 * stack.c (print_block_frame_labels): Remove.
7448
d642b692
HD
74492020-04-29 Hannes Domani <ssbssa@yahoo.de>
7450
7451 PR gdb/17320
7452 * ada-valprint.c (val_print_packed_array_elements): Move array
7453 end bracket to new line.
7454 (ada_val_print_string): Remove extra spaces before first array
7455 element.
7456 * c-valprint.c (c_value_print_array): Likewise.
7457 * m2-valprint.c (m2_print_array_contents): Likewise.
7458 (m2_value_print_inner): Likewise.
7459 * p-valprint.c (pascal_value_print_inner): Likewise.
7460 * valprint.c (generic_val_print_array): Likewise.
7461 (value_print_array_elements): Move first array element and array
7462 end bracket to new line.
7463
ea90f227
TV
74642020-04-29 Tom de Vries <tdevries@suse.de>
7465
7466 PR symtab/25889
7467 * linespec.c (find_method): Fix ix calculation.
7468
4498ef4f
KR
74692020-04-28 Kamil Rytarowski <n54@gmx.com>
7470
7471 * syscalls/update-netbsd.sh: New file.
7472 * syscalls/netbsd.xml: Regenerate.
7473 * data-directory/Makefile.in: Register `netbsd.xml' in
7474 `SYSCALLS_FILES'.
7475
a55e30b5
SM
74762020-04-28 Simon Marchi <simon.marchi@efficios.com>
7477
7478 * syscalls/update-freebsd.sh: Add double quotes.
7479
2b2fbab8
TT
74802020-04-28 Tom Tromey <tom@tromey.com>
7481
7482 * NEWS: Update.
7483 * python/py-cmd.c (gdbpy_initialize_commands): Add COMMAND_TUI.
7484 (cmdpy_init): Allow class_tui.
7485
a65189c9
TV
74862020-04-28 Mark Williams <mark@myosotissp.com>
7487
7488 PR gdb/24480
7489 * dwarf2read.c: Add missing assingments to list_in_scope when
7490 start_symtab was already called.
7491
1b95cdb7
SM
74922020-04-28 Simon Marchi <simon.marchi@efficios.com>
7493
7494 PR gdb/25881
7495 * dwarf2/read.c (offset_map_type): Use
7496 gdb:hash_enum<sect_offset> as hash function.
7497
15cd93d0
TV
74982020-04-28 Tom de Vries <tdevries@suse.de>
7499
7500 * dwarf2/read.c (process_structure_scope): Add symbol for struct decl
7501 with DW_AT_signature.
7502
1eb39914
SM
75032020-04-27 Simon Marchi <simon.marchi@efficios.com>
7504
7505 * configure.ac: Remove check for fs_base/gs_base in
7506 user_regs_struct.
7507 * configure: Re-generate.
7508 * config.in: Re-generate.
7509 * amd64-nat.c (amd64_native_gregset_reg_offset): Adjust.
7510 * amd64-linux-nat.c (amd64_linux_nat_target::fetch_registers,
7511 amd64_linux_nat_target::store_registers, ps_get_thread_area, ): Adjust.
7512
991a3e2e
LM
75132020-04-27 Luis Machado <luis.machado@linaro.org>
7514
7515 * dwarf2/frame-tailcall.c (dwarf2_tailcall_sniffer_first): Handle
7516 problematic inline frame unwinding situation.
7517 * frame.c (frame_id_computed_p): New function.
7518 * frame.h (frame_id_computed_p): New prototype.
7519
361ba0e8
TT
75202020-04-26 Tom Tromey <tom@tromey.com>
7521
7522 * command.h (enum command_class) <class_pseudo>: Remove.
7523
bc3609fd
PW
75242020-04-26 Philippe Waroquiers <philippe.waroquiers@skynet.be>
7525
7526 * cli/cli-decode.c (lookup_cmd_composition): Fix comments
7527 and whitespace.
7528
b9771db7
KR
75292020-04-25 Kamil Rytarowski <n54@gmx.com>
7530
ec16513e
SM
7531 * inf-ptrace.c (inf_ptrace_target::wait): Remove
7532 `PT_GET_PROCESS_STATE' block.
b9771db7 7533
7151c1af
TT
75342020-04-24 Tom Tromey <tom@tromey.com>
7535
7536 * symtab.h (symbol_get_demangled_name): Don't declare.
7537 * symtab.c (symbol_get_demangled_name): Remove.
7538 (general_symbol_info::natural_name)
7539 (general_symbol_info::demangled_name): Update.
7540
906bb4c5
TT
75412020-04-24 Tom Tromey <tom@tromey.com>
7542
7543 PR rust/25025:
7544 * dwarf2/read.c (dwarf2_physname): Do not demangle for Rust.
7545
bcfe6157
TT
75462020-04-24 Tom Tromey <tom@tromey.com>
7547
7548 PR symtab/12707:
7549 * dwarf2/read.c (add_partial_symbol): Use the linkage name if it
7550 exists.
7551 (new_symbol): Likewise.
7552 * compile/compile-object-load.c (get_out_value_type): Use
7553 symbol_matches_search_name.
7554
f049a313
TT
75552020-04-24 Tom Tromey <tom@tromey.com>
7556
7557 * dwarf2/read.c (add_partial_symbol): Do not call
7558 compute_and_set_names.
7559
76e288d1
TT
75602020-04-24 Tom Tromey <tom@tromey.com>
7561
7562 * dwarf2/read.c (add_partial_symbol): Use new add_psymbol_to_list
7563 overload.
7564
2467f4f6
TT
75652020-04-24 Tom Tromey <tom@tromey.com>
7566
7567 * psymtab.c (add_psymbol_to_bcache): Simplify calling convention.
7568 (add_psymbol_to_list): New overload. Make old overload call new
7569 one.
7570 * psympriv.h (add_psymbol_to_list): New overload.
7571
e61108c9
TT
75722020-04-24 Tom Tromey <tom@tromey.com>
7573
7574 * dwarf2/read.c (partial_die_info::read) <case
7575 DW_AT_linkage_name>: Use value_as_string.
7576 (dwarf2_string_attr): Use value_as_string.
7577 * dwarf2/attribute.h (struct attribute) <value_as_string>: Declare
7578 method.
7579 * dwarf2/attribute.c (attribute::value_as_string): New method.
7580
8c87a452
TT
75812020-04-24 Tom Tromey <tom@tromey.com>
7582
7583 * symtab.c (general_symbol_info::natural_name)
7584 (general_symbol_info::demangled_name): Check for language_rust.
7585
787de330
TT
75862020-04-24 Tom Tromey <tom@tromey.com>
7587
7588 * dwarf2/read.c (dw2_linkage_name): Move Rust "{" hack here...
7589 (dwarf2_physname): ... from here.
7590 (partial_die_info::read): Add Rust "{" hack.
7591
ff985671
TT
75922020-04-24 Tom Tromey <tom@tromey.com>
7593
7594 * symtab.h (struct general_symbol_info) <set_demangled_name>: New
7595 method.
7596 (symbol_set_demangled_name): Don't declare.
7597 * symtab.c (general_symbol_info::set_demangled_name): Rename from
7598 symbol_set_demangled_name.
7599 (general_symbol_info::set_language)
7600 (general_symbol_info::compute_and_set_names): Update.
7601 * minsyms.c (minimal_symbol_reader::install): Update.
7602 * dwarf2/read.c (new_symbol): Update.
7603
1acda803
TT
76042020-04-24 Tom Tromey <tromey@adacore.com>
7605
7606 PR python/23662:
7607 * python/py-type.c (convert_field): Handle
7608 FIELD_LOC_KIND_DWARF_BLOCK.
7609 (typy_get_sizeof): Handle TYPE_HAS_DYNAMIC_LENGTH.
7610 (typy_get_dynamic): Nw function.
7611 (type_object_getset): Add "dynamic".
7612 * NEWS: Add entry.
7613
d656f129
TT
76142020-04-24 Tom Tromey <tromey@adacore.com>
7615
7616 * ada-typeprint.c (print_choices, print_variant_part)
7617 (print_record_field_types_dynamic): New functions.
7618 (print_record_field_types): Use print_record_field_types_dynamic.
7619
7d79de9a
TT
76202020-04-24 Tom Tromey <tromey@adacore.com>
7621
7622 * dwarf2/read.c (handle_data_member_location): New overload.
7623 (dwarf2_add_field): Use it.
7624 (decode_locdesc): Add "computed" parameter. Update comment.
7625 * gdbtypes.c (is_dynamic_type_internal): Also look for
7626 FIELD_LOC_KIND_DWARF_BLOCK.
7627 (resolve_dynamic_struct): Handle FIELD_LOC_KIND_DWARF_BLOCK.
7628 * gdbtypes.c (is_dynamic_type_internal): Add special case for C++
7629 virtual base classes.
7630 * gnu-v3-abi.c (gnuv3_baseclass_offset): Handle
7631 FIELD_LOC_KIND_DWARF_BLOCK.
7632
f8e89861
TT
76332020-04-24 Tom Tromey <tromey@adacore.com>
7634
7635 * dwarf2/read.c (read_structure_type): Handle dynamic length.
7636 * gdbtypes.c (is_dynamic_type_internal): Check
7637 TYPE_HAS_DYNAMIC_LENGTH.
7638 (resolve_dynamic_type_internal): Use TYPE_DYNAMIC_LENGTH.
7639 * gdbtypes.h (TYPE_HAS_DYNAMIC_LENGTH, TYPE_DYNAMIC_LENGTH):
7640 New macros.
7641 (enum dynamic_prop_node_kind) <DYN_PROP_BYTE_SIZE>: New
7642 constant.
7643
9c6a1327
TT
76442020-04-24 Tom Tromey <tromey@adacore.com>
7645
7646 * dwarf2/read.c (struct variant_field): Rewrite.
7647 (struct variant_part_builder): New.
7648 (struct nextfield): Remove "variant" field. Add "offset".
7649 (struct field_info): Add "current_variant_part" and
7650 "variant_parts".
7651 (alloc_discriminant_info): Remove.
7652 (alloc_rust_variant): New function.
7653 (quirk_rust_enum): Update.
7654 (dwarf2_add_field): Set "offset" member. Don't handle
7655 DW_TAG_variant_part.
7656 (offset_map_type): New typedef.
7657 (convert_variant_range, create_one_variant)
7658 (create_one_variant_part, create_variant_parts)
7659 (add_variant_property): New functions.
7660 (dwarf2_attach_fields_to_type): Call add_variant_property.
7661 (read_structure_type): Don't handle DW_TAG_variant_part.
7662 (handle_variant_part, handle_variant): New functions.
7663 (handle_struct_member_die): Use them.
7664 (process_structure_scope): Don't handle variant parts.
7665 * gdbtypes.h (TYPE_FLAG_DISCRIMINATED_UNION): Remove.
7666 (struct discriminant_info): Remove.
7667 (enum dynamic_prop_node_kind) <DYN_PROP_DISCRIMINATED>: Remove.
7668 (struct main_type) <flag_discriminated_union>: Remove.
7669 * rust-lang.c (rust_enum_p, rust_empty_enum_p): Rewrite.
7670 (rust_enum_variant): Return int. Remove "contents". Rewrite.
7671 (rust_print_enum, rust_print_struct_def, rust_evaluate_subexp):
7672 Update.
7673 * valops.c (value_union_variant): Remove.
7674 * value.h (value_union_variant): Don't declare.
7675
b249d2c2
TT
76762020-04-24 Tom Tromey <tromey@adacore.com>
7677
7678 * ada-lang.c (ada_discrete_type_high_bound, ada_discrete_type_low)
7679 (ada_value_primitive_packed_val): Update.
7680 * ada-valprint.c (ada_value_print_1): Update.
7681 * dwarf2/loc.c (evaluate_for_locexpr_baton): New struct.
7682 (dwarf2_locexpr_baton_eval): Take a property_addr_info rather than
7683 just an address. Use evaluate_for_locexpr_baton.
7684 (dwarf2_evaluate_property): Update.
7685 * dwarf2/loc.h (struct property_addr_info) <valaddr>: Now an
7686 array_view.
7687 * findvar.c (default_read_var_value): Update.
7688 * gdbtypes.c (compute_variant_fields_inner)
7689 (resolve_dynamic_type_internal): Update.
7690 (resolve_dynamic_type): Change type of valaddr parameter.
7691 * gdbtypes.h (resolve_dynamic_type): Update.
7692 * valarith.c (value_subscripted_rvalue): Update.
7693 * value.c (value_from_contents_and_address): Update.
7694
61122aa9
TT
76952020-04-24 Tom Tromey <tromey@adacore.com>
7696
7697 * dwarf2/loc.c (dwarf2_locexpr_baton_eval): Add
7698 "push_initial_value" parameter.
7699 (dwarf2_evaluate_property): Likewise.
7700 * dwarf2/loc.h (dwarf2_evaluate_property): Update.
7701
ef83a141
TT
77022020-04-24 Tom Tromey <tromey@adacore.com>
7703
7704 * gdbtypes.c (is_dynamic_type_internal): Check for variant parts.
7705 (variant::matches, compute_variant_fields_recurse)
7706 (compute_variant_fields_inner, compute_variant_fields): New
7707 functions.
7708 (resolve_dynamic_struct): Check for DYN_PROP_VARIANT_PARTS.
7709 Use resolved_type after type is made.
7710 (operator==): Add new cases.
7711 * gdbtypes.h (TYPE_HAS_VARIANT_PARTS): New macro.
7712 (struct discriminant_range, struct variant, struct variant_part):
7713 New.
7714 (union dynamic_prop_data) <variant_parts, original_type>: New
7715 members.
7716 (enum dynamic_prop_node_kind) <DYN_PROP_VARIANT_PARTS>: New constant.
7717 (enum dynamic_prop_kind) <PROP_TYPE, PROP_VARIANT_PARTS>: New
7718 constants.
7719 * value.c (unpack_bits_as_long): Now public.
7720 * value.h (unpack_bits_as_long): Declare.
7721
675127ec
TT
77222020-04-24 Tom Tromey <tromey@adacore.com>
7723
7724 * rs6000-tdep.c (struct ppc_variant): Rename from "variant".
7725 (variants, find_variant_by_arch, rs6000_gdbarch_init): Update.
7726
9852ceef
HD
77272020-04-24 Hannes Domani <ssbssa@yahoo.de>
7728
7729 * windows-tdep.c (exception_values): Add WOW64 exception numbers.
7730
7632c6ce
KR
77312020-04-24 Kamil Rytarowski <n54@gmx.com>
7732
7733 * inf-ptrace.h (follow_fork, insert_fork_catchpoint)
7734 (remove_fork_catchpoint, post_startup_inferior)
7735 (post_attach): Move...
7736 * obsd-nat.h (follow_fork, insert_fork_catchpoint)
7737 (remove_fork_catchpoint, post_startup_inferior)
7738 (post_attach): ...here.
7739 * inf-ptrace.c (follow_fork, insert_fork_catchpoint)
7740 (remove_fork_catchpoint, post_startup_inferior)
7741 (post_attach): Move...
7742 * obsd-nat.c (follow_fork, insert_fork_catchpoint)
7743 (remove_fork_catchpoint, post_startup_inferior)
7744 (post_attach): ...here.
7745
7be2bb4f
TT
77462020-04-24 Tom Tromey <tromey@adacore.com>
7747
7748 * nat/windows-nat.h (struct windows_thread_info)
7749 <pc_adjusted>: New member.
7750 * windows-nat.c (windows_fetch_one_register): Check
7751 pc_adjusted.
7752 (windows_nat_target::get_windows_debug_event)
7753 (windows_nat_target::wait): Set pc_adjusted.
7754
f80cb3b4
TV
77552020-04-24 Tom de Vries <tdevries@suse.de>
7756
7757 * contrib/cc-with-tweaks.sh: Remove <exec>.gdb-index file handling.
7758 Run gdb-add-index inside temp dir.
7759
29514b87
TT
77602020-04-23 Tom Tromey <tromey@adacore.com>
7761
7762 * windows-tdep.c (is_linked_with_cygwin_dll): Always update "iter"
7763 in loop.
7764
5939967b
LM
77652020-04-23 Luis Machado <luis.machado@linaro.org>
7766
7767 * dwarf2/frame-tailcall.c (dwarf2_tailcall_sniffer_first): Use
7768 get_frame_register instead of gdbarch_unwind_pc.
7769
70bc38f5
TV
77702020-04-23 Tom de Vries <tdevries@suse.de>
7771
7772 * symtab.c (lookup_global_symbol): Prefer def over decl.
7773
de82891c
TV
77742020-04-23 Tom de Vries <tdevries@suse.de>
7775
7776 PR symtab/25807
7777 * block.c (best_symbol, better_symbol): Promote to external.
7778 * block.h (best_symbol, better_symbol): Declare.
7779 * symtab.c (lookup_symbol_in_objfile_symtabs): Prefer def over
7780 decl.
7781
ecc6c606
TT
77822020-04-23 Tom Tromey <tromey@adacore.com>
7783
7784 PR ada/25837:
7785 * dwarf2/read.c (dw2_expand_symtabs_matching_symbol): Store a
7786 "const char *", not a "const std::string &".
7787 <name_and_matcher::operator==>: Update.
7788 * unittests/lookup_name_info-selftests.c: Change type of
7789 "result".
7790
740480b8
TT
77912020-04-23 Tom Tromey <tom@tromey.com>
7792
7793 * inferior.h (iterate_over_inferiors): Don't declare.
7794 * inferior.c (iterate_over_inferiors): Remove.
7795 * darwin-nat.c (find_inferior_task_it, find_inferior_pid_it):
7796 Remove.
7797 (darwin_find_inferior_by_task, darwin_find_inferior_by_pid): Don't
7798 use iterate_over_inferiors.
7799 (darwin_resume_inferior_it)
7800 (struct resume_inferior_threads_param)
7801 (darwin_resume_inferior_threads_it): Remove.
7802 (darwin_nat_target::resume): Don't use iterate_over_inferiors.
7803
ae3ab1f0
TV
78042020-04-23 Tom de Vries <tdevries@suse.de>
7805
7806 * blockframe.c (find_pc_partial_function): Use
7807 find_pc_sect_compunit_symtab rather than
7808 objfile->sf->qf->find_pc_sect_compunit_symtab.
7809
317d2668
TV
78102020-04-22 Tom de Vries <tdevries@suse.de>
7811
7812 PR symtab/25764
7813 * dwarf2/read.c (scan_partial_symbols): Allow external variable decls
7814 in psymtabs.
7815
eea9e357
TV
78162020-04-22 Tom de Vries <tdevries@suse.de>
7817
7818 PR symtab/25801
7819 * psymtab.c (psym_map_symtabs_matching_filename): Don't skip shared
7820 symtabs.
7821
3d5afab3
TV
78222020-04-22 Tom de Vries <tdevries@suse.de>
7823
7824 PR symtab/25700
7825 * dwarf2/read.c (dwarf2_build_psymtabs_hard): Don't create psymtab for
7826 CU if already created.
7827
d43b7a2d
TBA
78282020-04-21 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
7829
7830 * infrun.c (displaced_step_fixup): Switch to the event_thread
7831 before calling displaced_step_restore, not after.
7832
d89edf9b
MM
78332020-04-21 Markus Metzger <markus.t.metzger@intel.com>
7834
7835 * record-btrace.c (record_btrace_enable_warn): Ignore thread if
7836 its inferior is not recorded by us.
7837 (record_btrace_target_open): Replace call to
7838 all_non_exited_threads () with call to current_inferior
7839 ()->non_exited_threads ().
7840 (record_btrace_target::stop_recording): Likewise.
7841 (record_btrace_target::close): Likewise.
7842 (record_btrace_target::wait): Likewise.
7843 (record_btrace_target::record_stop_replaying): Likewise.
7844
5897fd49
MM
78452020-04-21 Markus Metzger <markus.t.metzger@intel.com>
7846
7847 * btrace.c (btrace_enable): Throw an error on double enables and
7848 when enabling recording fails.
7849 (btrace_disable): Throw an error if the thread is not recorded.
7850
1a476b6d
MM
78512020-04-21 Markus Metzger <markus.t.metzger@intel.com>
7852
7853 * record-btrace.c (record_btrace_target::fetch_registers): Forward
7854 request if we do not have a thread_info.
7855
4778a5f8
TV
78562020-04-21 Tom de Vries <tdevries@suse.de>
7857
7858 PR gdb/25471
7859 * thread.c
7860 (scoped_restore_current_thread::scoped_restore_current_thread): Catch
7861 exception in get_frame_id.
7862
0fa7617d
TT
78632020-04-20 Tom Tromey <tromey@adacore.com>
7864
7865 * python/python.c (struct gdbpy_event): Mark move constructor as
7866 noexcept.
7867 * python/py-tui.c (class gdbpy_tui_window_maker): Mark move
7868 constructor as noexcept.
7869 * completer.h (struct completion_result): Mark move constructor as
7870 noexcept.
7871 * completer.c (completion_result::completion_result): Use
7872 initialization style. Don't call reset_match_list.
7873
ad23bda0
MS
78742020-04-20 Mihails Strasuns <mihails.strasuns@intel.com>
7875
7876 * MAINTAINERS (Write After Approval): Add myself.
7877
45e1f031
TT
78782020-04-18 Tom Tromey <tom@tromey.com>
7879
7880 * windows-tdep.c (init_w32_command_list)
7881 (w32_prefix_command_valid): Restore.
7882 (_initialize_windows_tdep): Call init_w32_command_list.
7883
08feed99
TT
78842020-04-18 Tom Tromey <tom@tromey.com>
7885
7886 * xcoffread.c (enter_line_range, scan_xcoff_symtab): Update.
7887 * value.c (value_fn_field): Update.
7888 * valops.c (find_function_in_inferior)
7889 (value_allocate_space_in_inferior): Update.
7890 * tui/tui-winsource.c (tui_update_source_windows_with_line):
7891 Update.
7892 * tui/tui-source.c (tui_source_window::set_contents): Update.
7893 * symtab.c (lookup_global_or_static_symbol)
7894 (find_function_start_sal_1, skip_prologue_sal)
7895 (print_msymbol_info, find_gnu_ifunc, symbol_arch): Update.
7896 * symmisc.c (dump_msymbols, dump_symtab_1)
7897 (maintenance_print_one_line_table): Update.
7898 * symfile.c (init_entry_point_info, section_is_mapped)
7899 (list_overlays_command, simple_read_overlay_table)
7900 (simple_overlay_update_1): Update.
7901 * stap-probe.c (handle_stap_probe): Update.
7902 * stabsread.c (dbx_init_float_type, define_symbol)
7903 (read_one_struct_field, read_enum_type, read_range_type): Update.
7904 * source.c (info_line_command): Update.
7905 * python/python.c (gdbpy_source_objfile_script)
7906 (gdbpy_execute_objfile_script): Update.
7907 * python/py-type.c (save_objfile_types): Update.
7908 * python/py-objfile.c (py_free_objfile): Update.
7909 * python/py-inferior.c (python_new_objfile): Update.
7910 * psymtab.c (psym_find_pc_sect_compunit_symtab, dump_psymtab)
7911 (dump_psymtab_addrmap_1, maintenance_info_psymtabs)
7912 (maintenance_check_psymtabs): Update.
7913 * printcmd.c (info_address_command): Update.
7914 * objfiles.h (struct objfile) <arch>: New method, from
7915 get_objfile_arch.
7916 (get_objfile_arch): Don't declare.
7917 * objfiles.c (get_objfile_arch): Remove.
7918 (filter_overlapping_sections): Update.
7919 * minsyms.c (msymbol_is_function): Update.
7920 * mi/mi-symbol-cmds.c (mi_cmd_symbol_list_lines)
7921 (output_nondebug_symbol): Update.
7922 * mdebugread.c (parse_symbol, basic_type, parse_partial_symbols)
7923 (mdebug_expand_psymtab): Update.
7924 * machoread.c (macho_add_oso_symfile): Update.
7925 * linux-tdep.c (linux_infcall_mmap, linux_infcall_munmap):
7926 Update.
7927 * linux-fork.c (checkpoint_command): Update.
7928 * linespec.c (convert_linespec_to_sals): Update.
7929 * jit.c (finalize_symtab): Update.
7930 * infrun.c (insert_exception_resume_from_probe): Update.
7931 * ia64-tdep.c (ia64_find_unwind_table): Update.
7932 * hppa-tdep.c (internalize_unwinds): Update.
7933 * gdbtypes.c (get_type_arch, init_float_type, objfile_type):
7934 Update.
7935 * gcore.c (call_target_sbrk): Update.
7936 * elfread.c (record_minimal_symbol, elf_symtab_read)
7937 (elf_rel_plt_read, elf_gnu_ifunc_record_cache)
7938 (elf_gnu_ifunc_resolve_by_got): Update.
7939 * dwarf2/read.c (create_addrmap_from_index)
7940 (create_addrmap_from_aranges, dw2_find_pc_sect_compunit_symtab)
7941 (read_debug_names_from_section)
7942 (process_psymtab_comp_unit_reader, add_partial_symbol)
7943 (add_partial_subprogram, process_full_comp_unit)
7944 (read_file_scope, read_func_scope, read_lexical_block_scope)
7945 (read_call_site_scope, dwarf2_ranges_read)
7946 (dwarf2_record_block_ranges, dwarf2_add_field)
7947 (mark_common_block_symbol_computed, read_tag_pointer_type)
7948 (read_tag_string_type, dwarf2_init_float_type)
7949 (dwarf2_init_complex_target_type, read_base_type)
7950 (partial_die_info::read, partial_die_info::read)
7951 (read_attribute_value, dwarf_decode_lines_1, new_symbol)
7952 (dwarf2_fetch_die_loc_sect_off): Update.
7953 * dwarf2/loc.c (dwarf2_find_location_expression)
7954 (class dwarf_evaluate_loc_desc, rw_pieced_value)
7955 (dwarf2_evaluate_loc_desc_full, dwarf2_locexpr_baton_eval)
7956 (dwarf2_loc_desc_get_symbol_read_needs)
7957 (locexpr_describe_location_piece, locexpr_describe_location_1)
7958 (loclist_describe_location): Update.
7959 * dwarf2/index-write.c (write_debug_names): Update.
7960 * dwarf2/frame.c (dwarf2_build_frame_info): Update.
7961 * dtrace-probe.c (dtrace_process_dof): Update.
7962 * dbxread.c (read_dbx_symtab, dbx_end_psymtab)
7963 (process_one_symbol): Update.
7964 * ctfread.c (ctf_init_float_type, read_base_type): Update.
7965 * coffread.c (coff_symtab_read, enter_linenos, decode_base_type)
7966 (coff_read_enum_type): Update.
7967 * cli/cli-cmds.c (edit_command, list_command): Update.
7968 * buildsym.c (buildsym_compunit::finish_block_internal): Update.
7969 * breakpoint.c (create_overlay_event_breakpoint)
7970 (create_longjmp_master_breakpoint)
7971 (create_std_terminate_master_breakpoint)
7972 (create_exception_master_breakpoint, get_sal_arch): Update.
7973 * block.c (block_gdbarch): Update.
7974 * annotate.c (annotate_source_line): Update.
7975
0743fc83
TT
79762020-04-17 Tom Tromey <tromey@adacore.com>
7977
7978 * auto-load.c (show_auto_load_cmd): Remove.
7979 (auto_load_show_cmdlist_get): Use add_show_prefix_cmd.
7980 * arc-tdep.c (_initialize_arc_tdep): Use add_show_prefix_cmd.
7981 (maintenance_print_arc_command): Remove.
7982 * tui/tui-win.c (tui_command): Remove.
7983 (tui_get_cmd_list): Use add_basic_prefix_cmd.
7984 * tui/tui-layout.c (tui_layout_command): Remove.
7985 (_initialize_tui_layout): Use add_basic_prefix_cmd.
7986 * python/python.c (user_set_python, user_show_python): Remove.
7987 (_initialize_python): Use add_basic_prefix_cmd,
7988 add_show_prefix_cmd.
7989 * guile/guile.c (set_guile_command, show_guile_command): Remove.
7990 (install_gdb_commands): Use add_basic_prefix_cmd,
7991 add_show_prefix_cmd.
7992 (info_guile_command): Remove.
7993 * dwarf2/read.c (set_dwarf_cmd, show_dwarf_cmd): Remove.
7994 (_initialize_dwarf2_read): Use add_basic_prefix_cmd,
7995 add_show_prefix_cmd.
7996 * cli/cli-style.h (class cli_style_option) <add_setshow_commands>:
7997 Remove do_set and do_show parameters.
7998 * cli/cli-style.c (set_style, show_style): Remove.
7999 (_initialize_cli_style): Use add_basic_prefix_cmd,
8000 add_show_prefix_cmd.
8001 (cli_style_option::add_setshow_commands): Remove do_set and
8002 do_show parameters.
8003 (cli_style_option::add_setshow_commands): Use
8004 add_basic_prefix_cmd, add_show_prefix_cmd.
8005 (STYLE_ADD_SETSHOW_COMMANDS): Remove macro.
8006 (set_style_name): Remove.
8007 * cli/cli-dump.c (dump_command, append_command): Remove.
8008 (srec_dump_command, ihex_dump_command, verilog_dump_command)
8009 (tekhex_dump_command, binary_dump_command)
8010 (binary_append_command): Remove.
8011 (_initialize_cli_dump): Use add_basic_prefix_cmd.
8012 * windows-tdep.c (w32_prefix_command_valid): Remove global.
8013 (init_w32_command_list): Remove; move into ...
8014 (_initialize_windows_tdep): ... here. Use add_basic_prefix_cmd.
8015 * valprint.c (set_print, show_print, set_print_raw)
8016 (show_print_raw): Remove.
8017 (_initialize_valprint): Use add_basic_prefix_cmd,
8018 add_show_prefix_cmd.
8019 * typeprint.c (set_print_type, show_print_type): Remove.
8020 (_initialize_typeprint): Use add_basic_prefix_cmd,
8021 add_show_prefix_cmd.
8022 * record.c (set_record_command, show_record_command): Remove.
8023 (_initialize_record): Use add_basic_prefix_cmd,
8024 add_show_prefix_cmd.
8025 * cli/cli-cmds.c (_initialize_cli_cmds): Use add_basic_prefix_cmd,
8026 add_show_prefix_cmd.
8027 (info_command, show_command, set_debug, show_debug): Remove.
8028 * top.h (set_history, show_history): Don't declare.
8029 * top.c (set_history, show_history): Remove.
8030 * target-descriptions.c (set_tdesc_cmd, show_tdesc_cmd)
8031 (unset_tdesc_cmd): Remove.
8032 (_initialize_target_descriptions): Use add_basic_prefix_cmd,
8033 add_show_prefix_cmd.
8034 * symtab.c (info_module_command): Remove.
8035 (_initialize_symtab): Use add_basic_prefix_cmd.
8036 * symfile.c (overlay_command): Remove.
8037 (_initialize_symfile): Use add_basic_prefix_cmd.
8038 * sparc64-tdep.c (info_adi_command): Remove.
8039 (_initialize_sparc64_adi_tdep): Use add_basic_prefix_cmd.
8040 * sh-tdep.c (show_sh_command, set_sh_command): Remove.
8041 (_initialize_sh_tdep): Use add_basic_prefix_cmd,
8042 add_show_prefix_cmd.
8043 * serial.c (serial_set_cmd, serial_show_cmd): Remove.
8044 (_initialize_serial): Use add_basic_prefix_cmd,
8045 add_show_prefix_cmd.
8046 * ser-tcp.c (set_tcp_cmd, show_tcp_cmd): Remove.
8047 (_initialize_ser_tcp): Use add_basic_prefix_cmd,
8048 add_show_prefix_cmd.
8049 * rs6000-tdep.c (set_powerpc_command, show_powerpc_command)
8050 (_initialize_rs6000_tdep): Use add_basic_prefix_cmd,
8051 add_show_prefix_cmd.
8052 * riscv-tdep.c (show_riscv_command, set_riscv_command)
8053 (show_debug_riscv_command, set_debug_riscv_command): Remove.
8054 (_initialize_riscv_tdep): Use add_basic_prefix_cmd,
8055 add_show_prefix_cmd.
8056 * remote.c (remote_command, set_remote_cmd): Remove.
8057 (_initialize_remote): Use add_basic_prefix_cmd.
8058 * record-full.c (set_record_full_command)
8059 (show_record_full_command): Remove.
8060 (_initialize_record_full): Use add_basic_prefix_cmd,
8061 add_show_prefix_cmd.
8062 * record-btrace.c (cmd_set_record_btrace)
8063 (cmd_show_record_btrace, cmd_set_record_btrace_bts)
8064 (cmd_show_record_btrace_bts, cmd_set_record_btrace_pt)
8065 (cmd_show_record_btrace_pt): Remove.
8066 (_initialize_record_btrace): Use add_basic_prefix_cmd,
8067 add_show_prefix_cmd.
8068 * ravenscar-thread.c (set_ravenscar_command)
8069 (show_ravenscar_command): Remove.
8070 (_initialize_ravenscar): Use add_basic_prefix_cmd,
8071 add_show_prefix_cmd.
8072 * mips-tdep.c (show_mips_command, set_mips_command)
8073 (_initialize_mips_tdep): Use add_basic_prefix_cmd,
8074 add_show_prefix_cmd.
8075 * maint.c (maintenance_command, maintenance_info_command)
8076 (maintenance_check_command, maintenance_print_command)
8077 (maintenance_set_cmd, maintenance_show_cmd): Remove.
8078 (_initialize_maint_cmds): Use add_basic_prefix_cmd,
8079 add_show_prefix_cmd.
8080 (show_per_command_cmd): Remove.
8081 * maint-test-settings.c (maintenance_set_test_settings_cmd):
8082 Remove.
8083 (maintenance_show_test_settings_cmd): Remove.
8084 (_initialize_maint_test_settings): Use add_basic_prefix_cmd,
8085 add_show_prefix_cmd.
8086 * maint-test-options.c (maintenance_test_options_command):
8087 Remove.
8088 (_initialize_maint_test_options): Use add_basic_prefix_cmd.
8089 * macrocmd.c (macro_command): Remove
8090 (_initialize_macrocmd): Use add_basic_prefix_cmd.
8091 * language.c (set_check, show_check): Remove.
8092 (_initialize_language): Use add_basic_prefix_cmd,
8093 add_show_prefix_cmd.
8094 * infcmd.c (unset_command): Remove.
8095 (_initialize_infcmd): Use add_basic_prefix_cmd.
8096 * i386-tdep.c (set_mpx_cmd, show_mpx_cmd): Remove.
8097 (_initialize_i386_tdep): Use add_basic_prefix_cmd,
8098 add_show_prefix_cmd.
8099 * go32-nat.c (go32_info_dos_command): Remove.
8100 (_initialize_go32_nat): Use add_basic_prefix_cmd.
8101 * cli/cli-decode.c (do_prefix_cmd, add_basic_prefix_cmd)
8102 (do_show_prefix_cmd, add_show_prefix_cmd): New functions.
8103 * frame.c (set_backtrace_cmd, show_backtrace_cmd): Remove.
8104 (_initialize_frame): Use add_basic_prefix_cmd,
8105 add_show_prefix_cmd.
8106 * dcache.c (set_dcache_command, show_dcache_command): Remove.
8107 (_initialize_dcache): Use add_basic_prefix_cmd,
8108 add_show_prefix_cmd.
8109 * cp-support.c (maint_cplus_command): Remove.
8110 (_initialize_cp_support): Use add_basic_prefix_cmd.
8111 * btrace.c (maint_btrace_cmd, maint_btrace_set_cmd)
8112 (maint_btrace_show_cmd, maint_btrace_pt_set_cmd)
8113 (maint_btrace_pt_show_cmd, _initialize_btrace): Use
8114 add_basic_prefix_cmd, add_show_prefix_cmd.
8115 * breakpoint.c (save_command): Remove.
8116 (_initialize_breakpoint): Use add_basic_prefix_cmd.
8117 * arm-tdep.c (set_arm_command, show_arm_command): Remove.
8118 (_initialize_arm_tdep): Use add_basic_prefix_cmd,
8119 add_show_prefix_cmd.
8120 * ada-lang.c (maint_set_ada_cmd, maint_show_ada_cmd)
8121 (set_ada_command, show_ada_command): Remove.
8122 (_initialize_ada_language): Use add_basic_prefix_cmd,
8123 add_show_prefix_cmd.
8124 * command.h (add_basic_prefix_cmd, add_show_prefix_cmd): Declare.
8125
3557f442
KR
81262020-04-16 Kamil Rytarowski <n54@gmx.com>
8127
8128 * nbsd-nat.c (inf_ptrace_target::auxv_parse): Remove.
8129 * nbsd-nat.h (inf_ptrace_target::auxv_parse): Likewise.
8130
16197208
SM
81312020-04-16 Simon Marchi <simon.marchi@polymtl.ca>
8132
8133 * windows-tdep.c (is_linked_with_cygwin_dll): Add filename to
8134 warning messages.
8135
00ac85d3
SM
81362020-04-16 Simon Marchi <simon.marchi@polymtl.ca>
8137
8138 * windows-tdep.c (is_linked_with_cygwin_dll): Consider case where
8139 import table is not at beginning of .idata section.
8140
381ce63f
PA
81412020-04-16 Pedro Alves <palves@redhat.com>
8142
8143 * inferior.c (delete_inferior): Use delete operator directly
8144 instead of delete_program_space.
8145 * progspace.c (add_program_space): New, factored out from
8146 program_space::program_space.
8147 (remove_program_space): New, factored out from
8148 delete_program_space.
8149 (program_space::program_space): Remove intro comment. Rewrite.
8150 (program_space::~program_space): Remove intro comment. Call
8151 remove_program_space.
8152 (delete_program_space): Delete.
8153 * progspace.h (program_space::program_space): Make explicit. Move
8154 intro comment here, adjusted.
8155 (program_space::~program_space): Move intro comment here,
8156 adjusted.
8157 (delete_program_space): Remove.
8158
a010605f
TT
81592020-04-16 Tom Tromey <tromey@adacore.com>
8160
8161 * windows-nat.c (windows_nat::handle_access_violation): New
8162 function.
8163 * nat/windows-nat.h (handle_access_violation): Declare.
8164 * nat/windows-nat.c (handle_exception): Move Cygwin code to
8165 windows-nat.c. Call handle_access_violation.
8166
efba5c23
TV
81672020-04-16 Tom de Vries <tdevries@suse.de>
8168
8169 PR symtab/25791
8170 * dwarf2/index-write.c (write_gdbindex): Generate CU table entries for
8171 CUs without psymtab.
8172
97ed802d
KB
81732020-04-16 Kevin Buettner <kevinb@redhat.com>
8174
8175 * python/python.c (do_start_initialization): Don't call
8176 PyEval_InitThreads for Python 3.9 and beyond.
8177
c7d64809
KR
81782020-04-15 Kamil Rytarowski <n54@gmx.com>
8179
8180 * obsd-nat.c (obsd_nat_target::update_thread_list): Pass "this" to
8181 thread functions.
8182 (obsd_nat_target::wait): Likewise.
8183
ce127a96
TT
81842020-04-15 Tom Tromey <tromey@adacore.com>
8185
8186 * windows-nat.c (DEBUG_EXEC, DEBUG_EVENTS, DEBUG_MEM)
8187 (DEBUG_EXCEPT): Use debug_printf.
8188
99f1bc6a
AB
81892020-04-15 Andrew Burgess <andrew.burgess@embecosm.com>
8190
8191 * completer.c (class completion_tracker::completion_hash_entry)
8192 <hash_name>: New member function.
8193 (completion_tracker::discard_completions): New callback to hash a
8194 completion_hash_entry, pass this to htab_create_alloc.
8195
a0e9b532
JT
81962016-01-20 Jon Turney <jon.turney@dronecode.org.uk>
8197
8198 * windows-nat.c (windows_make_so): Warn rather than stopping with
8199 an error if realpath() fails.
8200
06ca5dd4
KR
82012020-04-14 Kamil Rytarowski <n54@gmx.com>
8202
8203 * nbsd-nat.c (nbsd_pid_to_kinfo_proc2): New.
8204 (nbsd_nat_target::info_proc): Add do_status.
8205
194d088f
TV
82062020-04-14 Simon Marchi <simon.marchi@polymtl.ca>
8207 Tom de Vries <tdevries@suse.de>
8208
8209 PR symtab/25718
8210 * psympriv.h (struct partial_symtab::read_symtab)
8211 (struct partial_symtab::expand_psymtab)
8212 (struct partial_symtab::read_dependencies): Update comments.
8213 * dwarf2/read.c (struct dwarf2_include_psymtab::read_symtab): Call
8214 read_symtab for includer.
8215 (struct dwarf2_include_psymtab::expand_psymtab): Assert false.
8216 (struct dwarf2_include_psymtab::readin_p): Call readin_p () for includer.
8217 (struct dwarf2_include_psymtab::m_readin): Remove.
8218 (struct dwarf2_include_psymtab::includer): New member function.
8219 (dwarf2_psymtab::expand_psymtab): Assert !readin.
8220
c1a66c06
TV
82212020-04-14 Tom de Vries <tdevries@suse.de>
8222
8223 PR symtab/25720
8224 * symmisc.c (maintenance_expand_symtabs): Call expand_symtabs_matching
8225 with NULL symbol_matcher and lookup_name.
8226 * psymtab.c (psym_expand_symtabs_matching): Handle NULL symbol_matcher
8227 and lookup_name.
8228 * dwarf2/read.c (dw2_expand_symtabs_matching)
8229 (dw2_debug_names_expand_symtabs_matching): Same.
8230 * symfile.h (struct quick_symbol_functions::expand_symtabs_matching):
8231 Make lookup_name a pointer. Update comment.
8232 * symtab.c (global_symbol_searcher::expand_symtabs): Handle
8233 lookup_name being a pointer.
8234 * symfile.c (expand_symtabs_matching): Same.
8235 * symfile-debug.c (debug_qf_expand_symtabs_matching): Same.
8236 * linespec.c (iterate_over_all_matching_symtabs): Same.
8237
400b5eca
TT
82382020-04-13 Tom Tromey <tom@tromey.com>
8239
8240 * run-on-main-thread.c: Update include.
8241 * unittests/main-thread-selftests.c: Update include.
8242 * tui/tui-win.c: Update include.
8243 * tui/tui-io.c: Update include.
8244 * tui/tui-interp.c: Update include.
8245 * tui/tui-hooks.c: Update include.
8246 * top.h: Update include.
8247 * top.c: Update include.
8248 * ser-base.c: Update include.
8249 * remote.c: Update include.
8250 * remote-notif.c: Update include.
8251 * remote-fileio.c: Update include.
8252 * record-full.c: Update include.
8253 * record-btrace.c: Update include.
8254 * python/python.c: Update include.
8255 * posix-hdep.c: Update include.
8256 * mingw-hdep.c: Update include.
8257 * mi/mi-main.c: Update include.
8258 * mi/mi-interp.c: Update include.
8259 * main.c: Update include.
8260 * linux-nat.c: Update include.
8261 * interps.c: Update include.
8262 * infrun.c: Update include.
8263 * inf-loop.c: Update include.
8264 * event-top.c: Update include.
8265 * event-loop.c: Move to ../gdbsupport/.
8266 * event-loop.h: Move to ../gdbsupport/.
8267 * async-event.h: Update include.
8268 * Makefile.in (COMMON_SFILES, HFILES_NO_SRCDIR): Update.
8269
93b54c8e
TT
82702020-04-13 Tom Tromey <tom@tromey.com>
8271
8272 * tui/tui-win.c: Include async-event.h.
8273 * remote.c: Include async-event.h.
8274 * remote-notif.c: Include async-event.h.
8275 * record-full.c: Include async-event.h.
8276 * record-btrace.c: Include async-event.h.
8277 * infrun.c: Include async-event.h.
8278 * event-top.c: Include async-event.h.
8279 * event-loop.h: Move some declarations to async-event.h.
8280 * event-loop.c: Don't include ser-event.h or top.h. Move some
8281 code to async-event.c.
8282 * async-event.h: New file.
8283 * async-event.c: New file.
8284 * Makefile.in (COMMON_SFILES): Add async-event.c.
8285 (HFILES_NO_SRCDIR): Add async-event.h.
8286
c1cd3163
TT
82872020-04-13 Tom Tromey <tom@tromey.com>
8288
8289 * utils.c (flush_streams): New function.
8290 * event-loop.c (gdb_wait_for_event): Call flush_streams.
8291
29f2bf4f
TT
82922020-04-13 Tom Tromey <tom@tromey.com>
8293
8294 * event-loop.c (handle_file_event): Use warning, not
8295 printf_unfiltered.
8296
98029d02
TT
82972020-04-13 Tom Tromey <tom@tromey.com>
8298
8299 * event-loop.c: Include <chrono>.
8300
06cc9596
TT
83012020-04-13 Tom Tromey <tom@tromey.com>
8302
8303 * gdb_select.h: Move to ../gdbsupport/.
8304 * event-loop.c: Update include path.
8305 * top.c: Update include path.
8306 * ser-base.c: Update include path.
8307 * ui-file.c: Update include path.
8308 * ser-tcp.c: Update include path.
8309 * guile/scm-ports.c: Update include path.
8310 * posix-hdep.c: Update include path.
8311 * ser-unix.c: Update include path.
8312 * gdb_usleep.c: Update include path.
8313 * mingw-hdep.c: Update include path.
8314 * inflow.c: Update include path.
8315 * infrun.c: Update include path.
8316 * event-top.c: Update include path.
8317
8ae8e197
TT
83182020-04-13 Tom Tromey <tom@tromey.com>
8319
8320 * configure: Rebuild.
8321 * configure.ac: Remove checks that are now in GDB_AC_COMMON.
8322
58cf28e8
TT
83232020-04-13 Tom Tromey <tom@tromey.com>
8324
8325 * event-loop.h (start_event_loop): Don't declare.
8326 * event-loop.c (start_event_loop): Move...
8327 * main.c (start_event_loop): ...here. Now static.
8328
b7f999ae
SDJ
83292020-04-13 Sergio Durigan Junior <sergiodj@sergiodj.net>
8330
8331 * MAINTAINERS: Update my email address.
8332
1085dfd4
KR
83332020-04-12 Kamil Rytarowski <n54@gmx.com>
8334
8335 * nbsd-nat.c (nbsd_nat_target::info_proc): Add IP_MINIMAL and
8336 IP_ALL.
8337
49d1d1f5
KR
83382020-04-12 Kamil Rytarowski <n54@gmx.com>
8339
8340 * nbsd-nat.c (nbsd_pid_to_cmdline): Add.
aac66a4c 8341 (nbsd_nat_target::info_proc): Add do_cmdline.
49d1d1f5 8342
b4848d2a
KR
83432020-04-12 Kamil Rytarowski <n54@gmx.com>
8344
8345 * nbsd-nat.c (nbsd_pid_to_cwd): Add.
aac66a4c 8346 (nbsd_nat_target::info_proc): Add do_cwd.
b4848d2a 8347
51c133d5
KR
83482020-04-12 Kamil Rytarowski <n54@gmx.com>
8349
8350 * nbsd-nat.c (nbsd_nat_target::info_proc): Add do_exe.
8351
54b8cbd0
KR
83522020-04-11 Kamil Rytarowski <n54@gmx.com>
8353
8354 * nbsd-nat.c; Include "nbsd-tdep.h" and "gdbarch.h".
8355 * nbsd-nat.c (nbsd_nat_target::find_memory_regions)
8356 (nbsd_nat_target::info_proc): New functions.
8357 * nbsd-nat.c (kinfo_get_vmmap): New function.
8358 * nbsd-nat.c (nbsd_nat_target::info_proc) Use
8359 nbsd_info_proc_mappings_header and nbsd_info_proc_mappings_entry.
8360 * nbsd-tdep.c (nbsd_info_proc_mappings_header)
8361 (nbsd_info_proc_mappings_entry, nbsd_vm_map_entry_flags): New
8362 functions.
8363 * nbsd-tdep.c (KINFO_VME_PROT_READ, KINFO_VME_PROT_WRITE)
8364 (KINFO_VME_PROT_EXEC, KINFO_VME_FLAG_COW)
8365 (KINFO_VME_FLAG_NEEDS_COPY, KINFO_VME_FLAG_NOCOREDUMP)
8366 (KINFO_VME_FLAG_PAGEABLE, KINFO_VME_FLAG_GROWS_UP)
8367 (KINFO_VME_FLAG_GROWS_DOWN): New.
8368
cf83625d
AS
83692020-04-10 Artur Shepilko <nomadbyte@gmail.com>
8370
8371 * utils.c (copy_bitwise): Use unsigned 0 constant as operand of
8372 bit shift.
8373
0c4311ab
TT
83742020-04-10 Tom Tromey <tromey@adacore.com>
8375
8376 * symfile.c (symbol_file_add_separate): Preserve OBJF_MAINLINE.
8377
3e65b3e9
TT
83782020-04-10 Tom Tromey <tromey@adacore.com>
8379
8380 * symtab.c (get_symbol_address, get_msymbol_address): Skip
8381 separate debug files.
8382
13302e95
HD
83832020-04-10 Hannes Domani <ssbssa@yahoo.de>
8384
8385 * nat/windows-nat.c (STATUS_WX86_BREAKPOINT, STATUS_WX86_SINGLE_STEP):
8386 Move to...
8387 * nat/windows-nat.h (STATUS_WX86_BREAKPOINT, STATUS_WX86_SINGLE_STEP):
8388 ... here.
8389 * windows-nat.c (windows_nat_target::get_windows_debug_event):
8390 Check for STATUS_WX86_BREAKPOINT.
8391 (windows_nat_target::wait): Same.
8392
bdfc1e8a
TV
83932020-04-10 Tom de Vries <tdevries@suse.de>
8394
8395 PR cli/25808
8396 * python/lib/gdb/__init__.py: Initialize lexer with stripnl=False.
8397
f4460aec
SM
83982020-04-09 Simon Marchi <simon.marchi@polymtl.ca>
8399
8400 * MAINTAINERS (Global Maintainers): Add Tom de Vries.
8401 (Write After Approval): Remove Tom de Vries.
8402
a25198bb
BE
84032020-04-09 Bernd Edlinger <bernd.edlinger@hotmail.de>
8404
8405 revert partially:
8406 2020-04-01 Bernd Edlinger <bernd.edlinger@hotmail.de>
8407
aac66a4c
SM
8408 * buildsym.c (record_line): Fix undefined behavior and preserve
8409 lines at eof.
a25198bb 8410
206c98a6
KR
84112020-04-09 Kamil Rytarowski <n54@gmx.com>
8412
8413 * auxv.h (svr4_auxv_parse): New.
8414 * auxv.c (default_auxv_parse): Split into default_auxv_parse
8415 and generic_auxv_parse.
8416 (svr4_auxv_parse): Add.
8417 * obsd-tdep.c: Include "auxv.h".
8418 (obsd_auxv_parse): Remove.
8419 (obsd_init_abi): Remove comment.
8420 (obsd_init_abi): Change set_gdbarch_auxv_parse passed argument
8421 from `obsd_auxv_parse' to `svr4_auxv_parse'.
8422 * nbsd-tdep.c: Include "auxv.h".
8423 (nbsd_init_abi): Call set_gdbarch_auxv_parse.
8424
71fbdbaf
TT
84252020-04-08 Tom Tromey <tromey@adacore.com>
8426
8427 * nat/windows-nat.h (last_wait_event): Don't declare.
8428 (wait_for_debug_event): Update comment.
8429 * nat/windows-nat.c (last_wait_event): Now static.
8430
2c1d95e8
TT
84312020-04-08 Tom Tromey <tromey@adacore.com>
8432
8433 * windows-nat.c (wait_for_debug_event): Move to
8434 nat/windows-nat.c.
8435 * nat/windows-nat.h (wait_for_debug_event): Declare.
8436 * nat/windows-nat.c (wait_for_debug_event): Move from
8437 windows-nat.c. No longer static.
8438
d2977bc4
TT
84392020-04-08 Tom Tromey <tromey@adacore.com>
8440
8441 * windows-nat.c (get_windows_debug_event): Use
8442 fetch_pending_stop.
8443 * nat/windows-nat.h (fetch_pending_stop): Declare.
8444 * nat/windows-nat.c (fetch_pending_stop): New function.
8445
e758e19c
TT
84462020-04-08 Tom Tromey <tromey@adacore.com>
8447
8448 * windows-nat.c (windows_continue): Use matching_pending_stop and
8449 continue_last_debug_event.
8450 * nat/windows-nat.h (matching_pending_stop)
8451 (continue_last_debug_event): Declare.
8452 * nat/windows-nat.c (DEBUG_EVENTS): New define.
8453 (matching_pending_stop, continue_last_debug_event): New
8454 functions.
8455
8d30e395
TT
84562020-04-08 Tom Tromey <tromey@adacore.com>
8457
8458 * windows-nat.c (MS_VC_EXCEPTION): Move to nat/windows-nat.c.
8459 (handle_exception_result): Move to nat/windows-nat.h.
8460 (DEBUG_EXCEPTION_SIMPLE): Remove.
8461 (windows_nat::handle_ms_vc_exception): New function.
8462 (handle_exception): Move to nat/windows-nat.c.
8463 (get_windows_debug_event): Update.
8464 (STATUS_WX86_BREAKPOINT, STATUS_WX86_SINGLE_STEP): Move to
8465 nat/windows-nat.c.
8466 * nat/windows-nat.h (handle_ms_vc_exception): Declare.
8467 (handle_exception_result): Move from windows-nat.c.
8468 (handle_exception): Declare.
8469 * nat/windows-nat.c (MS_VC_EXCEPTION, handle_exception)
8470 (STATUS_WX86_SINGLE_STEP, STATUS_WX86_BREAKPOINT): Move from
8471 windows-nat.c.
8472
29de418d
TT
84732020-04-08 Tom Tromey <tromey@adacore.com>
8474
8475 * windows-nat.c (exception_count, event_count): Remove.
8476 (handle_exception, get_windows_debug_event)
8477 (do_initial_windows_stuff): Update.
8478
a816ba18
TT
84792020-04-08 Tom Tromey <tromey@adacore.com>
8480
8481 * windows-nat.c (windows_nat::handle_load_dll)
8482 (windows_nat::handle_unload_dll): Rename. No longer static.
8483 * nat/windows-nat.h (handle_load_dll, handle_unload_dll):
8484 Declare.
8485
a00caa12
TT
84862020-04-08 Tom Tromey <tromey@adacore.com>
8487
8488 * complaints.h (stop_whining): Declare at top-level.
8489 (complaint): Don't declare stop_whining.
8490
d41b524f
TT
84912020-04-08 Tom Tromey <tromey@adacore.com>
8492
8493 * windows-nat.c (windows_nat::handle_output_debug_string):
8494 Rename. No longer static.
8495 * nat/windows-nat.h (handle_output_debug_string): Declare.
8496
3c76026d
TT
84972020-04-08 Tom Tromey <tromey@adacore.com>
8498
8499 * windows-nat.c (current_process_handle, current_process_id)
8500 (main_thread_id, last_sig, current_event, last_wait_event)
8501 (current_windows_thread, desired_stop_thread_id, pending_stops)
8502 (struct pending_stop, siginfo_er): Move to nat/windows-nat.c.
8503 (display_selectors, fake_create_process)
8504 (get_windows_debug_event): Update.
8505 * nat/windows-nat.h (current_process_handle, current_process_id)
8506 (main_thread_id, last_sig, current_event, last_wait_event)
8507 (current_windows_thread, desired_stop_thread_id, pending_stops)
8508 (struct pending_stop, siginfo_er): Move from windows-nat.c.
8509 * nat/windows-nat.c (current_process_handle, current_process_id)
8510 (main_thread_id, last_sig, current_event, last_wait_event)
8511 (current_windows_thread, desired_stop_thread_id, pending_stops)
8512 (siginfo_er): New globals. Move from windows-nat.c.
8513
9d8679cc
TT
85142020-04-08 Tom Tromey <tromey@adacore.com>
8515
8516 * windows-nat.c (get_image_name): Move to nat/windows-nat.c.
8517 (handle_load_dll): Update.
8518 * nat/windows-nat.c (get_image_name): Move from windows-nat.c.
8519
28688adf
TT
85202020-04-08 Tom Tromey <tromey@adacore.com>
8521
8522 * windows-nat.c (enum thread_disposition_type): Move to
8523 nat/windows-nat.h.
8524 (windows_nat::thread_rec): Rename from thread_rec. No longer
8525 static.
8526 (windows_add_thread, windows_nat_target::fetch_registers)
8527 (windows_nat_target::store_registers, handle_exception)
8528 (windows_nat_target::resume, get_windows_debug_event)
8529 (windows_nat_target::get_tib_address)
8530 (windows_nat_target::thread_name)
8531 (windows_nat_target::thread_alive): Update.
8532 * nat/windows-nat.h (enum thread_disposition_type): Move from
8533 windows-nat.c.
8534 (thread_rec): Declare.
8535
4834dad0
TT
85362020-04-08 Tom Tromey <tromey@adacore.com>
8537
8538 * windows-nat.c: Add "using namespace".
8539 * nat/windows-nat.h: Wrap contents in windows_nat namespace.
8540 * nat/windows-nat.c: Wrap contents in windows_nat namespace.
8541
65bafd5b
TT
85422020-04-08 Tom Tromey <tromey@adacore.com>
8543
8544 * nat/windows-nat.h (struct windows_thread_info): Declare
8545 destructor.
8546 * nat/windows-nat.c (~windows_thread_info): New.
8547
0a4afda3
TT
85482020-04-08 Tom Tromey <tromey@adacore.com>
8549
8550 PR gdb/22992
8551 * windows-nat.c (current_event): Update comment.
8552 (last_wait_event, desired_stop_thread_id): New globals.
8553 (struct pending_stop): New.
8554 (pending_stops): New global.
8555 (windows_nat_target) <stopped_by_sw_breakpoint>
8556 <supports_stopped_by_sw_breakpoint>: New methods.
8557 (windows_fetch_one_register): Add assertions. Adjust PC.
8558 (windows_continue): Handle pending stops. Suspend other threads
8559 when stepping. Use last_wait_event
8560 (wait_for_debug_event): New function.
8561 (get_windows_debug_event): Use wait_for_debug_event. Handle
8562 pending stops. Queue spurious stops.
8563 (windows_nat_target::wait): Set stopped_at_software_breakpoint.
8564 (windows_nat_target::kill): Use wait_for_debug_event.
8565 * nat/windows-nat.h (struct windows_thread_info)
8566 <stopped_at_software_breakpoint>: New field.
8567 * nat/windows-nat.c (windows_thread_info::resume): Clear
8568 stopped_at_software_breakpoint.
8569
8e61ebec
TT
85702020-04-08 Tom Tromey <tromey@adacore.com>
8571
8572 * windows-nat.c (enum thread_disposition_type): New.
8573 (thread_rec): Replace "get_context" parameter with "disposition";
8574 change type.
8575 (windows_add_thread, windows_nat_target::fetch_registers)
8576 (windows_nat_target::store_registers, handle_exception)
8577 (windows_nat_target::resume, get_windows_debug_event)
8578 (windows_nat_target::get_tib_address)
8579 (windows_nat_target::thread_name)
8580 (windows_nat_target::thread_alive): Update.
8581
98a03287
TT
85822020-04-08 Tom Tromey <tromey@adacore.com>
8583
8584 * windows-nat.c (thread_rec): Use windows_thread_info::suspend.
8585 (windows_continue): Use windows_continue::resume.
8586 * nat/windows-nat.h (struct windows_thread_info) <suspend,
8587 resume>: Declare new methods.
8588 * nat/windows-nat.c: New file.
8589 * configure.nat (NATDEPFILES): Add nat/windows-nat.o when needed.
8590
7c7411bc
TT
85912020-04-08 Tom Tromey <tromey@adacore.com>
8592
8593 * windows-nat.c (windows_add_thread, windows_delete_thread)
8594 (windows_nat_target::fetch_registers)
8595 (windows_nat_target::store_registers, fake_create_process)
8596 (windows_nat_target::resume, windows_nat_target::resume)
8597 (get_windows_debug_event, windows_nat_target::wait)
8598 (windows_nat_target::pid_to_str)
8599 (windows_nat_target::get_tib_address)
8600 (windows_nat_target::get_ada_task_ptid)
8601 (windows_nat_target::thread_name)
8602 (windows_nat_target::thread_alive): Use lwp, not tid.
8603
2950fdf7
TT
86042020-04-08 Tom Tromey <tromey@adacore.com>
8605
8606 * windows-nat.c (handle_exception)
8607 (windows_nat_target::thread_name): Update.
8608 * nat/windows-nat.h (windows_thread_info): Remove destructor.
8609 <name>: Now unique_xmalloc_ptr.
8610
62fe396b
TT
86112020-04-08 Tom Tromey <tromey@adacore.com>
8612
8613 * windows-nat.c (thread_rec)
8614 (windows_nat_target::fetch_registers): Update.
8615 * nat/windows-nat.h (struct windows_thread_info) <suspended>:
8616 Update comment.
8617 <debug_registers_changed, reload_context>: Now bool.
8618
e9534bd2
TT
86192020-04-08 Tom Tromey <tromey@adacore.com>
8620
8621 * windows-nat.c (windows_add_thread): Use new.
8622 (windows_init_thread_list, windows_delete_thread): Use delete.
8623 (get_windows_debug_event): Update.
8624 * nat/windows-nat.h (struct windows_thread_info): Add constructor,
8625 destructor, and initializers.
8626
ae1f8880
TT
86272020-04-08 Tom Tromey <tromey@adacore.com>
8628
8629 * windows-nat.c (struct windows_thread_info): Remove.
8630 * nat/windows-nat.h: New file.
8631
55a1e039
TT
86322020-04-08 Tom Tromey <tromey@adacore.com>
8633
8634 * windows-nat.c (struct windows_thread_info) <tid>: Rename from "id".
8635 (thread_rec, windows_add_thread, windows_delete_thread)
8636 (windows_continue): Update.
8637
93366324
TT
86382020-04-08 Tom Tromey <tromey@adacore.com>
8639
8640 * windows-nat.c (struct windows_thread_info): Remove typedef.
8641 (thread_head): Remove.
8642 (thread_list): New global.
8643 (thread_rec, windows_add_thread, windows_init_thread_list)
8644 (windows_delete_thread, windows_continue): Update.
8645
0f2265e2
SM
86462020-04-08 Simon Marchi <simon.marchi@polymtl.ca>
8647
8648 * windows-tdep.h (windows_init_abi): Add comment.
8649 (cygwin_init_abi): New declaration.
8650 * windows-tdep.c: Split signal enumeration in two, one for
8651 Windows and one for Cygwin.
8652 (windows_gdb_signal_to_target): Only deal with signal of the
8653 Windows OS ABI.
8654 (cygwin_gdb_signal_to_target): New function.
8655 (windows_init_abi): Rename to windows_init_abi_common, don't set
8656 gdb_signal_to_target gdbarch method. Add new new function with
8657 this name.
8658 (cygwin_init_abi): New function.
8659 * amd64-windows-tdep.c (amd64_windows_init_abi_common): Add
8660 comment. Don't call windows_init_abi.
8661 (amd64_windows_init_abi): Add comment, call windows_init_abi.
8662 (amd64_cygwin_init_abi): Add comment, call cygwin_init_abi.
8663 * i386-windows-tdep.c (i386_windows_init_abi): Rename to
8664 i386_windows_init_abi_common, don't call windows_init_abi. Add
8665 a new function of this name.
8666 (i386_cygwin_init_abi): New function.
8667 (_initialize_i386_windows_tdep): Bind i386_cygwin_init_abi to
8668 OS ABI Cygwin.
8669
3810f182
SM
86702020-04-08 Simon Marchi <simon.marchi@polymtl.ca>
8671
8672 * dwarf2/read.c (read_gdb_index_from_buffer): Remove objfile
8673 parameter.c.
8674 (dwarf2_read_gdb_index): Update.
8675
063f8e80
KR
86762020-04-07 Kamil Rytarowski <n54@gmx.com>
8677
8678 * nbsd-tdep.c: Include "objfiles.h".
8679 (nbsd_skip_solib_resolver): New.
8680 (nbsd_init_abi): Call set_gdbarch_skip_solib_resolver().
8681
85a9510c 86822020-04-07 Nitika Achra <Nitika.Achra@amd.com>
8683
8684 * dwarf2/loc.c (loclist_describe_location): Call the function decode_debug_loclists_
8685 addresses if DWARF version is 5 or more because DW_LLE_start* or DW_LLE_offset_pair
8686 with DW_LLE_base_addressx are being emitted in DWARFv5.
8687 Add the newly added kind DW_LOC_OFFSET_PAIR also.
8688 The length of location description is an unsigned ULEB integer in DWARFv5 instead of
8689 unsigned integer.
8690
9fc3eaae 86912020-04-07 Nitika Achra <Nitika.Achra@amd.com>
8692
8693 * dwarf2/loc.c (enum debug_loc_kind): Add a new kind DEBUG_LOC_OFFSET_PAIR.
8694 (dwarf2_find_location_expression): Call the function decode_debug_loclists_
8695 addresses if DWARF version is 5 or more. DW_LLE_start* or DW_LLE_offset_pair
8696 with DW_LLE_base_addressx are being emitted in DWARFv5 instead of DW_LLE_GNU*.
8697 Add applicable base address if the entry is DW_LLE_offset_pair from DWO.
8698 (decode_debug_loclists_addresses): Return DEBUG_LOC_OFFSET_PAIR instead of
8699 DEBUG_LOC_START_END in case of DW_LLE_offset_pair.
8700
8701
41144253 87022020-04-07 Nitika Achra <Nitika.Achra@amd.com>
8703
8704 * dwarf2/read.c (cu_debug_loc_section): Added the declaration for the function.
8705 (read_loclist_index): New function definition.
8706 (lookup_loclist_base): New function definition.
8707 (read_loclist_header): New function definition.
8708 (dwarf2_cu): Add loclist_base and loclist_header field.
8709 (dwarf2_locate_dwo_sections): Handle .debug_loclists.dwo section.
8710 (read_full_die_1): Read the value of DW_AT_loclists_base.
8711 (read_attribute_reprocess): Handle DW_FORM_loclistx.
8712 (read_attribute_value): Handle DW_FORM_loclistx.
8713 (skip_one_die): Handle DW_FORM_loclistx.
8714 (loclist_header): New structure declaration.
8715 * dwarf2/attribute.c (form_is_section_offset): Handle DW_FORM_loclistx.
8716
9f4e76a4
SM
87172020-04-07 Simon Marchi <simon.marchi@polymtl.ca>
8718
8719 * dwarf2/read.h (struct dwarf2_psymtab): Remove two-parameters
8720 constructor. Remove `addr` parameter from other constructor and
8721 add `per_cu` parameter.
8722 * dwarf2/read.c (create_partial_symtab): Update.
8723
25c11aca
TV
87242020-04-07 Tom de Vries <tdevries@suse.de>
8725
8726 PR symtab/25796
8727 * dwarf2/read.c (can_have_DW_AT_const_value_p): New function.
8728 (partial_die_info::fixup): Inherit has_const_value.
8729
5707e24b
TV
87302020-04-07 Tom de Vries <tdevries@suse.de>
8731
8732 * psymtab.c (maintenance_check_psymtabs): Skip static LOC_BLOCK
8733 symbols without address.
8734
05f00e22
KR
87352020-04-06 Kamil Rytarowski <n54@gmx.com>
8736
8737 * nbsd-nat.h (struct thread_info): Add forward declaration.
8738 (nbsd_nat_target::thread_alive): Add.
8739 (nbsd_nat_target::thread_name): Likewise.
8740 (nbsd_nat_target::update_thread_list): Likewise.
8741 (update_thread_list::post_attach): Likewise.
8742 (post_attach::pid_to_str): Likewise.
8743 * nbsd-nat.c: Include "gdbthread.h" and "inferior.h".
8744 (nbsd_thread_lister): Add.
8745 (nbsd_nat_target::thread_alive): Likewise.
8746 (nbsd_nat_target::thread_name): Likewise.
8747 (nbsd_add_threads): Likewise.
8748 (update_thread_list::post_attach): Likewise.
8749 (nbsd_nat_target::update_thread_list): Likewise.
8750 (post_attach::pid_to_str): Likewise.
8751
6ee448cc
TT
87522020-04-06 Tom Tromey <tromey@adacore.com>
8753
8754 * ada-valprint.c (print_variant_part): Extract the variant field.
8755 (print_field_values): Use the field as the outer value when
8756 recursing.
8757
dea34e8c
TT
87582020-04-06 Tom Tromey <tromey@adacore.com>
8759
8760 * sh-nbsd-tdep.c: Include nbsd-tdep.h.
8761 * ppc-nbsd-tdep.c: Include nbsd-tdep.h.
8762 * mips-nbsd-tdep.c (mipsnbsd_init_abi): Add missing ";".
8763 * arm-nbsd-tdep.c: Include nbsd-tdep.h.
8764 * hppa-nbsd-tdep.c: Include nbsd-tdep.h.
8765
93689ce9
TT
87662020-04-06 Tom Tromey <tromey@adacore.com>
8767
8768 * dwarf2/read.c (read_base_type) <DW_ATE_complex_float>: Handle
8769 TYPE_CODE_ERROR.
8770
79743962
KR
87712020-04-06 Kamil Rytarowski <n54@gmx.com>
8772
8773 * nbsd-tdep.c: Include "gdbarch.h".
8774 Define enum with NetBSD signal numbers.
8775 (nbsd_gdb_signal_from_target, nbsd_gdb_signal_to_target): New.
8776 * alpha-nbsd-tdep.c (alphanbsd_init_abi): Call nbsd_init_abi().
8777 * amd64-nbsd-tdep.c (amd64nbsd_init_abi): Likewise.
8778 * arm-nbsd-tdep.c (arm_netbsd_elf_init_abi): Likewise.
8779 * hppa-nbsd-tdep.c (hppanbsd_init_abi): Likewise.
8780 * i386-nbsd-tdep.c (i386nbsd_init_abi): Likewise.
8781 * mips-nbsd-tdep.c (nbsd_init_abi): Likewise.
8782 * ppc-nbsd-tdep.c (ppcnbsd_init_abi): Likewise.
8783 * sh-nbsd-tdep.c (shnbsd_init_abi): Likewise.
8784 * sparc-nbsd-tdep.c (sparc32nbsd_init_abi): Likewise.
8785 * sparc64-nbsd-tdep.c (sparc64nbsd_init_abi): Likewise.
8786 * vax-nbsd-tdep.c (vaxnbsd_elf_init_abi): Likewise.
8787
9e7c9a03
HD
87882020-04-03 Hannes Domani <ssbssa@yahoo.de>
8789
8790 PR gdb/25325
8791 * dwarf2/read.c (read_enumeration_type): Fix typed enum attributes.
8792
d9e49b61
TT
87932020-04-03 Tom Tromey <tromey@adacore.com>
8794
8795 * dwarf2/loc.c (disassemble_dwarf_expression) <DW_OP_const_type>:
8796 Read constant block.
8797
e0fc5c3f
SM
87982020-04-02 Simon Marchi <simon.marchi@polymtl.ca>
8799
8800 * gdb_bfd.h: Include gdbsupport/byte-vector.h.
8801 (gdb_bfd_get_full_section_contents): New declaration.
8802 * gdb_bfd.c (gdb_bfd_get_full_section_contents): New function.
8803 * windows-tdep.c (is_linked_with_cygwin_dll): Use
8804 gdb_bfd_get_full_section_contents.
8805
e2ff18a0
SM
88062020-04-02 Simon Marchi <simon.marchi@polymtl.ca>
8807
8808 * exec.c (build_section_table): Replace internal_error with
8809 gdb_assert.
8810 (section_table_xfer_memory_partial): Likewise.
8811 * mdebugread.c (parse_partial_symbols): Likewise.
8812 * psymtab.c (lookup_partial_symbol): Likewise.
8813 * utils.c (wrap_here): Likewise.
8814
0830d301
TT
88152020-04-02 Tom Tromey <tromey@adacore.com>
8816
8817 * f-lang.c (build_fortran_types): Use arch_type to initialize
8818 builtin_complex_s32 in the TYPE_CODE_ERROR case.
8819
e7da7f8f
TT
88202020-04-02 Tom Tromey <tromey@adacore.com>
8821
8822 * dwarf2/read.c (partial_die_info::read): Do not create a vector
8823 of attributes.
8824
c90d28ac
AB
88252020-04-02 Andrew Burgess <andrew.burgess@embecosm.com>
8826 Bernd Edlinger <bernd.edlinger@hotmail.de>
8827 Tom Tromey <tromey@adacore.com>
8828
8829 * buildsym.c (buildsym_compunit::record_line): Remove
8830 deduplication code.
8831
1aa98955
TV
88322020-04-02 Tom de Vries <tdevries@suse.de>
8833
8834 PR ada/24671
8835 * dwarf2/read.c (dw2_map_matching_symbols): Handle -readnow.
8836
d3214198
TV
88372020-04-02 Tom de Vries <tdevries@suse.de>
8838
8839 * dwarf2/read.c (dwarf2_gdb_index_functions,
8840 dwarf2_debug_names_functions): Init lookup_global_symbol_language with
8841 NULL.
8842 * psymtab.c (psym_lookup_global_symbol_language): New function.
8843 (psym_functions): Init psym_lookup_global_symbol_language with
8844 psym_lookup_global_symbol_language.
8845 * symfile-debug.c (debug_sym_quick_functions): Init
8846 lookup_global_symbol_language with NULL.
8847 * symfile.c (set_initial_language): Remove fixme comment.
8848 * symfile.h (struct quick_symbol_functions): Add
8849 lookup_global_symbol_language.
8850 * symtab.c (find_quick_global_symbol_language): New function.
8851 (find_main_name): Use find_quick_global_symbol_language.
8852
2836752f
SM
88532020-04-01 Simon Marchi <simon.marchi@polymtl.ca>
8854
8855 * windows-tdep.c (is_linked_with_cygwin_dll): Fix style.
8856
64dc2d4b
BE
88572020-04-01 Bernd Edlinger <bernd.edlinger@hotmail.de>
8858
8859 * buildsym.c (record_line): Fix undefined behavior and preserve
8860 lines at eof.
8861
bbe3dc41
BE
88622020-04-01 Bernd Edlinger <bernd.edlinger@hotmail.de>
8863
8864 * buildsym.c (record_line): Fix the resizing condition.
8865
6b4a335b
TT
88662020-04-01 Tom Tromey <tom@tromey.com>
8867
8868 * value.h (value_literal_complex): Add comment.
8869 * valops.c (value_literal_complex): Refer to value.h.
8870
3638a098
TT
88712020-04-01 Tom Tromey <tom@tromey.com>
8872
8873 * c-exp.y (FLOAT_KEYWORD, COMPLEX): New tokens.
8874 (scalar_type): New rule, from typebase.
8875 (typebase): Use scalar_type. Recognize complex types.
8876 (field_name): Handle FLOAT_KEYWORD.
8877 (ident_tokens): Add _Complex and __complex__.
8878
c34e8714
TT
88792020-04-01 Tom Tromey <tom@tromey.com>
8880
8881 PR exp/25299:
8882 * valarith.c (promotion_type, complex_binop): New functions.
8883 (scalar_binop): Handle complex numbers. Use promotion_type.
8884 (value_pos, value_neg, value_complement): Handle complex numbers.
8885
fa649bb7
TT
88862020-04-01 Tom Tromey <tom@tromey.com>
8887
8888 * c-exp.y (COMPLEX_INT, COMPLEX_FLOAT): New tokens.
8889 (exp) <COMPLEX_INT, COMPLEX_FLOAT>: New rules.
8890 (parse_number): Handle complex numbers.
8891
981c08ce
TT
88922020-04-01 Tom Tromey <tom@tromey.com>
8893
8894 * c-valprint.c (c_decorations): Change complex suffix to "i".
8895
4c99290d
TT
88962020-04-01 Tom Tromey <tom@tromey.com>
8897
8898 * valprint.c (generic_value_print_complex): Use accessors.
8899 * value.h (value_real_part, value_imaginary_part): Declare.
8900 * valops.c (value_real_part, value_imaginary_part): New
8901 functions.
8902 * value.c (creal_internal_fn, cimag_internal_fn): Use accessors.
8903
5b930b45
TT
89042020-04-01 Tom Tromey <tom@tromey.com>
8905
8906 * stabsread.c (rs6000_builtin_type, read_sun_floating_type)
8907 (read_range_type): Update.
8908 * mdebugread.c (basic_type): Update.
8909 * go-lang.c (build_go_types): Use init_complex_type.
8910 * gdbtypes.h (struct main_type) <complex_type>: New member.
8911 (init_complex_type): Update.
8912 (arch_complex_type): Don't declare.
8913 * gdbtypes.c (init_complex_type): Remove "objfile" parameter.
8914 Make name if none given. Use alloc_type_copy. Look for cached
8915 complex type.
8916 (arch_complex_type): Remove.
8917 (gdbtypes_post_init): Use init_complex_type.
8918 * f-lang.c (build_fortran_types): Use init_complex_type.
8919 * dwarf2/read.c (read_base_type): Update.
8920 * d-lang.c (build_d_types): Use init_complex_type.
8921 * ctfread.c (read_base_type): Update.
8922
53cccef1
TBA
89232020-04-01 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
8924
8925 * infrun.c (stop_all_threads): Update assertion, plus when
8926 stopping threads, take into account that we might be trying
8927 to stop an all-stop target.
8928 (stop_waiting): Call 'stop_all_threads' if there exists a
8929 non-stop target.
8930
a0714d30
TBA
89312020-04-01 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
8932
8933 * target.h (exists_non_stop_target): New function declaration.
8934 * target.c (exists_non_stop_target): New function.
8935
60e22c1e
HD
89362020-04-01 Hannes Domani <ssbssa@yahoo.de>
8937
8938 PR gdb/24789
8939 * eval.c (is_integral_or_integral_reference): New function.
8940 (evaluate_subexp_standard): Allow integer references in
8941 pointer arithmetic.
8942
e139a727
TBA
89432020-04-01 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
8944
8945 * remote.c (remote_target::remote_parse_stop_reply): Remove the
8946 check for no ptid in the stop reply when the target is non-stop.
8947
e0802d59
TT
89482020-04-01 Tom Tromey <tromey@adacore.com>
8949
8950 * symtab.h (class lookup_name_info) <lookup_name_info>: Change
8951 "name" parameter to rvalue reference. Initialize m_name_holder.
8952 <lookup_name_info>: New overloads.
8953 <name>: Return gdb::string_view.
8954 <c_str>: New method.
8955 <make_ignore_params>: Update.
8956 <search_name_hash>: Update.
8957 <language_lookup_name>: Return const char *.
8958 <m_name>: Change type.
8959 * symtab.c (demangle_for_lookup_info::demangle_for_lookup_info)
8960 (demangle_for_lookup_info::demangle_for_lookup_info): Update.
8961 (lookup_name_info::match_any): Update.
8962 * psymtab.c (match_partial_symbol, lookup_partial_symbol):
8963 Update.
8964 * minsyms.c (linkage_name_str): Update.
8965 * language.c (default_symbol_name_matcher): Update.
8966 * dwarf2/read.c (mapped_index_base::find_name_components_bounds):
8967 Update.
8968 * ada-lang.c (ada_fold_name): Change parameter to string_view.
8969 (ada_lookup_name_info::ada_lookup_name_info): Update.
8970 (literal_symbol_name_matcher): Update.
8971
8c072cb6
TT
89722020-04-01 Tom Tromey <tromey@adacore.com>
8973
8974 * psymtab.c (psymtab_search_name): Remove function.
8975 (psym_lookup_symbol): Create search name and lookup name here.
8976 (lookup_partial_symbol): Remove "name" parameter; add
8977 lookup_name.
8978 (psym_expand_symtabs_for_function): Update.
8979
6f29a534
TT
89802020-03-31 Joel Jones <joelkevinjones@gmail.com>
8981
8982 PR tui/25597:
8983 * python/py-tui.c: Include gdb_curses.h inside of #ifdef TUI.
8984
af62665e
TT
89852020-03-31 Tom Tromey <tromey@adacore.com>
8986
8987 * dwarf2/abbrev.c (abbrev_table::read): Conditionally call
8988 memcpy.
8989
d1a89da5
NC
89902020-03-30 Nelson Chu <nelson.chu@sifive.com>
8991
8992 * features/riscv/32bit-csr.xml: Regenerated.
8993 * features/riscv/64bit-csr.xml: Regenerated.
8994
d8af9068
TT
89952020-03-30 Tom Tromey <tromey@adacore.com>
8996
8997 * ada-valprint.c (print_variant_part): Update.
8998 * ada-lang.h (ada_which_variant_applies): Update.
8999 * ada-lang.c (ada_which_variant_applies): Remove outer_type and
9000 outer_valaddr parameters; replace with "outer" value parameter.
9001 (to_fixed_variant_branch_type): Update.
9002
227c0bf4
PFC
90032020-03-30 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
9004
9005 * ppc-linux-nat.c: Include <algorithm>, <unordered_map>, and
9006 <list>. Remove inclusion of observable.h.
9007 (PPC_DEBUG_CURRENT_VERSION): Move up define.
9008 (struct arch_lwp_info): New struct.
9009 (class ppc_linux_dreg_interface): New class.
9010 (struct ppc_linux_process_info): New struct.
9011 (struct ppc_linux_nat_target) <low_delete_thread, low_new_fork>
9012 <low_new_clone, low_forget_process, low_prepare_to_resume>
9013 <copy_thread_dreg_state, mark_thread_stale>
9014 <mark_debug_registers_changed, register_hw_breakpoint>
9015 <clear_hw_breakpoint, register_wp, clear_wp>
9016 <can_use_watchpoint_cond_accel, calculate_dvc, check_condition>
9017 <num_memory_accesses, get_trigger_type>
9018 <create_watchpoint_request, hwdebug_point_cmp>
9019 <init_arch_lwp_info, get_arch_lwp_info>
9020 <low_stopped_by_watchpoint, low_stopped_data_address>: Declare as
9021 methods.
9022 <struct ptid_hash>: New inner struct.
9023 <m_dreg_interface, m_process_info, m_installed_hw_bps>: Declare
9024 members.
9025 (saved_dabr_value, hwdebug_info, max_slots_number)
9026 (struct hw_break_tuple, struct thread_points, ppc_threads)
9027 (have_ptrace_hwdebug_interface)
9028 (hwdebug_find_thread_points_by_tid)
9029 (hwdebug_insert_point, hwdebug_remove_point): Remove.
9030 (ppc_linux_nat_target::can_use_hw_breakpoint): Use
9031 m_dreg_interface, remove call to PTRACE_SET_DEBUGREG.
9032 (ppc_linux_nat_target::region_ok_for_hw_watchpoint): Add comment,
9033 use m_dreg_interface.
9034 (hwdebug_point_cmp): Change to...
9035 (ppc_linux_nat_target::hwdebug_point_cmp): ...this method. Use
9036 reference arguments instead of pointers.
9037 (ppc_linux_nat_target::ranged_break_num_registers): Use
9038 m_dreg_interface.
9039 (ppc_linux_nat_target::insert_hw_breakpoint): Add comment, use
9040 m_dreg_interface. Call register_hw_breakpoint.
9041 (ppc_linux_nat_target::remove_hw_breakpoint): Add comment, use
9042 m_dreg_interface. Call clear_hw_breakpoint.
9043 (get_trigger_type): Change to...
9044 (ppc_linux_nat_target::get_trigger_type): ...this method. Add
9045 comment.
9046 (ppc_linux_nat_target::insert_mask_watchpoint): Update comment,
9047 use m_dreg_interface. Call register_hw_breakpoint.
9048 (ppc_linux_nat_target::remove_mask_watchpoint): Update comment,
9049 use m_dreg_interface. Call clear_hw_breakpoint.
9050 (can_use_watchpoint_cond_accel): Change to...
9051 (ppc_linux_nat_target::can_use_watchpoint_cond_accel): ...this
9052 method. Update comment, use m_dreg_interface and
9053 m_process_info.
9054 (calculate_dvc): Change to...
9055 (ppc_linux_nat_target::calculate_dvc): ...this method. Use
9056 m_dreg_interface.
9057 (num_memory_accesses): Change to...
9058 (ppc_linux_nat_target::num_memory_accesses): ...this method.
9059 (check_condition): Change to...
9060 (ppc_linux_nat_target::check_condition): ...this method.
9061 (ppc_linux_nat_target::can_accel_watchpoint_condition): Update
9062 comment, use m_dreg_interface.
9063 (create_watchpoint_request): Change to...
9064 (ppc_linux_nat_target::create_watchpoint_request): ...this
9065 method. Use m_dreg_interface.
9066 (ppc_linux_nat_target::insert_watchpoint): Add comment, use
9067 m_dreg_interface. Call register_hw_breakpoint or register_wp.
9068 (ppc_linux_nat_target::remove_watchpoint): Add comment, use
9069 m_dreg_interface. Call clear_hw_breakpoint or clear_wp.
9070 (ppc_linux_nat_target::low_forget_process)
9071 (ppc_linux_nat_target::low_new_fork)
9072 (ppc_linux_nat_target::low_new_clone)
9073 (ppc_linux_nat_target::low_delete_thread)
9074 (ppc_linux_nat_target::low_prepare_to_resume): New methods.
9075 (ppc_linux_nat_target::low_new_thread): Remove previous logic,
9076 only call mark_thread_stale.
9077 (ppc_linux_thread_exit): Remove.
9078 (ppc_linux_nat_target::stopped_data_address): Change to...
9079 (ppc_linux_nat_target::low_stopped_data_address): This. Add
9080 comment, use m_dreg_interface and m_thread_hw_breakpoints.
9081 (ppc_linux_nat_target::stopped_by_watchpoint): Change to...
9082 (ppc_linux_nat_target::stopped_by_watchpoint): This. Add
9083 comment. Call low_stopped_data_address.
9084 (ppc_linux_nat_target::watchpoint_addr_within_range): Use
9085 m_dreg_interface.
9086 (ppc_linux_nat_target::masked_watch_num_registers): Use
9087 m_dreg_interface.
9088 (ppc_linux_nat_target::copy_thread_dreg_state)
9089 (ppc_linux_nat_target::mark_thread_stale)
9090 (ppc_linux_nat_target::mark_debug_registers_changed)
9091 (ppc_linux_nat_target::register_hw_breakpoint)
9092 (ppc_linux_nat_target::clear_hw_breakpoint)
9093 (ppc_linux_nat_target::register_wp)
9094 (ppc_linux_nat_target::clear_wp)
9095 (ppc_linux_nat_target::init_arch_lwp_info)
9096 (ppc_linux_nat_target::get_arch_lwp_info): New methods.
9097 (_initialize_ppc_linux_nat): Remove observer callback.
9098
4db10d8f
PFC
90992020-03-30 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
9100
9101 * ppc-linux-nat.c (ppc_linux_nat_target::store_registers)
9102 (ppc_linux_nat_target::auxv_parse)
9103 (ppc_linux_nat_target::read_description)
9104 (supply_gregset, fill_gregset, supply_fpregset, fill_fpregset):
9105 Move up.
9106
1310c1b0
PFC
91072020-03-30 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
9108
9109 * linux-nat.h (low_new_clone): New method.
9110 * linux-nat.c (linux_handle_extended_wait): Call low_new_clone.
9111
69b037c3
SM
91122020-03-29 Simon Marchi <simon.marchi@polymtl.ca>
9113
9114 * dbxread.c (dbx_psymtab_to_symtab_1): Rename to...
9115 (dbx_expand_psymtab): ... this.
9116 (start_psymtab): Update.
9117 * mdebugread.c (psymtab_to_symtab_1): Rename to...
9118 (mdebug_expand_psymtab): ... this.
9119 (parse_partial_symbols): Update.
9120 (new_psymtab): Update.
9121 * xcoffread.c (xcoff_psymtab_to_symtab_1): Rename to...
9122 (xcoff_expand_psymtab): ... this.
9123 (xcoff_start_psymtab): Update.
9124
48993951
SM
91252020-03-29 Simon Marchi <simon.marchi@polymtl.ca>
9126
9127 * psympriv.h (partial_symtab) <read_dependencies>: Rename to...
9128 <expand_dependencies>: ... this.
9129 * psymtab.c (partial_symtab::read_dependencies): Rename to...
9130 (partial_symtab::expand_dependencies): ... this.
9131 * dwarf2/read.c (dwarf2_include_psymtab) <expand_psymtab>:
9132 Update.
9133 (dwarf2_psymtab::expand_psymtab): Update.
9134 * dbxread.c (dbx_psymtab_to_symtab_1): Update.
9135 * mdebugread.c (psymtab_to_symtab_1): Update.
9136 * xcoffread.c (xcoff_psymtab_to_symtab_1): Update.
9137
3ad83046
SM
91382020-03-29 Simon Marchi <simon.marchi@polymtl.ca>
9139
9140 * psympriv.h (discard_psymtab): Remove.
9141 * dbxread.c (dbx_end_psymtab): Update.
9142 * xcoffread.c (xcoff_end_psymtab): Update.
9143
4d1b9ab6
TT
91442020-03-28 Tom Tromey <tom@tromey.com>
9145
9146 * dwarf2/attribute.h (struct attribute) <form_is_constant>: Update
9147 comment.
9148
f1749218
TT
91492020-03-28 Tom Tromey <tom@tromey.com>
9150
9151 * dwarf2/read.c (read_attribute_reprocess): Fix formatting.
9152
ebea7626
HD
91532020-03-27 Hannes Domani <ssbssa@yahoo.de>
9154
9155 * windows-nat.c (windows_add_all_dlls): Fix system dll paths.
9156
a879b4d5
JB
91572020-03-26 John Baldwin <jhb@FreeBSD.org>
9158
9159 * fbsd-tdep.c (fbsd_print_auxv_entry): Handle AT_FREEBSD_BSDFLAGS.
9160
0826b30a
TT
91612020-03-26 Tom Tromey <tom@tromey.com>
9162
9163 * dwarf2/read.c (handle_data_member_location, dwarf2_add_field)
9164 (mark_common_block_symbol_computed, read_tag_string_type)
9165 (attr_to_dynamic_prop, read_subrange_type): Update.
9166 (dwarf2_get_ref_die_offset, dwarf2_get_attr_constant_value): Move
9167 to be methods on struct attribute.
9168 (skip_one_die, process_imported_unit_die, read_namespace_alias)
9169 (read_call_site_scope, partial_die_info::read)
9170 (partial_die_info::read, lookup_die_type, follow_die_ref):
9171 Update.
9172 * dwarf2/attribute.c (attribute::get_ref_die_offset): New method,
9173 from dwarf2_get_ref_die_offset.
9174 (attribute::constant_value): New method, from
9175 dwarf2_get_attr_constant_value.
9176 * dwarf2/attribute.h (struct attribute) <get_ref_die_offset>:
9177 Declare method.
9178 <constant_value>: New method.
9179
2b2558bf
TT
91802020-03-26 Tom Tromey <tom@tromey.com>
9181
9182 * dwarf2/read.c (dwarf_unit_type_name, dwarf_tag_name)
9183 (dwarf_attr_name, dwarf_form_name, dwarf_bool_name)
9184 (dwarf_type_encoding_name): Move to stringify.c.
9185 * Makefile.in (COMMON_SFILES): Add dwarf2/stringify.c.
9186 * dwarf2/stringify.c: New file.
9187 * dwarf2/stringify.h: New file.
9188
eeb64781
TT
91892020-03-26 Tom Tromey <tom@tromey.com>
9190
9191 * dwarf2/die.h (struct die_info) <addr_base, ranges_base>:
9192 Rewrite.
9193
a39fdb41
TT
91942020-03-26 Tom Tromey <tom@tromey.com>
9195
9196 * dwarf2/die.h (struct die_info) <addr_base, ranges_base>: New
9197 methods.
9198 * dwarf2/read.c (lookup_addr_base): Move to die.h.
9199 (lookup_ranges_base): Likewise.
9200 (read_cutu_die_from_dwo, read_full_die_1): Update.
9201
436c571c
TT
92022020-03-26 Tom Tromey <tom@tromey.com>
9203
9204 * dwarf2/read.c (read_import_statement, read_file_scope)
9205 (read_type_unit_scope, inherit_abstract_dies, read_func_scope)
9206 (read_lexical_block_scope, read_call_site_scope)
9207 (dwarf2_get_subprogram_pc_bounds, get_scope_pc_bounds)
9208 (handle_struct_member_die, process_structure_scope)
9209 (update_enumeration_type_from_children)
9210 (process_enumeration_scope, read_array_type, read_common_block)
9211 (read_namespace, read_module, read_subroutine_type): Update.
9212 (sibling_die): Remove.
9213
052c8bb8
TT
92142020-03-26 Tom Tromey <tom@tromey.com>
9215
9216 * dwarf2/read.c (lookup_addr_base, lookup_ranges_base)
9217 (build_type_psymtabs_reader, read_structure_type)
9218 (read_enumeration_type, read_full_die_1): Update.
9219 (dwarf2_attr_no_follow): Move to die.h.
9220 * dwarf2/die.h (struct die_info) <attr>: New method.
9221
2b24b6e4
TT
92222020-03-26 Tom Tromey <tom@tromey.com>
9223
9224 * dwarf2/read.c (struct dwarf2_cu) <base_known>: Remove.
9225 <base_address>: Now an optional.
9226 (dwarf2_find_base_address, dwarf2_rnglists_process)
9227 (dwarf2_ranges_process, fill_in_loclist_baton)
9228 (dwarf2_symbol_mark_computed): Update.
9229
c2d50fd0
TT
92302020-03-26 Tom Tromey <tom@tromey.com>
9231
9232 * dwarf2/read.c (struct die_info): Move to die.h.
9233 * dwarf2/die.h: New file.
9234
0df7ad3a
TT
92352020-03-26 Tom Tromey <tom@tromey.com>
9236
9237 * dwarf2/line-header.h (dwarf_decode_line_header): Declare.
9238 * dwarf2/read.c
9239 (dwarf2_statement_list_fits_in_line_number_section_complaint):
9240 Move to line-header.c.
9241 (read_checked_initial_length_and_offset, read_formatted_entries):
9242 Likewise.
9243 (dwarf_decode_line_header): Split into two.
9244 * dwarf2/line-header.c
9245 (dwarf2_statement_list_fits_in_line_number_section_complaint):
9246 Move from read.c.
9247 (read_checked_initial_length_and_offset, read_formatted_entries):
9248 Likewise.
9249 (dwarf_decode_line_header): New function, split from read.c.
9250
86c0bb4c
TT
92512020-03-26 Tom Tromey <tom@tromey.com>
9252
9253 * dwarf2/read.h (struct dwarf2_per_objfile) <read_line_string>:
9254 Declare method.
9255 * dwarf2/read.c (read_attribute_value): Update.
9256 (dwarf2_per_objfile::read_line_string): Rename from
9257 read_indirect_line_string.
9258 (read_formatted_entries): Update.
9259
2ef46c2f
TT
92602020-03-26 Tom Tromey <tom@tromey.com>
9261
9262 * dwarf2/macro.c (dwarf_decode_macro_bytes): Use objfile local
9263 variable.
9264
4f9c1eda
TT
92652020-03-26 Tom Tromey <tom@tromey.com>
9266
9267 * dwarf2/macro.h (dwarf_decode_macros): Make section parameter
9268 const.
9269 * dwarf2/macro.c (skip_form_bytes, skip_unknown_opcode)
9270 (dwarf_decode_macro_bytes, dwarf_decode_macros): Make section
9271 parameter const.
9272
5a0e026f
TT
92732020-03-26 Tom Tromey <tom@tromey.com>
9274
9275 * dwarf2/read.c (dwarf_decode_macros): Make "lh" const.
9276 * dwarf2/macro.h (dwarf_decode_macros): Constify "lh" parameter.
9277 * dwarf2/macro.c (macro_start_file): Constify "lh" parameter.
9278 (dwarf_decode_macro_bytes, dwarf_decode_macros): Likewise.
9279
8844c11b
TT
92802020-03-26 Tom Tromey <tom@tromey.com>
9281
9282 * dwarf2/line-header.h (struct line_header) <is_valid_file_index,
9283 file_names_size, file_full_name, file_file_name>: Use const.
9284 <file_name_at, file_names>: Add const overload.
9285 * dwarf2/line-header.c (line_header::file_file_name)
9286 (line_header::file_full_name): Update.
9287
c90ec28a
TT
92882020-03-26 Tom Tromey <tom@tromey.com>
9289
9290 * dwarf2/read.c (dwarf2_macro_malformed_definition_complaint)
9291 (macro_start_file, consume_improper_spaces)
9292 (parse_macro_definition, skip_form_bytes, skip_unknown_opcode)
9293 (dwarf_parse_macro_header, dwarf_decode_macro_bytes)
9294 (dwarf_decode_macros): Move to macro.c.
9295 * dwarf2/macro.c: New file.
9296 * dwarf2/macro.h: New file.
9297 * Makefile.in (COMMON_SFILES): Add dwarf2/macro.c.
9298
4f44ae6c
TT
92992020-03-26 Tom Tromey <tom@tromey.com>
9300
9301 * dwarf2/section.h (struct dwarf2_section_info) <read_string>: New
9302 method.
9303 * dwarf2/section.c: New method. From
9304 read_indirect_string_at_offset_from.
9305 * dwarf2/read.c (mapped_debug_names::namei_to_name): Update.
9306 (read_indirect_string_at_offset_from): Move to section.c.
9307 (read_indirect_string_at_offset): Rewrite.
9308 (read_indirect_line_string_at_offset): Remove.
9309 (read_indirect_string, read_indirect_line_string)
9310 (dwarf_decode_macro_bytes): Update.
9311
a0194fa8
TT
93122020-03-26 Tom Tromey <tom@tromey.com>
9313
9314 * dwarf2/section.h (struct dwarf2_section_info)
9315 <overload_complaint>: Declare.
9316 (dwarf2_section_buffer_overflow_complaint): Don't declare.
9317 * dwarf2/section.c (dwarf2_section_info::overflow_complaint):
9318 Rename from dwarf2_section_buffer_overflow_complaint.
9319 * dwarf2/read.c (skip_one_die, partial_die_info::read)
9320 (skip_form_bytes, dwarf_decode_macro_bytes): Update.
9321
3d27bbdb
TT
93222020-03-26 Tom Tromey <tom@tromey.com>
9323
9324 * dwarf2/section.h (dwarf2_section_buffer_overflow_complaint):
9325 Declare.
9326 * dwarf2/section.c (dwarf2_section_buffer_overflow_complaint):
9327 Move from read.c.
9328 * dwarf2/read.c (dwarf2_section_buffer_overflow_complaint): Move
9329 to section.c.
9330
9eac9650
TT
93312020-03-26 Tom Tromey <tom@tromey.com>
9332
9333 * dwarf2/read.c (dwarf_decode_macros): Split into two overloads.
9334
bf80d710
TT
93352020-03-26 Tom Tromey <tom@tromey.com>
9336
9337 * dwarf2/read.c (macro_start_file): Change "cu" parameter to
9338 "builder".
9339 (dwarf_decode_macro_bytes): Likewise. Add dwarf2_per_objfile
9340 parameter.
9341 (dwarf_decode_macros): Update.
9342
0314b390
TT
93432020-03-26 Tom Tromey <tom@tromey.com>
9344
9345 * dwarf2/read.c (read_attribute_value): Update.
9346 (read_indirect_string_from_dwz): Move to dwz.c; change into
9347 method.
9348 (dwarf_decode_macro_bytes): Update.
9349 * dwarf2/dwz.h (struct dwz_file) <read_string>: Declare method.
9350 * dwarf2/dwz.c: New file.
9351 * Makefile.in (COMMON_SFILES): Add dwz.c.
9352
9fda78b6
TT
93532020-03-26 Tom Tromey <tom@tromey.com>
9354
9355 * dwarf2/read.h (struct dwz_file): Move to dwz.h.
9356 * dwarf2/read.c: Add include.
9357 * dwarf2/index-write.c: Add include.
9358 * dwarf2/index-cache.c: Add include.
9359 * dwarf2/dwz.h: New file.
9360
33aa3c10
TT
93612020-03-25 Tom Tromey <tom@tromey.com>
9362
9363 * compile/compile-object-load.c (get_out_value_type): Mention
9364 correct symbol name in error message.
9365
d503b685
HD
93662020-03-25 Hannes Domani <ssbssa@yahoo.de>
9367
9368 * windows-nat.c (windows_add_all_dlls): Fix system dll paths.
9369
7b1eff95
TV
93702020-03-25 Tom de Vries <tdevries@suse.de>
9371
9372 * symtab.h (is_main_symtab_of_compunit_symtab): New function.
9373 * symmisc.c (dump_symtab_1): Print user and includes fields.
9374 (maintenance_info_symtabs): Same.
9375
dd895392
AB
93762020-03-25 Andrew Burgess <andrew.burgess@embecosm.com>
9377
9378 PR gdb/25534
9379 * riscv-tdep.c (riscv_arg_info::c_offset): Update comment.
9380 (riscv_regcache_cooked_write): New function.
9381 (riscv_push_dummy_call): Use new function.
9382 (riscv_return_value): Likewise.
9383
5ab2fbf1
SM
93842020-03-24 Simon Marchi <simon.marchi@polymtl.ca>
9385
9386 * fbsd-nat.c (fbsd_nat_target::follow_fork): Change bool to int.
9387 * fbsd-nat.h (class fbsd_nat_target) <follow_fork>: Likewise.
9388 * inf-ptrace.c (inf_ptrace_target::follow_fork): Likewise.
9389 * inf-ptrace.h (struct inf_ptrace_target) <follow_fork>: Likewise.
9390 * infrun.c (follow_fork): Likewise.
9391 (follow_fork_inferior): Likewise.
9392 * linux-nat.c (linux_nat_target::follow_fork): Likewise.
9393 * linux-nat.h (class linux_nat_target): Likewise.
9394 * remote.c (class remote_target) <follow_fork>: Likewise.
9395 (remote_target::follow_fork): Likewise.
9396 * target-delegates.c: Re-generate.
9397 * target.c (default_follow_fork): Likewise.
9398 (target_follow_fork): Likewise.
9399 * target.h (struct target_ops) <follow_fork>: Likewise.
9400 (target_follow_fork): Likewise.
9401
a64fafb5
TV
94022020-03-24 Tom de Vries <tdevries@suse.de>
9403
9404 * psymtab.c (maintenance_info_psymtabs): Print user field.
9405
fe26d3a3
TT
94062020-03-20 Tom Tromey <tromey@adacore.com>
9407
9408 * dwarf2/loc.h (dwarf2_evaluate_property): Make "addr_stack"
9409 const.
9410 * dwarf2/loc.c (dwarf2_evaluate_property): Make "addr_stack"
9411 const.
9412
c884cc46
SM
94132020-03-20 Simon Marchi <simon.marchi@efficios.com>
9414
9415 * ptrace.m4: Don't check for ptrace declaration.
9416 * config.in: Re-generate.
9417 * configure: Re-generate.
9418 * nat/gdb_ptrace.h: Don't declare ptrace if HAVE_DECL_PTRACE is
9419 not defined.
9420
1ff700c2
KR
94212020-03-20 Kamil Rytarowski <n54@gmx.com>
9422
9423 * amd64-bsd-nat.c (gdb_ptrace): Change return type from `int' to
9424 `PTRACE_TYPE_RET'.
9425 * i386-bsd-nat.c (gdb_ptrace): Likewise.
9426 * sparc-nat.c (gdb_ptrace): Likewise.
9427 * x86-bsd-nat.c (gdb_ptrace): Likewise.
9428
f7d4f0b1
TT
94292020-03-20 Tom Tromey <tromey@adacore.com>
9430
9431 * c-exp.y (lex_one_token): Fix assert.
9432
f67210ff
TT
94332020-03-20 Tom Tromey <tromey@adacore.com>
9434
9435 * ada-tasks.c (read_atcb): Use smaller length in strncpy call.
9436 * linux-tdep.c (linux_fill_prpsinfo): Use smaller length in
9437 strncpy call.
9438
1773be9e
TT
94392020-03-20 Tom Tromey <tromey@adacore.com>
9440
9441 * symmisc.c (maintenance_print_one_line_table): Use ui_out.
9442
70304be9
TT
94432020-03-20 Tom Tromey <tromey@adacore.com>
9444
9445 * ada-valprint.c (print_variant_part): Remove parameters; switch
9446 to value-based API.
9447 (print_field_values): Likewise.
9448 (ada_val_print_struct_union): Likewise.
9449 (ada_value_print_1): Update.
9450
9faa006d
KR
94512020-03-20 Kamil Rytarowski <n54@gmx.com>
9452
9453 * ppc-nbsd-nat.c (ppc_nbsd_nat_target): Inherit from
9454 nbsd_nat_target instead of inf_ptrace_target.
9455 * ppc-nbsd-nat.c: Include "nbsd-nat.h", as we are now using
9456 nbsd_nat_target.
9457
4a90f062
KR
94582020-03-20 Kamil Rytarowski <n54@gmx.com>
9459
9460 * hppa-nbsd-nat.c (fetch_registers): New variable lwp and pass
9461 it to the ptrace call.
9462 * (store_registers): Likewise.
9463
94642020-03-20 Kamil Rytarowski <n54@gmx.com>
c7da12c7
KR
9465
9466 * ppc-nbsd-nat.c (fetch_registers): New variable lwp and pass
9467 it to the ptrace call.
9468 * (store_registers): Likewise.
9469
2d07da27
LM
94702020-03-19 Luis Machado <luis.machado@linaro.org>
9471
9472 * nat/aarch64-sve-linux-ptrace.c (aarch64_sve_set_vq): If vg is not
9473 valid, fetch vg value from ptrace.
9474
f09db380
KR
94752020-03-19 Kamil Rytarowski <n54@gmx.com>
9476 * inf-ptrace.h: Disable get_ptrace_pid on NetBSD.
9477 * inf-ptrace.c: Likewise.
9478 * (gdb_ptrace): Add.
9479 * (inf_ptrace_target::resume): Update.
9480 * (inf_ptrace_target::xfer_partial): Likewise.
9481 * (inf_ptrace_peek_poke): Change argument `pid' to `ptid'.
9482 * (inf_ptrace_peek_poke): Update.
9483
fcc7376e
KR
94842020-03-19 Kamil Rytarowski <n54@gmx.com>
9485
9486 * x86-bsd-nat.c (gdb_ptrace): New.
9487 * (x86bsd_dr_set): Add new argument `ptid'.
9488 * (x86bsd_dr_get, x86bsd_dr_set, x86bsd_dr_set_control,
9489 x86bsd_dr_set_addr): Update.
9490
cada5fc9
AB
94912020-03-19 Andrew Burgess <andrew.burgess@embecosm.com>
9492
9493 * remote.c (remote_target::process_stop_reply): Handle events for
9494 all threads differently.
9495
19a2740f
AB
94962020-03-19 Andrew Burgess <andrew.burgess@embecosm.com>
9497
9498 * completer.c (completion_tracker::remove_completion): Define new
9499 function.
9500 * completer.h (completion_tracker::remove_completion): Declare new
9501 function.
9502 * symtab.c (completion_list_add_symbol): Remove aliasing msymbols
9503 when adding a C++ function symbol.
9504
724fd9ba
AB
95052020-03-19 Andrew Burgess <andrew.burgess@embecosm.com>
9506
9507 * completer.c (completion_tracker::completion_hash_entry): Define
9508 new class.
9509 (advance_to_filename_complete_word_point): Call
9510 recompute_lowest_common_denominator.
9511 (completion_tracker::completion_tracker): Call discard_completions
9512 to setup the hash table.
9513 (completion_tracker::discard_completions): Allow for being called
9514 from the constructor, pass new equal function, and element deleter
9515 when constructing the hash table. Initialise new class member
9516 variables.
9517 (completion_tracker::maybe_add_completion): Remove use of
9518 m_entries_vec, and store more information into m_entries_hash.
9519 (completion_tracker::recompute_lcd_visitor): New function, most
9520 content taken from...
9521 (completion_tracker::recompute_lowest_common_denominator):
9522 ...here, this now just visits each item in the hash calling the
9523 above visitor.
9524 (completion_tracker::build_completion_result): Remove use of
9525 m_entries_vec, call recompute_lowest_common_denominator.
9526 * completer.h (completion_tracker::have_completions): Remove use
9527 of m_entries_vec.
9528 (completion_tracker::completion_hash_entry): Declare new class.
9529 (completion_tracker::recompute_lowest_common_denominator): Change
9530 function signature.
9531 (completion_tracker::recompute_lcd_visitor): Declare new function.
9532 (completion_tracker::m_entries_vec): Delete.
9533 (completion_tracker::m_entries_hash): Initialize to NULL.
9534 (completion_tracker::m_lowest_common_denominator_valid): New
9535 member variable.
9536 (completion_tracker::m_lowest_common_denominator_max_length): New
9537 member variable.
9538
5a82b8a1
KR
95392020-03-17 Kamil Rytarowski <n54@gmx.com>
9540
9541 * regformats/regdef.h: Put reg in gdb namespace.
9542
fb516a69
KR
95432020-03-17 Kamil Rytarowski <n54@gmx.com>
9544
9545 * i386-bsd-nat.c (gdb_ptrace): New.
9546 * (i386bsd_fetch_inferior_registers,
9547 i386bsd_store_inferior_registers) Switch from pid_t to ptid_t.
9548 * (i386bsd_fetch_inferior_registers,
9549 i386bsd_store_inferior_registers) Use gdb_ptrace.
9550
1c0aa1fb
KR
95512020-03-17 Kamil Rytarowski <n54@gmx.com>
9552
9553 * amd64-bsd-nat.c (gdb_ptrace): New.
9554 * (amd64bsd_fetch_inferior_registers,
9555 amd64bsd_store_inferior_registers) Switch from pid_t to ptid_t.
9556 * (amd64bsd_fetch_inferior_registers,
9557 amd64bsd_store_inferior_registers) Use gdb_ptrace.
9558
5ccd2fb7
KR
95592020-03-17 Kamil Rytarowski <n54@gmx.com>
9560
9561 * user-regs.c (user_reg::read): Rename to...
9562 (user_reg::xread): ...this.
9563 * (append_user_reg): Rename argument `read' to `xread'.
9564 * (user_reg_add_builtin): Likewise.
9565 * (user_reg_add): Likewise.
9566 * (value_of_user_reg): Likewise.
9567
2108a63a
KR
95682020-03-17 Kamil Rytarowski <n54@gmx.com>
9569
9570 * sparc-nat.c (gdb_ptrace): New.
9571 * sparc-nat.c (sparc_fetch_inferior_registers)
9572 (sparc_store_inferior_registers) Remove obsolete comment.
9573 * sparc-nat.c (sparc_fetch_inferior_registers)
9574 (sparc_store_inferior_registers) Switch from pid_t to ptid_t.
9575 * sparc-nat.c (sparc_fetch_inferior_registers)
9576 (sparc_store_inferior_registers) Use gdb_ptrace.
9577
a225c9a8
KR
95782020-03-17 Kamil Rytarowski <n54@gmx.com>
9579
9580 * sh-nbsd-nat.c (fetch_registers): New variable lwp and pass
9581 it to the ptrace call.
9582 * sh-nbsd-nat.c (store_registers): Likewise.
9583
98097623
KR
95842020-03-17 Kamil Rytarowski <n54@gmx.com>
9585
9586 * sh-nbsd-nat.c (sh_nbsd_nat_target): Inherit from
9587 nbsd_nat_target instead of inf_ptrace_target.
9588 * sh-nbsd-nat.c: Include "nbsd-nat.h", as we are now using
9589 nbsd_nat_target.
9590
9e38d619
KR
95912020-03-17 Kamil Rytarowski <n54@gmx.com>
9592
9593 * amd64-bsd-nat.c: Include amd64-bsd-nat.h".
9594
a2ecbe9f
KR
95952020-03-17 Kamil Rytarowski <n54@gmx.com>
9596
9597 * nbsd-nat.c: Include <sys/types.h>, <sys/ptrace.h> and
9598 <sys/sysctl.h>.
9599 * nbsd-nat.c (nbsd_nat_target::pid_to_exec_file): Rewrite.
9600
58990295
TV
96012020-03-17 Tom de Vries <tdevries@suse.de>
9602
9603 PR gdb/23710
9604 * dwarf2/read.h (struct dwarf2_per_cu_data): Add unit_type and lang
9605 fields.
9606 * dwarf2/read.c (process_psymtab_comp_unit): Initialize unit_type and lang
9607 fields.
9608 (process_imported_unit_die): Skip import of c++ CUs.
9609
771dd3a8
TT
96102020-03-16 Tom Tromey <tom@tromey.com>
9611
9612 * p-valprint.c (pascal_object_print_value): Initialize
9613 base_value.
9614
817a7585
AK
96152020-03-16 Anton Kolesov <anton.kolesov@synopsys.com>
9616 Shahab Vahedi <shahab@synopsys.com>
9617
9618 * Makefile.in: Add arch/arc.o
9619 * configure.tgt: Likewise.
9620 * arc-tdep.c (arc_tdesc_init): Use arc_read_description.
9621 (_initialize_arc_tdep): Don't initialize old target descriptions.
aac66a4c 9622 (arc_read_description): New function to cache target descriptions.
817a7585
AK
9623 * arc-tdep.h (arc_read_description): Add proto type.
9624 * arch/arc.c: New file.
9625 * arch/arc.h: Likewise.
9626 * features/Makefile: Replace old target descriptions with new.
9627 * features/arc-arcompact.c: Remove.
9628 * features/arc-arcompact.xml: Likewise.
9629 * features/arc-v2.c: Likewise
9630 * features/arc-v2.xml: Likewise
9631 * features/arc/aux-arcompact.xml: New file.
9632 * features/arc/aux-v2.xml: Likewise.
9633 * features/arc/core-arcompact.xml: Likewise.
9634 * features/arc/core-v2.xml: Likewise.
9635 * features/arc/aux-arcompact.c: Generate.
9636 * features/arc/aux-v2.c: Likewise.
9637 * features/arc/core-arcompact.c: Likewise.
9638 * features/arc/core-v2.c: Likewise.
9639 * target-descriptions (maint_print_c_tdesc_cmd): Support ARC features.
9640
67430cd0
TT
96412020-03-16 Tom Tromey <tromey@adacore.com>
9642
9643 PR gdb/25663:
9644 * dwarf2/read.c (dwarf2_name): Strip leading namespaces after
9645 putting value into bcache.
9646
30efb6c7
SM
96472020-03-16 Simon Marchi <simon.marchi@efficios.com>
9648
9649 PR gdb/21500
9650 * amd64-windows-tdep.c (amd64_windows_init_abi): Rename
9651 to...
9652 (amd64_windows_init_abi_common): ... this. Don't set size of
9653 long type.
9654 (amd64_windows_init_abi): New function.
9655 (amd64_cygwin_init_abi): New function.
9656 (_initialize_amd64_windows_tdep): Use amd64_cygwin_init_abi for
9657 the Cygwin OS ABI.
9658 * i386-windows-tdep.c (_initialize_i386_windows_tdep): Clarify
9659 comment.
9660
8db52437
SM
96612020-03-16 Simon Marchi <simon.marchi@efficios.com>
9662
9663 * windows-tdep.h (is_linked_with_cygwin_dll): New declaration.
9664 * windows-tdep.c (CYGWIN_DLL_NAME): New.
9665 (pe_import_directory_entry): New struct type.
9666 (is_linked_with_cygwin_dll): New function.
9667 * amd64-windows-tdep.c (amd64_windows_osabi_sniffer): Select
9668 GDB_OSABI_CYGWIN if the BFD is linked with the Cygwin DLL.
9669 * i386-windows-tdep.c (i386_windows_osabi_sniffer): Likewise.
9670
5982a56a
SM
96712020-03-16 Simon Marchi <simon.marchi@efficios.com>
9672
9673 * i386-windows-tdep.c: Mass-rename "cygwin" to "windows", except
9674 i386_cygwin_core_osabi_sniffer.
9675
7a1998df
SM
96762020-03-16 Simon Marchi <simon.marchi@efficios.com>
9677
9678 * i386-cygwin-tdep.c: Rename to...
9679 * i386-windows-tdep.c: ... this.
9680 * Makefile.in (ALL_TARGET_OBS): Rename i386-cygwin-tdep.c to
9681 i386-windows-tdep.c.
9682 * configure.tgt: Likewise.
9683
053205cc
SM
96842020-03-16 Simon Marchi <simon.marchi@efficios.com>
9685
9686 * osabi.h (enum gdb_osabi): Add GDB_OSABI_WINDOWS.
9687 * osabi.c (gdb_osabi_names): Add "Windows".
9688 * i386-cygwin-tdep.c (i386_cygwin_osabi_sniffer): Return
9689 GDB_OSABI_WINDOWS when the binary's target is "pei-i386".
9690 (i386_cygwin_core_osabi_sniffer): New function, extracted from
9691 i386_cygwin_osabi_sniffer.
9692 (_initialize_i386_cygwin_tdep): Register OS ABI
9693 GDB_OSABI_WINDOWS for i386.
9694 * amd64-windows-tdep.c (amd64_windows_osabi_sniffer): Return
9695 GDB_OSABI_WINDOWS when the binary's target is "pei-x86-64".
9696 (_initialize_amd64_windows_tdep): Register OS ABI GDB_OSABI_WINDOWS
9697 for x86-64.
9698 * configure.tgt: Use GDB_OSABI_WINDOWS as the default OS ABI
9699 when the target matches '*-*-mingw*'.
9700
fe4b2ee6
SM
97012020-03-16 Simon Marchi <simon.marchi@efficios.com>
9702
9703 * defs.h (enum gdb_osabi): Move to...
9704 * osabi.h (enum gdb_osabi): ... here.
9705 * gdbarch.sh: Include osabi.h in gdbarch.h.
9706 * gdbarch.h: Re-generate.
9707
cb9b645d
SM
97082020-03-16 Simon Marchi <simon.marchi@efficios.com>
9709
9710 * amd64-windows-tdep.c (amd64_windows_osabi_sniffer): New
9711 function.
9712 (_initialize_amd64_windows_tdep): Register osabi sniffer.
9713
3293bbaf
TT
97142020-03-14 Tom Tromey <tom@tromey.com>
9715
9716 * c-typeprint.c (cp_type_print_method_args): Print "__restrict__"
9717 for C++.
9718 (c_type_print_modifier): Likewise. Add "language" parameter.
9719 (c_type_print_varspec_prefix, c_type_print_base_struct_union)
9720 (c_type_print_base_1): Update.
9721 * type-stack.h (enum type_pieces) <tp_atomic, tp_restrict>: New
9722 constants.
9723 * type-stack.c (type_stack::insert): Handle tp_atomic and
9724 tp_restrict.
9725 (type_stack::follow_type_instance_flags): Likewise.
9726 (type_stack::follow_types): Likewise. Merge type-following code.
9727 * c-exp.y (RESTRICT, ATOMIC): New tokens.
9728 (space_identifier, cv_with_space_id)
9729 (const_or_volatile_or_space_identifier_noopt)
9730 (const_or_volatile_or_space_identifier): Remove.
9731 (single_qualifier, qualifier_seq_noopt, qualifier_seq): New
9732 rules.
9733 (ptr_operator, typebase): Update.
9734 (enum token_flag) <FLAG_C>: New constant.
9735 (ident_tokens): Add "restrict", "__restrict__", "__restrict", and
9736 "_Atomic".
9737 (lex_one_token): Handle FLAG_C.
9738
154151a6
KR
97392020-03-14 Kamil Rytarowski <n54@gmx.com>
9740
9741 * m68k-bsd-nat.c (fetch_registers): New variable lwp and pass
9742 it to the ptrace call.
9743 * m68k-bsd-nat.c (store_registers): Likewise.
9744
bc107784
KR
97452020-03-14 Kamil Rytarowski <n54@gmx.com>
9746
9747 * m68k-bsd-nat.c (m68kbsd_supply_gregset): Change type of regs to
9748 gdb_byte *.
9749 * m68k-bsd-nat.c (m68kbsd_supply_fpregset): Likewise.
9750 * m68k-bsd-nat.c (m68kbsd_collect_gregset): Likewise.
9751 * m68k-bsd-nat.c (m68kbsd_supply_pcb): Cast &tmp to gdb_byte *.
9752
01a80117
KR
97532020-03-14 Kamil Rytarowski <n54@gmx.com>
9754
9755 * m68k-bsd-nat.c (m68k_bsd_nat_target): Inherit from
9756 nbsd_nat_target instead of inf_ptrace_target.
9757 * m68k-bsd-nat.c: Include "nbsd-nat.h", as we are now using
9758 nbsd_nat_target.
9759
f90280ca
KR
97602020-03-14 Kamil Rytarowski <n54@gmx.com>
9761
9762 * m68k-bsd-nat.c: Define _KERNTYPES to get the declaration of
9763 register_t.
9764
6def66f1
KR
97652020-03-14 Kamil Rytarowski <n54@gmx.com>
9766
9767 * alpha-bsd-nat.c (fetch_registers): New variable lwp and pass
9768 it to the ptrace call.
9769 * alpha-bsd-nat.c (store_registers): Likewise.
9770
66eaca97
KR
97712020-03-14 Kamil Rytarowski <n54@gmx.com>
9772
9773 * alpha-bsd-nat.c: Remove <sys/procfs.h> and "gregset.h" from
9774 includes.
9775 * alpha-bsd-nat.c (gregset_t, fpregset_t): Remove.
9776 * alpha-bsd-nat.c (supply_gregset, fill_gregset, supply_fpregset,
9777 fill_fpregset): Likewise.
9778
4fed520b
KR
97792020-03-14 Kamil Rytarowski <n54@gmx.com>
9780
9781 * alpha-bsd-nat.c (alpha_netbsd_nat_target): Inherit from
9782 nbsd_nat_target instead of inf_ptrace_target.
9783 * alpha-bsd-nat.c: Include "nbsd-nat.h", as we are now using
9784 nbsd_nat_target.
9785
2190cf06
KR
97862020-03-14 Kamil Rytarowski <n54@gmx.com>
9787
9788 * alpha-bsd-nat.c: Define _KERNTYPES to get the declaration of
9789 register_t.
9790
75c56d3d
KR
97912020-03-14 Kamil Rytarowski <n54@gmx.com>
9792
9793 * arm-nbsd-nat.c (fetch_register): New variable lwp and pass
9794 it to the ptrace call.
9795 * arm-nbsd-nat.c (fetch_fp_register): Likewise.
9796 * arm-nbsd-nat.c (fetch_fp_regs): Likewise.
9797 * arm-nbsd-nat.c (store_register): Likewise.
9798 * arm-nbsd-nat.c (store_regs): Likewise.
9799 * arm-nbsd-nat.c (store_fp_register): Likewise.
9800 * arm-nbsd-nat.c (store_fp_regs): Likewise.
9801
6018d381
KR
98022020-03-14 Kamil Rytarowski <n54@gmx.com>
9803
9804 * arm-nbsd-nat.c (arm_netbsd_nat_target): Inherit from
9805 nbsd_nat_target instead of inf_ptrace_target.
9806 * arm-nbsd-nat.c: Include "nbsd-nat.h", as we are now using
9807 nbsd_nat_target.
9808
013f99f0
KR
98092020-03-14 Kamil Rytarowski <n54@gmx.com>
9810
9811 * x86-bsd-nat.c (x86bsd_dr_get): New variable lwp and pass
9812 it to the ptrace call.
9813 * x86-bsd-nat.c (x86bsd_dr_set): Likewise.
9814
12753073
KR
98152020-03-14 Kamil Rytarowski <n54@gmx.com>
9816
6227b330
KR
9817 * vax-bsd-nat.c (vaxbsd_supply_gregset): New variable lwp and pass
9818 it to the ptrace call.
9819 * vax-bsd-nat.c (vaxbsd_collect_gregset): Likewise.
9820
98212020-03-14 Kamil Rytarowski <n54@gmx.com>
9822
9823 * vax-bsd-nat.c (vaxbsd_supply_gregset): Cast gregs to const
9824 gdb_byte *.
12753073
KR
9825 * vax-bsd-nat.c (vaxbsd_collect_gregset): Cast gregs to void *.
9826
d5be5fa4
KR
98272020-03-14 Kamil Rytarowski <n54@gmx.com>
9828
9829 * vax-bsd-nat.c (vax_bsd_nat_target): Inherit from nbsd_nat_target
9830 instead of inf_ptrace_target.
9831 * vax-bsd-nat.c: Include "nbsd-nat.h", as we are now using
9832 nbsd_nat_target.
9833
8110f842
KR
98342020-03-14 Kamil Rytarowski <n54@gmx.com>
9835
9836 * mips-nbsd-nat.c: Define _KERNTYPES to get the declaration of
9837 register_t.
9838
52feded7
KR
98392020-03-14 Kamil Rytarowski <n54@gmx.com>
9840
9841 * ppc-nbsd-nat.c: Define _KERNTYPES to get the declaration of
9842 register_t.
9843
25567eee
KR
98442020-03-14 Kamil Rytarowski <n54@gmx.com>
9845
9846 * vax-bsd-nat.c: Define _KERNTYPES to get the declaration of
9847 register_t.
9848
426a9c18
TT
98492020-03-13 Tom Tromey <tom@tromey.com>
9850
9851 * value.h (val_print): Don't declare.
9852 * valprint.h (val_print_array_elements)
9853 (val_print_scalar_formatted, generic_val_print): Don't declare.
9854 * valprint.c (generic_val_print_array): Take a struct value.
9855 (generic_val_print_ptr, generic_val_print_memberptr)
9856 (generic_val_print_bool, generic_val_print_int)
9857 (generic_val_print_char, generic_val_print_complex)
9858 (generic_val_print): Remove.
9859 (generic_value_print): Update.
9860 (do_val_print): Remove unused parameters. Don't call
9861 la_val_print.
9862 (val_print): Remove.
9863 (common_val_print): Update. Don't call value_check_printable.
9864 (val_print_scalar_formatted, val_print_array_elements): Remove.
9865 * rust-lang.c (rust_val_print): Remove.
9866 (rust_language_defn): Update.
9867 * p-valprint.c (pascal_val_print): Remove.
9868 (pascal_value_print_inner): Update.
9869 (pascal_object_print_val_fields, pascal_object_print_val):
9870 Remove.
9871 (pascal_object_print_static_field): Update.
9872 * p-lang.h (pascal_val_print): Don't declare.
9873 * p-lang.c (pascal_language_defn): Update.
9874 * opencl-lang.c (opencl_language_defn): Update.
9875 * objc-lang.c (objc_language_defn): Update.
9876 * m2-valprint.c (m2_print_unbounded_array, m2_val_print): Remove.
9877 * m2-lang.h (m2_val_print): Don't declare.
9878 * m2-lang.c (m2_language_defn): Update.
9879 * language.h (struct language_defn) <la_val_print>: Remove.
9880 * language.c (unk_lang_value_print_inner): Rename. Change
9881 argument types.
9882 (unknown_language_defn, auto_language_defn): Update.
9883 * go-valprint.c (go_val_print): Remove.
9884 * go-lang.h (go_val_print): Don't declare.
9885 * go-lang.c (go_language_defn): Update.
9886 * f-valprint.c (f_val_print): Remove.
9887 * f-lang.h (f_value_print): Don't declare.
9888 * f-lang.c (f_language_defn): Update.
9889 * d-valprint.c (d_val_print): Remove.
9890 * d-lang.h (d_value_print): Don't declare.
9891 * d-lang.c (d_language_defn): Update.
9892 * cp-valprint.c (cp_print_value_fields)
9893 (cp_print_value_fields_rtti, cp_print_value): Remove.
9894 (cp_print_static_field): Update.
9895 * c-valprint.c (c_val_print_array, c_val_print_ptr)
9896 (c_val_print_struct, c_val_print_union, c_val_print_int)
9897 (c_val_print_memberptr, c_val_print): Remove.
9898 * c-lang.h (c_val_print_array, cp_print_value_fields)
9899 (cp_print_value_fields_rtti): Don't declare.
9900 * c-lang.c (c_language_defn, cplus_language_defn)
9901 (asm_language_defn, minimal_language_defn): Update.
9902 * ada-valprint.c (ada_val_print_ptr, ada_val_print_num): Remove.
9903 (ada_val_print_enum): Take a struct value.
9904 (ada_val_print_flt, ada_val_print_array, ada_val_print_1)
9905 (ada_val_print): Remove.
9906 (ada_value_print_1): Update.
9907 (printable_val_type): Remove.
9908 * ada-lang.h (ada_val_print): Don't declare.
9909 * ada-lang.c (ada_language_defn): Update.
9910
42331a1e
TT
99112020-03-13 Tom Tromey <tom@tromey.com>
9912
9913 * valprint.c (do_val_print): Update.
9914 * python/python-internal.h (gdbpy_apply_val_pretty_printer): Take
9915 a struct value.
9916 (value_to_value_object_no_release): Declare.
9917 * python/py-value.c (value_to_value_object_no_release): New
9918 function.
9919 * python/py-prettyprint.c (gdbpy_apply_val_pretty_printer): Take a
9920 struct value.
9921 * guile/scm-value.c (vlscm_scm_from_value_no_release): New
9922 function.
9923 * guile/scm-pretty-print.c (gdbscm_apply_val_pretty_printer): Take
9924 a struct value.
9925 * guile/guile-internal.h (vlscm_scm_from_value_no_release):
9926 Declare.
9927 (gdbscm_apply_val_pretty_printer): Take a struct value.
9928 * extension.h (apply_ext_lang_val_pretty_printer): Take a struct
9929 value.
9930 * extension.c (apply_ext_lang_val_pretty_printer): Take a struct
9931 value.
9932 * extension-priv.h (struct extension_language_ops)
9933 <apply_val_pretty_printer>: Take a struct value.
9934 * cp-valprint.c (cp_print_value): Create a struct value.
9935 (cp_print_value): Update.
9936
3a916a97
TT
99372020-03-13 Tom Tromey <tom@tromey.com>
9938
9939 * ada-valprint.c (print_field_values): Call common_val_print.
9940
b59eac37
TT
99412020-03-13 Tom Tromey <tom@tromey.com>
9942
9943 * ada-valprint.c (val_print_packed_array_elements): Remove
9944 bitoffset and val parameters. Call common_val_print.
9945 (ada_val_print_string): Remove offset, address, and original_value
9946 parameters.
9947 (ada_val_print_array): Update.
9948 (ada_value_print_array): New function.
9949 (ada_value_print_1): Call it.
9950
03371129
TT
99512020-03-13 Tom Tromey <tom@tromey.com>
9952
9953 * ada-valprint.c (ada_value_print): Use common_val_print.
9954
2e088f8b
TT
99552020-03-13 Tom Tromey <tom@tromey.com>
9956
9957 * ada-valprint.c (ada_val_print_ref): Use common_val_print.
9958
39ef85a8
TT
99592020-03-13 Tom Tromey <tom@tromey.com>
9960
9961 * ada-valprint.c (ada_value_print_num): New function.
9962 (ada_value_print_1): Use it.
9963
b9fa6e07
TT
99642020-03-13 Tom Tromey <tom@tromey.com>
9965
9966 * ada-valprint.c (ada_value_print_1) <TYPE_CODE_FLT>: Rewrite.
9967
416595d6
TT
99682020-03-13 Tom Tromey <tom@tromey.com>
9969
9970 * ada-valprint.c (ada_value_print_ptr): New function.
9971 (ada_value_print_1): Use it.
9972
5b5e15ec
TT
99732020-03-13 Tom Tromey <tom@tromey.com>
9974
9975 * ada-valprint.c (ada_val_print_gnat_array): Take a struct value;
9976 call common_val_print.
9977 (ada_val_print_1): Update.
9978 (ada_value_print_1): New function.
9979 (ada_value_print_inner): Rewrite.
9980
fbf54e75
TT
99812020-03-13 Tom Tromey <tom@tromey.com>
9982
9983 * cp-valprint.c (cp_print_value_fields): Update.
9984 (cp_print_value): New function.
9985
64b653ca
TT
99862020-03-13 Tom Tromey <tom@tromey.com>
9987
9988 * m2-valprint.c (m2_value_print_inner): Use
9989 cp_print_value_fields.
9990 * cp-valprint.c (cp_print_value_fields): New function.
9991 * c-valprint.c (c_value_print_struct): New function.
9992 (c_value_print_inner): Use c_value_print_struct.
9993 * c-lang.h (cp_print_value_fields): Declare.
9994
6999f067
TT
99952020-03-13 Tom Tromey <tom@tromey.com>
9996
9997 * c-valprint.c (c_value_print_array): New function.
9998 (c_value_print_inner): Use it.
9999
ce80b8bd
TT
100002020-03-13 Tom Tromey <tom@tromey.com>
10001
10002 * c-valprint.c (c_value_print_memberptr): New function.
10003 (c_value_print_inner): Use it.
10004
2faac269
TT
100052020-03-13 Tom Tromey <tom@tromey.com>
10006
10007 * c-valprint.c (c_value_print_int): New function.
10008 (c_value_print_inner): Use it.
10009
da3e2c29
TT
100102020-03-13 Tom Tromey <tom@tromey.com>
10011
10012 * c-valprint.c (c_value_print_ptr): New function.
10013 (c_value_print_inner): Use it.
10014
50836231
TT
100152020-03-13 Tom Tromey <tom@tromey.com>
10016
10017 * c-valprint.c (c_value_print_inner): Rewrite.
10018
4f412b6e
TT
100192020-03-13 Tom Tromey <tom@tromey.com>
10020
10021 * valprint.c (generic_value_print_complex): New function.
10022 (generic_value_print): Use it.
10023
f5354008
TT
100242020-03-13 Tom Tromey <tom@tromey.com>
10025
10026 * valprint.c (generic_val_print_float): Don't call
10027 val_print_scalar_formatted.
10028 (generic_val_print, generic_value_print): Update.
10029
3eec3b05
TT
100302020-03-13 Tom Tromey <tom@tromey.com>
10031
10032 * valprint.c (generic_value_print_char): New function
10033 (generic_value_print): Use it.
10034
fdddfccb
TT
100352020-03-13 Tom Tromey <tom@tromey.com>
10036
10037 * valprint.c (generic_value_print_int): New function.
10038 (generic_value_print): Use it.
10039
6dde7521
TT
100402020-03-13 Tom Tromey <tom@tromey.com>
10041
10042 * valprint.c (generic_value_print_bool): New function.
10043 (generic_value_print): Use it.
10044
4112d2e6
TT
100452020-03-13 Tom Tromey <tom@tromey.com>
10046
10047 * valprint.c (generic_val_print_func): Simplify.
10048 (generic_val_print, generic_value_print): Update.
10049
65786af6
TT
100502020-03-13 Tom Tromey <tom@tromey.com>
10051
10052 * valprint.c (generic_val_print_flags): Remove.
10053 (generic_val_print, generic_value_print): Update.
10054 (val_print_type_code_flags): Add original_value parameter.
10055
40f3ce18
TT
100562020-03-13 Tom Tromey <tom@tromey.com>
10057
10058 * valprint.c (generic_val_print): Update.
10059 (generic_value_print): Update.
10060 * valprint.c (generic_val_print_enum): Don't call
10061 val_print_scalar_formatted.
10062
2a5b130b
TT
100632020-03-13 Tom Tromey <tom@tromey.com>
10064
10065 * valprint.c (generic_value_print): Call generic_value_print_ptr.
10066 * valprint.c (generic_value_print_ptr): New function.
10067
abc66ce9
TT
100682020-03-13 Tom Tromey <tom@tromey.com>
10069
10070 * valprint.c (generic_value_print): Rewrite.
10071
07a32858
TT
100722020-03-13 Tom Tromey <tom@tromey.com>
10073
10074 * p-valprint.c (pascal_object_print_value_fields)
10075 (pascal_object_print_value): New functions.
10076
64d64d3a
TT
100772020-03-13 Tom Tromey <tom@tromey.com>
10078
10079 * p-valprint.c (pascal_value_print_inner): Rewrite.
10080
6a95a1f5
TT
100812020-03-13 Tom Tromey <tom@tromey.com>
10082
10083 * f-valprint.c (f_value_print_innner): Rewrite.
10084
59fcdac6
TT
100852020-03-13 Tom Tromey <tom@tromey.com>
10086
10087 * m2-valprint.c (m2_print_unbounded_array): New overload.
10088 (m2_print_unbounded_array): Update.
10089 (m2_print_array_contents): Take a struct value.
10090 (m2_value_print_inner): Rewrite.
10091
d133c3e1
TT
100922020-03-13 Tom Tromey <tom@tromey.com>
10093
10094 * d-valprint.c (dynamic_array_type): Call d_value_print_inner.
10095 (d_value_print_inner): New function.
10096 * d-lang.h (d_value_print_inner): Declare.
10097 * d-lang.c (d_language_defn): Use d_value_print_inner.
10098
23b0f06b
TT
100992020-03-13 Tom Tromey <tom@tromey.com>
10100
10101 * go-valprint.c (go_value_print_inner): New function.
10102 * go-lang.h (go_value_print_inner): Declare.
10103 * go-lang.c (go_language_defn): Use go_value_print_inner.
10104
5f56f7cb
TT
101052020-03-13 Tom Tromey <tom@tromey.com>
10106
10107 * rust-lang.c (val_print_struct, rust_print_enum): Use the value
10108 API.
10109 (rust_val_print): Rewrite.
10110 (rust_value_print_inner): New function, from rust_val_print.
10111 (rust_language_defn): Use rust_value_print_inner.
10112
26792ee0
TT
101132020-03-13 Tom Tromey <tom@tromey.com>
10114
10115 * ada-valprint.c (ada_value_print_inner): New function.
10116 * ada-lang.h (ada_value_print_inner): Declare.
10117 * ada-lang.c (ada_language_defn): Use ada_value_print_inner.
10118
24051bbe
TT
101192020-03-13 Tom Tromey <tom@tromey.com>
10120
10121 * f-valprint.c (f_value_print_innner): New function.
10122 * f-lang.h (f_value_print_innner): Declare.
10123 * f-lang.c (f_language_defn): Use f_value_print_innner.
10124
c0941be6
TT
101252020-03-13 Tom Tromey <tom@tromey.com>
10126
10127 * p-valprint.c (pascal_value_print_inner): New function.
10128 * p-lang.h (pascal_value_print_inner): Declare.
10129 * p-lang.c (pascal_language_defn): Use pascal_value_print_inner.
10130
62c4663d
TT
101312020-03-13 Tom Tromey <tom@tromey.com>
10132
10133 * m2-valprint.c (m2_value_print_inner): New function.
10134 * m2-lang.h (m2_value_print_inner): Declare.
10135 * m2-lang.c (m2_language_defn): Use m2_value_print_inner.
10136
62182190
TT
101372020-03-13 Tom Tromey <tom@tromey.com>
10138
10139 * opencl-lang.c (opencl_language_defn): Use c_value_print_inner.
10140 * objc-lang.c (objc_language_defn): Use c_value_print_inner.
10141 * c-valprint.c (c_value_print_inner): New function.
10142 * c-lang.h (c_value_print_inner): Declare.
10143 * c-lang.c (c_language_defn, cplus_language_defn)
10144 (asm_language_defn, minimal_language_defn): Use
10145 c_value_print_inner.
10146
1e592a8a
TT
101472020-03-13 Tom Tromey <tom@tromey.com>
10148
10149 * p-valprint.c (pascal_object_print_value_fields): Now static.
10150 * p-lang.h (pascal_object_print_value_fields): Don't declare.
10151
7fe471e9
TT
101522020-03-13 Tom Tromey <tom@tromey.com>
10153
10154 * c-valprint.c (c_val_print_array): Simplify.
10155
d121c6ce
TT
101562020-03-13 Tom Tromey <tom@tromey.com>
10157
10158 * valprint.c (value_print_array_elements): New function.
10159 * valprint.h (value_print_array_elements): Declare.
10160
4dba70ee
TT
101612020-03-13 Tom Tromey <tom@tromey.com>
10162
10163 * printcmd.c (print_formatted): Use value_print_scalar_formatted.
10164 * mips-tdep.c (mips_print_register): Use
10165 value_print_scalar_formatted.
10166
4f9ae810
TT
101672020-03-13 Tom Tromey <tom@tromey.com>
10168
10169 * valprint.h (value_print_scalar_formatted): Declare.
10170 * valprint.c (value_print_scalar_formatted): New function.
10171
156bfec9
TT
101722020-03-13 Tom Tromey <tom@tromey.com>
10173
10174 * valprint.h (generic_value_print): Declare.
10175 * valprint.c (generic_value_print): New function.
10176
2b4e573d
TT
101772020-03-13 Tom Tromey <tom@tromey.com>
10178
10179 * valprint.c (do_val_print): Call la_value_print_inner, if
10180 available.
10181 * rust-lang.c (rust_language_defn): Update.
10182 * p-lang.c (pascal_language_defn): Update.
10183 * opencl-lang.c (opencl_language_defn): Update.
10184 * objc-lang.c (objc_language_defn): Update.
10185 * m2-lang.c (m2_language_defn): Update.
10186 * language.h (struct language_defn) <la_value_print_inner>: New
10187 member.
10188 * language.c (unknown_language_defn, auto_language_defn): Update.
10189 * go-lang.c (go_language_defn): Update.
10190 * f-lang.c (f_language_defn): Update.
10191 * d-lang.c (d_language_defn): Update.
10192 * c-lang.c (c_language_defn, cplus_language_defn)
10193 (asm_language_defn, minimal_language_defn): Update.
10194 * ada-lang.c (ada_language_defn): Update.
10195
a1f6a07c
TT
101962020-03-13 Tom Tromey <tom@tromey.com>
10197
10198 * c-valprint.c (c_value_print): Use common_val_print.
10199
410cf315
TT
102002020-03-13 Tom Tromey <tom@tromey.com>
10201
10202 * cp-valprint.c (cp_print_static_field): Use common_val_print.
10203
72a45c93
TT
102042020-03-13 Tom Tromey <tom@tromey.com>
10205
10206 * f-valprint.c (f77_print_array_1, f_val_print): Use
10207 common_val_print.
10208
040f66bd
TT
102092020-03-13 Tom Tromey <tom@tromey.com>
10210
10211 * riscv-tdep.c (riscv_print_one_register_info): Use
10212 common_val_print.
10213
a6e05a6c
TT
102142020-03-13 Tom Tromey <tom@tromey.com>
10215
10216 * mi/mi-main.c (output_register): Use common_val_print.
10217
3444c526
TT
102182020-03-13 Tom Tromey <tom@tromey.com>
10219
10220 * infcmd.c (default_print_one_register_info): Use
10221 common_val_print.
10222
c2a44efe
TT
102232020-03-13 Tom Tromey <tom@tromey.com>
10224
10225 * valprint.h (common_val_print_checked): Declare.
10226 * valprint.c (common_val_print_checked): New function.
10227 * stack.c (print_frame_arg): Use common_val_print_checked.
10228
b0c26e99
TT
102292020-03-13 Tom Tromey <tom@tromey.com>
10230
10231 * valprint.c (do_val_print): New function, from val_print.
10232 (val_print): Use do_val_print.
10233 (common_val_print): Use do_val_print.
10234
ce3acbe9
TT
102352020-03-13 Tom Tromey <tom@tromey.com>
10236
10237 * valprint.c (value_print): Use scoped_value_mark.
10238
96c7f873
TV
102392020-03-13 Tom de Vries <tdevries@suse.de>
10240
10241 PR symtab/25646
10242 * psymtab.c (partial_symtab::partial_symtab): Don't set
10243 globals_offset and statics_offset. Push element onto
10244 current_global_psymbols and current_static_psymbols stacks.
10245 (concat): New function.
10246 (end_psymtab_common): Set globals_offset and statics_offset. Pop
10247 element from current_global_psymbols and current_static_psymbols
10248 stacks. Concat popped elements to global_psymbols and
10249 static_symbols.
10250 (add_psymbol_to_list): Use current_global_psymbols and
10251 current_static_psymbols stacks.
10252 * psymtab.h (class psymtab_storage): Add current_global_psymbols and
10253 current_static_psymbols fields.
10254
6ba0a321
CB
102552020-03-12 Christian Biesinger <cbiesinger@google.com>
10256
10257 * corelow.c (sniff_core_bfd): Remove.
10258 (class core_target) <m_core_vec>: Remove.
10259 (core_target::core_target): Update.
10260 (core_file_fns): Remove.
10261 (deprecated_add_core_fns): Remove.
10262 (default_core_sniffer): Remove.
10263 (sniff_core_bfd): Remove.
10264 (default_check_format): Remove.
10265 (gdb_check_format): Remove.
10266 (core_target_open): Update.
10267 (core_target::get_core_register_section): Update.
10268 (get_core_registers_cb): Update.
10269 (core_target::fetch_registers): Update.
10270 * gdbcore.h (struct core_fns): Remove.
10271 (deprecated_add_core_fns): Remove.
10272 (default_core_sniffer): Remove.
10273 (default_check_format): Remove.
10274
227031b2
TT
102752020-03-12 Tom Tromey <tom@tromey.com>
10276
10277 * arm-tdep.c (struct arm_mapping_symbol) <value>: Now a
10278 CORE_ADDR.
10279 (struct arm_exidx_entry) <addr>: Now a CORE_ADDR.
10280
53807e9f
TT
102812020-03-12 Tom Tromey <tom@tromey.com>
10282
10283 * remote.c (remote_target::download_tracepoint)
10284 (remote_target::enable_tracepoint)
10285 (remote_target::disable_tracepoint): Use phex, not sprintf_vma.
10286 * breakpoint.c (print_recreate_masked_watchpoint): Use phex, not
10287 sprintf_vma.
10288
64f25102
TT
102892020-03-12 Tom Tromey <tom@tromey.com>
10290
10291 * symfile-mem.c: Update CORE_ADDR size assert.
10292
272cd5a3
SM
102932020-03-12 Simon Marchi <simon.marchi@efficios.com>
10294
10295 * selftest.m4: Move to gdbsupport/.
10296 * acinclude.m4: Update path to selftest.m4.
10297
74cd3f9d
SM
102982020-03-12 Simon Marchi <simon.marchi@efficios.com>
10299
10300 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Rename to...
10301 (SELFTESTS_SRCS): ... this. Add disasm-selftests.c,
10302 gdbarch-selfselftests.c and selftest-arch.c.
10303 (SUBDIR_UNITTESTS_OBS): Rename to...
10304 (SELFTESTS_OBS): ... this.
10305 (COMMON_SFILES): Remove disasm-selftests.c and
10306 gdbarch-selftests.c.
10307 * configure.ac: Don't add selftest-arch.{c,o} to
10308 CONFIG_{SRCS,OBS}.
10309 * disasm-selftests.c, gdbarch-selftests.c: Remove GDB_SELF_TEST
10310 preprocessor conditions.
10311
db6878ac
SM
103122020-03-12 Simon Marchi <simon.marchi@efficios.com>
10313
10314 * configure.ac: Don't source bfd/development.sh.
10315 * selftest.m4: Modify comment.
10316 * configure: Re-generate.
10317
4d696a5c
SM
103182020-03-12 Simon Marchi <simon.marchi@efficios.com>
10319
10320 * selftest.m4 (GDB_AC_SELFTEST): Error out if $development is
10321 not "true" or "false".
10322 * configure: Re-generate.
10323
8dd8e1c7
CB
103242020-03-12 Christian Biesinger <cbiesinger@google.com>
10325
10326 * Makefile.in (HFILES_NO_SRCDIR): Add new arm-nbsd-tdep.h file.
10327 * arm-nbsd-nat.c (arm_supply_gregset): Moved to arm-nbsd-tdep and
10328 renamed to arm_nbsd_supply_gregset.
10329 (fetch_register): Update to call arm_nbsd_supply_gregset.
10330 (fetch_regs): Remove in favor of fetch_register with a -1 regno.
10331 (arm_netbsd_nat_target::fetch_registers): Update.
10332 (fetch_elfcore_registers): Removed.
10333 (_initialize_arm_netbsd_nat): Removed call to deprecated_add_core_fns.
10334 * arm-nbsd-tdep.c (struct arm_nbsd_reg): New struct.
10335 (arm_nbsd_supply_gregset): Moved from arm-nbsd-nat.c and updated to
10336 not require NetBSD system headers.
10337 (arm_nbsd_regset): New struct.
10338 (arm_nbsd_iterate_over_regset_sections): New function.
10339 (arm_netbsd_init_abi_common): Updated to call
10340 set_gdbarch_iterate_over_regset_sections.
10341 * arm-nbsd-tdep.h: New file.
10342
dd69bf7a
KB
103432020-03-11 Kevin Buettner <kevinb@redhat.com>
10344
10345 * symtab.c (find_pc_sect_line): Add check which prevents infinite
10346 recursion.
10347
a0761e34
SM
103482020-03-11 Simon Marchi <simon.marchi@efficios.com>
10349
10350 * configure: Re-generate.
10351
e7a82140
TT
103522020-03-11 Tom Tromey <tromey@adacore.com>
10353
10354 * ada-typeprint.c (print_choices): Fix comment.
10355
dcc050c8
AB
103562020-03-11 Andrew Burgess <andrew.burgess@embecosm.com>
10357
10358 * buildsyms.c (buildsym_compunit::record_line): Avoid accessing
10359 previous item in the list, when the list has no items.
10360
1c33af77
TV
103612020-03-11 Tom de Vries <tdevries@suse.de>
10362
10363 * dwarf2/loc.c (dwarf2_evaluate_property): Handle NULL frame in
10364 PROP_LOCLIST handling code.
10365
8c95582d
AB
103662020-03-10 Andrew Burgess <andrew.burgess@embecosm.com>
10367
10368 * buildsym-legacy.c (record_line): Pass extra parameter to
10369 record_line.
10370 * buildsym.c (buildsym_compunit::record_line): Take an extra
10371 parameter, reduce duplication in the line table, and record the
10372 is_stmt flag in the line table.
10373 * buildsym.h (buildsym_compunit::record_line): Add extra
10374 parameter.
10375 * disasm.c (do_mixed_source_and_assembly_deprecated): Ignore
10376 non-statement lines.
10377 * dwarf2/read.c (dwarf_record_line_1): Add extra parameter, pass
10378 this to the symtab builder.
10379 (dwarf_finish_line): Pass extra parameter to dwarf_record_line_1.
10380 (lnp_state_machine::record_line): Pass a suitable is_stmt flag
10381 through to dwarf_record_line_1.
10382 * infrun.c (process_event_stop_test): When stepping, don't stop at
10383 a non-statement instruction, and only refresh the step info when
10384 we land in the middle of a line's range. Also add an extra
10385 comment.
10386 * jit.c (jit_symtab_line_mapping_add_impl): Initialise is_stmt
10387 field.
10388 * record-btrace.c (btrace_find_line_range): Only record lines
10389 marked as is-statement.
10390 * stack.c (frame_show_address): Show the frame address if we are
10391 in a non-statement sal.
10392 * symmisc.c (dump_symtab_1): Print the is_stmt flag.
10393 (maintenance_print_one_line_table): Print a header for the is_stmt
10394 column, and include is_stmt information in the output.
10395 * symtab.c (find_pc_sect_line): Find lines marked as statements in
10396 preference to non-statements.
10397 (find_pcs_for_symtab_line): Prefer is-statement entries.
10398 (find_line_common): Likewise.
10399 * symtab.h (struct linetable_entry): Add is_stmt field.
10400 (struct symtab_and_line): Likewise.
10401 * xcoffread.c (arrange_linetable): Initialise is_stmt field when
10402 arranging the line table.
10403
e4003a34
TV
104042020-03-07 Tom de Vries <tdevries@suse.de>
10405
10406 * dwarf2/read.c (read_typedef): Treat anonymous typedef as forwarder
10407 DIE.
10408
e8932576
TT
104092020-03-07 Tom Tromey <tom@tromey.com>
10410
10411 * valops.c (value_literal_complex): Remove obsolete comment.
10412 * gdbtypes.h (enum type_code) <TYPE_CODE_FLT>: Remove obsolete
10413 comment.
10414
29734269
SM
104152020-03-06 Simon Marchi <simon.marchi@polymtl.ca>
10416
10417 * infrun.h: Forward-declare thread_info.
10418 (set_step_info): Add thread_info parameter, add doc.
10419 * infrun.c (set_step_info): Add thread_info parameter, move doc
10420 to header.
10421 * infrun.c (process_event_stop_test): Pass thread to
10422 set_step_info call.
10423 * infcmd.c (set_step_frame): Add thread_info pointer, pass it to
10424 set_step_info.
10425 (prepare_one_step): Add thread_info parameter, pass it to
10426 set_step_frame and prepare_one_step (recursive) call.
10427 (step_1): Pass thread to prepare_one_step call.
10428 (step_command_fsm::should_stop): Pass thread to
10429 prepare_one_step.
10430 (until_next_fsm): Pass thread to set_step_frame call.
10431 (finish_command): Pass thread to set_step_info call.
10432
b7d64b29
HD
104332020-03-06 Hannes Domani <ssbssa@yahoo.de>
10434
10435 * windows-tdep.c (windows_solib_create_inferior_hook):
10436 Check if inferior is running.
10437
09f2921c
TV
104382020-03-06 Tom de Vries <tdevries@suse.de>
10439
10440 * NEWS: Fix "the the".
10441 * ctfread.c: Same.
10442
fd760e79
TV
104432020-03-06 Tom de Vries <tdevries@suse.de>
10444
10445 * psymtab.c (psymtab_to_symtab): Don't print "done.".
10446
20ea4a60
AB
104472020-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
10448
10449 * .dir-locals.el: Add a comment referencing the other copies of
10450 this file.
10451
0afbabf0
JB
104522020-03-05 John Baldwin <jhb@FreeBSD.org>
10453
10454 * fbsd-tdep.c (fbsd_make_corefile_notes): Use std::string for
10455 psargs.
10456
842806cb
TBA
104572020-03-05 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
10458
10459 * .gitattributes: New file.
10460
be1e3d3e
TT
104612020-03-04 Tom Tromey <tom@tromey.com>
10462
10463 * symmisc.c (print_symbol_bcache_statistics)
10464 (print_objfile_statistics): Update.
10465 * symfile.c (allocate_symtab): Use intern.
10466 * psymtab.c (partial_symtab::partial_symtab): Use intern.
10467 * objfiles.h (struct objfile_per_bfd_storage) <filename_cache,
10468 macro_cache>: Remove.
10469 <string_cache>: New member.
10470 (struct objfile) <intern>: New methods.
10471 * elfread.c (elf_symtab_read): Use intern.
10472 * dwarf2/read.c (fixup_go_packaging): Intern package name.
10473 (dwarf2_compute_name, dwarf2_physname)
10474 (create_dwo_unit_in_dwp_v1, create_dwo_unit_in_dwp_v2): Intern
10475 names.
10476 (guess_partial_die_structure_name): Update.
10477 (partial_die_info::fixup): Intern name.
10478 (dwarf2_canonicalize_name): Change parameter to objfile. Intern
10479 name.
10480 (dwarf2_name): Intern name. Update.
10481 * buildsym.c (buildsym_compunit::get_macro_table): Use
10482 string_cache.
10483
4e7625fd
TT
104842020-03-04 Tom Tromey <tom@tromey.com>
10485
10486 * jit.c (bfd_open_from_target_memory): Make "target" const.
10487 * corefile.c (gnutarget): Now const.
10488 * gdbcore.h (gnutarget): Now const.
10489
46f9f931
HD
104902020-03-04 Hannes Domani <ssbssa@yahoo.de>
10491
10492 * NEWS: Mention support for WOW64 processes.
10493 * amd64-windows-nat.c (amd64_mappings): Rename and remove static.
10494 (amd64_windows_segment_register_p): Remove static.
10495 (_initialize_amd64_windows_nat): Update.
10496 * configure.nat <windows> (NATDEPFILES): Add i386-windows-nat.o.
10497 * i386-windows-nat.c (context_offset): Update.
10498 (i386_mappings): Rename and remove static.
10499 (i386_windows_segment_register_p): Remove static.
10500 (_initialize_i386_windows_nat): Update.
10501 * windows-nat.c (STATUS_WX86_BREAKPOINT): New macro.
10502 (STATUS_WX86_SINGLE_STEP): New macro.
10503 (EnumProcessModulesEx): New macro.
10504 (Wow64SuspendThread): New macro.
10505 (Wow64GetThreadContext): New macro.
10506 (Wow64SetThreadContext): New macro.
10507 (Wow64GetThreadSelectorEntry): New macro.
10508 (windows_set_context_register_offsets): Add static.
10509 (windows_set_segment_register_p): Likewise.
10510 (windows_add_thread): Adapt for WOW64 processes.
10511 (windows_fetch_one_register): Likewise.
10512 (windows_nat_target::fetch_registers): Likewise.
10513 (windows_store_one_register): Likewise.
10514 (display_selector): Likewise.
10515 (display_selectors): Likewise.
10516 (handle_exception): Likewise.
10517 (windows_continue): Likewise.
10518 (windows_nat_target::resume): Likewise.
10519 (windows_add_all_dlls): Likewise.
10520 (do_initial_windows_stuff): Likewise.
10521 (windows_nat_target::attach): Likewise.
10522 (windows_get_exec_module_filename): Likewise.
10523 (windows_nat_target::create_inferior): Likewise.
10524 (windows_xfer_siginfo): Likewise.
10525 (_initialize_loadable): Initialize Wow64SuspendThread,
10526 Wow64GetThreadContext, Wow64SetThreadContext,
10527 Wow64GetThreadSelectorEntry and EnumProcessModulesEx.
10528 * windows-nat.h (windows_set_context_register_offsets):
10529 Remove declaration.
10530 (windows_set_segment_register_p): Likewise.
10531 (i386_windows_segment_register_p): Add declaration.
10532 (amd64_windows_segment_register_p): Likewise.
10533
440cf44e
LM
105342020-03-04 Luis Machado <luis.machado@linaro.org>
10535
10536 Revert aa66aac47b4dd38f9524ddb5546c08cc09930d37 due to regressions
10537 in "info registers" for AArch64/ARM.
10538
10539 The change caused "info registers" to not print GPR's.
10540
10541 gdb/ChangeLog:
10542
10543 2020-02-01 Shahab Vahedi <shahab@synopsys.com>
10544
10545 * target-descriptions.c (tdesc_register_in_reggroup_p): Return 0
10546 when reg->group is empty and reggroup is not.
10547
1009d92f
TT
105482020-03-03 Tom Tromey <tromey@adacore.com>
10549
10550 * dwarf2/frame.c (struct dwarf2_frame_cache)
10551 <checked_tailcall_bottom, entry_cfa_sp_offset,
10552 entry_cfa_sp_offset_p>: Remove members.
10553 (dwarf2_frame_cache): Call dwarf2_tailcall_sniffer_first.
10554 (dwarf2_frame_prev_register): Don't call
10555 dwarf2_tailcall_sniffer_first.
10556 (dwarf2_append_unwinders): Don't append tailcall unwinder.
10557 * frame-unwind.c (add_unwinder): New fuction.
10558 (frame_unwind_init): Use it. Add tailcall unwinder.
10559
5e5d66b6
AB
105602020-03-03 Andrew Burgess <andrew.burgess@embecosm.com>
10561 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
10562
10563 * f-valprint.c (f_val_print): Handle TYPE_CODE_BOOL, any non-zero
10564 value should be printed as true.
10565
584cf46d
HD
105662020-03-03 Hannes Domani <ssbssa@yahoo.de>
10567
10568 * windows-tdep.c (windows_solib_create_inferior_hook): New function.
10569 (windows_init_abi): Set and use windows_so_ops.
10570
7b973adc
SDJ
105712020-03-03 Sergio Durigan Junior <sergiodj@redhat.com>
10572
10573 * printcmd.c (print_c_string): Check also for TYPE_CODE_PTR
10574 when verifying if dealing with a convenience variable.
10575
bb7b70ab
LM
105762020-03-03 Luis Machado <luis.machado@linaro.org>
10577
10578 * auxv.c (default_print_auxv_entry): Add new AUXV entries.
10579
9822cb57
SM
105802020-03-02 Simon Marchi <simon.marchi@polymtl.ca>
10581
10582 * infrun.c (gdbarch_supports_displaced_stepping): New.
10583 (use_displaced_stepping): Break up conditions in smaller pieces.
10584 Use gdbarch_supports_displaced_stepping.
10585 (displaced_step_prepare_throw): Use
10586 gdbarch_supports_displaced_stepping.
10587
63e163f2
AB
105882020-03-02 Andrew Burgess <andrew.burgess@embecosm.com>
10589
10590 * NEWS: Mention new behaviour of the history filename.
10591 * top.c (write_history_p): Add comment.
10592 (show_write_history_p): Add header comment, give a different
10593 message when history writing is on, but the history filename is
10594 empty.
10595 (history_filename): Add comment.
10596 (history_filename_empty): New function.
10597 (show_history_filename): Add header comment, give a different
10598 message when the filename is empty.
10599 (init_history): Compare history_filename against nullptr, and only
10600 read history if the filename is not empty.
10601 (set_history_filename): Add header comment, and only make
10602 non-empty filenames absolute.
10603 (init_main): Make the filename argument to 'set history filename'
10604 optional.
10605
81b86b97
CB
106062020-03-02 Christian Biesinger <cbiesinger@google.com>
10607
10608 * arm-nbsd-nat.c (arm_supply_fparegset): Rename to...
10609 (arm_supply_vfpregset): ...this, and update to use VFP registers.
10610 (fetch_fp_register): Update.
10611 (fetch_fp_regs): Update.
10612 (store_fp_register): Update.
10613 (store_fp_regs): Update.
10614 (arm_netbsd_nat_target::read_description): New function.
10615 (fetch_elfcore_registers): Update.
10616
24ed6739
AB
106172020-03-02 Andrew Burgess <andrew.burgess@embecosm.com>
10618
10619 * remote.c (remote_target::remote_parse_stop_reply): Don't use the
10620 general_thread if the stop reply is missing a thread-id.
10621 (remote_target::process_stop_reply): Use the first non-exited
10622 thread if the target didn't pass a thread-id.
10623 * infrun.c (do_target_wait): Move call to
10624 switch_to_inferior_no_thread to ....
10625 (do_target_wait_1): ... here.
10626
a84bb2a0
JT
106272020-02-29 Jon Turney <jon.turney@dronecode.org.uk>
10628
10629 * debuginfod-support.c: Include defs.h first.
10630
658dadf0
TV
106312020-02-28 Tom de Vries <tdevries@suse.de>
10632
10633 * symfile.c (set_initial_language): Use default language for lookup.
10634
4ebe4877
SM
106352020-02-28 Simon Marchi <simon.marchi@efficios.com>
10636
10637 * dwarf2/read.c (cutu_reader::init_tu_and_read_dwo_dies): Remove
10638 reader variable, pass `this` to read_cutu_die_from_dwo.
10639
e5da1139
AM
106402020-02-27 Aaron Merey <amerey@redhat.com>
10641
10642 * source.c (open_source_file): Check for nullptr when computing
10643 srcpath.
10644
317f7127
TT
106452020-02-27 Tom Tromey <tromey@adacore.com>
10646
10647 * dwarf2/read.c (struct field_info) <nfields>: Now a method, not a
10648 member.
10649 (dwarf2_add_field): Don't update nfields.
10650 (dwarf2_attach_fields_to_type, process_structure_scope): Update.
10651
3104d9ee
AB
106522020-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
10653
10654 * gdbtypes.c (create_array_type_with_stride): Use std::abs not
10655 abs.
10656
b83470bf
TT
106572020-02-26 Tom Tromey <tom@tromey.com>
10658
10659 * dwarf2/read.c (struct dwarf2_include_psymtab): New.
10660 (dwarf2_create_include_psymtab): Use dwarf2_include_psymtab.
10661 (dwarf2_psymtab::expand_psymtab, dwarf2_psymtab::readin_p)
10662 (dwarf2_psymtab::get_compunit_symtab): Remove null checks for
10663 per_cu_data.
10664
edfe0a0c
TT
106652020-02-26 Tom Tromey <tom@tromey.com>
10666
10667 * dwarf2/index-write.c (psym_index_map): Change type.
10668 (add_address_entry_worker, write_one_signatured_type)
10669 (recursively_count_psymbols, recursively_write_psymbols)
10670 (class debug_names, psyms_seen_size, write_gdbindex)
10671 (write_debug_names): Use partial_symtab, not dwarf2_psymtab.
10672
0d79cdc4
AM
106732020-02-26 Aaron Merey <amerey@redhat.com>
10674
10675 * Makefile.in: Handle optional debuginfod support.
10676 * NEWS: Update.
10677 * README: Add --with-debuginfod summary.
10678 * config.in: Regenerate.
10679 * configure: Regenerate.
10680 * configure.ac: Handle optional debuginfod support.
10681 * debuginfod-support.c: debuginfod helper functions.
10682 * debuginfod-support.h: Ditto.
10683 * doc/gdb.texinfo: Add --with-debuginfod to configure options
10684 summary.
10685 * dwarf2/read.c (dwarf2_get_dwz_file): Query debuginfod servers
10686 when a dwz file cannot be found.
10687 * elfread.c (elf_symfile_read): Query debuginfod servers when a
10688 debuginfo file cannot be found.
10689 * source.c (open_source_file): Query debuginfod servers when a
10690 source file cannot be found.
10691 * top.c (print_gdb_configuration): Include
10692 --{with,without}-debuginfod in the output.
10693
b65ce565
JG
106942020-02-26 Jérémie Galarneau <jeremie.galarneau@efficios.com>
10695
10696 * thread.c (thr_try_catch_cmd): Print thread name.
10697
d4c9a4f8
SM
106982020-02-26 Simon Marchi <simon.marchi@efficios.com>
10699
10700 * dwarf2/loc.h (dwarf2_fetch_die_loc_sect_off,
10701 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
10702 dwarf2_fetch_die_type_sect_off): Move to...
10703 * dwarf2/read.h (dwarf2_fetch_die_loc_sect_off,
10704 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
10705 dwarf2_fetch_die_type_sect_off): ... here.
10706 * dwarf2/read.c (dwarf2_fetch_die_loc_sect_off,
10707 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
10708 dwarf2_fetch_die_type_sect_off): Move doc to header file.
10709
0dce4280
TV
107102020-02-26 Tom de Vries <tdevries@suse.de>
10711
10712 PR gdb/25603
10713 * symfile.c (set_initial_language): Exit-early if
10714 language_mode == language_mode_manual.
10715
450a1bfc
SM
107162020-02-25 Simon Marchi <simon.marchi@polymtl.ca>
10717
10718 * dwarf2/loc.h (dwarf2_read_addr_index): Move...
10719 * dwarf2/read.h (dwarf2_read_addr_index): ... here.
10720 * dwarf2/read.c (dwarf2_read_addr_index): Move doc to header.
10721
9e80cfa1
AB
107222020-02-25 Andrew Burgess <andrew.burgess@embecosm.com>
10723
10724 * gdbtypes.c (create_array_type_with_stride): Handle negative
10725 array strides.
10726 * valarith.c (value_subscripted_rvalue): Likewise.
10727
09624f1f
LM
107282020-02-25 Luis Machado <luis.machado@linaro.org>
10729
10730 * aarch64-tdep.c (aarch64_vnv_type): Fix comment typo.
10731
8cb5117c
SM
107322020-02-25 Simon Marchi <simon.marchi@polymtl.ca>
10733
10734 * loc.h (dwarf2_get_die_type): Move to...
10735 * read.h (dwarf2_get_die_type): ... here.
10736 * read.c (dwarf2_get_die_type): Move doc to header.
10737
c325c44e
JB
107382020-02-25 Joel Brobecker <brobecker@adacore.com>
10739
10740 * copypright.py (EXCLUDE_LIST): Add 'gnulib/config.in' and
10741 'gnulib/Makefile.in' to the list.
10742
4ac93832
TT
107432020-02-24 Tom Tromey <tom@tromey.com>
10744
10745 * dwarf2/read.h (struct type_unit_unshareable) <num_symtabs>:
10746 Remove.
10747 * dwarf2/read.c (dwarf2_cu::setup_type_unit_groups): Use
10748 XOBNEWVEC.
10749
197400e8
TT
107502020-02-24 Tom Tromey <tom@tromey.com>
10751
10752 * dwarf2/read.h (struct dwarf2_per_cu_data) <type_unit_group_p>:
10753 New method.
10754 * dwarf2/read.c (IS_TYPE_UNIT_GROUP): Remove.
10755 (dw2_do_instantiate_symtab, dw2_get_file_names)
10756 (build_type_psymtab_dependencies, load_full_type_unit): Update.
10757
76935768
TT
107582020-02-24 Tom Tromey <tom@tromey.com>
10759
10760 * dwarf2read.c (dwarf2_build_psymtabs_hard): Use
10761 make_scoped_restore.
10762 (dwarf2_psymtab::read_symtab): Don't clear
10763 reading_partial_symbols.
10764
a88ef40d
TV
107652020-02-24 Tom de Vries <tdevries@suse.de>
10766
10767 PR gdb/25592
10768 * stack.c (iterate_over_block_locals): Handle LOC_CONST.
10769
c9af6521
TV
107702020-02-24 Tom de Vries <tdevries@suse.de>
10771
10772 * tui/tui-layout.c (_initialize_tui_layout): Fix help messages for
10773 commands layout next/prev/regs.
10774
5707a07a
TT
107752020-02-22 Tom Tromey <tom@tromey.com>
10776
10777 * dwarf2/loc.h (dwarf2_compile_expr_to_ax): Don't declare.
10778 * dwarf2/loc.c (dwarf2_compile_expr_to_ax): Now static.
10779
3b0fb49e
TT
107802020-02-22 Tom Tromey <tom@tromey.com>
10781
10782 * tui/tui-data.h (TUI_DISASM_WIN): Cast to tui_disasm_window.
10783
283be8bf
TT
107842020-02-22 Tom Tromey <tom@tromey.com>
10785
10786 * tui/tui-win.c (_initialize_tui_win): Add usage text.
10787 * tui/tui-stack.c (_initialize_tui_stack): Add usage text.
10788 * tui/tui-regs.c (_initialize_tui_regs): Add usage text.
10789 * tui/tui.c (_initialize_tui): Add usage text.
10790
ca793b96
TT
107912020-02-22 Tom Tromey <tom@tromey.com>
10792
10793 * tui/tui-win.c (tui_set_focus_command)
10794 (tui_set_win_height_command): Use error_no_arg.
10795 (_initialize_tui_win): Update help text.
10796 (FOCUS_USAGE, WIN_HEIGHT_USAGE): Don't define.
10797
432b5c40
TT
107982020-02-22 Tom Tromey <tom@tromey.com>
10799
10800 * tui/tui-layout.c (extract_display_start_addr): Rewrite.
10801 * tui/tui-disasm.h (struct tui_disasm_window)
10802 <display_start_addr>: Declare.
10803 * tui/tui-source.h (struct tui_source_window)
10804 <display_start_addr>: Declare.
10805 * tui/tui-winsource.h (struct tui_source_window_base)
10806 <show_source_line, display_start_addr>: New methods.
10807 <m_horizontal_offset, m_start_line_or_addr, m_gdbarch, m_content>:
10808 Rename and move to protected section.
10809 * tui/tui-winsource.c (tui_source_window_base::update_source_window)
10810 (tui_source_window_base::do_erase_source_content): Update.
10811 (tui_source_window_base::show_source_line): Now a method.
10812 (tui_source_window_base::show_source_content)
10813 (tui_source_window_base::tui_source_window_base)
10814 (tui_source_window_base::rerender)
10815 (tui_source_window_base::refill)
10816 (tui_source_window_base::do_scroll_horizontal)
10817 (tui_source_window_base::set_is_exec_point_at)
10818 (tui_source_window_base::update_breakpoint_info)
10819 (tui_source_window_base::update_exec_info): Update.
10820 * tui/tui-source.c (tui_source_window::set_contents)
10821 (tui_source_window::showing_source_p)
10822 (tui_source_window::do_scroll_vertical)
10823 (tui_source_window::location_matches_p)
10824 (tui_source_window::line_is_displayed): Update.
10825 (tui_source_window::display_start_addr): New method.
10826 * tui/tui-disasm.c (tui_disasm_window::set_contents)
10827 (tui_disasm_window::do_scroll_vertical)
10828 (tui_disasm_window::location_matches_p): Update.
10829 (tui_disasm_window::display_start_addr): New method.
10830
01b1af32
TT
108312020-02-22 Tom Tromey <tom@tromey.com>
10832
10833 * NEWS: Add entry for gdb.register_window_type.
10834 * tui/tui-layout.h (window_factory): New typedef.
10835 (tui_register_window): Declare.
10836 * tui/tui-layout.c (saved_tui_windows): New global.
10837 (tui_apply_current_layout): Use it.
10838 (tui_register_window): New function.
10839 * python/python.c (do_start_initialization): Call
10840 gdbpy_initialize_tui.
10841 (python_GdbMethods): Add "register_window_type" function.
10842 * python/python-internal.h (gdbpy_register_tui_window)
10843 (gdbpy_initialize_tui): Declare.
10844 * python/py-tui.c: New file.
10845 * Makefile.in (SUBDIR_PYTHON_SRCS): Add py-tui.c.
10846
fc96d20b
TT
108472020-02-22 Tom Tromey <tom@tromey.com>
10848
10849 * tui/tui-io.c (do_tui_putc): Don't omit annotations.
10850
935c78c0
TT
108512020-02-22 Tom Tromey <tom@tromey.com>
10852
10853 * tui/tui-win.c (tui_set_win_focus_to): Move to tui-data.c.
10854 * tui/tui-data.h (tui_set_win_with_focus): Don't declare.
10855 * tui/tui-data.c (tui_set_win_with_focus): Remove.
10856 (tui_set_win_focus_to): Move from tui-win.c.
10857
0240c8f1
TT
108582020-02-22 Tom Tromey <tom@tromey.com>
10859
10860 * tui/tui-layout.c (make_standard_window, get_locator_window): New
10861 functions.
10862 (known_window_types): New global.
10863 (tui_get_window_by_name): Reimplement.
10864 (initialize_known_windows): New function.
10865 (validate_window_name): Rewrite.
10866 (_initialize_tui_layout): Call initialize_known_windows.
10867
fdb01f0c
TT
108682020-02-22 Tom Tromey <tom@tromey.com>
10869
10870 * tui/tui.h (enum tui_win_type) <LOCATOR_WIN, DATA_ITEM_WIN>:
10871 Remove constants.
10872 * tui/tui-winsource.h (struct tui_source_window_base)
10873 <tui_source_window_base>: Remove parameter.
10874 * tui/tui-winsource.c
10875 (tui_source_window_base::tui_source_window_base): Remove
10876 parameter.
10877 (tui_source_window_base::refill): Update.
10878 * tui/tui-stack.h (struct tui_locator_window)
10879 <tui_locator_window>: Update.
10880 * tui/tui-source.h (struct tui_source_window) <tui_source_window>:
10881 Default the constructor.
10882 * tui/tui-regs.h (struct tui_data_item_window)
10883 <tui_data_item_window>: Default the constructor.
10884 (struct tui_data_window) <tui_data_window>: Likewise.
10885 * tui/tui-disasm.h (struct tui_disasm_window) <tui_disasm_window>:
10886 Default the constructor.
10887 * tui/tui-data.h (struct tui_gen_win_info) <tui_gen_win_info>:
10888 Default the constructor.
10889 <type>: Remove.
10890 (struct tui_win_info) <tui_win_info>: Default the constructor.
10891 * tui/tui-data.c (tui_win_info::tui_win_info): Remove.
10892 * tui/tui-command.h (struct tui_cmd_window) <tui_cmd_window>:
10893 Default the constructor.
10894
865a5aec
TT
108952020-02-22 Tom Tromey <tom@tromey.com>
10896
10897 * tui/tui-wingeneral.h (tui_make_all_invisible): Don't declare.
10898 * tui/tui-wingeneral.c (tui_make_all_invisible): Remove.
10899 * tui/tui-win.c (tui_resize_all): Don't call
10900 tui_delete_invisible_windows.
10901 * tui/tui-layout.c (tui_apply_current_layout): Delete windows when
10902 done.
10903 (tui_set_layout): Update.
10904 (tui_add_win_to_layout): Don't call tui_delete_invisible_windows.
10905 * tui/tui-data.h (tui_delete_invisible_windows): Don't declare.
10906 * tui/tui-data.c (tui_delete_invisible_windows): Remove.
10907
e098d18c
TT
109082020-02-22 Tom Tromey <tom@tromey.com>
10909
10910 * tui/tui-win.c (tui_partial_win_by_name): Handle ambiguity
10911 correctly.
10912
eb9c8874
TT
109132020-02-22 Tom Tromey <tom@tromey.com>
10914
10915 * tui/tui-data.c (tui_next_win, tui_prev_win): Reimplement.
10916
7eed1a8e
TT
109172020-02-22 Tom Tromey <tom@tromey.com>
10918
10919 * tui/tui-winsource.h (struct tui_source_window_iterator)
10920 <inner_iterator>: New etytypedef.
10921 <tui_source_window_iterator>: Take "end" parameter.
10922 <tui_source_window_iterator>: Take iterator.
10923 <operator*, advance>: Update.
10924 <m_iter>: Change type.
10925 <m_end>: New field.
10926 (struct tui_source_windows) <begin, end>: Update.
10927 * tui/tui-layout.c (tui_windows): New global.
10928 (tui_apply_current_layout): Clear tui_windows.
10929 (tui_layout_window::apply): Update tui_windows.
10930 * tui/tui-data.h (tui_windows): Declare.
10931 (all_tui_windows): Now inline function.
10932 (class tui_window_iterator, struct all_tui_windows): Remove.
10933
7c043ba6
TT
109342020-02-22 Tom Tromey <tom@tromey.com>
10935
10936 PR tui/17850:
10937 * tui/tui-win.c (tui_gen_win_info::max_width): New method.
10938 * tui/tui-layout.h (class tui_layout_base) <get_sizes>: Add
10939 "height" argument.
10940 (class tui_layout_window) <get_sizes>: Likewise.
10941 (class tui_layout_split) <tui_layout_split>: Add "vertical"
10942 argument.
10943 <get_sizes>: Add "height" argument.
10944 <m_vertical>: New field.
10945 * tui/tui-layout.c (tui_layout_split::clone): Update.
10946 (tui_layout_split::get_sizes): Add "height" argument.
10947 (tui_layout_split::adjust_size, tui_layout_split::apply): Update.
10948 (tui_new_layout_command): Parse "-horizontal".
10949 (_initialize_tui_layout): Update help string.
10950 (tui_layout_split::specification): Add "-horizontal" when needed.
10951 * tui/tui-layout.c (tui_layout_window::get_sizes): Add "height"
10952 argument.
10953 * tui/tui-data.h (struct tui_gen_win_info) <max_width, min_width>:
10954 New methods.
10955
6bc56648
TT
109562020-02-22 Tom Tromey <tom@tromey.com>
10957
10958 * tui/tui-layout.h (enum tui_adjust_result): New.
10959 (class tui_layout_base) <adjust_size>: Return tui_adjust_result.
10960 (class tui_layout_window) <adjust_size>: Return
10961 tui_adjust_result. Rewrite.
10962 (class tui_layout_split) <adjust_size>: Return tui_adjust_result.
10963 * tui/tui-layout.c (tui_layout_split::adjust_size): Update.
10964
c22fef7e
TT
109652020-02-22 Tom Tromey <tom@tromey.com>
10966
10967 * tui/tui-layout.h (class tui_layout_split) <add_split>: Change
10968 parameter and return types.
10969 (class tui_layout_base) <specification>: Add "depth".
10970 (class tui_layout_window) <specification>: Add "depth".
10971 (class tui_layout_split) <specification>: Add "depth".
10972 * tui/tui-layout.c (tui_layout_split::add_split): Change parameter
10973 and return types.
10974 (tui_new_layout_command): Parse sub-layouts.
10975 (_initialize_tui_layout): Update help string.
10976 (tui_layout_window::specification): Add "depth".
10977 (add_layout_command): Update.
10978
ee325b61
TT
109792020-02-22 Tom Tromey <tom@tromey.com>
10980
10981 * NEWS: Add "tui new-layout" item.
10982 * tui/tui-layout.c (add_layout_command): Return cmd_list_element.
10983 Add new-layout command to help text.
10984 (validate_window_name): New function.
10985 (tui_new_layout_command): New function.
10986 (_initialize_tui_layout): Register "new-layout".
10987 (tui_layout_window::specification): New method.
10988 (tui_layout_window::specification): New method.
10989 * tui/tui-layout.h (class tui_layout_base) <specification>: New
10990 method.
10991 (class tui_layout_window) <specification>: New method.
10992 (class tui_layout_split) <specification>: New method.
10993
416eb92d
TT
109942020-02-22 Tom Tromey <tom@tromey.com>
10995
10996 * tui/tui.c (tui_enable): Call tui_set_initial_layout.
10997 * tui/tui-win.c (window_name_completer): Update comment.
10998 * tui/tui-layout.h (class tui_layout_base) <replace_window>:
10999 Declare method.
11000 (class tui_layout_window) <replace_window>: Likewise.
11001 (class tui_layout_split) <replace_window>: Likewise.
11002 (tui_set_layout): Don't declare.
11003 (tui_set_initial_layout): Declare function.
11004 * tui/tui-layout.c (layouts, applied_skeleton, src_regs_layout)
11005 (asm_regs_layout): New globals.
11006 (tui_current_layout, show_layout): Remove.
11007 (tui_set_layout, tui_add_win_to_layout): Rewrite.
11008 (find_layout, tui_apply_layout): New function.
11009 (layout_completer): Remove.
11010 (tui_next_layout): Reimplement.
11011 (tui_next_layout_command): New function.
11012 (tui_set_initial_layout, tui_prev_layout_command): New functions.
11013 (tui_regs_layout): Reimplement.
11014 (tui_regs_layout_command): New function.
11015 (extract_display_start_addr): Rewrite.
11016 (next_layout, prev_layout): Remove.
11017 (tui_layout_window::replace_window): New method.
11018 (tui_layout_split::replace_window): New method.
11019 (destroy_layout): New function.
11020 (layout_list): New global.
11021 (add_layout_command): New function.
11022 (initialize_layouts): Update.
11023 (tui_layout_command): New function.
11024 (_initialize_tui_layout): Install "layout" commands.
11025 * tui/tui-data.h (enum tui_layout_type): Remove.
11026 (tui_current_layout): Don't declare.
11027
0dbc2fc7
TT
110282020-02-22 Tom Tromey <tom@tromey.com>
11029
11030 * tui/tui-regs.c (tui_reg_layout): Remove.
11031 (tui_reg_command): Use tui_regs_layout.
11032 * tui/tui-layout.h (tui_reg_command): Declare.
11033 * tui/tui-layout.c (tui_reg_command): New function.
11034
5afe342e
TT
110352020-02-22 Tom Tromey <tom@tromey.com>
11036
11037 * tui/tui.c (tui_rl_delete_other_windows): Call
11038 tui_remove_some_windows.
11039 * tui/tui-layout.h (class tui_layout_base) <remove_windows>:
11040 Declare method.
11041 (class tui_layout_window) <remove_windows>: New method.
11042 (class tui_layout_split) <remove_windows>: Declare.
11043 (tui_remove_some_windows): Declare.
11044 * tui/tui-layout.c (tui_remove_some_windows): New function.
11045 (tui_layout_split::remove_windows): New method.
11046
427326a8
TT
110472020-02-22 Tom Tromey <tom@tromey.com>
11048
11049 * tui/tui.c (tui_rl_change_windows): Call tui_next_layout.
11050 * tui/tui-layout.h (tui_next_layout): Declare.
11051 * tui/tui-layout.c (tui_next_layout): New function.
11052
3fe12b6d
TT
110532020-02-22 Tom Tromey <tom@tromey.com>
11054
11055 * tui/tui-regs.c (tui_data_window::display_registers_from): Use
11056 correct coordinates.
11057
59b8b5d2
TT
110582020-02-22 Tom Tromey <tom@tromey.com>
11059
11060 * tui/tui-layout.h (tui_add_win_to_layout): Add comment.
11061 * tui/tui-layout.c (tui_add_win_to_layout): Add assert. Remove
11062 DATA_WIN case.
11063
2a3d458b
TT
110642020-02-22 Tom Tromey <tom@tromey.com>
11065
11066 * tui/tui-disasm.c (tui_get_low_disassembly_address): Use
11067 TUI_DISASM_WIN, not tui_win_list.
11068
3f0cbb04
TT
110692020-02-22 Tom Tromey <tom@tromey.com>
11070
11071 * valprint.c (generic_val_print_enum_1)
11072 (val_print_type_code_flags): Style member names.
11073 * rust-lang.c (val_print_struct, rust_print_enum)
11074 (rust_print_struct_def, rust_internal_print_type): Style member
11075 names.
11076 * p-valprint.c (pascal_object_print_value_fields): Style member
11077 names. Only call fprintf_symbol_filtered for static members.
11078 * m2-typeprint.c (m2_record_fields, m2_enum): Style member names.
11079 * f-valprint.c (f_val_print): Style member names.
11080 * f-typeprint.c (f_type_print_base): Style member names.
11081 * cp-valprint.c (cp_print_value_fields): Style member names. Only
11082 call fprintf_symbol_filtered for static members.
11083 (cp_print_class_member): Style member names.
11084 * c-typeprint.c (c_print_type_1, c_type_print_base_1): Style
11085 member names.
11086 * ada-valprint.c (ada_print_scalar): Style enum names.
11087 (ada_val_print_enum): Likewise.
11088 * ada-typeprint.c (print_enum_type): Style enum names.
11089
d4d947ae
TT
110902020-02-21 Tom Tromey <tom@tromey.com>
11091
11092 * psympriv.h (struct partial_symtab): Update comment.
11093
e94e944b
TT
110942020-02-21 Tom Tromey <tromey@adacore.com>
11095
11096 * mips-tdep.h (mips_pc_is_mips16, mips_pc_is_micromips): Parameter
11097 type is CORE_ADDR.
11098
1eb73179
TV
110992020-02-21 Tom de Vries <tdevries@suse.de>
11100
11101 PR gdb/25534
11102 * psymtab.c (partial_symtab::read_dependencies): Don't read dependency
11103 if dependencies[i]->user != NULL.
11104
4f180d53
AT
111052020-02-21 Ali Tamur <tamur@google.com>
11106
11107 * dwarf2/read.c (dwarf2_name): Add null check.
11108
22b6cd70
TT
111092020-02-20 Tom Tromey <tom@tromey.com>
11110
11111 * dwarf2/read.c (dwarf2_find_containing_comp_unit): Use ">", not
11112 ">=", in binary search.
11113 (dwarf2_find_containing_comp_unit): New overload.
11114 (run_test): New self-test.
11115 (_initialize_dwarf2_read): Register new test.
11116
bd0cf5a6
NC
111172020-02-20 Nelson Chu <nelson.chu@sifive.com>
11118
11119 * riscv-tdep.c: Updated since the DECLARE_CSR is changed.
11120 * riscv-tdep.h: Likewise.
11121 * features/riscv/rebuild-csr-xml.sh: Generate the 64bit-csr.xml without
11122 rv32-only CSR.
11123 * features/riscv/64bit-csr.xml: Regenerated.
11124
3f702acd
SDJ
111252020-02-20 Sergio Durigan Junior <sergiodj@redhat.com>
11126 Tom Tromey <tom@tromey.com>
11127
11128 * utils.c (fputs_maybe_filtered): Call 'stream->puts' instead
11129 of 'fputc_unfiltered'.
11130 (putchar_unfiltered): Call 'fputc_unfiltered'.
11131 (fputc_unfiltered): Call 'fputs_unfiltered'.
11132
d13c7322
AB
111332020-02-20 Andrew Burgess <andrew.burgess@embecosm.com>
11134
11135 * config.in: Regenerate.
11136 * configure: Regenerate.
11137 * configure.ac: Add --with-python-libdir option.
11138 * main.c: Use WITH_PYTHON_LIBDIR.
11139
869d8950
TT
111402020-02-19 Tom Tromey <tom@tromey.com>
11141
11142 * symtab.c (general_symbol_info::compute_and_set_names): Use
11143 obstack_strndup. Simplify call to symbol_set_demangled_name.
11144
298e9637
SM
111452020-02-19 Simon Marchi <simon.marchi@efficios.com>
11146
11147 * dwarf2/read.c (allocate_signatured_type_table,
11148 allocate_dwo_unit_table, allocate_type_unit_groups_table,
11149 allocate_dwo_file_hash_table, allocate_dwp_loaded_cutus_table):
11150 Remove objfile parameter, update all callers.
11151
08410482
DE
111522020-02-19 Doug Evans <dje@google.com>
11153
11154 PR rust/25535
11155 * rust-lang.c (rust_print_enum): Apply embedded_offset to
11156 rust_enum_variant calculation.
11157
dfdeeca1
TT
111582020-02-19 Tom Tromey <tromey@adacore.com>
11159
11160 * mips-tdep.h (mips_pc_is_mips): Parameter type is CORE_ADDR.
11161
2ef5453b
TT
111622020-02-19 Tom Tromey <tromey@adacore.com>
11163
11164 * ada-lang.c (cache_symbol): Use obstack_strdup.
11165
9f1528a1
AB
111662020-02-19 Andrew Burgess <andrew.burgess@embecosm.com>
11167
11168 * configure: Regenerate.
11169
d3c22fa8
TT
111702020-02-19 Tom Tromey <tromey@adacore.com>
11171
11172 * python/python.c (do_start_initialization): Use XNEWVEC. Remove
11173 NULL check.
11174
bf84f706
MR
111752020-02-19 Maciej W. Rozycki <macro@wdc.com>
11176
11177 * NEWS: Mention RISC-V GNU/Linux GDBserver support.
11178
d1c9b20f
AB
111792020-02-19 Andrew Burgess <andrew.burgess@embecosm.com>
11180
11181 * arch/riscv.c (struct riscv_gdbarch_features_hasher): Only define
11182 if GDBSERVER is not defined.
11183 (riscv_tdesc_cache): Likewise, also store const target_desc.
11184 (STATIC_IN_GDB): Define.
11185 (riscv_create_target_description): Update declaration with
11186 STATIC_IN_GDB.
11187 (riscv_lookup_target_description): New function, only define if
11188 GDBSERVER is not defined.
11189 * arch/riscv.h (riscv_create_target_description): Declare only
11190 when GDBSERVER is defined.
11191 (riscv_lookup_target_description): New declaration when GDBSERVER
11192 is not defined.
11193 * nat/riscv-linux-tdesc.c (riscv_linux_read_description): Rename to...
11194 (riscv_linux_read_features): ...this, and return
11195 riscv_gdbarch_features instead of target_desc.
11196 * nat/riscv-linux-tdesc.h: Include 'arch/riscv.h'.
11197 (riscv_linux_read_description): Rename to...
11198 (riscv_linux_read_features): ...this.
11199 * riscv-linux-nat.c (riscv_linux_nat_target::read_description):
11200 Update to use riscv_gdbarch_features and
11201 riscv_lookup_target_description.
11202 * riscv-tdep.c (riscv_find_default_target_description): Use
11203 riscv_lookup_target_description instead of
11204 riscv_create_target_description.
11205
373d7ac0
SM
112062020-02-18 Simon Marchi <simon.marchi@efficios.com>
11207
11208 * valprint.c (generic_val_print_enum_1): When printing a flag
11209 enum with value 0 and there is no enumerator with value 0, print
11210 just "0" instead of "(unknown: 0x0)".
11211
b29a2df0
SM
112122020-02-18 Simon Marchi <simon.marchi@efficios.com>
11213
11214 * valprint.c (generic_val_print_enum_1): Print unknown part of
11215 flag enum in hex.
11216
6740f0cc
SM
112172020-02-18 Simon Marchi <simon.marchi@efficios.com>
11218
11219 * dwarf2/read.c (update_enumeration_type_from_children): Allow
11220 flag enums to contain duplicate enumerators.
11221 * valprint.c (generic_val_print_enum_1): Update comment.
11222
edd45eb0
SM
112232020-02-18 Simon Marchi <simon.marchi@efficios.com>
11224
11225 * dwarf2/read.c: Include "count-one-bits.h".
11226 (update_enumeration_type_from_children): If an enumerator has
11227 multiple bits set, don't treat the enumeration as a "flag enum".
11228 * valprint.c (generic_val_print_enum_1): Assert that enumerators
11229 of flag enums have 0 or 1 bit set.
11230
6d0cf446
BE
112312020-02-18 Bernd Edlinger <bernd.edlinger@hotmail.de>
11232
11233 * aarch64-tdep.c (aarch64_displaced_step_copy_insn): Use an explicit
11234 conversion.
11235 * amd64-tdep.c (amd64_displaced_step_copy_insn): Likewise.
11236 * arm-linux-tdep.c (arm_linux_displaced_step_copy_insn): Likewise.
11237 * i386-tdep.c (i386_displaced_step_copy_insn): Likewise.
11238 * rs6000-tdep.c (ppc_displaced_step_copy_insn): Likewise.
11239 * s390-tdep.c (s390_displaced_step_copy_insn): Likewise.
11240
7001c1b7
SM
112412020-02-18 Simon Marchi <simon.marchi@efficios.com>
11242
11243 * MAINTAINERS: Change palmer@sifive.com to palmer@dabbelt.com.
11244
fdb61c6c
SM
112452020-02-14 Simon Marchi <simon.marchi@efficios.com>
11246
11247 * aarch64-tdep.c (aarch64_displaced_step_copy_insn): Use
11248 displaced_step_closure_up.
11249 * aarch64-tdep.h (aarch64_displaced_step_copy_insn): Likewise.
11250 (struct displaced_step_closure_up):
11251 * amd64-tdep.c (amd64_displaced_step_copy_insn): Likewise.
11252 * amd64-tdep.h (amd64_displaced_step_copy_insn): Likewise.
11253 * arm-linux-tdep.c (arm_linux_displaced_step_copy_insn):
11254 Likewise.
11255 * gdbarch.sh (displaced_step_copy_insn): Likewise.
11256 * gdbarch.c, gdbarch.h: Re-generate.
11257 * i386-linux-tdep.c (i386_linux_displaced_step_copy_insn): Use
11258 displaced_step_closure_up.
11259 * i386-tdep.c (i386_displaced_step_copy_insn): Likewise.
11260 * i386-tdep.h (i386_displaced_step_copy_insn): Likewise.
11261 * infrun.h (displaced_step_closure_up): New type alias.
11262 (struct displaced_step_inferior_state) <step_closure>: Change
11263 type to displaced_step_closure_up.
11264 * rs6000-tdep.c (ppc_displaced_step_copy_insn): Use
11265 displaced_step_closure_up.
11266 * s390-tdep.c (s390_displaced_step_copy_insn): Likewise.
11267
a4a38eb4
TT
112682020-02-14 Tom Tromey <tom@tromey.com>
11269
11270 * minidebug.c (gnu_debug_key): New global.
11271 (find_separate_debug_file_in_section): Use it.
11272
e8217e61
SM
112732020-02-14 Simon Marchi <simon.marchi@efficios.com>
11274
11275 * gdbarch.sh (displaced_step_copy_insn): Change return type to an
11276 std::unique_ptr.
11277 * gdbarch.c: Re-generate.
11278 * gdbarch.h: Re-generate.
11279 * infrun.c (displaced_step_prepare_throw): Adjust to std::unique_ptr
11280 change.
11281 * aarch64-tdep.c (aarch64_displaced_step_copy_insn): Change return
11282 type to std::unique_ptr.
11283 * aarch64-tdep.h (aarch64_displaced_step_copy_insn): Likewise.
11284 * amd64-tdep.c (amd64_displaced_step_copy_insn): Likewise.
11285 * amd64-tdep.h (amd64_displaced_step_copy_insn): Likewise.
11286 * arm-linux-tdep.c (arm_linux_displaced_step_copy_insn): Likewise.
11287 * i386-linux-tdep.c (i386_linux_displaced_step_copy_insn): Likewise.
11288 * i386-tdep.c (i386_displaced_step_copy_insn): Likewise.
11289 * i386-tdep.h (i386_displaced_step_copy_insn): Likewise.
11290 * rs6000-tdep.c (ppc_displaced_step_copy_insn): Likewise.
11291 * s390-tdep.c (s390_displaced_step_copy_insn): Likewise.
11292
d8d83535
SM
112932020-02-14 Simon Marchi <simon.marchi@efficios.com>
11294
11295 * infrun.c (get_displaced_step_closure_by_addr): Adjust to
11296 std::unique_ptr.
11297 (displaced_step_clear): Rename to...
11298 (displaced_step_reset): ... this. Just call displaced->reset ().
11299 (displaced_step_clear_cleanup): Rename to...
11300 (displaced_step_reset_cleanup): ... this.
11301 (displaced_step_prepare_throw): Adjust to std::unique_ptr.
11302 (displaced_step_fixup): Likewise.
11303 (resume_1): Likewise.
11304 (handle_inferior_event): Restore child's memory before calling
11305 displaced_step_fixup on the parent.
11306 * infrun.h (displaced_step_inferior_state) <reset>: Adjust
11307 to std::unique_ptr.
11308 <step_closure>: Change type to std::unique_ptr.
11309
5f661e03
SM
113102020-02-14 Simon Marchi <simon.marchi@efficios.com>
11311
11312 * arm-tdep.c: Include count-one-bits.h.
11313 (cleanup_block_store_pc): Use count_one_bits.
11314 (cleanup_block_load_pc): Use count_one_bits.
11315 (arm_copy_block_xfer): Use count_one_bits.
11316 (thumb2_copy_block_xfer): Use count_one_bits.
11317 (thumb_copy_pop_pc_16bit): Use count_one_bits.
11318 * arch/arm-get-next-pcs.c: Include count-one-bits.h.
11319 (thumb_get_next_pcs_raw): Use count_one_bits.
11320 (arm_get_next_pcs_raw): Use count_one_bits_l.
11321 * arch/arm.c (bitcount): Remove.
11322 * arch/arm.h (bitcount): Remove.
11323
8084e579
TT
113242020-02-14 Tom Tromey <tromey@adacore.com>
11325
11326 * dwarf2/frame-tailcall.c (dwarf2_tailcall_sniffer_first):
11327 Update.
11328 * dwarf2/loc.h (call_site_find_chain): Return unique_xmalloc_ptr.
11329 * dwarf2/loc.c (call_site_find_chain_1): Return
11330 unique_xmalloc_ptr.
11331 (call_site_find_chain): Likewise.
11332
258bf0ee
RB
113332020-02-14 Richard Biener <rguenther@suse.de>
11334
11335 * dwarf2/read.c (lnp_state_machine::handle_special_opcode): Apply CSE
11336 on expression with division operators.
11337
f98a8458
AKS
113382020-02-13 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
11339
11340 * MAINTAINERS (Write After Approval): Adding myself.
11341
d1437c0e
TT
113422020-02-12 Tom Tromey <tom@tromey.com>
11343
11344 * event-loop.c (event_data, gdb_event, event_handler_func):
11345 Remove.
11346
3d4560f7
TT
113472020-02-12 Tom Tromey <tom@tromey.com>
11348
11349 * dwarf2/frame.c (dwarf2_frame_bfd_data): New global.
11350 (dwarf2_frame_objfile_data): Add comment.
11351 (find_comp_unit, set_comp_unit): New functions.
11352 (dwarf2_frame_find_fde): Use find_comp_unit.
11353 (dwarf2_build_frame_info): Use set_comp_unit.
11354
21982304
TT
113552020-02-12 Tom Tromey <tom@tromey.com>
11356
11357 * dwarf2/frame.c (struct comp_unit) <objfile>: Remove.
11358 (comp_unit): Don't initialize objfile.
11359 (execute_cfa_program): Add text_offset parameter.
11360 (execute_cfa_program_test, dwarf2_fetch_cfa_info)
11361 (dwarf2_frame_cache): Update.
11362 (dwarf2_build_frame_info): Don't set "objfile" member.
11363
4debb237
TT
113642020-02-12 Tom Tromey <tom@tromey.com>
11365
11366 * dwarf2/frame.c (decode_frame_entry_1): Add gdbarch parameter.
11367 (decode_frame_entry): Likewise.
11368 (dwarf2_build_frame_info): Update.
11369
0d404d44
TT
113702020-02-12 Tom Tromey <tom@tromey.com>
11371
11372 * dwarf2/frame.c (struct comp_unit) <obstack>: New member.
11373 (decode_frame_entry_1): Use the comp_unit obstack.
11374
a7a3ae5c
TT
113752020-02-12 Tom Tromey <tom@tromey.com>
11376
11377 * dwarf2/frame.c (struct comp_unit): Add initializers and
11378 constructor.
11379 (dwarf2_frame_objfile_data): Store a comp_unit.
11380 (dwarf2_frame_find_fde): Update.
11381 (dwarf2_build_frame_info): Use "new".
11382
a9d65418
TT
113832020-02-12 Tom Tromey <tom@tromey.com>
11384
11385 * dwarf2/frame.c (struct dwarf2_fde_table): Remove.
11386 (dwarf2_fde_table): Typedef for std::vector.
11387 (dwarf2_frame_objfile_data): Remove the deleter. Now static.
11388 (dwarf2_frame_find_fde, add_fde, decode_frame_entry_1)
11389 (decode_frame_entry): Update.
11390 (dwarf2_build_frame_info): Use "new".
11391
7559c217
CB
113922020-02-12 Christian Biesinger <cbiesinger@google.com>
11393
11394 * arm-tdep.c (arm_gdbarch_init): Update.
11395 * arm-tdep.h (struct gdbarch_tdep) <have_fpa_registers,
11396 have_wmmx_registers, have_vfp_pseudos, have_neon_pseudos,
11397 have_neon, is_m>: Change to bool.
11398
aeefc73c
CB
113992020-02-12 Christian Biesinger <cbiesinger@google.com>
11400
11401 * arm-tdep.c (arm_dump_tdep): Print more fields of tdep.
11402
d27b8e5f
TT
114032020-02-12 Tom Tromey <tom@tromey.com>
11404
11405 * dwarf2/loc.c (struct dwarf_expr_baton): Remove.
11406
cd5900f3
HD
114072020-02-12 Hannes Domani <ssbssa@yahoo.de>
11408
11409 * windows-tdep.c (struct windows_gdbarch_data): Add tib_ptr_type.
11410 (windows_get_tlb_type): Use windows_gdbarch_data->tib_ptr_type.
11411
f056b22b
TT
114122020-02-11 Tom Tromey <tom@tromey.com>
11413
11414 * psymtab.h: Update comment.
11415
f92ff6b5
TT
114162020-02-11 Tom Tromey <tom@tromey.com>
11417
11418 * gdb_obstack.h (struct auto_obstack): Use
11419 DISABLE_COPY_AND_ASSIGN.
11420
3fd6912b
TT
114212020-02-11 Tom Tromey <tom@tromey.com>
11422
11423 * dwarf2/frame.h (struct objfile): Don't forward declare.
11424
69ed9b74
CB
114252020-02-11 Christian Biesinger <cbiesinger@google.com>
11426
11427 * cris-tdep.c (cris_supply_gregset): Change signature to match
11428 what struct regset expects.
11429 (cris_regset): New struct.
11430 (fetch_core_registers): Remove.
11431 (cris_iterate_over_regset_sections): New function.
11432 (_initialize_cris_tdep): Don't call deprecated_add_core_fns.
11433 (cris_gdbarch_init): Call set_gdbarch_iterate_over_regset_sections.
11434
bda874f6
CB
114352020-02-11 Christian Biesinger <cbiesinger@google.com>
11436
11437 * arch/arm.h (enum gdb_regnum): Add comment for the FP0..7
11438 registers.
11439
754e1564
CB
114402020-02-11 Christian Biesinger <cbiesinger@google.com>
11441
11442 * arm-tdep.c (arm_dump_tdep): Add \n in fprintf.
11443
8ddd8e0e
SM
114442020-02-11 Simon Marchi <simon.marchi@efficios.com>
11445
11446 * configure: Re-generate.
11447
898e7f60
SM
114482020-02-11 Simon Marchi <simon.marchi@efficios.com>
11449
11450 * configure: Re-generate.
11451
58df732b
SM
114522020-02-11 Simon Marchi <simon.marchi@efficios.com>
11453
11454 * acinclude: Update warning.m4 path.
11455 * warning.m4: Move to gdbsupport.
11456
da5bd37e
TT
114572020-02-11 Tom Tromey <tromey@adacore.com>
11458
11459 * remote.c (remote_console_output): Update.
11460 * printcmd.c (printf_command): Update.
11461 * event-loop.c (gdb_wait_for_event): Update.
11462 * linux-nat.c (sigchld_handler): Update.
11463 * remote-sim.c (gdb_os_write_stdout): Update.
11464 (gdb_os_flush_stdout): Update.
11465 (gdb_os_flush_stderr): Update.
11466 (gdb_os_write_stderr): Update.
11467 * exceptions.c (print_exception): Update.
11468 * remote-fileio.c (remote_fileio_func_read): Update.
11469 (remote_fileio_func_write): Update.
11470 * tui/tui.c (tui_enable): Update.
11471 * tui/tui-interp.c (tui_interp::init): Update.
11472 * utils.c (init_page_info): Update.
11473 (putchar_unfiltered, fputc_unfiltered): Update.
11474 (gdb_flush): Update.
11475 (emit_style_escape): Update.
11476 (flush_wrap_buffer, fputs_maybe_filtered): Update.
11477 * ui-file.c (ui_file_isatty, ui_file_read, ui_file_write)
11478 (ui_file_write_async_safe, ui_file_flush, ui_file_puts): Remove.
11479 (stderr_file::write): Update.
11480 (stderr_file::puts): Update.
11481 * ui-file.h (ui_file_isatty, ui_file_write)
11482 (ui_file_write_async_safe, ui_file_read, ui_file_flush)
11483 (ui_file_puts): Don't declare.
11484
85f0dd3c
TV
114852020-02-10 Tom de Vries <tdevries@suse.de>
11486
11487 * dwarf2/read.c (process_psymtab_comp_unit_reader): Cast concat NULL
11488 sentinel to char *.
11489
2e927613
TV
114902020-02-09 Tom de Vries <tdevries@suse.de>
11491
11492 * dwarf2read.c (process_psymtab_comp_unit_reader): Append CU offset to
11493 filename if it matches "<artificial>".
11494
6bafc845
HD
114952020-02-09 Hannes Domani <ssbssa@yahoo.de>
11496
11497 * windows-tdep.c (struct enum_value_name): New struct.
11498 (create_enum): New function.
11499 (windows_get_siginfo_type): Create and use enum types.
11500
7928d571
HD
115012020-02-09 Hannes Domani <ssbssa@yahoo.de>
11502
11503 * NEWS: Mention $_siginfo support for Windows.
11504 * windows-nat.c (handle_exception): Set siginfo_er.
11505 (windows_nat_target::mourn_inferior): Reset siginfo_er.
11506 (windows_xfer_siginfo): New function.
11507 (windows_nat_target::xfer_partial): Call windows_xfer_siginfo.
11508 * windows-tdep.c (struct windows_gdbarch_data): New struct.
11509 (init_windows_gdbarch_data): New function.
11510 (get_windows_gdbarch_data): New function.
11511 (windows_get_siginfo_type): New function.
11512 (windows_init_abi): Register windows_get_siginfo_type.
11513 (_initialize_windows_tdep): Register init_windows_gdbarch_data.
11514
6751ebae
TT
115152020-02-08 Tom Tromey <tom@tromey.com>
11516
11517 * dwarf2/read.c (class cutu_reader) <cutu_reader,
11518 init_tu_and_read_dwo_dies>: Remove "keep" parameter.
11519 <keep>: Declare method.
11520 <m_keep>: Remove member.
11521 <~cutu_reader>: Remove.
11522 (cutu_reader::init_tu_and_read_dwo_dies): Update.
11523 (cutu_reader::cutu_reader): Update.
11524 (cutu_reader::keep): Rename from ~cutu_reader.
11525 (process_psymtab_comp_unit, build_type_psymtabs_1)
11526 (process_skeletonless_type_unit, load_partial_comp_unit)
11527 (load_full_comp_unit, dwarf2_read_addr_index)
11528 (read_signatured_type): Update.
11529
135f5437
TT
115302020-02-08 Tom Tromey <tom@tromey.com>
11531
11532 * dwarf2/read.c (process_psymtab_comp_unit_reader): Remove
11533 "want_partial_unit" parameter.
11534 (process_psymtab_comp_unit): Change want_partial_unit to bool.
11535 Inline check for DW_TAG_partial_unit.
11536 (dwarf2_build_psymtabs_hard, scan_partial_symbols): Update.
11537
9f66ff1c
TT
115382020-02-08 Tom Tromey <tom@tromey.com>
11539
11540 * dwarf2/read.c (read_n_bytes, read_direct_string): Move to
11541 read.c.
11542 * dwarf2/leb.h (read_n_bytes, read_direct_string): Move from
11543 read.c.
11544
c8a7a66f
TT
115452020-02-08 Tom Tromey <tom@tromey.com>
11546
11547 * dwarf2/read.c (read_address): Move to comp-unit.c.
11548 (dwarf2_rnglists_process, dwarf2_ranges_process)
11549 (read_attribute_value, dwarf_decode_lines_1)
11550 (var_decode_location, decode_locdesc): Update.
11551 * dwarf2/comp-unit.c (comp_unit_head::read_address): Move from
11552 read.c. Remove "cu" parameter.
11553 * dwarf2/comp-unit.h (struct comp_unit_head) <read_address>: New
11554 method.
11555
8266302d
TT
115562020-02-08 Tom Tromey <tom@tromey.com>
11557
11558 * dwarf2/read.c (read_attribute_value, read_indirect_string)
11559 (read_indirect_line_string): Update.
11560 * dwarf2/comp-unit.c (read_offset): Remove.
11561 (read_comp_unit_head): Update.
11562 * dwarf2/comp-unit.h (struct comp_unit_head) <read_offset>: New
11563 method.
11564 (read_offset): Don't declare.
11565
4057dfde
TT
115662020-02-08 Tom Tromey <tom@tromey.com>
11567
11568 * Makefile.in (COMMON_SFILES): Add dwarf2/comp-unit.c.
11569 * dwarf2/read.c (struct comp_unit_head): Move to
11570 dwarf2/comp-unit.h.
11571 (enum class rcuh_kind): Move to comp-unit.h.
11572 (get_cu_length, offset_in_cu_p): Now methods on comp_unit_head.
11573 (read_comp_unit_head, error_check_comp_unit_head)
11574 (read_and_check_comp_unit_head): Move to comp-unit.c.
11575 (read_offset, dwarf_unit_type_name): Likewise.
11576 (create_debug_type_hash_table, read_cutu_die_from_dwo)
11577 (cutu_reader::cutu_reader, read_call_site_scope)
11578 (find_partial_die, follow_die_offset): Update.
11579 * dwarf2/comp-unit.h: New file, from dwarf2read.c.
11580
24aa364d
TT
115812020-02-08 Tom Tromey <tom@tromey.com>
11582
11583 * dwarf2/read.c (read_offset_1): Move to leb.c.
11584 (read_abbrev_offset, read_offset, dwarf_decode_line_header)
11585 (dwarf_decode_macro_bytes): Update.
11586 * dwarf2/leb.c (read_offset): Rename; move from read.c.
11587 * dwarf2/leb.h (read_offset): Declare.
11588
2c7d5afc
TT
115892020-02-08 Tom Tromey <tom@tromey.com>
11590
11591 * dwarf2/read.c (dwarf2_section_size): Remove.
11592 (error_check_comp_unit_head, dwarf2_symbol_mark_computed):
11593 Update.
11594 * dwarf2/section.h (struct dwarf2_section_info) <get_size>: New method.
11595
4075cb26
TT
115962020-02-08 Tom Tromey <tom@tromey.com>
11597
11598 * dwarf2/read.c (read_initial_length): Move to leb.c.
11599 * dwarf2/leb.h (read_initial_length): Declare.
11600 * dwarf2/leb.c (read_initial_length): Move from read.c. Add
11601 handle_nonstd parameter.
11602 * dwarf2/frame.c (read_initial_length): Remove.
11603 (decode_frame_entry_1): Update.
11604
09ba997f
TT
116052020-02-08 Tom Tromey <tom@tromey.com>
11606
11607 * dwarf2/loc.c (dwarf2_find_location_expression)
11608 (dwarf_evaluate_loc_desc::get_tls_address)
11609 (dwarf_evaluate_loc_desc::push_dwarf_reg_entry_value)
11610 (rw_pieced_value, dwarf2_evaluate_loc_desc_full)
11611 (dwarf2_locexpr_baton_eval, dwarf2_evaluate_property)
11612 (dwarf2_compile_property_to_c)
11613 (dwarf2_loc_desc_get_symbol_read_needs)
11614 (dwarf2_compile_expr_to_ax, locexpr_describe_location)
11615 (locexpr_tracepoint_var_ref, locexpr_generate_c_location)
11616 (loclist_describe_location, loclist_tracepoint_var_ref)
11617 (loclist_generate_c_location): Update.
11618 * compile/compile-loc2c.c (do_compile_dwarf_expr_to_c): Update.
11619 * dwarf2/loc.h (dwarf2_per_cu_objfile, dwarf2_per_cu_addr_size)
11620 (dwarf2_per_cu_ref_addr_size, dwarf2_per_cu_offset_size)
11621 (dwarf2_per_cu_text_offset, dwarf2_version): Don't declare.
11622 * dwarf2/read.c (dwarf2_per_cu_data::objfile)
11623 (dwarf2_per_cu_data::addr_size)
11624 (dwarf2_per_cu_data::ref_addr_size)
11625 (dwarf2_per_cu_data::text_offset)
11626 (dwarf2_per_cu_data::addr_type): Now methods.
11627 (per_cu_header_read_in): Make per_cu "const".
11628 (dwarf2_version): Remove.
11629 (dwarf2_per_cu_data::int_type): Now a method.
11630 (dwarf2_per_cu_data::_addr_sized_int_type): Likewise.
11631 (set_die_type, read_array_type, read_subrange_index_type)
11632 (read_tag_string_type, read_subrange_type): Update.
11633 * dwarf2/read.h (struct dwarf2_per_cu_data) <addr_size,
11634 offset_size, ref_addr_size, text_offset, addr_type, version,
11635 objfile, int_type, addr_sized_int_type>: Declare methods.
11636
96c738c0
TT
116372020-02-08 Tom Tromey <tom@tromey.com>
11638
11639 * dwarf2/read.h (struct dwarf2_per_cu_data) <imported_symtabs>:
11640 Move earlier.
11641
8fdd972c
TT
116422020-02-08 Tom Tromey <tom@tromey.com>
11643
11644 * dwarf2/read.h (dwarf_line_debug): Declare.
11645 * Makefile.in (COMMON_SFILES): Add dwarf2/line-header.c.
11646 * dwarf2/read.c: Move line_header code to new files.
11647 (dwarf_line_debug): No longer static.
11648 * dwarf2/line-header.c: New file.
11649 * dwarf2/line-header.h: New file.
11650
03075812
TT
116512020-02-08 Tom Tromey <tom@tromey.com>
11652
11653 * dwarf2/read.c (struct line_header) <file_full_name,
11654 file_file_name>: Return unique_xmalloc_ptr.
11655 (line_header::file_file_name): Update.
11656 (line_header::file_full_name): Update.
11657 (dw2_get_file_names_reader): Update.
11658 (macro_start_file): Update.
11659
bb822404
TT
116602020-02-08 Tom Tromey <tom@tromey.com>
11661
11662 * dwarf2/read.c (struct line_header) <file_full_name,
11663 file_file_name>: Declare methods.
11664 (dw2_get_file_names_reader): Update.
11665 (file_file_name): Now a method.
11666 (file_full_name): Likewise.
11667 (macro_start_file): Update.
11668
009b64fc
TT
116692020-02-08 Tom Tromey <tom@tromey.com>
11670
11671 * dwarf2/read.c (dwarf_always_disassemble)
11672 (show_dwarf_always_disassemble): Move to loc.c.
11673 (_initialize_dwarf2_read): Move "always-disassemble" registration
11674 to loc.c.
11675 * dwarf2/read.h (dwarf_always_disassemble): Don't declare.
11676 * dwarf2/loc.c (dwarf_always_disassemble): Move from read.c. Now
11677 static.
11678 (show_dwarf_always_disassemble): Move from read.c.
11679 (_initialize_dwarf2loc): Move always-disassemble from read.c.
11680
5895093f
TT
116812020-02-08 Tom Tromey <tom@tromey.com>
11682
11683 * dwarf2/read.c (~dwarf2_per_objfile): Update.
11684 (create_quick_file_names_table): Return htab_up.
11685 (dw2_get_file_names_reader, dw2_forget_cached_source_info):
11686 Update.
11687 * dwarf2/read.h (struct dwarf2_per_objfile)
11688 <quick_file_names_table>: Now htab_up.
11689
b3b32279
TT
116902020-02-08 Tom Tromey <tom@tromey.com>
11691
11692 * dwarf2/abbrev.c (abbrev_table::read): Simplify.
11693
1d33d811
TT
116942020-02-08 Tom Tromey <tom@tromey.com>
11695
11696 * dwarf2/abbrev.c (abbrev_table): Move constructor from header.
11697 Rewrite.
11698 (abbrev_table::add_abbrev, abbrev_table::lookup_abbrev): Rewrite.
11699 * dwarf2/abbrev.h (struct abbrev_info) <next>: Remove.
11700 (abbrev_table::abbrev_table): No longer inline.
11701 (ABBREV_HASH_SIZE): Remove.
11702 (abbrev_table::m_abbrevs): Now an htab_up.
11703
86de1d91
TT
117042020-02-08 Tom Tromey <tom@tromey.com>
11705
11706 * dwarf2/read.c (read_cutu_die_from_dwo): Update.
11707 (cutu_reader): Update.
11708 (build_type_psymtabs_1): Update.
11709 * dwarf2/abbrev.c (abbrev_table::read): Rename.
11710 (abbrev_table::alloc_abbrev): Update.
11711 * dwarf2/abbrev.h (abbrev_table_up): Move earlier.
11712 (abbrev_table::read): New static method, renamed from
11713 abbrev_table_read_table.
11714 (abbrev_table::alloc_abbrev)
11715 (abbrev_table::add_abbrev): Now private.
11716 (abbrev_table::abbrev_table): Now private.
11717 (abbrev_table::m_abbrev_obstack): Now private. Rename.
11718
0335378b
TT
117192020-02-08 Tom Tromey <tom@tromey.com>
11720
11721 * dwarf2/read.c (set_die_type, get_die_type_at_offset): Update.
11722 * dwarf2/read.h (struct dwarf2_per_objfile) <die_type_hash>: Now
11723 htab_up.
11724
48b490f2
TT
117252020-02-08 Tom Tromey <tom@tromey.com>
11726
11727 * dwarf2/read.c (struct dwp_file) <loaded_cus, loaded_tus>: Now
11728 htab_up.
11729 (lookup_dwo_unit_in_dwp): Update.
11730 (allocate_dwp_loaded_cutus_table): Return htab_up. Don't allocate
11731 on obstack.
11732
bc68fb19
TT
117332020-02-08 Tom Tromey <tom@tromey.com>
11734
11735 * dwarf2/read.c (allocate_dwo_file_hash_table): Don't allocate on
11736 obstack.
11737
d15acc42
TT
117382020-02-08 Tom Tromey <tom@tromey.com>
11739
11740 * dwarf2/read.c (~dwarf2_per_objfile): Don't delete
11741 line_header_hash.
11742 (handle_DW_AT_stmt_list): Update. Don't allocate on obstack.
11743 * dwarf2/read.h (struct dwarf2_per_objfile) <line_header_hash>:
11744 Change type to htab_up.
11745
eaa5fa8b
TT
117462020-02-08 Tom Tromey <tom@tromey.com>
11747
11748 * dwarf2/read.c (allocate_type_unit_groups_table): Return
11749 htab_up. Don't allocate on obstack.
11750 (get_type_unit_group, dwarf2_build_psymtabs_hard): Update.
11751 * dwarf2/read.h (struct dwarf2_per_objfile) <type_unit_groups>:
11752 Change type to htab_up.
11753
b0b6a987
TT
117542020-02-08 Tom Tromey <tom@tromey.com>
11755
11756 * dwarf2/read.h (struct dwarf2_per_objfile) <signatured_types>:
11757 Change type to htab_up.
11758 * dwarf2/read.c (create_signatured_type_table_from_index)
11759 (create_signatured_type_table_from_debug_names)
11760 (create_all_type_units, add_type_unit)
11761 (lookup_dwo_signatured_type, lookup_signatured_type)
11762 (process_skeletonless_type_unit): Update.
11763 (create_debug_type_hash_table, create_debug_types_hash_table):
11764 Change type of types_htab.
11765 (allocate_signatured_type_table, allocate_dwo_unit_table): Return
11766 htab_up. Don't allocate on obstack.
11767 (create_cus_hash_table): Change type of cus_htab parameter.
11768 (struct dwo_file) <cus, tus>: Now htab_up.
11769 (lookup_dwo_signatured_type, lookup_dwo_cutu)
11770 (process_dwo_file_for_skeletonless_type_units, lookup_dwo_cutu)
11771 (queue_and_load_all_dwo_tus): Update.
11772 * dwarf2/index-write.c (write_gdbindex): Update.
11773 (write_debug_names): Update.
11774
39856def
TT
117752020-02-08 Tom Tromey <tom@tromey.com>
11776
11777 * dwarf2/read.h (struct dwarf2_queue_item): Move from
11778 dwarf2/read.c. Remove "next" member. Add constructor ntad
11779 destructor.
11780 (struct dwarf2_per_objfile) <queue>: New member.
11781 * dwarf2/read.c (struct dwarf2_queue_item): Move to
11782 dwarf2/read.h.
11783 (dwarf2_queue, dwarf2_queue_tail): Remove.
11784 (class dwarf2_queue_guard): Add parameter to constructor. Use
11785 DISABLE_COPY_AND_ASSIGN.
11786 <m_per_objfile>: New member.
11787 <~dwarf2_queue_guard>: Rewrite.
11788 (dw2_do_instantiate_symtab, queue_comp_unit, process_queue):
11789 Update.
11790 (~dwarf2_queue_item): New.
11791
3e225074
TT
117922020-02-08 Tom Tromey <tom@tromey.com>
11793
11794 * dwarf2/read.c (struct die_info) <has_children>: New member.
11795 (dw2_get_file_names_reader): Remove has_children.
11796 (dw2_get_file_names): Update.
11797 (read_cutu_die_from_dwo): Remove has_children.
11798 (cutu_reader::init_tu_and_read_dwo_dies)
11799 (cutu_reader::cutu_reader): Update.
11800 (process_psymtab_comp_unit_reader, build_type_psymtabs_reader):
11801 Remove has_children.
11802 (build_type_psymtabs_1, process_skeletonless_type_unit)
11803 (load_partial_comp_unit, load_full_comp_unit): Update.
11804 (create_dwo_cu_reader): Remove has_children.
11805 (create_cus_hash_table, read_die_and_children): Update.
11806 (read_full_die_1,read_full_die): Remove has_children.
11807 (read_signatured_type): Update.
11808 (class cutu_reader) <has_children>: Remove.
11809
82ca8957
TT
118102020-02-08 Tom Tromey <tom@tromey.com>
11811
11812 * dwarf2/expr.c: Rename from dwarf2expr.c.
11813 * dwarf2/expr.h: Rename from dwarf2expr.h.
11814 * dwarf2/frame-tailcall.c: Rename from dwarf2-frame-tailcall.c.
11815 * dwarf2/frame-tailcall.h: Rename from dwarf2-frame-tailcall.h.
11816 * dwarf2/frame.c: Rename from dwarf2-frame.c.
11817 * dwarf2/frame.h: Rename from dwarf2-frame.h.
11818 * dwarf2/index-cache.c: Rename from dwarf-index-cache.c.
11819 * dwarf2/index-cache.h: Rename from dwarf-index-cache.h.
11820 * dwarf2/index-common.c: Rename from dwarf-index-common.c.
11821 * dwarf2/index-common.h: Rename from dwarf-index-common.h.
11822 * dwarf2/index-write.c: Rename from dwarf-index-write.c.
11823 * dwarf2/index-write.h: Rename from dwarf-index-write.h.
11824 * dwarf2/loc.c: Rename from dwarf2loc.c.
11825 * dwarf2/loc.h: Rename from dwarf2loc.h.
11826 * dwarf2/read.c: Rename from dwarf2read.c.
11827 * dwarf2/read.h: Rename from dwarf2read.h.
11828 * dwarf2/abbrev.c, aarch64-tdep.c, alpha-tdep.c,
11829 amd64-darwin-tdep.c, arc-tdep.c, arm-tdep.c, bfin-tdep.c,
11830 compile/compile-c-symbols.c, compile/compile-cplus-symbols.c,
11831 compile/compile-loc2c.c, cris-tdep.c, csky-tdep.c, findvar.c,
11832 gdbtypes.c, guile/scm-type.c, h8300-tdep.c, hppa-bsd-tdep.c,
11833 hppa-linux-tdep.c, i386-darwin-tdep.c, i386-linux-tdep.c,
11834 i386-tdep.c, iq2000-tdep.c, m32c-tdep.c, m68hc11-tdep.c,
11835 m68k-tdep.c, microblaze-tdep.c, mips-tdep.c, mn10300-tdep.c,
11836 msp430-tdep.c, nds32-tdep.c, nios2-tdep.c, or1k-tdep.c,
11837 riscv-tdep.c, rl78-tdep.c, rs6000-tdep.c, rx-tdep.c, s12z-tdep.c,
11838 s390-tdep.c, score-tdep.c, sh-tdep.c, sparc-linux-tdep.c,
11839 sparc-tdep.c, sparc64-linux-tdep.c, sparc64-tdep.c, tic6x-tdep.c,
11840 tilegx-tdep.c, v850-tdep.c, xstormy16-tdep.c, xtensa-tdep.c:
11841 Update.
11842 * Makefile.in (COMMON_SFILES): Update.
11843 (HFILES_NO_SRCDIR): Update.
11844
9e35d499
TT
118452020-02-08 Tom Tromey <tom@tromey.com>
11846
11847 * dwarf2read.c (struct die_reader_specs) <comp_dir>: Remove.
11848 (init_cu_die_reader, read_cutu_die_from_dwo): Update.
11849
1eba2311
TT
118502020-02-08 Tom Tromey <tom@tromey.com>
11851
11852 * dwarf2read.h (struct die_info): Don't declare.
11853
e41c2da2
TT
118542020-02-08 Tom Tromey <tom@tromey.com>
11855
11856 * dwarf2read.h (die_info_ptr): Remove typedef.
11857
4fc6c0d5
TT
118582020-02-08 Tom Tromey <tom@tromey.com>
11859
11860 * dwarf2read.c (read_call_site_scope)
11861 (handle_data_member_location, dwarf2_add_member_fn)
11862 (mark_common_block_symbol_computed, read_common_block)
11863 (attr_to_dynamic_prop, partial_die_info::read)
11864 (var_decode_location, dwarf2_fetch_die_loc_sect_off)
11865 (dwarf2_symbol_mark_computed, set_die_type): Update.
11866 * dwarf2/attribute.h (struct attribute) <form_is_block>: Declare
11867 method.
11868 (attr_form_is_block): Don't declare.
11869 * dwarf2/attribute.c (attribute::form_is_block): Now a method.
11870
cd6c91b4
TT
118712020-02-08 Tom Tromey <tom@tromey.com>
11872
11873 * dwarf2read.c (dwarf2_find_base_address, )
11874 (read_call_site_scope, rust_containing_type)
11875 (dwarf2_get_pc_bounds, dwarf2_record_block_ranges)
11876 (handle_data_member_location, dwarf2_add_member_fn)
11877 (get_alignment, read_structure_type, process_structure_scope)
11878 (mark_common_block_symbol_computed, read_common_block)
11879 (read_tag_string_type, attr_to_dynamic_prop, read_subrange_type)
11880 (partial_die_info::read, read_attribute_value, new_symbol)
11881 (lookup_die_type, dwarf2_get_ref_die_offset)
11882 (dwarf2_get_attr_constant_value, follow_die_ref_or_sig)
11883 (dwarf2_fetch_die_loc_sect_off, get_DW_AT_signature_type)
11884 (dwarf2_symbol_mark_computed): Update.
11885 * dwarf2/attribute.h (struct attribute) <value_as_address,
11886 form_is_section_offset, form_is_constant, form_is_ref>: Declare
11887 methods.
11888 (value_as_address, attr_form_is_section_offset)
11889 (attr_form_is_constant, attr_form_is_ref): Don't declare.
11890 * dwarf2/attribute.c (attribute::value_as_address)
11891 (attribute::form_is_section_offset, attribute::form_is_constant)
11892 (attribute::form_is_ref): Now methods.
11893
162dce55
TT
118942020-02-08 Tom Tromey <tom@tromey.com>
11895
11896 * dwarf2read.c (struct attribute, DW_STRING)
11897 (DW_STRING_IS_CANONICAL, DW_UNSND, DW_BLOCK, DW_SND, DW_ADDR)
11898 (DW_SIGNATURE, struct dwarf_block, attr_value_as_address)
11899 (attr_form_is_block, attr_form_is_section_offset)
11900 (attr_form_is_constant, attr_form_is_ref): Move.
11901 * dwarf2/attribute.h: New file.
11902 * dwarf2/attribute.c: New file, from dwarf2read.c.
11903 * Makefile.in (COMMON_SFILES): Add dwarf2/attribute.c.
11904
3054dd54
TT
119052020-02-08 Tom Tromey <tom@tromey.com>
11906
11907 * dwarf2read.c (abbrev_table_up, struct abbrev_info)
11908 (struct attr_abbrev, ABBREV_HASH_SIZE, struct abbrev_table):
11909 Move.
11910 (read_cutu_die_from_dwo, build_type_psymtabs_1): Update.
11911 (abbrev_table::alloc_abbrev, abbrev_table::add_abbrev)
11912 (abbrev_table::lookup_abbrev, abbrev_table_read_table): Move to
11913 abbrev.c.
11914 * dwarf2/abbrev.h: New file.
11915 * dwarf2/abbrev.c: New file, from dwarf2read.c.
11916 * Makefile.in (COMMON_SFILES): Add dwarf2/abbrev.c.
11917
96b79293
TT
119182020-02-08 Tom Tromey <tom@tromey.com>
11919
11920 * dwarf2read.c (dwarf2_section_buffer_overflow_complaint)
11921 (dwarf2_section_size, dwarf2_get_section_info)
11922 (create_signatured_type_table_from_debug_names)
11923 (create_addrmap_from_aranges, read_debug_names_from_section)
11924 (get_gdb_index_contents_from_section, read_comp_unit_head)
11925 (error_check_comp_unit_head, read_abbrev_offset)
11926 (create_debug_type_hash_table, init_cu_die_reader)
11927 (read_cutu_die_from_dwo, dwarf2_build_psymtabs_hard)
11928 (read_comp_units_from_section, create_cus_hash_table)
11929 (create_dwp_hash_table, create_dwo_unit_in_dwp_v1)
11930 (create_dwp_v2_section, dwarf2_rnglists_process)
11931 (dwarf2_ranges_process, read_die_and_siblings, read_full_die)
11932 (abbrev_table_read_table, read_indirect_string_at_offset_from)
11933 (read_indirect_string_from_dwz, read_addr_index_1)
11934 (read_str_index, dwarf_decode_line_header, skip_form_bytes)
11935 (dwarf_decode_macro_bytes, dwarf_decode_macros)
11936 (fill_in_loclist_baton): Update.
11937 * dwarf2/section.h (struct dwarf2_section_info) <get_name,
11938 get_containing_section, get_bfd_owner, get_bfd_section,
11939 get_file_name, get_id, get_flags, empty, read>: Declare methods.
11940 (dwarf2_read_section, get_section_name, get_section_file_name)
11941 (get_containing_section, get_section_bfd_owner)
11942 (get_section_bfd_section, get_section_name, get_section_file_name)
11943 (get_section_id, get_section_flags, dwarf2_section_empty_p): Don't
11944 declare.
11945 * dwarf2/section.c (dwarf2_section_info::get_containing_section)
11946 (dwarf2_section_info::get_bfd_owner)
11947 (dwarf2_section_info::get_bfd_section)
11948 (dwarf2_section_info::get_name)
11949 (dwarf2_section_info::get_file_name, dwarf2_section_info::get_id)
11950 (dwarf2_section_info::get_flags, dwarf2_section_info::empty)
11951 (dwarf2_section_info::read): Now methods.
11952 * dwarf-index-write.c (class debug_names): Update.
11953
2c86cff9
TT
119542020-02-08 Tom Tromey <tom@tromey.com>
11955
11956 * dwarf2read.h (struct dwarf2_section_info, dwarf2_read_section):
11957 Move to dwarf2/section.h.
11958 * dwarf2read.c (get_containing_section, get_section_bfd_owner)
11959 (get_section_bfd_section, get_section_name)
11960 (get_section_file_name, get_section_id, get_section_flags)
11961 (dwarf2_section_empty_p, dwarf2_read_section): Moe to
11962 dwarf2/section.c.
11963 * dwarf2/section.h: New file.
11964 * dwarf2/section.c: New file, from dwarf2read.c.
11965 * Makefile.in (COMMON_SFILES): Add dwarf2/section.c.
11966
f4382c45
TT
119672020-02-08 Tom Tromey <tom@tromey.com>
11968
11969 * dwarf2read.h (read_unsigned_leb128): Don't declare.
11970 * dwarf2read.c (read_1_byte, read_1_signed_byte, read_2_bytes)
11971 (read_2_signed_bytes, read_3_bytes, read_4_bytes)
11972 (read_4_signed_bytes, read_8_bytes): Move to dwarf2/leb.h.
11973 (read_unsigned_leb128, read_signed_leb128): Move to dwarf2/leb.c.
11974 * dwarf2/leb.h: New file, from dwarf2read.c.
11975 * dwarf2/leb.c: New file, from dwarf2read.c.
11976 * dwarf2-frame.c (read_1_byte, read_4_bytes, read_8_bytes):
11977 Remove.
11978 * Makefile.in (CONFIG_SRC_SUBDIR): Add dwarf2.
11979 (COMMON_SFILES): Add dwarf2/leb.c.
11980
01840b7a
JB
119812020-02-08 Joel Brobecker <brobecker@adacore.com>
11982
11983 GDB 9.1 released.
11984
dfcb27e4
IB
119852020-02-05 Iain Buclaw <ibuclaw@gdcproject.org>
11986
11987 PR gdb/25190:
aac66a4c
SM
11988 * gdb/remote-sim.c (gdb_os_write_stderr): Update.
11989 * gdb/remote.c (remote_console_output): Update.
11990 * gdb/ui-file.c (fputs_unfiltered): Rename to...
11991 (ui_file_puts): ...this.
11992 * gdb/ui-file.h (ui_file_puts): Add declaration.
11993 * gdb/utils.c (emit_style_escape): Update.
11994 (flush_wrap_buffer): Update.
11995 (fputs_maybe_filtered): Update.
11996 (fputs_unfiltered): Add function.
dfcb27e4 11997
faa17681
IB
119982020-02-05 Iain Buclaw <ibuclaw@gdcproject.org>
11999
aac66a4c
SM
12000 * gdb/event-loop.c (gdb_wait_for_event): Update.
12001 * gdb/printcmd.c (printf_command): Update.
12002 * gdb/remote-fileio.c (remote_fileio_func_write): Update.
12003 * gdb/remote-sim.c (gdb_os_flush_stdout): Update.
12004 (gdb_os_flush_stderr): Update.
12005 * gdb/remote.c (remote_console_output): Update.
12006 * gdb/ui-file.c (gdb_flush): Rename to...
12007 (ui_file_flush): ...this.
12008 (stderr_file::write): Update.
12009 (stderr_file::puts): Update.
12010 * gdb/ui-file.h (gdb_flush): Rename to...
12011 (ui_file_flush): ...this.
12012 * gdb/utils.c (gdb_flush): Add function.
12013 * gdb/utils.h (gdb_flush): Add declaration.
faa17681 12014
5abbbe1d
TT
120152020-02-07 Tom Tromey <tromey@adacore.com>
12016
12017 PR breakpoints/24915:
12018 * source.c (find_and_open_source): Do not check basenames_may_differ.
12019
919adfe8
TT
120202020-02-07 Tom Tromey <tom@tromey.com>
12021
12022 * README: Update gdbserver documentation.
12023 * gdbserver: Move to top level.
12024 * configure.tgt (build_gdbserver): Remove.
12025 * configure.ac: Remove --enable-gdbserver.
12026 * configure: Rebuild.
12027 * Makefile.in (distclean): Don't mention gdbserver.
12028
1d5d29e7
SV
120292020-02-06 Shahab Vahedi <shahab@synopsys.com>
12030
12031 * source-cache.c (source_cache::ensure): Surround
12032 get_plain_source_lines with a try/catch.
12033 (source_cache::get_line_charpos): Get rid of try/catch
12034 and only check for the return value of "ensure".
12035 * tui/tui-source.c (tui_source_window::set_contents):
12036 Simplify "nlines" calculation.
12037
6eb1129c
SV
120382020-02-06 Shahab Vahedi <shahab@synopsys.com>
12039
12040 * MAINTAINERS (Write After Approval): Add myself.
12041
c6a42d11
CB
120422020-02-05 Christian Biesinger <cbiesinger@google.com>
12043
12044 * sparc-nat.h (struct sparc_target) <xfer_partial>: Fix base class
12045 function call.
12046
c8ecdda6
CB
120472020-02-05 Christian Biesinger <cbiesinger@google.com>
12048
12049 * ppc-nbsd-tdep.h: Fix macro name in #endif comment.
12050
f6480e70
MR
120512020-02-05 Maciej W. Rozycki <macro@wdc.com>
12052
12053 * nat/riscv-linux-tdesc.h: New file.
12054 * nat/riscv-linux-tdesc.c: New file, taking code from...
12055 * riscv-linux-nat.c (riscv_linux_nat_target::read_description):
12056 ... here.
12057 * configure.nat <linux> <riscv*>: Add nat/riscv-linux-tdesc.o to
12058 NATDEPFILES.
12059
dcc9fbc6
AB
120602020-02-04 Andrew Burgess <andrew.burgess@embecosm.com>
12061
12062 * remote-sim.c (sim_inferior_data::sim_inferior_data): Assert that
12063 we don't set the fake simulator ptid to the null_ptid.
12064
719546c4
SM
120652020-02-03 Simon Marchi <simon.marchi@efficios.com>
12066
12067 * fork-child.c (gdb_startup_inferior): Use bool instead of int.
12068 * gdbthread.h (class thread_info) <resumed>: Likewise.
12069 * infrun.c (resume_1): Likewise.
12070 (proceed): Likewise.
12071 (infrun_thread_stop_requested): Likewise.
12072 (stop_all_threads): Likewise.
12073 (handle_inferior_event): Likewise.
12074 (restart_threads): Likewise.
12075 (finish_step_over): Likewise.
12076 (keep_going_stepped_thread): Likewise.
12077 * linux-nat.c (attach_proc_task_lwp_callback): Likewise.
12078 (linux_handle_extended_wait): Likewise.
12079 * record-btrace.c (get_thread_current_frame_id): Likewise.
12080 * record-full.c (record_full_wait_1): Likewise.
12081 * remote.c (remote_target::process_initial_stop_replies): Likewise.
12082 * target.c (target_resume): Likewise.
12083 * thread.c (set_running_thread): Likewise.
12084
e409c542
AKS
120852020-02-03 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
12086
12087 * f-valprint.c (f77_print_array_1): Changed datatype of index
12088 variable to LONGEST from int to enable it to contain bound
12089 values correctly.
12090
ee98c0da
MR
120912020-02-03 Maciej W. Rozycki <macro@wdc.com>
12092
12093 * riscv-linux-nat.c [!NFPREG] (NFPREG): New macro.
12094 (supply_fpregset_regnum, fill_fpregset): Handle regset buffer
12095 offsets according to FLEN determined.
12096 (riscv_linux_nat_target::read_description): Determine FLEN
12097 dynamically.
12098 (riscv_linux_nat_target::fetch_registers): Size regset buffer
12099 according to FLEN determined.
12100 (riscv_linux_nat_target::store_registers): Likewise.
12101
aa66aac4
SV
121022020-02-01 Shahab Vahedi <shahab@synopsys.com>
12103
12104 * target-descriptions.c (tdesc_register_in_reggroup_p): Return 0
12105 when reg->group is empty and reggroup is not.
12106
fd9faca8
TT
121072020-01-31 Tom Tromey <tromey@adacore.com>
12108
12109 * ravenscar-thread.c (ravenscar_thread_target::mourn_inferior):
12110 Call beneath target's mourn_inferior after unpushing.
12111
42330a68
AB
121122020-01-31 Andrew Burgess <andrew.burgess@embecosm.com>
12113
12114 PR tui/9765
12115 * tui/tui-disasm.c (tui_find_disassembly_address): If we don't
12116 have enough lines to fill the screen, still return the lowest
12117 address we found.
12118
7a27a45b
AB
121192020-01-31 Andrew Burgess <andrew.burgess@embecosm.com>
12120
12121 * tui/tui-win.c (_initialize_tui_win): Update help text for '+',
12122 '-', '<', and '>' commands.
12123
c47f70e2
PA
121242020-01-29 Pedro Alves <palves@redhat.com>
12125 Sergio Durigan Junior <sergiodj@redhat.com>
12126
12127 * infcmd.c (construct_inferior_arguments): Assert that
12128 'argc' is greater than 0.
12129
5133a315
LM
121302020-01-29 Luis Machado <luis.machado@linaro.org>
12131
12132 * aarch64-tdep.c (BRK_INSN_MASK): Define to 0xffe0001f.
12133 (BRK_INSN_MASK): Define to 0xd4200000.
12134 (aarch64_program_breakpoint_here_p): New function.
12135 (aarch64_gdbarch_init): Set gdbarch_program_breakpoint_here_p hook.
12136 * arch-utils.c (default_program_breakpoint_here_p): Moved from
12137 breakpoint.c.
12138 * arch-utils.h (default_program_breakpoint_here_p): Moved from
12139 breakpoint.h
12140 * breakpoint.c (bp_loc_is_permanent): Changed return type to bool and
12141 call gdbarch_program_breakpoint_here_p.
12142 (program_breakpoint_here): Moved to arch-utils.c, renamed to
12143 default_program_breakpoint_here_p, changed return type to bool and
12144 simplified.
12145 * breakpoint.h (program_breakpoint_here): Moved prototype to
12146 arch-utils.h, renamed to default_program_breakpoint_here_p and changed
12147 return type to bool.
12148 * gdbarch.c: Regenerate.
12149 * gdbarch.h: Regenerate.
12150 * gdbarch.sh (program_breakpoint_here_p): New method.
12151 * infrun.c (handle_signal_stop): Call
12152 gdbarch_program_breakpoint_here_p.
12153
168f8c6b
TT
121542020-01-26 Tom Tromey <tom@tromey.com>
12155
12156 * ctfread.c (struct ctf_fp_info): Reindent.
12157 (_initialize_ctfread): Remove.
12158
128a391f
TT
121592020-01-26 Tom Tromey <tom@tromey.com>
12160
12161 * psymtab.c (partial_map_expand_apply)
12162 (psym_find_pc_sect_compunit_symtab, psym_lookup_symbol)
12163 (psymtab_to_symtab, psym_find_last_source_symtab, dump_psymtab)
12164 (psym_print_stats, psym_expand_symtabs_for_function)
12165 (psym_map_symbol_filenames, psym_map_matching_symbols)
12166 (psym_expand_symtabs_matching)
12167 (partial_symtab::read_dependencies, maintenance_info_psymtabs)
12168 (maintenance_check_psymtabs): Use new methods.
12169 * psympriv.h (struct partial_symtab) <readin_p,
12170 get_compunit_symtab>: New methods.
12171 <readin, compunit_symtab>: Remove members.
12172 (struct standard_psymtab): New.
12173 (struct legacy_psymtab): Derive from standard_psymtab.
12174 * dwarf2read.h (struct dwarf2_psymtab): Derive from
12175 standard_psymtab.
12176 * ctfread.c (struct ctf_psymtab): Derive from standard_psymtab.
12177
0494dbec
TT
121782020-01-26 Tom Tromey <tom@tromey.com>
12179
12180 * xcoffread.c (xcoff_psymtab_to_symtab_1): Call
12181 read_dependencies. Add assert.
12182 * psymtab.c (partial_symtab::read_dependencies): New method.
12183 * psympriv.h (struct partial_symtab) <read_dependencies>: New
12184 method.
12185 * mdebugread.c (psymtab_to_symtab_1): Call read_dependencies.
12186 * dwarf2read.c (dwarf2_psymtab::expand_psymtab): Call
12187 read_dependencies.
12188 * dbxread.c (dbx_psymtab_to_symtab_1): Call read_dependencies.
12189 Add assert.
12190
8566b89b
TT
121912020-01-26 Tom Tromey <tom@tromey.com>
12192
12193 * xcoffread.c (xcoff_psymtab_to_symtab_1): Change argument order.
12194 Call expand_psymtab.
12195 (xcoff_read_symtab): Call expand_psymtab.
12196 (xcoff_start_psymtab, xcoff_end_psymtab): Set
12197 legacy_expand_psymtab.
12198 * psympriv.h (struct partial_symtab) <expand_psymtab>: New
12199 method.
12200 (struct legacy_psymtab) <expand_psymtab>: Implement.
12201 <legacy_expand_psymtab>: New member.
12202 * mdebugread.c (mdebug_read_symtab): Call expand_psymtab.
12203 (parse_partial_symbols): Set legacy_expand_psymtab.
12204 (psymtab_to_symtab_1): Change argument order. Call
12205 expand_psymtab.
12206 (new_psymtab): Set legacy_expand_psymtab.
12207 * dwarf2read.h (struct dwarf2_psymtab) <expand_psymtab>: Declare.
12208 * dwarf2read.c (dwarf2_psymtab::read_symtab): Call
12209 expand_psymtab.
12210 (dwarf2_psymtab::expand_psymtab): Rename from
12211 psymtab_to_symtab_1. Call expand_psymtab.
12212 * dbxread.c (start_psymtab): Set legacy_expand_psymtab.
12213 (dbx_end_psymtab): Likewise.
12214 (dbx_psymtab_to_symtab_1): Change argument order. Call
12215 expand_psymtab.
12216 (dbx_read_symtab): Call expand_psymtab.
12217 * ctfread.c (struct ctf_psymtab) <expand_psymtab>: Declare.
12218 (ctf_psymtab::expand_psymtab): Rename from psymtab_to_symtab.
12219 (ctf_psymtab::read_symtab): Call expand_psymtab.
12220
077cbab2
TT
122212020-01-26 Tom Tromey <tom@tromey.com>
12222
12223 * xcoffread.c (xcoff_read_symtab): Remove prints. Add assert.
12224 * psymtab.c (psymtab_to_symtab): Print verbose "Reading"
12225 messages.
12226 * mdebugread.c (mdebug_read_symtab): Remove prints.
12227 * dwarf2read.c (dwarf2_psymtab::read_symtab): Remove prints. Add
12228 assert.
12229 * dbxread.c (dbx_read_symtab): Remove prints. Add assert.
12230
891813be
TT
122312020-01-26 Tom Tromey <tom@tromey.com>
12232
12233 * xcoffread.c (this_symtab_psymtab, read_xcoff_symtab)
12234 (xcoff_psymtab_to_symtab_1, xcoff_read_symtab)
12235 (xcoff_start_psymtab, xcoff_end_psymtab, scan_xcoff_symtab): Use
12236 legacy_symtab.
12237 * stabsread.h (dbx_end_psymtab): Use legacy_symtab.
12238 * psymtab.c (psymtab_to_symtab): Call method.
12239 (dump_psymtab): Update.
12240 * psympriv.h (struct partial_symtab): Add virtual destructor.
12241 <read_symtab>: New method.
12242 (struct legacy_symtab): New.
12243 * mdebugread.c (mdebug_read_symtab): Use legacy_psymtab.
12244 (struct pst_map) <pst>: Now a legacy_psymtab.
12245 (parse_procedure, parse_partial_symbols, psymtab_to_symtab_1)
12246 (new_psymtab): Use legacy_psymtab.
12247 * dwarf2read.h (struct dwarf2_psymtab): New.
12248 (struct dwarf2_per_cu_data) <psymtab>: Use it.
12249 * dwarf2read.c (dwarf2_create_include_psymtab)
12250 (dwarf2_build_include_psymtabs, create_type_unit_group)
12251 (create_partial_symtab, process_psymtab_comp_unit_reader)
12252 (build_type_psymtabs_reader, build_type_psymtab_dependencies)
12253 (set_partial_user): Use dwarf2_psymtab.
12254 (dwarf2_psymtab::read_symtab): Rename from dwarf2_read_symtab.
12255 (psymtab_to_symtab_1, process_full_comp_unit)
12256 (process_full_type_unit, dwarf2_ranges_read)
12257 (dwarf2_get_pc_bounds, psymtab_include_file_name)
12258 (dwarf_decode_lines): Use dwarf2_psymtab.
12259 * dwarf-index-write.c (psym_index_map): Use dwarf2_psymtab.
12260 (add_address_entry_worker, write_one_signatured_type)
12261 (recursively_count_psymbols, recursively_write_psymbols)
12262 (write_one_signatured_type, psyms_seen_size, write_gdbindex)
12263 (write_debug_names): Likewise.
12264 * dbxread.c (struct header_file_location): Take a legacy_psymtab.
12265 <pst>: Now a legacy_psymtab.
12266 (find_corresponding_bincl_psymtab): Return a legacy_psymtab.
12267 (read_dbx_symtab, start_psymtab, dbx_end_psymtab)
12268 (dbx_psymtab_to_symtab_1, read_ofile_symtab): Use legacy_psymtab.
12269 * ctfread.c (struct ctf_psymtab): New.
12270 (ctf_start_symtab, ctf_end_symtab, psymtab_to_symtab): Take a
12271 ctf_psymtab.
12272 (ctf_psymtab::read_symtab): Rename from ctf_read_symtab.
12273 (create_partial_symtab): Return a ctf_psymtab.
12274 (scan_partial_symbols): Update.
12275
c3693a1d
TT
122762020-01-26 Tom Tromey <tom@tromey.com>
12277
12278 * xcoffread.c (xcoff_start_psymtab): Use new.
12279 * psymtab.c (partial_symtab::partial_symtab): New constructor,
12280 renamed from start_psymtab_common.
12281 * psympriv.h (struct partial_symtab): Add new constructor.
12282 (start_psymtab_common): Don't declare.
12283 * mdebugread.c (parse_partial_symbols): Use new.
12284 * dwarf2read.c (create_partial_symtab): Use new.
12285 * dbxread.c (start_psymtab): Use new.
12286 * ctfread.c (create_partial_symtab): Use new.
12287
32caafd0
TT
122882020-01-26 Tom Tromey <tom@tromey.com>
12289
12290 * xcoffread.c (xcoff_end_psymtab): Use new.
12291 * psymtab.c (start_psymtab_common): Use new.
12292 (partial_symtab::partial_symtab): Rename from allocate_psymtab.
12293 Update.
12294 * psympriv.h (struct partial_symtab): Add parameters to
12295 constructor. Don't inline.
12296 (allocate_psymtab): Don't declare.
12297 * mdebugread.c (new_psymtab): Use new.
12298 * dwarf2read.c (dwarf2_create_include_psymtab): Use new.
12299 * dbxread.c (dbx_end_psymtab): Use new.
12300
abaa2f23
TT
123012020-01-26 Tom Tromey <tom@tromey.com>
12302
12303 * psymtab.h (class psymtab_storage) <install_psymtab>: Rename from
12304 allocate_psymtab. Update documentation.
12305 * psymtab.c (psymtab_storage::install_psymtab): Rename from
12306 allocate_psymtab. Do not use new.
12307 (allocate_psymtab): Use new. Update.
12308
6d94535f
TT
123092020-01-26 Tom Tromey <tom@tromey.com>
12310
12311 * xcoffread.c (xcoff_psymtab_to_symtab_1): Update.
12312 * psymtab.c (psym_print_stats): Update.
12313 * psympriv.h (struct partial_symtab) <readin,
12314 psymtabs_addrmap_supported, anonymous>: Now bool.
12315 * mdebugread.c (psymtab_to_symtab_1): Update.
12316 * dwarf2read.c (create_type_unit_group, create_partial_symtab)
12317 (build_type_psymtabs_reader, psymtab_to_symtab_1)
12318 (process_full_comp_unit, process_full_type_unit): Update.
12319 * dbxread.c (dbx_psymtab_to_symtab_1): Update.
12320 * ctfread.c (psymtab_to_symtab): Update.
12321
6f17252b
TT
123222020-01-26 Tom Tromey <tom@tromey.com>
12323
12324 * mdebugread.c (parse_partial_symbols): Use discard_psymtab.
12325 * psymtab.h (class psymtab_storage) <free_psymtabs>: Remove.
12326 * psymtab.c (psymtab_storage): Delete psymtabs.
12327 (psymtab_storage::allocate_psymtab): Use new.
12328 (psymtab_storage::discard_psymtab): Use delete.
12329 * psympriv.h (struct partial_symtab): Add constructor and
12330 initializers.
12331
f6f1cebc
TT
123322020-01-26 Tom Tromey <tom@tromey.com>
12333
12334 * machoread.c: Do not include psympriv.h.
12335
e47e48f6
PW
123362020-01-25 Philippe Waroquiers <philippe.waroquiers@skynet.be>
12337
12338 * NEWS: Mention the new option and the set/show commands.
12339
a2fedca9
PW
123402020-01-25 Philippe Waroquiers <philippe.waroquiers@skynet.be>
12341
12342 * exec.c (exec_file_mismatch_names, exec_file_mismatch_mode)
12343 (show_exec_file_mismatch_command, set_exec_file_mismatch_command)
12344 (validate_exec_file): New variables, enums, functions.
12345 (exec_file_locate_attach, print_section_info): Style the filenames.
12346 (_initialize_exec): Install show_exec_file_mismatch_command and
12347 set_exec_file_mismatch_command.
12348 * gdbcore.h (validate_exec_file): Declare.
12349 * infcmd.c (attach_command): Call validate_exec_file.
12350 * remote.c ( remote_target::remote_add_inferior): Likewise.
12351
7ffa82e1
AB
123522020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
12353
12354 * frame.c (find_frame_sal): Move call to get_next_frame into more
12355 inner scope.
12356 * inline-frame.c (inilne_state) <inline_state>: Update argument
12357 types.
12358 (inilne_state) <skipped_symbol>: Rename to...
12359 (inilne_state) <skipped_symbols>: ...this, and change to a vector.
12360 (skip_inline_frames): Build vector of skipped symbols and use this
12361 to reate the inline_state.
12362 (inline_skipped_symbol): Add a comment and some assertions, fetch
12363 skipped symbol from the list.
12364
3d92a3e3
AB
123652020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
12366
12367 * buildsym.c (lte_is_less_than): Delete.
12368 (buildsym_compunit::end_symtab_with_blockvector): Create local
12369 lambda function to sort line table entries, and use
12370 std::stable_sort instead of std::sort.
12371 * symtab.c (find_pc_sect_line): Skip backward over end of sequence
12372 markers when looking for a previous line.
12373
94a72be7
AB
123742020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
12375
12376 * dwarf2read.c (lnp_state_machine::record_line): Include
12377 end_sequence parameter in debug print out. Record the line if we
12378 are at an end_sequence marker even if it's not the start of a
12379 statement.
12380 * symmisc.c (maintenance_print_one_line_table): Print end of
12381 sequence markers with 'END' not '0'.
12382
53af73bf
PA
123832020-01-24 Pedro Alves <palves@redhat.com>
12384
12385 PR gdb/25410
12386 * thread.c (scoped_restore_current_thread::restore): Use
12387 switch_to_inferior_no_thread.
12388 * exec.c: Include "progspace-and-thread.h".
12389 (add_target_sections, remove_target_sections):
12390 scoped_restore_current_pspace_and_thread instead of
12391 scoped_restore_current_thread.
12392 * infrun.c (handle_vfork_child_exec_or_exit): Assign the pspace
12393 and aspace to the inferior before calling clone_program_space.
12394 Remove stale comment.
12395
3050c6f4
CB
123962020-01-24 Christian Biesinger <cbiesinger@google.com>
12397
12398 * arm-nbsd-nat.c (arm_nbsd_nat_target::fetch_registers): Rename to...
12399 (arm_netbsd_nat_target::fetch_registers): ...this.
12400 (arm_nbsd_nat_target::store_registers): Rename to...
12401 (arm_netbsd_nat_target::store_registers): ...this.
12402
73685c7e
CB
124032020-01-24 Christian Biesinger <cbiesinger@google.com>
12404
12405 * arm-nbsd-nat.c: Define _KERNTYPES to get the declaration of
12406 register_t.
12407
89203d40
CB
124082020-01-24 Christian Biesinger <cbiesinger@google.com>
12409
12410 * aarch64-fbsd-tdep.c (aarch64_fbsd_iterate_over_regset_sections):
12411 Update comment.
12412 * aarch64-linux-tdep.c (aarch64_linux_iterate_over_regset_sections):
12413 Likewise.
12414 * arm-fbsd-tdep.c (arm_fbsd_iterate_over_regset_sections): Likewise.
12415 * gdbcore.h (deprecated_add_core_fns): Update comment to point to
12416 the correct replacement (iterate_over_regset_sections).
12417 * riscv-fbsd-tdep.c (riscv_fbsd_iterate_over_regset_sections):
12418 Update comment.
12419
1ba1ac88
AB
124202020-01-24 Graham Markall <graham.markall@embecosm.com>
12421
12422 PR gdb/23718
12423 * gdb/python/python.c (execute_gdb_command): Call
12424 async_enable_stdin in catch block.
12425
f3364a6d
AB
124262020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
12427
12428 * event-loop.c (start_event_loop): Wrap async_enable_stdin with
12429 SWITCH_THRU_ALL_UIS.
12430
733d0a67
AB
124312020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
12432
12433 PR tui/9765
12434 * minsyms.c (lookup_minimal_symbol_by_pc_section): Update header
12435 comment, add extra parameter, and update to store previous symbol
12436 when appropriate.
12437 * minsyms.h (lookup_minimal_symbol_by_pc_section): Update comment,
12438 add extra parameter.
12439 * tui/tui-disasm.c (tui_disassemble): Update header comment,
12440 remove unneeded parameter, add try/catch around gdb_print_insn,
12441 rewrite to add items to asm_lines vector.
12442 (tui_find_backward_disassembly_start_address): New function.
12443 (tui_find_disassembly_address): Updated throughout.
12444 (tui_disasm_window::set_contents): Update for changes to
12445 tui_disassemble.
12446 (tui_disasm_window::do_scroll_vertical): No need to adjust the
12447 number of lines to scroll.
12448
b3b3bada
SM
124492020-01-23 Simon Marchi <simon.marchi@polymtl.ca>
12450
12451 * objfiles.h (ALL_OBJFILE_OSECTIONS): Move up.
12452 (SECT_OFF_DATA): Likewise.
12453 (SECT_OFF_RODATA): Likewise.
12454 (SECT_OFF_TEXT): Likewise.
12455 (SECT_OFF_BSS): Likewise.
12456 (struct objfile) <text_section_offset, data_section_offset>: New
12457 methods.
12458 * amd64-windows-tdep.c (amd64_windows_find_unwind_info): Use
12459 objfile::text_section_offset.
12460 * coff-pe-read.c (add_pe_forwarded_sym): Likewise.
12461 * coffread.c (coff_symtab_read): Likewise.
12462 (enter_linenos): Likewise.
12463 (process_coff_symbol): Likewise.
12464 * ctfread.c (get_objfile_text_range): Likewise.
12465 * dtrace-probe.c (dtrace_probe::get_relocated_address):
12466 Use objfile::data_section_offset.
12467 * dwarf2-frame.c (execute_cfa_program): Use
12468 objfile::text_section_offset.
12469 (dwarf2_frame_find_fde): Likewise.
12470 * dwarf2read.c (create_addrmap_from_index): Likewise.
12471 (create_addrmap_from_aranges): Likewise.
12472 (dw2_find_pc_sect_compunit_symtab): Likewise.
12473 (process_psymtab_comp_unit_reader): Likewise.
12474 (add_partial_symbol): Likewise.
12475 (add_partial_subprogram): Likewise.
12476 (process_full_comp_unit): Likewise.
12477 (read_file_scope): Likewise.
12478 (read_func_scope): Likewise.
12479 (read_lexical_block_scope): Likewise.
12480 (read_call_site_scope): Likewise.
12481 (dwarf2_rnglists_process): Likewise.
12482 (dwarf2_ranges_process): Likewise.
12483 (dwarf2_ranges_read): Likewise.
12484 (dwarf_decode_lines_1): Likewise.
12485 (new_symbol): Likewise.
12486 (dwarf2_fetch_die_loc_sect_off): Likewise.
12487 (dwarf2_per_cu_text_offset): Likewise.
12488 * hppa-bsd-tdep.c (hppabsd_find_global_pointer): Likewise.
12489 * hppa-tdep.c (read_unwind_info): Likewise.
12490 * ia64-tdep.c (ia64_find_unwind_table): Likewise.
12491 * psympriv.h (struct partial_symtab): Likewise.
12492 * psymtab.c (find_pc_sect_psymtab): Likewise.
12493 * solib-svr4.c (enable_break): Likewise.
12494 * stap-probe.c (relocate_address): Use
12495 objfile::data_section_offset.
12496 * xcoffread.c (enter_line_range): Use
12497 objfile::text_section_offset.
12498 (read_xcoff_symtab): Likewise.
12499
ab53f382
SM
125002020-01-23 Simon Marchi <simon.marchi@efficios.com>
12501
12502 * darwin-nat.c (darwin_nat_target::wait_1): Move `inf`
12503 declaration to narrower scopes.
12504
e7eee665
SM
125052020-01-23 Simon Marchi <simon.marchi@efficios.com>
12506
12507 * darwin-nat.h (struct darwin_exception_msg, enum
12508 darwin_msg_state, struct darwin_thread_info, darwin_thread_t):
12509 Move up.
12510 (class darwin_nat_target) <wait_1, check_new_threads,
12511 decode_exception_message, decode_message, stop_inferior,
12512 init_thread_list, ptrace_him, cancel_breakpoint>: Declare.
12513 * darwin-nat.c (darwin_check_new_threads): Rename to...
12514 (darwin_nat_target::check_new_threads): ... this.
12515 (darwin_suspend_inferior_it): Remove.
12516 (darwin_decode_exception_message): Rename to...
12517 (darwin_nat_target::decode_exception_message): ... this.
12518 (darwin_nat_target::resume): Pass target to find_inferior_ptid.
12519 (darwin_decode_message): Rename to...
12520 (darwin_nat_target::decode_message): ... this.
12521 (cancel_breakpoint): Rename to...
12522 (darwin_nat_target::cancel_breakpoint): ... this.
12523 (darwin_wait): Rename to...
12524 (darwin_nat_target::wait_1): ... this. Use range-based for loop
12525 instead of iterate_over_inferiors.
12526 (darwin_nat_target::wait): Call wait_1 instead of darwin_wait.
12527 (darwin_stop_inferior): Rename to...
12528 (darwin_nat_target::stop_inferior): ... this.
12529 (darwin_nat_target::kill): Call wait_1 instead of darwin_wait.
12530 (darwin_init_thread_list): Rename to...
12531 (darwin_nat_target::init_thread_list): ... this.
12532 (darwin_ptrace_him): Rename to...
12533 (darwin_nat_target::ptrace_him): ... this.
12534 (darwin_nat_target::create_inferior): Pass lambda function to
12535 fork_inferior.
12536 (darwin_nat_target::detach): Call stop_inferior instead of
12537 darwin_stop_inferior.
12538 * fork-inferior.h (fork_inferior): Change init_trace_fun
12539 parameter to gdb::function_view.
12540 * fork-inferior.c (fork_inferior): Likewise.
12541
c162ed3e
HD
125422020-01-23 Hannes Domani <ssbssa@yahoo.de>
12543
12544 * i386-cygwin-tdep.c (core_process_module_section): Update.
12545 * windows-nat.c (struct lm_info_windows): Add text_offset.
12546 (windows_xfer_shared_libraries): Update.
12547 * windows-tdep.c (windows_xfer_shared_library):
12548 Add text_offset_cached argument.
12549 * windows-tdep.h (windows_xfer_shared_library): Update.
12550
a1237872
SM
125512020-01-21 Simon Marchi <simon.marchi@efficios.com>
12552
12553 * gdbarch.sh: Add declaration for _initialize_gdbarch.
12554
b3ee6dd9
SM
125552020-01-21 Simon Marchi <simon.marchi@efficios.com>
12556
12557 * remote-sim.c (check_for_duplicate_sim_descriptor): Remove.
12558 (get_sim_inferior_data): Remove use of iterate_over_inferiors,
12559 replace with range-based for.
12560 (gdbsim_interrupt_inferior): Remove.
12561 (gdbsim_target::interrupt): Replace iterate_over_inferiors use
12562 with a range-based for. Inline code from
12563 gdbsim_interrupt_inferior.
12564
f9fac3c8
SM
125652020-01-21 Simon Marchi <simon.marchi@efficios.com>
12566
12567 * infrun.c (proceed): Fix indentation.
12568
f6474de9
TT
125692020-01-21 Tom Tromey <tromey@adacore.com>
12570
12571 * source-cache.c (source_cache::ensure): Call ext_lang_colorize.
12572 * python/python.c (python_extension_ops): Update.
12573 (gdbpy_colorize): New function.
12574 * python/lib/gdb/__init__.py (colorize): New function.
12575 * extension.h (ext_lang_colorize): Declare.
12576 * extension.c (ext_lang_colorize): New function.
12577 * extension-priv.h (struct extension_language_ops) <colorize>: New
12578 member.
12579 * cli/cli-style.c (_initialize_cli_style): Update help text.
12580
f0c702d4
LM
125812020-01-21 Luis Machado <luis.machado@linaro.org>
12582
12583 * aarch64-tdep.c (struct aarch64_displaced_step_closure)
12584 <cond>: Change type to bool.
12585 (aarch64_displaced_step_b_cond): Update cond to use bool type.
12586 (aarch64_displaced_step_cb): Likewise.
12587 (aarch64_displaced_step_tb): Likewise.
12588
1ab139e5
LM
125892020-01-21 Luis Machado <luis.machado@linaro.org>
12590
12591 * aarch64-tdep.c (aarch64_displaced_step_fixup): Add more debugging
12592 output.
12593
0c271889
LM
125942020-01-21 Luis Machado <luis.machado@linaro.org>
12595
12596 * aarch64-tdep.c (struct aarch64_displaced_step_closure )
12597 <pc_adjust>: Adjust the documentation.
12598 (aarch64_displaced_step_fixup): Check if PC really moved before
12599 adjusting it.
12600
4d89c1c7
TT
126012020-01-19 Tom Tromey <tom@tromey.com>
12602
12603 * disasm.c (~gdb_disassembler): New destructor.
12604 (gdb_buffered_insn_length): Call disassemble_free_target.
12605 * disasm.h (class gdb_disassembler): Declare destructor. Use
12606 DISABLE_COPY_AND_ASSIGN.
12607
c0ab21c2
TT
126082020-01-19 Tom Tromey <tom@tromey.com>
12609
12610 * dwarf2read.c (abbrev_table_up): Move typedef earlier.
12611 (die_reader_func_ftype): Remove.
12612 (cutu_reader): New class.
12613 (dw2_get_file_names_reader): Remove "data" parameter.
12614 (dw2_get_file_names): Use cutu_reader.
12615 (create_debug_type_hash_table): Update.
12616 (read_cutu_die_from_dwo): Update comment.
12617 (lookup_dwo_unit): Add dwo_name parameter.
12618 (cutu_reader::init_tu_and_read_dwo_dies): Now a method. Remove
12619 die_reader_func_ftype and data parameters.
12620 (cutu_reader::cutu_reader): Rename from init_cutu_and_read_dies.
12621 Remove die_reader_func_ftype and data parameters.
12622 (~cutu_reader): New; from init_cutu_and_read_dies.
12623 (cutu_reader::cutu_reader): Rename from
12624 init_cutu_and_read_dies_no_follow. Remove die_reader_func_ftype
12625 and data parameters.
12626 (init_cutu_and_read_dies_simple): Remove.
12627 (struct process_psymtab_comp_unit_data): Remove.
12628 (process_psymtab_comp_unit_reader): Remove data parameter; add
12629 want_partial_unit and pretend_language parameters.
12630 (process_psymtab_comp_unit): Use cutu_reader.
12631 (build_type_psymtabs_reader): Remove data parameter.
12632 (build_type_psymtabs_1): Use cutu_reader.
12633 (process_skeletonless_type_unit): Likewise.
12634 (load_partial_comp_unit_reader): Remove.
12635 (load_partial_comp_unit): Use cutu_reader.
12636 (load_full_comp_unit_reader): Remove.
12637 (load_full_comp_unit): Use cutu_reader.
12638 (struct create_dwo_cu_data): Remove.
12639 (create_dwo_cu_reader): Remove datap parameter; add dwo_file and
12640 dwo_unit parameters.
12641 (create_cus_hash_table): Use cutu_reader.
12642 (struct dwarf2_read_addr_index_data): Remove.
12643 (dwarf2_read_addr_index_reader): Remove.
12644 (dwarf2_read_addr_index): Use cutu_reader.
12645 (read_signatured_type_reader): Remove.
12646 (read_signatured_type): Use cutu_reader.
12647
45bbae5c
TT
126482020-01-19 Tom Tromey <tom@tromey.com>
12649
12650 * tui/tui.c (tui_show_assembly): Use tui_suppress_output.
12651 * tui/tui-wingeneral.h (class tui_suppress_output): New.
12652 (tui_wrefresh): Declare.
12653 * tui/tui-wingeneral.c (suppress_output): New global.
12654 (tui_suppress_output, ~tui_suppress_output): New constructor and
12655 destructor.
12656 (tui_wrefresh): New function.
12657 (tui_gen_win_info::refresh_window): Use tui_wrefresh.
12658 (tui_gen_win_info::make_window): Call wnoutrefresh when needed.
12659 * tui/tui-regs.h (struct tui_data_window) <no_refresh>: Declare
12660 method.
12661 * tui/tui-regs.c (tui_data_window::erase_data_content): Call
12662 tui_wrefresh.
12663 (tui_data_window::no_refresh): New method.
12664 (tui_data_item_window::refresh_window): Call tui_wrefresh.
12665 (tui_reg_command): Use tui_suppress_output
12666 * tui/tui-layout.c (tui_set_layout): Use tui_suppress_output.
12667 * tui/tui-data.h (struct tui_gen_win_info) <no_refresh>: New
12668 method.
12669 * tui/tui-command.c (tui_refresh_cmd_win): Call tui_wrefresh.
12670
4f13c1c0
TT
126712020-01-19 Tom Tromey <tom@tromey.com>
12672
12673 * tui/tui-winsource.c (tui_update_source_windows_with_line):
12674 Handle case where symtab is null.
12675
fa47e446
SM
126762020-01-19 Simon Marchi <simon.marchi@polymtl.ca>
12677
12678 * linux-fork.c (one_fork_p): Simplify.
12679
26f42329
SM
126802020-01-17 Simon Marchi <simon.marchi@efficios.com>
12681
12682 * top.c (struct qt_args): Remove.
12683 (kill_or_detach): Change return type to void, replace `void *`
12684 parameter with a proper one.
12685 (print_inferior_quit_action): Likewise.
12686 (quit_confirm): Use range-based for loop to iterate over inferiors.
12687 (quit_force): Likewise.
12688
a9ac81b1
SM
126892020-01-17 Simon Marchi <simon.marchi@efficios.com>
12690
12691 * mi/mi-main.c (run_one_inferior): Change return type to void, replace
12692 `void *` parameter with proper parameters.
12693 (mi_cmd_exec_run): Use range-based loop to iterate over inferiors.
12694 (print_one_inferior): Change return type to void, replace `void *`
12695 parameter with proper parameters.
12696 (mi_cmd_list_thread_groups): Use range-based loop to iterate over
12697 inferiors.
12698 (get_other_inferior): Remove.
12699 (mi_cmd_remove_inferior): Use range-based loop to iterate over
12700 inferiors.
12701
788eca49
SM
127022020-01-17 Simon Marchi <simon.marchi@efficios.com>
12703
12704 * mi/mi-interp.c (report_initial_inferior): Remove.
12705 (mi_interp::init): Use range-based for to iterate over inferiors.
12706
d9bc85b6
SM
127072020-01-17 Simon Marchi <simon.marchi@efficios.com>
12708
12709 * python/py-inferior.c (build_inferior_list): Remove.
12710 (gdbpy_ref): Use range-based for loop to iterate over inferiors.
12711
40c94099
CB
127122020-01-16 Christian Biesinger <cbiesinger@google.com>
12713
12714 * btrace.c (btrace_compute_ftrace_1): Fix spelling error (Unkown).
12715 (btrace_stitch_trace): Likewise.
12716 * charset.c (intermediate_encoding): Likewise (vaild).
12717 * nat/linux-btrace.c (linux_read_pt): Likewise (Unkown).
12718 * python/py-record-btrace.c (struct PyMethodDef): Likewise (occurences).
12719 * record-btrace.c (record_btrace_print_conf): Likewise (unkown).
12720
e0cdfe3c
HD
127212020-01-16 Hannes Domani <ssbssa@yahoo.de>
12722
12723 * windows-tdep.c (windows_get_tlb_type):
12724 Add rtl_user_process_parameters type.
12725
790f1718 127262020-01-16 Pedro Alves <palves@redhat.com>
aac66a4c 12727 Norbert Lange <nolange79@gmail.com>
790f1718
PA
12728
12729 PR build/24805
12730 * gdbsupport/gdb_proc_service.h (PS_EXPORT): New.
12731 (ps_get_thread_area, ps_getpid, ps_lcontinue, ps_lgetfpregs)
12732 (ps_lgetregs, ps_lsetfpregs, ps_lsetregs, ps_lstop, ps_pcontinue)
12733 (ps_pdread, ps_pdwrite, ps_pglobal_lookup, ps_pstop, ps_ptread)
12734 (ps_ptwrite, ps_lgetxregs, ps_lgetxregsize, ps_lsetxregs)
12735 (ps_plog): Redeclare exported functions with default visibility.
12736
3112ed97
NA
127372020-01-16 Nitika Achra <Nitika.Achra@amd.com>
12738
12739 * dwarf2loc.c (decode_debug_loclists_addresses): Handle
12740 DW_LLE_base_addressx, DW_LLE_startx_length, DW_LLE_start_length.
12741
8dc3273e
SM
127422020-01-15 Simon Marchi <simon.marchi@efficios.com>
12743
12744 * infcmd.c (post_create_inferior): Use get_thread_regcache
12745 instead of get_current_regcache.
12746
ff47f4f0
TT
127472020-01-14 Tom Tromey <tom@tromey.com>
12748
12749 PR symtab/12535:
12750 * python/python.c (gdbpy_decode_line): Treat empty string the same
12751 as no argument.
12752
975f45b7
TT
127532020-01-14 Tom Tromey <tom@tromey.com>
12754
12755 * Makefile.in (CLIBS): Remove second use of $(LIBIBERTY).
12756
25e57356
TT
127572020-01-14 Tom Tromey <tom@tromey.com>
12758
12759 * nat/linux-btrace.c: Don't include <config.h>.
12760 * nat/linux-ptrace.c: Don't include <config.h>.
12761 * nat/x86-linux-dregs.c: Don't include <config.h>.
12762
05ea2a05
TT
127632020-01-14 Tom Tromey <tom@tromey.com>
12764
12765 * configure: Rebuild.
12766 * configure.ac: Move many checks to ../gdbsupport/common.m4.
12767
01027315
TT
127682020-01-14 Tom Tromey <tom@tromey.com>
12769
12770 * nat/x86-linux-dregs.c: Include configh.h.
12771 * nat/linux-ptrace.c: Include configh.h.
12772 * nat/linux-btrace.c: Include configh.h.
12773 * defs.h: Include config.h, bfd.h.
12774 * configure.ac: Don't source common.host.
12775 (CONFIG_OBS, CONFIG_SRCS): Remove gdbsupport files.
12776 * configure: Rebuild.
12777 * acinclude.m4: Update path.
12778 * Makefile.in (SUPPORT, LIBSUPPORT, INCSUPPORT): New variables.
12779 (CONFIG_SRC_SUBDIR): Remove gdbsupport.
12780 (INTERNAL_CFLAGS_BASE): Add INCSUPPORT.
12781 (CLIBS): Add LIBSUPPORT.
12782 (CDEPS): Likewise.
12783 (COMMON_SFILES): Remove gdbsupport files.
12784 (HFILES_NO_SRCDIR): Likewise.
12785 (stamp-version): Update path to create-version.sh.
12786 (ALLDEPFILES): Remove gdbsupport files.
12787
b2ceabe8
TT
127882020-01-14 Tom Tromey <tom@tromey.com>
12789
12790 * gdbsupport/common.m4 (GDB_AC_COMMON): Define WIN32APILIBS and
12791 USE_WIN32API when needed.
12792 * configure.ac (USE_WIN32API): Don't define.
12793 (WIN32LIBS): Use WIN32APILIBS.
12794 * configure: Rebuild.
12795
25c51f71
TT
127962020-01-14 Tom Tromey <tom@tromey.com>
12797
12798 * configure: Rebuild.
12799 * gdbsupport/common.m4 (GDB_AC_COMMON): Fix indentation.
12800
717c684d
BE
128012020-01-14 Bernd Edlinger <bernd.edlinger@hotmail.de>
12802
12803 * skip.c (skip_function_command): Make skip w/o arguments use the
12804 name of the inlined function if pc is inside any inlined function.
12805
7da6a5b9
LM
128062020-01-14 Luis Machado <luis.machado@linaro.org>
12807
12808 * inf-ptrace.c (inf_ptrace_target::resume): Update comments.
12809 * infrun.c (resume_1): Likewise.
12810 (handle_inferior_event): Remove stale comment.
12811 * linux-nat.c (linux_nat_target::resume): Update comments.
12812 (save_stop_reason): Likewise.
12813 (linux_nat_filter_event): Likewise.
12814 * linux-nat.h (struct lwp_info) <stop_pc>, <stop_reason>: Likewise.
12815
44e4c775
AB
128162020-01-13 Andrew Burgess <andrew.burgess@embecosm.com>
12817
12818 * elfread.c (record_minimal_symbol): Set section index to 0 for
12819 non-allocatable sections.
12820
18a8505e
AT
12821
128222020-01-13 Ali Tamur <tamur@google.com>
12823
12824 * dwarf2read.c (dwarf2_debug_sections): Add debug_str_offsets sections.
12825 (dwarf2_cu): Add str_offsets_base field. Change the type of addr_base
12826 to gdb::optional. Update comments.
12827 (dwo_file): Update comments.
12828 (read_attribute): Update API to take an additional out parameter,
12829 need_reprocess. This is used to mark attributes that need other
12830 attributes (e.g. str_offsets_base) for correct computation which may not
12831 have been read yet.
12832 (read_attribute_reprocess): New function declaration.
12833 (read_addr_index): Likewise.
12834 (read_dwo_str_index): Likewise.
12835 (read_stub_str_index): Likewise.
12836 (dwarf2_per_objfile::locate_sections): Handle debug_str_offsets section.
12837 (lookup_addr_base): New function definition.
12838 (lookup_ranges_base): Likewise.
12839 (read_cutu_die_from_dwo): Use the new functions: lookup_addr_base,
12840 lookup_ranges_base.
12841 (init_cutu_and_read_dies): Update comments.
12842 (init_cutu_and_read_dies_no_follow): Change API to take parent compile
12843 unit. This is used to inherit parent's str_offsets_base and addr_base.
12844 Update comments.
12845 (init_cutu_and_read_dies_simple): Reflect API changes.
12846 (skip_one_die): Reflect API changes. Handle DW_FORM_rnglistx.
12847 (create_cus_hash_table): Change API to take parent compile unit.
12848 Reflect API changes.
12849 (open_and_init_dwo_file): Reflect API changes.
12850 (dwarf2_get_pc_bounds): Update comments.
12851 (dwarf2_record_block_ranges): Likewise.
12852 (read_full_die_1): Change implementation to reprocess attributes that
12853 need str_offsets_base and addr_base.
12854 (partial_die_info::read): Likewise.
12855 (read_attribute_reprocess): New function definition.
12856 (read_attribute_value): Change API to take an additional out parameter,
12857 need_reprocess. Handle DW_FORM_rnglistx. No longer trigger an error
12858 when a non-dwo compile unit has index based attributes.
12859 (read_attribute): Reflect API changes.
12860 (read_addr_index_1): Reflect API changes. Update comments.
12861 (dwarf2_read_addr_index_data): Reflect API changes.
12862 (dwarf2_read_addr_index): Likewise.
12863 (read_str_index): Change API and implementation. This becomes a helper
12864 to be used by the new string index related methods. Update error
12865 message and comments.
12866 (read_dwo_str_index): New function definition.
12867 (read_stub_str_index): Likewise.
12868 * dwarf2read.h (dwarf2_per_objfile): Add str_offsets field.
12869 * symfile.h (dwarf2_debug_sections): Likewise.
12870 * xcoffread.c (dwarf2_debug_sections): Likewise.
12871
0cac9354
SM
128722020-01-13 Simon Marchi <simon.marchi@efficios.com>
12873
12874 * gdbcore.h (struct core_fns) <core_read_registers>: Change
12875 core_reg_sect type to gdb_byte *.
12876 * arm-nbsd-nat.c (fetch_elfcore_registers): Likewise.
12877 * cris-tdep.c (fetch_core_registers): Likewise.
12878 * corelow.c (core_target::get_core_register_section): Change
12879 type of `contents` to gdb::byte_vector.
12880
9a6d629c
AB
128812020-01-13 Andrew Burgess <andrew.burgess@embecosm.com>
12882
12883 * tui/tui-wingeneral.c (box_win): Position the title in the center
12884 of the border.
12885
d8b2f9e3
SM
128862020-01-13 Simon Marchi <simon.marchi@polymtl.ca>
12887
12888 * corelow.c (core_target::get_core_register_section): Use
12889 std::vector instead of alloca.
12890
bb564c58
SM
128912020-01-13 Simon Marchi <simon.marchi@efficios.com>
12892
12893 * warning.m4: Add -Wmissing-declarations to build_warnings.
12894 * configure: Re-generate.
12895
6b366111
SM
128962020-01-13 Simon Marchi <simon.marchi@efficios.com>
12897
12898 * python/python.c (init__gdb_module): Add declaration.
12899
6c265988
SM
129002020-01-13 Simon Marchi <simon.marchi@efficios.com>
12901
12902 * aarch64-fbsd-nat.c (_initialize_aarch64_fbsd_nat): Add declaration.
12903 * aarch64-fbsd-tdep.c (_initialize_aarch64_fbsd_tdep): Add declaration.
12904 * aarch64-linux-nat.c (_initialize_aarch64_linux_nat): Add declaration.
12905 * aarch64-linux-tdep.c (_initialize_aarch64_linux_tdep): Add declaration.
12906 * aarch64-newlib-tdep.c (_initialize_aarch64_newlib_tdep): Add declaration.
12907 * aarch64-tdep.c (_initialize_aarch64_tdep): Add declaration.
12908 * ada-exp.y (_initialize_ada_exp): Add declaration.
12909 * ada-lang.c (_initialize_ada_language): Add declaration.
12910 * ada-tasks.c (_initialize_tasks): Add declaration.
12911 * agent.c (_initialize_agent): Add declaration.
12912 * aix-thread.c (_initialize_aix_thread): Add declaration.
12913 * alpha-bsd-nat.c (_initialize_alphabsd_nat): Add declaration.
12914 * alpha-linux-nat.c (_initialize_alpha_linux_nat): Add declaration.
12915 * alpha-linux-tdep.c (_initialize_alpha_linux_tdep): Add declaration.
12916 * alpha-nbsd-tdep.c (_initialize_alphanbsd_tdep): Add declaration.
12917 * alpha-obsd-tdep.c (_initialize_alphaobsd_tdep): Add declaration.
12918 * alpha-tdep.c (_initialize_alpha_tdep): Add declaration.
12919 * amd64-darwin-tdep.c (_initialize_amd64_darwin_tdep): Add declaration.
12920 * amd64-dicos-tdep.c (_initialize_amd64_dicos_tdep): Add declaration.
12921 * amd64-fbsd-nat.c (_initialize_amd64fbsd_nat): Add declaration.
12922 * amd64-fbsd-tdep.c (_initialize_amd64fbsd_tdep): Add declaration.
12923 * amd64-linux-nat.c (_initialize_amd64_linux_nat): Add declaration.
12924 * amd64-linux-tdep.c (_initialize_amd64_linux_tdep): Add declaration.
12925 * amd64-nbsd-nat.c (_initialize_amd64nbsd_nat): Add declaration.
12926 * amd64-nbsd-tdep.c (_initialize_amd64nbsd_tdep): Add declaration.
12927 * amd64-obsd-nat.c (_initialize_amd64obsd_nat): Add declaration.
12928 * amd64-obsd-tdep.c (_initialize_amd64obsd_tdep): Add declaration.
12929 * amd64-sol2-tdep.c (_initialize_amd64_sol2_tdep): Add declaration.
12930 * amd64-tdep.c (_initialize_amd64_tdep): Add declaration.
12931 * amd64-windows-nat.c (_initialize_amd64_windows_nat): Add declaration.
12932 * amd64-windows-tdep.c (_initialize_amd64_windows_tdep): Add declaration.
12933 * annotate.c (_initialize_annotate): Add declaration.
12934 * arc-newlib-tdep.c (_initialize_arc_newlib_tdep): Add declaration.
12935 * arc-tdep.c (_initialize_arc_tdep): Add declaration.
12936 * arch-utils.c (_initialize_gdbarch_utils): Add declaration.
12937 * arm-fbsd-nat.c (_initialize_arm_fbsd_nat): Add declaration.
12938 * arm-fbsd-tdep.c (_initialize_arm_fbsd_tdep): Add declaration.
12939 * arm-linux-nat.c (_initialize_arm_linux_nat): Add declaration.
12940 * arm-linux-tdep.c (_initialize_arm_linux_tdep): Add declaration.
12941 * arm-nbsd-nat.c (_initialize_arm_netbsd_nat): Add declaration.
12942 * arm-nbsd-tdep.c (_initialize_arm_netbsd_tdep): Add declaration.
12943 * arm-obsd-tdep.c (_initialize_armobsd_tdep): Add declaration.
12944 * arm-pikeos-tdep.c (_initialize_arm_pikeos_tdep): Add declaration.
12945 * arm-symbian-tdep.c (_initialize_arm_symbian_tdep): Add declaration.
12946 * arm-tdep.c (_initialize_arm_tdep): Add declaration.
12947 * arm-wince-tdep.c (_initialize_arm_wince_tdep): Add declaration.
12948 * auto-load.c (_initialize_auto_load): Add declaration.
12949 * auxv.c (_initialize_auxv): Add declaration.
12950 * avr-tdep.c (_initialize_avr_tdep): Add declaration.
12951 * ax-gdb.c (_initialize_ax_gdb): Add declaration.
12952 * bfin-linux-tdep.c (_initialize_bfin_linux_tdep): Add declaration.
12953 * bfin-tdep.c (_initialize_bfin_tdep): Add declaration.
12954 * break-catch-sig.c (_initialize_break_catch_sig): Add declaration.
12955 * break-catch-syscall.c (_initialize_break_catch_syscall): Add declaration.
12956 * break-catch-throw.c (_initialize_break_catch_throw): Add declaration.
12957 * breakpoint.c (_initialize_breakpoint): Add declaration.
12958 * bsd-uthread.c (_initialize_bsd_uthread): Add declaration.
12959 * btrace.c (_initialize_btrace): Add declaration.
12960 * charset.c (_initialize_charset): Add declaration.
12961 * cli/cli-cmds.c (_initialize_cli_cmds): Add declaration.
12962 * cli/cli-dump.c (_initialize_cli_dump): Add declaration.
12963 * cli/cli-interp.c (_initialize_cli_interp): Add declaration.
12964 * cli/cli-logging.c (_initialize_cli_logging): Add declaration.
12965 * cli/cli-script.c (_initialize_cli_script): Add declaration.
12966 * cli/cli-style.c (_initialize_cli_style): Add declaration.
12967 * coff-pe-read.c (_initialize_coff_pe_read): Add declaration.
12968 * coffread.c (_initialize_coffread): Add declaration.
12969 * compile/compile-cplus-types.c (_initialize_compile_cplus_types): Add declaration.
12970 * compile/compile.c (_initialize_compile): Add declaration.
12971 * complaints.c (_initialize_complaints): Add declaration.
12972 * completer.c (_initialize_completer): Add declaration.
12973 * copying.c (_initialize_copying): Add declaration.
12974 * corefile.c (_initialize_core): Add declaration.
12975 * corelow.c (_initialize_corelow): Add declaration.
12976 * cp-abi.c (_initialize_cp_abi): Add declaration.
12977 * cp-namespace.c (_initialize_cp_namespace): Add declaration.
12978 * cp-support.c (_initialize_cp_support): Add declaration.
12979 * cp-valprint.c (_initialize_cp_valprint): Add declaration.
12980 * cris-linux-tdep.c (_initialize_cris_linux_tdep): Add declaration.
12981 * cris-tdep.c (_initialize_cris_tdep): Add declaration.
12982 * csky-linux-tdep.c (_initialize_csky_linux_tdep): Add declaration.
12983 * csky-tdep.c (_initialize_csky_tdep): Add declaration.
12984 * ctfread.c (_initialize_ctfread): Add declaration.
12985 * d-lang.c (_initialize_d_language): Add declaration.
12986 * darwin-nat-info.c (_initialize_darwin_info_commands): Add declaration.
12987 * darwin-nat.c (_initialize_darwin_nat): Add declaration.
12988 * dbxread.c (_initialize_dbxread): Add declaration.
12989 * dcache.c (_initialize_dcache): Add declaration.
12990 * disasm-selftests.c (_initialize_disasm_selftests): Add declaration.
12991 * disasm.c (_initialize_disasm): Add declaration.
12992 * dtrace-probe.c (_initialize_dtrace_probe): Add declaration.
12993 * dummy-frame.c (_initialize_dummy_frame): Add declaration.
12994 * dwarf-index-cache.c (_initialize_index_cache): Add declaration.
12995 * dwarf-index-write.c (_initialize_dwarf_index_write): Add declaration.
12996 * dwarf2-frame-tailcall.c (_initialize_tailcall_frame): Add declaration.
12997 * dwarf2-frame.c (_initialize_dwarf2_frame): Add declaration.
12998 * dwarf2expr.c (_initialize_dwarf2expr): Add declaration.
12999 * dwarf2loc.c (_initialize_dwarf2loc): Add declaration.
13000 * dwarf2read.c (_initialize_dwarf2_read): Add declaration.
13001 * elfread.c (_initialize_elfread): Add declaration.
13002 * exec.c (_initialize_exec): Add declaration.
13003 * extension.c (_initialize_extension): Add declaration.
13004 * f-lang.c (_initialize_f_language): Add declaration.
13005 * f-valprint.c (_initialize_f_valprint): Add declaration.
13006 * fbsd-nat.c (_initialize_fbsd_nat): Add declaration.
13007 * fbsd-tdep.c (_initialize_fbsd_tdep): Add declaration.
13008 * filesystem.c (_initialize_filesystem): Add declaration.
13009 * findcmd.c (_initialize_mem_search): Add declaration.
13010 * findvar.c (_initialize_findvar): Add declaration.
13011 * fork-child.c (_initialize_fork_child): Add declaration.
13012 * frame-base.c (_initialize_frame_base): Add declaration.
13013 * frame-unwind.c (_initialize_frame_unwind): Add declaration.
13014 * frame.c (_initialize_frame): Add declaration.
13015 * frv-linux-tdep.c (_initialize_frv_linux_tdep): Add declaration.
13016 * frv-tdep.c (_initialize_frv_tdep): Add declaration.
13017 * ft32-tdep.c (_initialize_ft32_tdep): Add declaration.
13018 * gcore.c (_initialize_gcore): Add declaration.
13019 * gdb-demangle.c (_initialize_gdb_demangle): Add declaration.
13020 * gdb_bfd.c (_initialize_gdb_bfd): Add declaration.
13021 * gdbarch-selftests.c (_initialize_gdbarch_selftests): Add declaration.
13022 * gdbarch.c (_initialize_gdbarch): Add declaration.
13023 * gdbtypes.c (_initialize_gdbtypes): Add declaration.
13024 * gnu-nat.c (_initialize_gnu_nat): Add declaration.
13025 * gnu-v2-abi.c (_initialize_gnu_v2_abi): Add declaration.
13026 * gnu-v3-abi.c (_initialize_gnu_v3_abi): Add declaration.
13027 * go-lang.c (_initialize_go_language): Add declaration.
13028 * go32-nat.c (_initialize_go32_nat): Add declaration.
13029 * guile/guile.c (_initialize_guile): Add declaration.
13030 * h8300-tdep.c (_initialize_h8300_tdep): Add declaration.
13031 * hppa-linux-nat.c (_initialize_hppa_linux_nat): Add declaration.
13032 * hppa-linux-tdep.c (_initialize_hppa_linux_tdep): Add declaration.
13033 * hppa-nbsd-nat.c (_initialize_hppanbsd_nat): Add declaration.
13034 * hppa-nbsd-tdep.c (_initialize_hppanbsd_tdep): Add declaration.
13035 * hppa-obsd-nat.c (_initialize_hppaobsd_nat): Add declaration.
13036 * hppa-obsd-tdep.c (_initialize_hppabsd_tdep): Add declaration.
13037 * hppa-tdep.c (_initialize_hppa_tdep): Add declaration.
13038 * i386-bsd-nat.c (_initialize_i386bsd_nat): Add declaration.
13039 * i386-cygwin-tdep.c (_initialize_i386_cygwin_tdep): Add declaration.
13040 * i386-darwin-nat.c (_initialize_i386_darwin_nat): Add declaration.
13041 * i386-darwin-tdep.c (_initialize_i386_darwin_tdep): Add declaration.
13042 * i386-dicos-tdep.c (_initialize_i386_dicos_tdep): Add declaration.
13043 * i386-fbsd-nat.c (_initialize_i386fbsd_nat): Add declaration.
13044 * i386-fbsd-tdep.c (_initialize_i386fbsd_tdep): Add declaration.
13045 * i386-gnu-nat.c (_initialize_i386gnu_nat): Add declaration.
13046 * i386-gnu-tdep.c (_initialize_i386gnu_tdep): Add declaration.
13047 * i386-go32-tdep.c (_initialize_i386_go32_tdep): Add declaration.
13048 * i386-linux-nat.c (_initialize_i386_linux_nat): Add declaration.
13049 * i386-linux-tdep.c (_initialize_i386_linux_tdep): Add declaration.
13050 * i386-nbsd-nat.c (_initialize_i386nbsd_nat): Add declaration.
13051 * i386-nbsd-tdep.c (_initialize_i386nbsd_tdep): Add declaration.
13052 * i386-nto-tdep.c (_initialize_i386nto_tdep): Add declaration.
13053 * i386-obsd-nat.c (_initialize_i386obsd_nat): Add declaration.
13054 * i386-obsd-tdep.c (_initialize_i386obsd_tdep): Add declaration.
13055 * i386-sol2-nat.c (_initialize_amd64_sol2_nat): Add declaration.
13056 * i386-sol2-tdep.c (_initialize_i386_sol2_tdep): Add declaration.
13057 * i386-tdep.c (_initialize_i386_tdep): Add declaration.
13058 * i386-windows-nat.c (_initialize_i386_windows_nat): Add declaration.
13059 * ia64-libunwind-tdep.c (_initialize_libunwind_frame): Add declaration.
13060 * ia64-linux-nat.c (_initialize_ia64_linux_nat): Add declaration.
13061 * ia64-linux-tdep.c (_initialize_ia64_linux_tdep): Add declaration.
13062 * ia64-tdep.c (_initialize_ia64_tdep): Add declaration.
13063 * ia64-vms-tdep.c (_initialize_ia64_vms_tdep): Add declaration.
13064 * infcall.c (_initialize_infcall): Add declaration.
13065 * infcmd.c (_initialize_infcmd): Add declaration.
13066 * inflow.c (_initialize_inflow): Add declaration.
13067 * infrun.c (_initialize_infrun): Add declaration.
13068 * interps.c (_initialize_interpreter): Add declaration.
13069 * iq2000-tdep.c (_initialize_iq2000_tdep): Add declaration.
13070 * jit.c (_initialize_jit): Add declaration.
13071 * language.c (_initialize_language): Add declaration.
13072 * linux-fork.c (_initialize_linux_fork): Add declaration.
13073 * linux-nat.c (_initialize_linux_nat): Add declaration.
13074 * linux-tdep.c (_initialize_linux_tdep): Add declaration.
13075 * linux-thread-db.c (_initialize_thread_db): Add declaration.
13076 * lm32-tdep.c (_initialize_lm32_tdep): Add declaration.
13077 * m2-lang.c (_initialize_m2_language): Add declaration.
13078 * m32c-tdep.c (_initialize_m32c_tdep): Add declaration.
13079 * m32r-linux-nat.c (_initialize_m32r_linux_nat): Add declaration.
13080 * m32r-linux-tdep.c (_initialize_m32r_linux_tdep): Add declaration.
13081 * m32r-tdep.c (_initialize_m32r_tdep): Add declaration.
13082 * m68hc11-tdep.c (_initialize_m68hc11_tdep): Add declaration.
13083 * m68k-bsd-nat.c (_initialize_m68kbsd_nat): Add declaration.
13084 * m68k-bsd-tdep.c (_initialize_m68kbsd_tdep): Add declaration.
13085 * m68k-linux-nat.c (_initialize_m68k_linux_nat): Add declaration.
13086 * m68k-linux-tdep.c (_initialize_m68k_linux_tdep): Add declaration.
13087 * m68k-tdep.c (_initialize_m68k_tdep): Add declaration.
13088 * machoread.c (_initialize_machoread): Add declaration.
13089 * macrocmd.c (_initialize_macrocmd): Add declaration.
13090 * macroscope.c (_initialize_macroscope): Add declaration.
13091 * maint-test-options.c (_initialize_maint_test_options): Add declaration.
13092 * maint-test-settings.c (_initialize_maint_test_settings): Add declaration.
13093 * maint.c (_initialize_maint_cmds): Add declaration.
13094 * mdebugread.c (_initialize_mdebugread): Add declaration.
13095 * memattr.c (_initialize_mem): Add declaration.
13096 * mep-tdep.c (_initialize_mep_tdep): Add declaration.
13097 * mi/mi-cmd-env.c (_initialize_mi_cmd_env): Add declaration.
13098 * mi/mi-cmds.c (_initialize_mi_cmds): Add declaration.
13099 * mi/mi-interp.c (_initialize_mi_interp): Add declaration.
13100 * mi/mi-main.c (_initialize_mi_main): Add declaration.
13101 * microblaze-linux-tdep.c (_initialize_microblaze_linux_tdep): Add declaration.
13102 * microblaze-tdep.c (_initialize_microblaze_tdep): Add declaration.
13103 * mips-fbsd-nat.c (_initialize_mips_fbsd_nat): Add declaration.
13104 * mips-fbsd-tdep.c (_initialize_mips_fbsd_tdep): Add declaration.
13105 * mips-linux-nat.c (_initialize_mips_linux_nat): Add declaration.
13106 * mips-linux-tdep.c (_initialize_mips_linux_tdep): Add declaration.
13107 * mips-nbsd-nat.c (_initialize_mipsnbsd_nat): Add declaration.
13108 * mips-nbsd-tdep.c (_initialize_mipsnbsd_tdep): Add declaration.
13109 * mips-sde-tdep.c (_initialize_mips_sde_tdep): Add declaration.
13110 * mips-tdep.c (_initialize_mips_tdep): Add declaration.
13111 * mips64-obsd-nat.c (_initialize_mips64obsd_nat): Add declaration.
13112 * mips64-obsd-tdep.c (_initialize_mips64obsd_tdep): Add declaration.
13113 * mipsread.c (_initialize_mipsread): Add declaration.
13114 * mn10300-linux-tdep.c (_initialize_mn10300_linux_tdep): Add declaration.
13115 * mn10300-tdep.c (_initialize_mn10300_tdep): Add declaration.
13116 * moxie-tdep.c (_initialize_moxie_tdep): Add declaration.
13117 * msp430-tdep.c (_initialize_msp430_tdep): Add declaration.
13118 * nds32-tdep.c (_initialize_nds32_tdep): Add declaration.
13119 * nios2-linux-tdep.c (_initialize_nios2_linux_tdep): Add declaration.
13120 * nios2-tdep.c (_initialize_nios2_tdep): Add declaration.
13121 * nto-procfs.c (_initialize_procfs): Add declaration.
13122 * objc-lang.c (_initialize_objc_language): Add declaration.
13123 * observable.c (_initialize_observer): Add declaration.
13124 * opencl-lang.c (_initialize_opencl_language): Add declaration.
13125 * or1k-linux-tdep.c (_initialize_or1k_linux_tdep): Add declaration.
13126 * or1k-tdep.c (_initialize_or1k_tdep): Add declaration.
13127 * osabi.c (_initialize_gdb_osabi): Add declaration.
13128 * osdata.c (_initialize_osdata): Add declaration.
13129 * p-valprint.c (_initialize_pascal_valprint): Add declaration.
13130 * parse.c (_initialize_parse): Add declaration.
13131 * ppc-fbsd-nat.c (_initialize_ppcfbsd_nat): Add declaration.
13132 * ppc-fbsd-tdep.c (_initialize_ppcfbsd_tdep): Add declaration.
13133 * ppc-linux-nat.c (_initialize_ppc_linux_nat): Add declaration.
13134 * ppc-linux-tdep.c (_initialize_ppc_linux_tdep): Add declaration.
13135 * ppc-nbsd-nat.c (_initialize_ppcnbsd_nat): Add declaration.
13136 * ppc-nbsd-tdep.c (_initialize_ppcnbsd_tdep): Add declaration.
13137 * ppc-obsd-nat.c (_initialize_ppcobsd_nat): Add declaration.
13138 * ppc-obsd-tdep.c (_initialize_ppcobsd_tdep): Add declaration.
13139 * printcmd.c (_initialize_printcmd): Add declaration.
13140 * probe.c (_initialize_probe): Add declaration.
13141 * proc-api.c (_initialize_proc_api): Add declaration.
13142 * proc-events.c (_initialize_proc_events): Add declaration.
13143 * proc-service.c (_initialize_proc_service): Add declaration.
13144 * procfs.c (_initialize_procfs): Add declaration.
13145 * producer.c (_initialize_producer): Add declaration.
13146 * psymtab.c (_initialize_psymtab): Add declaration.
13147 * python/python.c (_initialize_python): Add declaration.
13148 * ravenscar-thread.c (_initialize_ravenscar): Add declaration.
13149 * record-btrace.c (_initialize_record_btrace): Add declaration.
13150 * record-full.c (_initialize_record_full): Add declaration.
13151 * record.c (_initialize_record): Add declaration.
13152 * regcache-dump.c (_initialize_regcache_dump): Add declaration.
13153 * regcache.c (_initialize_regcache): Add declaration.
13154 * reggroups.c (_initialize_reggroup): Add declaration.
13155 * remote-notif.c (_initialize_notif): Add declaration.
13156 * remote-sim.c (_initialize_remote_sim): Add declaration.
13157 * remote.c (_initialize_remote): Add declaration.
13158 * reverse.c (_initialize_reverse): Add declaration.
13159 * riscv-fbsd-nat.c (_initialize_riscv_fbsd_nat): Add declaration.
13160 * riscv-fbsd-tdep.c (_initialize_riscv_fbsd_tdep): Add declaration.
13161 * riscv-linux-nat.c (_initialize_riscv_linux_nat): Add declaration.
13162 * riscv-linux-tdep.c (_initialize_riscv_linux_tdep): Add declaration.
13163 * riscv-tdep.c (_initialize_riscv_tdep): Add declaration.
13164 * rl78-tdep.c (_initialize_rl78_tdep): Add declaration.
13165 * rs6000-aix-tdep.c (_initialize_rs6000_aix_tdep): Add declaration.
13166 * rs6000-lynx178-tdep.c (_initialize_rs6000_lynx178_tdep):
13167 Add declaration.
13168 * rs6000-nat.c (_initialize_rs6000_nat): Add declaration.
13169 * rs6000-tdep.c (_initialize_rs6000_tdep): Add declaration.
13170 * run-on-main-thread.c (_initialize_run_on_main_thread): Add declaration.
13171 * rust-exp.y (_initialize_rust_exp): Add declaration.
13172 * rx-tdep.c (_initialize_rx_tdep): Add declaration.
13173 * s12z-tdep.c (_initialize_s12z_tdep): Add declaration.
13174 * s390-linux-nat.c (_initialize_s390_nat): Add declaration.
13175 * s390-linux-tdep.c (_initialize_s390_linux_tdep): Add declaration.
13176 * s390-tdep.c (_initialize_s390_tdep): Add declaration.
13177 * score-tdep.c (_initialize_score_tdep): Add declaration.
13178 * ser-go32.c (_initialize_ser_dos): Add declaration.
13179 * ser-mingw.c (_initialize_ser_windows): Add declaration.
13180 * ser-pipe.c (_initialize_ser_pipe): Add declaration.
13181 * ser-tcp.c (_initialize_ser_tcp): Add declaration.
13182 * ser-uds.c (_initialize_ser_socket): Add declaration.
13183 * ser-unix.c (_initialize_ser_hardwire): Add declaration.
13184 * serial.c (_initialize_serial): Add declaration.
13185 * sh-linux-tdep.c (_initialize_sh_linux_tdep): Add declaration.
13186 * sh-nbsd-nat.c (_initialize_shnbsd_nat): Add declaration.
13187 * sh-nbsd-tdep.c (_initialize_shnbsd_tdep): Add declaration.
13188 * sh-tdep.c (_initialize_sh_tdep): Add declaration.
13189 * skip.c (_initialize_step_skip): Add declaration.
13190 * sol-thread.c (_initialize_sol_thread): Add declaration.
13191 * solib-aix.c (_initialize_solib_aix): Add declaration.
13192 * solib-darwin.c (_initialize_darwin_solib): Add declaration.
13193 * solib-dsbt.c (_initialize_dsbt_solib): Add declaration.
13194 * solib-frv.c (_initialize_frv_solib): Add declaration.
13195 * solib-svr4.c (_initialize_svr4_solib): Add declaration.
13196 * solib-target.c (_initialize_solib_target): Add declaration.
13197 * solib.c (_initialize_solib): Add declaration.
13198 * source-cache.c (_initialize_source_cache): Add declaration.
13199 * source.c (_initialize_source): Add declaration.
13200 * sparc-linux-nat.c (_initialize_sparc_linux_nat): Add declaration.
13201 * sparc-linux-tdep.c (_initialize_sparc_linux_tdep): Add declaration.
13202 * sparc-nat.c (_initialize_sparc_nat): Add declaration.
13203 * sparc-nbsd-nat.c (_initialize_sparcnbsd_nat): Add declaration.
13204 * sparc-nbsd-tdep.c (_initialize_sparcnbsd_tdep): Add declaration.
13205 * sparc-obsd-tdep.c (_initialize_sparc32obsd_tdep): Add declaration.
13206 * sparc-sol2-tdep.c (_initialize_sparc_sol2_tdep): Add declaration.
13207 * sparc-tdep.c (_initialize_sparc_tdep): Add declaration.
13208 * sparc64-fbsd-nat.c (_initialize_sparc64fbsd_nat): Add declaration.
13209 * sparc64-fbsd-tdep.c (_initialize_sparc64fbsd_tdep): Add declaration.
13210 * sparc64-linux-nat.c (_initialize_sparc64_linux_nat): Add declaration.
13211 * sparc64-linux-tdep.c (_initialize_sparc64_linux_tdep): Add declaration.
13212 * sparc64-nat.c (_initialize_sparc64_nat): Add declaration.
13213 * sparc64-nbsd-nat.c (_initialize_sparc64nbsd_nat): Add declaration.
13214 * sparc64-nbsd-tdep.c (_initialize_sparc64nbsd_tdep): Add declaration.
13215 * sparc64-obsd-nat.c (_initialize_sparc64obsd_nat): Add declaration.
13216 * sparc64-obsd-tdep.c (_initialize_sparc64obsd_tdep): Add declaration.
13217 * sparc64-sol2-tdep.c (_initialize_sparc64_sol2_tdep): Add declaration.
13218 * sparc64-tdep.c (_initialize_sparc64_adi_tdep): Add declaration.
13219 * stabsread.c (_initialize_stabsread): Add declaration.
13220 * stack.c (_initialize_stack): Add declaration.
13221 * stap-probe.c (_initialize_stap_probe): Add declaration.
13222 * std-regs.c (_initialize_frame_reg): Add declaration.
13223 * symfile-debug.c (_initialize_symfile_debug): Add declaration.
13224 * symfile-mem.c (_initialize_symfile_mem): Add declaration.
13225 * symfile.c (_initialize_symfile): Add declaration.
13226 * symmisc.c (_initialize_symmisc): Add declaration.
13227 * symtab.c (_initialize_symtab): Add declaration.
13228 * target.c (_initialize_target): Add declaration.
13229 * target-connection.c (_initialize_target_connection): Add
13230 declaration.
13231 * target-dcache.c (_initialize_target_dcache): Add declaration.
13232 * target-descriptions.c (_initialize_target_descriptions): Add declaration.
13233 * thread.c (_initialize_thread): Add declaration.
13234 * tic6x-linux-tdep.c (_initialize_tic6x_linux_tdep): Add declaration.
13235 * tic6x-tdep.c (_initialize_tic6x_tdep): Add declaration.
13236 * tilegx-linux-nat.c (_initialize_tile_linux_nat): Add declaration.
13237 * tilegx-linux-tdep.c (_initialize_tilegx_linux_tdep): Add declaration.
13238 * tilegx-tdep.c (_initialize_tilegx_tdep): Add declaration.
13239 * tracectf.c (_initialize_ctf): Add declaration.
13240 * tracefile-tfile.c (_initialize_tracefile_tfile): Add declaration.
13241 * tracefile.c (_initialize_tracefile): Add declaration.
13242 * tracepoint.c (_initialize_tracepoint): Add declaration.
13243 * tui/tui-hooks.c (_initialize_tui_hooks): Add declaration.
13244 * tui/tui-interp.c (_initialize_tui_interp): Add declaration.
13245 * tui/tui-layout.c (_initialize_tui_layout): Add declaration.
13246 * tui/tui-regs.c (_initialize_tui_regs): Add declaration.
13247 * tui/tui-stack.c (_initialize_tui_stack): Add declaration.
13248 * tui/tui-win.c (_initialize_tui_win): Add declaration.
13249 * tui/tui.c (_initialize_tui): Add declaration.
13250 * typeprint.c (_initialize_typeprint): Add declaration.
13251 * ui-style.c (_initialize_ui_style): Add declaration.
13252 * unittests/array-view-selftests.c (_initialize_array_view_selftests): Add declaration.
13253 * unittests/child-path-selftests.c (_initialize_child_path_selftests): Add declaration.
13254 * unittests/cli-utils-selftests.c (_initialize_cli_utils_selftests): Add declaration.
13255 * unittests/common-utils-selftests.c (_initialize_common_utils_selftests): Add declaration.
13256 * unittests/copy_bitwise-selftests.c (_initialize_copy_bitwise_utils_selftests): Add declaration.
13257 * unittests/environ-selftests.c (_initialize_environ_selftests): Add declaration.
13258 * unittests/filtered_iterator-selftests.c
13259 (_initialize_filtered_iterator_selftests): Add declaration.
13260 * unittests/format_pieces-selftests.c (_initialize_format_pieces_selftests): Add declaration.
13261 * unittests/function-view-selftests.c (_initialize_function_view_selftests): Add declaration.
13262 * unittests/help-doc-selftests.c (_initialize_help_doc_selftests): Add declaration.
13263 * unittests/lookup_name_info-selftests.c (_initialize_lookup_name_info_selftests): Add declaration.
13264 * unittests/main-thread-selftests.c
13265 (_initialize_main_thread_selftests): Add declaration.
13266 * unittests/memory-map-selftests.c (_initialize_memory_map_selftests): Add declaration.
13267 * unittests/memrange-selftests.c (_initialize_memrange_selftests): Add declaration.
13268 * unittests/mkdir-recursive-selftests.c (_initialize_mkdir_recursive_selftests): Add declaration.
13269 * unittests/observable-selftests.c (_initialize_observer_selftest): Add declaration.
13270 * unittests/offset-type-selftests.c (_initialize_offset_type_selftests): Add declaration.
13271 * unittests/optional-selftests.c (_initialize_optional_selftests): Add declaration.
13272 * unittests/parse-connection-spec-selftests.c (_initialize_parse_connection_spec_selftests): Add declaration.
13273 * unittests/rsp-low-selftests.c (_initialize_rsp_low_selftests): Add declaration.
13274 * unittests/scoped_fd-selftests.c (_initialize_scoped_fd_selftests): Add declaration.
13275 * unittests/scoped_mmap-selftests.c (_initialize_scoped_mmap_selftests): Add declaration.
13276 * unittests/scoped_restore-selftests.c (_initialize_scoped_restore_selftests): Add declaration.
13277 * unittests/string_view-selftests.c (_initialize_string_view_selftests): Add declaration.
13278 * unittests/style-selftests.c (_initialize_style_selftest): Add declaration.
13279 * unittests/tracepoint-selftests.c (_initialize_tracepoint_selftests): Add declaration.
13280 * unittests/tui-selftests.c (_initialize_tui_selftest): Add
13281 declaration.
13282 * unittests/unpack-selftests.c (_initialize_unpack_selftests): Add declaration.
13283 * unittests/utils-selftests.c (_initialize_utils_selftests): Add declaration.
13284 * unittests/vec-utils-selftests.c (_initialize_vec_utils_selftests): Add declaration.
13285 * unittests/xml-utils-selftests.c (_initialize_xml_utils): Add declaration.
13286 * user-regs.c (_initialize_user_regs): Add declaration.
13287 * utils.c (_initialize_utils): Add declaration.
13288 * v850-tdep.c (_initialize_v850_tdep): Add declaration.
13289 * valops.c (_initialize_valops): Add declaration.
13290 * valprint.c (_initialize_valprint): Add declaration.
13291 * value.c (_initialize_values): Add declaration.
13292 * varobj.c (_initialize_varobj): Add declaration.
13293 * vax-bsd-nat.c (_initialize_vaxbsd_nat): Add declaration.
13294 * vax-nbsd-tdep.c (_initialize_vaxnbsd_tdep): Add declaration.
13295 * vax-tdep.c (_initialize_vax_tdep): Add declaration.
13296 * windows-nat.c (_initialize_windows_nat): Add declaration.
13297 (_initialize_check_for_gdb_ini): Add declaration.
13298 (_initialize_loadable): Add declaration.
13299 * windows-tdep.c (_initialize_windows_tdep): Add declaration.
13300 * x86-bsd-nat.c (_initialize_x86_bsd_nat): Add declaration.
13301 * x86-linux-nat.c (_initialize_x86_linux_nat): Add declaration.
13302 * xcoffread.c (_initialize_xcoffread): Add declaration.
13303 * xml-support.c (_initialize_xml_support): Add declaration.
13304 * xstormy16-tdep.c (_initialize_xstormy16_tdep): Add declaration.
13305 * xtensa-linux-nat.c (_initialize_xtensa_linux_nat): Add declaration.
13306 * xtensa-linux-tdep.c (_initialize_xtensa_linux_tdep): Add declaration.
13307 * xtensa-tdep.c (_initialize_xtensa_tdep): Add declaration.
13308
e2de1eec
SM
133092020-01-13 Simon Marchi <simon.marchi@polymtl.ca>
13310
13311 * regformats/regdat.sh: Generate declaration for init function.
13312
e0037b4c
SM
133132020-01-13 Simon Marchi <simon.marchi@polymtl.ca>
13314
13315 * remote-sim.c (next_pid, INITIAL_PID, sim_inferior_data): Move
13316 up.
13317 (gdbsim_target) <get_inferior_data_by_ptid, resume_one_inferior,
13318 close_one_inferior>: New methods.
13319 (get_sim_inferior_data_by_ptid): Move to gdbsim_target,
13320 pass down target to find_inferior_pid.
13321 (gdbsim_target::fetch_registers, gdbsim_target::store_registers):
13322 Pass down target to find_inferior_ptid.
13323 (gdbsim_target::create_inferior): Pass down target to
13324 add_thread_silent.
13325 (gdbsim_close_inferior): Move to gdbsim_close_inferior, pass
13326 target down to find_inferior_ptid and switch_to_thread.
13327 (gdbsim_target::close): Update to call close_one_inferior.
13328 (struct resume_data): Remove.
13329 (gdbsim_resume_inferior): Move to gdbsim_target. Take arguments
13330 directly, rather than through a void pointer.
13331 (gdbsim_target::resume): Update to call resume_one_inferior.
13332
58920b5b
SM
133332020-01-12 Simon Marchi <simon.marchi@polymtl.ca>
13334
13335 * gdbsupport/gdb_wait.c: Include gdb_wait.h.
13336
4ec89149
PA
133372020-01-12 Pedro Alves <palves@redhat.com>
13338
13339 * bsd-kvm.c (bsd_kvm_target::close): Call exit_inferior_silent
13340 directly for the current inferior instead of
13341 discard_all_inferiors.
13342 (discard_all_inferiors): Delete.
13343
7c392d1d
TT
133442020-01-11 Tom Tromey <tom@tromey.com>
13345
13346 * tui/tui-wingeneral.c (box_win): Check cli_styling.
13347 * tui/tui-winsource.c (tui_source_window_base::refill): Use
13348 deprecated_safe_get_selected_frame.
13349
d9ebdab7
TBA
133502020-01-10 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
13351
13352 * inferior.c (print_inferior): Switch inferior before printing it.
13353
f3c469b9
PA
133542020-01-10 Aleksandar Paunovic <aleksandar.paunovic@intel.com>
13355 Pedro Alves <palves@redhat.com>
13356
13357 * progspace-and-thread.c (switch_to_program_space_and_thread):
13358 Assert there's an inferior for PSPACE. Use
13359 switch_to_inferior_no_thread to switch the inferior too.
13360 * progspace.c (program_space::~program_space): Call
13361 clear_symtab_users here, with SYMFILE_DEFER_BP_RESET.
13362 (program_space::free_all_objfiles): Don't call clear_symtab_users
13363 here.
13364 * symfile.c (symbol_file_clear): Call clear_symtab_users here.
13365
65c574f6
PA
133662020-01-10 Pedro Alves <palves@redhat.com>
13367
13368 * NEWS: Mention multi-target debugging, "info connections", and
13369 "add-inferior -no-connection".
13370
2f4fcf00
PA
133712020-01-10 Pedro Alves <palves@redhat.com>
13372
13373 * infrun.c: Include "target-connection.h".
13374 (check_multi_target_resumption): New.
13375 (proceed): Call it.
13376 * target-connection.c (make_target_connection_string): Make
13377 extern.
13378 * target-connection.h (make_target_connection_string): Declare.
13379
121b3efd
PA
133802020-01-10 Pedro Alves <palves@redhat.com>
13381
13382 * Makefile.in (COMMON_SFILES): Add target-connection.c.
13383 * inferior.c (uiout_field_connection): New function.
13384 (print_inferior): Add new "connection-id" column.
13385 (add_inferior_command): Show connection number/string of added
13386 inferior.
13387 * process-stratum-target.h
13388 (process_stratum_target::connection_string): New virtual method.
13389 (process_stratum_target::connection_number): New field.
13390 * remote.c (remote_target::connection_string): New override.
13391 * target-connection.c: New file.
13392 * target-connection.h: New file.
13393 * target.c (decref_target): Remove process_stratum targets from
13394 the connection list.
13395 (target_stack::push): Add process_stratum targets to the
13396 connection list.
13397
4f837581
PA
133982020-01-10 Pedro Alves <palves@redhat.com>
13399
13400 Revert:
13401 2016-04-12 Pedro Alves <palves@redhat.com>
13402 * serial.c (serial_open, serial_fdopen_ops, do_serial_close):
13403 Remove references to name.
13404 * serial.h (struct serial) <name>: Delete.
13405
f4ec508e
PA
134062020-01-10 Pedro Alves <palves@redhat.com>
13407
13408 * gdbarch-selftests.c (register_to_value_test): Remove "target
13409 already pushed" check.
13410
5b6d1e4f
PA
134112020-01-10 Pedro Alves <palves@redhat.com>
13412 John Baldwin <jhb@FreeBSD.org>
13413
13414 * aarch64-linux-nat.c
13415 (aarch64_linux_nat_target::thread_architecture): Adjust.
13416 * ada-tasks.c (print_ada_task_info): Adjust find_thread_ptid call.
13417 (task_command_1): Likewise.
13418 * aix-thread.c (sync_threadlists, aix_thread_target::resume)
13419 (aix_thread_target::wait, aix_thread_target::fetch_registers)
13420 (aix_thread_target::store_registers)
13421 (aix_thread_target::thread_alive): Adjust.
13422 * amd64-fbsd-tdep.c: Include "inferior.h".
13423 (amd64fbsd_get_thread_local_address): Pass down target.
13424 * amd64-linux-nat.c (ps_get_thread_area): Use ps_prochandle
13425 thread's gdbarch instead of target_gdbarch.
13426 * break-catch-sig.c (signal_catchpoint_print_it): Adjust call to
13427 get_last_target_status.
13428 * break-catch-syscall.c (print_it_catch_syscall): Likewise.
13429 * breakpoint.c (breakpoints_should_be_inserted_now): Consider all
13430 inferiors.
13431 (update_inserted_breakpoint_locations): Skip if inferiors with no
13432 execution.
13433 (update_global_location_list): When handling moribund locations,
13434 find representative inferior for location's pspace, and use thread
13435 count of its process_stratum target.
13436 * bsd-kvm.c (bsd_kvm_target_open): Pass target down.
13437 * bsd-uthread.c (bsd_uthread_target::wait): Use
13438 as_process_stratum_target and adjust thread_change_ptid and
13439 add_thread calls.
13440 (bsd_uthread_target::update_thread_list): Use
13441 as_process_stratum_target and adjust find_thread_ptid,
13442 thread_change_ptid and add_thread calls.
13443 * btrace.c (maint_btrace_packet_history_cmd): Adjust
13444 find_thread_ptid call.
13445 * corelow.c (add_to_thread_list): Adjust add_thread call.
13446 (core_target_open): Adjust add_thread_silent and thread_count
13447 calls.
13448 (core_target::pid_to_str): Adjust find_inferior_ptid call.
13449 * ctf.c (ctf_target_open): Adjust add_thread_silent call.
13450 * event-top.c (async_disconnect): Pop targets from all inferiors.
13451 * exec.c (add_target_sections): Push exec target on all inferiors
13452 sharing the program space.
13453 (remove_target_sections): Remove the exec target from all
13454 inferiors sharing the program space.
13455 (exec_on_vfork): New.
13456 * exec.h (exec_on_vfork): Declare.
13457 * fbsd-nat.c (fbsd_add_threads): Add fbsd_nat_target parameter.
13458 Pass it down.
13459 (fbsd_nat_target::update_thread_list): Adjust.
13460 (fbsd_nat_target::resume): Adjust.
13461 (fbsd_handle_debug_trap): Add fbsd_nat_target parameter. Pass it
13462 down.
13463 (fbsd_nat_target::wait, fbsd_nat_target::post_attach): Adjust.
13464 * fbsd-tdep.c (fbsd_corefile_thread): Adjust
13465 get_thread_arch_regcache call.
13466 * fork-child.c (gdb_startup_inferior): Pass target down to
13467 startup_inferior and set_executing.
13468 * gdbthread.h (struct process_stratum_target): Forward declare.
13469 (add_thread, add_thread_silent, add_thread_with_info)
13470 (in_thread_list): Add process_stratum_target parameter.
13471 (find_thread_ptid(inferior*, ptid_t)): New overload.
13472 (find_thread_ptid, thread_change_ptid): Add process_stratum_target
13473 parameter.
13474 (all_threads()): Delete overload.
13475 (all_threads, all_non_exited_threads): Add process_stratum_target
13476 parameter.
13477 (all_threads_safe): Use brace initialization.
13478 (thread_count): Add process_stratum_target parameter.
13479 (set_resumed, set_running, set_stop_requested, set_executing)
13480 (threads_are_executing, finish_thread_state): Add
13481 process_stratum_target parameter.
13482 (switch_to_thread): Use is_current_thread.
13483 * i386-fbsd-tdep.c: Include "inferior.h".
13484 (i386fbsd_get_thread_local_address): Pass down target.
13485 * i386-linux-nat.c (i386_linux_nat_target::low_resume): Adjust.
13486 * inf-child.c (inf_child_target::maybe_unpush_target): Remove
13487 have_inferiors check.
13488 * inf-ptrace.c (inf_ptrace_target::create_inferior)
13489 (inf_ptrace_target::attach): Adjust.
13490 * infcall.c (run_inferior_call): Adjust.
13491 * infcmd.c (run_command_1): Pass target to
13492 scoped_finish_thread_state.
13493 (proceed_thread_callback): Skip inferiors with no execution.
13494 (continue_command): Rename 'all_threads' local to avoid hiding
13495 'all_threads' function. Adjust get_last_target_status call.
13496 (prepare_one_step): Adjust set_running call.
13497 (signal_command): Use user_visible_resume_target. Compare thread
13498 pointers instead of inferior_ptid.
13499 (info_program_command): Adjust to pass down target.
13500 (attach_command): Mark target's 'thread_executing' flag.
13501 (stop_current_target_threads_ns): New, factored out from ...
13502 (interrupt_target_1): ... this. Switch inferior before making
13503 target calls.
13504 * inferior-iter.h
13505 (struct all_inferiors_iterator, struct all_inferiors_range)
13506 (struct all_inferiors_safe_range)
13507 (struct all_non_exited_inferiors_range): Filter on
13508 process_stratum_target too. Remove explicit.
13509 * inferior.c (inferior::inferior): Push dummy target on target
13510 stack.
13511 (find_inferior_pid, find_inferior_ptid, number_of_live_inferiors):
13512 Add process_stratum_target parameter, and pass it down.
13513 (have_live_inferiors): Adjust.
13514 (switch_to_inferior_and_push_target): New.
13515 (add_inferior_command, clone_inferior_command): Handle
13516 "-no-connection" parameter. Use
13517 switch_to_inferior_and_push_target.
13518 (_initialize_inferior): Mention "-no-connection" option in
13519 the help of "add-inferior" and "clone-inferior" commands.
13520 * inferior.h: Include "process-stratum-target.h".
13521 (interrupt_target_1): Use bool.
13522 (struct inferior) <push_target, unpush_target, target_is_pushed,
13523 find_target_beneath, top_target, process_target, target_at,
13524 m_stack>: New.
13525 (discard_all_inferiors): Delete.
13526 (find_inferior_pid, find_inferior_ptid, number_of_live_inferiors)
13527 (all_inferiors, all_non_exited_inferiors): Add
13528 process_stratum_target parameter.
13529 * infrun.c: Include "gdb_select.h" and <unordered_map>.
13530 (target_last_proc_target): New global.
13531 (follow_fork_inferior): Push target on new inferior. Pass target
13532 to add_thread_silent. Call exec_on_vfork. Handle target's
13533 reference count.
13534 (follow_fork): Adjust get_last_target_status call. Also consider
13535 target.
13536 (follow_exec): Push target on new inferior.
13537 (struct execution_control_state) <target>: New field.
13538 (user_visible_resume_target): New.
13539 (do_target_resume): Call target_async.
13540 (resume_1): Set target's threads_executing flag. Consider resume
13541 target.
13542 (commit_resume_all_targets): New.
13543 (proceed): Also consider resume target. Skip threads of inferiors
13544 with no execution. Commit resumtion in all targets.
13545 (start_remote): Pass current inferior to wait_for_inferior.
13546 (infrun_thread_stop_requested): Consider target as well. Pass
13547 thread_info pointer to clear_inline_frame_state instead of ptid.
13548 (infrun_thread_thread_exit): Consider target as well.
13549 (random_pending_event_thread): New inferior parameter. Use it.
13550 (do_target_wait): Rename to ...
13551 (do_target_wait_1): ... this. Add inferior parameter, and pass it
13552 down.
13553 (threads_are_resumed_pending_p, do_target_wait): New.
13554 (prepare_for_detach): Adjust calls.
13555 (wait_for_inferior): New inferior parameter. Handle it. Use
13556 do_target_wait_1 instead of do_target_wait.
13557 (fetch_inferior_event): Adjust. Switch to representative
13558 inferior. Pass target down.
13559 (set_last_target_status): Add process_stratum_target parameter.
13560 Save target in global.
13561 (get_last_target_status): Add process_stratum_target parameter and
13562 handle it.
13563 (nullify_last_target_wait_ptid): Clear 'target_last_proc_target'.
13564 (context_switch): Check inferior_ptid == null_ptid before calling
13565 inferior_thread().
13566 (get_inferior_stop_soon): Pass down target.
13567 (wait_one): Rename to ...
13568 (poll_one_curr_target): ... this.
13569 (struct wait_one_event): New.
13570 (wait_one): New.
13571 (stop_all_threads): Adjust.
13572 (handle_no_resumed, handle_inferior_event): Adjust to consider the
13573 event's target.
13574 (switch_back_to_stepped_thread): Also consider target.
13575 (print_stop_event): Update.
13576 (normal_stop): Update. Also consider the resume target.
13577 * infrun.h (wait_for_inferior): Remove declaration.
13578 (user_visible_resume_target): New declaration.
13579 (get_last_target_status, set_last_target_status): New
13580 process_stratum_target parameter.
13581 * inline-frame.c (clear_inline_frame_state(ptid_t)): Add
13582 process_stratum_target parameter, and use it.
13583 (clear_inline_frame_state (thread_info*)): New.
13584 * inline-frame.c (clear_inline_frame_state(ptid_t)): Add
13585 process_stratum_target parameter.
13586 (clear_inline_frame_state (thread_info*)): Declare.
13587 * linux-fork.c (delete_checkpoint_command): Pass target down to
13588 find_thread_ptid.
13589 (checkpoint_command): Adjust.
13590 * linux-nat.c (linux_nat_target::follow_fork): Switch to thread
13591 instead of just tweaking inferior_ptid.
13592 (linux_nat_switch_fork): Pass target down to thread_change_ptid.
13593 (exit_lwp): Pass target down to find_thread_ptid.
13594 (attach_proc_task_lwp_callback): Pass target down to
13595 add_thread/set_running/set_executing.
13596 (linux_nat_target::attach): Pass target down to
13597 thread_change_ptid.
13598 (get_detach_signal): Pass target down to find_thread_ptid.
13599 Consider last target status's target.
13600 (linux_resume_one_lwp_throw, resume_lwp)
13601 (linux_handle_syscall_trap, linux_handle_extended_wait, wait_lwp)
13602 (stop_wait_callback, save_stop_reason, linux_nat_filter_event)
13603 (linux_nat_wait_1, resume_stopped_resumed_lwps): Pass target down.
13604 (linux_nat_target::async_wait_fd): New.
13605 (linux_nat_stop_lwp, linux_nat_target::thread_address_space): Pass
13606 target down.
13607 * linux-nat.h (linux_nat_target::async_wait_fd): Declare.
13608 * linux-tdep.c (get_thread_arch_regcache): Pass target down.
13609 * linux-thread-db.c (struct thread_db_info::process_target): New
13610 field.
13611 (add_thread_db_info): Save target.
13612 (get_thread_db_info): New process_stratum_target parameter. Also
13613 match target.
13614 (delete_thread_db_info): New process_stratum_target parameter.
13615 Also match target.
13616 (thread_from_lwp): Adjust to pass down target.
13617 (thread_db_notice_clone): Pass down target.
13618 (check_thread_db_callback): Pass down target.
13619 (try_thread_db_load_1): Always push the thread_db target.
13620 (try_thread_db_load, record_thread): Pass target down.
13621 (thread_db_target::detach): Pass target down. Always unpush the
13622 thread_db target.
13623 (thread_db_target::wait, thread_db_target::mourn_inferior): Pass
13624 target down. Always unpush the thread_db target.
13625 (find_new_threads_callback, thread_db_find_new_threads_2)
13626 (thread_db_target::update_thread_list): Pass target down.
13627 (thread_db_target::pid_to_str): Pass current inferior down.
13628 (thread_db_target::get_thread_local_address): Pass target down.
13629 (thread_db_target::resume, maintenance_check_libthread_db): Pass
13630 target down.
13631 * nto-procfs.c (nto_procfs_target::update_thread_list): Adjust.
13632 * procfs.c (procfs_target::procfs_init_inferior): Declare.
13633 (proc_set_current_signal, do_attach, procfs_target::wait): Adjust.
13634 (procfs_init_inferior): Rename to ...
13635 (procfs_target::procfs_init_inferior): ... this and adjust.
13636 (procfs_target::create_inferior, procfs_notice_thread)
13637 (procfs_do_thread_registers): Adjust.
13638 * ppc-fbsd-tdep.c: Include "inferior.h".
13639 (ppcfbsd_get_thread_local_address): Pass down target.
13640 * proc-service.c (ps_xfer_memory): Switch current inferior and
13641 program space as well.
13642 (get_ps_regcache): Pass target down.
13643 * process-stratum-target.c
13644 (process_stratum_target::thread_address_space)
13645 (process_stratum_target::thread_architecture): Pass target down.
13646 * process-stratum-target.h
13647 (process_stratum_target::threads_executing): New field.
13648 (as_process_stratum_target): New.
13649 * ravenscar-thread.c
13650 (ravenscar_thread_target::update_inferior_ptid): Pass target down.
13651 (ravenscar_thread_target::wait, ravenscar_add_thread): Pass target
13652 down.
13653 * record-btrace.c (record_btrace_target::info_record): Adjust.
13654 (record_btrace_target::record_method)
13655 (record_btrace_target::record_is_replaying)
13656 (record_btrace_target::fetch_registers)
13657 (get_thread_current_frame_id, record_btrace_target::resume)
13658 (record_btrace_target::wait, record_btrace_target::stop): Pass
13659 target down.
13660 * record-full.c (record_full_wait_1): Switch to event thread.
13661 Pass target down.
13662 * regcache.c (regcache::regcache)
13663 (get_thread_arch_aspace_regcache, get_thread_arch_regcache): Add
13664 process_stratum_target parameter and handle it.
13665 (current_thread_target): New global.
13666 (get_thread_regcache): Add process_stratum_target parameter and
13667 handle it. Switch inferior before calling target method.
13668 (get_thread_regcache): Pass target down.
13669 (get_thread_regcache_for_ptid): Pass target down.
13670 (registers_changed_ptid): Add process_stratum_target parameter and
13671 handle it.
13672 (registers_changed_thread, registers_changed): Pass target down.
13673 (test_get_thread_arch_aspace_regcache): New.
13674 (current_regcache_test): Define a couple local test_target_ops
13675 instances and use them for testing.
13676 (readwrite_regcache): Pass process_stratum_target parameter.
13677 (cooked_read_test, cooked_write_test): Pass mock_target down.
13678 * regcache.h (get_thread_regcache, get_thread_arch_regcache)
13679 (get_thread_arch_aspace_regcache): Add process_stratum_target
13680 parameter.
13681 (regcache::target): New method.
13682 (regcache::regcache, regcache::get_thread_arch_aspace_regcache)
13683 (regcache::registers_changed_ptid): Add process_stratum_target
13684 parameter.
13685 (regcache::m_target): New field.
13686 (registers_changed_ptid): Add process_stratum_target parameter.
13687 * remote.c (remote_state::supports_vCont_probed): New field.
13688 (remote_target::async_wait_fd): New method.
13689 (remote_unpush_and_throw): Add remote_target parameter.
13690 (get_current_remote_target): Adjust.
13691 (remote_target::remote_add_inferior): Push target.
13692 (remote_target::remote_add_thread)
13693 (remote_target::remote_notice_new_inferior)
13694 (get_remote_thread_info): Pass target down.
13695 (remote_target::update_thread_list): Skip threads of inferiors
13696 bound to other targets. (remote_target::close): Don't discard
13697 inferiors. (remote_target::add_current_inferior_and_thread)
13698 (remote_target::process_initial_stop_replies)
13699 (remote_target::start_remote)
13700 (remote_target::remote_serial_quit_handler): Pass down target.
13701 (remote_target::remote_unpush_target): New remote_target
13702 parameter. Unpush the target from all inferiors.
13703 (remote_target::remote_unpush_and_throw): New remote_target
13704 parameter. Pass it down.
13705 (remote_target::open_1): Check whether the current inferior has
13706 execution instead of checking whether any inferior is live. Pass
13707 target down.
13708 (remote_target::remote_detach_1): Pass down target. Use
13709 remote_unpush_target.
13710 (extended_remote_target::attach): Pass down target.
13711 (remote_target::remote_vcont_probe): Set supports_vCont_probed.
13712 (remote_target::append_resumption): Pass down target.
13713 (remote_target::append_pending_thread_resumptions)
13714 (remote_target::remote_resume_with_hc, remote_target::resume)
13715 (remote_target::commit_resume): Pass down target.
13716 (remote_target::remote_stop_ns): Check supports_vCont_probed.
13717 (remote_target::interrupt_query)
13718 (remote_target::remove_new_fork_children)
13719 (remote_target::check_pending_events_prevent_wildcard_vcont)
13720 (remote_target::remote_parse_stop_reply)
13721 (remote_target::process_stop_reply): Pass down target.
13722 (first_remote_resumed_thread): New remote_target parameter. Pass
13723 it down.
13724 (remote_target::wait_as): Pass down target.
13725 (unpush_and_perror): New remote_target parameter. Pass it down.
13726 (remote_target::readchar, remote_target::remote_serial_write)
13727 (remote_target::getpkt_or_notif_sane_1)
13728 (remote_target::kill_new_fork_children, remote_target::kill): Pass
13729 down target.
13730 (remote_target::mourn_inferior): Pass down target. Use
13731 remote_unpush_target.
13732 (remote_target::core_of_thread)
13733 (remote_target::remote_btrace_maybe_reopen): Pass down target.
13734 (remote_target::pid_to_exec_file)
13735 (remote_target::thread_handle_to_thread_info): Pass down target.
13736 (remote_target::async_wait_fd): New.
13737 * riscv-fbsd-tdep.c: Include "inferior.h".
13738 (riscv_fbsd_get_thread_local_address): Pass down target.
13739 * sol2-tdep.c (sol2_core_pid_to_str): Pass down target.
13740 * sol-thread.c (sol_thread_target::wait, ps_lgetregs, ps_lsetregs)
13741 (ps_lgetfpregs, ps_lsetfpregs, sol_update_thread_list_callback):
13742 Adjust.
13743 * solib-spu.c (spu_skip_standalone_loader): Pass down target.
13744 * solib-svr4.c (enable_break): Pass down target.
13745 * spu-multiarch.c (parse_spufs_run): Pass down target.
13746 * spu-tdep.c (spu2ppu_sniffer): Pass down target.
13747 * target-delegates.c: Regenerate.
13748 * target.c (g_target_stack): Delete.
13749 (current_top_target): Return the current inferior's top target.
13750 (target_has_execution_1): Refer to the passed-in inferior's top
13751 target.
13752 (target_supports_terminal_ours): Check whether the initial
13753 inferior was already created.
13754 (decref_target): New.
13755 (target_stack::push): Incref/decref the target.
13756 (push_target, push_target, unpush_target): Adjust.
13757 (target_stack::unpush): Defref target.
13758 (target_is_pushed): Return bool. Adjust to refer to the current
13759 inferior's target stack.
13760 (dispose_inferior): Delete, and inline parts ...
13761 (target_preopen): ... here. Only dispose of the current inferior.
13762 (target_detach): Hold strong target reference while detaching.
13763 Pass target down.
13764 (target_thread_name): Add assertion.
13765 (target_resume): Pass down target.
13766 (target_ops::beneath, find_target_at): Adjust to refer to the
13767 current inferior's target stack.
13768 (get_dummy_target): New.
13769 (target_pass_ctrlc): Pass the Ctrl-C to the first inferior that
13770 has a thread running.
13771 (initialize_targets): Rename to ...
13772 (_initialize_target): ... this.
13773 * target.h: Include "gdbsupport/refcounted-object.h".
13774 (struct target_ops): Inherit refcounted_object.
13775 (target_ops::shortname, target_ops::longname): Make const.
13776 (target_ops::async_wait_fd): New method.
13777 (decref_target): Declare.
13778 (struct target_ops_ref_policy): New.
13779 (target_ops_ref): New typedef.
13780 (get_dummy_target): Declare function.
13781 (target_is_pushed): Return bool.
13782 * thread-iter.c (all_matching_threads_iterator::m_inf_matches)
13783 (all_matching_threads_iterator::all_matching_threads_iterator):
13784 Handle filter target.
13785 * thread-iter.h (struct all_matching_threads_iterator, struct
13786 all_matching_threads_range, class all_non_exited_threads_range):
13787 Filter by target too. Remove explicit.
13788 * thread.c (threads_executing): Delete.
13789 (inferior_thread): Pass down current inferior.
13790 (clear_thread_inferior_resources): Pass down thread pointer
13791 instead of ptid_t.
13792 (add_thread_silent, add_thread_with_info, add_thread): Add
13793 process_stratum_target parameter. Use it for thread and inferior
13794 searches.
13795 (is_current_thread): New.
13796 (thread_info::deletable): Use it.
13797 (find_thread_ptid, thread_count, in_thread_list)
13798 (thread_change_ptid, set_resumed, set_running): New
13799 process_stratum_target parameter. Pass it down.
13800 (set_executing): New process_stratum_target parameter. Pass it
13801 down. Adjust reference to 'threads_executing'.
13802 (threads_are_executing): New process_stratum_target parameter.
13803 Adjust reference to 'threads_executing'.
13804 (set_stop_requested, finish_thread_state): New
13805 process_stratum_target parameter. Pass it down.
13806 (switch_to_thread): Also match inferior.
13807 (switch_to_thread): New process_stratum_target parameter. Pass it
13808 down.
13809 (update_threads_executing): Reimplement.
13810 * top.c (quit_force): Pop targets from all inferior.
13811 (gdb_init): Don't call initialize_targets.
13812 * windows-nat.c (windows_nat_target) <get_windows_debug_event>:
13813 Declare.
13814 (windows_add_thread, windows_delete_thread): Adjust.
13815 (get_windows_debug_event): Rename to ...
13816 (windows_nat_target::get_windows_debug_event): ... this. Adjust.
13817 * tracefile-tfile.c (tfile_target_open): Pass down target.
13818 * gdbsupport/common-gdbthread.h (struct process_stratum_target):
13819 Forward declare.
13820 (switch_to_thread): Add process_stratum_target parameter.
13821 * mi/mi-interp.c (mi_on_resume_1): Add process_stratum_target
13822 parameter. Use it.
13823 (mi_on_resume): Pass target down.
13824 * nat/fork-inferior.c (startup_inferior): Add
13825 process_stratum_target parameter. Pass it down.
13826 * nat/fork-inferior.h (startup_inferior): Add
13827 process_stratum_target parameter.
13828 * python/py-threadevent.c (py_get_event_thread): Pass target down.
13829
75c6c844
PA
138302020-01-10 Pedro Alves <palves@redhat.com>
13831
13832 * remote.c (remote_target::start_remote): Don't set inferior_ptid
13833 directly. Instead find the first thread in the thread list and
13834 use switch_to_thread.
13835
78f2c40a
PA
138362020-01-10 Pedro Alves <palves@redhat.com>
13837
13838 * remote.c (remote_target::remote_add_inferior): Don't bind a
13839 process to the current inferior if the current inferior is already
13840 bound to a process.
13841
e7af6c70
TBA
138422020-01-10 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
13843 Pedro Alves <palves@redhat.com>
13844
13845 * remote.c (remote_target::remote_parse_stop_reply) <W/X packets>:
13846 If no process is specified, return null_ptid instead of
13847 inferior_ptid.
13848 (remote_target::wait_as): Handle TARGET_WAITKIND_EXITED /
13849 TARGET_WAITKIND_SIGNALLED with no pid.
13850
31ba933e
PA
138512020-01-10 Pedro Alves <palves@redhat.com>
13852
13853 * remote.c (first_remote_resumed_thread): New.
13854 (remote_target::wait_as): Use it as default event_ptid instead of
13855 inferior_ptid.
13856
735fc2ca
PA
138572020-01-10 Pedro Alves <palves@redhat.com>
13858
13859 * infrun.c (handle_no_resumed): Use all_non_exited_inferiors.
13860
c17e02e1
PA
138612020-01-10 Pedro Alves <palves@redhat.com>
13862
13863 * tracefile-tfile.c (tfile_target::close): Assert that trace_fd is
13864 not -1.
13865
ab1ddbcf
PA
138662020-01-10 Pedro Alves <palves@redhat.com>
13867
13868 * break-catch-sig.c (signal_catchpoint_print_it): Don't pass a
13869 ptid to get_last_target_status.
13870 * break-catch-syscall.c (print_it_catch_syscall): Don't pass a
13871 ptid to get_last_target_status.
13872 * infcmd.c (continue_command): Don't pass a target_waitstatus to
13873 get_last_target_status.
13874 (info_program_command): Don't pass a target_waitstatus to
13875 get_last_target_status.
13876 * infrun.c (init_wait_for_inferior): Use
13877 nullify_last_target_wait_ptid.
13878 (get_last_target_status): Handle nullptr arguments.
13879 (nullify_last_target_wait_ptid): Clear target_last_waitstatus.
13880 (print_stop_event): Don't pass a ptid to get_last_target_status.
13881 (normal_stop): Don't pass a ptid to get_last_target_status.
13882 * infrun.h (get_last_target_status, set_last_target_status): Move
13883 comments here and update.
13884 (nullify_last_target_wait_ptid): Declare.
13885 * linux-fork.c (fork_load_infrun_state): Remove local extern
13886 declaration of nullify_last_target_wait_ptid.
13887 * linux-nat.c (get_detach_signal): Don't pass a target_waitstatus
13888 to get_last_target_status.
13889
f3f8ece4
PA
138902020-01-10 Pedro Alves <palves@redhat.com>
13891
13892 * gdbthread.h (scoped_restore_current_thread)
13893 <dont_restore, restore, m_dont_restore>: Declare.
13894 * thread.c (thread_alive): Add assertion. Return bool.
13895 (switch_to_thread_if_alive): New.
13896 (prune_threads): Switch inferior/thread.
13897 (print_thread_info_1): Switch thread before calling target methods.
13898 (scoped_restore_current_thread::restore): New, factored out from
13899 ...
13900 (scoped_restore_current_thread::~scoped_restore_current_thread):
13901 ... this.
13902 (scoped_restore_current_thread::scoped_restore_current_thread):
13903 Add assertion.
13904 (thread_apply_all_command, thread_select): Use
13905 switch_to_thread_if_alive.
13906 * infrun.c (proceed, restart_threads, handle_signal_stop)
13907 (switch_back_to_stepped_thread): Switch current thread before
13908 calling target methods.
13909
db2d40f7
PA
139102020-01-10 Pedro Alves <palves@redhat.com>
13911
13912 * inferior.c (switch_to_inferior_no_thread): New function,
13913 factored out from ...
13914 (inferior_command): ... here.
13915 * inferior.h (switch_to_inferior_no_thread): Declare.
13916 * mi/mi-main.c (run_one_inferior): Use
13917 switch_to_inferior_no_thread.
13918
bd420a2d
PA
139192020-01-10 Pedro Alves <palves@redhat.com>
13920
13921 * infcmd.c (kill_command): Remove dead code.
13922
ddf5db90
PA
139232020-01-10 Pedro Alves <palves@redhat.com>
13924
13925 * remote.c (remote_target::mourn_inferior): No longer check
13926 whether the target is running.
13927
5018ce90
PA
139282020-01-10 Pedro Alves <palves@redhat.com>
13929
13930 * corelow.c (core_target::has_execution): Change parameter type to
13931 inferior pointer.
13932 * inferior.c (number_of_live_inferiors): Use
13933 inferior::has_execution instead of target_has_execution_1.
13934 * inferior.h (inferior::has_execution): New.
13935 * linux-thread-db.c (thread_db_target::update_thread_list): Use
13936 inferior::has_execution instead of target_has_execution_1.
13937 * process-stratum-target.c
13938 (process_stratum_target::has_execution): Change parameter type to
13939 inferior pointer. Check the inferior's PID instead of
13940 inferior_ptid.
13941 * process-stratum-target.h
13942 (process_stratum_target::has_execution): Change parameter type to
13943 inferior pointer.
13944 * record-full.c (record_full_core_target::has_execution): Change
13945 parameter type to inferior pointer.
13946 * target.c (target_has_execution_1): Change parameter type to
13947 inferior pointer.
13948 (target_has_execution_current): Adjust.
13949 * target.h (target_ops::has_execution): Change parameter type to
13950 inferior pointer.
13951 (target_has_execution_1): Change parameter type to inferior
13952 pointer. Change return type to bool.
13953 * tracefile.h (tracefile_target::has_execution): Change parameter
13954 type to inferior pointer.
13955
74375d18
PA
139562020-01-10 Pedro Alves <palves@redhat.com>
13957
13958 * exceptions.c (print_flush): Remove current_top_target() check.
13959
acdf84a6
PA
139602020-01-10 Pedro Alves <palves@redhat.com>
13961
13962 * remote.c (show_remote_exec_file): Show the current inferior's
13963 exec-file instead of the command variable's value.
13964
ec506636
PA
139652020-01-10 Pedro Alves <palves@redhat.com>
13966
13967 * record-full.c (record_full_resume_ptid): New global.
13968 (record_full_target::resume): Set it.
13969 (record_full_wait_1): Use record_full_resume_ptid instead of
13970 inferior_ptid.
13971
873657b9
PA
139722020-01-10 Pedro Alves <palves@redhat.com>
13973
13974 * gdbthread.h (scoped_restore_current_thread)
13975 <dont_restore, restore, m_dont_restore>: Declare.
13976 * thread.c (thread_alive): Add assertion. Return bool.
13977 (switch_to_thread_if_alive): New.
13978 (prune_threads): Switch inferior/thread.
13979 (print_thread_info_1): Switch thread before calling target methods.
13980 (scoped_restore_current_thread::restore): New, factored out from
13981 ...
13982 (scoped_restore_current_thread::~scoped_restore_current_thread):
13983 ... this.
13984 (scoped_restore_current_thread::scoped_restore_current_thread):
13985 Add assertion.
13986 (thread_apply_all_command, thread_select): Use
13987 switch_to_thread_if_alive.
13988
7f0ae84c
GB
139892020-01-10 George Barrett <bob@bob131.so>
13990
13991 * stap-probe.c (stap_modify_semaphore): Don't check for null
13992 semaphores.
13993 (stap_probe::set_semaphore, stap_probe::clear_semaphore): Check
13994 for null semaphores.
13995
f5a7c406
AB
139962020-01-09 Andrew Burgess <andrew.burgess@embecosm.com>
13997
13998 * tui/tui-source.c (tui_source_window::do_scroll_vertical): Update
13999 all source windows, and maintain horizontal scroll status while
14000 doing so.
14001
9ae6bf64
TT
140022020-01-09 Tom Tromey <tom@tromey.com>
14003
14004 PR tui/18932:
14005 * tui/tui-source.c (tui_source_window::do_scroll_vertical): Call
14006 update_source_window, not print_source_lines.
14007
b2efe70c
AB
140082020-01-09 Andrew Burgess <andrew.burgess@embecosm.com>
14009
14010 * tui/tui.c (tui_enable): Register tui hooks after calling
14011 tui_display_main.
14012
5f23a082
CB
140132020-01-09 Christian Biesinger <cbiesinger@google.com>
14014
14015 * gdbsupport/common-defs.h: Don't define _FORTIFY_SOURCE on MinGW.
14016
3061113b
SM
140172020-01-08 Simon Marchi <simon.marchi@efficios.com>
14018
14019 * thread.c (print_thread_info_1): Fix indentation.
14020
57d75002
CB
140212020-01-09 Christian Biesinger <cbiesinger@google.com>
14022
14023 * symtab.c (general_symbol_info::compute_and_set_names): Move the
14024 unique_xmalloc_ptr outside the if to always free the demangled name.
14025
6a053cb1
TT
140262020-01-08 Tom Tromey <tromey@adacore.com>
14027
14028 * xcoffread.c (enter_line_range, read_xcoff_symtab)
14029 (process_xcoff_symbol, xcoff_symfile_offsets): Update.
14030 * symtab.h (MSYMBOL_VALUE_ADDRESS): Update.
14031 (struct section_offsets, ANOFFSET, SIZEOF_N_SECTION_OFFSETS):
14032 Remove.
14033 (section_offsets): New typedef.
14034 * symtab.c (fixup_section, get_msymbol_address): Update.
14035 * symmisc.c (dump_msymbols): Update.
14036 * symfile.h (relative_addr_info_to_section_offsets)
14037 (symfile_map_offsets_to_segments): Update.
14038 * symfile.c (build_section_addr_info_from_objfile)
14039 (init_objfile_sect_indices): Update.
14040 (struct place_section_arg): Change type of "offsets".
14041 (place_section): Update.
14042 (relative_addr_info_to_section_offsets): Change type of
14043 "section_offsets". Remove "num_sections" parameter.
14044 (default_symfile_offsets, syms_from_objfile_1)
14045 (set_objfile_default_section_offset): Update.
14046 (reread_symbols): No need to preserve section offsets by hand.
14047 (symfile_map_offsets_to_segments): Change type of "offsets".
14048 * stap-probe.c (relocate_address): Update.
14049 * stabsread.h (process_one_symbol): Update.
14050 * solib-target.c (struct lm_info_target) <offsets>: Change type.
14051 (solib_target_relocate_section_addresses): Update.
14052 * solib-svr4.c (enable_break, svr4_relocate_main_executable):
14053 Update.
14054 * solib-frv.c (frv_relocate_main_executable): Update.
14055 * solib-dsbt.c (dsbt_relocate_main_executable): Update.
14056 * solib-aix.c (solib_aix_get_section_offsets): Change return
14057 type.
14058 (solib_aix_solib_create_inferior_hook): Update.
14059 * remote.c (remote_target::get_offsets): Update.
14060 * psymtab.c (find_pc_sect_psymtab): Update.
14061 * psympriv.h (struct partial_symbol) <address, text_low,
14062 text_high>: Update.
14063 * objfiles.h (obj_section_offset): Update.
14064 (struct objfile) <section_offsets>: Change type.
14065 <num_sections>: Remove.
14066 (objfile_relocate): Update.
14067 * objfiles.c (entry_point_address_query): Update
14068 (relocate_one_symbol): Change type of "section_offsets".
14069 (objfile_relocate1, objfile_relocate1): Change type of
14070 "new_offsets".
14071 (objfile_rebase1): Update.
14072 * mipsread.c (mipscoff_symfile_read): Update.
14073 (read_alphacoff_dynamic_symtab): Remove "section_offsets"
14074 parameter.
14075 * mdebugread.c (parse_symbol): Change type of "section_offsets".
14076 (parse_external, psymtab_to_symtab_1): Update.
14077 * machoread.c (macho_symfile_offsets): Update.
14078 * ia64-tdep.c (ia64_find_unwind_table): Update.
14079 * hppa-tdep.c (read_unwind_info): Update.
14080 * hppa-bsd-tdep.c (hppabsd_find_global_pointer): Update.
14081 * dwarf2read.c (create_addrmap_from_index)
14082 (create_addrmap_from_aranges, dw2_find_pc_sect_compunit_symtab)
14083 (process_psymtab_comp_unit_reader, add_partial_symbol)
14084 (add_partial_subprogram, process_full_comp_unit)
14085 (read_file_scope, read_func_scope, read_lexical_block_scope)
14086 (read_call_site_scope, dwarf2_rnglists_process)
14087 (dwarf2_ranges_process, dwarf2_ranges_read)
14088 (dwarf_decode_lines_1, var_decode_location, new_symbol)
14089 (dwarf2_fetch_die_loc_sect_off, dwarf2_per_cu_text_offset):
14090 Update.
14091 * dwarf2-frame.c (execute_cfa_program, dwarf2_frame_find_fde):
14092 Update.
14093 * dtrace-probe.c (dtrace_probe::get_relocated_address): Update.
14094 * dbxread.c (read_dbx_symtab, read_ofile_symtab): Update.
14095 (process_one_symbol): Change type of "section_offsets".
14096 * ctfread.c (get_objfile_text_range): Update.
14097 * coffread.c (coff_symtab_read, enter_linenos)
14098 (process_coff_symbol): Update.
14099 * coff-pe-read.c (add_pe_forwarded_sym): Update.
14100 * amd64-windows-tdep.c (amd64_windows_find_unwind_info): Update.
14101
456e800a
TT
141022020-01-08 Tom Tromey <tromey@adacore.com>
14103
14104 * dwarf2read.c (parse_macro_definition): Use std::string.
14105 (parse_macro_definition): Likewise.
14106
6dfa2fc2
TT
141072020-01-08 Tom Tromey <tromey@adacore.com>
14108
14109 * dwarf2read.c (abbrev_table_read_table): Use std::vector.
14110 (ATTR_ALLOC_CHUNK): Remove.
14111
421d1616
TT
141122020-01-08 Tom Tromey <tromey@adacore.com>
14113
14114 * dwarf2read.c (fixup_go_packaging): Use unique_xmalloc_ptr.
14115
43816ebc
TT
141162020-01-08 Tom Tromey <tromey@adacore.com>
14117
14118 * dwarf2read.c (add_partial_symbol): Use unique_xmalloc_ptr.
14119 (dwarf2_compute_name, open_dwo_file): Likewise.
14120 (process_enumeration_scope): Use std::vector.
14121 (guess_partial_die_structure_name): Use unique_xmalloc_ptr.
14122 (partial_die_info::fixup, dwarf2_start_subfile)
14123 (guess_full_die_structure_name, dwarf2_name): Likewise.
14124 (determine_prefix): Update.
14125 (guess_full_die_structure_name): Make return type const.
14126 (partial_die_full_name): Return unique_xmalloc_ptr.
14127 (DW_FIELD_ALLOC_CHUNK): Remove.
14128
4212d509
TT
141292020-01-07 Tom Tromey <tromey@adacore.com>
14130
14131 PR build/24937:
14132 * stap-probe.c (class stap_static_probe_ops): Add constructor.
14133
06a6207a
JT
141342020-01-02 Jon Turney <jon.turney@dronecode.org.uk>
14135
14136 * cli/cli-style.c: Set cli_styling to 'true' in the Cygwin build.
14137
153d79c4
AB
141382020-01-06 Andrew Burgess <andrew.burgess@embecosm.com>
14139
14140 * stack.c (print_frame_info): Move disassemble_next_line code
14141 inside source_print block.
14142
66182876
EZ
141432020-01-06 Eli Zaretskii <eliz@gnu.org>
14144
14145 * gdbsupport/gdb_wait.c: Include <signal.h> instead of
14146 gdb/signals.h, as we are now using native signal symbols.
14147
cbfa8581
SV
141482020-01-06 Shahab Vahedi <shahab@synopsys.com>
14149
14150 * tui/tui-disasm.c (tui_disasm_window::addr_is_displayed): Avoid
14151 overflow by an early check of content vs threshold.
aac66a4c 14152 * tui/tui-source.c (tui_source_window::line_is_displayed):
cbfa8581
SV
14153 Likewise.
14154
3f602821
EZ
141552020-01-06 Eli Zaretskii <eliz@gnu.org>
14156
14157 * NEWS: Mention the recent fix of $_exitsignal on MS-Windows.
14158
a08c904d
JT
141592020-01-02 Jon Turney <jon.turney@dronecode.org.uk>
14160
14161 * coff-pe-read.c (read_pe_exported_syms): Don't try to read the
14162 export table if no section contains it's RVA.
14163
89a65580
EZ
141642020-01-06 Eli Zaretskii <eliz@gnu.org>
14165
14166 * windows-tdep.c: Fix a typo in WINDOWS_SIGABRT.
14167
8b7fcda2
HD
141682020-01-06 Hannes Domani <ssbssa@yahoo.de>
14169
14170 * source.c (print_source_lines_base): Set last_line_listed.
14171
a61b4f69
SV
141722020-01-06 Shahab Vahedi <shahab@synopsys.com>
14173
14174 * tui/tui-disasm.c: Remove trailing spaces.
14175
559e7e50
EZ
141762020-01-06 Eli Zaretskii <eliz@gnu.org>
14177 Pedro Alves <palves@redhat.com>
14178
14179 * Makefile.in (COMMON_SFILES): Add gdbsupport/gdb_wait.c.
14180 * windows-tdep.c: New enumeration of WINDOWS_SIG* signals.
14181 (windows_gdb_signal_to_target): New function, uses the above
14182 enumeration to convert GDB internal signal codes to equivalent
14183 Windows codes.
14184 (windows_init_abi): Call set_gdbarch_gdb_signal_to_target.
14185 * windows-nat.c: Include "gdb_wait.h".
14186 (get_windows_debug_event): Extract the fatal exception from the
14187 exit status and convert to the equivalent Posix signal number.
14188 * cli/cli-cmds.c (exit_status_set_internal_vars): Account for the
14189 possibility that WTERMSIG returns GDB_SIGNAL_UNKNOWN.
14190 * gdbsupport/gdb_wait.c: New file, implements
14191 windows_status_to_termsig.
14192 * gdbsupport/gdb_wait.h (WIFEXITED, WIFSIGNALED, WEXITSTATUS)
14193 (WTERMSIG) [__MINGW32__]: Separate definitions for MinGW.
14194
f2302a34
AB
141952020-01-05 Andrew Burgess <andrew.burgess@embecosm.com>
14196
14197 * tui/tui-layout.c (tui_add_win_to_layout): Use tui_set_layout not
14198 show_layout.
14199
6a5206eb
LM
142002020-01-05 Luis Machado <luis.machado@linaro.org>
14201
14202 * aarch64-linux-nat.c
14203 (aarch64_linux_nat_target::thread_architecture): Use bfd_arch_aarch64
14204 and bfd_mach_aarch64.
14205
6ec1d75e
PW
142062020-01-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
14207
14208 * ui-file.c (stdio_file::can_emit_style_escape)
14209 (tee_file::can_emit_style_escape): Ensure style is used also on
14210 gdb_stderr when gdb_stderr is a tty supporting styling, similarly
14211 to gdb_stdout.
14212 * main.c (set_gdb_data_directory): Use file style to output the
14213 warning that the given pathname is not a directory.
14214 * top.c (show_history_filename, gdb_safe_append_history)
14215 (show_gdb_datadir): Use file style.
14216
44f81a76
HD
142172020-01-03 Hannes Domani <ssbssa@yahoo.de>
14218
14219 * solib-target.c (struct lm_info_target):
14220 Change offsets to be a unique_xmalloc_ptr.
14221 (solib_target_relocate_section_addresses): Update.
14222
25057eb0
HD
142232020-01-03 Hannes Domani <ssbssa@yahoo.de>
14224
14225 * windows-nat.c (windows_clear_solib): Free so_list linked list.
14226
6e2118f5
BE
142272020-01-03 Bernd Edlinger <bernd.edlinger@hotmail.de>
14228
14229 * MAINTAINERS (Write After Approval): Add myself.
14230
8133c7dc
LM
142312020-01-02 Luis Machado <luis.machado@linaro.org>
14232
14233 * proc-service.c (get_ps_regcache): Remove reference to obsolete
14234 Cell BE architecture.
14235 * target.h (struct target_ops) <thread_architecture>: Likewise.
14236
48189bec
HD
142372020-01-01 Hannes Domani <ssbssa@yahoo.de>
14238
14239 * Makefile.in: Use INSTALL_PROGRAM_ENV.
14240
ead1063b
HD
142412020-01-01 Hannes Domani <ssbssa@yahoo.de>
14242
14243 * MAINTAINERS (Write After Approval): Add myself.
14244
e5d78223
JB
142452020-01-01 Joel Brobecker <brobecker@adacore.com>
14246
14247 * gdbarch.sh: Update copyright year range of generated files.
14248
b811d2c2
JB
142492020-01-01 Joel Brobecker <brobecker@adacore.com>
14250
14251 Update copyright year range in all GDB files.
14252
5f4def5c
JB
142532020-01-01 Joel Brobecker <brobecker@adacore.com>
14254
14255 * copyright.py: Convert to Python 3.
14256
51fd4002
JB
142572020-01-01 Joel Brobecker <brobecker@adacore.com>
14258
14259 * copyright.py: Adapt after move of gnulib directory from gdb
14260 directory to toplevel directory.
14261
5fb651f2
JB
142622020-01-01 Joel Brobecker <brobecker@adacore.com>
14263
14264 * copyright.py (main): Exit if run from the wrong directory.
14265
5dd8bf88
JB
142662020-01-01 Joel Brobecker <brobecker@adacore.com>
14267
14268 * top.c (print_gdb_version): Change copyright year to 2020.
14269
9f71dacb 142702020-01-01 Joel Brobecker <brobecker@adacore.com>
3d34df0a 14271
9f71dacb 14272 * config/djgpp/fnchange.lst: Add entry for gdb/ChangeLog-2019.
3d34df0a 14273
9f71dacb 14274For older changes see ChangeLog-2019.
c906108c
SS
14275\f
14276Local Variables:
14277mode: change-log
14278left-margin: 8
14279fill-column: 74
14280version-control: never
57da7796 14281coding: utf-8
c906108c 14282End:
This page took 3.131454 seconds and 4 git commands to generate.